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 (or
1828 --with-specs=SPECS add SPECS to driver command-line processing
1829 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1830 --with-bugurl=URL Direct users to URL to report a bug
1831 --with-documentation-root-url=URL
1832 Root for documentation URLs
1833 --with-changes-root-url=URL
1834 Root for GCC changes URLs
1835 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1837 --with-multilib-generator
1838 Multi-libs configuration string (RISC-V only)
1839 --with-zstd=PATH specify prefix directory for installed zstd library.
1840 Equivalent to --with-zstd-include=PATH/include plus
1841 --with-zstd-lib=PATH/lib
1842 --with-zstd-include=PATH
1843 specify directory for installed zstd include files
1844 --with-zstd-lib=PATH specify directory for the installed zstd library
1845 --with-gnu-ld assume the C compiler uses GNU ld default=no
1846 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1847 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1848 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1849 --with-gcc-major-version-only
1850 use only GCC major number
in filesystem paths
1851 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1853 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1854 --with-plugin-ld=[ARG
] specify the plugin linker
1855 --with-glibc-version=M.N
1856 assume GCC used with glibc version M.N or later
1857 --with-long-double-128 use
128-bit long double by default
1858 --with-long-double-format={ieee
,ibm
}
1859 Specify whether PowerPC long double uses IEEE or IBM format
1861 --with-gc={page
,zone
} this option is not supported anymore. It used to
1862 choose the garbage collection mechanism to use with
1864 --with-system-zlib use installed libz
1865 --with-linker-hash-style={sysv
,gnu
,both
}
1866 specify the linker
hash style
1867 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1868 specify the default of
-fdiagnostics-color option
1869 auto-if-env stands
for -fdiagnostics-color=auto
if
1870 GCC_COLOR environment variable is present and
1871 -fdiagnostics-color=never otherwise
1872 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1873 specify the default of
-fdiagnostics-urls option
1874 auto-if-env stands
for -fdiagnostics-urls=auto
if
1875 GCC_URLS or TERM_URLS environment variable is
1876 present and
-fdiagnostics-urls=never otherwise
1878 Some influential environment variables
:
1879 CC C compiler
command
1880 CFLAGS C compiler flags
1881 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1882 nonstandard directory
<lib dir
>
1883 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1884 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1885 you have headers
in a nonstandard directory
<include dir
>
1886 CXX C
++ compiler
command
1887 CXXFLAGS C
++ compiler flags
1888 CXXCPP C
++ preprocessor
1890 GMPLIBS How to link GMP
1891 GMPINC How to
find GMP include files
1892 ISLLIBS How to link isl
1893 ISLINC How to
find isl include files
1895 Use these variables to override the choices made by
`configure' or to help
1896 it to find libraries and programs with nonstandard names/locations.
1898 Report bugs to the package provider.
1903 if test "$ac_init_help" = "recursive"; then
1904 # If there are subdirs, report their specific --help.
1905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1906 test -d "$ac_dir" ||
1907 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1914 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1915 # A ".." for each directory in $ac_dir_suffix.
1916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1917 case $ac_top_builddir_sub in
1918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1922 ac_abs_top_builddir=$ac_pwd
1923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1924 # for backward compatibility:
1925 ac_top_builddir=$ac_top_build_prefix
1928 .) # We are building in place.
1930 ac_top_srcdir=$ac_top_builddir_sub
1931 ac_abs_top_srcdir=$ac_pwd ;;
1932 [\\/]* | ?:[\\/]* ) # Absolute name.
1933 ac_srcdir=$srcdir$ac_dir_suffix;
1934 ac_top_srcdir=$srcdir
1935 ac_abs_top_srcdir=$srcdir ;;
1937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1938 ac_top_srcdir=$ac_top_build_prefix$srcdir
1939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1943 cd "$ac_dir" || { ac_status=$?; continue; }
1944 # Check for guested configure.
1945 if test -f "$ac_srcdir/configure.gnu"; then
1947 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1948 elif test -f "$ac_srcdir/configure"; then
1950 $SHELL "$ac_srcdir/configure" --help=recursive
1952 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1954 cd "$ac_pwd" || { ac_status=$?; break; }
1958 test -n "$ac_init_help" && exit $ac_status
1959 if $ac_init_version; then
1962 generated by GNU Autoconf 2.69
1964 Copyright (C) 2012 Free Software Foundation, Inc.
1965 This configure script is free software; the Free Software Foundation
1966 gives unlimited permission to copy, distribute and modify it.
1971 ## ------------------------ ##
1972 ## Autoconf initialization. ##
1973 ## ------------------------ ##
1975 # ac_fn_c_try_compile LINENO
1976 # --------------------------
1977 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_c_try_compile ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext
1982 if { { ac_try="$ac_compile"
1984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1985 *) ac_try_echo
=$ac_try;;
1987 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_compile") 2>conftest.err
1991 if test -s conftest.err
; then
1992 grep -v '^ *+' conftest.err
>conftest.er1
1993 cat conftest.er1
>&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest.
$ac_objext; then :
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.
$ac_ext >&5
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status
$ac_retval
2011 } # ac_fn_c_try_compile
2013 # ac_fn_cxx_try_compile LINENO
2014 # ----------------------------
2015 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2016 ac_fn_cxx_try_compile
()
2018 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2019 rm -f conftest.
$ac_objext
2020 if { { ac_try
="$ac_compile"
2022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_compile") 2>conftest.err
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && {
2036 test -z "$ac_cxx_werror_flag" ||
2037 test ! -s conftest.err
2038 } && test -s conftest.$ac_objext; then :
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2049 } # ac_fn_cxx_try_compile
2051 # ac_fn_cxx_try_cpp LINENO
2052 # ------------------------
2053 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2054 ac_fn_cxx_try_cpp ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_cpp conftest.$ac_ext"
2059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2060 *) ac_try_echo
=$ac_try;;
2062 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2066 if test -s conftest.err
; then
2067 grep -v '^ *+' conftest.err
>conftest.er1
2068 cat conftest.er1
>&5
2069 mv -f conftest.er1 conftest.err
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } > conftest.i
&& {
2073 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2074 test ! -s conftest.err
2078 $as_echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.
$ac_ext >&5
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status
$ac_retval
2086 } # ac_fn_cxx_try_cpp
2088 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2089 # ---------------------------------------------------------
2090 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091 # the include files in INCLUDES and setting the cache variable VAR
2093 ac_fn_cxx_check_header_mongrel
()
2095 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2096 if eval \
${$3+:} false
; then :
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \
${$3+:} false
; then :
2100 $as_echo_n "(cached) " >&6
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2106 # Is the header compilable?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108 $as_echo_n "checking $2 usability... " >&6; }
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2114 if ac_fn_cxx_try_compile
"$LINENO"; then :
2115 ac_header_compiler
=yes
2117 ac_header_compiler
=no
2119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121 $as_echo "$ac_header_compiler" >&6; }
2123 # Is the header present?
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125 $as_echo_n "checking $2 presence... " >&6; }
2126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2131 ac_header_preproc
=yes
2133 ac_header_preproc
=no
2135 rm -f conftest.err conftest.i conftest.
$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137 $as_echo "$ac_header_preproc" >&6; }
2139 # So? What about this header?
2140 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2151 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2155 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \
${$3+:} false
; then :
2163 $as_echo_n "(cached) " >&6
2165 eval "$3=\$ac_header_compiler"
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_cxx_check_header_mongrel
2175 # ac_fn_cxx_try_run LINENO
2176 # ------------------------
2177 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2178 # that executables *can* be run.
2179 ac_fn_cxx_try_run
()
2181 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2182 if { { ac_try
="$ac_link"
2184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>&5
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2193 { { case "(($ac_try" in
2194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2195 *) ac_try_echo
=$ac_try;;
2197 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_try") 2>&5
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; }; }; then :
2205 $as_echo "$as_me: program exited with status $ac_status" >&5
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.
$ac_ext >&5
2209 ac_retval
=$ac_status
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status
$ac_retval
2215 } # ac_fn_cxx_try_run
2217 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2218 # ---------------------------------------------------------
2219 # Tests whether HEADER exists and can be compiled using the include files in
2220 # INCLUDES, setting the cache variable VAR accordingly.
2221 ac_fn_cxx_check_header_compile
()
2223 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \
${$3+:} false
; then :
2227 $as_echo_n "(cached) " >&6
2229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2234 if ac_fn_cxx_try_compile
"$LINENO"; then :
2239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 } # ac_fn_cxx_check_header_compile
2248 # ac_fn_c_try_cpp LINENO
2249 # ----------------------
2250 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2253 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2254 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } > conftest.i && {
2270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2271 test ! -s conftest.err
2275 $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 as_fn_set_status $ac_retval
2285 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2286 # ----------------------------------------------
2287 # Tries to find the compile-time value of EXPR in a program that includes
2288 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2290 ac_fn_cxx_compute_int ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if test "$cross_compiling" = yes; then
2294 # Depending upon the size, compute the lo and hi bounds.
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) >= 0)];
2303 return test_array [0];
2309 if ac_fn_cxx_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2320 return test_array [0];
2326 if ac_fn_cxx_try_compile "$LINENO"; then :
2327 ac_hi=$ac_mid; break
2329 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2330 if test $ac_lo -le $ac_mid; then
2334 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2345 static int test_array [1 - 2 * !(($2) < 0)];
2347 return test_array [0];
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2364 return test_array [0];
2370 if ac_fn_cxx_try_compile "$LINENO"; then :
2371 ac_lo=$ac_mid; break
2373 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2374 if test $ac_mid -le $ac_hi; then
2378 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 # Binary search between lo and hi bounds.
2389 while test "x$ac_lo" != "x$ac_hi"; do
2390 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2399 return test_array [0];
2405 if ac_fn_cxx_try_compile "$LINENO"; then :
2408 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2420 static long int longval () { return $2; }
2421 static unsigned long int ulongval () { return $2; }
2428 FILE *f = fopen ("conftest.val", "w");
2433 long int i = longval ();
2436 fprintf (f, "%ld", i);
2440 unsigned long int i = ulongval ();
2443 fprintf (f, "%lu", i);
2445 /* Do not output a trailing newline, as this causes \r\n confusion
2446 on some platforms. */
2447 return ferror (f) || fclose (f) != 0;
2453 if ac_fn_cxx_try_run "$LINENO"; then :
2454 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2459 conftest.$ac_objext conftest.beam conftest.$ac_ext
2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2464 as_fn_set_status $ac_retval
2466 } # ac_fn_cxx_compute_int
2468 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2469 # ---------------------------------------------
2470 # Tests whether TYPE exists after having included INCLUDES, setting cache
2471 # variable VAR accordingly.
2472 ac_fn_cxx_check_type ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if eval \${$3+:} false; then :
2478 $as_echo_n "(cached) " >&6
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2493 if ac_fn_cxx_try_compile "$LINENO"; then :
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_cxx_check_type
2522 # ac_fn_c_find_intX_t LINENO BITS VAR
2523 # -----------------------------------
2524 # Finds a signed integer type with width BITS, setting cache variable VAR
2526 ac_fn_c_find_intX_t ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2530 $as_echo_n "checking for int$2_t... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2535 # Order is important - never check a type that is potentially smaller
2536 # than half of the expected target width.
2537 for ac_type in int$2_t 'int' 'long int' \
2538 'long long int' 'short int' 'signed char'; do
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2541 $ac_includes_default
2542 enum { N = $2 / 2 - 1 };
2546 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2548 return test_array [0];
2554 if ac_fn_cxx_try_compile "$LINENO"; then :
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $ac_includes_default
2558 enum { N = $2 / 2 - 1 };
2562 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2563 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2565 return test_array [0];
2571 if ac_fn_cxx_try_compile "$LINENO"; then :
2578 eval "$3=\$ac_type" ;;
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 if eval test \"x\$"$3"\" = x"no"; then :
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 } # ac_fn_c_find_intX_t
2598 # ac_fn_cxx_try_link LINENO
2599 # -------------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_cxx_try_link ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 rm -f conftest.$ac_objext conftest$ac_exeext
2605 if { { ac_try="$ac_link"
2607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2608 *) ac_try_echo
=$ac_try;;
2610 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_link") 2>conftest.err
2614 if test -s conftest.err
; then
2615 grep -v '^ *+' conftest.err
>conftest.er1
2616 cat conftest.er1
>&5
2617 mv -f conftest.er1 conftest.err
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; } && {
2621 test -z "$ac_cxx_werror_flag" ||
2622 test ! -s conftest.err
2623 } && test -s conftest
$ac_exeext && {
2624 test "$cross_compiling" = yes ||
2625 test -x conftest
$ac_exeext
2629 $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.
$ac_ext >&5
2634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2636 # interfere with the next link command; also delete a directory that is
2637 # left behind by Apple's compiler. We do this before executing the actions.
2638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640 as_fn_set_status
$ac_retval
2642 } # ac_fn_cxx_try_link
2644 # ac_fn_c_find_uintX_t LINENO BITS VAR
2645 # ------------------------------------
2646 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2648 ac_fn_c_find_uintX_t
()
2650 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2652 $as_echo_n "checking for uint$2_t... " >&6; }
2653 if eval \
${$3+:} false
; then :
2654 $as_echo_n "(cached) " >&6
2657 # Order is important - never check a type that is potentially smaller
2658 # than half of the expected target width.
2659 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2660 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2663 $ac_includes_default
2667 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2669 return test_array [0];
2675 if ac_fn_cxx_try_compile
"$LINENO"; then :
2680 eval "$3=\$ac_type" ;;
2683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2684 if eval test \"x\$
"$3"\" = x
"no"; then :
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2693 $as_echo "$ac_res" >&6; }
2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696 } # ac_fn_c_find_uintX_t
2698 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2699 # ------------------------------------------------
2700 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2701 ac_fn_cxx_check_header_preproc
()
2703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2705 $as_echo_n "checking for $2... " >&6; }
2706 if eval \
${$3+:} false
; then :
2707 $as_echo_n "(cached) " >&6
2709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2713 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2718 rm -f conftest.err conftest.i conftest.
$ac_ext
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2725 } # ac_fn_cxx_check_header_preproc
2727 # ac_fn_cxx_check_func LINENO FUNC VAR
2728 # ------------------------------------
2729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2730 ac_fn_cxx_check_func
()
2732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if eval \
${$3+:} false
; then :
2736 $as_echo_n "(cached) " >&6
2738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2742 #define $2 innocuous_$2
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char $2 (); below.
2746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747 <limits.h> exists even on freestanding compilers. */
2750 # include <limits.h>
2752 # include <assert.h>
2757 /* Override any GCC internal prototype to avoid an error.
2758 Use char because int might match the return type of a GCC
2759 builtin and then its argument prototype would still apply. */
2764 /* The GNU C library defines this for functions which it implements
2765 to always fail with ENOSYS. Some functions are actually named
2766 something starting with __ and the normal name is an alias. */
2767 #if defined __stub_$2 || defined __stub___$2
2779 if ac_fn_cxx_try_link
"$LINENO"; then :
2784 rm -f core conftest.err conftest.
$ac_objext \
2785 conftest
$ac_exeext conftest.
$ac_ext
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792 } # ac_fn_cxx_check_func
2794 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2795 # -----------------------------------------------
2796 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2798 ac_fn_cxx_check_decl
()
2800 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2801 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2802 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2804 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2805 if eval \
${$3+:} false
; then :
2806 $as_echo_n "(cached) " >&6
2808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2814 #ifndef $as_decl_name
2816 (void) $as_decl_use;
2818 (void) $as_decl_name;
2826 if ac_fn_cxx_try_compile
"$LINENO"; then :
2831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2838 } # ac_fn_cxx_check_decl
2840 # ac_fn_c_try_link LINENO
2841 # -----------------------
2842 # Try to link conftest.$ac_ext, and return whether this succeeded.
2845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2846 rm -f conftest.
$ac_objext conftest
$ac_exeext
2847 if { { ac_try
="$ac_link"
2849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>conftest.err
2856 if test -s conftest.err; then
2857 grep -v '^ *+' conftest.err >conftest.er1
2858 cat conftest.er1 >&5
2859 mv -f conftest.er1 conftest.err
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest$ac_exeext && {
2866 test "$cross_compiling" = yes ||
2867 test -x conftest$ac_exeext
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2878 # interfere with the next link command; also delete a directory that is
2879 # left behind by Apple's compiler. We do this before executing the actions.
2880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882 as_fn_set_status $ac_retval
2884 } # ac_fn_c_try_link
2886 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2887 # ----------------------------------------------
2888 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2889 ac_fn_c_check_header_preproc ()
2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2893 $as_echo_n "checking for $2... " >&6; }
2894 if eval \${$3+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2901 if ac_fn_c_try_cpp "$LINENO"; then :
2906 rm -f conftest.err conftest.i conftest.$ac_ext
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910 $as_echo "$ac_res" >&6; }
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913 } # ac_fn_c_check_header_preproc
2915 # ac_fn_c_check_func LINENO FUNC VAR
2916 # ----------------------------------
2917 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2918 ac_fn_c_check_func ()
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2922 $as_echo_n "checking for $2... " >&6; }
2923 if eval \${$3+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2930 #define $2 innocuous_$2
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char $2 (); below.
2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 <limits.h> exists even on freestanding compilers. */
2938 # include <limits.h>
2940 # include <assert.h>
2945 /* Override any GCC internal prototype to avoid an error.
2946 Use char because int might match the return type of a GCC
2947 builtin and then its argument prototype would still apply. */
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined __stub_$2 || defined __stub___$2
2967 if ac_fn_c_try_link "$LINENO"; then :
2972 rm -f core conftest.err conftest.$ac_objext \
2973 conftest$ac_exeext conftest.$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_func
2981 cat >config.log <<_ACEOF
2982 This file contains any messages produced by compilers while
2983 running configure, to aid debugging if configure makes a mistake.
2985 It was created by $as_me, which was
2986 generated by GNU Autoconf 2.69. Invocation command line was
2998 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2999 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3000 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3001 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3002 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3004 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3005 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3007 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3008 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3009 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3010 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3011 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3012 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3013 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 $as_echo "PATH: $as_dir"
3038 # Keep a trace of the command line.
3039 # Strip out --no-create and --no-recursion so they do not pile up.
3040 # Strip out --silent because we don't want to record it for future runs.
3041 # Also quote any args containing shell meta-characters.
3042 # Make two passes to allow for proper duplicate-argument suppression.
3046 ac_must_keep_next=false
3052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3054 | -silent | --silent | --silen | --sile | --sil)
3057 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3062 as_fn_append ac_configure_args1 " '$ac_arg'"
3063 if test $ac_must_keep_next = true; then
3064 ac_must_keep_next=false # Got value, back to normal.
3067 *=* | --config-cache | -C | -disable-* | --disable-* \
3068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3070 | -with-* | --with-* | -without-* | --without-* | --x)
3071 case "$ac_configure_args0 " in
3072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3075 -* ) ac_must_keep_next=true ;;
3078 as_fn_append ac_configure_args " '$ac_arg'"
3083 { ac_configure_args0=; unset ac_configure_args0;}
3084 { ac_configure_args1=; unset ac_configure_args1;}
3086 # When interrupted or exit'd, cleanup temporary files, and complete
3087 # config.log. We remove comments because anyway the quotes in there
3088 # would cause problems or look ugly.
3089 # WARNING: Use '\'' to represent an apostrophe within the trap.
3090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3091 trap 'exit_status=$?
3092 # Save into config.log some information that might help in debugging.
3096 $as_echo "## ---------------- ##
3097 ## Cache variables. ##
3098 ## ---------------- ##"
3100 # The following way of writing the cache mishandles newlines in values,
3102 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3103 eval ac_val=\$$ac_var
3107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3111 _ | IFS | as_nl) ;; #(
3112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3113 *) { eval $ac_var=; unset $ac_var;} ;;
3118 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3119 *${as_nl}ac_space=\ *)
3121 "s/'\''/'\''\\\\'\'''\''/g;
3122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3132 $as_echo "## ----------------- ##
3133 ## Output variables. ##
3134 ## ----------------- ##"
3136 for ac_var in $ac_subst_vars
3138 eval ac_val=\$$ac_var
3140 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3142 $as_echo "$ac_var='\''$ac_val'\''"
3146 if test -n "$ac_subst_files"; then
3147 $as_echo "## ------------------- ##
3148 ## File substitutions. ##
3149 ## ------------------- ##"
3151 for ac_var in $ac_subst_files
3153 eval ac_val=\$$ac_var
3155 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3157 $as_echo "$ac_var='\''$ac_val'\''"
3162 if test -s confdefs.h; then
3163 $as_echo "## ----------- ##
3170 test "$ac_signal" != 0 &&
3171 $as_echo "$as_me: caught signal $ac_signal"
3172 $as_echo "$as_me: exit $exit_status"
3174 rm -f core *.core core.conftest.* &&
3175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3178 for ac_signal in 1 2 13 15; do
3179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3184 rm -f -r conftest* confdefs.h
3186 $as_echo "/* confdefs.h */" > confdefs.h
3188 # Predefined preprocessor variables.
3190 cat >>confdefs.h <<_ACEOF
3191 #define PACKAGE_NAME "$PACKAGE_NAME"
3194 cat >>confdefs.h <<_ACEOF
3195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3198 cat >>confdefs.h <<_ACEOF
3199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE_STRING "$PACKAGE_STRING"
3206 cat >>confdefs.h <<_ACEOF
3207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE_URL "$PACKAGE_URL"
3215 # Let the site file select an alternate cache file if it wants to.
3216 # Prefer an explicitly selected file to automatically selected ones.
3219 if test -n "$CONFIG_SITE"; then
3220 # We do not want a PATH search for config.site.
3221 case $CONFIG_SITE in #((
3222 -*) ac_site_file1=./$CONFIG_SITE;;
3223 */*) ac_site_file1=$CONFIG_SITE;;
3224 *) ac_site_file1=./$CONFIG_SITE;;
3226 elif test "x$prefix" != xNONE; then
3227 ac_site_file1=$prefix/share/config.site
3228 ac_site_file2=$prefix/etc/config.site
3230 ac_site_file1=$ac_default_prefix/share/config.site
3231 ac_site_file2=$ac_default_prefix/etc/config.site
3233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3235 test "x$ac_site_file" = xNONE && continue
3236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3239 sed 's/^/| /' "$ac_site_file" >&5
3241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "failed to load site
script $ac_site_file
3244 See \
`config.log' for more details" "$LINENO" 5; }
3248 if test -r "$cache_file"; then
3249 # Some versions of bash will fail to source /dev/null (special files
3250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3253 $as_echo "$as_me: loading cache $cache_file" >&6;}
3255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3256 *) . "./$cache_file";;
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3261 $as_echo "$as_me: creating cache $cache_file" >&6;}
3265 # Check that the precious variables saved in the cache have kept the same
3267 ac_cache_corrupted=false
3268 for ac_var in $ac_precious_vars; do
3269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3270 eval ac_new_set=\$ac_env_${ac_var}_set
3271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3272 eval ac_new_val=\$ac_env_${ac_var}_value
3273 case $ac_old_set,$ac_new_set in
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3276 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3277 ac_cache_corrupted=: ;;
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3280 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3281 ac_cache_corrupted=: ;;
3284 if test "x$ac_old_val" != "x$ac_new_val"; then
3285 # differences in whitespace do not lead to failure.
3286 ac_old_val_w=`echo x
$ac_old_val`
3287 ac_new_val_w=`echo x
$ac_new_val`
3288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3291 ac_cache_corrupted=:
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3295 eval $ac_var=\$ac_old_val
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3298 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3303 # Pass precious variables to config.status.
3304 if test "$ac_new_set" = set; then
3306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3307 *) ac_arg=$ac_var=$ac_new_val ;;
3309 case " $ac_configure_args " in
3310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3315 if $ac_cache_corrupted; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3320 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3322 ## -------------------- ##
3323 ## Main body of script. ##
3324 ## -------------------- ##
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3341 gcc_version=`cat $srcdir/BASE-VER
`
3343 # Determine the host, build, and target systems
3345 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3346 if test -f "$ac_dir/install-sh"; then
3348 ac_install_sh="$ac_aux_dir/install-sh -c"
3350 elif test -f "$ac_dir/install.sh"; then
3352 ac_install_sh="$ac_aux_dir/install.sh -c"
3354 elif test -f "$ac_dir/shtool"; then
3356 ac_install_sh="$ac_aux_dir/shtool install -c"
3360 if test -z "$ac_aux_dir"; then
3361 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3364 # These three variables are undocumented and unsupported,
3365 # and are intended to be withdrawn in a future Autoconf release.
3366 # They can cause serious problems if a builder's source tree is in a directory
3367 # whose full name contains unusual characters.
3368 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3369 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3370 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3375 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3378 $as_echo_n "checking build system type... " >&6; }
3379 if ${ac_cv_build+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 ac_build_alias=$build_alias
3383 test "x$ac_build_alias" = x &&
3384 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3385 test "x$ac_build_alias" = x &&
3386 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3387 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3388 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3392 $as_echo "$ac_cv_build" >&6; }
3393 case $ac_cv_build in
3395 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3398 ac_save_IFS=$IFS; IFS='-'
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3408 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3412 $as_echo_n "checking host system type... " >&6; }
3413 if ${ac_cv_host+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if test "x$host_alias" = x; then
3417 ac_cv_host=$ac_cv_build
3419 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3425 $as_echo "$ac_cv_host" >&6; }
3428 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3431 ac_save_IFS=$IFS; IFS='-'
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3441 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3445 $as_echo_n "checking target system type... " >&6; }
3446 if ${ac_cv_target+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 if test "x$target_alias" = x; then
3450 ac_cv_target=$ac_cv_host
3452 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3458 $as_echo "$ac_cv_target" >&6; }
3459 case $ac_cv_target in
3461 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3463 target=$ac_cv_target
3464 ac_save_IFS=$IFS; IFS='-'
3470 # Remember, the first character of IFS is used to create $*,
3471 # except with old shells:
3474 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3477 # The aliases save the names the user supplied, while $host etc.
3478 # will get canonicalized.
3479 test -n "$target_alias" &&
3480 test "$program_prefix$program_suffix$program_transform_name" = \
3482 program_prefix=${target_alias}-
3484 # Determine the noncanonical host name, for Ada.
3485 case ${build_alias} in
3486 "") build_noncanonical=${build} ;;
3487 *) build_noncanonical=${build_alias} ;;
3490 case ${host_alias} in
3491 "") host_noncanonical=${build_noncanonical} ;;
3492 *) host_noncanonical=${host_alias} ;;
3498 # Determine the noncanonical target name, for directory use.
3499 case ${target_alias} in
3500 "") target_noncanonical=${host_noncanonical} ;;
3501 *) target_noncanonical=${target_alias} ;;
3507 # Used for constructing correct paths for offload compilers.
3508 real_target_noncanonical=${target_noncanonical}
3511 # Determine the target- and build-specific subdirectories
3513 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3514 # have matching libraries, they should use host libraries: Makefile.tpl
3515 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3516 # However, they still use the build modules, because the corresponding
3517 # host modules (e.g. bison) are only built for the host when bootstrap
3519 # - build_subdir is where we find build modules, and never changes.
3520 # - build_libsubdir is where we find build libraries, and can be overridden.
3522 # Prefix 'build-' so this never conflicts with target_subdir.
3523 build_subdir="build-${build_noncanonical}"
3525 # Check whether --with-build-libsubdir was given.
3526 if test "${with_build_libsubdir+set}" = set; then :
3527 withval=$with_build_libsubdir; build_libsubdir="$withval"
3529 build_libsubdir="$build_subdir"
3532 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3533 if ( test $srcdir = . && test -d gcc ) \
3534 || test -d $srcdir/../host-${host_noncanonical}; then
3535 host_subdir="host-${host_noncanonical}"
3540 target_subdir=${target_noncanonical}
3543 # Set program_transform_name
3544 test "$program_prefix" != NONE &&
3545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s
,x
,x
', remove it if useless.
3551 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3555 # Check for bogus environment variables.
3556 # Test if LIBRARY_PATH contains the notation for the current directory
3557 # since this would lead to problems installing/building glibc.
3558 # LIBRARY_PATH contains the current directory if one of the following
3560 # - one of the terminals (":" and ";") is the first or last sign
3561 # - two terminals occur directly after each other
3562 # - the path contains an element with a dot in it
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3564 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3565 case ${LIBRARY_PATH} in
3566 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3567 library_path_setting="contains current directory"
3570 library_path_setting="ok"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3574 $as_echo "$library_path_setting" >&6; }
3575 if test "$library_path_setting" != "ok"; then
3577 *** LIBRARY_PATH shouldn't contain the current directory when
3578 *** building gcc. Please change the environment variable
3579 *** and run configure again.
" "$LINENO" 5
3582 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3583 # since this would lead to problems installing/building glibc.
3584 # GCC_EXEC_PREFIX contains the current directory if one of the following
3586 # - one of the terminals (":" and ";") is the first or last sign
3587 # - two terminals occur directly after each other
3588 # - the path contains an element with a dot in it
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3590 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3591 case ${GCC_EXEC_PREFIX} in
3592 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3593 gcc_exec_prefix_setting="contains current directory
"
3596 gcc_exec_prefix_setting="ok
"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3600 $as_echo "$gcc_exec_prefix_setting" >&6; }
3601 if test "$gcc_exec_prefix_setting" != "ok
"; then
3603 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3604 *** building gcc. Please change the environment variable
3605 *** and run configure again." "$LINENO" 5
3612 # Specify the local prefix
3615 # Check whether --with-local-prefix was given.
3616 if test "${with_local_prefix+set}" = set; then :
3617 withval=$with_local_prefix; case "${withval}" in
3618 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3620 *) local_prefix=$with_local_prefix ;;
3625 # Default local prefix if it is empty
3626 if test x$local_prefix = x; then
3627 local_prefix=/usr/local
3631 # Check whether --with-native-system-header-dir was given.
3632 if test "${with_native_system_header_dir+set}" = set; then :
3633 withval=$with_native_system_header_dir;
3634 case ${with_native_system_header_dir} in
3635 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3636 /* | [A-Za-z]:[\\/]*) ;;
3637 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3639 configured_native_system_header_dir="${withval}"
3642 configured_native_system_header_dir=
3647 # Check whether --with-build-sysroot was given.
3648 if test "${with_build_sysroot+set}" = set; then :
3649 withval=$with_build_sysroot; if test x"$withval" != x ; then
3650 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3653 SYSROOT_CFLAGS_FOR_TARGET=
3658 if test "x$prefix" = xNONE; then
3659 test_prefix=/usr/local
3663 if test "x$exec_prefix" = xNONE; then
3664 test_exec_prefix=$test_prefix
3666 test_exec_prefix=$exec_prefix
3670 # Check whether --with-sysroot was given.
3671 if test "${with_sysroot+set}" = set; then :
3672 withval=$with_sysroot;
3673 case ${with_sysroot} in
3675 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3677 case ${with_sysroot} in
3678 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3679 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3682 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3683 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3685 case ${TARGET_SYSTEM_ROOT} in
3686 "${test_prefix}"|"${test_prefix}/"*|\
3687 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3688 '${prefix}'|'${prefix}/'*|\
3689 '${exec_prefix}'|'${exec_prefix}/'*)
3690 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3691 TARGET_SYSTEM_ROOT_DEFINE="$t"
3698 TARGET_SYSTEM_ROOT_DEFINE=
3699 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3707 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3708 # passed in by the toplevel make and thus we'd get different behavior
3709 # depending on where we built the sources.
3710 gcc_gxx_include_dir
=
3711 # Specify the g++ header file directory
3713 # Check whether --with-gxx-include-dir was given.
3714 if test "${with_gxx_include_dir+set}" = set; then :
3715 withval
=$with_gxx_include_dir; case "${withval}" in
3716 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3718 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3723 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3724 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3725 # relative to the sysroot.
3726 gcc_gxx_include_dir_add_sysroot
=0
3728 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3729 if test x
${gcc_gxx_include_dir} = x
; then
3730 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3731 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3733 libstdcxx_incdir
='include/c++/$(version)'
3734 if test x
$host != x
$target; then
3735 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3737 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3739 elif test "${with_sysroot+set}" = set; then
3740 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3741 if test "${gcc_gxx_without_sysroot}"; then
3742 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3743 gcc_gxx_include_dir_add_sysroot
=1
3747 # Configuration for an alternate set of C++ headers.
3748 gcc_gxx_libcxx_include_dir
=
3749 # Specify the alternate g++ header file directory
3751 # Check whether --with-gxx-libcxx-include-dir was given.
3752 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3753 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3754 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3756 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3761 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3762 # check to see if the latter starts with the former and, upon success, compute
3763 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3764 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3766 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3768 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3771 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3774 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3775 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3776 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3777 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3779 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3780 if test x
$host != x
$target; then
3781 libcxx_incdir
="$target_alias/$libcxx_incdir"
3783 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3785 elif test "${with_sysroot+set}" = set; then
3786 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3787 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3788 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3789 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3794 # Check whether --with-cpp_install_dir was given.
3795 if test "${with_cpp_install_dir+set}" = set; then :
3796 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3797 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3798 elif test x
$withval != xno
; then
3799 cpp_install_dir
=$withval
3804 # We would like to our source tree to be readonly. However when releases or
3805 # pre-releases are generated, the flex/bison generated files as well as the
3806 # various formats of manuals need to be included along with the rest of the
3807 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3811 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3812 # Check whether --enable-generated-files-in-srcdir was given.
3813 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3814 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3816 generated_files_in_srcdir
=no
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3821 $as_echo "$generated_files_in_srcdir" >&6; }
3823 if test "$generated_files_in_srcdir" = "yes"; then
3830 # -------------------
3831 # Find default linker
3832 # -------------------
3836 # Check whether --with-gnu-ld was given.
3837 if test "${with_gnu_ld+set}" = set; then :
3838 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3846 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3847 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3855 # With pre-defined ld
3857 # Check whether --with-ld was given.
3858 if test "${with_ld+set}" = set; then :
3859 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3862 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3863 if test ! -x "$DEFAULT_LINKER"; then
3864 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3865 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3867 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3871 cat >>confdefs.h
<<_ACEOF
3872 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3878 $as_echo_n "checking whether a default linker was specified... " >&6; }
3879 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3880 if test x
"$gnu_ld_flag" = x
"no"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3882 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3885 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3892 # With demangler in GNU ld
3894 # Check whether --with-demangler-in-ld was given.
3895 if test "${with_demangler_in_ld+set}" = set; then :
3896 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3902 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3904 # Check whether --with-dsymutil was given.
3905 if test "${with_dsymutil+set}" = set; then :
3906 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3911 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3912 if test ! -x "$DEFAULT_DSYMUTIL"; then
3913 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3915 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3920 cat >>confdefs.h
<<_ACEOF
3921 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3927 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3928 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3930 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3936 # ----------------------
3937 # Find default assembler
3938 # ----------------------
3942 # Check whether --with-gnu-as was given.
3943 if test "${with_gnu_as+set}" = set; then :
3944 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3951 # Check whether --with-as was given.
3952 if test "${with_as+set}" = set; then :
3953 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3956 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3957 if test ! -x "$DEFAULT_ASSEMBLER"; then
3958 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3959 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3963 cat >>confdefs.h
<<_ACEOF
3964 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3970 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3971 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3972 if test x
"$gas_flag" = x
"no"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3974 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3977 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3988 # If a non-executable a.out is present (e.g. created by GNU as above even if
3989 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3990 # file, even when creating an executable, so an execution test fails.
3991 # Remove possible default executable files to avoid this.
3993 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3994 # Autoconf includes it.
3995 rm -f a.out a.exe b.out
3997 # Find the native compiler
3999 ac_cpp
='$CPP $CPPFLAGS'
4000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4005 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false
; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC
="$CC" # Let the user override the test.
4014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir
=.
4019 for ac_exec_ext
in '' $ac_executable_extensions; do
4020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$ac_cv_prog_CC"; then
4044 # Extract the first word of "gcc", so it can be a program name with args.
4045 set dummy gcc
; ac_word
=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$ac_ct_CC"; then
4052 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir
=.
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_CC
="gcc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4072 if test -n "$ac_ct_CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074 $as_echo "$ac_ct_CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4080 if test "x$ac_ct_CC" = x
; then
4083 case $cross_compiling:$ac_tool_warned in
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087 ac_tool_warned
=yes ;;
4095 if test -z "$CC"; then
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4098 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CC+:} false
; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC
="$CC" # Let the user override the test.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4136 if test -z "$CC"; then
4137 # Extract the first word of "cc", so it can be a program name with args.
4138 set dummy cc
; ac_word
=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_CC+:} false
; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC
="$CC" # Let the user override the test.
4148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir
=.
4153 for ac_exec_ext
in '' $ac_executable_extensions; do
4154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156 ac_prog_rejected
=yes
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test $ac_prog_rejected = yes; then
4168 # We found a bogon in the path, so make sure we never use it.
4169 set dummy
$ac_cv_prog_CC
4171 if test $# != 0; then
4172 # We chose a different compiler from the bogus one.
4173 # However, it has the same basename, so the bogon will be chosen
4174 # first if we set CC to just the basename; use the full file name.
4176 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4182 if test -n "$CC"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184 $as_echo "$CC" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4192 if test -z "$CC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 for ac_prog
in cl.exe
4196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_CC+:} false
; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC
="$CC" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$CC" && break
4236 if test -z "$CC"; then
4238 for ac_prog
in cl.exe
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy
$ac_prog; ac_word
=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4245 $as_echo_n "(cached) " >&6
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir
=.
4255 for ac_exec_ext
in '' $ac_executable_extensions; do
4256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_ac_ct_CC
="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270 $as_echo "$ac_ct_CC" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 test -n "$ac_ct_CC" && break
4280 if test "x$ac_ct_CC" = x
; then
4283 case $cross_compiling:$ac_tool_warned in
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned
=yes ;;
4296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $?
"no acceptable C compiler found in \$PATH
4299 See \`config.log' for more details" "$LINENO" 5; }
4301 # Provide some information about the compiler.
4302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4305 for ac_option
in --version -v -V -qversion; do
4306 { { ac_try
="$ac_compiler $ac_option >&5"
4308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4315 if test -s conftest.err; then
4317 ... rest of stderr output deleted ...
4318 10q' conftest.err >conftest.er1
4319 cat conftest.er1 >&5
4321 rm -f conftest.er1 conftest.err
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4337 ac_clean_files_save=$ac_clean_files
4338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4339 # Try to create an executable without -o first, disregard a.out.
4340 # It will help us diagnose broken compilers, and finding out an intuition
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4343 $as_echo_n "checking whether the C compiler works... " >&6; }
4344 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4346 # The possible output files:
4347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4350 for ac_file in $ac_files
4353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4359 if { { ac_try="$ac_link_default"
4361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4362 *) ac_try_echo
=$ac_try;;
4364 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_link_default") 2>&5
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; then :
4370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4373 # so that the user can short-circuit this test for compilers unknown to
4375 for ac_file
in $ac_files ''
4377 test -f "$ac_file" ||
continue
4379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4382 # We found the default executable, but exeext='' is most
4386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4388 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 # We set ac_cv_exeext here because the later test for it is not
4391 # safe: cross compilers may not add the suffix if given an `-o'
4392 # argument, so we may need to know it at that point already.
4393 # Even if this section looks crufty: it has the advantage of
4400 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4405 if test -z "$ac_file"; then :
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 $as_echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.
$ac_ext >&5
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413 as_fn_error
77 "C compiler cannot create executables
4414 See \`config.log' for more details" "$LINENO" 5; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4417 $as_echo "yes" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4420 $as_echo_n "checking for C compiler default output file name... " >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4422 $as_echo "$ac_file" >&6; }
4423 ac_exeext
=$ac_cv_exeext
4425 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4426 ac_clean_files
=$ac_clean_files_save
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4428 $as_echo_n "checking for suffix of executables... " >&6; }
4429 if { { ac_try
="$ac_link"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link") 2>&5
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4441 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4442 # work properly (i.e., refer to `conftest.exe'), while it won't with
4444 for ac_file
in conftest.exe conftest conftest.
*; do
4445 test -f "$ac_file" ||
continue
4447 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4448 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4457 See \`config.log' for more details" "$LINENO" 5; }
4459 rm -f conftest conftest
$ac_cv_exeext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4461 $as_echo "$ac_cv_exeext" >&6; }
4463 rm -f conftest.
$ac_ext
4464 EXEEXT
=$ac_cv_exeext
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4472 FILE *f = fopen ("conftest.out", "w");
4473 return ferror (f) || fclose (f) != 0;
4479 ac_clean_files
="$ac_clean_files conftest.out"
4480 # Check that the compiler produces executables we can run. If not, either
4481 # the compiler is broken, or we cross compile.
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4483 $as_echo_n "checking whether we are cross compiling... " >&6; }
4484 if test "$cross_compiling" != yes; then
4485 { { ac_try
="$ac_link"
4487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link") 2>&5
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }
4496 if { ac_try='./conftest$ac_cv_exeext'
4497 { { case "(($ac_try" in
4498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4499 *) ac_try_echo
=$ac_try;;
4501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_try") 2>&5
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; }; then
4509 if test "$cross_compiling" = maybe
; then
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error $?
"cannot run C compiled programs.
4515 If you meant to cross compile, use \`--host'.
4516 See \`config.log' for more details" "$LINENO" 5; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4521 $as_echo "$cross_compiling" >&6; }
4523 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4524 ac_clean_files
=$ac_clean_files_save
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4526 $as_echo_n "checking for suffix of object files... " >&6; }
4527 if ${ac_cv_objext+:} false
; then :
4528 $as_echo_n "(cached) " >&6
4530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 rm -f conftest.o conftest.obj
4542 if { { ac_try
="$ac_compile"
4544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 $as_echo "$ac_try_echo"; } >&5
4549 (eval "$ac_compile") 2>&5
4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }; then :
4553 for ac_file in conftest.o conftest.obj conftest.*; do
4554 test -f "$ac_file" || continue;
4556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4562 $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4568 See \
`config.log' for more details" "$LINENO" 5; }
4570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4573 $as_echo "$ac_cv_objext" >&6; }
4574 OBJEXT=$ac_cv_objext
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4578 if ${ac_cv_c_compiler_gnu+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4595 if ac_fn_c_try_compile "$LINENO"; then :
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4606 if test $ac_compiler_gnu = yes; then
4611 ac_test_CFLAGS=${CFLAGS+set}
4612 ac_save_CFLAGS=$CFLAGS
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4615 if ${ac_cv_prog_cc_g+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 ac_save_c_werror_flag=$ac_c_werror_flag
4619 ac_c_werror_flag=yes
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4633 if ac_fn_c_try_compile "$LINENO"; then :
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4648 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_c_werror_flag=$ac_save_c_werror_flag
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4664 if ac_fn_c_try_compile "$LINENO"; then :
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 ac_c_werror_flag=$ac_save_c_werror_flag
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4675 $as_echo "$ac_cv_prog_cc_g" >&6; }
4676 if test "$ac_test_CFLAGS" = set; then
4677 CFLAGS=$ac_save_CFLAGS
4678 elif test $ac_cv_prog_cc_g = yes; then
4679 if test "$GCC" = yes; then
4685 if test "$GCC" = yes; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4693 if ${ac_cv_prog_cc_c89+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 ac_cv_prog_cc_c89=no
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4704 struct buf { int x; };
4705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4706 static char *e (p, i)
4712 static char *f (char * (*g) (char **, int), char **p, ...)
4717 s = g (p, va_arg (v,int));
4722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4723 function prototypes and stuff, but not '\xHH' hex character constants.
4724 These don't provoke an error unfortunately, instead are silently treated
4725 as 'x'. The following induces an error, until -std is added to get
4726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4727 array size at least. It's necessary to write '\x00'==0 to get something
4728 that's true only with -std. */
4729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4732 inside strings and character constants. */
4734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4736 int test (int i, double x);
4737 struct s1 {int (*f) (int a);};
4738 struct s2 {int (*f) (double a);};
4739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 CC="$ac_save_CC $ac_arg"
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_c89=$ac_arg
4757 rm -f core conftest.err conftest.$ac_objext
4758 test "x$ac_cv_prog_cc_c89" != "xno" && break
4760 rm -f conftest.$ac_ext
4765 case "x$ac_cv_prog_cc_c89" in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 $as_echo "none needed" >&6; } ;;
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 $as_echo "unsupported" >&6; } ;;
4773 CC="$CC $ac_cv_prog_cc_c89"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4777 if test "x$ac_cv_prog_cc_c89" != xno; then :
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792 if test -z "$CXX"; then
4793 if test -n "$CCC"; then
4796 if test -n "$ac_tool_prefix"; then
4797 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_CXX+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$CXX"; then
4807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 if test -n "$CXX"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4829 $as_echo "$CXX" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4836 test -n "$CXX" && break
4839 if test -z "$CXX"; then
4841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 if test -n "$ac_ct_CXX"; then
4851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_prog"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871 if test -n "$ac_ct_CXX"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4873 $as_echo "$ac_ct_CXX" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4880 test -n "$ac_ct_CXX" && break
4883 if test "x$ac_ct_CXX" = x; then
4886 case $cross_compiling:$ac_tool_warned in
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890 ac_tool_warned=yes ;;
4898 # Provide some information about the compiler.
4899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4902 for ac_option in --version -v -V -qversion; do
4903 { { ac_try="$ac_compiler $ac_option >&5"
4905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4906 *) ac_try_echo
=$ac_try;;
4908 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909 $as_echo "$ac_try_echo"; } >&5
4910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4912 if test -s conftest.err
; then
4914 ... rest of stderr output deleted ...
4915 10q' conftest.err
>conftest.er1
4916 cat conftest.er1
>&5
4918 rm -f conftest.er1 conftest.err
4919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920 test $ac_status = 0; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4924 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4925 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4926 $as_echo_n "(cached) " >&6
4928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4942 if ac_fn_cxx_try_compile
"$LINENO"; then :
4947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4948 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4952 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4953 if test $ac_compiler_gnu = yes; then
4958 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4959 ac_save_CXXFLAGS
=$CXXFLAGS
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4961 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4962 if ${ac_cv_prog_cxx_g+:} false
; then :
4963 $as_echo_n "(cached) " >&6
4965 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4966 ac_cxx_werror_flag
=yes
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4980 if ac_fn_cxx_try_compile
"$LINENO"; then :
4981 ac_cv_prog_cxx_g
=yes
4984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4995 if ac_fn_cxx_try_compile
"$LINENO"; then :
4998 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5011 if ac_fn_cxx_try_compile
"$LINENO"; then :
5012 ac_cv_prog_cxx_g
=yes
5014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5022 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5023 if test "$ac_test_CXXFLAGS" = set; then
5024 CXXFLAGS
=$ac_save_CXXFLAGS
5025 elif test $ac_cv_prog_cxx_g = yes; then
5026 if test "$GXX" = yes; then
5032 if test "$GXX" = yes; then
5039 ac_cpp
='$CPP $CPPFLAGS'
5040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5049 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_GNATBIND+:} false
; then :
5053 $as_echo_n "(cached) " >&6
5055 if test -n "$GNATBIND"; then
5056 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir
=.
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 GNATBIND
=$ac_cv_prog_GNATBIND
5076 if test -n "$GNATBIND"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5078 $as_echo "$GNATBIND" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5086 if test -z "$ac_cv_prog_GNATBIND"; then
5087 ac_ct_GNATBIND
=$GNATBIND
5088 # Extract the first word of "gnatbind", so it can be a program name with args.
5089 set dummy gnatbind
; ac_word
=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$ac_ct_GNATBIND"; then
5096 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir
=.
5103 for ac_exec_ext
in '' $ac_executable_extensions; do
5104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5116 if test -n "$ac_ct_GNATBIND"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5118 $as_echo "$ac_ct_GNATBIND" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5124 if test "x$ac_ct_GNATBIND" = x
; then
5127 case $cross_compiling:$ac_tool_warned in
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned
=yes ;;
5133 GNATBIND
=$ac_ct_GNATBIND
5136 GNATBIND
="$ac_cv_prog_GNATBIND"
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5141 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$GNATMAKE"; then
5148 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir
=.
5155 for ac_exec_ext
in '' $ac_executable_extensions; do
5156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 GNATMAKE
=$ac_cv_prog_GNATMAKE
5168 if test -n "$GNATMAKE"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5170 $as_echo "$GNATMAKE" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5178 if test -z "$ac_cv_prog_GNATMAKE"; then
5179 ac_ct_GNATMAKE
=$GNATMAKE
5180 # Extract the first word of "gnatmake", so it can be a program name with args.
5181 set dummy gnatmake
; ac_word
=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$ac_ct_GNATMAKE"; then
5188 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir
=.
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5208 if test -n "$ac_ct_GNATMAKE"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5210 $as_echo "$ac_ct_GNATMAKE" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5216 if test "x$ac_ct_GNATMAKE" = x
; then
5219 case $cross_compiling:$ac_tool_warned in
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned
=yes ;;
5225 GNATMAKE
=$ac_ct_GNATMAKE
5228 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5232 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5233 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5234 $as_echo_n "(cached) " >&6
5236 cat >conftest.adb
<<EOF
5237 pragma Warnings (Off);
5239 pragma Warnings (On);
5240 use type System.CRTL.int64;
5241 procedure conftest is begin null; end conftest;
5243 acx_cv_cc_gcc_supports_ada
=no
5244 # There is a bug in old released versions of GCC which causes the
5245 # driver to exit successfully when the appropriate language module
5246 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5247 # Therefore we must check for the error message as well as an
5248 # unsuccessful exit.
5249 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5250 # given a .adb file, but produce no object file. So we must check
5251 # if an object file was really produced to guard against this.
5252 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5253 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5254 acx_cv_cc_gcc_supports_ada
=yes
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5259 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5261 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5271 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_GDC+:} false
; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$GDC"; then
5278 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir
=.
5285 for ac_exec_ext
in '' $ac_executable_extensions; do
5286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 if test -n "$GDC"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5300 $as_echo "$GDC" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5308 if test -z "$ac_cv_prog_GDC"; then
5310 # Extract the first word of "gdc", so it can be a program name with args.
5311 set dummy gdc
; ac_word
=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_GDC"; then
5318 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir
=.
5325 for ac_exec_ext
in '' $ac_executable_extensions; do
5326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_GDC
="gdc"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5338 if test -n "$ac_ct_GDC"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5340 $as_echo "$ac_ct_GDC" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5346 if test "x$ac_ct_GDC" = x
; then
5349 case $cross_compiling:$ac_tool_warned in
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned
=yes ;;
5358 GDC
="$ac_cv_prog_GDC"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5362 $as_echo_n "checking whether the D compiler works... " >&6; }
5363 if ${acx_cv_d_compiler_works+:} false
; then :
5364 $as_echo_n "(cached) " >&6
5366 cat >conftest.d
<<EOF
5367 module conftest; int main() { return 0; }
5369 acx_cv_d_compiler_works
=no
5370 if test "x$GDC" != xno
; then
5371 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5372 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5373 acx_cv_d_compiler_works
=yes
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5379 $as_echo "$acx_cv_d_compiler_works" >&6; }
5380 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5387 # Do configure tests with the C++ compiler, since that's what we build with.
5389 ac_cpp
='$CXXCPP $CPPFLAGS'
5390 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5395 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5396 # optimizations to be activated explicitly by the toplevel.
5398 */prev-gcc
/xgcc
*) ;;
5399 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5400 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5406 # Determine PICFLAG for target gnatlib.
5412 # PIC is the default on some targets or must not be used.
5414 # For darwin, common symbols are not allowed in MH_DYLIB files
5416 # If we are using a compiler supporting mdynamic-no-pic
5417 # and the option has been tested as safe to add, then cancel
5418 # it here, since the code generated is incompatible with shared
5420 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5421 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5425 # PIC is the default.
5428 # PIC is the default for 64-bit PA HP-UX.
5430 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5432 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5434 i
[34567]86-*-interix[3-9]*)
5435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5436 # Instead, we relocate shared libraries at runtime.
5438 i
[34567]86-*-nto-qnx*)
5439 # QNX uses GNU C++, but need to define -shared option too, otherwise
5441 PICFLAG_FOR_TARGET
='-fPIC -shared'
5443 i
[34567]86-pc-msdosdjgpp*)
5444 # DJGPP does not support shared libraries at all.
5447 # On IA64 HP-UX, PIC is the default but the pic flag
5448 # sets the default TLS model and affects inlining.
5449 PICFLAG_FOR_TARGET
=-fPIC
5452 PICFLAG_FOR_TARGET
=-fpic
5455 # PIC is the default.
5457 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5458 # All AIX code is PIC.
5461 # Some targets support both -fPIC and -fpic, but prefer the latter.
5463 i
[34567]86-*-* | x86_64-
*-*)
5464 PICFLAG_FOR_TARGET
=-fpic
5466 # FIXME: Override -fPIC default in libgcc only?
5467 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5468 PICFLAG_FOR_TARGET
=-fpic
5470 # FIXME: Simplify to sh*-*-netbsd*?
5471 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5472 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5473 PICFLAG_FOR_TARGET
=-fpic
5475 # Default to -fPIC unless specified otherwise.
5477 PICFLAG_FOR_TARGET
=-fPIC
5481 # If the user explicitly uses -fpic/-fPIC, keep that.
5482 case "${CFLAGS_FOR_TARGET}" in
5484 PICFLAG_FOR_TARGET
=-fpic
5487 PICFLAG_FOR_TARGET
=-fPIC
5493 # -------------------------
5494 # Check C compiler features
5495 # -------------------------
5499 ac_cpp
='$CXXCPP $CPPFLAGS'
5500 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5504 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5505 if test -z "$CXXCPP"; then
5506 if ${ac_cv_prog_CXXCPP+:} false
; then :
5507 $as_echo_n "(cached) " >&6
5509 # Double quotes because CXXCPP needs to be expanded
5510 for CXXCPP
in "$CXX -E" "/lib/cpp"
5513 for ac_cxx_preproc_warn_flag
in '' yes
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5524 # include <limits.h>
5526 # include <assert.h>
5530 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5533 # Broken: fails on valid input.
5536 rm -f conftest.err conftest.i conftest.
$ac_ext
5538 # OK, works on sane cases. Now check whether nonexistent headers
5539 # can be detected and how.
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <ac_nonexistent.h>
5544 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5545 # Broken: success on invalid input.
5548 # Passes both tests.
5552 rm -f conftest.err conftest.i conftest.
$ac_ext
5555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5556 rm -f conftest.i conftest.err conftest.
$ac_ext
5557 if $ac_preproc_ok; then :
5562 ac_cv_prog_CXXCPP
=$CXXCPP
5565 CXXCPP
=$ac_cv_prog_CXXCPP
5567 ac_cv_prog_CXXCPP
=$CXXCPP
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5570 $as_echo "$CXXCPP" >&6; }
5572 for ac_cxx_preproc_warn_flag
in '' yes
5574 # Use a header file that comes with gcc, so configuring glibc
5575 # with a fresh cross-compiler works.
5576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 # <limits.h> exists even on freestanding compilers.
5578 # On the NeXT, cc -E runs the code through the compiler's parser,
5579 # not just through cpp. "Syntax error" is here to catch this case.
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5583 # include <limits.h>
5585 # include <assert.h>
5589 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5592 # Broken: fails on valid input.
5595 rm -f conftest.err conftest.i conftest.
$ac_ext
5597 # OK, works on sane cases. Now check whether nonexistent headers
5598 # can be detected and how.
5599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include <ac_nonexistent.h>
5603 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5604 # Broken: success on invalid input.
5607 # Passes both tests.
5611 rm -f conftest.err conftest.i conftest.
$ac_ext
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.i conftest.err conftest.
$ac_ext
5616 if $ac_preproc_ok; then :
5619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5621 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5622 See \`config.log' for more details" "$LINENO" 5; }
5626 ac_cpp
='$CXXCPP $CPPFLAGS'
5627 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5633 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5634 if ${ac_cv_path_GREP+:} false
; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -z "$GREP"; then
5638 ac_path_GREP_found
=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5641 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5644 test -z "$as_dir" && as_dir
=.
5645 for ac_prog
in grep ggrep
; do
5646 for ac_exec_ext
in '' $ac_executable_extensions; do
5647 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5648 as_fn_executable_p
"$ac_path_GREP" ||
continue
5649 # Check for GNU ac_path_GREP and select it if it is found.
5650 # Check for GNU $ac_path_GREP
5651 case `"$ac_path_GREP" --version 2>&1` in
5653 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5656 $as_echo_n 0123456789 >"conftest.in"
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 $as_echo 'GREP' >> "conftest.nl"
5663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5664 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5665 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5666 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_GREP
="$ac_path_GREP"
5669 ac_path_GREP_max
=$ac_count
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5674 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5677 $ac_path_GREP_found && break 3
5682 if test -z "$ac_cv_path_GREP"; then
5683 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5686 ac_cv_path_GREP
=$GREP
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5691 $as_echo "$ac_cv_path_GREP" >&6; }
5692 GREP
="$ac_cv_path_GREP"
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5696 $as_echo_n "checking for egrep... " >&6; }
5697 if ${ac_cv_path_EGREP+:} false
; then :
5698 $as_echo_n "(cached) " >&6
5700 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5701 then ac_cv_path_EGREP
="$GREP -E"
5703 if test -z "$EGREP"; then
5704 ac_path_EGREP_found
=false
5705 # Loop through the user's path and test for each of PROGNAME-LIST
5706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5707 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5710 test -z "$as_dir" && as_dir
=.
5711 for ac_prog
in egrep; do
5712 for ac_exec_ext
in '' $ac_executable_extensions; do
5713 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5714 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5715 # Check for GNU ac_path_EGREP and select it if it is found.
5716 # Check for GNU $ac_path_EGREP
5717 case `"$ac_path_EGREP" --version 2>&1` in
5719 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5722 $as_echo_n 0123456789 >"conftest.in"
5725 cat "conftest.in" "conftest.in" >"conftest.tmp"
5726 mv "conftest.tmp" "conftest.in"
5727 cp "conftest.in" "conftest.nl"
5728 $as_echo 'EGREP' >> "conftest.nl"
5729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5730 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5731 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5733 # Best one so far, save it but keep looking for a better one
5734 ac_cv_path_EGREP
="$ac_path_EGREP"
5735 ac_path_EGREP_max
=$ac_count
5737 # 10*(2^10) chars as input seems more than enough
5738 test $ac_count -gt 10 && break
5740 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5743 $ac_path_EGREP_found && break 3
5748 if test -z "$ac_cv_path_EGREP"; then
5749 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5752 ac_cv_path_EGREP
=$EGREP
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5758 $as_echo "$ac_cv_path_EGREP" >&6; }
5759 EGREP
="$ac_cv_path_EGREP"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5763 $as_echo_n "checking for ANSI C header files... " >&6; }
5764 if ${ac_cv_header_stdc+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5782 if ac_fn_cxx_try_compile
"$LINENO"; then :
5783 ac_cv_header_stdc
=yes
5785 ac_cv_header_stdc
=no
5787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 if test $ac_cv_header_stdc = yes; then
5790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797 $EGREP "memchr" >/dev
/null
2>&1; then :
5800 ac_cv_header_stdc
=no
5806 if test $ac_cv_header_stdc = yes; then
5807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 $EGREP "free" >/dev
/null
2>&1; then :
5817 ac_cv_header_stdc
=no
5823 if test $ac_cv_header_stdc = yes; then
5824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5825 if test "$cross_compiling" = yes; then :
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5832 #if ((' ' & 0x0FF) == 0x020)
5833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5836 # define ISLOWER(c) \
5837 (('a' <= (c) && (c) <= 'i') \
5838 || ('j' <= (c) && (c) <= 'r') \
5839 || ('s' <= (c) && (c) <= 'z'))
5840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 for (i = 0; i < 256; i++)
5849 if (XOR (islower (i), ISLOWER (i))
5850 || toupper (i) != TOUPPER (i))
5855 if ac_fn_cxx_try_run
"$LINENO"; then :
5858 ac_cv_header_stdc
=no
5860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5867 $as_echo "$ac_cv_header_stdc" >&6; }
5868 if test $ac_cv_header_stdc = yes; then
5870 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5875 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5876 inttypes.h stdint.h unistd.h
5878 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5881 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5882 cat >>confdefs.h
<<_ACEOF
5883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5893 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5900 if test "$MINIX" = yes; then
5902 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5905 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5908 $as_echo "#define _MINIX 1" >>confdefs.h
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5914 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5915 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5916 $as_echo_n "(cached) " >&6
5918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5921 # define __EXTENSIONS__ 1
5922 $ac_includes_default
5931 if ac_fn_cxx_try_compile
"$LINENO"; then :
5932 ac_cv_safe_to_define___extensions__
=yes
5934 ac_cv_safe_to_define___extensions__
=no
5936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5939 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5940 test $ac_cv_safe_to_define___extensions__ = yes &&
5941 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5943 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5945 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5947 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5949 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5954 ac_cpp
='$CPP $CPPFLAGS'
5955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5960 # On Suns, sometimes $CPP names a directory.
5961 if test -n "$CPP" && test -d "$CPP"; then
5964 if test -z "$CPP"; then
5965 if ${ac_cv_prog_CPP+:} false
; then :
5966 $as_echo_n "(cached) " >&6
5968 # Double quotes because CPP needs to be expanded
5969 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5972 for ac_c_preproc_warn_flag
in '' yes
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
5980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5983 # include <limits.h>
5985 # include <assert.h>
5989 if ac_fn_c_try_cpp
"$LINENO"; then :
5992 # Broken: fails on valid input.
5995 rm -f conftest.err conftest.i conftest.
$ac_ext
5997 # OK, works on sane cases. Now check whether nonexistent headers
5998 # can be detected and how.
5999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <ac_nonexistent.h>
6003 if ac_fn_c_try_cpp
"$LINENO"; then :
6004 # Broken: success on invalid input.
6007 # Passes both tests.
6011 rm -f conftest.err conftest.i conftest.
$ac_ext
6014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6015 rm -f conftest.i conftest.err conftest.
$ac_ext
6016 if $ac_preproc_ok; then :
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6029 $as_echo "$CPP" >&6; }
6031 for ac_c_preproc_warn_flag
in '' yes
6033 # Use a header file that comes with gcc, so configuring glibc
6034 # with a fresh cross-compiler works.
6035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6036 # <limits.h> exists even on freestanding compilers.
6037 # On the NeXT, cc -E runs the code through the compiler's parser,
6038 # not just through cpp. "Syntax error" is here to catch this case.
6039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6042 # include <limits.h>
6044 # include <assert.h>
6048 if ac_fn_c_try_cpp
"$LINENO"; then :
6051 # Broken: fails on valid input.
6054 rm -f conftest.err conftest.i conftest.
$ac_ext
6056 # OK, works on sane cases. Now check whether nonexistent headers
6057 # can be detected and how.
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #include <ac_nonexistent.h>
6062 if ac_fn_c_try_cpp
"$LINENO"; then :
6063 # Broken: success on invalid input.
6066 # Passes both tests.
6070 rm -f conftest.err conftest.i conftest.
$ac_ext
6073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074 rm -f conftest.i conftest.err conftest.
$ac_ext
6075 if $ac_preproc_ok; then :
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6081 See \`config.log' for more details" "$LINENO" 5; }
6085 ac_cpp
='$CXXCPP $CPPFLAGS'
6086 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6091 $as_echo_n "checking for inline... " >&6; }
6092 if ${ac_cv_c_inline+:} false
; then :
6093 $as_echo_n "(cached) " >&6
6096 for ac_kw
in inline __inline__ __inline
; do
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6101 static $ac_kw foo_t static_foo () {return 0; }
6102 $ac_kw foo_t foo () {return 0; }
6106 if ac_fn_cxx_try_compile
"$LINENO"; then :
6107 ac_cv_c_inline
=$ac_kw
6109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6110 test "$ac_cv_c_inline" != no
&& break
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6115 $as_echo "$ac_cv_c_inline" >&6; }
6117 case $ac_cv_c_inline in
6120 case $ac_cv_c_inline in
6122 *) ac_val
=$ac_cv_c_inline;;
6124 cat >>confdefs.h
<<_ACEOF
6126 #define inline $ac_val
6133 # Check whether --enable-largefile was given.
6134 if test "${enable_largefile+set}" = set; then :
6135 enableval
=$enable_largefile;
6138 if test "$enable_largefile" != no
; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6141 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6142 if ${ac_cv_sys_largefile_CC+:} false
; then :
6143 $as_echo_n "(cached) " >&6
6145 ac_cv_sys_largefile_CC
=no
6146 if test "$GCC" != yes; then
6149 # IRIX 6.2 and later do not support large files by default,
6150 # so use the C compiler's -n32 option if that helps.
6151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <sys/types.h>
6154 /* Check that off_t can represent 2**63 - 1 correctly.
6155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6156 since some C++ compilers masquerading as C compilers
6157 incorrectly reject 9223372036854775807. */
6158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6160 && LARGE_OFF_T % 2147483647 == 1)
6170 if ac_fn_cxx_try_compile
"$LINENO"; then :
6173 rm -f core conftest.err conftest.
$ac_objext
6175 if ac_fn_cxx_try_compile
"$LINENO"; then :
6176 ac_cv_sys_largefile_CC
=' -n32'; break
6178 rm -f core conftest.err conftest.
$ac_objext
6182 rm -f conftest.
$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6187 if test "$ac_cv_sys_largefile_CC" != no
; then
6188 CC
=$CC$ac_cv_sys_largefile_CC
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6193 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6194 $as_echo_n "(cached) " >&6
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <sys/types.h>
6200 /* Check that off_t can represent 2**63 - 1 correctly.
6201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6202 since some C++ compilers masquerading as C compilers
6203 incorrectly reject 9223372036854775807. */
6204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6206 && LARGE_OFF_T % 2147483647 == 1)
6216 if ac_fn_cxx_try_compile
"$LINENO"; then :
6217 ac_cv_sys_file_offset_bits
=no
; break
6219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #define _FILE_OFFSET_BITS 64
6223 #include <sys/types.h>
6224 /* Check that off_t can represent 2**63 - 1 correctly.
6225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6226 since some C++ compilers masquerading as C compilers
6227 incorrectly reject 9223372036854775807. */
6228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6230 && LARGE_OFF_T % 2147483647 == 1)
6240 if ac_fn_cxx_try_compile
"$LINENO"; then :
6241 ac_cv_sys_file_offset_bits
=64; break
6243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6244 ac_cv_sys_file_offset_bits
=unknown
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6249 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6250 case $ac_cv_sys_file_offset_bits in #(
6253 cat >>confdefs.h
<<_ACEOF
6254 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6259 if test $ac_cv_sys_file_offset_bits = unknown
; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6261 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6262 if ${ac_cv_sys_large_files+:} false
; then :
6263 $as_echo_n "(cached) " >&6
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <sys/types.h>
6269 /* Check that off_t can represent 2**63 - 1 correctly.
6270 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6271 since some C++ compilers masquerading as C compilers
6272 incorrectly reject 9223372036854775807. */
6273 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6275 && LARGE_OFF_T % 2147483647 == 1)
6285 if ac_fn_cxx_try_compile
"$LINENO"; then :
6286 ac_cv_sys_large_files
=no
; break
6288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #define _LARGE_FILES 1
6292 #include <sys/types.h>
6293 /* Check that off_t can represent 2**63 - 1 correctly.
6294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6295 since some C++ compilers masquerading as C compilers
6296 incorrectly reject 9223372036854775807. */
6297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6299 && LARGE_OFF_T % 2147483647 == 1)
6309 if ac_fn_cxx_try_compile
"$LINENO"; then :
6310 ac_cv_sys_large_files
=1; break
6312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6313 ac_cv_sys_large_files
=unknown
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6318 $as_echo "$ac_cv_sys_large_files" >&6; }
6319 case $ac_cv_sys_large_files in #(
6322 cat >>confdefs.h
<<_ACEOF
6323 #define _LARGE_FILES $ac_cv_sys_large_files
6333 # The cast to long int works around a bug in the HP C Compiler
6334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6336 # This bug is HP SR number 8606223364.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6338 $as_echo_n "checking size of ino_t... " >&6; }
6339 if ${ac_cv_sizeof_ino_t+:} false
; then :
6340 $as_echo_n "(cached) " >&6
6342 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6345 if test "$ac_cv_type_ino_t" = yes; then
6346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348 as_fn_error
77 "cannot compute sizeof (ino_t)
6349 See \`config.log' for more details" "$LINENO" 5; }
6351 ac_cv_sizeof_ino_t
=0
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6357 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6361 cat >>confdefs.h
<<_ACEOF
6362 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6366 # The cast to long int works around a bug in the HP C Compiler
6367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6369 # This bug is HP SR number 8606223364.
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6371 $as_echo_n "checking size of dev_t... " >&6; }
6372 if ${ac_cv_sizeof_dev_t+:} false
; then :
6373 $as_echo_n "(cached) " >&6
6375 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6378 if test "$ac_cv_type_dev_t" = yes; then
6379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6381 as_fn_error
77 "cannot compute sizeof (dev_t)
6382 See \`config.log' for more details" "$LINENO" 5; }
6384 ac_cv_sizeof_dev_t
=0
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6390 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6394 cat >>confdefs.h
<<_ACEOF
6395 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6400 # Select the right stat being able to handle 64bit inodes, if needed.
6401 if test "$enable_largefile" != no
; then
6402 case "$host, $build" in
6403 *-*-aix*,*|
*,*-*-aix*)
6404 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6406 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6413 # sizeof(char) is 1 by definition.
6414 # The cast to long int works around a bug in the HP C Compiler
6415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6417 # This bug is HP SR number 8606223364.
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6419 $as_echo_n "checking size of void *... " >&6; }
6420 if ${ac_cv_sizeof_void_p+:} false
; then :
6421 $as_echo_n "(cached) " >&6
6423 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6426 if test "$ac_cv_type_void_p" = yes; then
6427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6429 as_fn_error
77 "cannot compute sizeof (void *)
6430 See \`config.log' for more details" "$LINENO" 5; }
6432 ac_cv_sizeof_void_p
=0
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6438 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6442 cat >>confdefs.h
<<_ACEOF
6443 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6447 # The cast to long int works around a bug in the HP C Compiler
6448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6450 # This bug is HP SR number 8606223364.
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6452 $as_echo_n "checking size of short... " >&6; }
6453 if ${ac_cv_sizeof_short+:} false
; then :
6454 $as_echo_n "(cached) " >&6
6456 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6459 if test "$ac_cv_type_short" = yes; then
6460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6462 as_fn_error
77 "cannot compute sizeof (short)
6463 See \`config.log' for more details" "$LINENO" 5; }
6465 ac_cv_sizeof_short
=0
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6471 $as_echo "$ac_cv_sizeof_short" >&6; }
6475 cat >>confdefs.h
<<_ACEOF
6476 #define SIZEOF_SHORT $ac_cv_sizeof_short
6480 # The cast to long int works around a bug in the HP C Compiler
6481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6483 # This bug is HP SR number 8606223364.
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6485 $as_echo_n "checking size of int... " >&6; }
6486 if ${ac_cv_sizeof_int+:} false
; then :
6487 $as_echo_n "(cached) " >&6
6489 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6492 if test "$ac_cv_type_int" = yes; then
6493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6495 as_fn_error
77 "cannot compute sizeof (int)
6496 See \`config.log' for more details" "$LINENO" 5; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6504 $as_echo "$ac_cv_sizeof_int" >&6; }
6508 cat >>confdefs.h
<<_ACEOF
6509 #define SIZEOF_INT $ac_cv_sizeof_int
6513 # The cast to long int works around a bug in the HP C Compiler
6514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6516 # This bug is HP SR number 8606223364.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6518 $as_echo_n "checking size of long... " >&6; }
6519 if ${ac_cv_sizeof_long+:} false
; then :
6520 $as_echo_n "(cached) " >&6
6522 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6525 if test "$ac_cv_type_long" = yes; then
6526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6528 as_fn_error
77 "cannot compute sizeof (long)
6529 See \`config.log' for more details" "$LINENO" 5; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6537 $as_echo "$ac_cv_sizeof_long" >&6; }
6541 cat >>confdefs.h
<<_ACEOF
6542 #define SIZEOF_LONG $ac_cv_sizeof_long
6546 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6547 if test "x$ac_cv_type_long_long" = xyes
; then :
6549 cat >>confdefs.h
<<_ACEOF
6550 #define HAVE_LONG_LONG 1
6553 # The cast to long int works around a bug in the HP C Compiler
6554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6556 # This bug is HP SR number 8606223364.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6558 $as_echo_n "checking size of long long... " >&6; }
6559 if ${ac_cv_sizeof_long_long+:} false
; then :
6560 $as_echo_n "(cached) " >&6
6562 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6565 if test "$ac_cv_type_long_long" = yes; then
6566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6568 as_fn_error
77 "cannot compute sizeof (long long)
6569 See \`config.log' for more details" "$LINENO" 5; }
6571 ac_cv_sizeof_long_long
=0
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6577 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6581 cat >>confdefs.h
<<_ACEOF
6582 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6588 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6589 case $ac_cv_c_int8_t in #(
6593 cat >>confdefs.h
<<_ACEOF
6594 #define int8_t $ac_cv_c_int8_t
6599 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6600 case $ac_cv_c_int16_t in #(
6604 cat >>confdefs.h
<<_ACEOF
6605 #define int16_t $ac_cv_c_int16_t
6610 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6611 case $ac_cv_c_int32_t in #(
6615 cat >>confdefs.h
<<_ACEOF
6616 #define int32_t $ac_cv_c_int32_t
6621 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6622 case $ac_cv_c_int64_t in #(
6626 cat >>confdefs.h
<<_ACEOF
6627 #define int64_t $ac_cv_c_int64_t
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6634 $as_echo_n "checking for unsigned long long int... " >&6; }
6635 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6636 $as_echo_n "(cached) " >&6
6638 ac_cv_type_unsigned_long_long_int
=yes
6639 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 /* For now, do not test the preprocessor; as of 2007 there are too many
6644 implementations with broken preprocessors. Perhaps this can
6645 be revisited in 2012. In the meantime, code should not expect
6646 #if to work with literals wider than 32 bits. */
6647 /* Test literals. */
6648 long long int ll = 9223372036854775807ll;
6649 long long int nll = -9223372036854775807LL;
6650 unsigned long long int ull = 18446744073709551615ULL;
6651 /* Test constant expressions. */
6652 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6654 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6660 /* Test availability of runtime routines for shift and division. */
6661 long long int llmax = 9223372036854775807ll;
6662 unsigned long long int ullmax = 18446744073709551615ull;
6663 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6664 | (llmax / ll) | (llmax % ll)
6665 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6666 | (ullmax / ull) | (ullmax % ull));
6672 if ac_fn_cxx_try_link
"$LINENO"; then :
6675 ac_cv_type_unsigned_long_long_int
=no
6677 rm -f core conftest.err conftest.
$ac_objext \
6678 conftest
$ac_exeext conftest.
$ac_ext
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6682 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6683 if test $ac_cv_type_unsigned_long_long_int = yes; then
6685 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6692 $as_echo_n "checking for long long int... " >&6; }
6693 if ${ac_cv_type_long_long_int+:} false
; then :
6694 $as_echo_n "(cached) " >&6
6696 ac_cv_type_long_long_int
=yes
6697 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6698 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6699 if test $ac_cv_type_long_long_int = yes; then
6700 if test "$cross_compiling" = yes; then :
6703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6708 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6709 # define LLONG_MAX (HALF - 1 + HALF)
6714 long long int n = 1;
6718 long long int m = n << i;
6721 if (LLONG_MAX / 2 < m)
6729 if ac_fn_cxx_try_run
"$LINENO"; then :
6732 ac_cv_type_long_long_int
=no
6734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6742 $as_echo "$ac_cv_type_long_long_int" >&6; }
6743 if test $ac_cv_type_long_long_int = yes; then
6745 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6751 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6752 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6754 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6757 test $ac_cv_type_long_long_int = yes \
6758 && ac_type
='long long int' \
6759 || ac_type
='long int'
6761 cat >>confdefs.h
<<_ACEOF
6762 #define intmax_t $ac_type
6769 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6770 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6772 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6775 for ac_type
in 'int' 'long int' 'long long int'; do
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 $ac_includes_default
6782 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6784 return test_array [0];
6790 if ac_fn_cxx_try_compile
"$LINENO"; then :
6792 cat >>confdefs.h
<<_ACEOF
6793 #define intptr_t $ac_type
6798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6799 test -z "$ac_type" && break
6804 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6805 case $ac_cv_c_uint8_t in #(
6809 $as_echo "#define _UINT8_T 1" >>confdefs.h
6812 cat >>confdefs.h
<<_ACEOF
6813 #define uint8_t $ac_cv_c_uint8_t
6818 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6819 case $ac_cv_c_uint16_t in #(
6824 cat >>confdefs.h
<<_ACEOF
6825 #define uint16_t $ac_cv_c_uint16_t
6830 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6831 case $ac_cv_c_uint32_t in #(
6835 $as_echo "#define _UINT32_T 1" >>confdefs.h
6838 cat >>confdefs.h
<<_ACEOF
6839 #define uint32_t $ac_cv_c_uint32_t
6844 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6845 case $ac_cv_c_uint64_t in #(
6849 $as_echo "#define _UINT64_T 1" >>confdefs.h
6852 cat >>confdefs.h
<<_ACEOF
6853 #define uint64_t $ac_cv_c_uint64_t
6860 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6861 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6863 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6866 test $ac_cv_type_unsigned_long_long_int = yes \
6867 && ac_type
='unsigned long long int' \
6868 || ac_type
='unsigned long int'
6870 cat >>confdefs.h
<<_ACEOF
6871 #define uintmax_t $ac_type
6878 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6879 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6881 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6884 for ac_type
in 'unsigned int' 'unsigned long int' \
6885 'unsigned long long int'; do
6886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 $ac_includes_default
6892 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6894 return test_array [0];
6900 if ac_fn_cxx_try_compile
"$LINENO"; then :
6902 cat >>confdefs.h
<<_ACEOF
6903 #define uintptr_t $ac_type
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 test -z "$ac_type" && break
6926 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6927 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6930 # check what underlying integer type int64_t uses
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6932 $as_echo_n "checking for int64_t underlying type... " >&6; }
6933 if ${ac_cv_int64_t_type+:} false
; then :
6934 $as_echo_n "(cached) " >&6
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 #ifdef HAVE_STDINT_H
6943 template <typename T> struct X { };
6945 struct X<long> { typedef long t; };
6955 if ac_fn_cxx_try_compile
"$LINENO"; then :
6956 ac_cv_int64_t_type
=long
6958 ac_cv_int64_t_type
="long long"
6960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6963 $as_echo "$ac_cv_int64_t_type" >&6; }
6964 if test "$ac_cv_int64_t_type" = "long"; then
6966 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 #ifdef HAVE_STDINT_H
6975 template <typename T> struct X { };
6977 struct X<long long> { typedef long long t; };
6987 if ac_fn_cxx_try_compile
"$LINENO"; then :
6990 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6996 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6997 if ${ac_cv_std_swap_in_utility+:} false
; then :
6998 $as_echo_n "(cached) " >&6
7001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7009 int a, b; std::swap(a,b);
7014 if ac_fn_cxx_try_compile
"$LINENO"; then :
7015 ac_cv_std_swap_in_utility
=yes
7017 ac_cv_std_swap_in_utility
=no
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7022 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7023 if test $ac_cv_std_swap_in_utility = yes; then
7025 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7029 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7030 # If the host compiler is affected by the bug, and we build with optimization
7031 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7032 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7033 # Since there is no reliable feature check for the presence of this bug,
7034 # we simply use a GCC version number check. (This should never trigger for
7035 # stages 2 or 3 of a native bootstrap.)
7037 if test "$GCC" = yes; then
7038 saved_CXXFLAGS
="$CXXFLAGS"
7040 # The following test compilation will succeed if and only if $CXX accepts
7041 # -fno-strict-aliasing *and* is older than GCC 4.3.
7042 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7044 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7048 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7049 #error compiler not affected by placement new aliasing bug
7053 if ac_fn_cxx_try_compile
"$LINENO"; then :
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7055 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7062 CXXFLAGS
="$saved_CXXFLAGS"
7068 # ---------------------
7069 # Warnings and checking
7070 # ---------------------
7072 # Check $CC warning features (if it's GCC).
7073 # We want to use -pedantic, but we don't want warnings about
7076 # * overlong strings
7077 # * C++11 narrowing conversions in { }
7078 # So, we only use -pedantic if we can disable those warnings.
7080 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7081 # Check whether --enable-build-format-warnings was given.
7082 if test "${enable_build_format_warnings+set}" = set; then :
7083 enableval
=$enable_build_format_warnings;
7085 enable_build_format_warnings
=yes
7088 if test $enable_build_format_warnings = no
; then :
7094 ac_cpp
='$CXXCPP $CPPFLAGS'
7095 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7100 save_CXXFLAGS
="$CXXFLAGS"
7101 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7102 # Do the check with the no- prefix removed since gcc silently
7103 # accepts any -Wno-* option on purpose
7104 case $real_option in
7105 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7106 *) option
=$real_option ;;
7108 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7111 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7112 if eval \
${$as_acx_Woption+:} false
; then :
7113 $as_echo_n "(cached) " >&6
7116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7127 if ac_fn_cxx_try_compile
"$LINENO"; then :
7128 eval "$as_acx_Woption=yes"
7130 eval "$as_acx_Woption=no"
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 eval ac_res
=\$
$as_acx_Woption
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7137 $as_echo "$ac_res" >&6; }
7138 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7139 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7142 CXXFLAGS
="$save_CXXFLAGS"
7144 ac_cpp
='$CXXCPP $CPPFLAGS'
7145 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7152 ac_cpp
='$CPP $CPPFLAGS'
7153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7158 save_CFLAGS
="$CFLAGS"
7159 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7160 # Do the check with the no- prefix removed since gcc silently
7161 # accepts any -Wno-* option on purpose
7162 case $real_option in
7163 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7164 *) option
=$real_option ;;
7166 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7169 $as_echo_n "checking whether $CC supports $option... " >&6; }
7170 if eval \
${$as_acx_Woption+:} false
; then :
7171 $as_echo_n "(cached) " >&6
7174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7185 if ac_fn_c_try_compile
"$LINENO"; then :
7186 eval "$as_acx_Woption=yes"
7188 eval "$as_acx_Woption=no"
7190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7193 eval ac_res
=\$
$as_acx_Woption
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7195 $as_echo "$ac_res" >&6; }
7196 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7197 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7200 CFLAGS
="$save_CFLAGS"
7202 ac_cpp
='$CXXCPP $CPPFLAGS'
7203 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7209 ac_cpp
='$CXXCPP $CPPFLAGS'
7210 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7215 save_CXXFLAGS
="$CXXFLAGS"
7216 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7217 # Do the check with the no- prefix removed since gcc silently
7218 # accepts any -Wno-* option on purpose
7219 case $real_option in
7220 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7221 *) option
=$real_option ;;
7223 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7226 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7227 if eval \
${$as_acx_Woption+:} false
; then :
7228 $as_echo_n "(cached) " >&6
7231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7242 if ac_fn_cxx_try_compile
"$LINENO"; then :
7243 eval "$as_acx_Woption=yes"
7245 eval "$as_acx_Woption=no"
7247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 eval ac_res
=\$
$as_acx_Woption
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7252 $as_echo "$ac_res" >&6; }
7253 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7254 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7257 CXXFLAGS
="$save_CXXFLAGS"
7259 ac_cpp
='$CXXCPP $CPPFLAGS'
7260 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7266 ac_cpp
='$CPP $CPPFLAGS'
7267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7272 save_CFLAGS
="$CFLAGS"
7273 for real_option
in -Wold-style-definition -Wc++-compat; do
7274 # Do the check with the no- prefix removed since gcc silently
7275 # accepts any -Wno-* option on purpose
7276 case $real_option in
7277 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7278 *) option
=$real_option ;;
7280 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7283 $as_echo_n "checking whether $CC supports $option... " >&6; }
7284 if eval \
${$as_acx_Woption+:} false
; then :
7285 $as_echo_n "(cached) " >&6
7288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7299 if ac_fn_c_try_compile
"$LINENO"; then :
7300 eval "$as_acx_Woption=yes"
7302 eval "$as_acx_Woption=no"
7304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7307 eval ac_res
=\$
$as_acx_Woption
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7309 $as_echo "$ac_res" >&6; }
7310 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7311 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7314 CFLAGS
="$save_CFLAGS"
7316 ac_cpp
='$CXXCPP $CPPFLAGS'
7317 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7323 ac_cpp
='$CXXCPP $CPPFLAGS'
7324 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7328 # Do the check with the no- prefix removed from the warning options
7329 # since gcc silently accepts any -Wno-* option on purpose
7330 if test "$GXX" = yes; then :
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7332 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7333 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7334 $as_echo_n "(cached) " >&6
7336 save_CXXFLAGS
="$CXXFLAGS"
7337 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_cxx_try_compile
"$LINENO"; then :
7350 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7352 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 CXXFLAGS
="$save_CXXFLAGS"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7358 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7359 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7360 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7365 ac_cpp
='$CXXCPP $CPPFLAGS'
7366 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7372 ac_cpp
='$CXXCPP $CPPFLAGS'
7373 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7377 # Check whether --enable-werror-always was given.
7378 if test "${enable_werror_always+set}" = set; then :
7379 enableval
=$enable_werror_always;
7381 enable_werror_always
=no
7384 if test $enable_werror_always = yes; then :
7385 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7389 ac_cpp
='$CXXCPP $CPPFLAGS'
7390 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7396 # The above macros do nothing if the compiler is not GCC. However, the
7397 # Makefile has more goo to add other flags, so these variables are used
7398 # to enable warnings only for GCC.
7401 if test "x$GCC" = "xyes"; then
7402 warn_cflags
='$(GCC_WARN_CFLAGS)'
7403 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7408 # Disable exceptions and RTTI if building with g++
7410 ac_cpp
='$CPP $CPPFLAGS'
7411 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7416 save_CFLAGS
="$CFLAGS"
7417 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7418 # Do the check with the no- prefix removed since gcc silently
7419 # accepts any -Wno-* option on purpose
7420 case $real_option in
7421 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7422 *) option
=$real_option ;;
7424 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7427 $as_echo_n "checking whether $CC supports $option... " >&6; }
7428 if eval \
${$as_acx_Woption+:} false
; then :
7429 $as_echo_n "(cached) " >&6
7432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7443 if ac_fn_c_try_compile
"$LINENO"; then :
7444 eval "$as_acx_Woption=yes"
7446 eval "$as_acx_Woption=no"
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 eval ac_res
=\$
$as_acx_Woption
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7453 $as_echo "$ac_res" >&6; }
7454 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7455 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7458 CFLAGS
="$save_CFLAGS"
7460 ac_cpp
='$CXXCPP $CPPFLAGS'
7461 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7467 # Enable expensive internal checks
7469 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7473 # Check whether --enable-checking was given.
7474 if test "${enable_checking+set}" = set; then :
7475 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7478 # Determine the default checks.
7479 if test x
$is_release = x
; then
7480 ac_checking_flags
=yes,extra
7482 ac_checking_flags
=release
7486 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7487 for check
in release
$ac_checking_flags
7490 # these set all the flags to specific states
7491 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7492 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7493 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7494 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7495 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7496 ac_types_checking
=1 ;;
7497 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7498 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7499 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7500 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7501 ac_tree_checking
= ; ac_valgrind_checking
= ;
7502 ac_types_checking
= ;;
7503 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7504 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7505 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7506 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7507 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7508 ac_types_checking
=1 ;;
7509 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7510 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7511 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7512 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7513 ac_tree_checking
= ; ac_valgrind_checking
= ;
7514 ac_types_checking
= ;;
7515 # these enable particular checks
7516 assert
) ac_assert_checking
=1 ;;
7517 df
) ac_df_checking
=1 ;;
7518 extra
) ac_extra_checking
=1 ;;
7519 fold) ac_fold_checking
=1 ;;
7520 gc
) ac_gc_checking
=1 ;;
7521 gcac
) ac_gc_always_collect
=1 ;;
7522 gimple
) ac_gimple_checking
=1 ;;
7523 misc
) ac_checking
=1 ;;
7524 rtl
) ac_rtl_checking
=1 ;;
7525 rtlflag
) ac_rtlflag_checking
=1 ;;
7526 runtime
) ac_runtime_checking
=1 ;;
7527 tree
) ac_tree_checking
=1 ;;
7528 types
) ac_types_checking
=1 ;;
7529 valgrind
) ac_valgrind_checking
=1 ;;
7530 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7536 if test x
$ac_checking != x
; then
7538 $as_echo "#define CHECKING_P 1" >>confdefs.h
7540 nocommon_flag
=-fno-common
7542 $as_echo "#define CHECKING_P 0" >>confdefs.h
7546 if test x
$ac_extra_checking != x
; then
7548 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7551 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7554 if test x
$ac_df_checking != x
; then
7556 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7559 if test x
$ac_assert_checking != x
; then
7561 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7564 if test x
$ac_gimple_checking != x
; then
7566 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7570 if test x
$ac_runtime_checking != x
; then
7572 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7575 if test x
$ac_tree_checking != x
; then
7577 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7581 if test x
$ac_types_checking != x
; then
7583 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7587 if test x
$ac_rtl_checking != x
; then
7589 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7592 if test x
$ac_rtlflag_checking != x
; then
7594 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7597 if test x
$ac_gc_checking != x
; then
7599 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7602 if test x
$ac_gc_always_collect != x
; then
7604 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7607 if test x
$ac_fold_checking != x
; then
7609 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7612 valgrind_path_defines
=
7615 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7616 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7624 # It is certainly possible that there's valgrind but no valgrind.h.
7625 # GCC relies on making annotations so we must have both.
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7627 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 #include <valgrind/memcheck.h>
7631 #ifndef VALGRIND_DISCARD
7632 #error VALGRIND_DISCARD not defined
7635 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7636 gcc_cv_header_valgrind_memcheck_h
=yes
7638 gcc_cv_header_valgrind_memcheck_h
=no
7640 rm -f conftest.err conftest.i conftest.
$ac_ext
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7642 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7644 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <memcheck.h>
7648 #ifndef VALGRIND_DISCARD
7649 #error VALGRIND_DISCARD not defined
7652 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7653 gcc_cv_header_memcheck_h
=yes
7655 gcc_cv_header_memcheck_h
=no
7657 rm -f conftest.err conftest.i conftest.
$ac_ext
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7659 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7660 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7662 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7665 if test $gcc_cv_header_memcheck_h = yes; then
7667 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7671 if test x
$ac_valgrind_checking != x
; then
7673 # Prepare PATH_SEPARATOR.
7674 # The user is always right.
7675 if test "${PATH_SEPARATOR+set}" != set; then
7676 echo "#! /bin/sh" >conf$$.sh
7677 echo "exit 0" >>conf$$.sh
7679 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7687 # Find out how to test for executable files. Don't use a zero-byte file,
7688 # as systems may use methods other than mode bits to determine executability.
7689 cat >conf$$.
file <<_ASEOF
7693 chmod +x conf$$.
file
7694 if test -x conf$$.
file >/dev
/null
2>&1; then
7695 ac_executable_p
="test -x"
7697 ac_executable_p
="test -f"
7701 # Extract the first word of "valgrind", so it can be a program name with args.
7702 set dummy valgrind
; ac_word
=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_path_valgrind_path+:} false
; then :
7706 $as_echo_n "(cached) " >&6
7708 case "$valgrind_path" in
7710 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7713 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7714 for ac_dir
in $PATH; do
7716 test -z "$ac_dir" && ac_dir
=.
7717 for ac_exec_ext
in '' $ac_executable_extensions; do
7718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7719 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7720 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7730 valgrind_path
="$ac_cv_path_valgrind_path"
7731 if test -n "$valgrind_path"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7733 $as_echo "$valgrind_path" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7739 if test "x$valgrind_path" = "x" \
7740 ||
(test $have_valgrind_h = no \
7741 && test $gcc_cv_header_memcheck_h = no \
7742 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7743 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7745 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7746 valgrind_command
="$valgrind_path -q"
7748 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7754 # Enable code coverage collection
7755 # Check whether --enable-coverage was given.
7756 if test "${enable_coverage+set}" = set; then :
7757 enableval
=$enable_coverage; case "${enableval}" in
7759 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7762 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7765 # a.k.a. --disable-coverage
7769 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7778 # Check whether --enable-gather-detailed-mem-stats was given.
7779 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7780 enableval
=$enable_gather_detailed_mem_stats;
7782 enable_gather_detailed_mem_stats
=no
7785 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7787 cat >>confdefs.h
<<_ACEOF
7788 #define GATHER_STATISTICS $gather_stats
7792 # Check whether --enable-valgrind-annotations was given.
7793 if test "${enable_valgrind_annotations+set}" = set; then :
7794 enableval
=$enable_valgrind_annotations;
7796 enable_valgrind_annotations
=no
7799 if test x
$enable_valgrind_annotations != xno \
7800 ||
test x
$ac_valgrind_checking != x
; then
7801 if (test $have_valgrind_h = no \
7802 && test $gcc_cv_header_memcheck_h = no \
7803 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7804 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7807 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7811 # -------------------------------
7812 # Miscenalleous configure options
7813 # -------------------------------
7815 # Determine whether or not multilibs are enabled.
7816 # Check whether --enable-multilib was given.
7817 if test "${enable_multilib+set}" = set; then :
7818 enableval
=$enable_multilib;
7825 # Determine whether or not multiarch is enabled.
7826 # Check whether --enable-multiarch was given.
7827 if test "${enable_multiarch+set}" = set; then :
7828 enableval
=$enable_multiarch; case "${enableval}" in
7829 yes|no|auto
) enable_multiarch
=$enableval;;
7830 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7833 enable_multiarch
=auto
7836 if test x
${enable_multiarch} = xauto
; then
7837 if test x
${with_native_system_header_dir} != x
; then
7838 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7841 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7842 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7846 if test x
${enable_multiarch} = xyes
; then
7848 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7852 $as_echo_n "checking for multiarch configuration... " >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7855 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7857 # needed for setting the multiarch name for soft-float/hard-float ABIs
7861 # default stack clash protection guard size as power of twos in bytes.
7862 # Please keep these in sync with params.def.
7866 # Keep the default value when the option is not used to 0, this allows us to
7867 # distinguish between the cases where the user specifially set a value via
7868 # configure and when the normal default value is used.
7870 # Check whether --with-stack-clash-protection-guard-size was given.
7871 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7872 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7874 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7877 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7878 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7879 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7880 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
7884 cat >>confdefs.h
<<_ACEOF
7885 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7889 # Enable __cxa_atexit for C++.
7890 # Check whether --enable-__cxa_atexit was given.
7891 if test "${enable___cxa_atexit+set}" = set; then :
7892 enableval
=$enable___cxa_atexit;
7896 # Enable C extension for decimal float if target supports it.
7898 # Check whether --enable-decimal-float was given.
7899 if test "${enable_decimal_float+set}" = set; then :
7900 enableval
=$enable_decimal_float;
7901 case $enable_decimal_float in
7902 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7903 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7904 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7911 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7912 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7913 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7914 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7915 enable_decimal_float
=yes
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7919 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7920 enable_decimal_float
=no
7927 # x86's use BID format instead of DPD
7928 case x
$enable_decimal_float in
7931 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7932 enable_decimal_float
=bid
7935 enable_decimal_float
=dpd
7938 default_decimal_float
=$enable_decimal_float
7941 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7942 # dependency on libdecnumber.
7943 default_decimal_float
=dpd
7950 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7952 cat >>confdefs.h
<<_ACEOF
7953 #define ENABLE_DECIMAL_FLOAT $dfp
7957 # Use default_decimal_float for dependency.
7958 enable_decimal_float
=$default_decimal_float
7960 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7962 cat >>confdefs.h
<<_ACEOF
7963 #define ENABLE_DECIMAL_BID_FORMAT $bid
7967 # Enable C extension for fixed-point arithmetic.
7968 # Check whether --enable-fixed-point was given.
7969 if test "${enable_fixed_point+set}" = set; then :
7970 enableval
=$enable_fixed_point;
7975 enable_fixed_point
=yes
7979 enable_fixed_point
=yes
7982 enable_fixed_point
=yes
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7986 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7987 enable_fixed_point
=no
7995 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7997 cat >>confdefs.h
<<_ACEOF
7998 #define ENABLE_FIXED_POINT $fixedpoint
8003 # Pass with no value to take the default
8004 # Pass with a value to specify a thread package
8005 # Check whether --enable-threads was given.
8006 if test "${enable_threads+set}" = set; then :
8007 enableval
=$enable_threads;
8013 # Check whether --enable-tls was given.
8014 if test "${enable_tls+set}" = set; then :
8015 enableval
=$enable_tls;
8018 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8019 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8027 # Check whether --enable-vtable-verify was given.
8028 if test "${enable_vtable_verify+set}" = set; then :
8029 enableval
=$enable_vtable_verify;
8031 enable_vtable_verify
=no
8034 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8036 cat >>confdefs.h
<<_ACEOF
8037 #define ENABLE_VTABLE_VERIFY $vtable_verify
8041 # Check whether --enable-analyzer was given.
8042 if test "${enable_analyzer+set}" = set; then :
8043 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8053 cat >>confdefs.h
<<_ACEOF
8054 #define ENABLE_ANALYZER $analyzer
8058 # Check whether --enable-objc-gc was given.
8059 if test "${enable_objc_gc+set}" = set; then :
8060 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8071 # Check whether --with-dwarf2 was given.
8072 if test "${with_dwarf2+set}" = set; then :
8073 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8079 # Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081 enableval
=$enable_shared;
8082 case $enable_shared in
8086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8087 for pkg
in $enableval; do
8088 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8102 # Check whether --enable-gcov was given.
8103 if test "${enable_gcov+set}" = set; then :
8104 enableval
=$enable_gcov;
8120 # Check whether --with-specs was given.
8121 if test "${with_specs+set}" = set; then :
8122 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8132 # Check whether --with-pkgversion was given.
8133 if test "${with_pkgversion+set}" = set; then :
8134 withval
=$with_pkgversion; case "$withval" in
8135 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8137 *) PKGVERSION
="($withval) " ;;
8148 # Check whether --with-bugurl was given.
8149 if test "${with_bugurl+set}" = set; then :
8150 withval
=$with_bugurl; case "$withval" in
8151 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8154 *) BUGURL
="$withval"
8158 BUGURL
="https://gcc.gnu.org/bugs/"
8168 REPORT_BUGS_TO
="<$BUGURL>"
8169 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8176 # Allow overriding the default URL for documentation
8178 # Check whether --with-documentation-root-url was given.
8179 if test "${with_documentation_root_url+set}" = set; then :
8180 withval
=$with_documentation_root_url; case "$withval" in
8181 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8182 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8183 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8184 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8187 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8192 cat >>confdefs.h
<<_ACEOF
8193 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8197 # Allow overriding the default URL for GCC changes
8199 # Check whether --with-changes-root-url was given.
8200 if test "${with_changes_root_url+set}" = set; then :
8201 withval
=$with_changes_root_url; case "$withval" in
8202 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8203 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8204 */) CHANGES_ROOT_URL
="$withval" ;;
8205 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8208 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8213 cat >>confdefs.h
<<_ACEOF
8214 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8218 # Sanity check enable_languages in case someone does not run the toplevel
8219 # configure # script.
8220 # Check whether --enable-languages was given.
8221 if test "${enable_languages+set}" = set; then :
8222 enableval
=$enable_languages; case ,${enable_languages}, in
8224 # go safe -- we cannot be much sure without the toplevel
8226 # analysis of which target libs are present and usable
8230 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8235 enable_languages
=c
,${enable_languages}
8243 # If top-level libada has been disabled, then wire in install-gnatlib
8244 # invocation with `make install', so that one can build and install
8245 # the library manually with `make -C gcc all gnatlib gnattools install'.
8246 if test x
"$enable_libada" = xno
; then
8247 gnat_install_lib
=gnat-install-lib
8253 if test x
"$enable_as_accelerator_for" != x
; then
8255 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8257 enable_as_accelerator
=yes
8258 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8259 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8260 accel_dir_suffix
=/accel
/${target_noncanonical}
8261 real_target_noncanonical
=${enable_as_accelerator_for}
8267 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8268 tgt
=`echo $tgt | sed 's/=.*//'`
8273 omp_device_property
=omp-device-properties-gcn
8274 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8277 omp_device_property
=omp-device-properties-nvptx
8278 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8281 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8284 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8285 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8287 if test x
"$offload_targets" = x
; then
8288 offload_targets
=$tgt
8290 offload_targets
="$offload_targets,$tgt"
8297 cat >>confdefs.h
<<_ACEOF
8298 #define OFFLOAD_TARGETS "$offload_targets"
8301 if test x
"$enable_offloading" != x
; then
8303 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8307 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8311 if test "x$enable_offload_defaulted" = xyes
; then
8313 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8318 # Check whether --with-multilib-list was given.
8319 if test "${with_multilib_list+set}" = set; then :
8320 withval
=$with_multilib_list; :
8322 with_multilib_list
=default
8327 # Check whether --with-multilib-generator was given.
8328 if test "${with_multilib_generator+set}" = set; then :
8329 withval
=$with_multilib_generator; :
8331 with_multilib_generator
=default
8335 # -------------------------
8336 # Checks for other programs
8337 # -------------------------
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8342 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8343 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8344 $as_echo_n "(cached) " >&6
8346 cat >conftest.
make <<\_ACEOF
8349 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8354 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8356 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8360 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8362 $as_echo "yes" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 SET_MAKE
="MAKE=${MAKE-make}"
8371 # Find some useful tools
8372 for ac_prog
in gawk mawk nawk
awk
8374 # Extract the first word of "$ac_prog", so it can be a program name with args.
8375 set dummy
$ac_prog; ac_word
=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_AWK+:} false
; then :
8379 $as_echo_n "(cached) " >&6
8381 if test -n "$AWK"; then
8382 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir
=.
8389 for ac_exec_ext
in '' $ac_executable_extensions; do
8390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_AWK
="$ac_prog"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 if test -n "$AWK"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8404 $as_echo "$AWK" >&6; }
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8411 test -n "$AWK" && break
8414 # We need awk to create options.cc and options.h.
8415 # Bail out if it's missing.
8417 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8421 $as_echo_n "checking whether ln -s works... " >&6; }
8422 if ${gcc_cv_prog_LN_S+:} false
; then :
8423 $as_echo_n "(cached) " >&6
8425 rm -f conftestdata_t
8426 echo >conftestdata_f
8427 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8429 gcc_cv_prog_LN_S
="ln -s"
8431 if ln conftestdata_f conftestdata_t
2>/dev
/null
8435 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8437 gcc_cv_prog_LN_S
="cp -p"
8443 rm -f conftestdata_f conftestdata_t
8446 LN_S
="$gcc_cv_prog_LN_S"
8447 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8449 $as_echo "yes" >&6; }
8451 if test "$gcc_cv_prog_LN_S" = "ln"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8453 $as_echo "no, using ln" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8456 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8461 $as_echo_n "checking whether ln works... " >&6; }
8462 if ${acx_cv_prog_LN+:} false
; then :
8463 $as_echo_n "(cached) " >&6
8465 rm -f conftestdata_t
8466 echo >conftestdata_f
8467 if ln conftestdata_f conftestdata_t
2>/dev
/null
8473 rm -f conftestdata_f conftestdata_t
8476 if test $acx_cv_prog_LN = no
; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8479 $as_echo "no, using $LN" >&6; }
8481 LN
="$acx_cv_prog_LN"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8486 if test -n "$ac_tool_prefix"; then
8487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8488 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_RANLIB+:} false
; then :
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$RANLIB"; then
8495 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir
=.
8502 for ac_exec_ext
in '' $ac_executable_extensions; do
8503 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 RANLIB
=$ac_cv_prog_RANLIB
8515 if test -n "$RANLIB"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8517 $as_echo "$RANLIB" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8525 if test -z "$ac_cv_prog_RANLIB"; then
8526 ac_ct_RANLIB
=$RANLIB
8527 # Extract the first word of "ranlib", so it can be a program name with args.
8528 set dummy ranlib
; ac_word
=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8532 $as_echo_n "(cached) " >&6
8534 if test -n "$ac_ct_RANLIB"; then
8535 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir
=.
8542 for ac_exec_ext
in '' $ac_executable_extensions; do
8543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8555 if test -n "$ac_ct_RANLIB"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8557 $as_echo "$ac_ct_RANLIB" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 if test "x$ac_ct_RANLIB" = x
; then
8566 case $cross_compiling:$ac_tool_warned in
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned
=yes ;;
8572 RANLIB
=$ac_ct_RANLIB
8575 RANLIB
="$ac_cv_prog_RANLIB"
8581 # Find a good install program. We prefer a C program (faster),
8582 # so one script is as good as another. But avoid the broken or
8583 # incompatible versions:
8584 # SysV /etc/install, /usr/sbin/install
8585 # SunOS /usr/etc/install
8586 # IRIX /sbin/install
8588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8590 # ./install, which can be erroneously created by make from ./install.sh.
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8592 $as_echo_n "checking for a BSD compatible install... " >&6; }
8593 if test -z "$INSTALL"; then
8594 if ${ac_cv_path_install+:} false
; then :
8595 $as_echo_n "(cached) " >&6
8597 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8598 for ac_dir
in $PATH; do
8599 # Account for people who put trailing slashes in PATH elements.
8601 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8603 # OSF1 and SCO ODT 3.0 have their own names for install.
8604 for ac_prog
in ginstall scoinst
install; do
8605 if test -f $ac_dir/$ac_prog; then
8606 if test $ac_prog = install &&
8607 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8608 # AIX install. It has an incompatible calling convention.
8609 # OSF/1 installbsd also uses dspmsg, but is usable.
8612 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8623 if test "${ac_cv_path_install+set}" = set; then
8624 INSTALL
="$ac_cv_path_install"
8626 # As a last resort, use the slow shell script. We don't cache a
8627 # path for INSTALL within a source directory, because that will
8628 # break other packages using the cache if that directory is
8629 # removed, or if the path is relative.
8630 INSTALL
="$ac_install_sh"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8634 $as_echo "$INSTALL" >&6; }
8636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8637 # It thinks the first close brace ends the variable substitution.
8638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8640 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8643 # See if cmp has --ignore-initial.
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8645 $as_echo_n "checking for cmp's capabilities... " >&6; }
8646 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8647 $as_echo_n "(cached) " >&6
8651 gcc_cv_prog_cmp_skip
=slowcompare
8652 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8653 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8656 gcc_cv_prog_cmp_skip
=gnucompare
8659 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8660 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8661 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8664 gcc_cv_prog_cmp_skip
=fastcompare
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8672 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8673 make_compare_target
=$gcc_cv_prog_cmp_skip
8677 # See if we have the mktemp command.
8678 # Extract the first word of "mktemp", so it can be a program name with args.
8679 set dummy mktemp
; ac_word
=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8683 $as_echo_n "(cached) " >&6
8685 if test -n "$have_mktemp_command"; then
8686 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8692 test -z "$as_dir" && as_dir
=.
8693 for ac_exec_ext
in '' $ac_executable_extensions; do
8694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_have_mktemp_command
="yes"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8706 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8707 if test -n "$have_mktemp_command"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8709 $as_echo "$have_mktemp_command" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 # See if makeinfo has been installed and is modern enough
8718 # that we can use it.
8720 # Extract the first word of "makeinfo", so it can be a program name with args.
8721 set dummy makeinfo
; ac_word
=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8725 $as_echo_n "(cached) " >&6
8727 if test -n "$MAKEINFO"; then
8728 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8734 test -z "$as_dir" && as_dir
=.
8735 for ac_exec_ext
in '' $ac_executable_extensions; do
8736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_MAKEINFO
="makeinfo"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 MAKEINFO
=$ac_cv_prog_MAKEINFO
8748 if test -n "$MAKEINFO"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8750 $as_echo "$MAKEINFO" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8757 if test -n "$MAKEINFO"; then
8758 # Found it, now check the version.
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8760 $as_echo_n "checking for modern makeinfo... " >&6; }
8761 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8762 $as_echo_n "(cached) " >&6
8764 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8765 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8767 case $ac_prog_version in
8768 '') gcc_cv_prog_makeinfo_modern
=no
;;
8769 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8770 *) gcc_cv_prog_makeinfo_modern
=no
;;
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8775 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8777 gcc_cv_prog_makeinfo_modern
=no
8779 if test $gcc_cv_prog_makeinfo_modern = no
; then
8780 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8783 if test $gcc_cv_prog_makeinfo_modern = no
; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8785 *** Makeinfo is missing or too old.
8786 *** Info documentation will not be built." >&5
8787 $as_echo "$as_me: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&2;}
8796 # Is pod2man recent enough to regenerate manpages?
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8798 $as_echo_n "checking for recent Pod::Man... " >&6; }
8799 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8802 GENERATED_MANPAGES
=generated-manpages
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8815 # Extract the first word of "$ac_prog", so it can be a program name with args.
8816 set dummy
$ac_prog; ac_word
=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_FLEX+:} false
; then :
8820 $as_echo_n "(cached) " >&6
8822 if test -n "$FLEX"; then
8823 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8829 test -z "$as_dir" && as_dir
=.
8830 for ac_exec_ext
in '' $ac_executable_extensions; do
8831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8832 ac_cv_prog_FLEX
="$ac_prog"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 FLEX
=$ac_cv_prog_FLEX
8843 if test -n "$FLEX"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8845 $as_echo "$FLEX" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8852 test -n "$FLEX" && break
8854 test -n "$FLEX" || FLEX
="$MISSING flex"
8858 for ac_prog
in bison
8860 # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy
$ac_prog; ac_word
=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_prog_BISON+:} false
; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$BISON"; then
8868 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir
=.
8875 for ac_exec_ext
in '' $ac_executable_extensions; do
8876 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_BISON
="$ac_prog"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 BISON
=$ac_cv_prog_BISON
8888 if test -n "$BISON"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8890 $as_echo "$BISON" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8897 test -n "$BISON" && break
8899 test -n "$BISON" || BISON
="$MISSING bison"
8902 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8903 # check for build == host before using them.
8906 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8907 && test -d ..
/binutils
; then
8908 NM
='${objdir}/../binutils/nm-new'
8910 # Extract the first word of "nm", so it can be a program name with args.
8911 set dummy nm
; ac_word
=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_NM+:} false
; then :
8915 $as_echo_n "(cached) " >&6
8917 if test -n "$NM"; then
8918 ac_cv_prog_NM
="$NM" # Let the user override the test.
8920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8924 test -z "$as_dir" && as_dir
=.
8925 for ac_exec_ext
in '' $ac_executable_extensions; do
8926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8939 if test -n "$NM"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8941 $as_echo "$NM" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8951 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8952 && test -d ..
/binutils
; then
8953 AR
='${objdir}/../binutils/ar'
8955 # Extract the first word of "ar", so it can be a program name with args.
8956 set dummy
ar; ac_word
=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if ${ac_cv_prog_AR+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8962 if test -n "$AR"; then
8963 ac_cv_prog_AR
="$AR" # Let the user override the test.
8965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8969 test -z "$as_dir" && as_dir
=.
8970 for ac_exec_ext
in '' $ac_executable_extensions; do
8971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8984 if test -n "$AR"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8986 $as_echo "$AR" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8995 # The jit documentation looks better if built with sphinx, but can be
8996 # built with texinfo if sphinx is not available.
8997 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8998 # Extract the first word of "sphinx-build", so it can be a program name with args.
8999 set dummy sphinx-build
; ac_word
=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9003 $as_echo_n "(cached) " >&6
9005 if test -n "$doc_build_sys"; then
9006 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9012 test -z "$as_dir" && as_dir
=.
9013 for ac_exec_ext
in '' $ac_executable_extensions; do
9014 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_doc_build_sys
="sphinx"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9026 doc_build_sys
=$ac_cv_prog_doc_build_sys
9027 if test -n "$doc_build_sys"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9029 $as_echo "$doc_build_sys" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9037 # --------------------
9038 # Checks for C headers
9039 # --------------------
9041 # Need to reject headers which give warnings, so that the -Werror bootstrap
9042 # works later. *sigh* This needs to come before all header checks.
9044 ac_c_preproc_warn_flag
=yes
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9047 $as_echo_n "checking for ANSI C header files... " >&6; }
9048 if ${ac_cv_header_stdc+:} false
; then :
9049 $as_echo_n "(cached) " >&6
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9066 if ac_fn_cxx_try_compile
"$LINENO"; then :
9067 ac_cv_header_stdc
=yes
9069 ac_cv_header_stdc
=no
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 if test $ac_cv_header_stdc = yes; then
9074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081 $EGREP "memchr" >/dev
/null
2>&1; then :
9084 ac_cv_header_stdc
=no
9090 if test $ac_cv_header_stdc = yes; then
9091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9098 $EGREP "free" >/dev
/null
2>&1; then :
9101 ac_cv_header_stdc
=no
9107 if test $ac_cv_header_stdc = yes; then
9108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9109 if test "$cross_compiling" = yes; then :
9112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9116 #if ((' ' & 0x0FF) == 0x020)
9117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9120 # define ISLOWER(c) \
9121 (('a' <= (c) && (c) <= 'i') \
9122 || ('j' <= (c) && (c) <= 'r') \
9123 || ('s' <= (c) && (c) <= 'z'))
9124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9132 for (i = 0; i < 256; i++)
9133 if (XOR (islower (i), ISLOWER (i))
9134 || toupper (i) != TOUPPER (i))
9139 if ac_fn_cxx_try_run
"$LINENO"; then :
9142 ac_cv_header_stdc
=no
9144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9151 $as_echo "$ac_cv_header_stdc" >&6; }
9152 if test $ac_cv_header_stdc = yes; then
9154 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9159 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9160 if ${ac_cv_header_time+:} false
; then :
9161 $as_echo_n "(cached) " >&6
9163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #include <sys/types.h>
9166 #include <sys/time.h>
9172 if ((struct tm *) 0)
9178 if ac_fn_cxx_try_compile
"$LINENO"; then :
9179 ac_cv_header_time
=yes
9181 ac_cv_header_time
=no
9183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9186 $as_echo "$ac_cv_header_time" >&6; }
9187 if test $ac_cv_header_time = yes; then
9189 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9194 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9195 if ${gcc_cv_header_string+:} false
; then :
9196 $as_echo_n "(cached) " >&6
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 #include <strings.h>
9210 if ac_fn_cxx_try_compile
"$LINENO"; then :
9211 gcc_cv_header_string
=yes
9213 gcc_cv_header_string
=no
9215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9218 $as_echo "$gcc_cv_header_string" >&6; }
9219 if test $gcc_cv_header_string = yes; then
9221 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9226 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9227 if ${ac_cv_header_sys_wait_h+:} false
; then :
9228 $as_echo_n "(cached) " >&6
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <sys/types.h>
9233 #include <sys/wait.h>
9235 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9238 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9246 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9251 if ac_fn_cxx_try_compile
"$LINENO"; then :
9252 ac_cv_header_sys_wait_h
=yes
9254 ac_cv_header_sys_wait_h
=no
9256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9259 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9260 if test $ac_cv_header_sys_wait_h = yes; then
9262 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9267 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9268 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9269 $as_echo_n "(cached) " >&6
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <sys/types.h>
9274 #include <termios.h>
9280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9281 $EGREP "yes" >/dev
/null
2>&1; then :
9282 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9284 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9290 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9292 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9294 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9295 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9296 $as_echo_n "(cached) " >&6
9298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <sys/types.h>
9301 #include <sys/ioctl.h>
9307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9308 $EGREP "yes" >/dev
/null
2>&1; then :
9309 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9311 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9317 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9319 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9321 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9326 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9327 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9328 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9329 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9331 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9332 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9333 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9342 # Check for thread headers.
9343 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9344 if test "x$ac_cv_header_thread_h" = xyes
; then :
9350 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9351 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9358 # These tests can't be done till we know if we have limits.h.
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9360 $as_echo_n "checking for CHAR_BIT... " >&6; }
9361 if ${gcc_cv_decl_char_bit+:} false
; then :
9362 $as_echo_n "(cached) " >&6
9364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 #ifdef HAVE_LIMITS_H
9373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9374 $EGREP "found" >/dev
/null
2>&1; then :
9375 gcc_cv_decl_char_bit
=yes
9377 gcc_cv_decl_char_bit
=no
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9384 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9385 if test $gcc_cv_decl_char_bit = no
; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9387 $as_echo_n "checking number of bits in a byte... " >&6; }
9388 if ${gcc_cv_c_nbby+:} false
; then :
9389 $as_echo_n "(cached) " >&6
9393 while test $i -lt 65; do
9394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9401 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9402 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9408 if ac_fn_cxx_try_compile
"$LINENO"; then :
9409 gcc_cv_c_nbby
=$i; break
9411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9414 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9418 $as_echo "$gcc_cv_c_nbby" >&6; }
9419 if test $gcc_cv_c_nbby = failed
; then
9420 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9423 cat >>confdefs.h
<<_ACEOF
9424 #define CHAR_BIT $gcc_cv_c_nbby
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9430 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9431 if ${ac_cv_c_bigendian+:} false
; then :
9432 $as_echo_n "(cached) " >&6
9434 ac_cv_c_bigendian
=unknown
9435 # See if we're dealing with a universal compiler.
9436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #ifndef __APPLE_CC__
9439 not a universal capable compiler
9444 if ac_fn_cxx_try_compile
"$LINENO"; then :
9446 # Check for potential -arch flags. It is not universal unless
9447 # there are at least two -arch flags with different values.
9450 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9451 if test -n "$ac_prev"; then
9453 i?
86 | x86_64 | ppc | ppc64
)
9454 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9457 ac_cv_c_bigendian
=universal
9463 elif test "x$ac_word" = "x-arch"; then
9468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9469 if test $ac_cv_c_bigendian = unknown
; then
9470 # See if sys/param.h defines the BYTE_ORDER macro.
9471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 #include <sys/types.h>
9474 #include <sys/param.h>
9479 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9480 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9489 if ac_fn_cxx_try_compile
"$LINENO"; then :
9490 # It does; now see whether it defined to BIG_ENDIAN or not.
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #include <sys/types.h>
9494 #include <sys/param.h>
9499 #if BYTE_ORDER != BIG_ENDIAN
9507 if ac_fn_cxx_try_compile
"$LINENO"; then :
9508 ac_cv_c_bigendian
=yes
9510 ac_cv_c_bigendian
=no
9512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9516 if test $ac_cv_c_bigendian = unknown
; then
9517 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9525 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9533 if ac_fn_cxx_try_compile
"$LINENO"; then :
9534 # It does; now see whether it defined to _BIG_ENDIAN or not.
9535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9550 if ac_fn_cxx_try_compile
"$LINENO"; then :
9551 ac_cv_c_bigendian
=yes
9553 ac_cv_c_bigendian
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9559 if test $ac_cv_c_bigendian = unknown
; then
9560 # Compile a test program.
9561 if test "$cross_compiling" = yes; then :
9562 # Try to guess by grepping values from an object file.
9563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 short int ascii_mm[] =
9566 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9567 short int ascii_ii[] =
9568 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9569 int use_ascii (int i) {
9570 return ascii_mm[i] + ascii_ii[i];
9572 short int ebcdic_ii[] =
9573 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9574 short int ebcdic_mm[] =
9575 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9576 int use_ebcdic (int i) {
9577 return ebcdic_mm[i] + ebcdic_ii[i];
9584 return use_ascii (foo) == use_ebcdic (foo);
9589 if ac_fn_cxx_try_compile
"$LINENO"; then :
9590 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9591 ac_cv_c_bigendian
=yes
9593 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9594 if test "$ac_cv_c_bigendian" = unknown
; then
9595 ac_cv_c_bigendian
=no
9597 # finding both strings is unlikely to happen, but who knows?
9598 ac_cv_c_bigendian
=unknown
9602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 $ac_includes_default
9611 /* Are we little or big endian? From Harbison&Steele. */
9615 char c[sizeof (long int)];
9618 return u.c[sizeof (long int) - 1] == 1;
9624 if ac_fn_cxx_try_run
"$LINENO"; then :
9625 ac_cv_c_bigendian
=no
9627 ac_cv_c_bigendian
=yes
9629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9636 $as_echo "$ac_cv_c_bigendian" >&6; }
9637 case $ac_cv_c_bigendian in #(
9639 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9645 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9649 as_fn_error $?
"unknown endianness
9650 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9654 # ----------------------
9655 # Checks for C++ headers
9656 # ----------------------
9659 ac_cpp
='$CXXCPP $CPPFLAGS'
9660 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9661 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9662 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9664 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9665 if test -z "$CXXCPP"; then
9666 if ${ac_cv_prog_CXXCPP+:} false
; then :
9667 $as_echo_n "(cached) " >&6
9669 # Double quotes because CXXCPP needs to be expanded
9670 for CXXCPP
in "$CXX -E" "/lib/cpp"
9673 for ac_cxx_preproc_warn_flag
in '' yes
9675 # Use a header file that comes with gcc, so configuring glibc
9676 # with a fresh cross-compiler works.
9677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 # <limits.h> exists even on freestanding compilers.
9679 # On the NeXT, cc -E runs the code through the compiler's parser,
9680 # not just through cpp. "Syntax error" is here to catch this case.
9681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 # include <limits.h>
9686 # include <assert.h>
9690 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9693 # Broken: fails on valid input.
9696 rm -f conftest.err conftest.i conftest.
$ac_ext
9698 # OK, works on sane cases. Now check whether nonexistent headers
9699 # can be detected and how.
9700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <ac_nonexistent.h>
9704 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9705 # Broken: success on invalid input.
9708 # Passes both tests.
9712 rm -f conftest.err conftest.i conftest.
$ac_ext
9715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9716 rm -f conftest.i conftest.err conftest.
$ac_ext
9717 if $ac_preproc_ok; then :
9722 ac_cv_prog_CXXCPP
=$CXXCPP
9725 CXXCPP
=$ac_cv_prog_CXXCPP
9727 ac_cv_prog_CXXCPP
=$CXXCPP
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9730 $as_echo "$CXXCPP" >&6; }
9732 for ac_cxx_preproc_warn_flag
in '' yes
9734 # Use a header file that comes with gcc, so configuring glibc
9735 # with a fresh cross-compiler works.
9736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 # <limits.h> exists even on freestanding compilers.
9738 # On the NeXT, cc -E runs the code through the compiler's parser,
9739 # not just through cpp. "Syntax error" is here to catch this case.
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9743 # include <limits.h>
9745 # include <assert.h>
9749 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9752 # Broken: fails on valid input.
9755 rm -f conftest.err conftest.i conftest.
$ac_ext
9757 # OK, works on sane cases. Now check whether nonexistent headers
9758 # can be detected and how.
9759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 #include <ac_nonexistent.h>
9763 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9764 # Broken: success on invalid input.
9767 # Passes both tests.
9771 rm -f conftest.err conftest.i conftest.
$ac_ext
9774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9775 rm -f conftest.i conftest.err conftest.
$ac_ext
9776 if $ac_preproc_ok; then :
9779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9782 See \`config.log' for more details" >&5
9783 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9784 See \`config.log' for more details" >&2;}; }
9788 ac_cpp
='$CXXCPP $CPPFLAGS'
9789 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9794 for ac_header
in unordered_map
9796 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9797 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9798 cat >>confdefs.h
<<_ACEOF
9799 #define HAVE_UNORDERED_MAP 1
9805 for ac_header
in tr1/unordered_map
9807 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9808 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9809 cat >>confdefs.h
<<_ACEOF
9810 #define HAVE_TR1_UNORDERED_MAP 1
9816 for ac_header
in ext
/hash_map
9818 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9819 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9820 cat >>confdefs.h
<<_ACEOF
9821 #define HAVE_EXT_HASH_MAP 1
9829 # Dependency checking.
9832 rm -rf .tst
2>/dev
/null
9833 mkdir .tst
2>/dev
/null
9834 if test -d .tst
; then
9839 rmdir .tst
2>/dev
/null
9841 DEPDIR
="${am__leading_dot}deps"
9843 ac_config_commands
="$ac_config_commands depdir"
9846 ac_config_commands
="$ac_config_commands gccdepdir"
9849 depcc
="$CXX" am_compiler_list
=
9851 am_depcomp
=$ac_aux_dir/depcomp
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9853 $as_echo_n "checking dependency style of $depcc... " >&6; }
9854 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9855 $as_echo_n "(cached) " >&6
9857 if test -f "$am_depcomp"; then
9858 # We make a subdir and do the tests there. Otherwise we can end up
9859 # making bogus files that we don't know about and never remove. For
9860 # instance it was reported that on HP-UX the gcc test will end up
9861 # making a dummy file named `D' -- because `-MD' means `put the output
9864 # Copy depcomp to subdir because otherwise we won't find it if we're
9865 # using a relative directory.
9866 cp "$am_depcomp" conftest.dir
9868 # We will build objects and dependencies in a subdirectory because
9869 # it helps to detect inapplicable dependency modes. For instance
9870 # both Tru64's cc and ICC support -MD to output dependencies as a
9871 # side effect of compilation, but ICC will put the dependencies in
9872 # the current directory while Tru64 will put them in the object
9876 am_cv_CXX_dependencies_compiler_type
=none
9877 if test "$am_compiler_list" = ""; then
9878 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9880 for depmode
in $am_compiler_list; do
9881 if test $depmode = none
; then break; fi
9883 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9884 # Setup a source with many dependencies, because some compilers
9885 # like to wrap large dependency lists on column 80 (with \), and
9886 # we should not choose a depcomp mode which is confused by this.
9888 # We need to recreate these files for each test, as the compiler may
9889 # overwrite some of them when testing with obscure command lines.
9890 # This happens at least with the AIX C compiler.
9892 for i
in 1 2 3 4 5 6; do
9893 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9895 # Solaris 8's {/usr,}/bin/sh.
9896 touch sub
/conftst
$i.h
9898 echo "include sub/conftest.Po" > confmf
9900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9901 # mode. It turns out that the SunPro C++ compiler does not properly
9902 # handle `-M -o', and we need to detect this.
9903 depcmd
="depmode=$depmode \
9904 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9906 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9907 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9908 if env
$depcmd > conftest.err
2>&1 &&
9909 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9910 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9911 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9912 # icc doesn't choke on unknown options, it will just issue warnings
9913 # or remarks (even with -Werror). So we grep stderr for any message
9914 # that says an option was ignored or not supported.
9915 # When given -MP, icc 7.0 and 7.1 complain thusly:
9916 # icc: Command line warning: ignoring option '-M'; no argument required
9917 # The diagnosis changed in icc 8.0:
9918 # icc: Command line remark: option '-MP' not supported
9919 if (grep 'ignoring option' conftest.err ||
9920 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9921 am_cv_CXX_dependencies_compiler_type
=$depmode
9922 $as_echo "$as_me:$LINENO: success" >&5
9926 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9927 sed -e 's/^/| /' < conftest.err
>&5
9933 am_cv_CXX_dependencies_compiler_type
=none
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9938 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9939 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9940 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9941 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9951 # These libraries may be used by collect2.
9952 # We may need a special search path to get them linked.
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9954 $as_echo_n "checking for collect2 libraries... " >&6; }
9955 if ${gcc_cv_collect2_libs+:} false
; then :
9956 $as_echo_n "(cached) " >&6
9959 for libs
in '' -lld -lmld \
9960 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9961 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9982 if ac_fn_cxx_try_link
"$LINENO"; then :
9983 gcc_cv_collect2_libs
="$libs"; break
9985 rm -f core conftest.err conftest.
$ac_objext \
9986 conftest
$ac_exeext conftest.
$ac_ext
9989 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9992 $as_echo "$gcc_cv_collect2_libs" >&6; }
9993 case $gcc_cv_collect2_libs in
9995 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9999 # When building Ada code on Alpha, we need exc_resume which is usually in
10000 # -lexc. So test for it.
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10004 $as_echo_n "checking for library containing exc_resume... " >&6; }
10005 if ${ac_cv_search_exc_resume+:} false
; then :
10006 $as_echo_n "(cached) " >&6
10008 ac_func_search_save_LIBS
=$LIBS
10009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10018 char exc_resume ();
10022 return exc_resume ();
10027 for ac_lib
in '' exc
; do
10028 if test -z "$ac_lib"; then
10029 ac_res
="none required"
10032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10034 if ac_fn_cxx_try_link
"$LINENO"; then :
10035 ac_cv_search_exc_resume
=$ac_res
10037 rm -f core conftest.err conftest.
$ac_objext \
10039 if ${ac_cv_search_exc_resume+:} false
; then :
10043 if ${ac_cv_search_exc_resume+:} false
; then :
10046 ac_cv_search_exc_resume
=no
10048 rm conftest.
$ac_ext
10049 LIBS
=$ac_func_search_save_LIBS
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10052 $as_echo "$ac_cv_search_exc_resume" >&6; }
10053 ac_res
=$ac_cv_search_exc_resume
10054 if test "$ac_res" != no
; then :
10055 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10059 GNAT_LIBEXC
="$LIBS"
10063 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10067 $as_echo_n "checking for library containing kstat_open... " >&6; }
10068 if ${ac_cv_search_kstat_open+:} false
; then :
10069 $as_echo_n "(cached) " >&6
10071 ac_func_search_save_LIBS
=$LIBS
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10081 char kstat_open ();
10085 return kstat_open ();
10090 for ac_lib
in '' kstat
; do
10091 if test -z "$ac_lib"; then
10092 ac_res
="none required"
10095 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10097 if ac_fn_cxx_try_link
"$LINENO"; then :
10098 ac_cv_search_kstat_open
=$ac_res
10100 rm -f core conftest.err conftest.
$ac_objext \
10102 if ${ac_cv_search_kstat_open+:} false
; then :
10106 if ${ac_cv_search_kstat_open+:} false
; then :
10109 ac_cv_search_kstat_open
=no
10111 rm conftest.
$ac_ext
10112 LIBS
=$ac_func_search_save_LIBS
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10115 $as_echo "$ac_cv_search_kstat_open" >&6; }
10116 ac_res
=$ac_cv_search_kstat_open
10117 if test "$ac_res" != no
; then :
10118 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10122 EXTRA_GCC_LIBS
="$LIBS"
10126 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10127 # C++ needs those for libcody.
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10132 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10133 if ${ac_cv_search_gethostbyname+:} false
; then :
10134 $as_echo_n "(cached) " >&6
10136 ac_func_search_save_LIBS
=$LIBS
10137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10146 char gethostbyname ();
10150 return gethostbyname ();
10155 for ac_lib
in '' nsl
; do
10156 if test -z "$ac_lib"; then
10157 ac_res
="none required"
10160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10162 if ac_fn_cxx_try_link
"$LINENO"; then :
10163 ac_cv_search_gethostbyname
=$ac_res
10165 rm -f core conftest.err conftest.
$ac_objext \
10167 if ${ac_cv_search_gethostbyname+:} false
; then :
10171 if ${ac_cv_search_gethostbyname+:} false
; then :
10174 ac_cv_search_gethostbyname
=no
10176 rm conftest.
$ac_ext
10177 LIBS
=$ac_func_search_save_LIBS
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10180 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10181 ac_res
=$ac_cv_search_gethostbyname
10182 if test "$ac_res" != no
; then :
10183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10188 $as_echo_n "checking for library containing socket... " >&6; }
10189 if ${ac_cv_search_socket+:} false
; then :
10190 $as_echo_n "(cached) " >&6
10192 ac_func_search_save_LIBS
=$LIBS
10193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10211 for ac_lib
in '' socket
; do
10212 if test -z "$ac_lib"; then
10213 ac_res
="none required"
10216 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10218 if ac_fn_cxx_try_link
"$LINENO"; then :
10219 ac_cv_search_socket
=$ac_res
10221 rm -f core conftest.err conftest.
$ac_objext \
10223 if ${ac_cv_search_socket+:} false
; then :
10227 if ${ac_cv_search_socket+:} false
; then :
10230 ac_cv_search_socket
=no
10232 rm conftest.
$ac_ext
10233 LIBS
=$ac_func_search_save_LIBS
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10236 $as_echo "$ac_cv_search_socket" >&6; }
10237 ac_res
=$ac_cv_search_socket
10238 if test "$ac_res" != no
; then :
10239 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10244 $as_echo_n "checking for socket in -lsocket... " >&6; }
10245 if ${ac_cv_lib_socket_socket+:} false
; then :
10246 $as_echo_n "(cached) " >&6
10248 ac_check_lib_save_LIBS
=$LIBS
10249 LIBS
="-lsocket -lnsl $LIBS"
10250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10268 if ac_fn_cxx_try_link
"$LINENO"; then :
10269 ac_cv_lib_socket_socket
=yes
10271 ac_cv_lib_socket_socket
=no
10273 rm -f core conftest.err conftest.
$ac_objext \
10274 conftest
$ac_exeext conftest.
$ac_ext
10275 LIBS
=$ac_check_lib_save_LIBS
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10278 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10279 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10280 LIBS
="-lsocket -lnsl $LIBS"
10290 # Some systems put ldexp and frexp in libm instead of libc; assume
10291 # they're both in the same place. jcf-dump needs them.
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10295 $as_echo_n "checking for library containing ldexp... " >&6; }
10296 if ${ac_cv_search_ldexp+:} false
; then :
10297 $as_echo_n "(cached) " >&6
10299 ac_func_search_save_LIBS
=$LIBS
10300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10318 for ac_lib
in '' m
; do
10319 if test -z "$ac_lib"; then
10320 ac_res
="none required"
10323 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10325 if ac_fn_cxx_try_link
"$LINENO"; then :
10326 ac_cv_search_ldexp
=$ac_res
10328 rm -f core conftest.err conftest.
$ac_objext \
10330 if ${ac_cv_search_ldexp+:} false
; then :
10334 if ${ac_cv_search_ldexp+:} false
; then :
10337 ac_cv_search_ldexp
=no
10339 rm conftest.
$ac_ext
10340 LIBS
=$ac_func_search_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10343 $as_echo "$ac_cv_search_ldexp" >&6; }
10344 ac_res
=$ac_cv_search_ldexp
10345 if test "$ac_res" != no
; then :
10346 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10354 # Some systems need dlopen
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10358 $as_echo_n "checking for library containing dlopen... " >&6; }
10359 if ${ac_cv_search_dlopen+:} false
; then :
10360 $as_echo_n "(cached) " >&6
10362 ac_func_search_save_LIBS
=$LIBS
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10381 for ac_lib
in '' dl
; do
10382 if test -z "$ac_lib"; then
10383 ac_res
="none required"
10386 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10388 if ac_fn_cxx_try_link
"$LINENO"; then :
10389 ac_cv_search_dlopen
=$ac_res
10391 rm -f core conftest.err conftest.
$ac_objext \
10393 if ${ac_cv_search_dlopen+:} false
; then :
10397 if ${ac_cv_search_dlopen+:} false
; then :
10400 ac_cv_search_dlopen
=no
10402 rm conftest.
$ac_ext
10403 LIBS
=$ac_func_search_save_LIBS
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10406 $as_echo "$ac_cv_search_dlopen" >&6; }
10407 ac_res
=$ac_cv_search_dlopen
10408 if test "$ac_res" != no
; then :
10409 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10417 # Use <inttypes.h> only if it exists,
10418 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10421 $as_echo_n "checking for inttypes.h... " >&6; }
10422 if ${gcc_cv_header_inttypes_h+:} false
; then :
10423 $as_echo_n "(cached) " >&6
10425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #define __STDC_FORMAT_MACROS
10428 #include <sys/types.h>
10429 #include <inttypes.h>
10441 if ac_fn_cxx_try_compile
"$LINENO"; then :
10442 gcc_cv_header_inttypes_h
=yes
10444 gcc_cv_header_inttypes_h
=no
10446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10450 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10451 if test $gcc_cv_header_inttypes_h = yes; then
10453 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10457 # Look for the ZSTD package.
10467 # Check whether --with-zstd was given.
10468 if test "${with_zstd+set}" = set; then :
10469 withval
=$with_zstd;
10473 # Check whether --with-zstd-include was given.
10474 if test "${with_zstd_include+set}" = set; then :
10475 withval
=$with_zstd_include;
10479 # Check whether --with-zstd-lib was given.
10480 if test "${with_zstd_lib+set}" = set; then :
10481 withval
=$with_zstd_lib;
10484 case "x$with_zstd" in
10490 *) ZSTD_INCLUDE
=$with_zstd/include
10491 ZSTD_LIB
=$with_zstd/lib
10495 if test "x$with_zstd" != xno
; then
10496 if test "x$with_zstd_include" != x
; then
10497 ZSTD_INCLUDE
=$with_zstd_include
10499 if test "x$with_zstd_lib" != x
; then
10500 ZSTD_LIB
=$with_zstd_lib
10502 if test "x$ZSTD_INCLUDE" != x \
10503 && test "x$ZSTD_INCLUDE" != xno
; then
10504 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10506 if test "x$ZSTD_LIB" != x \
10507 && test "x$ZSTD_LIB" != xno
; then
10508 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10511 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10512 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10515 $as_echo_n "checking for zstd.h... " >&6; }
10516 if ${gcc_cv_header_zstd_h+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10519 # We require version 1.3.0 or later. This is the first version that has
10520 # ZSTD_getFrameContentSize.
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 #if ZSTD_VERSION_NUMBER < 10300
10525 #error "need zstd 1.3.0 or better"
10535 if ac_fn_cxx_try_compile
"$LINENO"; then :
10536 gcc_cv_header_zstd_h
=yes
10538 gcc_cv_header_zstd_h
=no
10540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10544 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10545 if test $gcc_cv_header_zstd_h = yes; then
10547 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10549 elif test "x$with_zstd" != x
; then
10550 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10553 # LTO can use zstd compression algorithm
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10557 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10558 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10559 $as_echo_n "(cached) " >&6
10561 ac_func_search_save_LIBS
=$LIBS
10562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10565 /* Override any GCC internal prototype to avoid an error.
10566 Use char because int might match the return type of a GCC
10567 builtin and then its argument prototype would still apply. */
10571 char ZSTD_compress ();
10575 return ZSTD_compress ();
10580 for ac_lib
in '' zstd
; do
10581 if test -z "$ac_lib"; then
10582 ac_res
="none required"
10585 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10587 if ac_fn_cxx_try_link
"$LINENO"; then :
10588 ac_cv_search_ZSTD_compress
=$ac_res
10590 rm -f core conftest.err conftest.
$ac_objext \
10592 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10596 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10599 ac_cv_search_ZSTD_compress
=no
10601 rm conftest.
$ac_ext
10602 LIBS
=$ac_func_search_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10605 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10606 ac_res
=$ac_cv_search_ZSTD_compress
10607 if test "$ac_res" != no
; then :
10608 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10619 for ac_func
in times clock kill getrlimit setrlimit atoq \
10620 popen sysconf strsignal getrusage nl_langinfo \
10621 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10622 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval
10624 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10625 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10626 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10627 cat >>confdefs.h
<<_ACEOF
10628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10635 if test x
$ac_cv_func_mbstowcs = xyes
; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10637 $as_echo_n "checking whether mbstowcs works... " >&6; }
10638 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10639 $as_echo_n "(cached) " >&6
10641 if test "$cross_compiling" = yes; then :
10642 gcc_cv_func_mbstowcs_works
=yes
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <stdlib.h>
10649 mbstowcs(0, "", 0);
10653 if ac_fn_cxx_try_run
"$LINENO"; then :
10654 gcc_cv_func_mbstowcs_works
=yes
10656 gcc_cv_func_mbstowcs_works
=no
10658 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10659 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10664 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10665 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10667 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10672 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10673 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10677 cat >>confdefs.h
<<_ACEOF
10678 #define ssize_t int
10683 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10684 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10688 cat >>confdefs.h
<<_ACEOF
10689 #define caddr_t char *
10694 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10696 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10698 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10704 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10705 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10706 gcc_header_sys_mman_h
=yes
10708 gcc_header_sys_mman_h
=no
10711 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10712 if test "x$ac_cv_func_mmap" = xyes
; then :
10718 if test "$gcc_header_sys_mman_h" != yes \
10719 ||
test "$gcc_func_mmap" != yes; then
10720 gcc_cv_func_mmap_file
=no
10721 gcc_cv_func_mmap_dev_zero
=no
10722 gcc_cv_func_mmap_anon
=no
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10725 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10726 if ${gcc_cv_func_mmap_file+:} false
; then :
10727 $as_echo_n "(cached) " >&6
10729 # Add a system to this blacklist if
10730 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10731 # memory area containing the same data that you'd get if you applied
10732 # read() to the same fd. The only system known to have a problem here
10733 # is VMS, where text files have record structure.
10736 gcc_cv_func_mmap_file
=no
;;
10738 gcc_cv_func_mmap_file
=yes;;
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10742 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10744 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10745 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10746 $as_echo_n "(cached) " >&6
10748 # Add a system to this blacklist if it has mmap() but /dev/zero
10749 # does not exist, or if mmapping /dev/zero does not give anonymous
10750 # zeroed pages with both the following properties:
10751 # 1. If you map N consecutive pages in with one call, and then
10752 # unmap any subset of those pages, the pages that were not
10753 # explicitly unmapped remain accessible.
10754 # 2. If you map two adjacent blocks of memory and then unmap them
10755 # both at once, they must both go away.
10756 # Systems known to be in this category are Windows (all variants),
10759 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10760 gcc_cv_func_mmap_dev_zero
=no
;;
10762 gcc_cv_func_mmap_dev_zero
=yes;;
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10766 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10768 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10770 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10771 if ${gcc_cv_decl_map_anon+:} false
; then :
10772 $as_echo_n "(cached) " >&6
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <sys/types.h>
10777 #include <sys/mman.h>
10778 #include <unistd.h>
10780 #ifndef MAP_ANONYMOUS
10781 #define MAP_ANONYMOUS MAP_ANON
10787 int n = MAP_ANONYMOUS;
10792 if ac_fn_cxx_try_compile
"$LINENO"; then :
10793 gcc_cv_decl_map_anon
=yes
10795 gcc_cv_decl_map_anon
=no
10797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10800 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10802 if test $gcc_cv_decl_map_anon = no
; then
10803 gcc_cv_func_mmap_anon
=no
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10806 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10807 if ${gcc_cv_func_mmap_anon+:} false
; then :
10808 $as_echo_n "(cached) " >&6
10810 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10811 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10812 # doesn't give anonymous zeroed pages with the same properties listed
10813 # above for use of /dev/zero.
10814 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10816 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10817 gcc_cv_func_mmap_anon
=no
;;
10819 gcc_cv_func_mmap_anon
=yes;;
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10823 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10827 if test $gcc_cv_func_mmap_file = yes; then
10829 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10832 if test $gcc_cv_func_mmap_dev_zero = yes; then
10834 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10837 if test $gcc_cv_func_mmap_anon = yes; then
10839 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10846 # Under VMS, vfork works very differently than on Unix. The standard test
10847 # won't work, and it isn't easily adaptable. It makes more sense to
10849 ac_cv_func_vfork_works
=yes
10852 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10853 if test "x$ac_cv_type_pid_t" = xyes
; then :
10857 cat >>confdefs.h
<<_ACEOF
10863 for ac_header
in vfork.h
10865 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10866 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10867 cat >>confdefs.h
<<_ACEOF
10868 #define HAVE_VFORK_H 1
10874 for ac_func
in fork vfork
10876 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10878 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10879 cat >>confdefs.h
<<_ACEOF
10880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10886 if test "x$ac_cv_func_fork" = xyes
; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10888 $as_echo_n "checking for working fork... " >&6; }
10889 if ${ac_cv_func_fork_works+:} false
; then :
10890 $as_echo_n "(cached) " >&6
10892 if test "$cross_compiling" = yes; then :
10893 ac_cv_func_fork_works
=cross
10895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 $ac_includes_default
10902 /* By Ruediger Kuhlmann. */
10903 return fork () < 0;
10909 if ac_fn_cxx_try_run
"$LINENO"; then :
10910 ac_cv_func_fork_works
=yes
10912 ac_cv_func_fork_works
=no
10914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10920 $as_echo "$ac_cv_func_fork_works" >&6; }
10923 ac_cv_func_fork_works
=$ac_cv_func_fork
10925 if test "x$ac_cv_func_fork_works" = xcross
; then
10927 *-*-amigaos* |
*-*-msdosdjgpp*)
10928 # Override, as these systems have only a dummy fork() stub
10929 ac_cv_func_fork_works
=no
10932 ac_cv_func_fork_works
=yes
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10936 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10938 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10939 if test "x$ac_cv_func_vfork" = xyes
; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10941 $as_echo_n "checking for working vfork... " >&6; }
10942 if ${ac_cv_func_vfork_works+:} false
; then :
10943 $as_echo_n "(cached) " >&6
10945 if test "$cross_compiling" = yes; then :
10946 ac_cv_func_vfork_works
=cross
10948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950 /* Thanks to Paul Eggert for this test. */
10951 $ac_includes_default
10952 #include <sys/wait.h>
10953 #ifdef HAVE_VFORK_H
10954 # include <vfork.h>
10956 /* On some sparc systems, changes by the child to local and incoming
10957 argument registers are propagated back to the parent. The compiler
10958 is told about this with #include <vfork.h>, but some compilers
10959 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10960 static variable whose address is put into a register that is
10961 clobbered by the vfork. */
10964 sparc_address_test (int arg)
10966 sparc_address_test (arg) int arg;
10969 static pid_t child;
10987 pid_t parent = getpid ();
10990 sparc_address_test (0);
10995 /* Here is another test for sparc vfork register problems. This
10996 test uses lots of local variables, at least as many local
10997 variables as main has allocated so far including compiler
10998 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10999 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11000 reuse the register of parent for one of the local variables,
11001 since it will think that parent can't possibly be used any more
11002 in this routine. Assigning to the local variable will thus
11003 munge parent in the parent process. */
11005 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11006 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11007 /* Convince the compiler that p..p7 are live; otherwise, it might
11008 use the same hardware register for all 8 local variables. */
11009 if (p != p1 || p != p2 || p != p3 || p != p4
11010 || p != p5 || p != p6 || p != p7)
11013 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11014 from child file descriptors. If the child closes a descriptor
11015 before it execs or exits, this munges the parent's descriptor
11016 as well. Test for this by closing stdout in the child. */
11017 _exit(close(fileno(stdout)) != 0);
11022 while (wait(&status) != child)
11025 /* Was there some problem with vforking? */
11028 /* Did the child fail? (This shouldn't happen.) */
11031 /* Did the vfork/compiler bug occur? */
11032 || parent != getpid()
11034 /* Did the file descriptor bug occur? */
11035 || fstat(fileno(stdout), &st) != 0
11040 if ac_fn_cxx_try_run
"$LINENO"; then :
11041 ac_cv_func_vfork_works
=yes
11043 ac_cv_func_vfork_works
=no
11045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11051 $as_echo "$ac_cv_func_vfork_works" >&6; }
11054 if test "x$ac_cv_func_fork_works" = xcross
; then
11055 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11057 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11060 if test "x$ac_cv_func_vfork_works" = xyes
; then
11062 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11066 $as_echo "#define vfork fork" >>confdefs.h
11069 if test "x$ac_cv_func_fork_works" = xyes
; then
11071 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11077 if test "X$prefix" = "XNONE"; then
11078 acl_final_prefix
="$ac_default_prefix"
11080 acl_final_prefix
="$prefix"
11082 if test "X$exec_prefix" = "XNONE"; then
11083 acl_final_exec_prefix
='${prefix}'
11085 acl_final_exec_prefix
="$exec_prefix"
11087 acl_save_prefix
="$prefix"
11088 prefix
="$acl_final_prefix"
11089 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11090 prefix
="$acl_save_prefix"
11093 # Check whether --with-gnu-ld was given.
11094 if test "${with_gnu_ld+set}" = set; then :
11095 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11100 # Prepare PATH_SEPARATOR.
11101 # The user is always right.
11102 if test "${PATH_SEPARATOR+set}" != set; then
11103 echo "#! /bin/sh" >conf$$.sh
11104 echo "exit 0" >>conf$$.sh
11106 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11114 if test "$GCC" = yes; then
11115 # Check if gcc -print-prog-name=ld gives a path.
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11117 $as_echo_n "checking for ld used by GCC... " >&6; }
11120 # gcc leaves a trailing carriage return which upsets mingw
11121 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11123 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11126 # Accept absolute paths.
11127 [\\/]* |
[A-Za-z
]:[\\/]*)
11128 re_direlt
='/[^/][^/]*/\.\./'
11129 # Canonicalize the path of ld
11130 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11131 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11132 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11134 test -z "$LD" && LD
="$ac_prog"
11137 # If it fails, then pretend we aren't using GCC.
11141 # If it is relative, then search for the first ld in PATH.
11142 with_gnu_ld
=unknown
11145 elif test "$with_gnu_ld" = yes; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11147 $as_echo_n "checking for GNU ld... " >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11150 $as_echo_n "checking for non-GNU ld... " >&6; }
11152 if ${acl_cv_path_LD+:} false
; then :
11153 $as_echo_n "(cached) " >&6
11155 if test -z "$LD"; then
11156 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11157 for ac_dir
in $PATH; do
11158 test -z "$ac_dir" && ac_dir
=.
11159 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11160 acl_cv_path_LD
="$ac_dir/$ac_prog"
11161 # Check to see if the program is GNU ld. I'd rather use --version,
11162 # but apparently some GNU ld's only accept -v.
11163 # Break only if it was the GNU/non-GNU ld that we prefer.
11164 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11165 test "$with_gnu_ld" != no
&& break
11167 test "$with_gnu_ld" != yes && break
11173 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11177 LD
="$acl_cv_path_LD"
11178 if test -n "$LD"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11180 $as_echo "$LD" >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11188 if ${acl_cv_prog_gnu_ld+:} false
; then :
11189 $as_echo_n "(cached) " >&6
11191 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11192 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11193 acl_cv_prog_gnu_ld
=yes
11195 acl_cv_prog_gnu_ld
=no
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11199 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11200 with_gnu_ld
=$acl_cv_prog_gnu_ld
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11205 $as_echo_n "checking for shared library run path origin... " >&6; }
11206 if ${acl_cv_rpath+:} false
; then :
11207 $as_echo_n "(cached) " >&6
11210 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11211 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11213 rm -f .
/conftest.sh
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11218 $as_echo "$acl_cv_rpath" >&6; }
11220 libext
="$acl_cv_libext"
11221 shlibext
="$acl_cv_shlibext"
11222 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11223 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11224 hardcode_direct
="$acl_cv_hardcode_direct"
11225 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11226 # Check whether --enable-rpath was given.
11227 if test "${enable_rpath+set}" = set; then :
11228 enableval
=$enable_rpath; :
11242 acl_save_prefix
="$prefix"
11243 prefix
="$acl_final_prefix"
11244 acl_save_exec_prefix
="$exec_prefix"
11245 exec_prefix
="$acl_final_exec_prefix"
11247 eval additional_includedir
=\"$includedir\"
11248 eval additional_libdir
=\"$libdir\"
11250 exec_prefix
="$acl_save_exec_prefix"
11251 prefix
="$acl_save_prefix"
11254 # Check whether --with-libiconv-prefix was given.
11255 if test "${with_libiconv_prefix+set}" = set; then :
11256 withval
=$with_libiconv_prefix;
11257 if test "X$withval" = "Xno"; then
11260 if test "X$withval" = "X"; then
11262 acl_save_prefix
="$prefix"
11263 prefix
="$acl_final_prefix"
11264 acl_save_exec_prefix
="$exec_prefix"
11265 exec_prefix
="$acl_final_exec_prefix"
11267 eval additional_includedir
=\"$includedir\"
11268 eval additional_libdir
=\"$libdir\"
11270 exec_prefix
="$acl_save_exec_prefix"
11271 prefix
="$acl_save_prefix"
11274 additional_includedir
="$withval/include"
11275 additional_libdir
="$withval/lib"
11282 # Check whether --with-libiconv-type was given.
11283 if test "${with_libiconv_type+set}" = set; then :
11284 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11286 with_libiconv_type
=auto
11289 lib_type
=`eval echo \$with_libiconv_type`
11296 names_already_handled
=
11297 names_next_round
='iconv '
11298 while test -n "$names_next_round"; do
11299 names_this_round
="$names_next_round"
11301 for name
in $names_this_round; do
11303 for n
in $names_already_handled; do
11304 if test "$n" = "$name"; then
11305 already_handled
=yes
11309 if test -z "$already_handled"; then
11310 names_already_handled
="$names_already_handled $name"
11311 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11312 eval value
=\"\
$HAVE_LIB$uppername\"
11313 if test -n "$value"; then
11314 if test "$value" = yes; then
11315 eval value
=\"\
$LIB$uppername\"
11316 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11317 eval value
=\"\
$LTLIB$uppername\"
11318 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11327 if test $use_additional = yes; then
11328 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11329 found_dir
="$additional_libdir"
11330 found_so
="$additional_libdir/lib$name.$shlibext"
11331 if test -f "$additional_libdir/lib$name.la"; then
11332 found_la
="$additional_libdir/lib$name.la"
11334 elif test x
$lib_type != xshared
; then
11335 if test -f "$additional_libdir/lib$name.$libext"; then
11336 found_dir
="$additional_libdir"
11337 found_a
="$additional_libdir/lib$name.$libext"
11338 if test -f "$additional_libdir/lib$name.la"; then
11339 found_la
="$additional_libdir/lib$name.la"
11344 if test "X$found_dir" = "X"; then
11345 for x
in $LDFLAGS $LTLIBICONV; do
11347 acl_save_prefix
="$prefix"
11348 prefix
="$acl_final_prefix"
11349 acl_save_exec_prefix
="$exec_prefix"
11350 exec_prefix
="$acl_final_exec_prefix"
11352 exec_prefix
="$acl_save_exec_prefix"
11353 prefix
="$acl_save_prefix"
11357 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11358 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11360 found_so
="$dir/lib$name.$shlibext"
11361 if test -f "$dir/lib$name.la"; then
11362 found_la
="$dir/lib$name.la"
11364 elif test x
$lib_type != xshared
; then
11365 if test -f "$dir/lib$name.$libext"; then
11367 found_a
="$dir/lib$name.$libext"
11368 if test -f "$dir/lib$name.la"; then
11369 found_la
="$dir/lib$name.la"
11375 if test "X$found_dir" != "X"; then
11380 if test "X$found_dir" != "X"; then
11381 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11382 if test "X$found_so" != "X"; then
11383 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11384 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11387 for x
in $ltrpathdirs; do
11388 if test "X$x" = "X$found_dir"; then
11393 if test -z "$haveit"; then
11394 ltrpathdirs
="$ltrpathdirs $found_dir"
11396 if test "$hardcode_direct" = yes; then
11397 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11399 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11400 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11402 for x
in $rpathdirs; do
11403 if test "X$x" = "X$found_dir"; then
11408 if test -z "$haveit"; then
11409 rpathdirs
="$rpathdirs $found_dir"
11413 for x
in $LDFLAGS $LIBICONV; do
11415 acl_save_prefix
="$prefix"
11416 prefix
="$acl_final_prefix"
11417 acl_save_exec_prefix
="$exec_prefix"
11418 exec_prefix
="$acl_final_exec_prefix"
11420 exec_prefix
="$acl_save_exec_prefix"
11421 prefix
="$acl_save_prefix"
11423 if test "X$x" = "X-L$found_dir"; then
11428 if test -z "$haveit"; then
11429 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11431 if test "$hardcode_minus_L" != no
; then
11432 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11434 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11440 if test "X$found_a" != "X"; then
11441 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11443 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11446 additional_includedir
=
11447 case "$found_dir" in
11449 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11450 additional_includedir
="$basedir/include"
11453 if test "X$additional_includedir" != "X"; then
11454 if test "X$additional_includedir" != "X/usr/include"; then
11456 if test "X$additional_includedir" = "X/usr/local/include"; then
11457 if test -n "$GCC"; then
11459 linux
*) haveit
=yes;;
11463 if test -z "$haveit"; then
11464 for x
in $CPPFLAGS $INCICONV; do
11466 acl_save_prefix
="$prefix"
11467 prefix
="$acl_final_prefix"
11468 acl_save_exec_prefix
="$exec_prefix"
11469 exec_prefix
="$acl_final_exec_prefix"
11471 exec_prefix
="$acl_save_exec_prefix"
11472 prefix
="$acl_save_prefix"
11474 if test "X$x" = "X-I$additional_includedir"; then
11479 if test -z "$haveit"; then
11480 if test -d "$additional_includedir"; then
11481 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11487 if test -n "$found_la"; then
11488 save_libdir
="$libdir"
11489 case "$found_la" in
11490 */* |
*\\*) .
"$found_la" ;;
11491 *) .
"./$found_la" ;;
11493 libdir
="$save_libdir"
11494 for dep
in $dependency_libs; do
11497 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11498 if test "X$additional_libdir" != "X/usr/lib"; then
11500 if test "X$additional_libdir" = "X/usr/local/lib"; then
11501 if test -n "$GCC"; then
11503 linux
*) haveit
=yes;;
11507 if test -z "$haveit"; then
11509 for x
in $LDFLAGS $LIBICONV; do
11511 acl_save_prefix
="$prefix"
11512 prefix
="$acl_final_prefix"
11513 acl_save_exec_prefix
="$exec_prefix"
11514 exec_prefix
="$acl_final_exec_prefix"
11516 exec_prefix
="$acl_save_exec_prefix"
11517 prefix
="$acl_save_prefix"
11519 if test "X$x" = "X-L$additional_libdir"; then
11524 if test -z "$haveit"; then
11525 if test -d "$additional_libdir"; then
11526 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11530 for x
in $LDFLAGS $LTLIBICONV; do
11532 acl_save_prefix
="$prefix"
11533 prefix
="$acl_final_prefix"
11534 acl_save_exec_prefix
="$exec_prefix"
11535 exec_prefix
="$acl_final_exec_prefix"
11537 exec_prefix
="$acl_save_exec_prefix"
11538 prefix
="$acl_save_prefix"
11540 if test "X$x" = "X-L$additional_libdir"; then
11545 if test -z "$haveit"; then
11546 if test -d "$additional_libdir"; then
11547 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11554 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11555 if test "$enable_rpath" != no
; then
11557 for x
in $rpathdirs; do
11558 if test "X$x" = "X$dir"; then
11563 if test -z "$haveit"; then
11564 rpathdirs
="$rpathdirs $dir"
11567 for x
in $ltrpathdirs; do
11568 if test "X$x" = "X$dir"; then
11573 if test -z "$haveit"; then
11574 ltrpathdirs
="$ltrpathdirs $dir"
11579 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11582 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11585 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11586 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11592 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11593 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11594 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11596 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11597 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11604 if test "X$rpathdirs" != "X"; then
11605 if test -n "$hardcode_libdir_separator"; then
11607 for found_dir
in $rpathdirs; do
11608 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11610 acl_save_libdir
="$libdir"
11612 eval flag
=\"$hardcode_libdir_flag_spec\"
11613 libdir
="$acl_save_libdir"
11614 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11616 for found_dir
in $rpathdirs; do
11617 acl_save_libdir
="$libdir"
11618 libdir
="$found_dir"
11619 eval flag
=\"$hardcode_libdir_flag_spec\"
11620 libdir
="$acl_save_libdir"
11621 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11625 if test "X$ltrpathdirs" != "X"; then
11626 for found_dir
in $ltrpathdirs; do
11627 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11638 $as_echo_n "checking for iconv... " >&6; }
11639 if ${am_cv_func_iconv+:} false
; then :
11640 $as_echo_n "(cached) " >&6
11643 am_cv_func_iconv
="no, consider installing GNU libiconv"
11645 am_save_CPPFLAGS
="$CPPFLAGS"
11646 CPPFLAGS
="$CPPFLAGS $INCICONV"
11647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <stdlib.h>
11654 iconv_t cd = iconv_open("","");
11655 iconv(cd,NULL,NULL,NULL,NULL);
11661 if ac_fn_cxx_try_link
"$LINENO"; then :
11662 am_cv_func_iconv
=yes
11664 rm -f core conftest.err conftest.
$ac_objext \
11665 conftest
$ac_exeext conftest.
$ac_ext
11666 CPPFLAGS
="$am_save_CPPFLAGS"
11668 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11669 for _libs
in .libs _libs
; do
11670 am_save_CPPFLAGS
="$CPPFLAGS"
11671 am_save_LIBS
="$LIBS"
11672 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11673 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #include <stdlib.h>
11681 iconv_t cd = iconv_open("","");
11682 iconv(cd,NULL,NULL,NULL,NULL);
11688 if ac_fn_cxx_try_link
"$LINENO"; then :
11689 INCICONV
="-I../libiconv/include"
11690 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11691 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11692 am_cv_lib_iconv
=yes
11693 am_cv_func_iconv
=yes
11695 rm -f core conftest.err conftest.
$ac_objext \
11696 conftest
$ac_exeext conftest.
$ac_ext
11697 CPPFLAGS
="$am_save_CPPFLAGS"
11698 LIBS
="$am_save_LIBS"
11699 if test "$am_cv_func_iconv" = "yes"; then
11705 if test "$am_cv_func_iconv" != yes; then
11706 am_save_CPPFLAGS
="$CPPFLAGS"
11707 am_save_LIBS
="$LIBS"
11708 CPPFLAGS
="$CPPFLAGS $INCICONV"
11709 LIBS
="$LIBS $LIBICONV"
11710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712 #include <stdlib.h>
11717 iconv_t cd = iconv_open("","");
11718 iconv(cd,NULL,NULL,NULL,NULL);
11724 if ac_fn_cxx_try_link
"$LINENO"; then :
11725 am_cv_lib_iconv
=yes
11726 am_cv_func_iconv
=yes
11728 rm -f core conftest.err conftest.
$ac_objext \
11729 conftest
$ac_exeext conftest.
$ac_ext
11730 CPPFLAGS
="$am_save_CPPFLAGS"
11731 LIBS
="$am_save_LIBS"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11736 $as_echo "$am_cv_func_iconv" >&6; }
11737 if test "$am_cv_func_iconv" = yes; then
11739 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11742 if test "$am_cv_lib_iconv" = yes; then
11744 for element
in $INCICONV; do
11746 for x
in $CPPFLAGS; do
11748 acl_save_prefix
="$prefix"
11749 prefix
="$acl_final_prefix"
11750 acl_save_exec_prefix
="$exec_prefix"
11751 exec_prefix
="$acl_final_exec_prefix"
11753 exec_prefix
="$acl_save_exec_prefix"
11754 prefix
="$acl_save_prefix"
11756 if test "X$x" = "X$element"; then
11761 if test -z "$haveit"; then
11762 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11767 $as_echo_n "checking how to link with libiconv... " >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11769 $as_echo "$LIBICONV" >&6; }
11777 if test "$am_cv_func_iconv" = yes; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11779 $as_echo_n "checking for iconv declaration... " >&6; }
11780 if ${am_cv_proto_iconv+:} false
; then :
11781 $as_echo_n "(cached) " >&6
11784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 #include <stdlib.h>
11793 #if defined(__STDC__) || defined(__cplusplus)
11794 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11807 if ac_fn_cxx_try_compile
"$LINENO"; then :
11808 am_cv_proto_iconv_arg1
=""
11810 am_cv_proto_iconv_arg1
="const"
11812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 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);"
11816 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11818 }$am_cv_proto_iconv" >&5
11820 }$am_cv_proto_iconv" >&6; }
11822 cat >>confdefs.h
<<_ACEOF
11823 #define ICONV_CONST $am_cv_proto_iconv_arg1
11829 # Until we have in-tree GNU iconv:
11831 if test -f "$LTLIBICONV"; then
11832 LIBICONV_DEP
=$LTLIBICONV
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11838 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11839 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11840 $as_echo_n "(cached) " >&6
11842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <locale.h>
11853 if ac_fn_cxx_try_link
"$LINENO"; then :
11854 am_cv_val_LC_MESSAGES
=yes
11856 am_cv_val_LC_MESSAGES
=no
11858 rm -f core conftest.err conftest.
$ac_objext \
11859 conftest
$ac_exeext conftest.
$ac_ext
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11862 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11863 if test $am_cv_val_LC_MESSAGES = yes; then
11865 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11872 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11873 if ${am_cv_langinfo_codeset+:} false
; then :
11874 $as_echo_n "(cached) " >&6
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <langinfo.h>
11882 char* cs = nl_langinfo(CODESET);
11887 if ac_fn_cxx_try_link
"$LINENO"; then :
11888 am_cv_langinfo_codeset
=yes
11890 am_cv_langinfo_codeset
=no
11892 rm -f core conftest.err conftest.
$ac_objext \
11893 conftest
$ac_exeext conftest.
$ac_ext
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11897 $as_echo "$am_cv_langinfo_codeset" >&6; }
11898 if test $am_cv_langinfo_codeset = yes; then
11900 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11905 # We will need to find libiberty.h and ansidecl.h
11906 saved_CFLAGS
="$CFLAGS"
11907 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11908 saved_CXXFLAGS
="$CXXFLAGS"
11909 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11911 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11912 # normal autoconf function for these. But force definition of
11913 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11914 # basename handling in libiberty.h.
11915 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11916 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11917 #undef HAVE_DECL_BASENAME
11918 #define HAVE_DECL_BASENAME 1
11919 #include \"ansidecl.h\"
11920 #include \"system.h\"
11922 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11928 cat >>confdefs.h
<<_ACEOF
11929 #define HAVE_DECL_BASENAME $ac_have_decl
11931 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11932 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11933 #undef HAVE_DECL_BASENAME
11934 #define HAVE_DECL_BASENAME 1
11935 #include \"ansidecl.h\"
11936 #include \"system.h\"
11938 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11944 cat >>confdefs.h
<<_ACEOF
11945 #define HAVE_DECL_STRSTR $ac_have_decl
11949 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11950 madvise stpcpy strnlen strsignal strverscmp \
11951 strtol strtoul strtoll strtoull setenv unsetenv \
11952 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11953 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
11955 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11957 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11958 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11959 $as_echo_n "(cached) " >&6
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 #define $ac_tr_decl 1
11966 #include "ansidecl.h"
11967 #include "system.h"
11973 char *(*pfn) = (char *(*)) $ac_func ;
11979 if ac_fn_cxx_try_compile
"$LINENO"; then :
11980 eval "gcc_cv_have_decl_$ac_func=yes"
11982 eval "gcc_cv_have_decl_$ac_func=no"
11984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11987 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11990 #define $ac_tr_decl 1
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11996 #define $ac_tr_decl 0
12004 for ac_func
in getrlimit setrlimit getrusage
12006 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12008 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12009 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 #define $ac_tr_decl 1
12017 #include "ansidecl.h"
12018 #include "system.h"
12019 #ifdef HAVE_SYS_RESOURCE_H
12020 #include <sys/resource.h>
12028 char *(*pfn) = (char *(*)) $ac_func ;
12034 if ac_fn_cxx_try_compile
"$LINENO"; then :
12035 eval "gcc_cv_have_decl_$ac_func=yes"
12037 eval "gcc_cv_have_decl_$ac_func=no"
12039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12042 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12045 #define $ac_tr_decl 1
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12051 #define $ac_tr_decl 0
12059 for ac_func
in mallinfo mallinfo2
12061 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12063 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12064 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12065 $as_echo_n "(cached) " >&6
12067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12070 #define $ac_tr_decl 1
12072 #include "ansidecl.h"
12073 #include "system.h"
12074 #ifdef HAVE_MALLOC_H
12075 #include <malloc.h>
12083 char *(*pfn) = (char *(*)) $ac_func ;
12089 if ac_fn_cxx_try_compile
"$LINENO"; then :
12090 eval "gcc_cv_have_decl_$ac_func=yes"
12092 eval "gcc_cv_have_decl_$ac_func=no"
12094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12097 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12100 #define $ac_tr_decl 1
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12106 #define $ac_tr_decl 0
12114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 #include "ansidecl.h"
12118 #include "system.h"
12119 #ifdef HAVE_SYS_RESOURCE_H
12120 #include <sys/resource.h>
12131 if ac_fn_cxx_try_compile
"$LINENO"; then :
12135 $as_echo "#define rlim_t long" >>confdefs.h
12138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12140 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12141 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12142 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12143 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12144 for ac_func
in ldgetname
12146 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12148 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12149 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 #define $ac_tr_decl 1
12157 #include "ansidecl.h"
12158 #include "system.h"
12159 #ifdef HAVE_LDFCN_H
12170 char *(*pfn) = (char *(*)) $ac_func ;
12176 if ac_fn_cxx_try_compile
"$LINENO"; then :
12177 eval "gcc_cv_have_decl_$ac_func=yes"
12179 eval "gcc_cv_have_decl_$ac_func=no"
12181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12184 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12187 #define $ac_tr_decl 1
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12193 #define $ac_tr_decl 0
12201 for ac_func
in times
12203 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12205 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12206 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12207 $as_echo_n "(cached) " >&6
12209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12212 #define $ac_tr_decl 1
12214 #include "ansidecl.h"
12215 #include "system.h"
12216 #ifdef HAVE_SYS_TIMES_H
12217 #include <sys/times.h>
12225 char *(*pfn) = (char *(*)) $ac_func ;
12231 if ac_fn_cxx_try_compile
"$LINENO"; then :
12232 eval "gcc_cv_have_decl_$ac_func=yes"
12234 eval "gcc_cv_have_decl_$ac_func=no"
12236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12239 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12242 #define $ac_tr_decl 1
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12248 #define $ac_tr_decl 0
12256 for ac_func
in sigaltstack
12258 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12260 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12261 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12262 $as_echo_n "(cached) " >&6
12264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12267 #define $ac_tr_decl 1
12269 #include "ansidecl.h"
12270 #include "system.h"
12271 #include <signal.h>
12278 char *(*pfn) = (char *(*)) $ac_func ;
12284 if ac_fn_cxx_try_compile
"$LINENO"; then :
12285 eval "gcc_cv_have_decl_$ac_func=yes"
12287 eval "gcc_cv_have_decl_$ac_func=no"
12289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12292 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12295 #define $ac_tr_decl 1
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12301 #define $ac_tr_decl 0
12309 # More time-related stuff.
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12311 $as_echo_n "checking for struct tms... " >&6; }
12312 if ${ac_cv_struct_tms+:} false
; then :
12313 $as_echo_n "(cached) " >&6
12316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12319 #include "ansidecl.h"
12320 #include "system.h"
12321 #ifdef HAVE_SYS_TIMES_H
12322 #include <sys/times.h>
12333 if ac_fn_cxx_try_compile
"$LINENO"; then :
12334 ac_cv_struct_tms
=yes
12336 ac_cv_struct_tms
=no
12338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12341 $as_echo "$ac_cv_struct_tms" >&6; }
12342 if test $ac_cv_struct_tms = yes; then
12344 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12348 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12349 # revisit after autoconf 2.50.
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12351 $as_echo_n "checking for clock_t... " >&6; }
12352 if ${gcc_cv_type_clock_t+:} false
; then :
12353 $as_echo_n "(cached) " >&6
12356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12359 #include "ansidecl.h"
12360 #include "system.h"
12370 if ac_fn_cxx_try_compile
"$LINENO"; then :
12371 gcc_cv_type_clock_t
=yes
12373 gcc_cv_type_clock_t
=no
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12378 $as_echo "$gcc_cv_type_clock_t" >&6; }
12379 if test $gcc_cv_type_clock_t = yes; then
12381 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12385 # Check if F_SETLKW is supported by fcntl.
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12387 $as_echo_n "checking for F_SETLKW... " >&6; }
12388 if ${ac_cv_f_setlkw+:} false
; then :
12389 $as_echo_n "(cached) " >&6
12392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12405 return fcntl (1, F_SETLKW, &fl);
12410 if ac_fn_cxx_try_compile
"$LINENO"; then :
12415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12418 $as_echo "$ac_cv_f_setlkw" >&6; }
12419 if test $ac_cv_f_setlkw = yes; then
12421 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12425 # Check if O_CLOEXEC is defined by fcntl
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12427 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12428 if ${ac_cv_o_cloexec+:} false
; then :
12429 $as_echo_n "(cached) " >&6
12432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12440 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12445 if ac_fn_cxx_try_compile
"$LINENO"; then :
12446 ac_cv_o_cloexec
=yes
12450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12453 $as_echo "$ac_cv_o_cloexec" >&6; }
12454 if test $ac_cv_o_cloexec = yes; then
12456 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12460 # Check if O_NONBLOCK is defined by fcntl
12461 for ac_header
in fcntl.h
12463 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12464 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12465 cat >>confdefs.h
<<_ACEOF
12466 #define HAVE_FCNTL_H 1
12472 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12474 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12478 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12480 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12485 # C++ Modules would like some networking features to provide the mapping
12486 # server. You can still use modules without them though.
12487 # The following network-related checks could probably do with some
12488 # Windows and other non-linux defenses and checking.
12490 # Local socket connectivity wants AF_UNIX networking
12491 # Check for AF_UNIX networking
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12493 $as_echo_n "checking for AF_UNIX... " >&6; }
12494 if ${ac_cv_af_unix+:} false
; then :
12495 $as_echo_n "(cached) " >&6
12498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 #include <sys/types.h>
12502 #include <sys/socket.h>
12503 #include <sys/un.h>
12504 #include <netinet/in.h>
12510 un.sun_family = AF_UNSPEC;
12511 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12512 connect (fd, (sockaddr *)&un, sizeof (un));
12517 if ac_fn_cxx_try_compile
"$LINENO"; then :
12522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12525 $as_echo "$ac_cv_af_unix" >&6; }
12526 if test $ac_cv_af_unix = yes; then
12528 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12532 # Remote socket connectivity wants AF_INET6 networking
12533 # Check for AF_INET6 networking
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12535 $as_echo_n "checking for AF_INET6... " >&6; }
12536 if ${ac_cv_af_inet6+:} false
; then :
12537 $as_echo_n "(cached) " >&6
12540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12543 #include <sys/types.h>
12544 #include <sys/socket.h>
12545 #include <netinet/in.h>
12552 in6.sin6_family = AF_UNSPEC;
12553 struct addrinfo *addrs = 0;
12554 struct addrinfo hints;
12555 hints.ai_flags = 0;
12556 hints.ai_family = AF_INET6;
12557 hints.ai_socktype = SOCK_STREAM;
12558 hints.ai_protocol = 0;
12559 hints.ai_canonname = 0;
12562 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12563 const char *str = gai_strerror (e);
12564 freeaddrinfo (addrs);
12565 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12566 connect (fd, (sockaddr *)&in6, sizeof (in6));
12571 if ac_fn_cxx_try_compile
"$LINENO"; then :
12576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12579 $as_echo "$ac_cv_af_inet6" >&6; }
12580 if test $ac_cv_af_inet6 = yes; then
12582 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12586 # Check if _LK_LOCK is supported by _locking
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12588 $as_echo_n "checking for _LK_LOCK... " >&6; }
12589 if ${ac_cv_lk_lock+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12597 #include <sys/locking.h>
12603 return _locking (fd, _LK_LOCK, 0);
12608 if ac_fn_cxx_try_compile
"$LINENO"; then :
12613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12616 $as_echo "$ac_cv_lk_lock" >&6; }
12617 if test $ac_cv_lk_lock = yes; then
12619 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12623 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12624 CFLAGS
="$saved_CFLAGS"
12625 CXXFLAGS
="$saved_CXXFLAGS"
12627 # mkdir takes a single argument on some systems.
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12629 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12630 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12631 $as_echo_n "(cached) " >&6
12633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 #include <sys/types.h>
12637 #ifdef HAVE_SYS_STAT_H
12638 # include <sys/stat.h>
12640 #ifdef HAVE_UNISTD_H
12641 # include <unistd.h>
12643 #ifdef HAVE_DIRECT_H
12644 # include <direct.h>
12654 if ac_fn_cxx_try_compile
"$LINENO"; then :
12655 gcc_cv_mkdir_takes_one_arg
=no
12657 gcc_cv_mkdir_takes_one_arg
=yes
12659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12662 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12663 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12665 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12676 # With Setjmp/Longjmp based exception handling.
12677 # Check whether --enable-sjlj-exceptions was given.
12678 if test "${enable_sjlj_exceptions+set}" = set; then :
12679 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12683 force_sjlj_exceptions
=yes
12687 force_sjlj_exceptions
=no
12692 if test $force_sjlj_exceptions = yes; then
12693 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12695 cat >>confdefs.h
<<_ACEOF
12696 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12701 # --------------------------------------------------------
12702 # Build, host, and target specific configuration fragments
12703 # --------------------------------------------------------
12705 # Collect build-machine-specific information.
12706 .
${srcdir}/config.build ||
exit 1
12708 # Collect host-machine-specific information.
12709 .
${srcdir}/config.
host ||
exit 1
12713 # Collect target-machine-specific information.
12714 .
${srcdir}/config.gcc ||
exit 1
12716 extra_objs
="${host_extra_objs} ${extra_objs}"
12717 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12719 # Default the target-machine variables that were not explicitly set.
12720 if test x
"$tm_file" = x
12721 then tm_file
=$cpu_type/$cpu_type.h
; fi
12723 if test x
"$extra_headers" = x
12724 then extra_headers
=; fi
12726 if test x
$md_file = x
12727 then md_file
=$cpu_type/$cpu_type.md
; fi
12729 if test x
$out_file = x
12730 then out_file
=$cpu_type/$cpu_type.cc
; fi
12732 if test x
"$tmake_file" = x
12733 then tmake_file
=$cpu_type/t-
$cpu_type
12736 # Support --enable-initfini-array.
12737 if test x
$enable_initfini_array != xno
; then
12738 tm_file
="${tm_file} initfini-array.h"
12741 if test x
"$dwarf2" = xyes
12742 then tm_file
="$tm_file tm-dwarf2.h"
12745 # Say what files are being used for the output code and MD file.
12746 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12747 echo "Using \`$srcdir/config/$md_file' as machine description file."
12749 # If any of the xm_file variables contain nonexistent files, warn
12750 # about them and drop them.
12753 for x
in $build_xm_file; do
12754 if test -f $srcdir/config
/$x
12756 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12757 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12760 build_xm_file
="$bx"
12763 for x
in $host_xm_file; do
12764 if test -f $srcdir/config
/$x
12766 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12767 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12773 for x
in $xm_file; do
12774 if test -f $srcdir/config
/$x
12776 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12777 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12783 for f
in $tm_file; do
12786 if test $count = ax
; then
12787 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12789 echo "Using the following target machine macro files:"
12790 for f
in $tm_file; do
12791 echo " $srcdir/config/$f"
12795 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12797 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12801 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12803 cat >>confdefs.h
<<_ACEOF
12804 #define HAVE_GNU_LD $gnu_ld_bool
12808 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12810 cat >>confdefs.h
<<_ACEOF
12811 #define HAVE_GNU_AS $gnu_as_bool
12816 for f
in $host_xm_file; do
12819 if test $count = a
; then
12821 elif test $count = ax
; then
12822 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12824 echo "Using the following host machine macro files:"
12825 for f
in $host_xm_file; do
12826 echo " $srcdir/config/$f"
12829 echo "Using ${out_host_hook_obj} for host machine hooks."
12831 if test "$host_xm_file" != "$build_xm_file"; then
12833 for f
in $build_xm_file; do
12836 if test $count = a
; then
12838 elif test $count = ax
; then
12839 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12841 echo "Using the following build machine macro files:"
12842 for f
in $build_xm_file; do
12843 echo " $srcdir/config/$f"
12848 if test -n "$configured_native_system_header_dir"; then
12849 native_system_header_dir
=$configured_native_system_header_dir
12851 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12855 powerpc
*-*-darwin*)
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12857 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12858 if ${gcc_cv_mcontext_underscores+:} false
; then :
12859 $as_echo_n "(cached) " >&6
12861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12864 #include <sys/cdefs.h>
12865 #include <sys/signal.h>
12866 #include <ucontext.h>
12867 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12870 if ac_fn_cxx_try_compile
"$LINENO"; then :
12871 gcc_cv_mcontext_underscores
=no
12873 gcc_cv_mcontext_underscores
=yes
12875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12878 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12879 if test $gcc_cv_mcontext_underscores = yes; then
12881 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12891 # Check if a valid thread package
12892 case ${enable_threads} in
12895 target_thread_file
='single'
12899 target_thread_file
='single'
12901 aix | dce | lynx | mipssde | posix | rtems | \
12902 single | tpf | vxworks | win32 | mcf
)
12903 target_thread_file
=${enable_threads}
12906 echo "${enable_threads} is an unknown thread package" 1>&2
12911 if test x
${thread_file} = x
; then
12912 # No thread file set by target-specific clauses in config.gcc,
12913 # so use file chosen by default logic above
12914 thread_file
=${target_thread_file}
12922 if test x
$enable___cxa_atexit = xyes || \
12923 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12924 if test x
$host = x
$target; then
12926 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12927 # keyed to flag_use_cxa_atexit
12935 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12936 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12939 echo "__cxa_atexit can't be enabled on this target"
12945 # We can't check for __cxa_atexit when building a cross, so assume
12949 if test x
$use_cxa_atexit = xyes
; then
12951 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12956 # Look for a file containing extra machine modes.
12957 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12958 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12961 cat >>confdefs.h
<<_ACEOF
12962 #define EXTRA_MODES_FILE "config/$extra_modes"
12967 # Convert extra_options into a form suitable for Makefile use.
12970 for f
in $extra_options; do
12971 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12972 all_opt_files
="$all_opt_files $srcdir/config/$f"
12976 # auto-host.h is the file containing items generated by autoconf and is
12977 # the first file included by config.h.
12978 # If host=build, it is correct to have bconfig include auto-host.h
12979 # as well. If host!=build, we are in error and need to do more
12980 # work to find out the build config parameters.
12981 if test x
$host = x
$build
12983 build_auto
=auto-host.h
12984 HAVE_AUTO_BUILD
='# '
12986 # We create a subdir, then run autoconf in the subdir.
12987 # To prevent recursion we set host and build for the new
12988 # invocation of configure to the build for this invocation
12995 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12996 *) realsrcdir
=..
/${srcdir};;
12998 # Clearing GMPINC is necessary to prevent host headers being
12999 # used by the build compiler. Defining GENERATOR_FILE stops
13000 # system.h from including gmp.h.
13001 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13002 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13003 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13004 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13005 ${realsrcdir}/configure \
13006 --enable-languages=${enable_languages-all} \
13007 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13008 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13009 --target=$target_alias --host=$build_alias \
13010 --build=$build_alias ||
exit # retaining $tempdir
13012 # We just finished tests for the build machine, so rename
13013 # the file auto-build.h in the gcc directory.
13014 mv auto-host.h ..
/auto-build.h
13017 build_auto
=auto-build.h
13023 tm_file
="${tm_file} defaults.h"
13024 tm_p_file
="${tm_p_file} tm-preds.h"
13025 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13026 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13027 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13028 # put this back in temporarily.
13029 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13035 # Compile in configure arguments.
13036 if test -f configargs.h
; then
13037 # Being re-configured.
13038 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13039 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13040 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13041 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13044 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13047 # Double all backslashes and backslash all quotes to turn
13048 # gcc_config_arguments into a C string.
13049 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13050 $gcc_config_arguments
13052 gcc_config_arguments_str
=`cat conftest.out`
13055 cat > configargs.h
<<EOF
13056 /* Generated automatically. */
13057 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13058 static const char thread_model[] = "$thread_file";
13060 static const struct {
13061 const char *name, *value;
13062 } configure_default_options[] = $configure_default_options;
13065 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13066 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13067 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13068 if test -f $srcdir/REVISION
; then
13069 gcc_REVISION
=`cat $srcdir/REVISION`
13073 cat > plugin-version.h
<<EOF
13074 #include "configargs.h"
13076 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13077 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13078 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13079 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13081 static char basever[] = "$gcc_BASEVER";
13082 static char datestamp[] = "$gcc_DATESTAMP";
13083 static char devphase[] = "$gcc_DEVPHASE";
13084 static char revision[] = "$gcc_REVISION";
13086 /* FIXME plugins: We should make the version information more precise.
13087 One way to do is to add a checksum. */
13089 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13090 devphase, revision,
13091 configuration_arguments};
13094 # Determine what GCC version number to use in filesystem paths.
13096 get_gcc_base_ver
="cat"
13098 # Check whether --with-gcc-major-version-only was given.
13099 if test "${with_gcc_major_version_only+set}" = set; then :
13100 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13101 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13109 # Internationalization
13110 # If we haven't got the data from the intl directory,
13111 # assume NLS is disabled.
13120 if test -f ..
/intl
/config.intl
; then
13121 . ..
/intl
/config.intl
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13124 $as_echo_n "checking whether NLS is requested... " >&6; }
13125 if test x
"$USE_NLS" != xyes
; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130 $as_echo "yes" >&6; }
13132 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13136 $as_echo_n "checking for catalogs to be installed... " >&6; }
13137 # Look for .po and .gmo files in the source directory.
13140 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13141 # If there aren't any .gmo files the shell will give us the
13142 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13144 case "$cat" in *\
**)
13147 # The quadruple backslash is collapsed to a double backslash
13148 # by the backticks, then collapsed again by the double quotes,
13149 # leaving us with one backslash in the sed expression (right
13150 # before the dot that mustn't act as a wildcard).
13151 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13152 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13153 # The user is allowed to set LINGUAS to a list of languages to
13154 # install catalogs for. If it's empty that means "all of them."
13155 if test "x$LINGUAS" = x
; then
13156 CATALOGS
="$CATALOGS $cat"
13157 XLINGUAS
="$XLINGUAS $lang"
13159 case "$LINGUAS" in *$lang*)
13160 CATALOGS
="$CATALOGS $cat"
13161 XLINGUAS
="$XLINGUAS $lang"
13166 LINGUAS
="$XLINGUAS"
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13168 $as_echo "$LINGUAS" >&6; }
13181 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13182 # -liconv on the link line twice.
13183 case "$LIBINTL" in *$LIBICONV*)
13187 # Check whether --enable-secureplt was given.
13188 if test "${enable_secureplt+set}" = set; then :
13189 enableval
=$enable_secureplt;
13193 # Check whether --enable-mingw-wildcard was given.
13194 if test "${enable_mingw_wildcard+set}" = set; then :
13195 enableval
=$enable_mingw_wildcard;
13197 enable_mingw_wildcard
=platform
13200 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13202 cat >>confdefs.h
<<_ACEOF
13203 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13208 # Check whether --enable-large-address-aware was given.
13209 if test "${enable_large_address_aware+set}" = set; then :
13210 enableval
=$enable_large_address_aware;
13213 if test x
"$enable_large_address_aware" = xyes
; then :
13215 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13219 # Check whether --enable-leading-mingw64-underscores was given.
13220 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13221 enableval
=$enable_leading_mingw64_underscores;
13224 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13226 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13230 # Check whether --enable-cld was given.
13231 if test "${enable_cld+set}" = set; then :
13232 enableval
=$enable_cld;
13238 # Check whether --enable-frame-pointer was given.
13239 if test "${enable_frame_pointer+set}" = set; then :
13240 enableval
=$enable_frame_pointer;
13244 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13245 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13246 enable_frame_pointer
=no
13249 enable_frame_pointer
=yes
13257 i
[34567]86-*-* | x86_64-
*-*)
13258 if test "x$enable_cld" = xyes
; then
13259 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13261 if test "x$enable_frame_pointer" = xyes
; then
13262 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13267 # Windows32 Registry support for specifying GCC installation paths.
13268 # Check whether --enable-win32-registry was given.
13269 if test "${enable_win32_registry+set}" = set; then :
13270 enableval
=$enable_win32_registry;
13275 win32 | pe | cygwin
* | mingw32
*)
13276 if test "x$enable_win32_registry" != xno
; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13278 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13279 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_func_search_save_LIBS
=$LIBS
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13292 char RegOpenKeyExA ();
13296 return RegOpenKeyExA ();
13301 for ac_lib
in '' advapi32
; do
13302 if test -z "$ac_lib"; then
13303 ac_res
="none required"
13306 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13308 if ac_fn_cxx_try_link
"$LINENO"; then :
13309 ac_cv_search_RegOpenKeyExA
=$ac_res
13311 rm -f core conftest.err conftest.
$ac_objext \
13313 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13317 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13320 ac_cv_search_RegOpenKeyExA
=no
13322 rm conftest.
$ac_ext
13323 LIBS
=$ac_func_search_save_LIBS
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13326 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13327 ac_res
=$ac_cv_search_RegOpenKeyExA
13328 if test "$ac_res" != no
; then :
13329 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13332 enable_win32_registry
=no
13337 if test "x$enable_win32_registry" != xno
; then
13339 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13342 if test "x$enable_win32_registry" != xyes \
13343 && test "x$enable_win32_registry" != x
; then
13345 cat >>confdefs.h
<<_ACEOF
13346 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13354 # Get an absolute path to the GCC top-level source directory
13355 holddir
=`${PWDCMD-pwd}`
13357 topdir
=`${PWDCMD-pwd}`
13360 # Conditionalize the makefile for this host machine.
13362 for f
in ${host_xmake_file}
13364 if test -f ${srcdir}/config
/$f
13366 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13370 # Conditionalize the makefile for this target machine.
13372 for f
in ${tmake_file}
13374 if test -f ${srcdir}/config
/$f
13376 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13379 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13381 out_object_file
=`basename $out_file .cc`.o
13382 common_out_object_file
=`basename $common_out_file .cc`.o
13384 tm_file_list
="options.h"
13385 tm_include_list
="options.h insn-constants.h"
13386 for f
in $tm_file; do
13389 f
=`echo $f | sed 's/^..//'`
13390 tm_file_list
="${tm_file_list} $f"
13391 tm_include_list
="${tm_include_list} $f"
13394 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13395 tm_include_list
="${tm_include_list} $f"
13398 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13399 tm_include_list
="${tm_include_list} config/$f"
13406 for f
in $tm_p_file; do
13409 tm_p_file_list
="${tm_p_file_list} $f"
13410 tm_p_include_list
="${tm_p_include_list} $f"
13413 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13414 tm_p_include_list
="${tm_p_include_list} config/$f"
13420 for f
in $tm_d_file; do
13423 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13424 tm_d_include_list
="${tm_d_include_list} config/$f"
13431 for f
in $xm_file; do
13434 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13435 xm_include_list
="${xm_include_list} $f"
13438 xm_file_list
="${xm_file_list} $f"
13439 xm_include_list
="${xm_include_list} $f"
13442 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13443 xm_include_list
="${xm_include_list} config/$f"
13449 host_xm_include_list
=
13450 for f
in $host_xm_file; do
13453 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13454 host_xm_include_list
="${host_xm_include_list} $f"
13457 host_xm_file_list
="${host_xm_file_list} $f"
13458 host_xm_include_list
="${host_xm_include_list} $f"
13461 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13462 host_xm_include_list
="${host_xm_include_list} config/$f"
13467 build_xm_file_list
=
13468 for f
in $build_xm_file; do
13471 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13472 build_xm_include_list
="${build_xm_include_list} $f"
13474 auto-build.h | auto-host.h
)
13475 build_xm_file_list
="${build_xm_file_list} $f"
13476 build_xm_include_list
="${build_xm_include_list} $f"
13479 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13480 build_xm_include_list
="${build_xm_include_list} config/$f"
13485 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13486 # cross-compiler which does not use the native headers and libraries.
13487 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13490 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13491 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13493 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13494 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13495 if test "x$with_build_sysroot" != x
; then
13496 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13498 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13501 if test x
$host != x
$target
13503 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13505 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13506 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13507 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13510 if test "x$with_build_sysroot" != "x"; then
13511 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13512 elif test "x$with_sysroot" = x
; then
13513 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13514 elif test "x$with_sysroot" = xyes
; then
13515 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13517 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13520 target_header_dir
=${native_system_header_dir}
13523 # If this is a cross-compiler that does not
13524 # have its own set of headers then define
13527 # If this is using newlib, without having the headers available now,
13528 # then define inhibit_libc in LIBGCC2_CFLAGS.
13529 # This prevents libgcc2 from containing any code which requires libc
13531 : ${inhibit_libc=false}
13532 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13533 test x
$with_newlib = xyes
; } &&
13534 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13539 # When building gcc with a cross-compiler, we need to adjust things so
13540 # that the generator programs are still built with the native compiler.
13541 # Also, we cannot run fixincludes.
13543 # These are the normal (build=host) settings:
13544 CC_FOR_BUILD
='$(CC)'
13545 CXX_FOR_BUILD
='$(CXX)'
13546 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13547 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13548 BUILD_LDFLAGS
='$(LDFLAGS)'
13549 STMP_FIXINC
=stmp-fixinc
13551 # And these apply if build != host, or we are generating coverage data
13552 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13554 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13555 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13556 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13560 if test x
$enable_fixincludes = xno
;
13565 # Expand extra_headers to include complete path.
13566 # This substitutes for lots of t-* files.
13567 extra_headers_list
=
13568 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13569 for file in ${extra_headers} ; do
13570 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13573 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13574 if test x
"$use_gcc_tgmath" = xyes
13575 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13578 # Define collect2 in Makefile.
13579 case $host_can_use_collect2 in
13581 *) collect2
='collect2$(exeext)' ;;
13585 # Add a definition of USE_COLLECT2 if system wants one.
13586 case $use_collect2 in
13587 no
) use_collect2
= ;;
13590 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13591 xm_defines
="${xm_defines} USE_COLLECT2"
13592 case $host_can_use_collect2 in
13594 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13601 cat >>confdefs.h
<<_ACEOF
13602 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13606 # ---------------------------
13607 # Assembler & linker features
13608 # ---------------------------
13610 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13611 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13612 # However when ld-new is first executed from the build tree, libtool will
13613 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13614 # to the build tree. While doing this we need to use the previous-stage
13615 # linker, or we have an infinite loop. The presence of a shell script as
13616 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13617 # the gcc/collect-ld script. So we need to know how libtool works, or
13618 # exec-tool will fail.
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13624 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13629 macro_version
='2.2.7a'
13630 macro_revision
='1.3134'
13644 ltmain
="$ac_aux_dir/ltmain.sh"
13646 # Backslashify metacharacters that are still active within
13647 # double-quoted strings.
13648 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13650 # Same as above, but do not quote variable references.
13651 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13653 # Sed substitution to delay expansion of an escaped shell variable in a
13654 # double_quote_subst'ed string.
13655 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13657 # Sed substitution to delay expansion of an escaped single quote.
13658 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13660 # Sed substitution to avoid accidental globbing in evaled expressions
13661 no_glob_subst
='s/\*/\\\*/g'
13663 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13664 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13668 $as_echo_n "checking how to print strings... " >&6; }
13669 # Test print first, because it will be a builtin if present.
13670 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13671 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13673 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13676 # Use this function as a fallback that always works.
13677 func_fallback_echo ()
13679 eval 'cat <<_LTECHO_EOF
13683 ECHO='func_fallback_echo
'
13686 # func_echo_all arg...
13687 # Invoke $ECHO with all args, space-separated.
13694 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13695 $as_echo "printf" >&6; } ;;
13696 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13697 $as_echo "print -r" >&6; } ;;
13698 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13699 $as_echo "cat" >&6; } ;;
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13716 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13717 if ${ac_cv_path_SED+:} false; then :
13718 $as_echo_n "(cached) " >&6
13720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13721 for ac_i in 1 2 3 4 5 6 7; do
13722 ac_script="$ac_script$as_nl$ac_script"
13724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13725 { ac_script=; unset ac_script;}
13726 if test -z "$SED"; then
13727 ac_path_SED_found=false
13728 # Loop through the user's path and
test for each of PROGNAME-LIST
13729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13730 for as_dir
in $PATH
13733 test -z "$as_dir" && as_dir
=.
13734 for ac_prog
in sed gsed
; do
13735 for ac_exec_ext
in '' $ac_executable_extensions; do
13736 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13737 as_fn_executable_p
"$ac_path_SED" ||
continue
13738 # Check for GNU ac_path_SED and select it if it is found.
13739 # Check for GNU $ac_path_SED
13740 case `"$ac_path_SED" --version 2>&1` in
13742 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13745 $as_echo_n 0123456789 >"conftest.in"
13748 cat "conftest.in" "conftest.in" >"conftest.tmp"
13749 mv "conftest.tmp" "conftest.in"
13750 cp "conftest.in" "conftest.nl"
13751 $as_echo '' >> "conftest.nl"
13752 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13753 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13754 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13755 if test $ac_count -gt ${ac_path_SED_max-0}; then
13756 # Best one so far, save it but keep looking for a better one
13757 ac_cv_path_SED
="$ac_path_SED"
13758 ac_path_SED_max
=$ac_count
13760 # 10*(2^10) chars as input seems more than enough
13761 test $ac_count -gt 10 && break
13763 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13766 $ac_path_SED_found && break 3
13771 if test -z "$ac_cv_path_SED"; then
13772 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13775 ac_cv_path_SED
=$SED
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13780 $as_echo "$ac_cv_path_SED" >&6; }
13781 SED
="$ac_cv_path_SED"
13784 test -z "$SED" && SED
=sed
13785 Xsed
="$SED -e 1s/^X//"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13798 $as_echo_n "checking for fgrep... " >&6; }
13799 if ${ac_cv_path_FGREP+:} false
; then :
13800 $as_echo_n "(cached) " >&6
13802 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13803 then ac_cv_path_FGREP
="$GREP -F"
13805 if test -z "$FGREP"; then
13806 ac_path_FGREP_found
=false
13807 # Loop through the user's path and test for each of PROGNAME-LIST
13808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13809 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13812 test -z "$as_dir" && as_dir
=.
13813 for ac_prog
in fgrep
; do
13814 for ac_exec_ext
in '' $ac_executable_extensions; do
13815 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13816 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13817 # Check for GNU ac_path_FGREP and select it if it is found.
13818 # Check for GNU $ac_path_FGREP
13819 case `"$ac_path_FGREP" --version 2>&1` in
13821 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13824 $as_echo_n 0123456789 >"conftest.in"
13827 cat "conftest.in" "conftest.in" >"conftest.tmp"
13828 mv "conftest.tmp" "conftest.in"
13829 cp "conftest.in" "conftest.nl"
13830 $as_echo 'FGREP' >> "conftest.nl"
13831 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13832 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13833 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13835 # Best one so far, save it but keep looking for a better one
13836 ac_cv_path_FGREP
="$ac_path_FGREP"
13837 ac_path_FGREP_max
=$ac_count
13839 # 10*(2^10) chars as input seems more than enough
13840 test $ac_count -gt 10 && break
13842 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13845 $ac_path_FGREP_found && break 3
13850 if test -z "$ac_cv_path_FGREP"; then
13851 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13854 ac_cv_path_FGREP
=$FGREP
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13860 $as_echo "$ac_cv_path_FGREP" >&6; }
13861 FGREP
="$ac_cv_path_FGREP"
13864 test -z "$GREP" && GREP
=grep
13884 # Check whether --with-gnu-ld was given.
13885 if test "${with_gnu_ld+set}" = set; then :
13886 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13892 if test "$GCC" = yes; then
13893 # Check if gcc -print-prog-name=ld gives a path.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13895 $as_echo_n "checking for ld used by $CC... " >&6; }
13898 # gcc leaves a trailing carriage return which upsets mingw
13899 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13901 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13904 # Accept absolute paths.
13906 re_direlt
='/[^/][^/]*/\.\./'
13907 # Canonicalize the pathname of ld
13908 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13909 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13910 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13912 test -z "$LD" && LD
="$ac_prog"
13915 # If it fails, then pretend we aren't using GCC.
13919 # If it is relative, then search for the first ld in PATH.
13920 with_gnu_ld
=unknown
13923 elif test "$with_gnu_ld" = yes; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13925 $as_echo_n "checking for GNU ld... " >&6; }
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13928 $as_echo_n "checking for non-GNU ld... " >&6; }
13930 if ${lt_cv_path_LD+:} false
; then :
13931 $as_echo_n "(cached) " >&6
13933 if test -z "$LD"; then
13934 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13935 for ac_dir
in $PATH; do
13937 test -z "$ac_dir" && ac_dir
=.
13938 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13939 lt_cv_path_LD
="$ac_dir/$ac_prog"
13940 # Check to see if the program is GNU ld. I'd rather use --version,
13941 # but apparently some variants of GNU ld only accept -v.
13942 # Break only if it was the GNU/non-GNU ld that we prefer.
13943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13944 *GNU
* |
*'with BFD'*)
13945 test "$with_gnu_ld" != no
&& break
13948 test "$with_gnu_ld" != yes && break
13955 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13959 LD
="$lt_cv_path_LD"
13960 if test -n "$LD"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13962 $as_echo "$LD" >&6; }
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13967 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13970 if ${lt_cv_prog_gnu_ld+:} false
; then :
13971 $as_echo_n "(cached) " >&6
13973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13974 case `$LD -v 2>&1 </dev/null` in
13975 *GNU
* |
*'with BFD'*)
13976 lt_cv_prog_gnu_ld
=yes
13979 lt_cv_prog_gnu_ld
=no
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13985 with_gnu_ld
=$lt_cv_prog_gnu_ld
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13996 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13997 if ${lt_cv_path_NM+:} false
; then :
13998 $as_echo_n "(cached) " >&6
14000 if test -n "$NM"; then
14001 # Let the user override the test.
14002 lt_cv_path_NM
="$NM"
14004 lt_nm_to_check
="${ac_tool_prefix}nm"
14005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14006 lt_nm_to_check
="$lt_nm_to_check nm"
14008 for lt_tmp_nm
in $lt_nm_to_check; do
14009 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14010 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14012 test -z "$ac_dir" && ac_dir
=.
14013 tmp_nm
="$ac_dir/$lt_tmp_nm"
14014 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14015 # Check to see if the nm accepts a BSD-compat flag.
14016 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14017 # nm: unknown option "B" ignored
14018 # Tru64's nm complains that /dev/null is an invalid object file
14019 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14020 */dev
/null
* |
*'Invalid file or object type'*)
14021 lt_cv_path_NM
="$tmp_nm -B"
14025 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14027 lt_cv_path_NM
="$tmp_nm -p"
14031 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14032 continue # so that we can try to find one that supports BSD flags
14041 : ${lt_cv_path_NM=no}
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14045 $as_echo "$lt_cv_path_NM" >&6; }
14046 if test "$lt_cv_path_NM" != "no"; then
14047 NM
="$lt_cv_path_NM"
14049 # Didn't find any BSD compatible name lister, look for dumpbin.
14050 if test -n "$DUMPBIN"; then :
14051 # Let the user override the test.
14053 if test -n "$ac_tool_prefix"; then
14054 for ac_prog
in dumpbin
"link -dump"
14056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14057 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14061 $as_echo_n "(cached) " >&6
14063 if test -n "$DUMPBIN"; then
14064 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14067 for as_dir
in $PATH
14070 test -z "$as_dir" && as_dir
=.
14071 for ac_exec_ext
in '' $ac_executable_extensions; do
14072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14073 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14083 DUMPBIN
=$ac_cv_prog_DUMPBIN
14084 if test -n "$DUMPBIN"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14086 $as_echo "$DUMPBIN" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14093 test -n "$DUMPBIN" && break
14096 if test -z "$DUMPBIN"; then
14097 ac_ct_DUMPBIN
=$DUMPBIN
14098 for ac_prog
in dumpbin
"link -dump"
14100 # Extract the first word of "$ac_prog", so it can be a program name with args.
14101 set dummy
$ac_prog; ac_word
=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14105 $as_echo_n "(cached) " >&6
14107 if test -n "$ac_ct_DUMPBIN"; then
14108 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14111 for as_dir
in $PATH
14114 test -z "$as_dir" && as_dir
=.
14115 for ac_exec_ext
in '' $ac_executable_extensions; do
14116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14117 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14128 if test -n "$ac_ct_DUMPBIN"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14130 $as_echo "$ac_ct_DUMPBIN" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14137 test -n "$ac_ct_DUMPBIN" && break
14140 if test "x$ac_ct_DUMPBIN" = x
; then
14143 case $cross_compiling:$ac_tool_warned in
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14147 ac_tool_warned
=yes ;;
14149 DUMPBIN
=$ac_ct_DUMPBIN
14153 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14155 DUMPBIN
="$DUMPBIN -symbols"
14163 if test "$DUMPBIN" != ":"; then
14167 test -z "$NM" && NM
=nm
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14175 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14176 if ${lt_cv_nm_interface+:} false
; then :
14177 $as_echo_n "(cached) " >&6
14179 lt_cv_nm_interface
="BSD nm"
14180 echo "int some_variable = 0;" > conftest.
$ac_ext
14181 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14182 (eval "$ac_compile" 2>conftest.err
)
14183 cat conftest.err
>&5
14184 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14185 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14186 cat conftest.err
>&5
14187 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14188 cat conftest.out
>&5
14189 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14190 lt_cv_nm_interface
="MS dumpbin"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14195 $as_echo "$lt_cv_nm_interface" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14198 $as_echo_n "checking whether ln -s works... " >&6; }
14200 if test "$LN_S" = "ln -s"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202 $as_echo "yes" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14205 $as_echo "no, using $LN_S" >&6; }
14208 # find the maximum length of command line arguments
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14210 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14211 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14212 $as_echo_n "(cached) " >&6
14219 # On DJGPP, this test can blow up pretty badly due to problems in libc
14220 # (any single argument exceeding 2000 bytes causes a buffer overrun
14221 # during glob expansion). Even if it were fixed, the result of this
14222 # check would be larger than it should be.
14223 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14227 # Under GNU Hurd, this test is not required because there is
14228 # no limit to the length of command line arguments.
14229 # Libtool will interpret -1 as no limit whatsoever
14230 lt_cv_sys_max_cmd_len
=-1;
14233 cygwin
* | mingw
* | cegcc
*)
14234 # On Win9x/ME, this test blows up -- it succeeds, but takes
14235 # about 5 minutes as the teststring grows exponentially.
14236 # Worse, since 9x/ME are not pre-emptively multitasking,
14237 # you end up with a "frozen" computer, even though with patience
14238 # the test eventually succeeds (with a max line length of 256k).
14239 # Instead, let's just punt: use the minimum linelength reported by
14240 # all of the supported platforms: 8192 (on NT/2K/XP).
14241 lt_cv_sys_max_cmd_len
=8192;
14245 # On MiNT this can take a long time and run out of memory.
14246 lt_cv_sys_max_cmd_len
=8192;
14250 # On AmigaOS with pdksh, this test takes hours, literally.
14251 # So we just punt and use a minimum line length of 8192.
14252 lt_cv_sys_max_cmd_len
=8192;
14255 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14256 # This has been around since 386BSD, at least. Likely further.
14257 if test -x /sbin
/sysctl
; then
14258 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14259 elif test -x /usr
/sbin
/sysctl
; then
14260 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14262 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14264 # And add a safety zone
14265 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14266 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14271 lt_cv_sys_max_cmd_len
=196608
14275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14277 # nice to cause kernel panics so lets avoid the loop below.
14278 # First set a reasonable default.
14279 lt_cv_sys_max_cmd_len
=16384
14281 if test -x /sbin
/sysconfig
; then
14282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14283 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14288 lt_cv_sys_max_cmd_len
=102400
14290 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14291 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14292 if test -n "$kargmax"; then
14293 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14295 lt_cv_sys_max_cmd_len
=32768
14299 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14300 if test -n "$lt_cv_sys_max_cmd_len"; then
14301 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14302 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14304 # Make teststring a little bigger before we do anything with it.
14305 # a 1K string should be a reasonable start.
14306 for i
in 1 2 3 4 5 6 7 8 ; do
14307 teststring
=$teststring$teststring
14309 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14310 # If test is not a shell built-in, we'll probably end up computing a
14311 # maximum length that is only half of the actual maximum length, but
14313 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14314 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14315 test $i != 17 # 1/2 MB should be enough
14318 teststring
=$teststring$teststring
14320 # Only check the string length outside the loop.
14321 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14323 # Add a significant safety factor because C++ compilers can tack on
14324 # massive amounts of additional arguments before passing them to the
14325 # linker. It appears as though 1/2 is a usable value.
14326 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14333 if test -n $lt_cv_sys_max_cmd_len ; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14335 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14338 $as_echo "none" >&6; }
14340 max_cmd_len
=$lt_cv_sys_max_cmd_len
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14352 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14353 # Try some XSI features
14355 ( _lt_dummy
="a/b/c"
14356 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14358 && eval 'test $(( 1 + 1 )) -eq 2 \
14359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14362 $as_echo "$xsi_shell" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14366 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14368 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14370 && lt_shell_append=yes
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14372 $as_echo "$lt_shell_append" >&6; }
14375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14385 # test EBCDIC or ASCII
14386 case `echo X|tr X '\101'` in
14387 A) # ASCII based system
14388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14389 lt_SP2NL='tr \040 \012'
14390 lt_NL2SP='tr \015\012 \040\040'
14392 *) # EBCDIC based system
14393 lt_SP2NL='tr \100 \n'
14394 lt_NL2SP='tr \r\n \100\100'
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14407 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14408 if ${lt_cv_ld_reload_flag+:} false; then :
14409 $as_echo_n "(cached
) " >&6
14411 lt_cv_ld_reload_flag='-r'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14414 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14415 reload_flag=$lt_cv_ld_reload_flag
14416 case $reload_flag in
14418 *) reload_flag=" $reload_flag" ;;
14420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14423 if test "$GCC" = yes; then
14424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14439 if test -n "$ac_tool_prefix"; then
14440 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14441 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14443 $as_echo_n "checking
for $ac_word...
" >&6; }
14444 if ${ac_cv_prog_OBJDUMP+:} false; then :
14445 $as_echo_n "(cached
) " >&6
14447 if test -n "$OBJDUMP"; then
14448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14467 OBJDUMP=$ac_cv_prog_OBJDUMP
14468 if test -n "$OBJDUMP"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14470 $as_echo "$OBJDUMP" >&6; }
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14473 $as_echo "no
" >&6; }
14478 if test -z "$ac_cv_prog_OBJDUMP"; then
14479 ac_ct_OBJDUMP=$OBJDUMP
14480 # Extract the first word of "objdump
", so it can be a program name with args.
14481 set dummy objdump; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14483 $as_echo_n "checking
for $ac_word...
" >&6; }
14484 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14485 $as_echo_n "(cached
) " >&6
14487 if test -n "$ac_ct_OBJDUMP"; then
14488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14507 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14508 if test -n "$ac_ct_OBJDUMP"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14510 $as_echo "$ac_ct_OBJDUMP" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14513 $as_echo "no
" >&6; }
14516 if test "x
$ac_ct_OBJDUMP" = x; then
14519 case $cross_compiling:$ac_tool_warned in
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14522 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14523 ac_tool_warned=yes ;;
14525 OBJDUMP=$ac_ct_OBJDUMP
14528 OBJDUMP="$ac_cv_prog_OBJDUMP"
14531 test -z "$OBJDUMP" && OBJDUMP=objdump
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14542 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14543 if ${lt_cv_deplibs_check_method+:} false; then :
14544 $as_echo_n "(cached
) " >&6
14546 lt_cv_file_magic_cmd='$MAGIC_CMD'
14547 lt_cv_file_magic_test_file=
14548 lt_cv_deplibs_check_method='unknown'
14549 # Need to set the preceding variable on all platforms that support
14550 # interlibrary dependencies.
14551 # 'none' -- dependencies not supported.
14552 # `unknown' -- same as none, but documents that we really don't know.
14553 # 'pass_all' -- all dependencies passed with no checks.
14554 # 'test_compile' -- check by making test program.
14555 # 'file_magic [[regex]]' -- check by looking for files in library path
14556 # which responds to the $file_magic_cmd with a given extended regex.
14557 # If you have `file' or equivalent on your system and you're not sure
14558 # whether `pass_all' will *always* work, you probably want this one.
14562 lt_cv_deplibs_check_method=pass_all
14566 lt_cv_deplibs_check_method=pass_all
14570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14571 lt_cv_file_magic_cmd='/usr/bin/file -L'
14572 lt_cv_file_magic_test_file=/shlib/libc.so
14576 # func_win32_libid is a shell function defined in ltmain.sh
14577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14578 lt_cv_file_magic_cmd='func_win32_libid'
14582 # Base MSYS/MinGW do not provide the 'file' command needed by
14583 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14584 # unless we find 'file', for example because we are cross-compiling.
14585 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14586 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14588 lt_cv_file_magic_cmd='func_win32_libid'
14590 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14591 lt_cv_file_magic_cmd='$OBJDUMP -f'
14596 # use the weaker test based on 'objdump'. See mingw*.
14597 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14598 lt_cv_file_magic_cmd='$OBJDUMP -f'
14601 darwin* | rhapsody*)
14602 lt_cv_deplibs_check_method=pass_all
14605 freebsd* | dragonfly*)
14606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14609 # Not sure whether the presence of OpenBSD here was a mistake.
14610 # Let's accept both of them until this is cleared up.
14611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14612 lt_cv_file_magic_cmd=/usr/bin/file
14613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14617 lt_cv_deplibs_check_method=pass_all
14622 lt_cv_deplibs_check_method=pass_all
14626 lt_cv_deplibs_check_method=pass_all
14629 hpux10.20* | hpux11*)
14630 lt_cv_file_magic_cmd=/usr/bin/file
14633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14637 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]'
14638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14652 irix5* | irix6* | nonstopux*)
14654 *-32|*"-32 ") libmagic=32-bit;;
14655 *-n32|*"-n32 ") libmagic=N32;;
14656 *-64|*"-64 ") libmagic=64-bit;;
14657 *) libmagic=never-match;;
14659 lt_cv_deplibs_check_method=pass_all
14662 # This must be Linux ELF.
14663 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14664 lt_cv_deplibs_check_method=pass_all
14668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14677 lt_cv_file_magic_cmd=/usr/bin/file
14678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14682 lt_cv_deplibs_check_method=pass_all
14686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14693 osf3* | osf4* | osf5*)
14694 lt_cv_deplibs_check_method=pass_all
14698 lt_cv_deplibs_check_method=pass_all
14702 lt_cv_deplibs_check_method=pass_all
14705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14706 lt_cv_deplibs_check_method=pass_all
14710 case $host_vendor in
14712 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]'
14713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14716 lt_cv_deplibs_check_method=pass_all
14719 lt_cv_file_magic_cmd='/bin/file'
14720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14723 lt_cv_file_magic_cmd='/bin/file'
14724 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14725 lt_cv_file_magic_test_file=/lib/libc.so
14728 lt_cv_deplibs_check_method=pass_all
14731 lt_cv_deplibs_check_method=pass_all
14737 lt_cv_deplibs_check_method=pass_all
14740 # Assume VxWorks cross toolchains are built on Linux, possibly
14741 # as canadian for Windows hosts.
14742 lt_cv_deplibs_check_method=pass_all
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14748 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14749 file_magic_cmd=$lt_cv_file_magic_cmd
14750 deplibs_check_method=$lt_cv_deplibs_check_method
14751 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14764 if test -n "$ac_tool_prefix"; then
14765 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14766 set dummy ${ac_tool_prefix}ar; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14768 $as_echo_n "checking
for $ac_word...
" >&6; }
14769 if ${ac_cv_prog_AR+:} false; then :
14770 $as_echo_n "(cached
) " >&6
14772 if test -n "$AR"; then
14773 ac_cv_prog_AR="$AR" # Let the user override the test.
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14782 ac_cv_prog_AR="${ac_tool_prefix}ar"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14793 if test -n "$AR"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14795 $as_echo "$AR" >&6; }
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14798 $as_echo "no
" >&6; }
14803 if test -z "$ac_cv_prog_AR"; then
14805 # Extract the first word of "ar", so it can be a program name with args.
14806 set dummy ar; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14808 $as_echo_n "checking
for $ac_word...
" >&6; }
14809 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14810 $as_echo_n "(cached
) " >&6
14812 if test -n "$ac_ct_AR"; then
14813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 ac_cv_prog_ac_ct_AR="ar"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14833 if test -n "$ac_ct_AR"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14835 $as_echo "$ac_ct_AR" >&6; }
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14838 $as_echo "no
" >&6; }
14841 if test "x
$ac_ct_AR" = x; then
14844 case $cross_compiling:$ac_tool_warned in
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14847 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14848 ac_tool_warned=yes ;;
14853 AR="$ac_cv_prog_AR"
14856 test -z "$AR" && AR=ar
14857 test -z "$AR_FLAGS" && AR_FLAGS=cru
14869 if test -n "$ac_tool_prefix"; then
14870 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14871 set dummy ${ac_tool_prefix}strip; ac_word=$2
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14873 $as_echo_n "checking
for $ac_word...
" >&6; }
14874 if ${ac_cv_prog_STRIP+:} false; then :
14875 $as_echo_n "(cached
) " >&6
14877 if test -n "$STRIP"; then
14878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14897 STRIP=$ac_cv_prog_STRIP
14898 if test -n "$STRIP"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14900 $as_echo "$STRIP" >&6; }
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14903 $as_echo "no
" >&6; }
14908 if test -z "$ac_cv_prog_STRIP"; then
14910 # Extract the first word of "strip
", so it can be a program name with args.
14911 set dummy strip; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14913 $as_echo_n "checking
for $ac_word...
" >&6; }
14914 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14915 $as_echo_n "(cached
) " >&6
14917 if test -n "$ac_ct_STRIP"; then
14918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_ac_ct_STRIP="strip
"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14938 if test -n "$ac_ct_STRIP"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14940 $as_echo "$ac_ct_STRIP" >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14943 $as_echo "no
" >&6; }
14946 if test "x
$ac_ct_STRIP" = x; then
14949 case $cross_compiling:$ac_tool_warned in
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14952 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14953 ac_tool_warned=yes ;;
14958 STRIP="$ac_cv_prog_STRIP"
14961 test -z "$STRIP" && STRIP=:
14968 if test -n "$ac_tool_prefix"; then
14969 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14972 $as_echo_n "checking
for $ac_word...
" >&6; }
14973 if ${ac_cv_prog_RANLIB+:} false; then :
14974 $as_echo_n "(cached
) " >&6
14976 if test -n "$RANLIB"; then
14977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 RANLIB=$ac_cv_prog_RANLIB
14997 if test -n "$RANLIB"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14999 $as_echo "$RANLIB" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15007 if test -z "$ac_cv_prog_RANLIB"; then
15008 ac_ct_RANLIB=$RANLIB
15009 # Extract the first word of "ranlib
", so it can be a program name with args.
15010 set dummy ranlib; ac_word=$2
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15012 $as_echo_n "checking
for $ac_word...
" >&6; }
15013 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15014 $as_echo_n "(cached
) " >&6
15016 if test -n "$ac_ct_RANLIB"; then
15017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15023 test -z "$as_dir" && as_dir=.
15024 for ac_exec_ext in '' $ac_executable_extensions; do
15025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15026 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15037 if test -n "$ac_ct_RANLIB"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15039 $as_echo "$ac_ct_RANLIB" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15042 $as_echo "no
" >&6; }
15045 if test "x
$ac_ct_RANLIB" = x; then
15048 case $cross_compiling:$ac_tool_warned in
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15051 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15052 ac_tool_warned=yes ;;
15054 RANLIB=$ac_ct_RANLIB
15057 RANLIB="$ac_cv_prog_RANLIB"
15060 test -z "$RANLIB" && RANLIB=:
15067 # Determine commands to create old-style static archives.
15068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15069 old_postinstall_cmds='chmod 644 $oldlib'
15070 old_postuninstall_cmds=
15072 if test -n "$RANLIB"; then
15075 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15078 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15081 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15086 lock_old_archive_extraction=yes ;;
15088 lock_old_archive_extraction=no ;;
15129 # If no C compiler was specified, use CC.
15132 # If no C compiler flags were specified, use CFLAGS.
15133 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15135 # Allow CC to be a program name with arguments.
15139 # Check for command to grab the raw symbol name followed by C symbol from nm.
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15141 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15142 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15143 $as_echo_n "(cached
) " >&6
15146 # These are sane defaults that work on at least a few old systems.
15147 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15149 # Character class describing NM global symbol codes.
15150 symcode='[BCDEGRST]'
15152 # Regexp to match symbols that can be accessed directly from C.
15153 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15155 # Define system-specific variables.
15160 cygwin* | mingw* | pw32* | cegcc*)
15161 symcode='[ABCDGISTW]'
15164 if test "$host_cpu" = ia64; then
15165 symcode='[ABCDEGRST]'
15168 irix* | nonstopux*)
15169 symcode='[BCDEGRST]'
15172 symcode='[BCDEGQRST]'
15183 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15191 # If we're using GNU nm, then use its standard symbol codes.
15192 case `$NM -V 2>&1` in
15193 *GNU* | *'with BFD'*)
15194 symcode='[ABCDGIRSTW]' ;;
15197 # Transform an extracted symbol line into a proper C declaration.
15198 # Some systems (esp. on ia64) link data and code symbols differently,
15199 # so use this general approach.
15200 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15202 # Transform an extracted symbol line into symbol name and symbol address
15203 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15204 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'"
15206 # Handle CRLF in mingw tool chain
15210 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15214 # Try without a prefix underscore, then with it.
15215 for ac_symprfx in "" "_
"; do
15217 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15218 symxfrm="\\1 $ac_symprfx\\2 \\2"
15220 # Write the raw and C identifiers.
15221 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15222 # Fake it for dumpbin and say T for any non-static function
15223 # and D for any global variable.
15224 # Also find C++ and __fastcall symbols from MSVC++,
15225 # which start with @ or ?.
15226 lt_cv_sys_global_symbol_pipe="$AWK '"\
15227 " {last_section=section; section=\$ 3};"\
15228 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15229 " \$ 0!~/External *\|/{next};"\
15230 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15231 " {if(hide[section]) next};"\
15232 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15233 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15234 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15235 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15236 " ' prfx
=^
$ac_symprfx"
15238 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15241 # Check to see that the pipe works correctly.
15245 cat > conftest.$ac_ext <<_LT_EOF
15250 void nm_test_func(void);
15251 void nm_test_func(void){}
15255 int main(){nm_test_var='a';nm_test_func();return(0);}
15258 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15259 (eval $ac_compile) 2>&5
15261 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15262 test $ac_status = 0; }; then
15263 # Now try to grab the symbols.
15265 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15266 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15268 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15269 test $ac_status = 0; } && test -s "$nlist"; then
15270 # Try sorting and uniquifying the output.
15271 if sort "$nlist" | uniq > "$nlist"T; then
15272 mv -f "$nlist"T "$nlist"
15277 # Make sure that we snagged all the symbols we need.
15278 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15279 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15280 cat <<_LT_EOF > conftest.$ac_ext
15286 # Now generate the symbol file.
15287 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15289 cat <<_LT_EOF >> conftest.$ac_ext
15291 /* The mapping between symbol names and symbols. */
15296 lt__PROGRAM__LTX_preloaded_symbols[] =
15298 { "@PROGRAM@
", (void *) 0 },
15300 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15301 cat <<\_LT_EOF >> conftest.$ac_ext
15305 /* This works around a problem in FreeBSD linker */
15306 #ifdef FREEBSD_WORKAROUND
15307 static const void *lt_preloaded_setup() {
15308 return lt__PROGRAM__LTX_preloaded_symbols;
15316 # Now try linking the two files.
15317 mv conftest.$ac_objext conftstm.$ac_objext
15318 lt_save_LIBS="$LIBS"
15319 lt_save_CFLAGS="$CFLAGS"
15320 LIBS="conftstm.
$ac_objext"
15321 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15322 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15323 (eval $ac_link) 2>&5
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15326 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15329 LIBS="$lt_save_LIBS"
15330 CFLAGS="$lt_save_CFLAGS"
15332 echo "cannot
find nm_test_func
in $nlist" >&5
15335 echo "cannot
find nm_test_var
in $nlist" >&5
15338 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15341 echo "$progname: failed program was
:" >&5
15342 cat conftest.$ac_ext >&5
15344 rm -rf conftest* conftst*
15346 # Do not use the global_symbol_pipe unless it works.
15347 if test "$pipe_works" = yes; then
15350 lt_cv_sys_global_symbol_pipe=
15356 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15357 lt_cv_sys_global_symbol_to_cdecl=
15359 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15361 $as_echo "failed
" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15364 $as_echo "ok
" >&6; }
15388 # Check whether --enable-libtool-lock was given.
15389 if test "${enable_libtool_lock+set}" = set; then :
15390 enableval=$enable_libtool_lock;
15393 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15395 # Some flags need to be propagated to the compiler or linker for good
15399 # Find out which ABI we are using.
15400 echo 'int i;' > conftest.$ac_ext
15401 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15402 (eval $ac_compile) 2>&5
15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15405 test $ac_status = 0; }; then
15406 case `/usr/bin/file conftest.$ac_objext` in
15408 HPUX_IA64_MODE="32"
15411 HPUX_IA64_MODE="64"
15418 # Find out which ABI we are using.
15419 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15420 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15421 (eval $ac_compile) 2>&5
15423 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15424 test $ac_status = 0; }; then
15425 if test "$lt_cv_prog_gnu_ld" = yes; then
15426 case `/usr/bin/file conftest.$ac_objext` in
15428 LD="${LD-ld} -melf32bsmip"
15431 LD="${LD-ld} -melf32bmipn32"
15434 LD="${LD-ld} -melf64bmip"
15438 case `/usr/bin/file conftest.$ac_objext` in
15454 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15455 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15456 # Find out which ABI we are using.
15457 echo 'int i;' > conftest.$ac_ext
15458 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15459 (eval $ac_compile) 2>&5
15461 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15462 test $ac_status = 0; }; then
15463 case `/usr/bin/file conftest.o` in
15466 x86_64-*kfreebsd*-gnu)
15467 LD="${LD-ld} -m elf_i386_fbsd
"
15470 case `/usr/bin/file conftest.o` in
15472 LD="${LD-ld} -m elf32_x86_64
"
15475 LD="${LD-ld} -m elf_i386
"
15479 powerpc64le-*linux*)
15480 LD="${LD-ld} -m elf32lppclinux
"
15483 LD="${LD-ld} -m elf32ppclinux
"
15486 LD="${LD-ld} -m elf_s390
"
15489 LD="${LD-ld} -m elf32_sparc
"
15495 x86_64-*kfreebsd*-gnu)
15496 LD="${LD-ld} -m elf_x86_64_fbsd
"
15499 LD="${LD-ld} -m elf_x86_64
"
15502 LD="${LD-ld} -m elf64lppc
"
15505 LD="${LD-ld} -m elf64ppc
"
15507 s390*-*linux*|s390*-*tpf*)
15508 LD="${LD-ld} -m elf64_s390
"
15511 LD="${LD-ld} -m elf64_sparc
"
15521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15522 SAVE_CFLAGS="$CFLAGS"
15523 CFLAGS="$CFLAGS -belf"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15525 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15526 if ${lt_cv_cc_needs_belf+:} false; then :
15527 $as_echo_n "(cached
) " >&6
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15546 if ac_fn_c_try_link "$LINENO"; then :
15547 lt_cv_cc_needs_belf=yes
15549 lt_cv_cc_needs_belf=no
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15561 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15564 CFLAGS="$SAVE_CFLAGS"
15568 # Find out which ABI we are using.
15569 echo 'int i;' > conftest.$ac_ext
15570 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15571 (eval $ac_compile) 2>&5
15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15574 test $ac_status = 0; }; then
15575 case `/usr/bin/file conftest.o` in
15577 case $lt_cv_prog_gnu_ld in
15578 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15592 need_locks="$enable_libtool_lock"
15596 rhapsody* | darwin*)
15597 if test -n "$ac_tool_prefix"; then
15598 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15599 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15601 $as_echo_n "checking
for $ac_word...
" >&6; }
15602 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15603 $as_echo_n "(cached
) " >&6
15605 if test -n "$DSYMUTIL"; then
15606 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15609 for as_dir in $PATH
15612 test -z "$as_dir" && as_dir=.
15613 for ac_exec_ext in '' $ac_executable_extensions; do
15614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15615 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15625 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15626 if test -n "$DSYMUTIL"; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15628 $as_echo "$DSYMUTIL" >&6; }
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15631 $as_echo "no
" >&6; }
15636 if test -z "$ac_cv_prog_DSYMUTIL"; then
15637 ac_ct_DSYMUTIL=$DSYMUTIL
15638 # Extract the first word of "dsymutil
", so it can be a program name with args.
15639 set dummy dsymutil; ac_word=$2
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15641 $as_echo_n "checking
for $ac_word...
" >&6; }
15642 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15643 $as_echo_n "(cached
) " >&6
15645 if test -n "$ac_ct_DSYMUTIL"; then
15646 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649 for as_dir in $PATH
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
15654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15655 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15665 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15666 if test -n "$ac_ct_DSYMUTIL"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15668 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15671 $as_echo "no
" >&6; }
15674 if test "x
$ac_ct_DSYMUTIL" = x; then
15677 case $cross_compiling:$ac_tool_warned in
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15680 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15681 ac_tool_warned=yes ;;
15683 DSYMUTIL=$ac_ct_DSYMUTIL
15686 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15689 if test -n "$ac_tool_prefix"; then
15690 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15691 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15693 $as_echo_n "checking
for $ac_word...
" >&6; }
15694 if ${ac_cv_prog_NMEDIT+:} false; then :
15695 $as_echo_n "(cached
) " >&6
15697 if test -n "$NMEDIT"; then
15698 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15717 NMEDIT=$ac_cv_prog_NMEDIT
15718 if test -n "$NMEDIT"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15720 $as_echo "$NMEDIT" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15723 $as_echo "no
" >&6; }
15728 if test -z "$ac_cv_prog_NMEDIT"; then
15729 ac_ct_NMEDIT=$NMEDIT
15730 # Extract the first word of "nmedit
", so it can be a program name with args.
15731 set dummy nmedit; ac_word=$2
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15733 $as_echo_n "checking
for $ac_word...
" >&6; }
15734 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15735 $as_echo_n "(cached
) " >&6
15737 if test -n "$ac_ct_NMEDIT"; then
15738 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15741 for as_dir in $PATH
15744 test -z "$as_dir" && as_dir=.
15745 for ac_exec_ext in '' $ac_executable_extensions; do
15746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15747 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15748 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15757 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15758 if test -n "$ac_ct_NMEDIT"; then
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15760 $as_echo "$ac_ct_NMEDIT" >&6; }
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15763 $as_echo "no
" >&6; }
15766 if test "x
$ac_ct_NMEDIT" = x; then
15769 case $cross_compiling:$ac_tool_warned in
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15772 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15773 ac_tool_warned=yes ;;
15775 NMEDIT=$ac_ct_NMEDIT
15778 NMEDIT="$ac_cv_prog_NMEDIT"
15781 if test -n "$ac_tool_prefix"; then
15782 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15783 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15785 $as_echo_n "checking
for $ac_word...
" >&6; }
15786 if ${ac_cv_prog_LIPO+:} false; then :
15787 $as_echo_n "(cached
) " >&6
15789 if test -n "$LIPO"; then
15790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15809 LIPO=$ac_cv_prog_LIPO
15810 if test -n "$LIPO"; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15812 $as_echo "$LIPO" >&6; }
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15815 $as_echo "no
" >&6; }
15820 if test -z "$ac_cv_prog_LIPO"; then
15822 # Extract the first word of "lipo
", so it can be a program name with args.
15823 set dummy lipo; ac_word=$2
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15825 $as_echo_n "checking
for $ac_word...
" >&6; }
15826 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15827 $as_echo_n "(cached
) " >&6
15829 if test -n "$ac_ct_LIPO"; then
15830 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15833 for as_dir in $PATH
15836 test -z "$as_dir" && as_dir=.
15837 for ac_exec_ext in '' $ac_executable_extensions; do
15838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15839 ac_cv_prog_ac_ct_LIPO="lipo
"
15840 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15849 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15850 if test -n "$ac_ct_LIPO"; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15852 $as_echo "$ac_ct_LIPO" >&6; }
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15855 $as_echo "no
" >&6; }
15858 if test "x
$ac_ct_LIPO" = x; then
15861 case $cross_compiling:$ac_tool_warned in
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15864 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15865 ac_tool_warned=yes ;;
15870 LIPO="$ac_cv_prog_LIPO"
15873 if test -n "$ac_tool_prefix"; then
15874 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15875 set dummy ${ac_tool_prefix}otool; ac_word=$2
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15877 $as_echo_n "checking
for $ac_word...
" >&6; }
15878 if ${ac_cv_prog_OTOOL+:} false; then :
15879 $as_echo_n "(cached
) " >&6
15881 if test -n "$OTOOL"; then
15882 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15888 test -z "$as_dir" && as_dir=.
15889 for ac_exec_ext in '' $ac_executable_extensions; do
15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15892 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15901 OTOOL=$ac_cv_prog_OTOOL
15902 if test -n "$OTOOL"; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15904 $as_echo "$OTOOL" >&6; }
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15907 $as_echo "no
" >&6; }
15912 if test -z "$ac_cv_prog_OTOOL"; then
15914 # Extract the first word of "otool
", so it can be a program name with args.
15915 set dummy otool; ac_word=$2
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15917 $as_echo_n "checking
for $ac_word...
" >&6; }
15918 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15919 $as_echo_n "(cached
) " >&6
15921 if test -n "$ac_ct_OTOOL"; then
15922 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15925 for as_dir in $PATH
15928 test -z "$as_dir" && as_dir=.
15929 for ac_exec_ext in '' $ac_executable_extensions; do
15930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15931 ac_cv_prog_ac_ct_OTOOL="otool
"
15932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15941 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15942 if test -n "$ac_ct_OTOOL"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15944 $as_echo "$ac_ct_OTOOL" >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15947 $as_echo "no
" >&6; }
15950 if test "x
$ac_ct_OTOOL" = x; then
15953 case $cross_compiling:$ac_tool_warned in
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15956 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15957 ac_tool_warned=yes ;;
15962 OTOOL="$ac_cv_prog_OTOOL"
15965 if test -n "$ac_tool_prefix"; then
15966 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15967 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15969 $as_echo_n "checking
for $ac_word...
" >&6; }
15970 if ${ac_cv_prog_OTOOL64+:} false; then :
15971 $as_echo_n "(cached
) " >&6
15973 if test -n "$OTOOL64"; then
15974 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977 for as_dir in $PATH
15980 test -z "$as_dir" && as_dir=.
15981 for ac_exec_ext in '' $ac_executable_extensions; do
15982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15993 OTOOL64=$ac_cv_prog_OTOOL64
15994 if test -n "$OTOOL64"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15996 $as_echo "$OTOOL64" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15999 $as_echo "no
" >&6; }
16004 if test -z "$ac_cv_prog_OTOOL64"; then
16005 ac_ct_OTOOL64=$OTOOL64
16006 # Extract the first word of "otool64
", so it can be a program name with args.
16007 set dummy otool64; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16009 $as_echo_n "checking
for $ac_word...
" >&6; }
16010 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16011 $as_echo_n "(cached
) " >&6
16013 if test -n "$ac_ct_OTOOL64"; then
16014 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16033 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16034 if test -n "$ac_ct_OTOOL64"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16036 $as_echo "$ac_ct_OTOOL64" >&6; }
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16039 $as_echo "no
" >&6; }
16042 if test "x
$ac_ct_OTOOL64" = x; then
16045 case $cross_compiling:$ac_tool_warned in
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16048 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16049 ac_tool_warned=yes ;;
16051 OTOOL64=$ac_ct_OTOOL64
16054 OTOOL64="$ac_cv_prog_OTOOL64"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16084 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16085 if ${lt_cv_apple_cc_single_mod+:} false; then :
16086 $as_echo_n "(cached
) " >&6
16088 lt_cv_apple_cc_single_mod=no
16089 if test -z "${LT_MULTI_MODULE}"; then
16090 # By default we will add the -single_module flag. You can override
16091 # by either setting the environment variable LT_MULTI_MODULE
16092 # non-empty at configure time, or by adding -multi_module to the
16094 rm -rf libconftest.dylib*
16095 echo "int foo
(void
){return 1;}" > conftest.c
16096 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16097 -dynamiclib -Wl,-single_module conftest.c
" >&5
16098 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16099 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16101 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16102 lt_cv_apple_cc_single_mod=yes
16104 cat conftest.err >&5
16106 rm -rf libconftest.dylib*
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16111 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16113 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16114 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16115 $as_echo_n "(cached
) " >&6
16117 lt_cv_ld_exported_symbols_list=no
16118 save_LDFLAGS=$LDFLAGS
16119 echo "_main
" > conftest.sym
16120 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16132 if ac_fn_c_try_link "$LINENO"; then :
16133 lt_cv_ld_exported_symbols_list=yes
16135 lt_cv_ld_exported_symbols_list=no
16137 rm -f core conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139 LDFLAGS="$save_LDFLAGS"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16143 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16145 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16146 if ${lt_cv_ld_force_load+:} false; then :
16147 $as_echo_n "(cached
) " >&6
16149 lt_cv_ld_force_load=no
16150 cat > conftest.c << _LT_EOF
16151 int forced_loaded() { return 2;}
16153 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16154 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16155 echo "$AR cru libconftest.a conftest.o
" >&5
16156 $AR cru libconftest.a conftest.o 2>&5
16157 cat > conftest.c << _LT_EOF
16158 int main() { return 0;}
16160 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16161 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16163 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16164 lt_cv_ld_force_load=yes
16166 cat conftest.err >&5
16168 rm -f conftest.err libconftest.a conftest conftest.c
16169 rm -rf conftest.dSYM
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16173 $as_echo "$lt_cv_ld_force_load" >&6; }
16174 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16175 # build without first building modern cctools / linker.
16176 case $host_cpu-$host_os in
16177 *-rhapsody* | *-darwin1.[012])
16178 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16182 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16183 # deployment target is forced to an earlier version.
16184 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16185 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16196 _lt_dar_single_mod='$single_module'
16198 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16199 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16201 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16203 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16204 _lt_dsymutil='~$DSYMUTIL $lib || :'
16212 for ac_header in dlfcn.h
16214 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16215 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16216 cat >>confdefs.h <<_ACEOF
16217 #define HAVE_DLFCN_H 1
16234 enable_win32_dll=no
16237 # Check whether --enable-shared was given.
16238 if test "${enable_shared+set}" = set; then :
16239 enableval=$enable_shared; p=${PACKAGE-default}
16241 yes) enable_shared=yes ;;
16242 no) enable_shared=no ;;
16245 # Look at the argument we got. We use all the common list separators.
16246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16247 for pkg in $enableval; do
16249 if test "X
$pkg" = "X
$p"; then
16268 # Check whether --enable-static was given.
16269 if test "${enable_static+set}" = set; then :
16270 enableval=$enable_static; p=${PACKAGE-default}
16272 yes) enable_static=yes ;;
16273 no) enable_static=no ;;
16276 # Look at the argument we got. We use all the common list separators.
16277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16278 for pkg in $enableval; do
16280 if test "X
$pkg" = "X
$p"; then
16300 # Check whether --with-pic was given.
16301 if test "${with_pic+set}" = set; then :
16302 withval=$with_pic; pic_mode="$withval"
16308 test -z "$pic_mode" && pic_mode=default
16316 # Check whether --enable-fast-install was given.
16317 if test "${enable_fast_install+set}" = set; then :
16318 enableval=$enable_fast_install; p=${PACKAGE-default}
16320 yes) enable_fast_install=yes ;;
16321 no) enable_fast_install=no ;;
16323 enable_fast_install=no
16324 # Look at the argument we got. We use all the common list separators.
16325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16326 for pkg in $enableval; do
16328 if test "X
$pkg" = "X
$p"; then
16329 enable_fast_install=yes
16336 enable_fast_install=yes
16349 # This can be used to rebuild libtool when needed
16350 LIBTOOL_DEPS="$ltmain"
16352 # Always use our own libtool.
16353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16380 test -z "$LN_S" && LN_S="ln -s"
16395 if test -n "${ZSH_VERSION+set}" ; then
16396 setopt NO_GLOB_SUBST
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16400 $as_echo_n "checking
for objdir...
" >&6; }
16401 if ${lt_cv_objdir+:} false; then :
16402 $as_echo_n "(cached
) " >&6
16404 rm -f .libs 2>/dev/null
16405 mkdir .libs 2>/dev/null
16406 if test -d .libs; then
16409 # MS-DOS does not allow filenames that begin with a dot.
16412 rmdir .libs 2>/dev/null
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16415 $as_echo "$lt_cv_objdir" >&6; }
16416 objdir=$lt_cv_objdir
16422 cat >>confdefs.h <<_ACEOF
16423 #define LT_OBJDIR "$lt_cv_objdir/"
16431 # AIX sometimes has problems with the GCC collect2 program. For some
16432 # reason, if we set the COLLECT_NAMES environment variable, the problems
16433 # vanish in a puff of smoke.
16434 if test "X
${COLLECT_NAMES+set}" != Xset; then
16436 export COLLECT_NAMES
16441 # Global variables:
16443 can_build_shared=yes
16445 # All known linkers require a `.a' archive for static linking (except MSVC,
16446 # which needs '.lib').
16449 with_gnu_ld="$lt_cv_prog_gnu_ld"
16452 old_CFLAGS="$CFLAGS"
16454 # Set sane defaults for various variables
16455 test -z "$CC" && CC=cc
16456 test -z "$LTCC" && LTCC=$CC
16457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16458 test -z "$LD" && LD=ld
16459 test -z "$ac_objext" && ac_objext=o
16461 for cc_temp in $compiler""; do
16463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16469 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16472 # Only perform the check for file, if the check method requires it
16473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16474 case $deplibs_check_method in
16476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16478 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16480 $as_echo_n "(cached
) " >&6
16484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16487 lt_save_MAGIC_CMD="$MAGIC_CMD"
16488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16489 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16490 for ac_dir in $ac_dummy; do
16492 test -z "$ac_dir" && ac_dir=.
16493 if test -f $ac_dir/${ac_tool_prefix}file; then
16494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16495 if test -n "$file_magic_test_file"; then
16496 case $deplibs_check_method in
16498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16501 $EGREP "$file_magic_regex" > /dev/null; then
16506 *** Warning: the command libtool uses to detect shared libraries,
16507 *** $file_magic_cmd, produces output that libtool cannot recognize.
16508 *** The result is that libtool may fail to recognize shared libraries
16509 *** as such. This will affect the creation of libtool libraries that
16510 *** depend on shared libraries, but programs linked with such libtool
16511 *** libraries will work regardless of this problem. Nevertheless, you
16512 *** may want to report the problem to your system manager and/or to
16513 *** bug-libtool@gnu.org
16523 MAGIC_CMD="$lt_save_MAGIC_CMD"
16528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16529 if test -n "$MAGIC_CMD"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16531 $as_echo "$MAGIC_CMD" >&6; }
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16534 $as_echo "no
" >&6; }
16541 if test -z "$lt_cv_path_MAGIC_CMD"; then
16542 if test -n "$ac_tool_prefix"; then
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16544 $as_echo_n "checking
for file...
" >&6; }
16545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16546 $as_echo_n "(cached
) " >&6
16550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16553 lt_save_MAGIC_CMD="$MAGIC_CMD"
16554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16555 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16556 for ac_dir in $ac_dummy; do
16558 test -z "$ac_dir" && ac_dir=.
16559 if test -f $ac_dir/file; then
16560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16561 if test -n "$file_magic_test_file"; then
16562 case $deplibs_check_method in
16564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16567 $EGREP "$file_magic_regex" > /dev/null; then
16572 *** Warning: the command libtool uses to detect shared libraries,
16573 *** $file_magic_cmd, produces output that libtool cannot recognize.
16574 *** The result is that libtool may fail to recognize shared libraries
16575 *** as such. This will affect the creation of libtool libraries that
16576 *** depend on shared libraries, but programs linked with such libtool
16577 *** libraries will work regardless of this problem. Nevertheless, you
16578 *** may want to report the problem to your system manager and/or to
16579 *** bug-libtool@gnu.org
16589 MAGIC_CMD="$lt_save_MAGIC_CMD"
16594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16595 if test -n "$MAGIC_CMD"; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16597 $as_echo "$MAGIC_CMD" >&6; }
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16600 $as_echo "no
" >&6; }
16613 # Use C for the default configuration in the libtool script
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16623 # Source file extension for C test sources.
16626 # Object file extension for compiled C test sources.
16630 # Code to be used in simple compile tests
16631 lt_simple_compile_test_code="int some_variable
= 0;"
16633 # Code to be used in simple link tests
16634 lt_simple_link_test_code='int main(){return(0);}'
16642 # If no C compiler was specified, use CC.
16645 # If no C compiler flags were specified, use CFLAGS.
16646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16648 # Allow CC to be a program name with arguments.
16651 # Save the default compiler, since it gets overwritten when the other
16652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16653 compiler_DEFAULT=$CC
16655 # save warnings/boilerplate of simple test code
16656 ac_outfile=conftest.$ac_objext
16657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16659 _lt_compiler_boilerplate=`cat conftest.err`
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_linker_boilerplate=`cat conftest.err`
16670 ## There is no encapsulation within the following macros, do not change
16671 ## the running order or otherwise move them around unless you know exactly
16672 ## what you are doing...
16673 if test -n "$compiler"; then
16675 lt_prog_compiler_no_builtin_flag=
16677 if test "$GCC" = yes; then
16678 case $cc_basename in
16680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16686 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16688 $as_echo_n "(cached
) " >&6
16690 lt_cv_prog_compiler_rtti_exceptions=no
16691 ac_outfile=conftest.$ac_objext
16692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16693 lt_compiler_flag="-fno-rtti -fno-exceptions"
16694 # Insert the option either (1) after the last *FLAGS variable, or
16695 # (2) before a word containing "conftest.
", or (3) at the end.
16696 # Note that $ac_compile itself does not contain backslashes and begins
16697 # with a dollar sign (not a hyphen), so the echo should work correctly.
16698 # The option is referenced via a variable to avoid confusing sed.
16699 lt_compile=`echo "$ac_compile" | $SED \
16700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16702 -e 's:$: $lt_compiler_flag:'`
16703 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16704 (eval "$lt_compile" 2>conftest.err)
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16708 if (exit $ac_status) && test -s "$ac_outfile"; then
16709 # The compiler can only warn and ignore the option if not recognized
16710 # So say no if there are warnings other than the usual output.
16711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16714 lt_cv_prog_compiler_rtti_exceptions=yes
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16723 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16736 lt_prog_compiler_wl=
16737 lt_prog_compiler_pic=
16738 lt_prog_compiler_static=
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16741 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16743 if test "$GCC" = yes; then
16744 lt_prog_compiler_wl='-Wl,'
16745 lt_prog_compiler_static='-static'
16749 # All AIX code is PIC.
16750 if test "$host_cpu" = ia64; then
16751 # AIX 5 now supports IA64 processor
16752 lt_prog_compiler_static='-Bstatic'
16754 lt_prog_compiler_pic='-fPIC'
16760 # see comment about AmigaOS4 .so support
16761 lt_prog_compiler_pic='-fPIC'
16764 # FIXME: we need at least 68020 code to build shared libraries, but
16765 # adding the `-m68020' flag to GCC prevents building anything better,
16767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16773 # PIC is the default for these OSes.
16776 mingw* | cygwin* | pw32* | os2* | cegcc*)
16777 # This hack is so that the source file can tell whether it is being
16778 # built for inclusion in a dll (and should export symbols for example).
16779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16780 # (--disable-auto-import) libraries
16781 lt_prog_compiler_pic='-DDLL_EXPORT'
16784 darwin* | rhapsody*)
16785 # PIC is the default on this platform
16786 # Common symbols not allowed in MH_DYLIB files
16787 lt_prog_compiler_pic='-fno-common'
16791 # PIC is the default for Haiku.
16792 # The "-static" flag exists, but is broken.
16793 lt_prog_compiler_static=
16797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16799 # sets the default TLS model and affects inlining.
16805 lt_prog_compiler_pic='-fPIC'
16811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16812 # Instead, we relocate shared libraries at runtime.
16816 # Just because we use GCC doesn't mean we suddenly get shared libraries
16817 # on systems that don't support them.
16818 lt_prog_compiler_can_build_shared=no
16823 # QNX uses GNU C++, but need to define -shared option too, otherwise
16824 # it will coredump.
16825 lt_prog_compiler_pic='-fPIC -shared'
16829 if test -d /usr/nec; then
16830 lt_prog_compiler_pic=-Kconform_pic
16835 lt_prog_compiler_pic='-fPIC'
16839 case $cc_basename in
16840 nvcc*) # Cuda Compiler Driver 2.2
16841 lt_prog_compiler_wl='-Xlinker '
16842 lt_prog_compiler_pic='-Xcompiler -fPIC'
16846 # PORTME Check for flag to pass linker flags through the system compiler.
16849 lt_prog_compiler_wl='-Wl,'
16850 if test "$host_cpu" = ia64; then
16851 # AIX 5 now supports IA64 processor
16852 lt_prog_compiler_static='-Bstatic'
16854 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16858 mingw* | cygwin* | pw32* | os2* | cegcc*)
16859 # This hack is so that the source file can tell whether it is being
16860 # built for inclusion in a dll (and should export symbols for example).
16861 lt_prog_compiler_pic='-DDLL_EXPORT'
16864 hpux9* | hpux10* | hpux11*)
16865 lt_prog_compiler_wl='-Wl,'
16866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16867 # not for PA HP-UX.
16873 lt_prog_compiler_pic='+Z'
16876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16877 lt_prog_compiler_static='${wl}-a ${wl}archive'
16880 irix5* | irix6* | nonstopux*)
16881 lt_prog_compiler_wl='-Wl,'
16882 # PIC (with -KPIC) is the default.
16883 lt_prog_compiler_static='-non_shared'
16886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16887 case $cc_basename in
16888 # old Intel for x86_64 which still supported -KPIC.
16890 lt_prog_compiler_wl='-Wl,'
16891 lt_prog_compiler_pic='-KPIC'
16892 lt_prog_compiler_static='-static'
16894 # icc used to be incompatible with GCC.
16895 # ICC 10 doesn't accept -KPIC any more.
16897 lt_prog_compiler_wl='-Wl,'
16898 lt_prog_compiler_pic='-fPIC'
16899 lt_prog_compiler_static='-static'
16901 # Lahey Fortran 8.1.
16903 lt_prog_compiler_wl='-Wl,'
16904 lt_prog_compiler_pic='--shared'
16905 lt_prog_compiler_static='--static'
16907 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16908 # Portland Group compilers (*not* the Pentium gcc compiler,
16909 # which looks to be a dead project)
16910 lt_prog_compiler_wl='-Wl,'
16911 lt_prog_compiler_pic='-fpic'
16912 lt_prog_compiler_static='-Bstatic'
16915 lt_prog_compiler_wl='-Wl,'
16916 # All Alpha code is PIC.
16917 lt_prog_compiler_static='-non_shared'
16919 xl* | bgxl* | bgf* | mpixl*)
16920 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16921 lt_prog_compiler_wl='-Wl,'
16922 lt_prog_compiler_pic='-qpic'
16923 lt_prog_compiler_static='-qstaticlink'
16926 case `$CC -V 2>&1 | sed 5q` in
16927 *Sun\ F* | *Sun*Fortran*)
16928 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16929 lt_prog_compiler_pic='-KPIC'
16930 lt_prog_compiler_static='-Bstatic'
16931 lt_prog_compiler_wl=''
16935 lt_prog_compiler_pic='-KPIC'
16936 lt_prog_compiler_static='-Bstatic'
16937 lt_prog_compiler_wl='-Wl,'
16945 lt_prog_compiler_pic='-KPIC'
16946 lt_prog_compiler_static='-Bstatic'
16950 # QNX uses GNU C++, but need to define -shared option too, otherwise
16951 # it will coredump.
16952 lt_prog_compiler_pic='-fPIC -shared'
16955 osf3* | osf4* | osf5*)
16956 lt_prog_compiler_wl='-Wl,'
16957 # All OSF/1 code is PIC.
16958 lt_prog_compiler_static='-non_shared'
16962 lt_prog_compiler_static='-non_shared'
16966 lt_prog_compiler_pic='-KPIC'
16967 lt_prog_compiler_static='-Bstatic'
16968 case $cc_basename in
16969 f77* | f90* | f95*)
16970 lt_prog_compiler_wl='-Qoption ld ';;
16972 lt_prog_compiler_wl='-Wl,';;
16977 lt_prog_compiler_wl='-Qoption ld '
16978 lt_prog_compiler_pic='-PIC'
16979 lt_prog_compiler_static='-Bstatic'
16982 sysv4 | sysv4.2uw2* | sysv4.3*)
16983 lt_prog_compiler_wl='-Wl,'
16984 lt_prog_compiler_pic='-KPIC'
16985 lt_prog_compiler_static='-Bstatic'
16989 if test -d /usr/nec ;then
16990 lt_prog_compiler_pic='-Kconform_pic'
16991 lt_prog_compiler_static='-Bstatic'
16995 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16996 lt_prog_compiler_wl='-Wl,'
16997 lt_prog_compiler_pic='-KPIC'
16998 lt_prog_compiler_static='-Bstatic'
17002 lt_prog_compiler_wl='-Wl,'
17003 lt_prog_compiler_can_build_shared=no
17007 lt_prog_compiler_pic='-pic'
17008 lt_prog_compiler_static='-Bstatic'
17012 lt_prog_compiler_can_build_shared=no
17018 # For platforms which do not support PIC, -DPIC is meaningless:
17020 lt_prog_compiler_pic=
17023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17027 $as_echo "$lt_prog_compiler_pic" >&6; }
17035 # Check to make sure the PIC flag actually works.
17037 if test -n "$lt_prog_compiler_pic"; then
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17039 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17041 $as_echo_n "(cached
) " >&6
17043 lt_cv_prog_compiler_pic_works=no
17044 ac_outfile=conftest.$ac_objext
17045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17046 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17047 # Insert the option either (1) after the last *FLAGS variable, or
17048 # (2) before a word containing "conftest.
", or (3) at the end.
17049 # Note that $ac_compile itself does not contain backslashes and begins
17050 # with a dollar sign (not a hyphen), so the echo should work correctly.
17051 # The option is referenced via a variable to avoid confusing sed.
17052 lt_compile=`echo "$ac_compile" | $SED \
17053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17055 -e 's:$: $lt_compiler_flag:'`
17056 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17057 (eval "$lt_compile" 2>conftest.err)
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17061 if (exit $ac_status) && test -s "$ac_outfile"; then
17062 # The compiler can only warn and ignore the option if not recognized
17063 # So say no if there are warnings other than the usual output.
17064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17067 lt_cv_prog_compiler_pic_works=yes
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17076 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17077 case $lt_prog_compiler_pic in
17079 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17082 lt_prog_compiler_pic=
17083 lt_prog_compiler_can_build_shared=no
17094 # Check to make sure the static flag actually works.
17096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17098 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17099 if ${lt_cv_prog_compiler_static_works+:} false; then :
17100 $as_echo_n "(cached
) " >&6
17102 lt_cv_prog_compiler_static_works=no
17103 save_LDFLAGS="$LDFLAGS"
17104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17107 # The linker can only warn and ignore the option if not recognized
17108 # So say no if there are warnings
17109 if test -s conftest.err; then
17110 # Append any errors to the config.log.
17111 cat conftest.err 1>&5
17112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17114 if diff conftest.exp conftest.er2 >/dev/null; then
17115 lt_cv_prog_compiler_static_works=yes
17118 lt_cv_prog_compiler_static_works=yes
17122 LDFLAGS="$save_LDFLAGS"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17126 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17128 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17131 lt_prog_compiler_static=
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17141 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17142 if ${lt_cv_prog_compiler_c_o+:} false; then :
17143 $as_echo_n "(cached
) " >&6
17145 lt_cv_prog_compiler_c_o=no
17146 $RM -r conftest 2>/dev/null
17150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17152 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17153 # Insert the option either (1) after the last *FLAGS variable, or
17154 # (2) before a word containing "conftest.
", or (3) at the end.
17155 # Note that $ac_compile itself does not contain backslashes and begins
17156 # with a dollar sign (not a hyphen), so the echo should work correctly.
17157 lt_compile=`echo "$ac_compile" | $SED \
17158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17160 -e 's:$: $lt_compiler_flag:'`
17161 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17162 (eval "$lt_compile" 2>out/conftest.err)
17164 cat out/conftest.err >&5
17165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17168 # The compiler can only warn and ignore the option if not recognized
17169 # So say no if there are warnings
17170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17173 lt_cv_prog_compiler_c_o=yes
17178 # SGI C++ compiler will create directory out/ii_files/ for
17179 # template instantiation
17180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17181 $RM out/* && rmdir out
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17196 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17197 if ${lt_cv_prog_compiler_c_o+:} false; then :
17198 $as_echo_n "(cached
) " >&6
17200 lt_cv_prog_compiler_c_o=no
17201 $RM -r conftest 2>/dev/null
17205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17207 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17208 # Insert the option either (1) after the last *FLAGS variable, or
17209 # (2) before a word containing "conftest.
", or (3) at the end.
17210 # Note that $ac_compile itself does not contain backslashes and begins
17211 # with a dollar sign (not a hyphen), so the echo should work correctly.
17212 lt_compile=`echo "$ac_compile" | $SED \
17213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17215 -e 's:$: $lt_compiler_flag:'`
17216 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17217 (eval "$lt_compile" 2>out/conftest.err)
17219 cat out/conftest.err >&5
17220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17223 # The compiler can only warn and ignore the option if not recognized
17224 # So say no if there are warnings
17225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17228 lt_cv_prog_compiler_c_o=yes
17233 # SGI C++ compiler will create directory out/ii_files/ for
17234 # template instantiation
17235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17236 $RM out/* && rmdir out
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17243 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17248 hard_links="nottested
"
17249 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17250 # do not overwrite the value of need_locks provided by the user
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17252 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17257 ln conftest.a conftest.b 2>&5 || hard_links=no
17258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17260 $as_echo "$hard_links" >&6; }
17261 if test "$hard_links" = no; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17263 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17276 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17279 allow_undefined_flag=
17280 always_export_symbols=no
17282 archive_expsym_cmds=
17283 compiler_needs_object=no
17284 enable_shared_with_static_runtimes=no
17285 export_dynamic_flag_spec=
17286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17287 hardcode_automatic=no
17289 hardcode_direct_absolute=no
17290 hardcode_libdir_flag_spec=
17291 hardcode_libdir_flag_spec_ld=
17292 hardcode_libdir_separator=
17293 hardcode_minus_L=no
17294 hardcode_shlibpath_var=unsupported
17296 link_all_deplibs=unknown
17298 module_expsym_cmds=
17299 old_archive_from_new_cmds=
17300 old_archive_from_expsyms_cmds=
17301 thread_safe_flag_spec=
17302 whole_archive_flag_spec=
17303 # include_expsyms should be a list of space-separated symbols to be *always*
17304 # included in the symbol list
17306 # exclude_expsyms can be an extended regexp of symbols to exclude
17307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17309 # as well as any symbol that contains `d'.
17310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17312 # platforms (ab)use it in PIC code, but their linkers get confused if
17313 # the symbol is explicitly referenced. Since portable code cannot
17314 # rely on this symbol name, it's probably fine to never include it in
17315 # preloaded symbol tables.
17316 # Exclude shared library initialization/finalization symbols.
17317 extract_expsyms_cmds=
17320 cygwin* | mingw* | pw32* | cegcc*)
17321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17322 # When not using gcc, we currently assume that we are using
17323 # Microsoft Visual C++.
17324 if test "$GCC" != yes; then
17329 # we just hope/assume this is gcc and not c89 (= MSVC++)
17339 # On some targets, GNU ld is compatible enough with the native linker
17340 # that we're better off using the native interface for both.
17341 lt_use_gnu_ld_interface=no
17342 if test "$with_gnu_ld" = yes; then
17345 # The AIX port of GNU ld has always aspired to compatibility
17346 # with the native linker. However, as the warning in the GNU ld
17347 # block says, versions before 2.19.5* couldn't really create working
17348 # shared libraries, regardless of the interface used.
17349 case `$LD -v 2>&1` in
17350 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17351 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17352 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17354 lt_use_gnu_ld_interface=yes
17359 lt_use_gnu_ld_interface=yes
17364 if test "$lt_use_gnu_ld_interface" = yes; then
17365 # If archive_cmds runs LD, not CC, wlarc should be empty
17368 # Set some defaults for GNU ld with shared library support. These
17369 # are reset later if shared libraries are not supported. Putting them
17370 # here allows them to be overridden if necessary.
17371 runpath_var=LD_RUN_PATH
17372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17373 export_dynamic_flag_spec='${wl}--export-dynamic'
17374 # ancient GNU ld didn't support --whole-archive et. al.
17375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17378 whole_archive_flag_spec=
17380 supports_anon_versioning=no
17381 case `$LD -v 2>&1` in
17382 *GNU\ gold*) supports_anon_versioning=yes ;;
17383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17386 *\ 2.11.*) ;; # other 2.11 versions
17387 *) supports_anon_versioning=yes ;;
17390 # See if GNU ld supports shared libraries.
17393 # On AIX/PPC, the GNU linker is very broken
17394 if test "$host_cpu" != ia64; then
17398 *** Warning: the GNU linker, at least up to release 2.19, is reported
17399 *** to be unable to reliably create shared libraries on AIX.
17400 *** Therefore, libtool is disabling shared libraries support. If you
17401 *** really care for shared libraries, you may want to install binutils
17402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17403 *** You will then need to restart the configuration process.
17412 # see comment about AmigaOS4 .so support
17413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 archive_expsym_cmds=''
17417 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)'
17418 hardcode_libdir_flag_spec
='-L$libdir'
17419 hardcode_minus_L
=yes
17425 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17426 allow_undefined_flag
=unsupported
17427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17428 # support --undefined. This deserves some investigation. FIXME
17429 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17435 cygwin
* | mingw
* | pw32
* | cegcc
*)
17436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17437 # as there is no search path for DLLs.
17438 hardcode_libdir_flag_spec
='-L$libdir'
17439 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17440 allow_undefined_flag
=unsupported
17441 always_export_symbols
=no
17442 enable_shared_with_static_runtimes
=yes
17443 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17445 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17446 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 # If the export-symbols file already is a .def file (1st line
17448 # is EXPORTS), use it as is; otherwise, prepend...
17449 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17450 cp $export_symbols $output_objdir/$soname.def;
17452 echo EXPORTS > $output_objdir/$soname.def;
17453 cat $export_symbols >> $output_objdir/$soname.def;
17455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17462 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 link_all_deplibs
=yes
17468 hardcode_shlibpath_var
=no
17469 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17470 export_dynamic_flag_spec
='${wl}-E'
17471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17472 # Instead, shared libraries are loaded at an image base (0x10000000 by
17473 # default) and relocated if they conflict, which is a slow very memory
17474 # consuming and fragmenting process. To avoid this, we pick a random,
17475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17477 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17478 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'
17481 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17483 if test "$host_os" = linux-dietlibc
; then
17484 case $cc_basename in
17485 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17488 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17489 && test "$tmp_diet" = no
17491 tmp_addflag
=' $pic_flag'
17492 tmp_sharedflag
='-shared'
17493 case $cc_basename,$host_cpu in
17494 pgcc
*) # Portland Group C compiler
17495 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'
17496 tmp_addflag
=' $pic_flag'
17498 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17499 # Portland Group f77 and f90 compilers
17500 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'
17501 tmp_addflag
=' $pic_flag -Mnomain' ;;
17502 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17503 tmp_addflag
=' -i_dynamic' ;;
17504 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17505 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17506 ifc
* | ifort
*) # Intel Fortran compiler
17507 tmp_addflag
=' -nofor_main' ;;
17508 lf95
*) # Lahey Fortran 8.1
17509 whole_archive_flag_spec
=
17510 tmp_sharedflag
='--shared' ;;
17511 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17512 tmp_sharedflag
='-qmkshrobj'
17514 nvcc
*) # Cuda Compiler Driver 2.2
17515 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'
17516 compiler_needs_object
=yes
17519 case `$CC -V 2>&1 | sed 5q` in
17520 *Sun\ C
*) # Sun C 5.9
17521 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'
17522 compiler_needs_object
=yes
17523 tmp_sharedflag
='-G' ;;
17524 *Sun\ F
*) # Sun Fortran 8.3
17525 tmp_sharedflag
='-G' ;;
17527 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17529 if test "x$supports_anon_versioning" = xyes
; then
17530 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17532 echo "local: *; };" >> $output_objdir/$libname.ver~
17533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17536 case $cc_basename in
17537 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17538 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17539 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17540 hardcode_libdir_flag_spec
=
17541 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17542 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17543 if test "x$supports_anon_versioning" = xyes
; then
17544 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546 echo "local: *; };" >> $output_objdir/$libname.ver~
17547 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17557 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17558 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17561 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17567 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17572 *** create shared libraries on Solaris systems. Therefore, libtool
17573 *** is disabling shared libraries support. We urge you to upgrade GNU
17574 *** binutils to release 2.9.1 or newer. Another option is to modify
17575 *** your PATH or compiler configuration so that the native linker is
17576 *** used, and then restart.
17579 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17581 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17587 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17588 case `$LD -v 2>&1` in
17589 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17594 *** reliably create shared libraries on SCO systems. Therefore, libtool
17595 *** is disabling shared libraries support. We urge you to upgrade GNU
17596 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17597 *** your PATH or compiler configuration so that the native linker is
17598 *** used, and then restart.
17603 # For security reasons, it is highly recommended that you always
17604 # use absolute paths for naming shared libraries, and exclude the
17605 # DT_RUNPATH tag from executables and libraries. But doing so
17606 # requires that you compile everything twice, which is a pain.
17607 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17608 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17609 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17610 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17619 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17621 hardcode_direct
=yes
17622 hardcode_shlibpath_var
=no
17626 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17627 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17635 if test "$ld_shlibs" = no
; then
17637 hardcode_libdir_flag_spec
=
17638 export_dynamic_flag_spec
=
17639 whole_archive_flag_spec
=
17642 # PORTME fill in a description of your system's linker (not GNU ld)
17645 allow_undefined_flag
=unsupported
17646 always_export_symbols
=yes
17647 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'
17648 # Note: this linker hardcodes the directories in LIBPATH if there
17649 # are no directories specified by -L.
17650 hardcode_minus_L
=yes
17651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17652 # Neither direct hardcoding nor static linking is supported with a
17654 hardcode_direct
=unsupported
17659 if test "$host_cpu" = ia64
; then
17660 # On IA64, the linker does run time linking by default, so we don't
17661 # have to do anything special.
17662 aix_use_runtimelinking
=no
17663 exp_sym_flag
='-Bexport'
17666 # If we're using GNU nm, then we don't want the "-C" option.
17667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17668 # Also, AIX nm treats weak defined symbols like other global
17669 # defined symbols, whereas GNU nm marks them as "W".
17670 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17671 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'
17673 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'
17675 aix_use_runtimelinking
=no
17677 # Test if we are trying to use run time linking or normal
17678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17679 # need to do runtime linking.
17680 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17681 for ld_flag
in $LDFLAGS; do
17682 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17683 aix_use_runtimelinking
=yes
17690 exp_sym_flag
='-bexport'
17691 no_entry_flag
='-bnoentry'
17694 # When large executables or shared objects are built, AIX ld can
17695 # have problems creating the table of contents. If linking a library
17696 # or program results in "error TOC overflow" add -mminimal-toc to
17697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17701 hardcode_direct
=yes
17702 hardcode_direct_absolute
=yes
17703 hardcode_libdir_separator
=':'
17704 link_all_deplibs
=yes
17705 file_list_spec
='${wl}-f,'
17707 if test "$GCC" = yes; then
17708 case $host_os in aix4.
[012]|aix4.
[012].
*)
17709 # We only want to do this on AIX 4.2 and lower, the check
17710 # below for broken collect2 doesn't work under 4.3+
17711 collect2name
=`${CC} -print-prog-name=collect2`
17712 if test -f "$collect2name" &&
17713 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17715 # We have reworked collect2
17718 # We have old collect2
17719 hardcode_direct
=unsupported
17720 # It fails to find uninstalled libraries when the uninstalled
17721 # path is not listed in the libpath. Setting hardcode_minus_L
17722 # to unsupported forces relinking
17723 hardcode_minus_L
=yes
17724 hardcode_libdir_flag_spec
='-L$libdir'
17725 hardcode_libdir_separator
=
17729 shared_flag
='-shared'
17730 if test "$aix_use_runtimelinking" = yes; then
17731 shared_flag
="$shared_flag "'${wl}-G'
17735 if test "$host_cpu" = ia64
; then
17736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17737 # chokes on -Wl,-G. The following line is correct:
17740 if test "$aix_use_runtimelinking" = yes; then
17741 shared_flag
='${wl}-G'
17743 shared_flag
='${wl}-bM:SRE'
17748 export_dynamic_flag_spec
='${wl}-bexpall'
17749 # It seems that -bexpall does not export symbols beginning with
17750 # underscore (_), so it is better to generate a list of symbols to export.
17751 always_export_symbols
=yes
17752 if test "$aix_use_runtimelinking" = yes; then
17753 # Warning - without using the other runtime loading flags (-brtl),
17754 # -berok will link without error, but may produce a broken library.
17755 allow_undefined_flag
='-berok'
17756 # Determine the default libpath from the value encoded in an
17757 # empty executable.
17758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17769 if ac_fn_c_try_link
"$LINENO"; then :
17771 lt_aix_libpath_sed
='
17772 /Import File Strings/,/^$/ {
17778 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17779 # Check for a 64-bit object if we didn't find anything.
17780 if test -z "$aix_libpath"; then
17781 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17784 rm -f core conftest.err conftest.
$ac_objext \
17785 conftest
$ac_exeext conftest.
$ac_ext
17786 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17788 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17789 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"
17791 if test "$host_cpu" = ia64
; then
17792 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17793 allow_undefined_flag
="-z nodefs"
17794 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"
17796 # Determine the default libpath from the value encoded in an
17797 # empty executable.
17798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17809 if ac_fn_c_try_link
"$LINENO"; then :
17811 lt_aix_libpath_sed
='
17812 /Import File Strings/,/^$/ {
17818 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17819 # Check for a 64-bit object if we didn't find anything.
17820 if test -z "$aix_libpath"; then
17821 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17824 rm -f core conftest.err conftest.
$ac_objext \
17825 conftest
$ac_exeext conftest.
$ac_ext
17826 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17828 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17829 # Warning - without using the other run time loading flags,
17830 # -berok will link without error, but may produce a broken library.
17831 no_undefined_flag
=' ${wl}-bernotok'
17832 allow_undefined_flag
=' ${wl}-berok'
17833 if test "$with_gnu_ld" = yes; then
17834 # We only use this code for GNU lds that support --whole-archive.
17835 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17837 # Exported symbols can be pulled into shared objects from archives
17838 whole_archive_flag_spec
='$convenience'
17840 archive_cmds_need_lc
=yes
17841 # This is similar to how AIX traditionally builds its shared libraries.
17842 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'
17850 # see comment about AmigaOS4 .so support
17851 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17852 archive_expsym_cmds
=''
17855 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)'
17856 hardcode_libdir_flag_spec
='-L$libdir'
17857 hardcode_minus_L
=yes
17863 export_dynamic_flag_spec
=-rdynamic
17866 cygwin
* | mingw
* | pw32
* | cegcc
*)
17867 # When not using gcc, we currently assume that we are using
17868 # Microsoft Visual C++.
17869 # hardcode_libdir_flag_spec is actually meaningless, as there is
17870 # no search path for DLLs.
17871 hardcode_libdir_flag_spec
=' '
17872 allow_undefined_flag
=unsupported
17873 # Tell ltmain to make .lib files, not .a files.
17875 # Tell ltmain to make .dll files, not .so files.
17877 # FIXME: Setting linknames here is a bad hack.
17878 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17879 # The linker will automatically build a .lib file if we build a DLL.
17880 old_archive_from_new_cmds
='true'
17881 # FIXME: Should let the user specify the lib program.
17882 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17883 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17884 enable_shared_with_static_runtimes
=yes
17887 darwin
* | rhapsody
*)
17890 archive_cmds_need_lc
=no
17892 hardcode_automatic
=yes
17893 hardcode_shlibpath_var
=unsupported
17894 if test "$lt_cv_ld_force_load" = "yes"; then
17895 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\"`'
17897 whole_archive_flag_spec
=''
17899 link_all_deplibs
=yes
17900 allow_undefined_flag
="$_lt_dar_allow_undefined"
17901 case $cc_basename in
17902 ifort
*) _lt_dar_can_shared
=yes ;;
17903 *) _lt_dar_can_shared
=$GCC ;;
17905 if test "$_lt_dar_can_shared" = "yes"; then
17906 output_verbose_link_cmd
=func_echo_all
17907 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17908 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17909 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}"
17910 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}"
17919 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17920 hardcode_libdir_flag_spec
='-L$libdir'
17921 hardcode_shlibpath_var
=no
17924 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17925 # support. Future versions do this automatically, but an explicit c++rt0.o
17926 # does not break anything, and helps significantly (at the cost of a little
17929 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17930 hardcode_libdir_flag_spec
='-R$libdir'
17931 hardcode_direct
=yes
17932 hardcode_shlibpath_var
=no
17935 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17937 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct
=yes
17939 hardcode_minus_L
=yes
17940 hardcode_shlibpath_var
=no
17943 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17944 freebsd
* | dragonfly
*)
17945 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17946 hardcode_libdir_flag_spec
='-R$libdir'
17947 hardcode_direct
=yes
17948 hardcode_shlibpath_var
=no
17952 if test "$GCC" = yes; then
17953 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'
17955 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'
17957 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17958 hardcode_libdir_separator
=:
17959 hardcode_direct
=yes
17961 # hardcode_minus_L: Not really in the search PATH,
17962 # but as the default location of the library.
17963 hardcode_minus_L
=yes
17964 export_dynamic_flag_spec
='${wl}-E'
17968 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17969 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17971 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17973 if test "$with_gnu_ld" = no
; then
17974 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17975 hardcode_libdir_flag_spec_ld
='+b $libdir'
17976 hardcode_libdir_separator
=:
17977 hardcode_direct
=yes
17978 hardcode_direct_absolute
=yes
17979 export_dynamic_flag_spec
='${wl}-E'
17980 # hardcode_minus_L: Not really in the search PATH,
17981 # but as the default location of the library.
17982 hardcode_minus_L
=yes
17987 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17990 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17993 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17996 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18002 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18009 # Older versions of the 11.00 compiler do not understand -b yet
18010 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18012 $as_echo_n "checking if $CC understands -b... " >&6; }
18013 if ${lt_cv_prog_compiler__b+:} false
; then :
18014 $as_echo_n "(cached) " >&6
18016 lt_cv_prog_compiler__b
=no
18017 save_LDFLAGS
="$LDFLAGS"
18018 LDFLAGS
="$LDFLAGS -b"
18019 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18020 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18021 # The linker can only warn and ignore the option if not recognized
18022 # So say no if there are warnings
18023 if test -s conftest.err
; then
18024 # Append any errors to the config.log.
18025 cat conftest.err
1>&5
18026 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18027 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18028 if diff conftest.exp conftest.er2
>/dev
/null
; then
18029 lt_cv_prog_compiler__b
=yes
18032 lt_cv_prog_compiler__b
=yes
18036 LDFLAGS
="$save_LDFLAGS"
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18040 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18042 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18043 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18051 if test "$with_gnu_ld" = no
; then
18052 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18053 hardcode_libdir_separator
=:
18058 hardcode_shlibpath_var
=no
18061 hardcode_direct
=yes
18062 hardcode_direct_absolute
=yes
18063 export_dynamic_flag_spec
='${wl}-E'
18065 # hardcode_minus_L: Not really in the search PATH,
18066 # but as the default location of the library.
18067 hardcode_minus_L
=yes
18073 irix5
* | irix6
* | nonstopux
*)
18074 if test "$GCC" = yes; then
18075 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'
18076 # Try to use the -exported_symbol ld option, if it does not
18077 # work, assume that -exports_file does not work either and
18078 # implicitly export all symbols.
18079 save_LDFLAGS
="$LDFLAGS"
18080 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18085 if ac_fn_c_try_link
"$LINENO"; then :
18086 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'
18089 rm -f core conftest.err conftest.
$ac_objext \
18090 conftest
$ac_exeext conftest.
$ac_ext
18091 LDFLAGS
="$save_LDFLAGS"
18093 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'
18094 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'
18096 archive_cmds_need_lc
='no'
18097 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18098 hardcode_libdir_separator
=:
18100 link_all_deplibs
=yes
18104 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18105 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18107 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18109 hardcode_libdir_flag_spec
='-R$libdir'
18110 hardcode_direct
=yes
18111 hardcode_shlibpath_var
=no
18115 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116 hardcode_direct
=yes
18117 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18118 hardcode_libdir_separator
=:
18119 hardcode_shlibpath_var
=no
18126 if test -f /usr
/libexec
/ld.so
; then
18127 hardcode_direct
=yes
18128 hardcode_shlibpath_var
=no
18129 hardcode_direct_absolute
=yes
18130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18131 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18133 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18134 export_dynamic_flag_spec
='${wl}-E'
18137 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18138 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_libdir_flag_spec
='-R$libdir'
18142 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18143 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18153 hardcode_libdir_flag_spec
='-L$libdir'
18154 hardcode_minus_L
=yes
18155 allow_undefined_flag
=unsupported
18156 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'
18157 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18161 if test "$GCC" = yes; then
18162 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18163 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'
18165 allow_undefined_flag
=' -expect_unresolved \*'
18166 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'
18168 archive_cmds_need_lc
='no'
18169 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18170 hardcode_libdir_separator
=:
18173 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18174 if test "$GCC" = yes; then
18175 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18176 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'
18177 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18179 allow_undefined_flag
=' -expect_unresolved \*'
18180 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'
18181 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~
18182 $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'
18184 # Both c and cxx compiler support -rpath directly
18185 hardcode_libdir_flag_spec
='-rpath $libdir'
18187 archive_cmds_need_lc
='no'
18188 hardcode_libdir_separator
=:
18192 no_undefined_flag
=' -z defs'
18193 if test "$GCC" = yes; then
18195 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18196 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18197 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18199 case `$CC -V 2>&1` in
18202 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18208 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18210 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18214 hardcode_libdir_flag_spec
='-R$libdir'
18215 hardcode_shlibpath_var
=no
18217 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18219 # The compiler driver will combine and reorder linker options,
18220 # but understands `-z linker_flag'. GCC discards it without `$wl',
18221 # but is careful enough not to reorder.
18222 # Supported since Solaris 2.6 (maybe 2.5.1?)
18223 if test "$GCC" = yes; then
18224 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18226 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18230 link_all_deplibs
=yes
18234 if test "x$host_vendor" = xsequent
; then
18235 # Use $CC to link under sequent, because it throws in some extra .o
18236 # files that make .init and .fini sections work.
18237 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18239 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18241 hardcode_libdir_flag_spec
='-L$libdir'
18242 hardcode_direct
=yes
18243 hardcode_minus_L
=yes
18244 hardcode_shlibpath_var
=no
18248 case $host_vendor in
18250 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251 hardcode_direct
=yes # is this really true???
18254 ## LD is ld it makes a PLAMLIB
18255 ## CC just makes a GrossModule.
18256 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18257 reload_cmds
='$CC -r -o $output$reload_objs'
18261 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18262 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18265 runpath_var
='LD_RUN_PATH'
18266 hardcode_shlibpath_var
=no
18270 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18271 hardcode_shlibpath_var
=no
18272 export_dynamic_flag_spec
='-Bexport'
18276 if test -d /usr
/nec
; then
18277 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18278 hardcode_shlibpath_var
=no
18279 runpath_var
=LD_RUN_PATH
18280 hardcode_runpath_var
=yes
18285 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18286 no_undefined_flag
='${wl}-z,text'
18287 archive_cmds_need_lc
=no
18288 hardcode_shlibpath_var
=no
18289 runpath_var
='LD_RUN_PATH'
18291 if test "$GCC" = yes; then
18292 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18293 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18295 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18296 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 sysv5
* | sco3.2v5
* | sco5v6
*)
18301 # Note: We can NOT use -z defs as we might desire, because we do not
18302 # link with -lc, and that would cause any symbols used from libc to
18303 # always be unresolved, which means just about no library would
18304 # ever link correctly. If we're not using GNU ld we use -z text
18305 # though, which does catch some bad symbols but isn't as heavy-handed
18307 no_undefined_flag
='${wl}-z,text'
18308 allow_undefined_flag
='${wl}-z,nodefs'
18309 archive_cmds_need_lc
=no
18310 hardcode_shlibpath_var
=no
18311 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18312 hardcode_libdir_separator
=':'
18313 link_all_deplibs
=yes
18314 export_dynamic_flag_spec
='${wl}-Bexport'
18315 runpath_var
='LD_RUN_PATH'
18317 if test "$GCC" = yes; then
18318 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18319 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18321 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18322 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18327 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18328 hardcode_libdir_flag_spec
='-L$libdir'
18329 hardcode_shlibpath_var
=no
18337 if test x
$host_vendor = xsni
; then
18339 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18340 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18347 $as_echo "$ld_shlibs" >&6; }
18348 test "$ld_shlibs" = no
&& can_build_shared
=no
18350 with_gnu_ld
=$with_gnu_ld
18367 # Do we need to explicitly link libc?
18369 case "x$archive_cmds_need_lc" in
18371 # Assume -lc should be added
18372 archive_cmds_need_lc
=yes
18374 if test "$enable_shared" = yes && test "$GCC" = yes; then
18375 case $archive_cmds in
18377 # FIXME: we may have to deal with multi-command sequences.
18380 # Test whether the compiler implicitly links with -lc since on some
18381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18382 # to ld, don't add -lc before -lgcc.
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18384 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18385 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18386 $as_echo_n "(cached) " >&6
18389 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18392 (eval $ac_compile) 2>&5
18394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18395 test $ac_status = 0; } 2>conftest.err
; then
18398 libobjs
=conftest.
$ac_objext
18400 wl
=$lt_prog_compiler_wl
18401 pic_flag
=$lt_prog_compiler_pic
18407 lt_save_allow_undefined_flag
=$allow_undefined_flag
18408 allow_undefined_flag
=
18409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18410 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18413 test $ac_status = 0; }
18415 lt_cv_archive_cmds_need_lc
=no
18417 lt_cv_archive_cmds_need_lc
=yes
18419 allow_undefined_flag
=$lt_save_allow_undefined_flag
18421 cat conftest.err
1>&5
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18427 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18428 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18594 if test "$GCC" = yes; then
18596 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18597 *) lt_awk_arg
="/^libraries:/" ;;
18600 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18601 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18603 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18604 case $lt_search_path_spec in
18606 # if the path contains ";" then we assume it to be the separator
18607 # otherwise default to the standard path separator (i.e. ":") - it is
18608 # assumed that no part of a normal pathname contains ";" but that should
18609 # okay in the real world where ";" in dirpaths is itself problematic.
18610 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18613 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18616 # Ok, now we have the path, separated by spaces, we can step through it
18617 # and add multilib dir if necessary.
18618 lt_tmp_lt_search_path_spec
=
18619 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18620 for lt_sys_path
in $lt_search_path_spec; do
18621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18622 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18624 test -d "$lt_sys_path" && \
18625 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18628 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18629 BEGIN {RS=" "; FS="/|\n";} {
18632 for (lt_i = NF; lt_i > 0; lt_i--) {
18633 if ($lt_i != "" && $lt_i != ".") {
18634 if ($lt_i == "..") {
18637 if (lt_count == 0) {
18638 lt_foo="/" $lt_i lt_foo;
18645 if (lt_foo != "") { lt_freq[lt_foo]++; }
18646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18648 # AWK program above erroneously prepends '/' to C:/dos/paths
18651 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18652 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18654 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18656 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18658 library_names_spec
=
18659 libname_spec
='lib$name'
18663 postuninstall_cmds
=
18667 shlibpath_overrides_runpath
=unknown
18669 dynamic_linker
="$host_os ld.so"
18670 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18671 need_lib_prefix
=unknown
18672 hardcode_into_libs
=no
18674 # when you set need_version to no, make sure it does not cause -set_version
18675 # flags to be left without arguments
18676 need_version
=unknown
18681 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18682 shlibpath_var
=LIBPATH
18684 # AIX 3 has no versioning support, so we append a major version to the name.
18685 soname_spec
='${libname}${release}${shared_ext}$major'
18692 hardcode_into_libs
=yes
18693 if test "$host_cpu" = ia64
; then
18694 # AIX 5 supports IA64
18695 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18696 shlibpath_var
=LD_LIBRARY_PATH
18698 # With GCC up to 2.95.x, collect2 would create an import file
18699 # for dependence libraries. The import file would start with
18700 # the line `#! .'. This would cause the generated library to
18701 # depend on `.', always an invalid library. This was fixed in
18702 # development snapshots of GCC prior to 3.0.
18704 aix4 | aix4.
[01] | aix4.
[01].
*)
18705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18707 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18710 can_build_shared
=no
18714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18715 # soname into executable. Probably we can add versioning support to
18716 # collect2, so additional links can be useful in future.
18717 if test "$aix_use_runtimelinking" = yes; then
18718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18719 # instead of lib<name>.a to let people know that these are not
18720 # typical AIX shared libraries.
18721 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 # We preserve .a as extension for shared libraries through AIX4.2
18724 # and later when we are not doing run time linking.
18725 library_names_spec
='${libname}${release}.a $libname.a'
18726 soname_spec
='${libname}${release}${shared_ext}$major'
18728 shlibpath_var
=LIBPATH
18735 # Since July 2007 AmigaOS4 officially supports .so libraries.
18736 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 library_names_spec
='$libname.ixlibrary $libname.a'
18741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18742 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'
18748 library_names_spec
='${libname}${shared_ext}'
18749 dynamic_linker
="$host_os ld.so"
18750 shlibpath_var
=LIBRARY_PATH
18756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757 soname_spec
='${libname}${release}${shared_ext}$major'
18758 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18759 shlibpath_var
=LD_LIBRARY_PATH
18760 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18761 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18762 # the default ld.so.conf also contains /usr/contrib/lib and
18763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18764 # libtool to hard-code these into programs
18767 cygwin
* | mingw
* | pw32
* | cegcc
*)
18768 version_type
=windows
18773 case $GCC,$host_os in
18774 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18775 library_names_spec
='$libname.dll.a'
18776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18777 postinstall_cmds
='base_file=`basename \${file}`~
18778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18779 dldir=$destdir/`dirname \$dlpath`~
18780 test -d \$dldir || mkdir -p \$dldir~
18781 $install_prog $dir/$dlname \$dldir/$dlname~
18782 chmod a+x \$dldir/$dlname~
18783 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18784 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18786 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18787 dlpath=$dir/\$dldll~
18789 shlibpath_overrides_runpath
=yes
18793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18794 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18796 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18799 # MinGW DLLs use traditional 'lib' prefix
18800 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18803 # pw32 DLLs use 'pw' prefix rather than 'lib'
18804 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18810 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18813 dynamic_linker
='Win32 ld.exe'
18814 # FIXME: first we should search . and the directory the executable is in
18818 darwin
* | rhapsody
*)
18819 dynamic_linker
="$host_os dyld"
18820 version_type
=darwin
18823 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18824 soname_spec
='${libname}${release}${major}$shared_ext'
18825 shlibpath_overrides_runpath
=yes
18826 shlibpath_var
=DYLD_LIBRARY_PATH
18827 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18829 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18830 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18838 soname_spec
='${libname}${release}${shared_ext}$major'
18839 shlibpath_var
=LD_LIBRARY_PATH
18842 freebsd
* | dragonfly
*)
18843 # DragonFly does not have aout. When/if they implement a new
18844 # versioning mechanism, adjust this.
18845 if test -x /usr
/bin
/objformat
; then
18846 objformat
=`/usr/bin/objformat`
18849 freebsd
[23].
*) objformat
=aout
;;
18850 *) objformat
=elf
;;
18853 version_type
=freebsd-
$objformat
18854 case $version_type in
18856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18861 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18865 shlibpath_var
=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath
=yes
18870 freebsd3.
[01]* | freebsdelf3.
[01]*)
18871 shlibpath_overrides_runpath
=yes
18872 hardcode_into_libs
=yes
18874 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18875 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18876 shlibpath_overrides_runpath
=no
18877 hardcode_into_libs
=yes
18879 *) # from 4.6 on, and DragonFly
18880 shlibpath_overrides_runpath
=yes
18881 hardcode_into_libs
=yes
18890 dynamic_linker
="$host_os runtime_loader"
18891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18892 soname_spec
='${libname}${release}${shared_ext}$major'
18893 shlibpath_var
=LIBRARY_PATH
18894 shlibpath_overrides_runpath
=yes
18895 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18896 hardcode_into_libs
=yes
18899 hpux9
* | hpux10
* | hpux11
*)
18900 # Give a soname corresponding to the major version so that dld.sl refuses to
18901 # link against other versions.
18908 hardcode_into_libs
=yes
18909 dynamic_linker
="$host_os dld.so"
18910 shlibpath_var
=LD_LIBRARY_PATH
18911 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913 soname_spec
='${libname}${release}${shared_ext}$major'
18914 if test "X$HPUX_IA64_MODE" = X32
; then
18915 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18917 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18919 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18923 hardcode_into_libs
=yes
18924 dynamic_linker
="$host_os dld.sl"
18925 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18926 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928 soname_spec
='${libname}${release}${shared_ext}$major'
18929 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18930 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18934 dynamic_linker
="$host_os dld.sl"
18935 shlibpath_var
=SHLIB_PATH
18936 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938 soname_spec
='${libname}${release}${shared_ext}$major'
18941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18942 postinstall_cmds
='chmod 555 $lib'
18943 # or fails outright, so override atomically:
18944 install_override_mode
=555
18951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18952 soname_spec
='${libname}${release}${shared_ext}$major'
18953 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18954 shlibpath_var
=LD_LIBRARY_PATH
18955 shlibpath_overrides_runpath
=no
18956 hardcode_into_libs
=yes
18959 irix5
* | irix6
* | nonstopux
*)
18961 nonstopux
*) version_type
=nonstopux
;;
18963 if test "$lt_cv_prog_gnu_ld" = yes; then
18971 soname_spec
='${libname}${release}${shared_ext}$major'
18972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18974 irix5
* | nonstopux
*)
18975 libsuff
= shlibsuff
=
18978 case $LD in # libtool.m4 will add one of these switches to LD
18979 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18980 libsuff
= shlibsuff
= libmagic
=32-bit;;
18981 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18982 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18983 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18984 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18985 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18989 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18990 shlibpath_overrides_runpath
=no
18991 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18992 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18993 hardcode_into_libs
=yes
18996 # No shared lib support for Linux oldld, aout, or coff.
18997 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19001 # This must be Linux ELF.
19003 # uclinux* changes (here and below) have been submitted to the libtool
19004 # project, but have not yet been accepted: they are GCC-local changes
19005 # for the time being. (See
19006 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19007 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19012 soname_spec
='${libname}${release}${shared_ext}$major'
19013 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19014 shlibpath_var
=LD_LIBRARY_PATH
19015 shlibpath_overrides_runpath
=no
19017 # Some binutils ld are patched to set DT_RUNPATH
19018 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19019 $as_echo_n "(cached) " >&6
19021 lt_cv_shlibpath_overrides_runpath
=no
19022 save_LDFLAGS
=$LDFLAGS
19023 save_libdir
=$libdir
19024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19037 if ac_fn_c_try_link
"$LINENO"; then :
19038 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19039 lt_cv_shlibpath_overrides_runpath
=yes
19042 rm -f core conftest.err conftest.
$ac_objext \
19043 conftest
$ac_exeext conftest.
$ac_ext
19044 LDFLAGS
=$save_LDFLAGS
19045 libdir
=$save_libdir
19049 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19051 # This implies no fast_install, which is unacceptable.
19052 # Some rework will be needed to allow for fast_install
19053 # before this can be enabled.
19054 hardcode_into_libs
=yes
19056 # Append ld.so.conf contents to the search path
19057 if test -f /etc
/ld.so.conf
; then
19058 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' ' '`
19059 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19062 # We used to test for /lib/ld.so.1 and disable shared libraries on
19063 # powerpc, because MkLinux only supported shared libraries with the
19064 # GNU dynamic linker. Since this was broken with cross compilers,
19065 # most powerpc-linux boxes support dynamic linking these days and
19066 # people can always --disable-shared, the test was removed, and we
19067 # assume the GNU/Linux dynamic linker is in use.
19068 dynamic_linker
='GNU/Linux ld.so'
19075 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19077 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19078 dynamic_linker
='NetBSD (a.out) ld.so'
19080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19081 soname_spec
='${libname}${release}${shared_ext}$major'
19082 dynamic_linker
='NetBSD ld.elf_so'
19084 shlibpath_var
=LD_LIBRARY_PATH
19085 shlibpath_overrides_runpath
=yes
19086 hardcode_into_libs
=yes
19091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 shlibpath_var
=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath
=yes
19100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec
='${libname}${release}${shared_ext}$major'
19102 shlibpath_var
=LD_LIBRARY_PATH
19103 shlibpath_overrides_runpath
=no
19104 hardcode_into_libs
=yes
19105 dynamic_linker
='ldqnx.so'
19110 sys_lib_dlsearch_path_spec
="/usr/lib"
19112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19114 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19115 *) need_version
=no
;;
19117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19118 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19119 shlibpath_var
=LD_LIBRARY_PATH
19120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19122 openbsd2.
[89] | openbsd2.
[89].
*)
19123 shlibpath_overrides_runpath
=no
19126 shlibpath_overrides_runpath
=yes
19130 shlibpath_overrides_runpath
=yes
19135 libname_spec
='$name'
19138 library_names_spec
='$libname${shared_ext} $libname.a'
19139 dynamic_linker
='OS/2 ld.exe'
19140 shlibpath_var
=LIBPATH
19143 osf3
* | osf4
* | osf5
*)
19147 soname_spec
='${libname}${release}${shared_ext}$major'
19148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 shlibpath_var
=LD_LIBRARY_PATH
19150 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19151 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163 soname_spec
='${libname}${release}${shared_ext}$major'
19164 shlibpath_var
=LD_LIBRARY_PATH
19165 shlibpath_overrides_runpath
=yes
19166 hardcode_into_libs
=yes
19167 # ldd complains unless libraries are executable
19168 postinstall_cmds
='chmod +x $lib'
19173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19174 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19175 shlibpath_var
=LD_LIBRARY_PATH
19176 shlibpath_overrides_runpath
=yes
19177 if test "$with_gnu_ld" = yes; then
19185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186 soname_spec
='${libname}${release}${shared_ext}$major'
19187 shlibpath_var
=LD_LIBRARY_PATH
19188 case $host_vendor in
19190 shlibpath_overrides_runpath
=no
19192 runpath_var
=LD_RUN_PATH
19200 shlibpath_overrides_runpath
=no
19201 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19207 if test -d /usr
/nec
;then
19209 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19210 soname_spec
='$libname${shared_ext}.$major'
19211 shlibpath_var
=LD_LIBRARY_PATH
19215 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19216 version_type
=freebsd-elf
19219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19220 soname_spec
='${libname}${release}${shared_ext}$major'
19221 shlibpath_var
=LD_LIBRARY_PATH
19222 shlibpath_overrides_runpath
=yes
19223 hardcode_into_libs
=yes
19224 if test "$with_gnu_ld" = yes; then
19225 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19227 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19230 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19234 sys_lib_dlsearch_path_spec
='/usr/lib'
19238 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19243 shlibpath_var
=LD_LIBRARY_PATH
19244 shlibpath_overrides_runpath
=no
19245 hardcode_into_libs
=yes
19250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19251 soname_spec
='${libname}${release}${shared_ext}$major'
19252 shlibpath_var
=LD_LIBRARY_PATH
19255 # Shared libraries for VwWorks, >= 7 only at this stage
19256 # and (fpic) still incompatible with "large" code models
19257 # in a few configurations. Only for RTP mode in any case,
19258 # and upon explicit request at configure time.
19261 case ${with_multisubdir}-${enable_shared} in
19268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269 soname_spec
='${libname}${release}${shared_ext}$major'
19270 dynamic_linker
="$host_os module_loader"
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19279 $as_echo "$dynamic_linker" >&6; }
19280 test "$dynamic_linker" = no
&& can_build_shared
=no
19282 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19283 if test "$GCC" = yes; then
19284 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19288 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19291 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19388 if test -n "$hardcode_libdir_flag_spec" ||
19389 test -n "$runpath_var" ||
19390 test "X$hardcode_automatic" = "Xyes" ; then
19392 # We can hardcode non-existent directories.
19393 if test "$hardcode_direct" != no
&&
19394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19395 # have to relink, otherwise we might link with an installed library
19396 # when we should be linking with a yet-to-be-installed one
19397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19398 test "$hardcode_minus_L" != no
; then
19399 # Linking always hardcodes the temporary library directory.
19400 hardcode_action
=relink
19402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19403 hardcode_action
=immediate
19406 # We cannot hardcode anything, or else we can only hardcode existing
19408 hardcode_action
=unsupported
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19411 $as_echo "$hardcode_action" >&6; }
19413 if test "$hardcode_action" = relink ||
19414 test "$inherit_rpath" = yes; then
19415 # Fast installation is not supported
19416 enable_fast_install
=no
19417 elif test "$shlibpath_overrides_runpath" = yes ||
19418 test "$enable_shared" = no
; then
19419 # Fast installation is not necessary
19420 enable_fast_install
=needless
19428 if test "x$enable_dlopen" != xyes
; then
19429 enable_dlopen
=unknown
19430 enable_dlopen_self
=unknown
19431 enable_dlopen_self_static
=unknown
19438 lt_cv_dlopen
="load_add_on"
19440 lt_cv_dlopen_self
=yes
19443 mingw
* | pw32
* | cegcc
*)
19444 lt_cv_dlopen
="LoadLibrary"
19449 lt_cv_dlopen
="dlopen"
19454 # if libdl is installed we need to link against it
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19457 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19458 $as_echo_n "(cached) " >&6
19460 ac_check_lib_save_LIBS
=$LIBS
19462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19480 if ac_fn_c_try_link
"$LINENO"; then :
19481 ac_cv_lib_dl_dlopen
=yes
19483 ac_cv_lib_dl_dlopen
=no
19485 rm -f core conftest.err conftest.
$ac_objext \
19486 conftest
$ac_exeext conftest.
$ac_ext
19487 LIBS
=$ac_check_lib_save_LIBS
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19491 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19492 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19495 lt_cv_dlopen
="dyld"
19497 lt_cv_dlopen_self
=yes
19504 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19505 if test "x$ac_cv_func_shl_load" = xyes
; then :
19506 lt_cv_dlopen
="shl_load"
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19510 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19511 $as_echo_n "(cached) " >&6
19513 ac_check_lib_save_LIBS
=$LIBS
19515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19528 return shl_load ();
19533 if ac_fn_c_try_link
"$LINENO"; then :
19534 ac_cv_lib_dld_shl_load
=yes
19536 ac_cv_lib_dld_shl_load
=no
19538 rm -f core conftest.err conftest.
$ac_objext \
19539 conftest
$ac_exeext conftest.
$ac_ext
19540 LIBS
=$ac_check_lib_save_LIBS
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19544 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19545 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19547 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19548 if test "x$ac_cv_func_dlopen" = xyes
; then :
19549 lt_cv_dlopen
="dlopen"
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19553 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19554 $as_echo_n "(cached) " >&6
19556 ac_check_lib_save_LIBS
=$LIBS
19558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19576 if ac_fn_c_try_link
"$LINENO"; then :
19577 ac_cv_lib_dl_dlopen
=yes
19579 ac_cv_lib_dl_dlopen
=no
19581 rm -f core conftest.err conftest.
$ac_objext \
19582 conftest
$ac_exeext conftest.
$ac_ext
19583 LIBS
=$ac_check_lib_save_LIBS
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19587 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19588 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19592 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19593 $as_echo_n "(cached) " >&6
19595 ac_check_lib_save_LIBS
=$LIBS
19596 LIBS
="-lsvld $LIBS"
19597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19615 if ac_fn_c_try_link
"$LINENO"; then :
19616 ac_cv_lib_svld_dlopen
=yes
19618 ac_cv_lib_svld_dlopen
=no
19620 rm -f core conftest.err conftest.
$ac_objext \
19621 conftest
$ac_exeext conftest.
$ac_ext
19622 LIBS
=$ac_check_lib_save_LIBS
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19626 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19627 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19631 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19632 $as_echo_n "(cached) " >&6
19634 ac_check_lib_save_LIBS
=$LIBS
19636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19649 return dld_link ();
19654 if ac_fn_c_try_link
"$LINENO"; then :
19655 ac_cv_lib_dld_dld_link
=yes
19657 ac_cv_lib_dld_dld_link
=no
19659 rm -f core conftest.err conftest.
$ac_objext \
19660 conftest
$ac_exeext conftest.
$ac_ext
19661 LIBS
=$ac_check_lib_save_LIBS
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19665 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19666 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19687 if test "x$lt_cv_dlopen" != xno
; then
19693 case $lt_cv_dlopen in
19695 save_CPPFLAGS
="$CPPFLAGS"
19696 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19698 save_LDFLAGS
="$LDFLAGS"
19699 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19702 LIBS
="$lt_cv_dlopen_libs $LIBS"
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19706 if ${lt_cv_dlopen_self+:} false
; then :
19707 $as_echo_n "(cached) " >&6
19709 if test "$cross_compiling" = yes; then :
19710 lt_cv_dlopen_self
=cross
19712 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19713 lt_status
=$lt_dlunknown
19714 cat > conftest.
$ac_ext <<_LT_EOF
19715 #line 19715 "configure"
19716 #include "confdefs.h"
19725 # define LT_DLGLOBAL RTLD_GLOBAL
19728 # define LT_DLGLOBAL DL_GLOBAL
19730 # define LT_DLGLOBAL 0
19734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19735 find out it does not work in some platform. */
19736 #ifndef LT_DLLAZY_OR_NOW
19738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19741 # define LT_DLLAZY_OR_NOW DL_LAZY
19744 # define LT_DLLAZY_OR_NOW RTLD_NOW
19747 # define LT_DLLAZY_OR_NOW DL_NOW
19749 # define LT_DLLAZY_OR_NOW 0
19756 /* When -fvisbility=hidden is used, assume the code has been annotated
19757 correspondingly for the symbols needed. */
19758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19759 void fnord () __attribute__((visibility("default")));
19762 void fnord () { int i=42; }
19765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19766 int status = $lt_dlunknown;
19770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19774 else puts (dlerror ());
19776 /* dlclose (self); */
19784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19785 (eval $ac_link) 2>&5
19787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19788 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19789 (.
/conftest
; exit; ) >&5 2>/dev
/null
19791 case x
$lt_status in
19792 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19793 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19794 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19797 # compilation failed
19798 lt_cv_dlopen_self
=no
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19806 $as_echo "$lt_cv_dlopen_self" >&6; }
19808 if test "x$lt_cv_dlopen_self" = xyes
; then
19809 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19812 if ${lt_cv_dlopen_self_static+:} false
; then :
19813 $as_echo_n "(cached) " >&6
19815 if test "$cross_compiling" = yes; then :
19816 lt_cv_dlopen_self_static
=cross
19818 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19819 lt_status
=$lt_dlunknown
19820 cat > conftest.
$ac_ext <<_LT_EOF
19821 #line 19821 "configure"
19822 #include "confdefs.h"
19831 # define LT_DLGLOBAL RTLD_GLOBAL
19834 # define LT_DLGLOBAL DL_GLOBAL
19836 # define LT_DLGLOBAL 0
19840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19841 find out it does not work in some platform. */
19842 #ifndef LT_DLLAZY_OR_NOW
19844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19847 # define LT_DLLAZY_OR_NOW DL_LAZY
19850 # define LT_DLLAZY_OR_NOW RTLD_NOW
19853 # define LT_DLLAZY_OR_NOW DL_NOW
19855 # define LT_DLLAZY_OR_NOW 0
19862 /* When -fvisbility=hidden is used, assume the code has been annotated
19863 correspondingly for the symbols needed. */
19864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19865 void fnord () __attribute__((visibility("default")));
19868 void fnord () { int i=42; }
19871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19872 int status = $lt_dlunknown;
19876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19880 else puts (dlerror ());
19882 /* dlclose (self); */
19890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19891 (eval $ac_link) 2>&5
19893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19894 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19895 (.
/conftest
; exit; ) >&5 2>/dev
/null
19897 case x
$lt_status in
19898 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19899 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19900 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19903 # compilation failed
19904 lt_cv_dlopen_self_static
=no
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19915 CPPFLAGS
="$save_CPPFLAGS"
19916 LDFLAGS
="$save_LDFLAGS"
19921 case $lt_cv_dlopen_self in
19922 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19923 *) enable_dlopen_self
=unknown
;;
19926 case $lt_cv_dlopen_self_static in
19927 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19928 *) enable_dlopen_self_static
=unknown
;;
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19952 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19953 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19954 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19956 $as_echo "yes" >&6; }
19958 # FIXME - insert some real tests, host_os isn't really good enough
19961 if test -n "$STRIP" ; then
19962 striplib
="$STRIP -x"
19963 old_striplib
="$STRIP -S"
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968 $as_echo "no" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19973 $as_echo "no" >&6; }
19989 # Report which library types will actually be built
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19993 $as_echo "$can_build_shared" >&6; }
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19996 $as_echo_n "checking whether to build shared libraries... " >&6; }
19997 test "$can_build_shared" = "no" && enable_shared
=no
19999 # On AIX, shared libraries and static libraries use the same namespace, and
20000 # are all built from PIC.
20003 test "$enable_shared" = yes && enable_static
=no
20004 if test -n "$RANLIB"; then
20005 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20006 postinstall_cmds
='$RANLIB $lib'
20011 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20012 test "$enable_shared" = yes && enable_static
=no
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20017 $as_echo "$enable_shared" >&6; }
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20020 $as_echo_n "checking whether to build static libraries... " >&6; }
20021 # Make sure either enable_shared or enable_static is yes.
20022 test "$enable_shared" = yes || enable_static
=yes
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20024 $as_echo "$enable_static" >&6; }
20031 ac_cpp
='$CXXCPP $CPPFLAGS'
20032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20040 (test "X$CXX" != "Xg++"))) ; then
20042 ac_cpp
='$CXXCPP $CPPFLAGS'
20043 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20048 if test -z "$CXXCPP"; then
20049 if ${ac_cv_prog_CXXCPP+:} false
; then :
20050 $as_echo_n "(cached) " >&6
20052 # Double quotes because CXXCPP needs to be expanded
20053 for CXXCPP
in "$CXX -E" "/lib/cpp"
20055 ac_preproc_ok
=false
20056 for ac_cxx_preproc_warn_flag
in '' yes
20058 # Use a header file that comes with gcc, so configuring glibc
20059 # with a fresh cross-compiler works.
20060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061 # <limits.h> exists even on freestanding compilers.
20062 # On the NeXT, cc -E runs the code through the compiler's parser,
20063 # not just through cpp. "Syntax error" is here to catch this case.
20064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20067 # include <limits.h>
20069 # include <assert.h>
20073 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20076 # Broken: fails on valid input.
20079 rm -f conftest.err conftest.i conftest.
$ac_ext
20081 # OK, works on sane cases. Now check whether nonexistent headers
20082 # can be detected and how.
20083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20085 #include <ac_nonexistent.h>
20087 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20088 # Broken: success on invalid input.
20091 # Passes both tests.
20095 rm -f conftest.err conftest.i conftest.
$ac_ext
20098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20099 rm -f conftest.i conftest.err conftest.
$ac_ext
20100 if $ac_preproc_ok; then :
20105 ac_cv_prog_CXXCPP
=$CXXCPP
20108 CXXCPP
=$ac_cv_prog_CXXCPP
20110 ac_cv_prog_CXXCPP
=$CXXCPP
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20113 $as_echo "$CXXCPP" >&6; }
20114 ac_preproc_ok
=false
20115 for ac_cxx_preproc_warn_flag
in '' yes
20117 # Use a header file that comes with gcc, so configuring glibc
20118 # with a fresh cross-compiler works.
20119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20120 # <limits.h> exists even on freestanding compilers.
20121 # On the NeXT, cc -E runs the code through the compiler's parser,
20122 # not just through cpp. "Syntax error" is here to catch this case.
20123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20126 # include <limits.h>
20128 # include <assert.h>
20132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20135 # Broken: fails on valid input.
20138 rm -f conftest.err conftest.i conftest.
$ac_ext
20140 # OK, works on sane cases. Now check whether nonexistent headers
20141 # can be detected and how.
20142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144 #include <ac_nonexistent.h>
20146 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20147 # Broken: success on invalid input.
20150 # Passes both tests.
20154 rm -f conftest.err conftest.i conftest.
$ac_ext
20157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20158 rm -f conftest.i conftest.err conftest.
$ac_ext
20159 if $ac_preproc_ok; then :
20162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20164 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20165 See \`config.log' for more details" "$LINENO" 5; }
20169 ac_cpp
='$CXXCPP $CPPFLAGS'
20170 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20175 _lt_caught_CXX_error
=yes
20179 ac_cpp
='$CXXCPP $CPPFLAGS'
20180 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20184 archive_cmds_need_lc_CXX
=no
20185 allow_undefined_flag_CXX
=
20186 always_export_symbols_CXX
=no
20187 archive_expsym_cmds_CXX
=
20188 compiler_needs_object_CXX
=no
20189 export_dynamic_flag_spec_CXX
=
20190 hardcode_direct_CXX
=no
20191 hardcode_direct_absolute_CXX
=no
20192 hardcode_libdir_flag_spec_CXX
=
20193 hardcode_libdir_flag_spec_ld_CXX
=
20194 hardcode_libdir_separator_CXX
=
20195 hardcode_minus_L_CXX
=no
20196 hardcode_shlibpath_var_CXX
=unsupported
20197 hardcode_automatic_CXX
=no
20198 inherit_rpath_CXX
=no
20200 module_expsym_cmds_CXX
=
20201 link_all_deplibs_CXX
=unknown
20202 old_archive_cmds_CXX
=$old_archive_cmds
20203 reload_flag_CXX
=$reload_flag
20204 reload_cmds_CXX
=$reload_cmds
20205 no_undefined_flag_CXX
=
20206 whole_archive_flag_spec_CXX
=
20207 enable_shared_with_static_runtimes_CXX
=no
20209 # Source file extension for C++ test sources.
20212 # Object file extension for compiled C++ test sources.
20216 # No sense in running all these tests if we already determined that
20217 # the CXX compiler isn't working. Some variables (like enable_shared)
20218 # are currently assumed to apply to all compilers on this platform,
20219 # and will be corrupted by setting them based on a non-working compiler.
20220 if test "$_lt_caught_CXX_error" != yes; then
20221 # Code to be used in simple compile tests
20222 lt_simple_compile_test_code
="int some_variable = 0;"
20224 # Code to be used in simple link tests
20225 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20234 # If no C compiler was specified, use CC.
20237 # If no C compiler flags were specified, use CFLAGS.
20238 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20240 # Allow CC to be a program name with arguments.
20244 # save warnings/boilerplate of simple test code
20245 ac_outfile
=conftest.
$ac_objext
20246 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20247 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20248 _lt_compiler_boilerplate
=`cat conftest.err`
20251 ac_outfile
=conftest.
$ac_objext
20252 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20253 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20254 _lt_linker_boilerplate
=`cat conftest.err`
20258 # Allow CC to be a program name with arguments.
20263 lt_save_with_gnu_ld
=$with_gnu_ld
20264 lt_save_path_LD
=$lt_cv_path_LD
20265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20266 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20268 $as_unset lt_cv_prog_gnu_ld
20270 if test -n "${lt_cv_path_LDCXX+set}"; then
20271 lt_cv_path_LD
=$lt_cv_path_LDCXX
20273 $as_unset lt_cv_path_LD
20275 test -z "${LDCXX+set}" || LD
=$LDCXX
20279 for cc_temp
in $compiler""; do
20281 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20282 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20287 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20290 if test -n "$compiler"; then
20291 # We don't want -fno-exception when compiling C++ code, so set the
20292 # no_builtin_flag separately
20293 if test "$GXX" = yes; then
20294 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20296 lt_prog_compiler_no_builtin_flag_CXX
=
20299 if test "$GXX" = yes; then
20300 # Set up default GNU C++ configuration
20304 # Check whether --with-gnu-ld was given.
20305 if test "${with_gnu_ld+set}" = set; then :
20306 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20312 if test "$GCC" = yes; then
20313 # Check if gcc -print-prog-name=ld gives a path.
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20315 $as_echo_n "checking for ld used by $CC... " >&6; }
20318 # gcc leaves a trailing carriage return which upsets mingw
20319 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20321 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20324 # Accept absolute paths.
20326 re_direlt
='/[^/][^/]*/\.\./'
20327 # Canonicalize the pathname of ld
20328 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20329 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20330 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20332 test -z "$LD" && LD
="$ac_prog"
20335 # If it fails, then pretend we aren't using GCC.
20339 # If it is relative, then search for the first ld in PATH.
20340 with_gnu_ld
=unknown
20343 elif test "$with_gnu_ld" = yes; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20345 $as_echo_n "checking for GNU ld... " >&6; }
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20348 $as_echo_n "checking for non-GNU ld... " >&6; }
20350 if ${lt_cv_path_LD+:} false
; then :
20351 $as_echo_n "(cached) " >&6
20353 if test -z "$LD"; then
20354 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20355 for ac_dir
in $PATH; do
20357 test -z "$ac_dir" && ac_dir
=.
20358 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20359 lt_cv_path_LD
="$ac_dir/$ac_prog"
20360 # Check to see if the program is GNU ld. I'd rather use --version,
20361 # but apparently some variants of GNU ld only accept -v.
20362 # Break only if it was the GNU/non-GNU ld that we prefer.
20363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20364 *GNU
* |
*'with BFD'*)
20365 test "$with_gnu_ld" != no
&& break
20368 test "$with_gnu_ld" != yes && break
20375 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20379 LD
="$lt_cv_path_LD"
20380 if test -n "$LD"; then
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20382 $as_echo "$LD" >&6; }
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20387 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20390 if ${lt_cv_prog_gnu_ld+:} false
; then :
20391 $as_echo_n "(cached) " >&6
20393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20394 case `$LD -v 2>&1 </dev/null` in
20395 *GNU
* |
*'with BFD'*)
20396 lt_cv_prog_gnu_ld
=yes
20399 lt_cv_prog_gnu_ld
=no
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20405 with_gnu_ld
=$lt_cv_prog_gnu_ld
20413 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20414 # archiving commands below assume that GNU ld is being used.
20415 if test "$with_gnu_ld" = yes; then
20416 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20417 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'
20419 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20420 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20422 # If archive_cmds runs LD, not CC, wlarc should be empty
20423 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20424 # investigate it a little bit more. (MM)
20427 # ancient GNU ld didn't support --whole-archive et. al.
20428 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20429 $GREP 'no-whole-archive' > /dev
/null
; then
20430 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20432 whole_archive_flag_spec_CXX
=
20438 # A generic and very simple default shared library creation
20439 # command for GNU C++ for the case where it uses the native
20440 # linker, instead of GNU ld. If possible, this setting should
20441 # overridden to take advantage of the native linker features on
20442 # the platform it is being used on.
20443 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20446 # Commands to make compiler produce verbose output that lists
20447 # what "hidden" libraries, object files and flags are used when
20448 # linking a shared library.
20449 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20457 # PORTME: fill in a description of your system's C++ link characteristics
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20463 # FIXME: insert proper C++ library support
20467 if test "$host_cpu" = ia64
; then
20468 # On IA64, the linker does run time linking by default, so we don't
20469 # have to do anything special.
20470 aix_use_runtimelinking
=no
20471 exp_sym_flag
='-Bexport'
20474 aix_use_runtimelinking
=no
20476 # Test if we are trying to use run time linking or normal
20477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20478 # need to do runtime linking.
20479 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20480 for ld_flag
in $LDFLAGS; do
20483 aix_use_runtimelinking
=yes
20491 exp_sym_flag
='-bexport'
20492 no_entry_flag
='-bnoentry'
20495 # When large executables or shared objects are built, AIX ld can
20496 # have problems creating the table of contents. If linking a library
20497 # or program results in "error TOC overflow" add -mminimal-toc to
20498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20501 archive_cmds_CXX
=''
20502 hardcode_direct_CXX
=yes
20503 hardcode_direct_absolute_CXX
=yes
20504 hardcode_libdir_separator_CXX
=':'
20505 link_all_deplibs_CXX
=yes
20506 file_list_spec_CXX
='${wl}-f,'
20508 if test "$GXX" = yes; then
20509 case $host_os in aix4.
[012]|aix4.
[012].
*)
20510 # We only want to do this on AIX 4.2 and lower, the check
20511 # below for broken collect2 doesn't work under 4.3+
20512 collect2name
=`${CC} -print-prog-name=collect2`
20513 if test -f "$collect2name" &&
20514 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20516 # We have reworked collect2
20519 # We have old collect2
20520 hardcode_direct_CXX
=unsupported
20521 # It fails to find uninstalled libraries when the uninstalled
20522 # path is not listed in the libpath. Setting hardcode_minus_L
20523 # to unsupported forces relinking
20524 hardcode_minus_L_CXX
=yes
20525 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20526 hardcode_libdir_separator_CXX
=
20529 shared_flag
='-shared'
20530 if test "$aix_use_runtimelinking" = yes; then
20531 shared_flag
="$shared_flag "'${wl}-G'
20535 if test "$host_cpu" = ia64
; then
20536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20537 # chokes on -Wl,-G. The following line is correct:
20540 if test "$aix_use_runtimelinking" = yes; then
20541 shared_flag
='${wl}-G'
20543 shared_flag
='${wl}-bM:SRE'
20548 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20549 # It seems that -bexpall does not export symbols beginning with
20550 # underscore (_), so it is better to generate a list of symbols to
20552 always_export_symbols_CXX
=yes
20553 if test "$aix_use_runtimelinking" = yes; then
20554 # Warning - without using the other runtime loading flags (-brtl),
20555 # -berok will link without error, but may produce a broken library.
20556 allow_undefined_flag_CXX
='-berok'
20557 # Determine the default libpath from the value encoded in an empty
20559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20570 if ac_fn_cxx_try_link
"$LINENO"; then :
20572 lt_aix_libpath_sed
='
20573 /Import File Strings/,/^$/ {
20579 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20580 # Check for a 64-bit object if we didn't find anything.
20581 if test -z "$aix_libpath"; then
20582 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20585 rm -f core conftest.err conftest.
$ac_objext \
20586 conftest
$ac_exeext conftest.
$ac_ext
20587 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20589 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20591 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"
20593 if test "$host_cpu" = ia64
; then
20594 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20595 allow_undefined_flag_CXX
="-z nodefs"
20596 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"
20598 # Determine the default libpath from the value encoded in an
20599 # empty executable.
20600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20611 if ac_fn_cxx_try_link
"$LINENO"; then :
20613 lt_aix_libpath_sed
='
20614 /Import File Strings/,/^$/ {
20620 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20621 # Check for a 64-bit object if we didn't find anything.
20622 if test -z "$aix_libpath"; then
20623 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20626 rm -f core conftest.err conftest.
$ac_objext \
20627 conftest
$ac_exeext conftest.
$ac_ext
20628 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20630 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20631 # Warning - without using the other run time loading flags,
20632 # -berok will link without error, but may produce a broken library.
20633 no_undefined_flag_CXX
=' ${wl}-bernotok'
20634 allow_undefined_flag_CXX
=' ${wl}-berok'
20635 if test "$with_gnu_ld" = yes; then
20636 # We only use this code for GNU lds that support --whole-archive.
20637 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20639 # Exported symbols can be pulled into shared objects from archives
20640 whole_archive_flag_spec_CXX
='$convenience'
20642 archive_cmds_need_lc_CXX
=yes
20643 # This is similar to how AIX traditionally builds its shared
20645 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'
20651 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20652 allow_undefined_flag_CXX
=unsupported
20653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20654 # support --undefined. This deserves some investigation. FIXME
20655 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20662 case $cc_basename in
20664 # FIXME: insert proper C++ library support
20670 cygwin
* | mingw
* | pw32
* | cegcc
*)
20671 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20672 # as there is no search path for DLLs.
20673 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20674 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20675 allow_undefined_flag_CXX
=unsupported
20676 always_export_symbols_CXX
=no
20677 enable_shared_with_static_runtimes_CXX
=yes
20679 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20680 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'
20681 # If the export-symbols file already is a .def file (1st line
20682 # is EXPORTS), use it as is; otherwise, prepend...
20683 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20684 cp $export_symbols $output_objdir/$soname.def;
20686 echo EXPORTS > $output_objdir/$soname.def;
20687 cat $export_symbols >> $output_objdir/$soname.def;
20689 $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'
20694 darwin
* | rhapsody
*)
20697 archive_cmds_need_lc_CXX
=no
20698 hardcode_direct_CXX
=no
20699 hardcode_automatic_CXX
=yes
20700 hardcode_shlibpath_var_CXX
=unsupported
20701 if test "$lt_cv_ld_force_load" = "yes"; then
20702 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\"`'
20704 whole_archive_flag_spec_CXX
=''
20706 link_all_deplibs_CXX
=yes
20707 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20708 case $cc_basename in
20709 ifort
*) _lt_dar_can_shared
=yes ;;
20710 *) _lt_dar_can_shared
=$GCC ;;
20712 if test "$_lt_dar_can_shared" = "yes"; then
20713 output_verbose_link_cmd
=func_echo_all
20714 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}"
20715 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20716 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}"
20717 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}"
20718 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20719 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}"
20720 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}"
20730 case $cc_basename in
20732 # FIXME: insert proper C++ library support
20736 # Green Hills C++ Compiler
20737 # FIXME: insert proper C++ library support
20741 # FIXME: insert proper C++ library support
20748 # C++ shared libraries reported to be fairly broken before
20754 archive_cmds_need_lc_CXX
=no
20757 freebsd
* | dragonfly
*)
20758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20767 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20768 link_all_deplibs_CXX
=yes
20772 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20773 hardcode_libdir_separator_CXX
=:
20774 export_dynamic_flag_spec_CXX
='${wl}-E'
20775 hardcode_direct_CXX
=yes
20776 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20777 # but as the default
20778 # location of the library.
20780 case $cc_basename in
20782 # FIXME: insert proper C++ library support
20786 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'
20787 # Commands to make compiler produce verbose output that lists
20788 # what "hidden" libraries, object files and flags are used when
20789 # linking a shared library.
20791 # There doesn't appear to be a way to prevent this compiler from
20792 # explicitly linking system object files so we need to strip them
20793 # from the output so that they don't get included in the library
20795 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"'
20798 if test "$GXX" = yes; then
20799 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'
20801 # FIXME: insert proper C++ library support
20809 if test $with_gnu_ld = no
; then
20810 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20811 hardcode_libdir_separator_CXX
=:
20817 export_dynamic_flag_spec_CXX
='${wl}-E'
20823 hardcode_direct_CXX
=no
20824 hardcode_shlibpath_var_CXX
=no
20827 hardcode_direct_CXX
=yes
20828 hardcode_direct_absolute_CXX
=yes
20829 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20830 # but as the default
20831 # location of the library.
20835 case $cc_basename in
20837 # FIXME: insert proper C++ library support
20843 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20846 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20849 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20852 # Commands to make compiler produce verbose output that lists
20853 # what "hidden" libraries, object files and flags are used when
20854 # linking a shared library.
20856 # There doesn't appear to be a way to prevent this compiler from
20857 # explicitly linking system object files so we need to strip them
20858 # from the output so that they don't get included in the library
20860 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"'
20863 if test "$GXX" = yes; then
20864 if test $with_gnu_ld = no
; then
20867 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20870 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20873 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'
20878 # FIXME: insert proper C++ library support
20886 hardcode_direct_CXX
=no
20887 hardcode_shlibpath_var_CXX
=no
20888 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20889 export_dynamic_flag_spec_CXX
='${wl}-E'
20890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20891 # Instead, shared libraries are loaded at an image base (0x10000000 by
20892 # default) and relocated if they conflict, which is a slow very memory
20893 # consuming and fragmenting process. To avoid this, we pick a random,
20894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20896 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'
20897 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'
20900 case $cc_basename in
20903 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'
20905 # Archives containing C++ object files must be created using
20906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20907 # necessary to make sure instantiated templates are included
20909 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20912 if test "$GXX" = yes; then
20913 if test "$with_gnu_ld" = no
; then
20914 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'
20916 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'
20919 link_all_deplibs_CXX
=yes
20922 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20923 hardcode_libdir_separator_CXX
=:
20924 inherit_rpath_CXX
=yes
20927 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20928 case $cc_basename in
20930 # Kuck and Associates, Inc. (KAI) C++ Compiler
20932 # KCC will only create a shared library if the output file
20933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20934 # to its proper name (with version) after linking.
20935 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'
20936 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'
20937 # Commands to make compiler produce verbose output that lists
20938 # what "hidden" libraries, object files and flags are used when
20939 # linking a shared library.
20941 # There doesn't appear to be a way to prevent this compiler from
20942 # explicitly linking system object files so we need to strip them
20943 # from the output so that they don't get included in the library
20945 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"'
20947 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20948 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20950 # Archives containing C++ object files must be created using
20951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20952 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20957 # version 8.0 and above of icpc choke on multiply defined symbols
20958 # if we add $predep_objects and $postdep_objects, however 7.1 and
20959 # earlier do not add the objects themselves.
20960 case `$CC -V 2>&1` in
20962 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20963 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'
20965 *) # Version 8.0 or newer
20968 ia64
*) tmp_idyn
=' -i_dynamic';;
20970 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20971 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'
20974 archive_cmds_need_lc_CXX
=no
20975 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20976 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20977 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20980 # Portland Group C++ compiler
20982 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20983 prelink_cmds_CXX
='tpldir=Template.dir~
20985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20987 old_archive_cmds_CXX
='tpldir=Template.dir~
20989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20992 archive_cmds_CXX
='tpldir=Template.dir~
20994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20996 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20999 $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'
21001 *) # Version 6 and above use weak symbols
21002 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21003 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'
21007 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21008 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21009 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'
21013 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21014 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'
21016 runpath_var
=LD_RUN_PATH
21017 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21018 hardcode_libdir_separator_CXX
=:
21020 # Commands to make compiler produce verbose output that lists
21021 # what "hidden" libraries, object files and flags are used when
21022 # linking a shared library.
21024 # There doesn't appear to be a way to prevent this compiler from
21025 # explicitly linking system object files so we need to strip them
21026 # from the output so that they don't get included in the library
21028 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'
21030 xl
* | mpixl
* | bgxl
*)
21031 # IBM XL 8.0 on PPC, with GNU ld
21032 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21033 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21034 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21035 if test "x$supports_anon_versioning" = xyes
; then
21036 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21038 echo "local: *; };" >> $output_objdir/$libname.ver~
21039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21043 case `$CC -V 2>&1 | sed 5q` in
21046 no_undefined_flag_CXX
=' -zdefs'
21047 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21048 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'
21049 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21050 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'
21051 compiler_needs_object_CXX
=yes
21053 # Not sure whether something based on
21054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21056 output_verbose_link_cmd
='func_echo_all'
21058 # Archives containing C++ object files must be created using
21059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21060 # necessary to make sure instantiated templates are included
21062 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21070 # FIXME: insert proper C++ library support
21075 # FIXME: insert proper C++ library support
21080 case $cc_basename in
21082 # FIXME: insert proper C++ library support
21086 # FIXME: insert proper C++ library support
21093 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21094 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21096 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21097 hardcode_direct_CXX
=yes
21098 hardcode_shlibpath_var_CXX
=no
21100 # Workaround some broken pre-1.5 toolchains
21101 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21109 # C++ shared libraries are fairly broken
21114 if test -f /usr
/libexec
/ld.so
; then
21115 hardcode_direct_CXX
=yes
21116 hardcode_shlibpath_var_CXX
=no
21117 hardcode_direct_absolute_CXX
=yes
21118 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21119 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21121 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21122 export_dynamic_flag_spec_CXX
='${wl}-E'
21123 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21125 output_verbose_link_cmd
=func_echo_all
21131 osf3
* | osf4
* | osf5
*)
21132 case $cc_basename in
21134 # Kuck and Associates, Inc. (KAI) C++ Compiler
21136 # KCC will only create a shared library if the output file
21137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21138 # to its proper name (with version) after linking.
21139 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'
21141 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21142 hardcode_libdir_separator_CXX
=:
21144 # Archives containing C++ object files must be created using
21145 # the KAI C++ compiler.
21147 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21148 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21152 # Rational C++ 2.4.1
21153 # FIXME: insert proper C++ library support
21159 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21160 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'
21161 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21164 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21165 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'
21166 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21167 echo "-hidden">> $lib.exp~
21168 $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~
21170 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21174 hardcode_libdir_separator_CXX
=:
21176 # Commands to make compiler produce verbose output that lists
21177 # what "hidden" libraries, object files and flags are used when
21178 # linking a shared library.
21180 # There doesn't appear to be a way to prevent this compiler from
21181 # explicitly linking system object files so we need to strip them
21182 # from the output so that they don't get included in the library
21184 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"'
21187 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21188 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21191 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'
21194 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'
21198 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21199 hardcode_libdir_separator_CXX
=:
21201 # Commands to make compiler produce verbose output that lists
21202 # what "hidden" libraries, object files and flags are used when
21203 # linking a shared library.
21204 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21207 # FIXME: insert proper C++ library support
21215 # FIXME: insert proper C++ library support
21220 case $cc_basename in
21223 # FIXME: insert proper C++ library support
21228 # FIXME: insert proper C++ library support
21232 # FIXME: insert proper C++ library support
21239 case $cc_basename in
21241 # Sun C++ 4.2, 5.x and Centerline C++
21242 archive_cmds_need_lc_CXX
=yes
21243 no_undefined_flag_CXX
=' -zdefs'
21244 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21245 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21246 $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'
21248 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21249 hardcode_shlibpath_var_CXX
=no
21251 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21253 # The compiler driver will combine and reorder linker options,
21254 # but understands `-z linker_flag'.
21255 # Supported since Solaris 2.6 (maybe 2.5.1?)
21256 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21259 link_all_deplibs_CXX
=yes
21261 output_verbose_link_cmd
='func_echo_all'
21263 # Archives containing C++ object files must be created using
21264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21265 # necessary to make sure instantiated templates are included
21267 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21270 # Green Hills C++ Compiler
21271 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21273 # The C++ compiler must be used to create the archive.
21274 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21277 # GNU C++ compiler with Solaris linker
21278 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21279 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21280 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21281 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21282 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21285 # Commands to make compiler produce verbose output that lists
21286 # what "hidden" libraries, object files and flags are used when
21287 # linking a shared library.
21288 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21292 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21293 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21294 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21296 # Commands to make compiler produce verbose output that lists
21297 # what "hidden" libraries, object files and flags are used when
21298 # linking a shared library.
21299 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21302 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21304 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21306 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21314 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21315 no_undefined_flag_CXX
='${wl}-z,text'
21316 archive_cmds_need_lc_CXX
=no
21317 hardcode_shlibpath_var_CXX
=no
21318 runpath_var
='LD_RUN_PATH'
21320 case $cc_basename in
21322 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21326 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21327 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21332 sysv5
* | sco3.2v5
* | sco5v6
*)
21333 # Note: We can NOT use -z defs as we might desire, because we do not
21334 # link with -lc, and that would cause any symbols used from libc to
21335 # always be unresolved, which means just about no library would
21336 # ever link correctly. If we're not using GNU ld we use -z text
21337 # though, which does catch some bad symbols but isn't as heavy-handed
21339 no_undefined_flag_CXX
='${wl}-z,text'
21340 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21341 archive_cmds_need_lc_CXX
=no
21342 hardcode_shlibpath_var_CXX
=no
21343 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21344 hardcode_libdir_separator_CXX
=':'
21345 link_all_deplibs_CXX
=yes
21346 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21347 runpath_var
='LD_RUN_PATH'
21349 case $cc_basename in
21351 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21352 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21353 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21354 '"$old_archive_cmds_CXX"
21355 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21356 '"$reload_cmds_CXX"
21359 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21360 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21366 case $cc_basename in
21368 # NonStop-UX NCC 3.20
21369 # FIXME: insert proper C++ library support
21373 # FIXME: insert proper C++ library support
21380 # For VxWorks ports, we assume the use of a GNU linker with
21381 # standard elf conventions.
21386 # FIXME: insert proper C++ library support
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21392 $as_echo "$ld_shlibs_CXX" >&6; }
21393 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21399 ## There is no encapsulation within the following macros, do not change
21400 ## the running order or otherwise move them around unless you know exactly
21401 ## what you are doing...
21402 # Dependencies to place before and after the object being linked:
21403 predep_objects_CXX
=
21404 postdep_objects_CXX
=
21407 compiler_lib_search_path_CXX
=
21409 cat > conftest.
$ac_ext <<_LT_EOF
21413 Foo (void) { a = 0; }
21419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21420 (eval $ac_compile) 2>&5
21422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21423 test $ac_status = 0; }; then
21424 # Parse the compiler output and extract the necessary
21425 # objects, libraries and library flags.
21427 # Sentinel used to keep track of whether or not we are before
21428 # the conftest object file.
21429 pre_test_object_deps_done
=no
21431 for p
in `eval "$output_verbose_link_cmd"`; do
21435 # Some compilers place space between "-{L,R}" and the path.
21436 # Remove the space.
21437 if test $p = "-L" ||
21438 test $p = "-R"; then
21445 if test "$pre_test_object_deps_done" = no
; then
21448 # Internal compiler library paths should come after those
21449 # provided the user. The postdeps already come after the
21450 # user supplied libs so there is no need to process them.
21451 if test -z "$compiler_lib_search_path_CXX"; then
21452 compiler_lib_search_path_CXX
="${prev}${p}"
21454 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21457 # The "-l" case would never come before the object being
21458 # linked, so don't bother handling this case.
21461 if test -z "$postdeps_CXX"; then
21462 postdeps_CXX
="${prev}${p}"
21464 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21470 # This assumes that the test object file only shows up
21471 # once in the compiler output.
21472 if test "$p" = "conftest.$objext"; then
21473 pre_test_object_deps_done
=yes
21477 if test "$pre_test_object_deps_done" = no
; then
21478 if test -z "$predep_objects_CXX"; then
21479 predep_objects_CXX
="$p"
21481 predep_objects_CXX
="$predep_objects_CXX $p"
21484 if test -z "$postdep_objects_CXX"; then
21485 postdep_objects_CXX
="$p"
21487 postdep_objects_CXX
="$postdep_objects_CXX $p"
21492 *) ;; # Ignore the rest.
21500 echo "libtool.m4: error: problem compiling CXX test program"
21503 $RM -f confest.
$objext
21505 # PORTME: override above test on systems where it is broken
21508 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21509 # hack all around it, let's just trust "g++" to DTRT.
21510 predep_objects_CXX
=
21511 postdep_objects_CXX
=
21516 case `$CC -V 2>&1 | sed 5q` in
21520 # The more standards-conforming stlport4 library is
21521 # incompatible with the Cstd library. Avoid specifying
21522 # it if it's in CXXFLAGS. Ignore libCrun as
21523 # -library=stlport4 depends on it.
21524 case " $CXX $CXXFLAGS " in
21525 *" -library=stlport4 "*)
21526 solaris_use_stlport4
=yes
21530 if test "$solaris_use_stlport4" != yes; then
21531 postdeps_CXX
='-library=Cstd -library=Crun'
21538 case $cc_basename in
21540 # The more standards-conforming stlport4 library is
21541 # incompatible with the Cstd library. Avoid specifying
21542 # it if it's in CXXFLAGS. Ignore libCrun as
21543 # -library=stlport4 depends on it.
21544 case " $CXX $CXXFLAGS " in
21545 *" -library=stlport4 "*)
21546 solaris_use_stlport4
=yes
21550 # Adding this requires a known-good setup of shared libraries for
21551 # Sun compiler versions before 5.6, else PIC objects from an old
21552 # archive will be linked into the output, leading to subtle bugs.
21553 if test "$solaris_use_stlport4" != yes; then
21554 postdeps_CXX
='-library=Cstd -library=Crun'
21562 case " $postdeps_CXX " in
21563 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21565 compiler_lib_search_dirs_CXX
=
21566 if test -n "${compiler_lib_search_path_CXX}"; then
21567 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21600 lt_prog_compiler_wl_CXX
=
21601 lt_prog_compiler_pic_CXX
=
21602 lt_prog_compiler_static_CXX
=
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21607 # C++ specific cases for pic, static, wl, etc.
21608 if test "$GXX" = yes; then
21609 lt_prog_compiler_wl_CXX
='-Wl,'
21610 lt_prog_compiler_static_CXX
='-static'
21614 # All AIX code is PIC.
21615 if test "$host_cpu" = ia64
; then
21616 # AIX 5 now supports IA64 processor
21617 lt_prog_compiler_static_CXX
='-Bstatic'
21619 lt_prog_compiler_pic_CXX
='-fPIC'
21625 # see comment about AmigaOS4 .so support
21626 lt_prog_compiler_pic_CXX
='-fPIC'
21629 # FIXME: we need at least 68020 code to build shared libraries, but
21630 # adding the `-m68020' flag to GCC prevents building anything better,
21632 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21637 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21638 # PIC is the default for these OSes.
21640 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21641 # This hack is so that the source file can tell whether it is being
21642 # built for inclusion in a dll (and should export symbols for example).
21643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21644 # (--disable-auto-import) libraries
21645 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21647 darwin
* | rhapsody
*)
21648 # PIC is the default on this platform
21649 # Common symbols not allowed in MH_DYLIB files
21650 lt_prog_compiler_pic_CXX
='-fno-common'
21653 # DJGPP does not support shared libraries at all
21654 lt_prog_compiler_pic_CXX
=
21657 # PIC is the default for Haiku.
21658 # The "-static" flag exists, but is broken.
21659 lt_prog_compiler_static_CXX
=
21662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21663 # Instead, we relocate shared libraries at runtime.
21666 if test -d /usr
/nec
; then
21667 lt_prog_compiler_pic_CXX
=-Kconform_pic
21671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21673 # sets the default TLS model and affects inlining.
21678 lt_prog_compiler_pic_CXX
='-fPIC'
21683 # QNX uses GNU C++, but need to define -shared option too, otherwise
21684 # it will coredump.
21685 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21688 lt_prog_compiler_pic_CXX
='-fPIC'
21694 # All AIX code is PIC.
21695 if test "$host_cpu" = ia64
; then
21696 # AIX 5 now supports IA64 processor
21697 lt_prog_compiler_static_CXX
='-Bstatic'
21699 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21703 case $cc_basename in
21705 # Green Hills C++ Compiler
21706 # _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"
21711 case $cc_basename in
21713 lt_prog_compiler_pic_CXX
='-KPIC'
21716 # Green Hills C++ Compiler
21717 lt_prog_compiler_pic_CXX
='-pic'
21723 freebsd
* | dragonfly
*)
21724 # FreeBSD uses GNU C++
21726 hpux9
* | hpux10
* | hpux11
*)
21727 case $cc_basename in
21729 lt_prog_compiler_wl_CXX
='-Wl,'
21730 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21731 if test "$host_cpu" != ia64
; then
21732 lt_prog_compiler_pic_CXX
='+Z'
21736 lt_prog_compiler_wl_CXX
='-Wl,'
21737 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21743 lt_prog_compiler_pic_CXX
='+Z'
21752 # This is c89, which is MS Visual C++ (no shared libs)
21753 # Anyone wants to do a port?
21755 irix5
* | irix6
* | nonstopux
*)
21756 case $cc_basename in
21758 lt_prog_compiler_wl_CXX
='-Wl,'
21759 lt_prog_compiler_static_CXX
='-non_shared'
21760 # CC pic flag -KPIC is the default.
21766 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21767 case $cc_basename in
21770 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21771 lt_prog_compiler_pic_CXX
='-fPIC'
21774 # old Intel C++ for x86_64 which still supported -KPIC.
21775 lt_prog_compiler_wl_CXX
='-Wl,'
21776 lt_prog_compiler_pic_CXX
='-KPIC'
21777 lt_prog_compiler_static_CXX
='-static'
21780 # Intel C++, used to be incompatible with GCC.
21781 # ICC 10 doesn't accept -KPIC any more.
21782 lt_prog_compiler_wl_CXX
='-Wl,'
21783 lt_prog_compiler_pic_CXX
='-fPIC'
21784 lt_prog_compiler_static_CXX
='-static'
21787 # Portland Group C++ compiler
21788 lt_prog_compiler_wl_CXX
='-Wl,'
21789 lt_prog_compiler_pic_CXX
='-fpic'
21790 lt_prog_compiler_static_CXX
='-Bstatic'
21794 # Make sure the PIC flag is empty. It appears that all Alpha
21795 # Linux and Compaq Tru64 Unix objects are PIC.
21796 lt_prog_compiler_pic_CXX
=
21797 lt_prog_compiler_static_CXX
='-non_shared'
21799 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21800 # IBM XL 8.0, 9.0 on PPC and BlueGene
21801 lt_prog_compiler_wl_CXX
='-Wl,'
21802 lt_prog_compiler_pic_CXX
='-qpic'
21803 lt_prog_compiler_static_CXX
='-qstaticlink'
21806 case `$CC -V 2>&1 | sed 5q` in
21809 lt_prog_compiler_pic_CXX
='-KPIC'
21810 lt_prog_compiler_static_CXX
='-Bstatic'
21811 lt_prog_compiler_wl_CXX
='-Qoption ld '
21822 case $cc_basename in
21824 lt_prog_compiler_pic_CXX
='-W c,exportall'
21833 # QNX uses GNU C++, but need to define -shared option too, otherwise
21834 # it will coredump.
21835 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21837 osf3
* | osf4
* | osf5
*)
21838 case $cc_basename in
21840 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21843 # Rational C++ 2.4.1
21844 lt_prog_compiler_pic_CXX
='-pic'
21847 # Digital/Compaq C++
21848 lt_prog_compiler_wl_CXX
='-Wl,'
21849 # Make sure the PIC flag is empty. It appears that all Alpha
21850 # Linux and Compaq Tru64 Unix objects are PIC.
21851 lt_prog_compiler_pic_CXX
=
21852 lt_prog_compiler_static_CXX
='-non_shared'
21861 case $cc_basename in
21863 # Sun C++ 4.2, 5.x and Centerline C++
21864 lt_prog_compiler_pic_CXX
='-KPIC'
21865 lt_prog_compiler_static_CXX
='-Bstatic'
21866 lt_prog_compiler_wl_CXX
='-Qoption ld '
21869 # Green Hills C++ Compiler
21870 lt_prog_compiler_pic_CXX
='-PIC'
21877 case $cc_basename in
21880 lt_prog_compiler_pic_CXX
='-pic'
21881 lt_prog_compiler_static_CXX
='-Bstatic'
21885 lt_prog_compiler_pic_CXX
='-pic'
21891 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21892 case $cc_basename in
21894 lt_prog_compiler_wl_CXX
='-Wl,'
21895 lt_prog_compiler_pic_CXX
='-KPIC'
21896 lt_prog_compiler_static_CXX
='-Bstatic'
21901 case $cc_basename in
21903 # NonStop-UX NCC 3.20
21904 lt_prog_compiler_pic_CXX
='-KPIC'
21913 lt_prog_compiler_can_build_shared_CXX
=no
21919 # For platforms which do not support PIC, -DPIC is meaningless:
21921 lt_prog_compiler_pic_CXX
=
21924 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21933 # Check to make sure the PIC flag actually works.
21935 if test -n "$lt_prog_compiler_pic_CXX"; then
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21938 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21939 $as_echo_n "(cached) " >&6
21941 lt_cv_prog_compiler_pic_works_CXX
=no
21942 ac_outfile
=conftest.
$ac_objext
21943 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21944 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21945 # Insert the option either (1) after the last *FLAGS variable, or
21946 # (2) before a word containing "conftest.", or (3) at the end.
21947 # Note that $ac_compile itself does not contain backslashes and begins
21948 # with a dollar sign (not a hyphen), so the echo should work correctly.
21949 # The option is referenced via a variable to avoid confusing sed.
21950 lt_compile
=`echo "$ac_compile" | $SED \
21951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21953 -e 's:$: $lt_compiler_flag:'`
21954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21955 (eval "$lt_compile" 2>conftest.err
)
21957 cat conftest.err
>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 if (exit $ac_status) && test -s "$ac_outfile"; then
21960 # The compiler can only warn and ignore the option if not recognized
21961 # So say no if there are warnings other than the usual output.
21962 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21963 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21964 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21965 lt_cv_prog_compiler_pic_works_CXX
=yes
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21972 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21974 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21975 case $lt_prog_compiler_pic_CXX in
21977 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21980 lt_prog_compiler_pic_CXX
=
21981 lt_prog_compiler_can_build_shared_CXX
=no
21989 # Check to make sure the static flag actually works.
21991 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21993 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21994 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21995 $as_echo_n "(cached) " >&6
21997 lt_cv_prog_compiler_static_works_CXX
=no
21998 save_LDFLAGS
="$LDFLAGS"
21999 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22000 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22001 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22002 # The linker can only warn and ignore the option if not recognized
22003 # So say no if there are warnings
22004 if test -s conftest.err
; then
22005 # Append any errors to the config.log.
22006 cat conftest.err
1>&5
22007 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22008 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22009 if diff conftest.exp conftest.er2
>/dev
/null
; then
22010 lt_cv_prog_compiler_static_works_CXX
=yes
22013 lt_cv_prog_compiler_static_works_CXX
=yes
22017 LDFLAGS
="$save_LDFLAGS"
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22021 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22023 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22026 lt_prog_compiler_static_CXX
=
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22034 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22035 $as_echo_n "(cached) " >&6
22037 lt_cv_prog_compiler_c_o_CXX
=no
22038 $RM -r conftest
2>/dev
/null
22042 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22044 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22045 # Insert the option either (1) after the last *FLAGS variable, or
22046 # (2) before a word containing "conftest.", or (3) at the end.
22047 # Note that $ac_compile itself does not contain backslashes and begins
22048 # with a dollar sign (not a hyphen), so the echo should work correctly.
22049 lt_compile
=`echo "$ac_compile" | $SED \
22050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22052 -e 's:$: $lt_compiler_flag:'`
22053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22054 (eval "$lt_compile" 2>out
/conftest.err
)
22056 cat out
/conftest.err
>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22060 # The compiler can only warn and ignore the option if not recognized
22061 # So say no if there are warnings
22062 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22063 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22064 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22065 lt_cv_prog_compiler_c_o_CXX
=yes
22070 # SGI C++ compiler will create directory out/ii_files/ for
22071 # template instantiation
22072 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22073 $RM out
/* && rmdir out
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22086 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22087 $as_echo_n "(cached) " >&6
22089 lt_cv_prog_compiler_c_o_CXX
=no
22090 $RM -r conftest
2>/dev
/null
22094 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22096 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22097 # Insert the option either (1) after the last *FLAGS variable, or
22098 # (2) before a word containing "conftest.", or (3) at the end.
22099 # Note that $ac_compile itself does not contain backslashes and begins
22100 # with a dollar sign (not a hyphen), so the echo should work correctly.
22101 lt_compile
=`echo "$ac_compile" | $SED \
22102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22104 -e 's:$: $lt_compiler_flag:'`
22105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22106 (eval "$lt_compile" 2>out
/conftest.err
)
22108 cat out
/conftest.err
>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22112 # The compiler can only warn and ignore the option if not recognized
22113 # So say no if there are warnings
22114 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22115 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22116 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22117 lt_cv_prog_compiler_c_o_CXX
=yes
22122 # SGI C++ compiler will create directory out/ii_files/ for
22123 # template instantiation
22124 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22125 $RM out
/* && rmdir out
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22137 hard_links
="nottested"
22138 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22139 # do not overwrite the value of need_locks provided by the user
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22141 $as_echo_n "checking if we can lock with hard links... " >&6; }
22144 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22146 ln conftest.a conftest.b
2>&5 || hard_links
=no
22147 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22149 $as_echo "$hard_links" >&6; }
22150 if test "$hard_links" = no
; then
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22152 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22164 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22167 # If we're using GNU nm, then we don't want the "-C" option.
22168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22169 # Also, AIX nm treats weak defined symbols like other global defined
22170 # symbols, whereas GNU nm marks them as "W".
22171 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22172 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'
22174 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'
22178 export_symbols_cmds_CXX
="$ltdll_cmds"
22180 cygwin
* | mingw
* | cegcc
*)
22181 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'
22184 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22187 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22190 $as_echo "$ld_shlibs_CXX" >&6; }
22191 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22193 with_gnu_ld_CXX
=$with_gnu_ld
22201 # Do we need to explicitly link libc?
22203 case "x$archive_cmds_need_lc_CXX" in
22205 # Assume -lc should be added
22206 archive_cmds_need_lc_CXX
=yes
22208 if test "$enable_shared" = yes && test "$GCC" = yes; then
22209 case $archive_cmds_CXX in
22211 # FIXME: we may have to deal with multi-command sequences.
22214 # Test whether the compiler implicitly links with -lc since on some
22215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22216 # to ld, don't add -lc before -lgcc.
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22219 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22220 $as_echo_n "(cached) " >&6
22223 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22226 (eval $ac_compile) 2>&5
22228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22229 test $ac_status = 0; } 2>conftest.err
; then
22232 libobjs
=conftest.
$ac_objext
22234 wl
=$lt_prog_compiler_wl_CXX
22235 pic_flag
=$lt_prog_compiler_pic_CXX
22241 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22242 allow_undefined_flag_CXX
=
22243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22244 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247 test $ac_status = 0; }
22249 lt_cv_archive_cmds_need_lc_CXX
=no
22251 lt_cv_archive_cmds_need_lc_CXX
=yes
22253 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22255 cat conftest.err
1>&5
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22261 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22262 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22335 library_names_spec
=
22336 libname_spec
='lib$name'
22340 postuninstall_cmds
=
22344 shlibpath_overrides_runpath
=unknown
22346 dynamic_linker
="$host_os ld.so"
22347 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22348 need_lib_prefix
=unknown
22349 hardcode_into_libs
=no
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version
=unknown
22358 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var
=LIBPATH
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec
='${libname}${release}${shared_ext}$major'
22369 hardcode_into_libs
=yes
22370 if test "$host_cpu" = ia64
; then
22371 # AIX 5 supports IA64
22372 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var
=LD_LIBRARY_PATH
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22381 aix4 | aix4.
[01] | aix4.
[01].
*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22384 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22387 can_build_shared
=no
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec
='${libname}${release}.a $libname.a'
22403 soname_spec
='${libname}${release}${shared_ext}$major'
22405 shlibpath_var
=LIBPATH
22412 # Since July 2007 AmigaOS4 officially supports .so libraries.
22413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22417 library_names_spec
='$libname.ixlibrary $libname.a'
22418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22419 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'
22425 library_names_spec
='${libname}${shared_ext}'
22426 dynamic_linker
="$host_os ld.so"
22427 shlibpath_var
=LIBRARY_PATH
22433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22434 soname_spec
='${libname}${release}${shared_ext}$major'
22435 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22436 shlibpath_var
=LD_LIBRARY_PATH
22437 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22438 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22439 # the default ld.so.conf also contains /usr/contrib/lib and
22440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22441 # libtool to hard-code these into programs
22444 cygwin
* | mingw
* | pw32
* | cegcc
*)
22445 version_type
=windows
22450 case $GCC,$host_os in
22451 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22452 library_names_spec
='$libname.dll.a'
22453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22454 postinstall_cmds
='base_file=`basename \${file}`~
22455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22456 dldir=$destdir/`dirname \$dlpath`~
22457 test -d \$dldir || mkdir -p \$dldir~
22458 $install_prog $dir/$dlname \$dldir/$dlname~
22459 chmod a+x \$dldir/$dlname~
22460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22463 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22464 dlpath=$dir/\$dldll~
22466 shlibpath_overrides_runpath
=yes
22470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22471 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22475 # MinGW DLLs use traditional 'lib' prefix
22476 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22479 # pw32 DLLs use 'pw' prefix rather than 'lib'
22480 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22486 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22489 dynamic_linker
='Win32 ld.exe'
22490 # FIXME: first we should search . and the directory the executable is in
22494 darwin
* | rhapsody
*)
22495 dynamic_linker
="$host_os dyld"
22496 version_type
=darwin
22499 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22500 soname_spec
='${libname}${release}${major}$shared_ext'
22501 shlibpath_overrides_runpath
=yes
22502 shlibpath_var
=DYLD_LIBRARY_PATH
22503 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22505 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22512 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22513 soname_spec
='${libname}${release}${shared_ext}$major'
22514 shlibpath_var
=LD_LIBRARY_PATH
22517 freebsd
* | dragonfly
*)
22518 # DragonFly does not have aout. When/if they implement a new
22519 # versioning mechanism, adjust this.
22520 if test -x /usr
/bin
/objformat
; then
22521 objformat
=`/usr/bin/objformat`
22524 freebsd
[23].
*) objformat
=aout
;;
22525 *) objformat
=elf
;;
22528 version_type
=freebsd-
$objformat
22529 case $version_type in
22531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22536 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22540 shlibpath_var
=LD_LIBRARY_PATH
22543 shlibpath_overrides_runpath
=yes
22545 freebsd3.
[01]* | freebsdelf3.
[01]*)
22546 shlibpath_overrides_runpath
=yes
22547 hardcode_into_libs
=yes
22549 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22550 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22551 shlibpath_overrides_runpath
=no
22552 hardcode_into_libs
=yes
22554 *) # from 4.6 on, and DragonFly
22555 shlibpath_overrides_runpath
=yes
22556 hardcode_into_libs
=yes
22565 dynamic_linker
="$host_os runtime_loader"
22566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22567 soname_spec
='${libname}${release}${shared_ext}$major'
22568 shlibpath_var
=LIBRARY_PATH
22569 shlibpath_overrides_runpath
=yes
22570 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22571 hardcode_into_libs
=yes
22574 hpux9
* | hpux10
* | hpux11
*)
22575 # Give a soname corresponding to the major version so that dld.sl refuses to
22576 # link against other versions.
22583 hardcode_into_libs
=yes
22584 dynamic_linker
="$host_os dld.so"
22585 shlibpath_var
=LD_LIBRARY_PATH
22586 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec
='${libname}${release}${shared_ext}$major'
22589 if test "X$HPUX_IA64_MODE" = X32
; then
22590 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22592 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22594 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22598 hardcode_into_libs
=yes
22599 dynamic_linker
="$host_os dld.sl"
22600 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22601 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22605 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22609 dynamic_linker
="$host_os dld.sl"
22610 shlibpath_var
=SHLIB_PATH
22611 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec
='${libname}${release}${shared_ext}$major'
22616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22617 postinstall_cmds
='chmod 555 $lib'
22618 # or fails outright, so override atomically:
22619 install_override_mode
=555
22626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627 soname_spec
='${libname}${release}${shared_ext}$major'
22628 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22629 shlibpath_var
=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath
=no
22631 hardcode_into_libs
=yes
22634 irix5
* | irix6
* | nonstopux
*)
22636 nonstopux
*) version_type
=nonstopux
;;
22638 if test "$lt_cv_prog_gnu_ld" = yes; then
22646 soname_spec
='${libname}${release}${shared_ext}$major'
22647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22649 irix5
* | nonstopux
*)
22650 libsuff
= shlibsuff
=
22653 case $LD in # libtool.m4 will add one of these switches to LD
22654 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22655 libsuff
= shlibsuff
= libmagic
=32-bit;;
22656 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22657 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22658 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22659 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22660 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22664 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22665 shlibpath_overrides_runpath
=no
22666 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22667 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22668 hardcode_into_libs
=yes
22671 # No shared lib support for Linux oldld, aout, or coff.
22672 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22676 # This must be Linux ELF.
22678 # uclinux* changes (here and below) have been submitted to the libtool
22679 # project, but have not yet been accepted: they are GCC-local changes
22680 # for the time being. (See
22681 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22682 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687 soname_spec
='${libname}${release}${shared_ext}$major'
22688 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22689 shlibpath_var
=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath
=no
22692 # Some binutils ld are patched to set DT_RUNPATH
22693 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22694 $as_echo_n "(cached) " >&6
22696 lt_cv_shlibpath_overrides_runpath
=no
22697 save_LDFLAGS
=$LDFLAGS
22698 save_libdir
=$libdir
22699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22702 /* end confdefs.h. */
22712 if ac_fn_cxx_try_link
"$LINENO"; then :
22713 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22714 lt_cv_shlibpath_overrides_runpath
=yes
22717 rm -f core conftest.err conftest.
$ac_objext \
22718 conftest
$ac_exeext conftest.
$ac_ext
22719 LDFLAGS
=$save_LDFLAGS
22720 libdir
=$save_libdir
22724 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22726 # This implies no fast_install, which is unacceptable.
22727 # Some rework will be needed to allow for fast_install
22728 # before this can be enabled.
22729 hardcode_into_libs
=yes
22731 # Append ld.so.conf contents to the search path
22732 if test -f /etc
/ld.so.conf
; then
22733 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' ' '`
22734 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22737 # We used to test for /lib/ld.so.1 and disable shared libraries on
22738 # powerpc, because MkLinux only supported shared libraries with the
22739 # GNU dynamic linker. Since this was broken with cross compilers,
22740 # most powerpc-linux boxes support dynamic linking these days and
22741 # people can always --disable-shared, the test was removed, and we
22742 # assume the GNU/Linux dynamic linker is in use.
22743 dynamic_linker
='GNU/Linux ld.so'
22750 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22752 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22753 dynamic_linker
='NetBSD (a.out) ld.so'
22755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22756 soname_spec
='${libname}${release}${shared_ext}$major'
22757 dynamic_linker
='NetBSD ld.elf_so'
22759 shlibpath_var
=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath
=yes
22761 hardcode_into_libs
=yes
22766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 shlibpath_var
=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath
=yes
22775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22776 soname_spec
='${libname}${release}${shared_ext}$major'
22777 shlibpath_var
=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath
=no
22779 hardcode_into_libs
=yes
22780 dynamic_linker
='ldqnx.so'
22785 sys_lib_dlsearch_path_spec
="/usr/lib"
22787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22789 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22790 *) need_version
=no
;;
22792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22793 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22794 shlibpath_var
=LD_LIBRARY_PATH
22795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22797 openbsd2.
[89] | openbsd2.
[89].
*)
22798 shlibpath_overrides_runpath
=no
22801 shlibpath_overrides_runpath
=yes
22805 shlibpath_overrides_runpath
=yes
22810 libname_spec
='$name'
22813 library_names_spec
='$libname${shared_ext} $libname.a'
22814 dynamic_linker
='OS/2 ld.exe'
22815 shlibpath_var
=LIBPATH
22818 osf3
* | osf4
* | osf5
*)
22822 soname_spec
='${libname}${release}${shared_ext}$major'
22823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 shlibpath_var
=LD_LIBRARY_PATH
22825 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22826 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 soname_spec
='${libname}${release}${shared_ext}$major'
22839 shlibpath_var
=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath
=yes
22841 hardcode_into_libs
=yes
22842 # ldd complains unless libraries are executable
22843 postinstall_cmds
='chmod +x $lib'
22848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22849 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22850 shlibpath_var
=LD_LIBRARY_PATH
22851 shlibpath_overrides_runpath
=yes
22852 if test "$with_gnu_ld" = yes; then
22860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec
='${libname}${release}${shared_ext}$major'
22862 shlibpath_var
=LD_LIBRARY_PATH
22863 case $host_vendor in
22865 shlibpath_overrides_runpath
=no
22867 runpath_var
=LD_RUN_PATH
22875 shlibpath_overrides_runpath
=no
22876 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22882 if test -d /usr
/nec
;then
22884 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22885 soname_spec
='$libname${shared_ext}.$major'
22886 shlibpath_var
=LD_LIBRARY_PATH
22890 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22891 version_type
=freebsd-elf
22894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22895 soname_spec
='${libname}${release}${shared_ext}$major'
22896 shlibpath_var
=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath
=yes
22898 hardcode_into_libs
=yes
22899 if test "$with_gnu_ld" = yes; then
22900 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22902 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22905 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22909 sys_lib_dlsearch_path_spec
='/usr/lib'
22913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 shlibpath_var
=LD_LIBRARY_PATH
22919 shlibpath_overrides_runpath
=no
22920 hardcode_into_libs
=yes
22925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec
='${libname}${release}${shared_ext}$major'
22927 shlibpath_var
=LD_LIBRARY_PATH
22930 # Shared libraries for VwWorks, >= 7 only at this stage
22931 # and (fpic) still incompatible with "large" code models
22932 # in a few configurations. Only for RTP mode in any case,
22933 # and upon explicit request at configure time.
22936 case ${with_multisubdir}-${enable_shared} in
22943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22944 soname_spec
='${libname}${release}${shared_ext}$major'
22945 dynamic_linker
="$host_os module_loader"
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22954 $as_echo "$dynamic_linker" >&6; }
22955 test "$dynamic_linker" = no
&& can_build_shared
=no
22957 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22958 if test "$GCC" = yes; then
22959 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22962 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22963 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22965 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22966 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23007 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23008 hardcode_action_CXX
=
23009 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23010 test -n "$runpath_var_CXX" ||
23011 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23013 # We can hardcode non-existent directories.
23014 if test "$hardcode_direct_CXX" != no
&&
23015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23016 # have to relink, otherwise we might link with an installed library
23017 # when we should be linking with a yet-to-be-installed one
23018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23019 test "$hardcode_minus_L_CXX" != no
; then
23020 # Linking always hardcodes the temporary library directory.
23021 hardcode_action_CXX
=relink
23023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23024 hardcode_action_CXX
=immediate
23027 # We cannot hardcode anything, or else we can only hardcode existing
23029 hardcode_action_CXX
=unsupported
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23032 $as_echo "$hardcode_action_CXX" >&6; }
23034 if test "$hardcode_action_CXX" = relink ||
23035 test "$inherit_rpath_CXX" = yes; then
23036 # Fast installation is not supported
23037 enable_fast_install
=no
23038 elif test "$shlibpath_overrides_runpath" = yes ||
23039 test "$enable_shared" = no
; then
23040 # Fast installation is not necessary
23041 enable_fast_install
=needless
23050 fi # test -n "$compiler"
23056 with_gnu_ld
=$lt_save_with_gnu_ld
23057 lt_cv_path_LDCXX
=$lt_cv_path_LD
23058 lt_cv_path_LD
=$lt_save_path_LD
23059 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23060 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23061 fi # test "$_lt_caught_CXX_error" != yes
23064 ac_cpp
='$CXXCPP $CPPFLAGS'
23065 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23066 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23084 # Only expand once:
23090 # Identify the assembler which will work hand-in-glove with the newly
23091 # built GCC, so that we can examine its features. This is the assembler
23092 # which will be driven by the driver program.
23094 # If build != host, and we aren't building gas in-tree, we identify a
23095 # build->target assembler and hope that it will have the same features
23096 # as the host->target assembler we'll be using.
23097 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23099 if ${gcc_cv_as+:} false
; then :
23103 if test -x "$DEFAULT_ASSEMBLER"; then
23104 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23105 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23106 && test -f ..
/gas
/Makefile \
23107 && test x
$build = x
$host; then
23108 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23109 elif test -x as
$build_exeext; then
23110 # Build using assembler in the current directory.
23111 gcc_cv_as
=.
/as
$build_exeext
23112 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23113 gcc_cv_as
="$AS_FOR_TARGET"
23115 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23116 set dummy
$AS_FOR_TARGET; ac_word
=$2
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23118 $as_echo_n "checking for $ac_word... " >&6; }
23119 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23120 $as_echo_n "(cached) " >&6
23124 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23128 for as_dir
in $PATH
23131 test -z "$as_dir" && as_dir
=.
23132 for ac_exec_ext
in '' $ac_executable_extensions; do
23133 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23134 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23145 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23146 if test -n "$gcc_cv_as"; then
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23148 $as_echo "$gcc_cv_as" >&6; }
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23151 $as_echo "no" >&6; }
23158 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23160 case "$ORIGINAL_AS_FOR_TARGET" in
23161 .
/as | .
/as
$build_exeext) ;;
23162 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23167 # Check whether --enable-ld was given.
23168 if test "${enable_ld+set}" = set; then :
23169 enableval
=$enable_ld; case "${enableval}" in
23177 install_gold_as_default
=no
23178 # Check whether --enable-gold was given.
23179 if test "${enable_gold+set}" = set; then :
23180 enableval
=$enable_gold; case "${enableval}" in
23182 install_gold_as_default
=yes
23185 if test x
${default_ld} != x
; then
23186 install_gold_as_default
=yes
23192 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23198 # Identify the linker which will work hand-in-glove with the newly
23199 # built GCC, so that we can examine its features. This is the linker
23200 # which will be driven by the driver program.
23202 # If build != host, and we aren't building gas in-tree, we identify a
23203 # build->target linker and hope that it will have the same features
23204 # as the host->target linker we'll be using.
23205 gcc_cv_gld_major_version
=
23206 gcc_cv_gld_minor_version
=
23207 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23208 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23209 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23211 if ${gcc_cv_ld+:} false
; then :
23215 if test -x "$DEFAULT_LINKER"; then
23216 gcc_cv_ld
="$DEFAULT_LINKER"
23217 elif test $install_gold_as_default = yes \
23218 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23219 && test -f ..
/gold
/Makefile \
23220 && test x
$build = x
$host; then
23221 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23222 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23223 && test -f ..
/ld
/Makefile \
23224 && test x
$build = x
$host; then
23225 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23226 elif test -x collect-ld
$build_exeext; then
23227 # Build using linker in the current directory.
23228 gcc_cv_ld
=.
/collect-ld
$build_exeext
23229 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23230 gcc_cv_ld
="$LD_FOR_TARGET"
23232 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23233 set dummy
$LD_FOR_TARGET; ac_word
=$2
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23235 $as_echo_n "checking for $ac_word... " >&6; }
23236 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23237 $as_echo_n "(cached) " >&6
23241 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23245 for as_dir
in $PATH
23248 test -z "$as_dir" && as_dir
=.
23249 for ac_exec_ext
in '' $ac_executable_extensions; do
23250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23251 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23262 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23263 if test -n "$gcc_cv_ld"; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23265 $as_echo "$gcc_cv_ld" >&6; }
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23275 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23276 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23277 # if the PLUGIN_LD is set ld-new, just have it as ld
23278 # as that is the installed named.
23279 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23280 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23281 PLUGIN_LD_SUFFIX
=ld
23284 # Check whether --with-plugin-ld was given.
23285 if test "${with_plugin_ld+set}" = set; then :
23286 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23287 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23288 PLUGIN_LD_SUFFIX
="$withval"
23294 cat >>confdefs.h
<<_ACEOF
23295 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23299 # Check to see if we are using gold instead of ld
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23301 $as_echo_n "checking whether we are using gold... " >&6; }
23303 if test x
$gcc_cv_ld != x
; then
23304 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23305 |
grep "GNU gold" > /dev
/null
; then
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23310 $as_echo "$ld_is_gold" >&6; }
23312 # Check to see if we are using mold instead of ld
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23314 $as_echo_n "checking whether we are using mold... " >&6; }
23316 if test x
$gcc_cv_ld != x
; then
23317 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23318 |
grep "mold" > /dev
/null
; then
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23323 $as_echo "$ld_is_mold" >&6; }
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23327 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23328 # Check to see if default ld is not gold, but gold is
23329 # available and has support for split stack. If gcc was configured
23330 # with gold then no checking is done.
23332 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23334 # For platforms other than powerpc64*, enable as appropriate.
23336 gold_non_default
=no
23337 ld_gold
=`which ${gcc_cv_ld}.gold`
23338 # Make sure this gold has minimal split stack support
23339 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23340 ld_vers
=`$ld_gold --version | sed 1q`
23341 gold_vers
=`echo $ld_vers | sed -n \
23342 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23344 # check that the gold version contains the complete split stack support
23345 # on powerpc64 big and little endian
23347 case "$gold_vers" in
23348 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23350 *) gold_non_default
=no
23356 if test $gold_non_default = yes; then
23358 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23363 $as_echo "$gold_non_default" >&6; }
23365 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23367 case "$ORIGINAL_LD_FOR_TARGET" in
23368 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23369 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23374 $as_echo_n "checking what linker to use... " >&6; }
23375 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23376 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23377 # Single tree build which includes ld. We want to prefer it
23378 # over whatever linker top-level may have detected, since
23379 # we'll use what we're building after installation anyway.
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23381 $as_echo "newly built ld" >&6; }
23383 in_tree_ld_is_elf
=no
23384 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23385 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23386 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23387 in_tree_ld_is_elf
=yes
23388 elif test "$ld_is_gold" = yes; then
23389 in_tree_ld_is_elf
=yes
23391 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
23393 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23394 if test x
$gcc_cv_gld_version != x
; then
23398 case $gcc_cv_gld_version in
23400 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23402 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23403 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23404 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23405 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23408 $as_echo "$gcc_cv_ld" >&6; }
23410 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23411 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23412 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23418 # Figure out what nm we will be using.
23419 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23420 if ${gcc_cv_nm+:} false
; then :
23424 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23425 && test -f ..
/binutils
/Makefile \
23426 && test x
$build = x
$host; then
23427 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23428 elif test -x nm
$build_exeext; then
23429 gcc_cv_nm
=.
/nm
$build_exeext
23430 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23431 gcc_cv_nm
="$NM_FOR_TARGET"
23433 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23434 set dummy
$NM_FOR_TARGET; ac_word
=$2
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23436 $as_echo_n "checking for $ac_word... " >&6; }
23437 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23438 $as_echo_n "(cached) " >&6
23442 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23446 for as_dir
in $PATH
23449 test -z "$as_dir" && as_dir
=.
23450 for ac_exec_ext
in '' $ac_executable_extensions; do
23451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23452 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23463 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23464 if test -n "$gcc_cv_nm"; then
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23466 $as_echo "$gcc_cv_nm" >&6; }
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23477 $as_echo_n "checking what nm to use... " >&6; }
23478 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23479 # Single tree build which includes binutils.
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23481 $as_echo "newly built nm" >&6; }
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23485 $as_echo "$gcc_cv_nm" >&6; }
23489 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23491 case "$ORIGINAL_NM_FOR_TARGET" in
23492 .
/nm | .
/nm
$build_exeext) ;;
23493 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23498 # Figure out what objdump we will be using.
23499 if ${gcc_cv_objdump+:} false
; then :
23503 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23504 && test -f ..
/binutils
/Makefile \
23505 && test x
$build = x
$host; then
23506 # Single tree build which includes binutils.
23507 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23508 elif test -x objdump
$build_exeext; then
23509 gcc_cv_objdump
=.
/objdump
$build_exeext
23510 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23511 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23513 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23514 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23518 $as_echo_n "(cached) " >&6
23520 case $gcc_cv_objdump in
23522 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23526 for as_dir
in $PATH
23529 test -z "$as_dir" && as_dir
=.
23530 for ac_exec_ext
in '' $ac_executable_extensions; do
23531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23532 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23543 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23544 if test -n "$gcc_cv_objdump"; then
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23546 $as_echo "$gcc_cv_objdump" >&6; }
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23557 $as_echo_n "checking what objdump to use... " >&6; }
23558 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23559 # Single tree build which includes binutils.
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23561 $as_echo "newly built objdump" >&6; }
23562 elif test x
$gcc_cv_objdump = x
; then
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23564 $as_echo "not found" >&6; }
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23567 $as_echo "$gcc_cv_objdump" >&6; }
23570 # Figure out what readelf we will be using.
23571 if ${gcc_cv_readelf+:} false
; then :
23575 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23576 && test -f ..
/binutils
/Makefile \
23577 && test x
$build = x
$host; then
23578 # Single tree build which includes binutils.
23579 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23580 elif test -x readelf
$build_exeext; then
23581 gcc_cv_readelf
=.
/readelf
$build_exeext
23582 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23583 gcc_cv_readelf
="$READELF_FOR_TARGET"
23585 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23586 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23588 $as_echo_n "checking for $ac_word... " >&6; }
23589 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23590 $as_echo_n "(cached) " >&6
23592 case $gcc_cv_readelf in
23594 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23598 for as_dir
in $PATH
23601 test -z "$as_dir" && as_dir
=.
23602 for ac_exec_ext
in '' $ac_executable_extensions; do
23603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23604 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23615 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23616 if test -n "$gcc_cv_readelf"; then
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23618 $as_echo "$gcc_cv_readelf" >&6; }
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621 $as_echo "no" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23629 $as_echo_n "checking what readelf to use... " >&6; }
23630 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23631 # Single tree build which includes binutils.
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23633 $as_echo "newly built readelf" >&6; }
23634 elif test x
$gcc_cv_readelf = x
; then
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23636 $as_echo "not found" >&6; }
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23639 $as_echo "$gcc_cv_readelf" >&6; }
23642 # Figure out what otool we will be using.
23643 if ${gcc_cv_otool+:} false
; then :
23647 if test -x otool
$build_exeext; then
23648 gcc_cv_otool
=.
/otool
$build_exeext
23649 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23650 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23652 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23653 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23655 $as_echo_n "checking for $ac_word... " >&6; }
23656 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23657 $as_echo_n "(cached) " >&6
23659 case $gcc_cv_otool in
23661 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23665 for as_dir
in $PATH
23668 test -z "$as_dir" && as_dir
=.
23669 for ac_exec_ext
in '' $ac_executable_extensions; do
23670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23671 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23682 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23683 if test -n "$gcc_cv_otool"; then
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23685 $as_echo "$gcc_cv_otool" >&6; }
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23688 $as_echo "no" >&6; }
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23696 $as_echo_n "checking what otool to use... " >&6; }
23697 if test x
$gcc_cv_otool = x
; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23699 $as_echo "not found" >&6; }
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23702 $as_echo "$gcc_cv_otool" >&6; }
23705 # Figure out the dsymutil we will use.
23706 if ${gcc_cv_dsymutil+:} false
; then :
23710 if test -x "$DEFAULT_DSYMUTIL"; then
23711 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23712 elif test -x dsymutil
$build_exeext; then
23713 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23714 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23715 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23716 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23717 gcc_cv_dsymutil
=$DSYMUTIL
23719 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23720 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23722 $as_echo_n "checking for $ac_word... " >&6; }
23723 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23724 $as_echo_n "(cached) " >&6
23726 case $gcc_cv_dsymutil in
23728 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23732 for as_dir
in $PATH
23735 test -z "$as_dir" && as_dir
=.
23736 for ac_exec_ext
in '' $ac_executable_extensions; do
23737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23738 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23749 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23750 if test -n "$gcc_cv_dsymutil"; then
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23752 $as_echo "$gcc_cv_dsymutil" >&6; }
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755 $as_echo "no" >&6; }
23762 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23764 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23765 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23766 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23770 # Figure out what assembler alignment features are present.
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23772 $as_echo_n "checking assembler flags... " >&6; }
23773 if ${gcc_cv_as_flags+:} false
; then :
23774 $as_echo_n "(cached) " >&6
23777 i
[34567]86-*-linux*)
23778 gcc_cv_as_flags
=--32
23780 x86_64-
*-linux-gnux32)
23781 gcc_cv_as_flags
=--x32
23784 gcc_cv_as_flags
=--64
23786 powerpc
*-*-darwin*)
23787 gcc_cv_as_flags
="-arch ppc"
23790 gcc_cv_as_flags
=" "
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23795 $as_echo "$gcc_cv_as_flags" >&6; }
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23798 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23799 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23800 $as_echo_n "(cached) " >&6
23802 gcc_cv_as_balign_and_p2align
=no
23803 if test x
$gcc_cv_as != x
; then
23804 $as_echo '.balign 4
23805 .p2align 2' > conftest.s
23806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23808 (eval $ac_try) 2>&5
23810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23811 test $ac_status = 0; }; }
23813 gcc_cv_as_balign_and_p2align
=yes
23815 echo "configure: failed program was" >&5
23818 rm -f conftest.o conftest.s
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23822 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23823 if test $gcc_cv_as_balign_and_p2align = yes; then
23825 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23831 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23832 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23833 $as_echo_n "(cached) " >&6
23835 gcc_cv_as_max_skip_p2align
=no
23836 if test x
$gcc_cv_as != x
; then
23837 $as_echo '.p2align 4,,7' > conftest.s
23838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23845 gcc_cv_as_max_skip_p2align
=yes
23847 echo "configure: failed program was" >&5
23850 rm -f conftest.o conftest.s
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23854 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23855 if test $gcc_cv_as_max_skip_p2align = yes; then
23857 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23863 $as_echo_n "checking assembler for .literal16... " >&6; }
23864 if ${gcc_cv_as_literal16+:} false
; then :
23865 $as_echo_n "(cached) " >&6
23867 gcc_cv_as_literal16
=no
23868 if test x
$gcc_cv_as != x
; then
23869 $as_echo '.literal16' > conftest.s
23870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23872 (eval $ac_try) 2>&5
23874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; }; }
23877 gcc_cv_as_literal16
=yes
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_literal16" >&5
23886 $as_echo "$gcc_cv_as_literal16" >&6; }
23887 if test $gcc_cv_as_literal16 = yes; then
23889 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23895 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23896 if ${gcc_cv_as_subsection_m1+:} false
; then :
23897 $as_echo_n "(cached) " >&6
23899 gcc_cv_as_subsection_m1
=no
23900 if test x
$gcc_cv_as != x
; then
23901 $as_echo 'conftest_label1: .word 0
23903 conftest_label2: .word 0
23904 .previous' > conftest.s
23905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23907 (eval $ac_try) 2>&5
23909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23910 test $ac_status = 0; }; }
23912 if test x
$gcc_cv_nm != x
; then
23913 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23914 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23915 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23917 else gcc_cv_as_subsection_m1
=yes
23919 rm -f conftest.nm1 conftest.nm2
23922 echo "configure: failed program was" >&5
23925 rm -f conftest.o conftest.s
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23930 if test $gcc_cv_as_subsection_m1 = yes; then
23932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23938 $as_echo_n "checking assembler for .weak... " >&6; }
23939 if ${gcc_cv_as_weak+:} false
; then :
23940 $as_echo_n "(cached) " >&6
23943 if test x
$gcc_cv_as != x
; then
23944 $as_echo ' .weak foobar' > conftest.s
23945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23947 (eval $ac_try) 2>&5
23949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23950 test $ac_status = 0; }; }
23954 echo "configure: failed program was" >&5
23957 rm -f conftest.o conftest.s
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23961 $as_echo "$gcc_cv_as_weak" >&6; }
23962 if test $gcc_cv_as_weak = yes; then
23964 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23970 $as_echo_n "checking assembler for .weakref... " >&6; }
23971 if ${gcc_cv_as_weakref+:} false
; then :
23972 $as_echo_n "(cached) " >&6
23974 gcc_cv_as_weakref
=no
23975 if test x
$gcc_cv_as != x
; then
23976 $as_echo ' .weakref foobar, barfnot' > conftest.s
23977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23984 gcc_cv_as_weakref
=yes
23986 echo "configure: failed program was" >&5
23989 rm -f conftest.o conftest.s
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23993 $as_echo "$gcc_cv_as_weakref" >&6; }
23994 if test $gcc_cv_as_weakref = yes; then
23996 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24002 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24003 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24004 $as_echo_n "(cached) " >&6
24006 gcc_cv_as_nsubspa_comdat
=no
24007 if test x
$gcc_cv_as != x
; then
24008 $as_echo ' .SPACE $TEXT$
24009 .NSUBSPA $CODE$,COMDAT' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 gcc_cv_as_nsubspa_comdat
=yes
24019 echo "configure: failed program was" >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24026 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24027 if test $gcc_cv_as_nsubspa_comdat = yes; then
24029 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24034 # .hidden needs to be supported in both the assembler and the linker,
24035 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24036 # This is irritatingly difficult to feature test for; we have to check the
24037 # date string after the version number. If we've got an in-tree
24038 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24040 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24041 case "${target}" in
24043 conftest_s
=' .globl foobar,hidden'
24046 conftest_s
=' .hidden foobar
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24051 $as_echo_n "checking assembler for .hidden... " >&6; }
24052 if ${gcc_cv_as_hidden+:} false
; then :
24053 $as_echo_n "(cached) " >&6
24055 gcc_cv_as_hidden
=no
24056 if test x
$gcc_cv_as != x
; then
24057 $as_echo "$conftest_s" > conftest.s
24058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24065 gcc_cv_as_hidden
=yes
24067 echo "configure: failed program was" >&5
24070 rm -f conftest.o conftest.s
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24074 $as_echo "$gcc_cv_as_hidden" >&6; }
24077 case "${target}" in
24079 # Darwin as has some visibility support, though with a different syntax.
24080 gcc_cv_as_hidden
=yes
24084 # gnu_indirect_function type is an extension proposed at
24085 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24086 # selection of function implementation
24087 # Check whether --enable-gnu-indirect-function was given.
24088 if test "${enable_gnu_indirect_function+set}" = set; then :
24089 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24091 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24092 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24095 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24099 case "${target}" in
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24102 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24103 cat > conftest.s
<<EOF
24105 .type foo_resolver, @function
24108 .size foo_resolver, .-foo_resolver
24111 .type foo, %gnu_indirect_function
24112 .set foo, foo_resolver
24115 .type bar, @function
24121 if test x
$gcc_cv_as != x \
24122 && test x
$gcc_cv_ld != x \
24123 && test x
$gcc_cv_readelf != x \
24124 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24125 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24126 && $gcc_cv_readelf --relocs --wide conftest \
24127 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24128 enable_gnu_indirect_function
=yes
24130 rm -f conftest conftest.o conftest.s
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24132 $as_echo "$enable_gnu_indirect_function" >&6; }
24136 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24138 cat >>confdefs.h
<<_ACEOF
24139 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24144 if test $in_tree_ld != yes ; then
24145 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24146 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24147 if test x
"$ld_is_gold" = xyes
; then
24148 # GNU gold --version looks like this:
24150 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24152 # We extract the binutils version which is more familiar and specific
24153 # than the gold version.
24154 ld_vers
=`echo $ld_ver | sed -n \
24155 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24157 # GNU ld --version looks like this:
24159 # GNU ld (GNU Binutils) 2.21.51.20110225
24160 ld_vers
=`echo $ld_ver | sed -n \
24161 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24163 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'`
24164 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24165 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24166 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24168 case "${target}" in
24170 # Solaris 2 ld -V output looks like this for a regular version:
24172 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24174 # but test versions add stuff at the end:
24176 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24178 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24179 # numbers can be used in ld.so.1 feature checks even if a different
24180 # linker is configured.
24181 ld_ver
=`$gcc_cv_ld -V 2>&1`
24182 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24183 ld_vers
=`echo $ld_ver | sed -n \
24184 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24185 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24186 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24194 $as_echo_n "checking linker for .hidden support... " >&6; }
24195 if ${gcc_cv_ld_hidden+:} false
; then :
24196 $as_echo_n "(cached) " >&6
24198 if test $in_tree_ld = yes ; then
24199 gcc_cv_ld_hidden
=no
24200 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 \
24201 && test $in_tree_ld_is_elf = yes; then
24202 gcc_cv_ld_hidden
=yes
24205 gcc_cv_ld_hidden
=yes
24206 if test x
"$ld_is_gold" = xyes
; then
24208 elif test x
"$ld_is_mold" = xyes
; then
24210 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24211 if test 0"$ld_date" -lt 20020404; then
24212 if test -n "$ld_date"; then
24213 # If there was date string, but was earlier than 2002-04-04, fail
24214 gcc_cv_ld_hidden
=no
24215 elif test -z "$ld_vers"; then
24216 # If there was no date string nor ld version number, something is wrong
24217 gcc_cv_ld_hidden
=no
24219 test -z "$ld_vers_patch" && ld_vers_patch
=0
24220 if test "$ld_vers_major" -lt 2; then
24221 gcc_cv_ld_hidden
=no
24222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24223 gcc_cv_ld_hidden
="no"
24224 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24225 gcc_cv_ld_hidden
=no
24230 case "${target}" in
24232 gcc_cv_ld_hidden
=yes
24235 # Darwin ld has some visibility support.
24236 gcc_cv_ld_hidden
=yes
24238 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24239 gcc_cv_ld_hidden
=yes
24242 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24243 # .symbolic was only added in Solaris 9 12/02.
24244 gcc_cv_ld_hidden
=yes
24247 gcc_cv_ld_hidden
=no
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24254 $as_echo "$gcc_cv_ld_hidden" >&6; }
24255 libgcc_visibility
=no
24258 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24259 libgcc_visibility
=yes
24261 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24266 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24267 gcc_cv_ld_ro_rw_mix
=unknown
24268 if test $in_tree_ld = yes ; then
24269 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 \
24270 && test $in_tree_ld_is_elf = yes; then
24271 gcc_cv_ld_ro_rw_mix
=read-write
24273 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24274 echo '.section myfoosect, "a"' > conftest1.s
24275 echo '.section myfoosect, "aw"' > conftest2.s
24276 echo '.byte 1' >> conftest2.s
24277 echo '.section myfoosect, "a"' > conftest3.s
24278 echo '.byte 0' >> conftest3.s
24279 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24280 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24281 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24282 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24283 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24284 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24285 | sed -e '/myfoosect/!d' -e N`
24286 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24287 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24288 gcc_cv_ld_ro_rw_mix
=read-only
24290 gcc_cv_ld_ro_rw_mix
=read-write
24294 rm -f conftest.
* conftest
[123].
*
24296 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24298 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24302 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24304 # Check whether --enable-initfini-array was given.
24305 if test "${enable_initfini_array+set}" = set; then :
24306 enableval
=$enable_initfini_array;
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24310 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24311 if ${gcc_cv_initfini_array+:} false
; then :
24312 $as_echo_n "(cached) " >&6
24314 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24315 case "${target}" in
24317 if test "$cross_compiling" = yes; then :
24318 gcc_cv_initfini_array
=no
24320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24321 /* end confdefs.h. */
24324 #error Not an ELF OS
24326 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24327 if it can be used. */
24329 int main (void) { return x; }
24330 int foo (void) { x = 0; }
24331 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24334 if ac_fn_cxx_try_run
"$LINENO"; then :
24335 gcc_cv_initfini_array
=yes
24337 gcc_cv_initfini_array
=no
24339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24344 gcc_cv_initfini_array
=no
24345 if test $in_tree_ld = yes ; then
24346 if test "$gcc_cv_gld_major_version" -eq 2 \
24347 -a "$gcc_cv_gld_minor_version" -ge 22 \
24348 -o "$gcc_cv_gld_major_version" -gt 2 \
24349 && test $in_tree_ld_is_elf = yes; then
24350 gcc_cv_initfini_array
=yes
24352 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24353 case $target:$gas in
24356 sh_type
='%progbits'
24358 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24360 sh_type
='@progbits'
24362 sparc
*-*-solaris2*:no
)
24364 sh_type
='#progbits'
24368 case "$target:$gnu_ld" in
24370 cat > conftest.s
<<EOF
24371 .section .dtors,$sh_flags,$sh_type
24373 .byte 'A', 'A', 'A', 'A'
24374 .section .ctors,$sh_flags,$sh_type
24376 .byte 'B', 'B', 'B', 'B'
24377 .section .fini_array.65530,$sh_flags,$sh_type
24379 .byte 'C', 'C', 'C', 'C'
24380 .section .init_array.65530,$sh_flags,$sh_type
24382 .byte 'D', 'D', 'D', 'D'
24383 .section .dtors.64528,$sh_flags,$sh_type
24385 .byte 'E', 'E', 'E', 'E'
24386 .section .ctors.64528,$sh_flags,$sh_type
24388 .byte 'F', 'F', 'F', 'F'
24389 .section .fini_array.01005,$sh_flags,$sh_type
24391 .byte 'G', 'G', 'G', 'G'
24392 .section .init_array.01005,$sh_flags,$sh_type
24394 .byte 'H', 'H', 'H', 'H'
24399 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24400 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24401 && $gcc_cv_objdump -s -j .init_array conftest \
24402 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24403 && $gcc_cv_objdump -s -j .fini_array conftest \
24404 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24405 gcc_cv_initfini_array
=yes
24409 # When Solaris ld added constructor priority support, it was
24410 # decided to only handle .init_array.N/.fini_array.N since
24411 # there was no need for backwards compatibility with
24412 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24413 # sections with correct execution order resp. to
24414 # .init_array/.fini_array, while gld merges them into
24415 # .init_array/.fini_array.
24416 cat > conftest.s
<<EOF
24417 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24419 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24420 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24422 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24423 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24425 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24426 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24428 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24433 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24434 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24435 && $gcc_cv_objdump -s -j .init_array conftest \
24436 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24437 && $gcc_cv_objdump -s -j .fini_array conftest \
24438 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24439 gcc_cv_initfini_array
=yes
24443 rm -f conftest conftest.
*
24445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24449 # error Not an ELF OS
24451 #include <stdlib.h>
24452 #if defined __GLIBC_PREREQ
24453 # if __GLIBC_PREREQ (2, 4)
24455 # error GLIBC 2.4 required
24458 # if defined __sun__ && defined __svr4__
24459 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24461 # error The C library not known to support .init_array/.fini_array
24466 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24469 gcc_cv_initfini_array
=no
24471 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24474 case "${target}" in
24475 aarch64
*-linux-gnu*)
24476 # AArch64 postdates glibc support for .init_array/.fini_array,
24477 # so we don't need the preprocessor test above.
24478 gcc_cv_initfini_array
=yes
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24483 $as_echo_n "checking cross compile... guessing... " >&6; }
24484 gcc_cv_initfini_array
=no
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24490 $as_echo "$gcc_cv_initfini_array" >&6; }
24491 enable_initfini_array
=$gcc_cv_initfini_array
24496 cat >>confdefs.h
<<_ACEOF
24497 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24502 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24503 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24504 # these directives, even when they appear to accept them.
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24506 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24507 if ${gcc_cv_as_leb128+:} false
; then :
24508 $as_echo_n "(cached) " >&6
24510 gcc_cv_as_leb128
=no
24511 if test x
$gcc_cv_as != x
; then
24518 .uleb128 0x8000000000000000
24520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24522 (eval $ac_try) 2>&5
24524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24525 test $ac_status = 0; }; }
24528 if test "x$gcc_cv_objdump" != x
; then
24529 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24530 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24531 gcc_cv_as_leb128
=yes
24533 elif test "x$gcc_cv_otool" != x
; then
24534 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24535 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24536 gcc_cv_as_leb128
=yes
24539 # play safe, assume the assembler is broken.
24544 echo "configure: failed program was" >&5
24547 rm -f conftest.o conftest.s
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24551 $as_echo "$gcc_cv_as_leb128" >&6; }
24552 if test $gcc_cv_as_leb128 = yes; then
24554 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24557 if test $gcc_cv_as_leb128 != yes; then
24559 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24563 # Determine if an .eh_frame section is read-only.
24564 gcc_fn_eh_frame_ro
() {
24565 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24566 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24567 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24570 # Check if we have assembler support for unwind directives.
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24572 $as_echo_n "checking assembler for cfi directives... " >&6; }
24573 if ${gcc_cv_as_cfi_directive+:} false
; then :
24574 $as_echo_n "(cached) " >&6
24576 gcc_cv_as_cfi_directive
=no
24577 if test x
$gcc_cv_as != x
; then
24583 .cfi_escape 1, 2, 3, 4, 5
24584 .cfi_endproc' > conftest.s
24585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24594 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24595 # read-only and read-write sections, we need to make sure that the
24596 # assembler used emits read-write .eh_frame sections.
24597 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24598 gcc_cv_as_cfi_directive
=yes
24599 elif test "x$gcc_cv_objdump" = x
; then
24600 # No objdump, err on the side of caution.
24601 gcc_cv_as_cfi_directive
=no
24603 if test x
$gas = xyes
; then
24611 sparc
*-*-solaris2.
*)
24612 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24613 if gcc_fn_eh_frame_ro
$as_32_opt \
24614 || gcc_fn_eh_frame_ro
$as_64_opt; then
24615 gcc_cv_as_cfi_directive
=no
24617 gcc_cv_as_cfi_directive
=yes
24620 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24621 # On Solaris/x86, make sure that GCC and assembler agree on using
24622 # read-only .eh_frame sections for 64-bit.
24623 if gcc_fn_eh_frame_ro
$as_32_opt; then
24624 gcc_cv_as_cfi_directive
=no
24625 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24626 gcc_cv_as_cfi_directive
=yes
24628 gcc_cv_as_cfi_directive
=no
24635 gcc_cv_as_cfi_directive
=yes
24639 echo "configure: failed program was" >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24646 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24649 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24651 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24652 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24653 $as_echo_n "(cached) " >&6
24655 gcc_cv_as_cfi_advance_working
=no
24656 if test x
$gcc_cv_as != x
; then
24659 .cfi_adjust_cfa_offset 64
24661 .cfi_adjust_cfa_offset 128
24662 .cfi_endproc' > conftest.s
24663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }
24671 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24672 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24673 gcc_cv_as_cfi_advance_working
=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_advance_working" >&5
24684 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24688 # no objdump, err on the side of caution
24689 gcc_cv_as_cfi_advance_working
=no
24693 cat >>confdefs.h
<<_ACEOF
24694 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24695 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24701 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24702 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24703 $as_echo_n "(cached) " >&6
24705 gcc_cv_as_cfi_personality_directive
=no
24706 if test x
$gcc_cv_as != x
; then
24709 .cfi_personality 0, symbol
24710 .cfi_endproc' > conftest.s
24711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24718 gcc_cv_as_cfi_personality_directive
=yes
24720 echo "configure: failed program was" >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24727 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24731 cat >>confdefs.h
<<_ACEOF
24732 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24737 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24738 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24739 $as_echo_n "(cached) " >&6
24741 gcc_cv_as_cfi_sections_directive
=no
24742 if test x
$gcc_cv_as != x
; then
24744 .cfi_sections .debug_frame, .eh_frame
24746 .cfi_endproc' > conftest.s
24747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24755 win32 | pe | cygwin
* | mingw32
*)
24756 # Need to check that we generated the correct relocation for the
24757 # .debug_frame section. This was fixed for binutils 2.21.
24758 gcc_cv_as_cfi_sections_directive
=no
24759 if test "x$gcc_cv_objdump" != x
; then
24760 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24761 grep secrel
> /dev
/null
; then
24762 gcc_cv_as_cfi_sections_directive
=yes
24767 gcc_cv_as_cfi_sections_directive
=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24778 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24783 cat >>confdefs.h
<<_ACEOF
24784 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24788 # GAS versions up to and including 2.11.0 may mis-optimize
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24791 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24792 if ${gcc_cv_as_eh_frame+:} false
; then :
24793 $as_echo_n "(cached) " >&6
24795 gcc_cv_as_eh_frame
=no
24796 if test x
$gcc_cv_as != x
; then
24803 .section .eh_frame,"aw",@progbits
24805 .4byte .LECIE1-.LSCIE1
24819 .4byte .LEFDE1-.LASFDE1
24821 .4byte .LASFDE1-__FRAME_BEGIN__
24828 .LEFDE1:' > conftest.s
24829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24836 cat > conftest.lit
<<EOF
24837 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24838 0010 01000000 12000000 18000000 00000000 ................
24839 0020 08000000 04080000 0044 .........D
24841 cat > conftest.big
<<EOF
24842 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24843 0010 00000001 00000012 00000018 00000000 ................
24844 0020 00000008 04000000 0844 .........D
24846 # If the assembler didn't choke, and we can objdump,
24847 # and we got the correct data, then succeed.
24848 # The text in the here-document typically retains its unix-style line
24849 # endings, while the output of objdump will use host line endings.
24850 # Therefore, use diff -b for the comparisons.
24851 if test x
$gcc_cv_objdump != x \
24852 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24853 |
tail -3 > conftest.got \
24854 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24855 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24857 gcc_cv_as_eh_frame
=yes
24858 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }; then
24864 gcc_cv_as_eh_frame
=buggy
24866 # Uh oh, what do we do now?
24867 gcc_cv_as_eh_frame
=no
24870 echo "configure: failed program was" >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24877 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24881 if test $gcc_cv_as_eh_frame = buggy
; then
24883 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24887 # Test if the assembler supports the section flag 'e' or #exclude for
24888 # specifying an excluded section.
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24890 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24891 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24892 $as_echo_n "(cached) " >&6
24894 gcc_cv_as_section_exclude_e
=no
24895 if test x
$gcc_cv_as != x
; then
24896 $as_echo '.section foo1,"e"
24897 .byte 0,0,0,0' > conftest.s
24898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24905 gcc_cv_as_section_exclude_e
=yes
24907 echo "configure: failed program was" >&5
24910 rm -f conftest.o conftest.s
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24914 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24917 if test $gcc_cv_as_section_exclude_e = no
; then
24918 case "${target}" in
24919 # Solaris as uses #exclude instead.
24921 case "${target}" in
24922 sparc
*-*-solaris2*)
24923 conftest_s
='.section "foo1", #exclude'
24925 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24926 conftest_s
='.section foo1, #exclude'
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24932 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24933 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24934 $as_echo_n "(cached) " >&6
24936 gcc_cv_as_section_exclude_hash
=no
24937 if test x
$gcc_cv_as != x
; then
24938 $as_echo "$conftest_s
24939 .byte 0,0,0,0" > conftest.s
24940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24947 gcc_cv_as_section_exclude_hash
=yes
24949 echo "configure: failed program was" >&5
24952 rm -f conftest.o conftest.s
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24956 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24961 cat >>confdefs.h
<<_ACEOF
24962 #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`
24966 # Test if the assembler supports the section flag 'R' for specifying
24967 # section with SHF_GNU_RETAIN.
24968 case "${target}" in
24969 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24970 # assembler supports the section flag 'R', it doesn't mean that
24971 # Solairs ld supports it.
24973 gcc_cv_as_shf_gnu_retain
=no
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24977 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24978 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24979 $as_echo_n "(cached) " >&6
24981 gcc_cv_as_shf_gnu_retain
=no
24982 if test x
$gcc_cv_as != x
; then
24983 $as_echo '.section .foo,"awR",%progbits
24984 .byte 0' > conftest.s
24985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24987 (eval $ac_try) 2>&5
24989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24990 test $ac_status = 0; }; }
24992 gcc_cv_as_shf_gnu_retain
=yes
24994 echo "configure: failed program was" >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25001 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25007 cat >>confdefs.h
<<_ACEOF
25008 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25012 # Test if the assembler supports the section flag 'o' for specifying
25013 # section with link-order.
25014 case "${target}" in
25015 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25016 # assembler supports the section flag 'o', it doesn't mean that
25017 # Solairs ld supports it.
25019 gcc_cv_as_section_link_order
=no
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25023 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25024 if ${gcc_cv_as_section_link_order+:} false
; then :
25025 $as_echo_n "(cached) " >&6
25027 gcc_cv_as_section_link_order
=no
25028 if test x
$gcc_cv_as != x
; then
25029 $as_echo '.section .foo,"a"
25031 .section __patchable_function_entries,"awo",%progbits,.foo
25032 .byte 0' > conftest.s
25033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25040 gcc_cv_as_section_link_order
=yes
25042 echo "configure: failed program was" >&5
25045 rm -f conftest.o conftest.s
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25049 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25055 cat >>confdefs.h
<<_ACEOF
25056 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25061 $as_echo_n "checking assembler for section merging support... " >&6; }
25062 if ${gcc_cv_as_shf_merge+:} false
; then :
25063 $as_echo_n "(cached) " >&6
25065 gcc_cv_as_shf_merge
=no
25066 if test x
$gcc_cv_as != x
; then
25067 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25070 (eval $ac_try) 2>&5
25072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25073 test $ac_status = 0; }; }
25075 gcc_cv_as_shf_merge
=yes
25077 echo "configure: failed program was" >&5
25080 rm -f conftest.o conftest.s
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25084 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25087 if test $gcc_cv_as_shf_merge = no
; then
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25089 $as_echo_n "checking assembler for section merging support... " >&6; }
25090 if ${gcc_cv_as_shf_merge+:} false
; then :
25091 $as_echo_n "(cached) " >&6
25093 gcc_cv_as_shf_merge
=no
25094 if test x
$gcc_cv_as != x
; then
25095 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25103 gcc_cv_as_shf_merge
=yes
25105 echo "configure: failed program was" >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25112 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25117 cat >>confdefs.h
<<_ACEOF
25118 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25122 gcc_cv_ld_aligned_shf_merge
=yes
25124 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25126 sparc
*-*-solaris2.11
*)
25127 if test x
"$gnu_ld" = xno \
25128 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25129 gcc_cv_ld_aligned_shf_merge
=no
25134 cat >>confdefs.h
<<_ACEOF
25135 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25140 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25141 if ${gcc_cv_as_comdat_group+:} false
; then :
25142 $as_echo_n "(cached) " >&6
25144 gcc_cv_as_comdat_group
=no
25145 if test x
$gcc_cv_as != x
; then
25146 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25149 (eval $ac_try) 2>&5
25151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152 test $ac_status = 0; }; }
25154 gcc_cv_as_comdat_group
=yes
25156 echo "configure: failed program was" >&5
25159 rm -f conftest.o conftest.s
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25163 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25166 if test $gcc_cv_as_comdat_group = yes; then
25167 gcc_cv_as_comdat_group_percent
=no
25168 gcc_cv_as_comdat_group_group
=no
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25171 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25172 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25173 $as_echo_n "(cached) " >&6
25175 gcc_cv_as_comdat_group_percent
=no
25176 if test x
$gcc_cv_as != x
; then
25177 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25178 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25180 (eval $ac_try) 2>&5
25182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }; }
25185 gcc_cv_as_comdat_group_percent
=yes
25187 echo "configure: failed program was" >&5
25190 rm -f conftest.o conftest.s
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25194 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25197 if test $gcc_cv_as_comdat_group_percent = yes; then
25198 gcc_cv_as_comdat_group_group
=no
25200 case "${target}" in
25201 # Sun as uses a completely different syntax.
25203 case "${target}" in
25204 sparc
*-*-solaris2*)
25206 .group foo,".text%foo",#comdat
25207 .section ".text%foo", #alloc,#execinstr,#progbits
25212 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25214 .group foo,.text%foo,#comdat
25215 .section .text%foo, "ax", @progbits
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25222 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25223 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25224 $as_echo_n "(cached) " >&6
25226 gcc_cv_as_comdat_group_group
=no
25227 if test x
$gcc_cv_as != x
; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25236 gcc_cv_as_comdat_group_group
=yes
25238 echo "configure: failed program was" >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25245 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25250 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25251 gcc_cv_as_comdat_group_group
=no
25255 if test x
"$ld_is_gold" = xyes
; then
25257 elif test x
"$ld_is_mold" = xyes
; then
25259 elif test $in_tree_ld = yes ; then
25261 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 \
25262 && test $in_tree_ld_is_elf = yes; then
25265 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25267 if test 0"$ld_date" -lt 20050308; then
25268 if test -n "$ld_date"; then
25269 # If there was date string, but was earlier than 2005-03-08, fail
25271 elif test "$ld_vers_major" -lt 2; then
25273 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25278 case "${target}" in
25279 *-*-solaris2.1
[1-9]*)
25281 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25282 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25285 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25286 # least ld version 1.2267.
25287 if test "$ld_vers_major" -gt 1; then
25289 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25291 elif test "$ld_vers_minor" -ge 2267; then
25296 # Assume linkers other than GNU ld don't support COMDAT group.
25301 # Allow overriding the automatic COMDAT group tests above.
25302 # Check whether --enable-comdat was given.
25303 if test "${enable_comdat+set}" = set; then :
25304 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25307 if test $comdat_group = no
; then
25308 gcc_cv_as_comdat_group
=no
25309 gcc_cv_as_comdat_group_percent
=no
25310 gcc_cv_as_comdat_group_group
=no
25313 cat >>confdefs.h
<<_ACEOF
25314 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25315 || test $gcc_cv_as_comdat_group_percent = yes \
25316 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25320 # Restrict this test to Solaris/x86: other targets define this statically.
25321 case "${target}" in
25322 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25324 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25325 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25326 hidden_linkonce
=yes
25328 case "${target}" in
25329 # Full support for hidden thunks in linkonce sections only appeared in
25330 # Solaris 11/OpenSolaris.
25331 *-*-solaris2.1
[1-9]*)
25332 hidden_linkonce
=yes
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25340 $as_echo "$hidden_linkonce" >&6; }
25342 cat >>confdefs.h
<<_ACEOF
25343 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25350 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25351 if ${gcc_cv_as_is_stmt+:} false
; then :
25352 $as_echo_n "(cached) " >&6
25354 gcc_cv_as_is_stmt
=no
25355 if test x
$gcc_cv_as != x
; then
25358 .loc 1 1 0 is_stmt 1' > conftest.s
25359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25361 (eval $ac_try) 2>&5
25363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25364 test $ac_status = 0; }; }
25366 gcc_cv_as_is_stmt
=yes
25368 echo "configure: failed program was" >&5
25371 rm -f conftest.o conftest.s
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25375 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25376 if test $gcc_cv_as_is_stmt = yes; then
25378 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25384 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25385 if ${gcc_cv_as_discriminator+:} false
; then :
25386 $as_echo_n "(cached) " >&6
25388 gcc_cv_as_discriminator
=no
25389 if test x
$gcc_cv_as != x
; then
25392 .loc 1 1 0 discriminator 1' > conftest.s
25393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }
25400 gcc_cv_as_discriminator
=yes
25402 echo "configure: failed program was" >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25409 $as_echo "$gcc_cv_as_discriminator" >&6; }
25410 if test $gcc_cv_as_discriminator = yes; then
25412 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25417 # Catch the newlib flag of the same name so we can gate GCC features on it.
25418 # Check whether --enable-newlib-nano-formatted-io was given.
25419 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25420 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25424 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25430 # Thread-local storage - the check is heavily parameterized.
25436 .section ".tdata","awT",@progbits
25439 ldq $27,__tls_get_addr($29) !literal!1
25440 lda $16,foo($29) !tlsgd!1
25441 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25442 ldq $27,__tls_get_addr($29) !literal!2
25443 lda $16,foo($29) !tlsldm!2
25444 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25445 ldq $1,foo($29) !gotdtprel
25446 ldah $2,foo($29) !dtprelhi
25447 lda $3,foo($2) !dtprello
25448 lda $4,foo($29) !dtprel
25449 ldq $1,foo($29) !gottprel
25450 ldah $2,foo($29) !tprelhi
25451 lda $3,foo($2) !tprello
25452 lda $4,foo($29) !tprel'
25453 tls_as_opt
=--fatal-warnings
25457 add_s r0,r0, @foo@tpoff'
25459 cris-
*-*|crisv32-
*-*)
25461 .section ".tdata","awT",@progbits
25466 tls_as_opt
=--fatal-warnings
25470 .section ".tdata","awT",@progbits
25473 call #gettlsoff(x)'
25480 .section ".tdata","awT",@progbits
25484 addil LT%foo-$tls_gdidx$,gp
25485 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25488 addil LT%foo-$tls_ldidx$,gp
25490 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25491 addil LR%foo-$tls_dtpoff$,%ret0
25492 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25494 addil LT%foo-$tls_ieoff$,gp
25495 ldw RT%foo-$tls_ieoff$(%r1),%t2
25498 addil LR%foo-$tls_leoff$,%t1
25499 ldo RR%foo-$tls_leoff$(%r1),%t2'
25500 tls_as_opt
=--fatal-warnings
25504 .section ".tdata","awT",%progbits
25507 .word foo(gottpoff)
25513 i
[34567]86-*-* | x86_64-
*-*)
25515 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25522 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25524 .section .tdata,"awt",@progbits'
25527 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25531 .section ".tdata","awT",@progbits'
25533 tls_as_opt
="--fatal-warnings"
25537 if test x
$on_solaris = xyes
; then
25539 yes) tls_as_opt
="$tls_as_opt --32" ;;
25542 conftest_s
="$conftest_s
25546 leal foo@tlsgd(,%ebx,1), %eax
25547 leal foo@tlsldm(%ebx), %eax
25548 leal foo@dtpoff(%eax), %edx
25549 movl foo@gottpoff(%ebx), %eax
25550 subl foo@gottpoff(%ebx), %eax
25551 addl foo@gotntpoff(%ebx), %eax
25552 movl foo@indntpoff, %eax
25553 movl \$foo@tpoff, %eax
25554 subl \$foo@tpoff, %eax
25555 leal foo@ntpoff(%ecx), %eax"
25558 if test x
$on_solaris = xyes
; then
25560 yes) tls_as_opt
="$tls_as_opt --64" ;;
25561 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25564 conftest_s
="$conftest_s
25568 leaq foo@tlsgd(%rip), %rdi
25569 leaq foo@tlsld(%rip), %rdi
25570 leaq foo@dtpoff(%rax), %rdx
25571 movq foo@gottpoff(%rip), %rax
25572 movq \$foo@tpoff, %rax"
25578 .section ".tdata","awT",@progbits
25581 addl r16 = @ltoff(@dtpmod(foo#)), gp
25582 addl r17 = @ltoff(@dtprel(foo#)), gp
25583 addl r18 = @ltoff(@tprel(foo#)), gp
25584 addl r19 = @dtprel(foo#), gp
25585 adds r21 = @dtprel(foo#), r13
25586 movl r23 = @dtprel(foo#)
25587 addl r20 = @tprel(foo#), gp
25588 adds r22 = @tprel(foo#), r13
25589 movl r24 = @tprel(foo#)'
25590 tls_as_opt
=--fatal-warnings
25594 .section .tdata,"awT",@progbits
25601 tls_as_opt
='--fatal-warnings'
25605 .section .tdata,"awT",@progbits
25609 addik r5,r20,x@TLSGD
25610 addik r5,r20,x@TLSLDM'
25611 tls_as_opt
='--fatal-warnings'
25615 .section .tdata,"awT",@progbits
25619 addiu $4, $28, %tlsgd(x)
25620 addiu $4, $28, %tlsldm(x)
25621 lui $4, %dtprel_hi(x)
25622 addiu $4, $4, %dtprel_lo(x)
25623 lw $4, %gottprel(x)($28)
25624 lui $4, %tprel_hi(x)
25625 addiu $4, $4, %tprel_lo(x)'
25626 tls_as_opt
='-32 --fatal-warnings'
25630 .section .tdata,"awT",@progbits
25635 move.l x@TLSGD(%a5),%a0
25636 move.l x@TLSLDM(%a5),%a0
25637 move.l x@TLSLDO(%a5),%a0
25638 move.l x@TLSIE(%a5),%a0
25639 move.l x@TLSLE(%a5),%a0'
25640 tls_as_opt
='--fatal-warnings'
25644 .section ".tdata","awT",@progbits'
25645 tls_as_opt
="--fatal-warnings"
25649 .section ".tdata","awT",%progbits
25653 add x0, x0, #:tlsgd_lo12:x
25656 tls_as_opt
='--fatal-warnings'
25660 .section ".tdata","awT",@progbits
25663 l.movhi r3, tpoffha(foo)
25665 l.lwz r4, tpofflo(foo)(r3)'
25666 tls_as_opt
=--fatal-warnings
25670 .extern __get_tpointer
25686 .section ".tdata","awT",@progbits
25694 addi 3,2,ld0@got@tlsgd
25700 addi 3,2,x1@got@tlsld
25706 addis 9,3,x2@dtprel@ha
25707 addi 9,9,x2@dtprel@l
25710 ld 9,x3@got@dtprel(2)
25714 tls_as_opt
="-a64 --fatal-warnings"
25718 .section ".tdata","awT",@progbits
25726 addi 3,31,ld0@got@tlsgd
25728 addi 3,31,x1@got@tlsld
25731 addis 9,3,x2@dtprel@ha
25732 addi 9,9,x2@dtprel@l
25733 lwz 9,x3@got@tprel(31)
25736 addis 9,2,x2@tprel@ha
25737 addi 9,9,x2@tprel@l'
25738 tls_as_opt
="-a32 --fatal-warnings"
25742 .section .tdata,"awT",@progbits
25746 call __tls_get_addr'
25747 tls_as_opt
='--fatal-warnings'
25751 .section ".tdata","awT",@progbits
25758 .long foo@GOTNTPOFF
25759 .long foo@INDNTPOFF
25760 l %r1,foo@GOTNTPOFF(%r12)
25761 l %r1,0(%r1):tls_load:foo
25762 bas %r14,0(%r1,%r13):tls_gdcall:foo
25763 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25764 tls_as_opt
="-m31 --fatal-warnings"
25768 .section ".tdata","awT",@progbits
25775 .quad foo@GOTNTPOFF
25776 lg %r1,foo@GOTNTPOFF(%r12)
25777 larl %r1,foo@INDNTPOFF
25778 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25779 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25780 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25782 sh-
*-* | sh
[123456789lbe
]*-*-*)
25784 .section ".tdata","awT",@progbits
25792 tls_as_opt
=--fatal-warnings
25796 sparc
*-sun-solaris2.
*)
25803 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25805 .section ".tdata",#alloc,#write,#tls'
25808 .section ".tdata","awT",@progbits'
25809 tls_as_opt
="-32 --fatal-warnings"
25811 conftest_s
="$conftest_s
25814 sethi %tgd_hi22(foo), %o0
25815 add %o0, %tgd_lo10(foo), %o1
25816 add %l7, %o1, %o0, %tgd_add(foo)
25817 call __tls_get_addr, %tgd_call(foo)
25818 sethi %tldm_hi22(foo), %l1
25819 add %l1, %tldm_lo10(foo), %l2
25820 add %l7, %l2, %o0, %tldm_add(foo)
25821 call __tls_get_addr, %tldm_call(foo)
25822 sethi %tldo_hix22(foo), %l3
25823 xor %l3, %tldo_lox10(foo), %l4
25824 add %o0, %l4, %l5, %tldo_add(foo)
25825 sethi %tie_hi22(foo), %o3
25826 add %o3, %tie_lo10(foo), %o3
25827 ld [%l7 + %o3], %o2, %tie_ld(foo)
25828 add %g7, %o2, %o4, %tie_add(foo)
25829 sethi %tle_hix22(foo), %l1
25830 xor %l1, %tle_lox10(foo), %o5
25831 ld [%g7 + %o5], %o1"
25835 .section ".tdata","awT",@progbits
25838 movi a8, foo@TLSFUNC
25839 movi a10, foo@TLSARG
25840 callx8.tls a8, foo@TLSCALL'
25844 if test "x$enable_tls" = xno
; then
25845 : # TLS explicitly disabled.
25846 elif test "x$enable_tls" = xyes
; then
25847 set_have_as_tls
=yes # TLS explicitly enabled.
25848 elif test -z "$conftest_s"; then
25849 : # If we don't have a check, assume no support.
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25853 if ${gcc_cv_as_tls+:} false
; then :
25854 $as_echo_n "(cached) " >&6
25857 if test x
$gcc_cv_as != x
; then
25858 $as_echo "$conftest_s" > conftest.s
25859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25868 echo "configure: failed program was" >&5
25871 rm -f conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25875 $as_echo "$gcc_cv_as_tls" >&6; }
25876 if test $gcc_cv_as_tls = yes; then
25877 set_have_as_tls
=yes
25881 if test $set_have_as_tls = yes ; then
25883 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25887 # Target-specific assembler checks.
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25890 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25891 gcc_cv_ld_static_dynamic
=no
25892 gcc_cv_ld_static_option
='-Bstatic'
25893 gcc_cv_ld_dynamic_option
='-Bdynamic'
25894 if test $in_tree_ld = yes ; then
25895 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
25896 gcc_cv_ld_static_dynamic
=yes
25898 elif test x
$gcc_cv_ld != x
; then
25899 # Check if linker supports -Bstatic/-Bdynamic option
25900 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25901 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25902 gcc_cv_ld_static_dynamic
=yes
25905 # AIX ld uses -b flags
25906 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25907 gcc_cv_ld_static_dynamic
=yes
25908 gcc_cv_ld_static_option
="-bstatic"
25909 gcc_cv_ld_dynamic_option
="-bdynamic"
25911 # HP-UX ld uses -a flags to select between shared and archive.
25913 if test x
"$gnu_ld" = xno
; then
25914 gcc_cv_ld_static_dynamic
=yes
25915 gcc_cv_ld_static_option
="-aarchive_shared"
25916 gcc_cv_ld_dynamic_option
="-adefault"
25919 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25921 gcc_cv_ld_static_dynamic
=yes
25926 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25928 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25931 cat >>confdefs.h
<<_ACEOF
25932 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25936 cat >>confdefs.h
<<_ACEOF
25937 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25942 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25945 $as_echo_n "checking linker --version-script option... " >&6; }
25946 gcc_cv_ld_version_script
=no
25947 ld_version_script_option
=''
25948 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25949 gcc_cv_ld_version_script
=yes
25950 ld_version_script_option
='--version-script'
25951 elif test x
$gcc_cv_ld != x
; then
25953 # Solaris 2 ld always supports -M. It also supports a subset of
25954 # --version-script since Solaris 11.4, but requires
25955 # -z gnu-version-script-compat to activate.
25957 gcc_cv_ld_version_script
=yes
25958 ld_version_script_option
='-M'
25962 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25964 $as_echo "$gcc_cv_ld_version_script" >&6; }
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25968 $as_echo_n "checking linker soname option... " >&6; }
25969 gcc_cv_ld_soname
=no
25970 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25971 gcc_cv_ld_soname
=yes
25972 ld_soname_option
='-soname'
25973 elif test x
$gcc_cv_ld != x
; then
25976 gcc_cv_ld_soname
=yes
25977 ld_soname_option
='-install_name'
25979 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25980 # ld compatiblity since some Solaris 10 update.
25982 gcc_cv_ld_soname
=yes
25983 ld_soname_option
='-h'
25987 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25989 $as_echo "$gcc_cv_ld_soname" >&6; }
25992 if test x
"$demangler_in_ld" = xyes
; then
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25994 $as_echo_n "checking linker --demangle support... " >&6; }
25995 gcc_cv_ld_demangle
=no
25996 if test $in_tree_ld = yes; then
25997 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 \
25998 gcc_cv_ld_demangle
=yes
26000 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26001 # Check if the GNU linker supports --demangle option
26002 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26003 gcc_cv_ld_demangle
=yes
26006 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26008 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26012 $as_echo "$gcc_cv_ld_demangle" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26016 $as_echo_n "checking linker plugin support... " >&6; }
26017 gcc_cv_lto_plugin
=0
26018 if test -f liblto_plugin.la
; then
26019 save_ld_ver
="$ld_ver"
26020 save_ld_vers_major
="$ld_vers_major"
26021 save_ld_vers_minor
="$ld_vers_minor"
26022 save_ld_is_gold
="$ld_is_gold"
26026 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26028 # FIXME: ld_is_gold?
26029 ld_vers_major
="$gcc_cv_gld_major_version"
26030 ld_vers_minor
="$gcc_cv_gld_minor_version"
26032 # Determine plugin linker version.
26033 # FIXME: Partial duplicate from above, generalize.
26034 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26035 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26036 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26038 ld_vers
=`echo $ld_ver | sed -n \
26039 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26041 ld_vers
=`echo $ld_ver | sed -n \
26042 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26044 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26045 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26049 # Determine plugin support.
26050 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26051 # Require GNU ld or gold 2.21+ for plugin support by default.
26052 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26053 gcc_cv_lto_plugin
=2
26054 elif test "$ld_is_mold" = yes; then
26055 gcc_cv_lto_plugin
=2
26056 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26057 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26058 gcc_cv_lto_plugin
=1
26062 ld_ver
="$save_ld_ver"
26063 ld_vers_major
="$save_ld_vers_major"
26064 ld_vers_minor
="$save_ld_vers_minor"
26065 ld_is_gold
="$save_ld_is_gold"
26068 cat >>confdefs.h
<<_ACEOF
26069 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26073 $as_echo "$gcc_cv_lto_plugin" >&6; }
26075 # Target OS-specific assembler checks.
26077 case "$target_os" in
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26080 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26081 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26082 $as_echo_n "(cached) " >&6
26084 gcc_cv_as_mmacosx_version_min
=no
26085 if test x
$gcc_cv_as != x
; then
26086 $as_echo '.text' > conftest.s
26087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26089 (eval $ac_try) 2>&5
26091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26092 test $ac_status = 0; }; }
26094 gcc_cv_as_mmacosx_version_min
=yes
26096 echo "configure: failed program was" >&5
26099 rm -f conftest.o conftest.s
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26103 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26104 if test $gcc_cv_as_mmacosx_version_min = yes; then
26106 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26113 # Target CPU-specific assembler checks.
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26118 $as_echo_n "checking assembler for -mabi option... " >&6; }
26119 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26120 $as_echo_n "(cached) " >&6
26122 gcc_cv_as_aarch64_mabi
=no
26123 if test x
$gcc_cv_as != x
; then
26124 $as_echo '.text' > conftest.s
26125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26132 gcc_cv_as_aarch64_mabi
=yes
26134 echo "configure: failed program was" >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26141 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26144 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26146 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26149 if test x
$with_abi = xilp32
; then
26150 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26151 Upgrade the Assembler." "$LINENO" 5
26153 if test x
"$with_multilib_list" = xdefault
; then
26154 TM_MULTILIB_CONFIG
=lp64
26156 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26157 for aarch64_multilib
in ${aarch64_multilibs}; do
26158 case ${aarch64_multilib} in
26160 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26161 Upgrade the Assembler." "$LINENO" 5
26169 # Check if we have binutils support for relocations types needed by -fpic
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26171 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26172 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26173 $as_echo_n "(cached) " >&6
26175 gcc_cv_as_aarch64_picreloc
=no
26176 if test x
$gcc_cv_as != x
; then
26179 ldr x0, [x2, #:gotpage_lo15:globalsym]
26181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26188 gcc_cv_as_aarch64_picreloc
=yes
26190 echo "configure: failed program was" >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26197 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26198 if test $gcc_cv_as_aarch64_picreloc = yes; then
26200 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26204 # Enable Branch Target Identification Mechanism and Return Address
26205 # Signing by default.
26206 # Check whether --enable-standard-branch-protection was given.
26207 if test "${enable_standard_branch_protection+set}" = set; then :
26208 enableval
=$enable_standard_branch_protection;
26211 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26216 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26217 Valid choices are 'yes' and 'no'." "$LINENO" 5
26223 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26224 # Check whether --enable-fix-cortex-a53-835769 was given.
26225 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26226 enableval
=$enable_fix_cortex_a53_835769;
26229 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26234 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26235 Valid choices are 'yes' and 'no'." "$LINENO" 5
26242 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26243 # Check whether --enable-fix-cortex-a53-843419 was given.
26244 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26245 enableval
=$enable_fix_cortex_a53_843419;
26248 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26253 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26254 Valid choices are 'yes' and 'no'." "$LINENO" 5
26263 # All TARGET_ABI_OSF targets.
26264 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26266 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26267 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26268 $as_echo_n "(cached) " >&6
26270 gcc_cv_as_alpha_explicit_relocs
=no
26271 if test x
$gcc_cv_as != x
; then
26272 $as_echo ' .set nomacro
26274 extbl $3, $2, $3 !lituse_bytoff!1
26275 ldq $2, a($29) !literal!1
26276 ldq $4, b($29) !literal!2
26277 ldq_u $3, 0($2) !lituse_base!1
26278 ldq $27, f($29) !literal!5
26279 jsr $26, ($27), f !lituse_jsr!5
26280 ldah $29, 0($26) !gpdisp!3
26281 lda $0, c($29) !gprel
26282 ldah $1, d($29) !gprelhigh
26283 lda $1, d($1) !gprellow
26284 lda $29, 0($29) !gpdisp!3' > conftest.s
26285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26292 gcc_cv_as_alpha_explicit_relocs
=yes
26294 echo "configure: failed program was" >&5
26297 rm -f conftest.o conftest.s
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26301 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26302 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26304 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26309 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26310 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26311 $as_echo_n "(cached) " >&6
26313 gcc_cv_as_alpha_jsrdirect_relocs
=no
26314 if test x
$gcc_cv_as != x
; then
26315 $as_echo ' .set nomacro
26317 ldq $27, a($29) !literal!1
26318 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26326 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26328 echo "configure: failed program was" >&5
26331 rm -f conftest.o conftest.s
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26335 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26336 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26338 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26346 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26347 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26348 $as_echo_n "(cached) " >&6
26350 gcc_cv_as_avr_mlink_relax
=no
26351 if test x
$gcc_cv_as != x
; then
26352 $as_echo '.text' > conftest.s
26353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26355 (eval $ac_try) 2>&5
26357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26358 test $ac_status = 0; }; }
26360 gcc_cv_as_avr_mlink_relax
=yes
26362 echo "configure: failed program was" >&5
26365 rm -f conftest.o conftest.s
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26369 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26370 if test $gcc_cv_as_avr_mlink_relax = yes; then
26372 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26378 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26379 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_avr_mrmw
=no
26383 if test x
$gcc_cv_as != x
; then
26384 $as_echo '.text' > conftest.s
26385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26392 gcc_cv_as_avr_mrmw
=yes
26394 echo "configure: failed program was" >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26401 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26402 if test $gcc_cv_as_avr_mrmw = yes; then
26404 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26410 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26411 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26412 $as_echo_n "(cached) " >&6
26414 gcc_cv_as_avr_mgccisr
=no
26415 if test x
$gcc_cv_as != x
; then
26421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
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; }; }
26428 gcc_cv_as_avr_mgccisr
=yes
26430 echo "configure: failed program was" >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26437 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26438 if test $gcc_cv_as_avr_mgccisr = yes; then
26440 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26445 # Check how default linker description file implements .rodata for
26446 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26447 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26449 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26450 cat > conftest.s
<<EOF
26451 .section .rodata,"a",@progbits
26453 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26458 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
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; }; }
26476 if test -s conftest.nm
26478 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26480 $as_echo "yes" >&6; }
26482 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26486 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26487 echo "$as_me: nm output was" >&5
26488 cat conftest.nm
>&5
26489 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26490 { $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
26491 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26495 $as_echo "test failed" >&6; }
26496 echo "$as_me: failed program was" >&5
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26499 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26501 rm -f conftest.s conftest.o conftest.elf conftest.nm
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26506 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26507 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26508 $as_echo_n "(cached) " >&6
26510 gcc_cv_as_cris_no_mul_bug
=no
26511 if test x
$gcc_cv_as != x
; then
26512 $as_echo '.text' > conftest.s
26513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; }
26520 gcc_cv_as_cris_no_mul_bug
=yes
26522 echo "configure: failed program was" >&5
26525 rm -f conftest.o conftest.s
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26529 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26530 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26532 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26540 $as_echo_n "checking assembler for -relax option... " >&6; }
26541 if ${gcc_cv_as_sparc_relax+:} false
; then :
26542 $as_echo_n "(cached) " >&6
26544 gcc_cv_as_sparc_relax
=no
26545 if test x
$gcc_cv_as != x
; then
26546 $as_echo '.text' > conftest.s
26547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26549 (eval $ac_try) 2>&5
26551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26552 test $ac_status = 0; }; }
26554 gcc_cv_as_sparc_relax
=yes
26556 echo "configure: failed program was" >&5
26559 rm -f conftest.o conftest.s
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26564 if test $gcc_cv_as_sparc_relax = yes; then
26566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26572 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26573 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26574 $as_echo_n "(cached) " >&6
26576 gcc_cv_as_sparc_gotdata_op
=no
26577 if test x
$gcc_cv_as != x
; then
26583 sethi %gdop_hix22(foo), %g1
26584 xor %g1, %gdop_lox10(foo), %g1
26585 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26593 if test x
$gcc_cv_ld != x \
26594 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26595 if test x
$gcc_cv_objdump != x
; then
26596 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26597 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26598 gcc_cv_as_sparc_gotdata_op
=no
26600 gcc_cv_as_sparc_gotdata_op
=yes
26606 echo "configure: failed program was" >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26613 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26614 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26616 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26622 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26623 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26624 $as_echo_n "(cached) " >&6
26626 gcc_cv_as_sparc_ua_pcrel
=no
26627 if test x
$gcc_cv_as != x
; then
26634 .uaword %r_disp32(foo)' > conftest.s
26635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26642 if test x
$gcc_cv_ld != x \
26643 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26644 gcc_cv_as_sparc_ua_pcrel
=yes
26648 echo "configure: failed program was" >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26655 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26656 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26658 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26662 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26663 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26664 $as_echo_n "(cached) " >&6
26666 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26667 if test x
$gcc_cv_as != x
; then
26671 .uaword %r_disp32(foo)
26672 .byte 0x32, 0x33, 0x34
26676 .skip 4' > conftest.s
26677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26679 (eval $ac_try) 2>&5
26681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26682 test $ac_status = 0; }; }
26684 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26685 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26686 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26687 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26688 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26689 |
grep 'DISP32' > /dev
/null
2>&1; then
26692 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26697 echo "configure: failed program was" >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26704 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26705 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26707 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26713 # unaligned pcrel relocs
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26716 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26717 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26718 $as_echo_n "(cached) " >&6
26720 gcc_cv_as_sparc_offsetable_lo10
=no
26721 if test x
$gcc_cv_as != x
; then
26723 or %g1, %lo(ab) + 12, %g1
26724 or %g1, %lo(ab + 12), %g1' > conftest.s
26725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -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 if test x
$gcc_cv_objdump != x \
26733 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26734 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26735 gcc_cv_as_sparc_offsetable_lo10
=yes
26738 echo "configure: failed program was" >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26745 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26746 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26748 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26754 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26755 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26756 $as_echo_n "(cached) " >&6
26758 gcc_cv_as_sparc_fmaf
=no
26759 if test x
$gcc_cv_as != x
; then
26761 .register %g2, #scratch
26762 .register %g3, #scratch
26764 fmaddd %f0, %f2, %f4, %f6
26765 addxccc %g1, %g2, %g3
26766 fsrl32 %f2, %f4, %f8
26767 fnaddd %f10, %f12, %f14' > conftest.s
26768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -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_fmaf
=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_fmaf" >&5
26784 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26785 if test $gcc_cv_as_sparc_fmaf = yes; then
26787 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26793 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26794 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26795 $as_echo_n "(cached) " >&6
26797 gcc_cv_as_sparc_sparc4
=no
26798 if test x
$gcc_cv_as != x
; then
26800 .register %g2, #scratch
26801 .register %g3, #scratch
26804 1: cwbneg %g2, %g3, 1f
26807 aes_kexpand0 %f4, %f6, %f8
26808 des_round %f38, %f40, %f42, %f44
26809 camellia_f %f54, %f56, %f58, %f60
26810 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; }
26818 gcc_cv_as_sparc_sparc4
=yes
26820 echo "configure: failed program was" >&5
26823 rm -f conftest.o conftest.s
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26827 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26828 if test $gcc_cv_as_sparc_sparc4 = yes; then
26830 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26836 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26837 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26838 $as_echo_n "(cached) " >&6
26840 gcc_cv_as_sparc_sparc5
=no
26841 if test x
$gcc_cv_as != x
; then
26843 .register %g2, #scratch
26844 .register %g3, #scratch
26846 subxc %g1, %g2, %g3
26847 fpadd8 %f0, %f2, %f4' > conftest.s
26848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26850 (eval $ac_try) 2>&5
26852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26853 test $ac_status = 0; }; }
26855 gcc_cv_as_sparc_sparc5
=yes
26857 echo "configure: failed program was" >&5
26860 rm -f conftest.o conftest.s
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26864 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26865 if test $gcc_cv_as_sparc_sparc5 = yes; then
26867 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26873 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26874 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 gcc_cv_as_sparc_sparc6
=no
26878 if test x
$gcc_cv_as != x
; then
26880 .register %g2, #scratch
26881 .register %g3, #scratch
26884 fpsll64x %f0, %f2, %f4' > conftest.s
26885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26892 gcc_cv_as_sparc_sparc6
=yes
26894 echo "configure: failed program was" >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26901 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26902 if test $gcc_cv_as_sparc_sparc6 = yes; then
26904 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26910 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26911 if ${gcc_cv_as_sparc_leon+:} false
; then :
26912 $as_echo_n "(cached) " >&6
26914 gcc_cv_as_sparc_leon
=no
26915 if test x
$gcc_cv_as != x
; then
26917 .register %g2, #scratch
26918 .register %g3, #scratch
26922 casa [%g2] 0xb, %g3, %g1' > conftest.s
26923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26930 gcc_cv_as_sparc_leon
=yes
26932 echo "configure: failed program was" >&5
26935 rm -f conftest.o conftest.s
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26939 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26940 if test $gcc_cv_as_sparc_leon = yes; then
26942 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26948 i
[34567]86-*-* | x86_64-
*-*)
26951 # Full C++ conformance when using a shared libstdc++-v3 requires some
26952 # support from the Cygwin DLL, which in more recent versions exports
26953 # wrappers to aid in interposing and redirecting operators new, delete,
26954 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26955 # are configuring for a version of Cygwin that exports the wrappers.
26956 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26957 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26958 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26959 gcc_ac_cygwin_dll_wrappers
=yes
26961 gcc_ac_cygwin_dll_wrappers
=no
26965 # Can't check presence of libc functions during cross-compile, so
26966 # we just have to assume we're building for an up-to-date target.
26967 gcc_ac_cygwin_dll_wrappers
=yes
26970 cat >>confdefs.h
<<_ACEOF
26971 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26976 cygwin
* | pe | mingw32
*)
26977 # Recent binutils allows the three-operand form of ".comm" on PE. This
26978 # definition is used unconditionally to initialise the default state of
26979 # the target option variable that governs usage of the feature.
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26981 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26982 if ${gcc_cv_as_comm_has_align+:} false
; then :
26983 $as_echo_n "(cached) " >&6
26985 gcc_cv_as_comm_has_align
=no
26986 if test x
$gcc_cv_as != x
; then
26987 $as_echo '.comm foo,1,32' > conftest.s
26988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26995 gcc_cv_as_comm_has_align
=yes
26997 echo "configure: failed program was" >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27004 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27008 cat >>confdefs.h
<<_ACEOF
27009 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27012 # Used for DWARF 2 in PE
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27014 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27015 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27016 $as_echo_n "(cached) " >&6
27018 gcc_cv_as_ix86_pe_secrel32
=no
27019 if test x
$gcc_cv_as != x
; then
27023 .secrel32 foo' > conftest.s
27024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27031 if test x
$gcc_cv_ld != x \
27032 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27033 gcc_cv_as_ix86_pe_secrel32
=yes
27037 echo "configure: failed program was" >&5
27040 rm -f conftest.o conftest.s
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27044 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27045 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27047 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27051 # Test if the assembler supports the extended form of the .section
27052 # directive that specifies section alignment. LTO support uses this,
27053 # but normally only after installation, so we warn but don't fail the
27054 # configure if LTO is enabled but the assembler does not support it.
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27056 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27057 if ${gcc_cv_as_section_has_align+:} false
; then :
27058 $as_echo_n "(cached) " >&6
27060 gcc_cv_as_section_has_align
=no
27061 if test x
$gcc_cv_as != x
; then
27062 $as_echo '.section lto_test,"dr0"' > conftest.s
27063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27065 (eval $ac_try) 2>&5
27067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27068 test $ac_status = 0; }; }
27070 gcc_cv_as_section_has_align
=yes
27072 echo "configure: failed program was" >&5
27075 rm -f conftest.o conftest.s
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27079 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27082 if test x
$gcc_cv_as_section_has_align != xyes
; then
27083 case ",$enable_languages," in
27085 { $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
27086 $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;}
27093 darwin2
* | darwin19
*)
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27095 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27096 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27097 $as_echo_n "(cached) " >&6
27099 gcc_cv_as_mllvm_x86_pad_for_align
=no
27100 if test x
$gcc_cv_as != x
; then
27101 $as_echo '.text' > conftest.s
27102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27109 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27111 echo "configure: failed program was" >&5
27114 rm -f conftest.o conftest.s
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27118 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27119 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27121 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27129 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27130 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27131 $as_echo_n "(cached) " >&6
27133 gcc_cv_as_ix86_xbrace_comment
=no
27134 if test x
$gcc_cv_as != x
; then
27135 $as_echo '.text' > conftest.s
27136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27138 (eval $ac_try) 2>&5
27140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27141 test $ac_status = 0; }; }
27143 gcc_cv_as_ix86_xbrace_comment
=yes
27145 echo "configure: failed program was" >&5
27148 rm -f conftest.o conftest.s
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27152 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27153 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27155 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27161 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27162 if ${gcc_cv_as_ix86_filds+:} false
; then :
27163 $as_echo_n "(cached) " >&6
27165 gcc_cv_as_ix86_filds
=no
27166 if test x
$gcc_cv_as != x
; then
27167 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; }
27175 gcc_cv_as_ix86_filds
=yes
27177 echo "configure: failed program was" >&5
27180 rm -f conftest.o conftest.s
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27184 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27185 if test $gcc_cv_as_ix86_filds = yes; then
27187 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27193 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27194 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27195 $as_echo_n "(cached) " >&6
27197 gcc_cv_as_ix86_fildq
=no
27198 if test x
$gcc_cv_as != x
; then
27199 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27207 gcc_cv_as_ix86_fildq
=yes
27209 echo "configure: failed program was" >&5
27212 rm -f conftest.o conftest.s
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27216 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27217 if test $gcc_cv_as_ix86_fildq = yes; then
27219 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27225 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27226 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27227 $as_echo_n "(cached) " >&6
27229 gcc_cv_as_ix86_cmov_sun_syntax
=no
27230 if test x
$gcc_cv_as != x
; then
27231 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27239 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27241 echo "configure: failed program was" >&5
27244 rm -f conftest.o conftest.s
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27248 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27249 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27251 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27257 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27258 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27259 $as_echo_n "(cached) " >&6
27261 gcc_cv_as_ix86_ffreep
=no
27262 if test x
$gcc_cv_as != x
; then
27263 $as_echo 'ffreep %st(1)' > conftest.s
27264 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27266 (eval $ac_try) 2>&5
27268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27269 test $ac_status = 0; }; }
27271 gcc_cv_as_ix86_ffreep
=yes
27273 echo "configure: failed program was" >&5
27276 rm -f conftest.o conftest.s
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27280 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27281 if test $gcc_cv_as_ix86_ffreep = yes; then
27283 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27289 $as_echo_n "checking assembler for .quad directive... " >&6; }
27290 if ${gcc_cv_as_ix86_quad+:} false
; then :
27291 $as_echo_n "(cached) " >&6
27293 gcc_cv_as_ix86_quad
=no
27294 if test x
$gcc_cv_as != x
; then
27295 $as_echo '.quad 0' > conftest.s
27296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; }
27303 gcc_cv_as_ix86_quad
=yes
27305 echo "configure: failed program was" >&5
27308 rm -f conftest.o conftest.s
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27312 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27313 if test $gcc_cv_as_ix86_quad = yes; then
27315 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27321 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27322 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27323 $as_echo_n "(cached) " >&6
27325 gcc_cv_as_ix86_sahf
=no
27326 if test x
$gcc_cv_as != x
; then
27329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; }
27336 gcc_cv_as_ix86_sahf
=yes
27338 echo "configure: failed program was" >&5
27341 rm -f conftest.o conftest.s
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27345 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27346 if test $gcc_cv_as_ix86_sahf = yes; then
27348 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27354 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27355 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27356 $as_echo_n "(cached) " >&6
27358 gcc_cv_as_ix86_interunit_movq
=no
27359 if test x
$gcc_cv_as != x
; then
27362 movq %rax, %xmm0' > conftest.s
27363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27365 (eval $ac_try) 2>&5
27367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27368 test $ac_status = 0; }; }
27370 gcc_cv_as_ix86_interunit_movq
=yes
27372 echo "configure: failed program was" >&5
27375 rm -f conftest.o conftest.s
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27379 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27383 cat >>confdefs.h
<<_ACEOF
27384 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27389 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27390 if ${gcc_cv_as_ix86_hle+:} false
; then :
27391 $as_echo_n "(cached) " >&6
27393 gcc_cv_as_ix86_hle
=no
27394 if test x
$gcc_cv_as != x
; then
27395 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27396 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27398 (eval $ac_try) 2>&5
27400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27401 test $ac_status = 0; }; }
27403 gcc_cv_as_ix86_hle
=yes
27405 echo "configure: failed program was" >&5
27408 rm -f conftest.o conftest.s
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27412 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27413 if test $gcc_cv_as_ix86_hle = yes; then
27415 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27421 $as_echo_n "checking assembler for swap suffix... " >&6; }
27422 if ${gcc_cv_as_ix86_swap+:} false
; then :
27423 $as_echo_n "(cached) " >&6
27425 gcc_cv_as_ix86_swap
=no
27426 if test x
$gcc_cv_as != x
; then
27427 $as_echo 'movl.s %esp, %ebp' > conftest.s
27428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27430 (eval $ac_try) 2>&5
27432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27433 test $ac_status = 0; }; }
27435 gcc_cv_as_ix86_swap
=yes
27437 echo "configure: failed program was" >&5
27440 rm -f conftest.o conftest.s
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27444 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27445 if test $gcc_cv_as_ix86_swap = yes; then
27447 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27453 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27454 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27455 $as_echo_n "(cached) " >&6
27457 gcc_cv_as_ix86_diff_sect_delta
=no
27458 if test x
$gcc_cv_as != x
; then
27459 $as_echo '.section .rodata
27465 .L2: nop' > conftest.s
27466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27468 (eval $ac_try) 2>&5
27470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27471 test $ac_status = 0; }; }
27473 gcc_cv_as_ix86_diff_sect_delta
=yes
27475 echo "configure: failed program was" >&5
27478 rm -f conftest.o conftest.s
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27482 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27483 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27485 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27491 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27492 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27493 $as_echo_n "(cached) " >&6
27495 gcc_cv_as_ix86_rep_lock_prefix
=no
27496 if test x
$gcc_cv_as != x
; then
27497 $as_echo 'rep movsl
27502 lock addl %edi, (%eax,%esi)
27503 lock orl $0, (%esp)' > conftest.s
27504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; }
27511 gcc_cv_as_ix86_rep_lock_prefix
=yes
27513 echo "configure: failed program was" >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27520 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27521 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27523 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27529 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27530 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27531 $as_echo_n "(cached) " >&6
27533 gcc_cv_as_ix86_ud2
=no
27534 if test x
$gcc_cv_as != x
; then
27535 $as_echo 'ud2' > conftest.s
27536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27538 (eval $ac_try) 2>&5
27540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27541 test $ac_status = 0; }; }
27543 gcc_cv_as_ix86_ud2
=yes
27545 echo "configure: failed program was" >&5
27548 rm -f conftest.o conftest.s
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27552 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27553 if test $gcc_cv_as_ix86_ud2 = yes; then
27555 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27560 # Enforce 32-bit output with gas and gld.
27561 if test x
$gas = xyes
; then
27562 as_ix86_gas_32_opt
="--32"
27564 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27565 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27566 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27568 ld_ix86_gld_32_opt
="-melf_i386"
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27573 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27574 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27575 $as_echo_n "(cached) " >&6
27577 gcc_cv_as_ix86_tlsgdplt
=no
27578 if test x
$gcc_cv_as != x
; then
27579 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27582 (eval $ac_try) 2>&5
27584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27585 test $ac_status = 0; }; }
27587 if test x
$gcc_cv_ld != x \
27588 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27589 gcc_cv_as_ix86_tlsgdplt
=yes
27593 echo "configure: failed program was" >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27600 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27601 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27603 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27609 .section .tdata,"aw'$tls_section_flag'",@progbits
27611 .section .text,"ax",@progbits
27612 call tls_ld@tlsldmplt'
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27615 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27616 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27617 $as_echo_n "(cached) " >&6
27619 gcc_cv_as_ix86_tlsldmplt
=no
27620 if test x
$gcc_cv_as != x
; then
27621 $as_echo "$conftest_s" > conftest.s
27622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27629 if test x
$gcc_cv_ld != x \
27630 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27631 gcc_cv_as_ix86_tlsldmplt
=yes
27635 echo "configure: failed program was" >&5
27638 rm -f conftest.o conftest.s
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27642 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27646 cat >>confdefs.h
<<_ACEOF
27647 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27652 .section .text,"ax",@progbits
27654 .type _start, @function
27656 leal value@tlsldm(%ebx), %eax
27657 call ___tls_get_addr@plt
27659 .section .tdata,"aw'$tls_section_flag'",@progbits
27660 .type value, @object
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27663 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27664 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27665 $as_echo_n "(cached) " >&6
27667 gcc_cv_as_ix86_tlsldm
=no
27668 if test x
$gcc_cv_as != x
; then
27669 $as_echo "$conftest_s" > conftest.s
27670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27672 (eval $ac_try) 2>&5
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; }
27677 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27678 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27679 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27680 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27681 gcc_cv_as_ix86_tlsldm
=yes
27686 echo "configure: failed program was" >&5
27689 rm -f conftest.o conftest.s
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27693 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27697 cat >>confdefs.h
<<_ACEOF
27698 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27712 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27713 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27714 $as_echo_n "(cached) " >&6
27716 gcc_cv_as_ix86_got32x
=no
27717 if test x
$gcc_cv_as != x
; then
27718 $as_echo "$conftest_s" > conftest.s
27719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27726 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27727 && test x
$gcc_cv_readelf != x \
27728 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27729 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27730 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27731 if $gcc_cv_objdump -dw conftest
2>&1 \
27732 |
grep 0xffffff > /dev
/null
2>&1; then
27733 gcc_cv_as_ix86_got32x
=no
27735 gcc_cv_as_ix86_got32x
=yes
27740 echo "configure: failed program was" >&5
27743 rm -f conftest.o conftest.s
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27747 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27751 cat >>confdefs.h
<<_ACEOF
27752 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27757 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27758 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27759 $as_echo_n "(cached) " >&6
27761 gcc_cv_as_ix86_gotoff_in_data
=no
27762 if test x
$gcc_cv_as != x
; then
27767 .long .L0@GOTOFF' > conftest.s
27768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27775 gcc_cv_as_ix86_gotoff_in_data
=yes
27777 echo "configure: failed program was" >&5
27780 rm -f conftest.o conftest.s
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27784 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27788 cat >>confdefs.h
<<_ACEOF
27789 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27794 .section .text,"ax",@progbits
27796 .type _start, @function
27798 leal ld@tlsldm(%ecx), %eax
27799 call *___tls_get_addr@GOT(%ecx)
27800 leal gd@tlsgd(%ecx), %eax
27801 call *___tls_get_addr@GOT(%ecx)
27803 .section .tdata,"aw'$tls_section_flag'",@progbits
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27812 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27813 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27814 $as_echo_n "(cached) " >&6
27816 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27817 if test x
$gcc_cv_as != x
; then
27818 $as_echo "$conftest_s" > conftest.s
27819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x
$gcc_cv_ld != x \
27827 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27828 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27832 echo "configure: failed program was" >&5
27835 rm -f conftest.o conftest.s
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27839 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27843 cat >>confdefs.h
<<_ACEOF
27844 #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`
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27851 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27852 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27853 $as_echo_n "(cached) " >&6
27855 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27856 if test x
$gcc_cv_as != x
; then
27858 addl r15 = @ltoffx(x#), gp
27860 ld8.mov r16 = [r15], x#
27862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27869 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27871 echo "configure: failed program was" >&5
27874 rm -f conftest.o conftest.s
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27878 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27881 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27893 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27894 if ${gcc_cv_as_machine_directive+:} false
; then :
27895 $as_echo_n "(cached) " >&6
27897 gcc_cv_as_machine_directive
=no
27898 if test x
$gcc_cv_as != x
; then
27899 $as_echo ' .machine ppc7400' > conftest.s
27900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27902 (eval $ac_try) 2>&5
27904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27905 test $ac_status = 0; }; }
27907 gcc_cv_as_machine_directive
=yes
27909 echo "configure: failed program was" >&5
27912 rm -f conftest.o conftest.s
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27916 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27919 if test x
$gcc_cv_as_machine_directive != xyes
; then
27920 echo "*** This target requires an assembler supporting \".machine\"" >&2
27921 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27922 test x
$build = x
$target && exit 1
27928 *-*-aix*) conftest_s
=' .machine "pwr5"
27931 *-*-darwin*) conftest_s
=' .text
27933 *) conftest_s
=' .machine power4
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27939 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27940 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27941 $as_echo_n "(cached) " >&6
27943 gcc_cv_as_powerpc_mfcrf
=no
27944 if test x
$gcc_cv_as != x
; then
27945 $as_echo "$conftest_s" > conftest.s
27946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27953 gcc_cv_as_powerpc_mfcrf
=yes
27955 echo "configure: failed program was" >&5
27958 rm -f conftest.o conftest.s
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27962 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27963 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27965 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27971 *-*-aix*) conftest_s
=' .csect .text[PR]
27973 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27977 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27978 *) conftest_s
=' .text
27980 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27984 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27985 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27986 $as_echo_n "(cached) " >&6
27988 gcc_cv_as_powerpc_rel16
=no
27989 if test x
$gcc_cv_as != x
; then
27990 $as_echo "$conftest_s" > conftest.s
27991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27993 (eval $ac_try) 2>&5
27995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27996 test $ac_status = 0; }; }
27998 gcc_cv_as_powerpc_rel16
=yes
28000 echo "configure: failed program was" >&5
28003 rm -f conftest.o conftest.s
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28007 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28008 if test $gcc_cv_as_powerpc_rel16 = yes; then
28010 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28016 *-*-aix*) conftest_s
=' .machine "pwr7"
28019 *) conftest_s
=' .machine power7
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28025 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28026 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28027 $as_echo_n "(cached) " >&6
28029 gcc_cv_as_powerpc_vsx
=no
28030 if test x
$gcc_cv_as != x
; then
28031 $as_echo "$conftest_s" > conftest.s
28032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28039 gcc_cv_as_powerpc_vsx
=yes
28041 echo "configure: failed program was" >&5
28044 rm -f conftest.o conftest.s
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28048 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28049 if test $gcc_cv_as_powerpc_vsx = yes; then
28051 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28057 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28058 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28059 $as_echo_n "(cached) " >&6
28061 gcc_cv_as_powerpc_gnu_attribute
=no
28062 if test x
$gcc_cv_as != x
; then
28063 $as_echo '.gnu_attribute 4,1' > conftest.s
28064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28066 (eval $ac_try) 2>&5
28068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28069 test $ac_status = 0; }; }
28071 gcc_cv_as_powerpc_gnu_attribute
=yes
28073 echo "configure: failed program was" >&5
28076 rm -f conftest.o conftest.s
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28080 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28081 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28083 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28089 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28090 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28091 $as_echo_n "(cached) " >&6
28093 gcc_cv_as_powerpc_entry_markers
=no
28094 if test x
$gcc_cv_as != x
; then
28095 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28098 (eval $ac_try) 2>&5
28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101 test $ac_status = 0; }; }
28103 gcc_cv_as_powerpc_entry_markers
=yes
28105 echo "configure: failed program was" >&5
28108 rm -f conftest.o conftest.s
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28112 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28113 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28115 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28121 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28122 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28123 $as_echo_n "(cached) " >&6
28125 gcc_cv_as_powerpc_pltseq_markers
=no
28126 if test x
$gcc_cv_as != x
; then
28127 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }
28135 gcc_cv_as_powerpc_pltseq_markers
=yes
28137 echo "configure: failed program was" >&5
28140 rm -f conftest.o conftest.s
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28144 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28145 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28147 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28155 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28156 if ${gcc_cv_as_aix_ref+:} false
; then :
28157 $as_echo_n "(cached) " >&6
28159 gcc_cv_as_aix_ref
=no
28160 if test x
$gcc_cv_as != x
; then
28161 $as_echo ' .csect stuff[rw]
28167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28169 (eval $ac_try) 2>&5
28171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28172 test $ac_status = 0; }; }
28174 gcc_cv_as_aix_ref
=yes
28176 echo "configure: failed program was" >&5
28179 rm -f conftest.o conftest.s
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28183 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28184 if test $gcc_cv_as_aix_ref = yes; then
28186 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28192 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28193 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28194 $as_echo_n "(cached) " >&6
28196 gcc_cv_as_aix_dwloc
=no
28197 if test x
$gcc_cv_as != x
; then
28198 $as_echo ' .dwsect 0xA0000
28202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28204 (eval $ac_try) 2>&5
28206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28207 test $ac_status = 0; }; }
28209 gcc_cv_as_aix_dwloc
=yes
28211 echo "configure: failed program was" >&5
28214 rm -f conftest.o conftest.s
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28218 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28219 if test $gcc_cv_as_aix_dwloc = yes; then
28221 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28231 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28232 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28233 $as_echo_n "(cached) " >&6
28235 gcc_cv_as_mips_explicit_relocs
=no
28236 if test x
$gcc_cv_as != x
; then
28237 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28240 (eval $ac_try) 2>&5
28242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28243 test $ac_status = 0; }; }
28245 gcc_cv_as_mips_explicit_relocs
=yes
28247 echo "configure: failed program was" >&5
28250 rm -f conftest.o conftest.s
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28254 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28255 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28256 if test x
$target_cpu_default = x
28257 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28258 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28264 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28265 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28266 $as_echo_n "(cached) " >&6
28268 gcc_cv_as_mips_no_shared
=no
28269 if test x
$gcc_cv_as != x
; then
28270 $as_echo 'nop' > conftest.s
28271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28273 (eval $ac_try) 2>&5
28275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276 test $ac_status = 0; }; }
28278 gcc_cv_as_mips_no_shared
=yes
28280 echo "configure: failed program was" >&5
28283 rm -f conftest.o conftest.s
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28287 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28288 if test $gcc_cv_as_mips_no_shared = yes; then
28290 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28296 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28297 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28298 $as_echo_n "(cached) " >&6
28300 gcc_cv_as_mips_gnu_attribute
=no
28301 if test x
$gcc_cv_as != x
; then
28302 $as_echo '.gnu_attribute 4,1' > conftest.s
28303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28305 (eval $ac_try) 2>&5
28307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308 test $ac_status = 0; }; }
28310 gcc_cv_as_mips_gnu_attribute
=yes
28312 echo "configure: failed program was" >&5
28315 rm -f conftest.o conftest.s
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28319 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28320 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28322 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28328 $as_echo_n "checking assembler for .module support... " >&6; }
28329 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28330 $as_echo_n "(cached) " >&6
28332 gcc_cv_as_mips_dot_module
=no
28333 if test x
$gcc_cv_as != x
; then
28334 $as_echo '.module mips2
28335 .module fp=xx' > conftest.s
28336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28338 (eval $ac_try) 2>&5
28340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341 test $ac_status = 0; }; }
28343 gcc_cv_as_mips_dot_module
=yes
28345 echo "configure: failed program was" >&5
28348 rm -f conftest.o conftest.s
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28352 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28353 if test $gcc_cv_as_mips_dot_module = yes; then
28355 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28359 if test x
$gcc_cv_as_mips_dot_module = xno \
28360 && test x
$with_fp_32 != x
; then
28361 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28365 $as_echo_n "checking assembler for .micromips support... " >&6; }
28366 if ${gcc_cv_as_micromips_support+:} false
; then :
28367 $as_echo_n "(cached) " >&6
28369 gcc_cv_as_micromips_support
=no
28370 if test x
$gcc_cv_as != x
; then
28371 $as_echo '.set micromips' > conftest.s
28372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28374 (eval $ac_try) 2>&5
28376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28377 test $ac_status = 0; }; }
28379 gcc_cv_as_micromips_support
=yes
28381 echo "configure: failed program was" >&5
28384 rm -f conftest.o conftest.s
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28388 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28389 if test $gcc_cv_as_micromips_support = yes; then
28391 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28397 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28398 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28399 $as_echo_n "(cached) " >&6
28401 gcc_cv_as_mips_dtprelword
=no
28402 if test x
$gcc_cv_as != x
; then
28403 $as_echo '.section .tdata,"awT",@progbits
28407 .dtprelword x+0x8000' > conftest.s
28408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28410 (eval $ac_try) 2>&5
28412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28413 test $ac_status = 0; }; }
28415 gcc_cv_as_mips_dtprelword
=yes
28417 echo "configure: failed program was" >&5
28420 rm -f conftest.o conftest.s
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28424 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28425 if test $gcc_cv_as_mips_dtprelword = yes; then
28427 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28433 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28434 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28435 $as_echo_n "(cached) " >&6
28437 gcc_cv_as_mips_dspr1_mult
=no
28438 if test x
$gcc_cv_as != x
; then
28439 $as_echo ' .set mips32r2
28447 multu $ac3,$4,$5' > conftest.s
28448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28455 gcc_cv_as_mips_dspr1_mult
=yes
28457 echo "configure: failed program was" >&5
28460 rm -f conftest.o conftest.s
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28464 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28465 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28467 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28473 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28474 gcc_cv_as_ld_jalr_reloc
=no
28475 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28476 if test $in_tree_ld = yes ; then
28477 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 \
28478 && test $in_tree_ld_is_elf = yes; then
28479 gcc_cv_as_ld_jalr_reloc
=yes
28481 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28482 echo ' .ent x' > conftest.s
28483 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28484 echo ' lw $25,%call16(y)($28)' >> conftest.s
28485 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28486 echo '1: jalr $25' >> conftest.s
28487 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28488 echo '1: jalr $25' >> conftest.s
28489 echo ' .end x' >> conftest.s
28490 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28491 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28492 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28493 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28494 gcc_cv_as_ld_jalr_reloc
=yes
28500 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28501 if test x
$target_cpu_default = x
; then
28502 target_cpu_default
=MASK_RELAX_PIC_CALLS
28504 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28508 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28511 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28512 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28513 $as_echo_n "(cached) " >&6
28515 gcc_cv_ld_mips_personality_relaxation
=no
28516 if test $in_tree_ld = yes ; then
28517 if test "$gcc_cv_gld_major_version" -eq 2 \
28518 -a "$gcc_cv_gld_minor_version" -ge 21 \
28519 -o "$gcc_cv_gld_major_version" -gt 2; then
28520 gcc_cv_ld_mips_personality_relaxation
=yes
28522 elif test x
$gcc_cv_as != x \
28523 -a x
$gcc_cv_ld != x \
28524 -a x
$gcc_cv_readelf != x
; then
28525 cat > conftest.s
<<EOF
28527 .cfi_personality 0x80,indirect_ptr
28534 .section .data,"aw",@progbits
28538 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28539 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28540 if $gcc_cv_readelf -d conftest
2>&1 \
28541 |
grep TEXTREL
> /dev
/null
2>&1; then
28543 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28544 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28547 gcc_cv_ld_mips_personality_relaxation
=yes
28551 rm -f conftest.s conftest.o conftest
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28554 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28555 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28557 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28562 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28563 if ${gcc_cv_as_mips_nan+:} false
; then :
28564 $as_echo_n "(cached) " >&6
28566 gcc_cv_as_mips_nan
=no
28567 if test x
$gcc_cv_as != x
; then
28568 $as_echo '' > conftest.s
28569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; }
28576 gcc_cv_as_mips_nan
=yes
28578 echo "configure: failed program was" >&5
28581 rm -f conftest.o conftest.s
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28585 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28586 if test $gcc_cv_as_mips_nan = yes; then
28588 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28592 if test x
$gcc_cv_as_mips_nan = xno \
28593 && test x
$with_nan != x
; then
28594 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28598 # Earlier GAS versions generically support .gnu_attribute, but the
28599 # msp430 assembler will not do anything with it.
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28601 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28602 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28603 $as_echo_n "(cached) " >&6
28605 gcc_cv_as_msp430_gnu_attribute
=no
28606 if test x
$gcc_cv_as != x
; then
28607 $as_echo '.gnu_attribute 4,1' > conftest.s
28608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28610 (eval $ac_try) 2>&5
28612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613 test $ac_status = 0; }; }
28615 gcc_cv_as_msp430_gnu_attribute
=yes
28617 echo "configure: failed program was" >&5
28620 rm -f conftest.o conftest.s
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28624 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28625 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28627 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28632 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28633 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28634 $as_echo_n "(cached) " >&6
28636 gcc_cv_as_msp430_mspabi_attribute
=no
28637 if test x
$gcc_cv_as != x
; then
28638 $as_echo '.mspabi_attribute 4,2' > conftest.s
28639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641 (eval $ac_try) 2>&5
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; }
28646 gcc_cv_as_msp430_mspabi_attribute
=yes
28648 echo "configure: failed program was" >&5
28651 rm -f conftest.o conftest.s
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28655 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28656 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28658 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28662 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28664 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28669 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28670 # syntax that is documented in the ABI specification.
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28672 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28673 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28674 $as_echo_n "(cached) " >&6
28676 gcc_cv_as_nios2_gotoff_relocation
=no
28677 if test x
$gcc_cv_as != x
; then
28678 $as_echo ' .extern foo
28680 .long %gotoff(foo)' > conftest.s
28681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28688 gcc_cv_as_nios2_gotoff_relocation
=yes
28690 echo "configure: failed program was" >&5
28693 rm -f conftest.o conftest.s
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28697 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28698 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28700 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28707 $as_echo_n "checking assembler for .attribute support... " >&6; }
28708 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28709 $as_echo_n "(cached) " >&6
28711 gcc_cv_as_riscv_attribute
=no
28712 if test x
$gcc_cv_as != x
; then
28713 $as_echo '.attribute stack_align,4' > conftest.s
28714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28716 (eval $ac_try) 2>&5
28718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719 test $ac_status = 0; }; }
28721 gcc_cv_as_riscv_attribute
=yes
28723 echo "configure: failed program was" >&5
28726 rm -f conftest.o conftest.s
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28730 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28731 if test $gcc_cv_as_riscv_attribute = yes; then
28733 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28738 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28739 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28740 $as_echo_n "(cached) " >&6
28742 gcc_cv_as_riscv_isa_spec
=no
28743 if test x
$gcc_cv_as != x
; then
28744 $as_echo '' > conftest.s
28745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28747 (eval $ac_try) 2>&5
28749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750 test $ac_status = 0; }; }
28752 gcc_cv_as_riscv_isa_spec
=yes
28754 echo "configure: failed program was" >&5
28757 rm -f conftest.o conftest.s
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28761 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28762 if test $gcc_cv_as_riscv_isa_spec = yes; then
28764 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28769 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28770 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28771 $as_echo_n "(cached) " >&6
28773 gcc_cv_as_riscv_march_zifencei
=no
28774 if test x
$gcc_cv_as != x
; then
28775 $as_echo '' > conftest.s
28776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28778 (eval $ac_try) 2>&5
28780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28781 test $ac_status = 0; }; }
28783 gcc_cv_as_riscv_march_zifencei
=yes
28785 echo "configure: failed program was" >&5
28788 rm -f conftest.o conftest.s
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28792 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28793 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28795 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28802 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28803 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28804 $as_echo_n "(cached) " >&6
28806 gcc_cv_as_loongarch_dtprelword
=no
28807 if test x
$gcc_cv_as != x
; then
28808 $as_echo '' > conftest.s
28809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28811 (eval $ac_try) 2>&5
28813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28814 test $ac_status = 0; }; }
28816 .section .tdata
,"awT",@progbits
28820 .dtprelword x
+0x8000
28822 echo "configure: failed program was" >&5
28825 rm -f conftest.o conftest.s
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28829 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28831 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28833 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28837 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28838 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
28839 $as_echo_n "(cached) " >&6
28841 gcc_cv_as_loongarch_explicit_relocs
=no
28842 if test x
$gcc_cv_as != x
; then
28843 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28846 (eval $ac_try) 2>&5
28848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28849 test $ac_status = 0; }; }
28851 gcc_cv_as_loongarch_explicit_relocs
=yes
28853 echo "configure: failed program was" >&5
28856 rm -f conftest.o conftest.s
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28860 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28861 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28863 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28868 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28869 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
28870 $as_echo_n "(cached) " >&6
28872 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
28873 if test x
$gcc_cv_as != x
; then
28874 $as_echo '.cfi_startproc
28875 .cfi_personality 0x9b,a
28877 .cfi_endproc' > conftest.s
28878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28880 (eval $ac_try) 2>&5
28882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28883 test $ac_status = 0; }; }
28885 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
28887 echo "configure: failed program was" >&5
28890 rm -f conftest.o conftest.s
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28894 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28895 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28897 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28904 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28905 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28906 $as_echo_n "(cached) " >&6
28908 gcc_cv_as_s390_gnu_attribute
=no
28909 if test x
$gcc_cv_as != x
; then
28910 $as_echo '.gnu_attribute 8,1' > conftest.s
28911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28913 (eval $ac_try) 2>&5
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; }
28918 gcc_cv_as_s390_gnu_attribute
=yes
28920 echo "configure: failed program was" >&5
28923 rm -f conftest.o conftest.s
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28927 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28928 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28935 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28936 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28937 $as_echo_n "(cached) " >&6
28939 gcc_cv_as_s390_machine_machinemode
=no
28940 if test x
$gcc_cv_as != x
; then
28941 $as_echo ' .machinemode push
28944 .machine pop' > conftest.s
28945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28947 (eval $ac_try) 2>&5
28949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28950 test $ac_status = 0; }; }
28952 gcc_cv_as_s390_machine_machinemode
=yes
28954 echo "configure: failed program was" >&5
28957 rm -f conftest.o conftest.s
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28961 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28962 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28964 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28969 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28970 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28971 $as_echo_n "(cached) " >&6
28973 gcc_cv_as_s390_architecture_modifiers
=no
28974 if test x
$gcc_cv_as != x
; then
28975 $as_echo ' .machine z13+vx ' > conftest.s
28976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28978 (eval $ac_try) 2>&5
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; }
28983 gcc_cv_as_s390_architecture_modifiers
=yes
28985 echo "configure: failed program was" >&5
28988 rm -f conftest.o conftest.s
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28992 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28993 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28995 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29000 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29001 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29002 $as_echo_n "(cached) " >&6
29004 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29005 if test x
$gcc_cv_as != x
; then
29006 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29007 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29009 (eval $ac_try) 2>&5
29011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29012 test $ac_status = 0; }; }
29014 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29016 echo "configure: failed program was" >&5
29019 rm -f conftest.o conftest.s
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29023 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29024 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29026 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29031 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29032 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29033 $as_echo_n "(cached) " >&6
29035 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29036 if test x
$gcc_cv_as != x
; then
29037 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29040 (eval $ac_try) 2>&5
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; }
29045 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29047 echo "configure: failed program was" >&5
29050 rm -f conftest.o conftest.s
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29054 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29055 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29057 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29065 # Mips, LoongArch and HP-UX need the GNU assembler.
29066 # Linux on IA64 might be able to use the Intel assembler.
29069 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29070 if test x
$gas_flag = xyes \
29071 ||
test x
"$host" != x
"$build" \
29072 ||
test ! -x "$gcc_cv_as" \
29073 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29076 echo "*** This configuration requires the GNU assembler" >&2
29082 # AMD GCN needs the LLVM assembler and linker.
29083 # Test that LLVM is at least 13.0.1.
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29087 $as_echo_n "checking llvm assembler version... " >&6; }
29088 gcc_cv_as_version
="unknown"
29089 if test x
$gcc_cv_as != x
; then
29090 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29091 case "$gcc_cv_as_version" in
29092 13.0.
[1-9]*) ;; # 13.0.1+
29093 13.
[1-9]*) ;; # 13.1+
29094 1[4-9]*) ;; # 14..19
29095 [2-9][0-9]*) ;; # 20..99
29096 [1-9][0-9][0-9]*) ;; # 100+
29097 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29098 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29102 $as_echo "$gcc_cv_as_version, ok" >&6; }
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29109 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29110 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29111 $as_echo_n "(cached) " >&6
29113 gcc_cv_as_arm_option_extensions
=no
29114 if test x
$gcc_cv_as != x
; then
29118 vmov.f32 s0, s1' > conftest.s
29119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29121 (eval $ac_try) 2>&5
29123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29124 test $ac_status = 0; }; }
29126 gcc_cv_as_arm_option_extensions
=yes
29128 echo "configure: failed program was" >&5
29131 rm -f conftest.o conftest.s
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29135 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29136 if test $gcc_cv_as_arm_option_extensions = yes; then
29138 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29144 # ??? Not all targets support dwarf2 debug_line, even within a version
29145 # of gas. Moreover, we need to emit a valid instruction to trigger any
29146 # info to the output file. So, as supported targets are added to gas 2.11,
29147 # add some instruction here to (also) show we expect this might work.
29148 # ??? Once 2.11 is released, probably need to add first known working
29149 # version to the per-target configury.
29150 case "$cpu_type" in
29151 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29152 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29153 | visium | xstormy16 | xtensa
)
29163 if test x
"$insn" != x
; then
29165 .file 1 \"conftest.s\"
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29169 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29170 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29171 $as_echo_n "(cached) " >&6
29173 gcc_cv_as_dwarf2_debug_line
=no
29174 if test x
$gcc_cv_as != x
; then
29175 $as_echo "$conftest_s" > conftest.s
29176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29178 (eval $ac_try) 2>&5
29180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29181 test $ac_status = 0; }; }
29183 if test x
$gcc_cv_objdump != x \
29184 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29185 |
grep debug_line
> /dev
/null
2>&1; then
29186 gcc_cv_as_dwarf2_debug_line
=yes
29187 elif test x
$gcc_cv_otool != x \
29188 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29189 |
grep debug_line
> /dev
/null
2>&1; then
29190 gcc_cv_as_dwarf2_debug_line
=yes
29193 echo "configure: failed program was" >&5
29196 rm -f conftest.o conftest.s
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29200 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29204 # The .debug_line file table must be in the exact order that
29205 # we specified the files, since these indices are also used
29206 # by DW_AT_decl_file. Approximate this test by testing if
29207 # the assembler bitches if the same index is assigned twice.
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29209 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29210 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29211 $as_echo_n "(cached) " >&6
29213 gcc_cv_as_dwarf2_file_buggy
=no
29214 if test x
$gcc_cv_as != x
; then
29215 $as_echo ' .file 1 "foo.s"
29216 .file 1 "bar.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_file_buggy
=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_file_buggy" >&5
29233 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29237 if test $gcc_cv_as_dwarf2_debug_line = yes \
29238 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29240 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29243 if test $gcc_cv_as_leb128 = yes; then
29245 .file 1 \"conftest.s\"
29246 .loc 1 3 0 view .LVU1
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29253 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29254 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29255 $as_echo_n "(cached) " >&6
29257 gcc_cv_as_dwarf2_debug_view
=no
29258 if test x
$gcc_cv_as != x
; then
29259 $as_echo "$conftest_s" > conftest.s
29260 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29262 (eval $ac_try) 2>&5
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; }
29267 gcc_cv_as_dwarf2_debug_view
=yes
29269 echo "configure: failed program was" >&5
29272 rm -f conftest.o conftest.s
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29276 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29277 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29279 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29287 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29288 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29289 $as_echo_n "(cached) " >&6
29291 gcc_cv_as_gdwarf2_flag
=no
29292 if test x
$gcc_cv_as != x
; then
29293 $as_echo "$insn" > conftest.s
29294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29296 (eval $ac_try) 2>&5
29298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29299 test $ac_status = 0; }; }
29301 gcc_cv_as_gdwarf2_flag
=yes
29303 echo "configure: failed program was" >&5
29306 rm -f conftest.o conftest.s
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29310 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29311 if test $gcc_cv_as_gdwarf2_flag = yes; then
29313 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29319 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29320 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29321 $as_echo_n "(cached) " >&6
29323 gcc_cv_as_gdwarf_5_flag
=no
29324 if test x
$gcc_cv_as != x
; then
29325 $as_echo "$insn" > conftest.s
29326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29328 (eval $ac_try) 2>&5
29330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29331 test $ac_status = 0; }; }
29333 if test x
$gcc_cv_objdump != x \
29334 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29335 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29336 gcc_cv_as_gdwarf_5_flag
=yes;
29339 echo "configure: failed program was" >&5
29342 rm -f conftest.o conftest.s
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29346 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29347 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29349 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29355 win32 | pe | cygwin
* | mingw32
*)
29356 section_flags
=\"dr
\"
29357 function_type
=".def foo; .scl 2; .type 32; .endef"
29360 section_flags
=\"\",%progbits
29361 function_type
=".type foo, %function"
29362 function_size
=".size foo, .-foo";;
29364 dwarf4_debug_info_size
=0x46
29365 dwarf4_high_pc_form
=7
29366 dwarf4_debug_aranges_size
=0x2c
29368 for dwarf4_addr_size
in 8 4; do
29384 .section .debug_info,$section_flags
29386 .4byte $dwarf4_debug_info_size
29388 .4byte .Ldebug_abbrev0
29389 .byte 0x$dwarf4_addr_size
29391 .ascii \"GNU C17\\0\"
29395 .${dwarf4_addr_size}byte .Ltext0
29396 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29397 .4byte .Ldebug_line0
29403 .${dwarf4_addr_size}byte .LFB0
29404 .${dwarf4_addr_size}byte .LFE0-.LFB0
29408 .section .debug_abbrev,$section_flags
29424 .byte 0x$dwarf4_high_pc_form
29445 .byte 0x$dwarf4_high_pc_form
29451 .section .debug_aranges,$section_flags
29452 .4byte $dwarf4_debug_aranges_size
29454 .4byte .Ldebug_info0
29459 .${dwarf4_addr_size}byte .Ltext0
29460 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29461 .${dwarf4_addr_size}byte 0
29462 .${dwarf4_addr_size}byte 0
29463 .section .debug_line,$section_flags
29465 .4byte .LELT0-.LSLT0
29468 .4byte .LELTP0-.LASLTP0
29496 .byte 0x$dwarf4_line_sz
29498 .${dwarf4_addr_size}byte .LM1
29503 .byte 0x$dwarf4_line_sz
29505 .${dwarf4_addr_size}byte .LM2
29510 .byte 0x$dwarf4_line_sz
29512 .${dwarf4_addr_size}byte .Letext0
29517 .section .debug_str,$section_flags
29521 if test $dwarf4_addr_size = 4; then
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29523 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29524 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29525 $as_echo_n "(cached) " >&6
29527 gcc_cv_as_debug_line_32_flag
=no
29528 if test x
$gcc_cv_as != x
; then
29529 $as_echo "$conftest_s" > conftest.s
29530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29532 (eval $ac_try) 2>&5
29534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29535 test $ac_status = 0; }; }
29537 gcc_cv_as_debug_line_32_flag
=yes
29539 echo "configure: failed program was" >&5
29542 rm -f conftest.o conftest.s
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29546 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29547 if test $gcc_cv_as_debug_line_32_flag = yes; then
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29553 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29554 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29555 $as_echo_n "(cached) " >&6
29557 gcc_cv_as_debug_line_64_flag
=no
29558 if test x
$gcc_cv_as != x
; then
29559 $as_echo "$conftest_s" > conftest.s
29560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29562 (eval $ac_try) 2>&5
29564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29565 test $ac_status = 0; }; }
29567 gcc_cv_as_debug_line_64_flag
=yes
29569 echo "configure: failed program was" >&5
29572 rm -f conftest.o conftest.s
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29576 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29577 if test $gcc_cv_as_debug_line_64_flag = yes; then
29582 if test $dwarf4_success = yes; then
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29585 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29586 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29587 $as_echo_n "(cached) " >&6
29589 gcc_cv_as_dwarf_4_debug_line_flag
=no
29590 if test x
$gcc_cv_as != x
; then
29591 $as_echo "$conftest_s" > conftest.s
29592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29594 (eval $ac_try) 2>&5
29596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29597 test $ac_status = 0; }; }
29599 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29601 echo "configure: failed program was" >&5
29604 rm -f conftest.o conftest.s
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29608 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29609 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29615 dwarf4_debug_info_size
=0x36
29616 dwarf4_high_pc_form
=6
29617 dwarf4_debug_aranges_size
=0x1c
29621 if test $dwarf4_success = yes; then
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29640 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29641 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29642 $as_echo_n "(cached) " >&6
29644 gcc_cv_as_dwarf_4_app_flag
=no
29645 if test x
$gcc_cv_as != x
; then
29646 $as_echo "$conftest_s" > conftest.s
29647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29649 (eval $ac_try) 2>&5
29651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29652 test $ac_status = 0; }; }
29654 gcc_cv_as_dwarf_4_app_flag
=yes
29656 echo "configure: failed program was" >&5
29659 rm -f conftest.o conftest.s
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29663 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29664 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29670 if test $dwarf4_success = yes; then
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29681 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29682 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29683 $as_echo_n "(cached) " >&6
29685 gcc_cv_as_working_gdwarf_n_flag
=no
29686 if test x
$gcc_cv_as != x
; then
29687 $as_echo "$conftest_s" > conftest.s
29688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29690 (eval $ac_try) 2>&5
29692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29693 test $ac_status = 0; }; }
29695 if test x
$gcc_cv_objdump != x \
29696 && $gcc_cv_objdump -W conftest.o
2>&1 \
29697 |
grep conftest.s
> /dev
/null
2>&1; then
29698 gcc_cv_as_working_gdwarf_n_flag
=no
29700 gcc_cv_as_working_gdwarf_n_flag
=yes
29703 echo "configure: failed program was" >&5
29706 rm -f conftest.o conftest.s
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29710 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29713 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29715 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29721 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29722 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29723 $as_echo_n "(cached) " >&6
29725 gcc_cv_as_debug_prefix_map_flag
=no
29726 if test x
$gcc_cv_as != x
; then
29727 $as_echo "$insn" > conftest.s
29728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29730 (eval $ac_try) 2>&5
29732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29733 test $ac_status = 0; }; }
29735 gcc_cv_as_debug_prefix_map_flag
=yes
29737 echo "configure: failed program was" >&5
29740 rm -f conftest.o conftest.s
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29744 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29745 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29747 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29754 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29755 if ${gcc_cv_as_compress_debug+:} false
; then :
29756 $as_echo_n "(cached) " >&6
29758 gcc_cv_as_compress_debug
=no
29759 if test x
$gcc_cv_as != x
; then
29760 $as_echo '' > conftest.s
29761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29763 (eval $ac_try) 2>&5
29765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29766 test $ac_status = 0; }; }
29768 # gas compiled without zlib cannot compress debug sections and warns
29769 # about it, but still exits successfully. So check for this, too.
29770 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29772 gcc_cv_as_compress_debug
=0
29773 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29775 gcc_cv_as_compress_debug
=1
29776 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29777 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29778 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29779 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29781 gcc_cv_as_compress_debug
=2
29784 gcc_cv_as_compress_debug
=0
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_compress_debug" >&5
29794 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29798 cat >>confdefs.h
<<_ACEOF
29799 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29803 cat >>confdefs.h
<<_ACEOF
29804 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29808 cat >>confdefs.h
<<_ACEOF
29809 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29814 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29815 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29816 $as_echo_n "(cached) " >&6
29818 gcc_cv_as_lcomm_with_alignment
=no
29819 if test x
$gcc_cv_as != x
; then
29820 $as_echo '.lcomm bar,4,16' > conftest.s
29821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29823 (eval $ac_try) 2>&5
29825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29826 test $ac_status = 0; }; }
29828 gcc_cv_as_lcomm_with_alignment
=yes
29830 echo "configure: failed program was" >&5
29833 rm -f conftest.o conftest.s
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29837 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29838 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29840 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29845 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29846 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29847 && test "$prefix" != "NONE"; then
29849 cat >>confdefs.h
<<_ACEOF
29850 #define PREFIX_INCLUDE_DIR "$prefix/include"
29855 # Determine the version of glibc, if any, used on the target.
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29857 $as_echo_n "checking for target glibc version... " >&6; }
29859 # Check whether --with-glibc-version was given.
29860 if test "${with_glibc_version+set}" = set; then :
29861 withval
=$with_glibc_version;
29862 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29863 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29864 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29866 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29870 glibc_version_major
=0
29871 glibc_version_minor
=0
29872 if test -f $target_header_dir/features.h \
29873 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29874 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29875 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29876 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29881 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29883 cat >>confdefs.h
<<_ACEOF
29884 #define TARGET_GLIBC_MAJOR $glibc_version_major
29888 cat >>confdefs.h
<<_ACEOF
29889 #define TARGET_GLIBC_MINOR $glibc_version_minor
29893 # Check whether --enable-gnu-unique-object was given.
29894 if test "${enable_gnu_unique_object+set}" = set; then :
29895 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29897 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29898 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29902 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29903 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29904 $as_echo_n "(cached) " >&6
29906 gcc_cv_as_gnu_unique_object
=no
29907 if test x
$gcc_cv_as != x
; then
29908 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29909 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29911 (eval $ac_try) 2>&5
29913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29914 test $ac_status = 0; }; }
29916 gcc_cv_as_gnu_unique_object
=yes
29918 echo "configure: failed program was" >&5
29921 rm -f conftest.o conftest.s
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29925 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29926 if test $gcc_cv_as_gnu_unique_object = yes; then
29927 # We need to unquote above to to use the definition from config.gcc.
29928 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29930 if test $glibc_version_major -gt 2 \
29931 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29932 enable_gnu_unique_object
=yes
29939 if test x
$enable_gnu_unique_object = xyes
; then
29941 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29946 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29947 if ${gcc_cv_as_line_zero+:} false
; then :
29948 $as_echo_n "(cached) " >&6
29950 gcc_cv_as_line_zero
=no
29951 if test "x$gcc_cv_as" != x
; then
29952 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29953 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29955 (eval $ac_try) 2>&5
29957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; }; } &&
29959 test "x`cat conftest.out`" = x
29961 gcc_cv_as_line_zero
=yes
29963 echo "configure: failed program was" >&5
29965 echo "configure: error output was" >&5
29966 cat conftest.out
>&5
29968 rm -f conftest.o conftest.s conftest.out
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29972 $as_echo "$gcc_cv_as_line_zero" >&6; }
29973 if test "x$gcc_cv_as_line_zero" = xyes
; then
29975 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29980 $as_echo_n "checking support for thin archives... " >&6; }
29981 thin_archive_support
=no
29982 echo 'int main (void) { return 0; }' > conftest.c
29983 if ($AR --version |
sed 1q |
grep "GNU ar" \
29984 && $CC $CFLAGS -c conftest.c \
29985 && $AR rcT conftest.a conftest.o \
29986 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29987 thin_archive_support
=yes
29989 rm -f conftest.c conftest.o conftest.a conftest
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29991 $as_echo "$thin_archive_support" >&6; }
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29995 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29996 gcc_cv_ld_eh_frame_hdr
=no
29997 if test $in_tree_ld = yes ; then
29998 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 \
29999 && test $in_tree_ld_is_elf = yes; then
30000 gcc_cv_ld_eh_frame_hdr
=yes
30002 elif test x
$gcc_cv_ld != x
; then
30003 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30004 # Check if linker supports --eh-frame-hdr option
30005 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30006 gcc_cv_ld_eh_frame_hdr
=yes
30011 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30012 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30013 gcc_cv_ld_eh_frame_hdr
=yes
30020 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30022 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30026 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30029 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30030 gcc_cv_ld_eh_frame_ciev3
=no
30031 if test $in_tree_ld = yes ; then
30032 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 \
30033 && test $in_tree_ld_is_elf = yes; then
30034 gcc_cv_ld_eh_frame_ciev3
=yes
30036 elif test x
$gcc_cv_ld != x
; then
30037 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30038 gcc_cv_ld_eh_frame_ciev3
=yes
30039 if test 0"$ld_date" -lt 20040513; then
30040 if test -n "$ld_date"; then
30041 # If there was date string, but was earlier than 2004-05-13, fail
30042 gcc_cv_ld_eh_frame_ciev3
=no
30043 elif test "$ld_vers_major" -lt 2; then
30044 gcc_cv_ld_eh_frame_ciev3
=no
30045 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30046 gcc_cv_ld_eh_frame_ciev3
=no
30052 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30053 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30054 gcc_cv_ld_eh_frame_ciev3
=yes
30061 cat >>confdefs.h
<<_ACEOF
30062 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30066 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30069 $as_echo_n "checking linker position independent executable support... " >&6; }
30071 if test $in_tree_ld = yes ; then
30073 # Full PIE support on Solaris was only introduced in gld 2.26.
30074 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30075 *) gcc_gld_pie_min_version
=15 ;;
30077 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 \
30078 && test $in_tree_ld_is_elf = yes; then
30081 elif test x
$gcc_cv_ld != x
; then
30082 # Check if linker supports -pie option
30083 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30087 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30088 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30095 *-*-solaris2.1
[1-9]*)
30096 # Solaris 11.3 added PIE support.
30097 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30104 if test x
"$gcc_cv_ld_pie" = xyes
; then
30106 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30110 $as_echo "$gcc_cv_ld_pie" >&6; }
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30113 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30114 gcc_cv_ld_pie_copyreloc
=no
30115 if test $gcc_cv_ld_pie = yes ; then
30116 if test $in_tree_ld = yes ; then
30117 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
30118 gcc_cv_ld_pie_copyreloc
=yes
30120 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30121 # Check if linker supports -pie option with copy reloc
30123 i?
86-*-linux* | x86_64-
*-linux*)
30124 cat > conftest1.s
<<EOF
30127 .type a_glob, @object
30132 cat > conftest2.s
<<EOF
30135 .type main, @function
30137 movl %eax, a_glob(%rip)
30140 .section .data.rel,"aw",@progbits
30145 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30146 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30147 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30148 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30149 gcc_cv_ld_pie_copyreloc
=yes
30151 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30157 cat >>confdefs.h
<<_ACEOF
30158 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30162 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30165 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30166 gcc_cv_ld_eh_gc_sections
=no
30167 if test $in_tree_ld = yes ; then
30168 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 \
30169 && test $in_tree_ld_is_elf = yes; then
30170 gcc_cv_ld_eh_gc_sections
=yes
30172 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30173 cat > conftest.s
<<EOF
30176 .type _start, @function
30179 .size _start, .-_start
30180 .section .text.foo,"ax",@progbits
30181 .type foo, @function
30185 .section .gcc_except_table.foo,"a",@progbits
30188 .section .eh_frame,"a",@progbits
30191 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30192 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30193 |
grep "gc-sections option ignored" > /dev
/null
; then
30194 gcc_cv_ld_eh_gc_sections
=no
30195 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30196 |
grep gcc_except_table
> /dev
/null
; then
30197 gcc_cv_ld_eh_gc_sections
=yes
30198 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30199 if test x
$gcc_cv_as_comdat_group != xyes
; then
30200 gcc_cv_ld_eh_gc_sections
=no
30201 cat > conftest.s
<<EOF
30204 .type _start, @function
30207 .size _start, .-_start
30208 .section .gnu.linkonce.t.foo,"ax",@progbits
30209 .type foo, @function
30213 .section .gcc_except_table.foo,"a",@progbits
30216 .section .eh_frame,"a",@progbits
30219 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30220 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30221 |
grep "gc-sections option ignored" > /dev
/null
; then
30222 gcc_cv_ld_eh_gc_sections
=no
30223 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30224 |
grep gcc_except_table
> /dev
/null
; then
30225 gcc_cv_ld_eh_gc_sections
=yes
30231 rm -f conftest.s conftest.o conftest
30235 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30236 gcc_cv_ld_eh_gc_sections
=no
30239 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30241 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30245 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30248 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30249 gcc_cv_ld_eh_gc_sections_bug
=no
30250 if test $in_tree_ld = yes ; then
30251 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 \
30252 && test $in_tree_ld_is_elf = yes; then
30253 gcc_cv_ld_eh_gc_sections_bug
=yes
30255 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
30256 gcc_cv_ld_eh_gc_sections_bug
=yes
30257 cat > conftest.s
<<EOF
30260 .type _start, @function
30263 .size _start, .-_start
30264 .section .text.startup.foo,"ax",@progbits
30265 .type foo, @function
30269 .section .gcc_except_table.foo,"a",@progbits
30272 .section .eh_frame,"a",@progbits
30275 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30276 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30277 |
grep "gc-sections option ignored" > /dev
/null
; then
30279 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30280 |
grep gcc_except_table
> /dev
/null
; then
30281 gcc_cv_ld_eh_gc_sections_bug
=no
30284 rm -f conftest.s conftest.o conftest
30286 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30288 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30292 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30295 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30296 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30297 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30298 gcc_cv_ld_compress_debug
=1
30299 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30300 # Detect zstd debug section compression support
30301 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30302 gcc_cv_ld_compress_debug
=2
30305 case "${target}" in
30307 # Introduced in Solaris 11.2.
30308 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30309 gcc_cv_ld_compress_debug
=1
30310 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30312 gcc_cv_ld_compress_debug
=0
30316 # Assume linkers other than GNU ld don't support compessed debug
30318 gcc_cv_ld_compress_debug
=0
30323 cat >>confdefs.h
<<_ACEOF
30324 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30328 cat >>confdefs.h
<<_ACEOF
30329 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30333 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30335 if test x
"$ld64_flag" = x
"yes"; then
30337 # Set defaults for possibly untestable items.
30338 gcc_cv_ld64_export_dynamic
=0
30339 gcc_cv_ld64_platform_version
=0
30341 if test "$build" = "$host"; then
30347 # On Darwin, because of FAT library support, it is often possible to execute
30348 # exes from compatible archs even when the host differs from the build system.
30349 case "$build","$host" in
30350 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30351 darwin_try_test
=1;;
30355 # If the configurer specified a minimum ld64 version to be supported, then use
30356 # that to determine feature support.
30357 if test x
"${gcc_cv_ld64_version}" != x
; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30359 $as_echo_n "checking ld64 specified version... " >&6; }
30360 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30362 $as_echo "$gcc_cv_ld64_major" >&6; }
30363 if test "$gcc_cv_ld64_major" -ge 236; then
30364 gcc_cv_ld64_export_dynamic
=1
30366 if test "$gcc_cv_ld64_major" -ge 512; then
30367 gcc_cv_ld64_platform_version
=1
30369 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30370 # If the version was not specified, try to find it.
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30372 $as_echo_n "checking linker version... " >&6; }
30373 if test x
"${gcc_cv_ld64_version}" = x
; then
30374 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30377 $as_echo "$gcc_cv_ld64_version" >&6; }
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30380 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30381 gcc_cv_ld64_export_dynamic
=1
30382 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30383 gcc_cv_ld64_export_dynamic
=0
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30386 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30389 $as_echo_n "checking linker for -platform_version support... " >&6; }
30390 gcc_cv_ld64_platform_version
=1
30391 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30392 gcc_cv_ld64_platform_version
=0
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30395 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30398 if test x
"${gcc_cv_ld64_version}" != x
; then
30400 cat >>confdefs.h
<<_ACEOF
30401 #define LD64_VERSION "${gcc_cv_ld64_version}"
30407 cat >>confdefs.h
<<_ACEOF
30408 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30413 cat >>confdefs.h
<<_ACEOF
30414 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30419 if test x
"$dsymutil_flag" = x
"yes"; then
30421 # If the user specified a dsymutil path, then we will already have the
30422 # version string, otherwise, pick it up.
30423 if test x
"$gcc_cv_dsymutil" = x
; then
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30425 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30426 dsymutil_vers
="tool unspecified"
30427 elif test x
"$dsymutil_vers" = x
; then
30428 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30431 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30433 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30434 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30435 dsymutil_kind
=DWARFUTILS
30436 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30437 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30438 dsymutil_kind
=CLANG
30439 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30440 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30442 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30444 dsymutil_kind
=UNKNOWN
30445 dsymutil_vers
="0.0"
30447 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30448 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30449 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30450 if test x
"${dsymutil_minor}" = x
; then
30453 if test x
"${dsymutil_tiny}" = x
; then
30457 cat >>confdefs.h
<<_ACEOF
30458 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30462 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30466 win32 | pe | cygwin* | mingw32*)
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30468 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30469 gcc_cv_ld_broken_pe_dwarf5=yes
30470 if test $in_tree_ld = yes ; then
30471 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30472 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30473 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30474 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30475 gcc_cv_ld_broken_pe_dwarf5=no
30478 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30479 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30480 gcc_cv_ld_broken_pe_dwarf5=no
30483 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30485 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30489 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30492 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30493 gcc_cv_ld_disable_dynamicbase
=no
30494 if test $in_tree_ld = yes; then
30495 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 \
30496 gcc_cv_ld_disable_dynamicbase
=yes
30499 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30500 gcc_cv_ld_disable_dynamicbase
=yes
30503 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30505 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30509 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30518 $as_echo_n "checking linker --as-needed support... " >&6; }
30519 if ${gcc_cv_ld_as_needed+:} false
; then :
30520 $as_echo_n "(cached) " >&6
30522 gcc_cv_ld_as_needed
=no
30523 gcc_cv_ld_as_needed_option
='--as-needed'
30524 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30525 if test $in_tree_ld = yes ; then
30526 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 \
30527 && test $in_tree_ld_is_elf = yes; then
30528 gcc_cv_ld_as_needed
=yes
30529 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30530 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30531 gcc_cv_ld_no_as_needed_option
='--pop-state'
30534 elif test x
$gcc_cv_ld != x
; then
30535 # Check if linker supports --as-needed and --no-as-needed options
30536 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30537 gcc_cv_ld_as_needed
=yes
30538 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30539 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30540 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30541 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30542 # Use these options only when both ld.bfd and ld.gold support
30543 # --push-state/--pop-state, which unfortunately wasn't added
30544 # at the same time.
30545 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30546 gcc_cv_ld_no_as_needed_option
='--pop-state'
30549 case "$target:$gnu_ld" in
30551 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30553 gcc_cv_ld_as_needed
=yes
30554 gcc_cv_ld_as_needed_option
="-z ignore"
30555 gcc_cv_ld_no_as_needed_option
="-z record"
30559 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30560 # dl_iterate_phdr, i.e. since Solaris 11.
30562 *-*-solaris2.1
[1-9]*)
30564 i?
86-*-* | x86_64-
*-*)
30565 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30566 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30567 gcc_cv_ld_as_needed
=no
30573 gcc_cv_ld_as_needed
=no
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30579 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30580 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30582 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30585 cat >>confdefs.h
<<_ACEOF
30586 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30590 cat >>confdefs.h
<<_ACEOF
30591 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30597 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30598 saved_LDFLAGS
="$LDFLAGS"
30599 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30600 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30602 /* end confdefs.h. */
30603 int main(void) {return 0;}
30605 if ac_fn_cxx_try_link
"$LINENO"; then :
30606 gcc_cv_ld_clearcap
=yes; break
30608 gcc_cv_ld_clearcap
=no
30610 rm -f core conftest.err conftest.
$ac_objext \
30611 conftest
$ac_exeext conftest.
$ac_ext
30613 LDFLAGS
="$saved_LDFLAGS"
30614 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30616 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30618 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30622 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30628 emul_name
="-melf32lppc"
30631 emul_name
="-melf32ppc"
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30635 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30636 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30637 $as_echo_n "(cached) " >&6
30639 gcc_cv_ld_ppc_attr
=no
30640 if test x
"$ld_is_gold" = xyes
; then
30641 gcc_cv_ld_ppc_attr
=yes
30642 elif test $in_tree_ld = yes ; then
30643 if test "$gcc_cv_gld_major_version" -eq 2 \
30644 -a "$gcc_cv_gld_minor_version" -ge 28 \
30645 -o "$gcc_cv_gld_major_version" -gt 2; then
30646 gcc_cv_ld_ppc_attr
=yes
30648 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30649 # check that merging the long double .gnu_attribute doesn't warn
30650 cat > conftest1.s
<<EOF
30653 cat > conftest2.s
<<EOF
30656 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30657 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30658 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30659 && test ! -s conftest.err
; then
30660 gcc_cv_ld_ppc_attr
=yes
30662 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30667 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30668 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30670 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30676 case "$target:$tm_file" in
30677 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30680 emul_name
="-melf64lppc"
30683 emul_name
="-melf64ppc"
30686 emul_name
="-melf64lppc_fbsd"
30689 emul_name
="-melf64ppc_fbsd"
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30693 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30694 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30695 $as_echo_n "(cached) " >&6
30697 gcc_cv_ld_no_dot_syms
=no
30698 if test x
"$ld_is_gold" = xyes
; then
30699 gcc_cv_ld_no_dot_syms
=yes
30700 elif test $in_tree_ld = yes ; then
30701 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
30702 gcc_cv_ld_no_dot_syms
=yes
30704 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30705 cat > conftest1.s
<<EOF
30709 cat > conftest2.s
<<EOF
30710 .section ".opd","aw"
30713 .type foo,@function
30715 .quad .LEfoo,.TOC.@tocbase,0
30721 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30722 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30723 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30724 gcc_cv_ld_no_dot_syms
=yes
30726 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30731 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30732 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30734 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30739 $as_echo_n "checking linker large toc support... " >&6; }
30740 if ${gcc_cv_ld_large_toc+:} false
; then :
30741 $as_echo_n "(cached) " >&6
30743 gcc_cv_ld_large_toc
=no
30744 if test x
"$ld_is_gold" = xyes
; then
30745 gcc_cv_ld_large_toc
=yes
30746 elif test $in_tree_ld = yes ; then
30747 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
30748 gcc_cv_ld_large_toc
=yes
30750 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30751 cat > conftest.s
<<EOF
30752 .section ".tbss","awT",@nobits
30758 addis 9,13,ie0@got@tprel@ha
30759 ld 9,ie0@got@tprel@l(9)
30761 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30762 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30763 gcc_cv_ld_large_toc
=yes
30765 rm -f conftest conftest.o conftest.s
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30770 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30771 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30773 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30778 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30779 if ${gcc_cv_ld_toc_align+:} false
; then :
30780 $as_echo_n "(cached) " >&6
30782 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30783 cat > conftest.s
<<EOF
30788 .section .data.rel.ro,"aw",@progbits
30793 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30794 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30795 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)) }'`
30797 rm -f conftest conftest.o conftest.s
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30802 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30803 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30805 cat >>confdefs.h
<<_ACEOF
30806 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30816 $as_echo_n "checking linker large toc support... " >&6; }
30817 if ${gcc_cv_ld_large_toc+:} false
; then :
30818 $as_echo_n "(cached) " >&6
30820 gcc_cv_ld_large_toc
=no
30821 if test x
$gcc_cv_as != x
; then
30822 cat > conftest.s
<<EOF
30832 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30833 gcc_cv_ld_large_toc
=yes
30835 rm -f conftest conftest.o conftest.s
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30840 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30841 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30843 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30850 $as_echo_n "checking linker --build-id support... " >&6; }
30851 if ${gcc_cv_ld_buildid+:} false
; then :
30852 $as_echo_n "(cached) " >&6
30854 gcc_cv_ld_buildid
=no
30855 if test $in_tree_ld = yes ; then
30856 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30857 "$gcc_cv_gld_minor_version" -ge 18 -o \
30858 "$gcc_cv_gld_major_version" -gt 2 \
30859 && test $in_tree_ld_is_elf = yes; then
30860 gcc_cv_ld_buildid
=yes
30862 elif test x
$gcc_cv_ld != x
; then
30863 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30864 gcc_cv_ld_buildid
=yes
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30869 $as_echo "$gcc_cv_ld_buildid" >&6; }
30870 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30872 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30876 # Check whether --enable-linker-build-id was given.
30877 if test "${enable_linker_build_id+set}" = set; then :
30878 enableval
=$enable_linker_build_id;
30880 enable_linker_build_id
=no
30884 if test x
"$enable_linker_build_id" = xyes
; then
30885 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30887 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30891 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30895 # In binutils 2.21, GNU ld gained support for new emulations fully
30896 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30898 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30899 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30900 $as_echo_n "(cached) " >&6
30902 gcc_cv_ld_sol2_emulation
=no
30903 if test $in_tree_ld = yes ; then
30904 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30905 "$gcc_cv_gld_minor_version" -ge 21 -o \
30906 "$gcc_cv_gld_major_version" -gt 2 \
30907 && test $in_tree_ld_is_elf = yes; then
30908 gcc_cv_ld_sol2_emulation
=yes
30910 elif test x
$gcc_cv_ld != x
; then
30911 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30912 grep _sol2
> /dev
/null
; then
30913 gcc_cv_ld_sol2_emulation
=yes
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30918 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30919 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
30921 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30926 $as_echo_n "checking linker --sysroot support... " >&6; }
30927 if ${gcc_cv_ld_sysroot+:} false
; then :
30928 $as_echo_n "(cached) " >&6
30930 gcc_cv_ld_sysroot
=no
30931 if test $in_tree_ld = yes ; then
30932 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
30933 gcc_cv_ld_sysroot
=yes
30935 elif test x
$gcc_cv_ld != x
; then
30936 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
30937 gcc_cv_ld_sysroot
=yes
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30942 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30943 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
30945 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30951 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30953 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30954 if ${gcc_cv_solaris_crts+:} false
; then :
30955 $as_echo_n "(cached) " >&6
30957 gcc_cv_solaris_crts
=no
30958 if test x
$host != x
$target; then
30959 if test "x$with_sysroot" = xyes
; then
30960 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
30962 target_sysroot
="${with_sysroot}"
30965 target_libdir
="$target_sysroot/usr/lib"
30966 # At the time they were added, gcrt1.o became a symlink for backwards
30967 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30969 i?
86-*-solaris2* | x86_64-
*-solaris2*)
30970 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30972 sparc
*-*-solaris2*)
30973 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30978 $as_echo "$gcc_cv_solaris_crts" >&6; }
30981 if test x
$gcc_cv_solaris_crts = xyes
; then
30983 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30987 # Check whether --enable-libssp was given.
30988 if test "${enable_libssp+set}" = set; then :
30989 enableval
=$enable_libssp; case "${enableval}" in
30993 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30999 # Test for stack protector support in target C library.
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31001 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31002 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31003 $as_echo_n "(cached) " >&6
31005 gcc_cv_libc_provides_ssp
=no
31006 if test "x$enable_libssp" = "xno"; then
31007 gcc_cv_libc_provides_ssp
=yes
31008 elif test "x$enable_libssp" = "xyes"; then
31009 gcc_cv_libc_provides_ssp
=no
31013 # All versions of musl provide stack protector
31014 gcc_cv_libc_provides_ssp
=yes;;
31015 *-*-linux* |
*-*-kfreebsd*-gnu)
31016 # glibc 2.4 and later provides __stack_chk_fail and
31017 # either __stack_chk_guard, or TLS access to stack guard canary.
31019 if test $glibc_version_major -gt 2 \
31020 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31021 gcc_cv_libc_provides_ssp
=yes
31024 if test -f $target_header_dir/features.h \
31025 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31026 $target_header_dir/features.h
> /dev
/null
; then
31027 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31028 $target_header_dir/features.h
> /dev
/null
&& \
31029 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31030 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31031 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31032 gcc_cv_libc_provides_ssp
=yes
31034 # all versions of Bionic support stack protector
31035 elif test -f $target_header_dir/sys
/cdefs.h \
31036 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31037 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31038 gcc_cv_libc_provides_ssp
=yes
31043 # Avoid complicated tests (see
31044 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31045 # simply assert that glibc does provide this, which is true for all
31046 # realistically usable GNU/Hurd configurations.
31047 # All supported versions of musl provide it as well
31048 gcc_cv_libc_provides_ssp
=yes;;
31049 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31050 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31051 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31052 gcc_cv_libc_provides_ssp
=yes
31054 echo "no __stack_chk_fail on this target"
31058 *) gcc_cv_libc_provides_ssp
=no
;;
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31063 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31065 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31067 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31071 # Check whether --enable-default-ssp was given.
31072 # Check whether --enable-default-ssp was given.
31073 if test "${enable_default_ssp+set}" = set; then :
31074 enableval
=$enable_default_ssp;
31075 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31077 ia64
*-*-*) enable_default_ssp
=no
;;
31078 *) enable_default_ssp
=$enableval ;;
31081 enable_default_ssp
=no
31084 enable_default_ssp
=no
31087 if test x
$enable_default_ssp = xyes
; then
31089 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31094 # Test for <sys/sdt.h> on the target.
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31097 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31098 if ${gcc_cv_sys_sdt_h+:} false
; then :
31099 $as_echo_n "(cached) " >&6
31102 gcc_cv_sys_sdt_h
=no
31103 if test -f $target_header_dir/sys
/sdt.h
; then
31104 gcc_cv_sys_sdt_h
=yes
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31109 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31110 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31113 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31118 # Check if TFmode long double should be used by default or not.
31119 # Some glibc targets used DFmode long double, but with glibc 2.4
31120 # and later they can use TFmode.
31122 powerpc
*-*-linux* | \
31123 sparc
*-*-linux* | \
31127 # Check whether --with-long-double-128 was given.
31128 if test "${with_long_double_128+set}" = set; then :
31129 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31133 s390
*-*-linux-musl*)
31134 gcc_cv_target_ldbl128
=yes
31136 powerpc
*-*-linux-musl*)
31137 gcc_cv_target_ldbl128
=no
31141 if test $glibc_version_major -gt 2 \
31142 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31143 gcc_cv_target_ldbl128
=yes
31146 gcc_cv_target_ldbl128
=no
31147 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31148 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31149 && gcc_cv_target_ldbl128
=yes
31160 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31162 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31166 # Check if TFmode long double target should use the IBM extended double or IEEE
31167 # 128-bit floating point formats if long doubles are 128-bits long. The long
31168 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31169 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31172 # Check whether --with-long-double-format was given.
31173 if test "${with_long_double_format+set}" = set; then :
31174 withval
=$with_long_double_format;
31175 case "$target:$with_long_double_format" in
31176 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31179 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31180 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31181 case "$with_cpu" in
31182 power7 | power8 | power9 | power1
*)
31186 as_fn_error $?
"Configuration option --with-long-double-format is only \
31187 supported if the default cpu is power7 or newer" "$LINENO" 5
31188 with_long_double_format
=""
31192 powerpc64
*-*-linux*:*)
31193 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31194 with_long_double_format
=""
31197 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31198 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31199 with_long_double_format
=""
31205 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31206 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31207 gcc_cv_libc_provides_hwcap_in_tcb
=no
31211 if test $glibc_version_major -gt 2 \
31212 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31213 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31217 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31219 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31223 # Check if the target LIBC handles PT_GNU_STACK.
31224 gcc_cv_libc_gnustack
=unknown
31226 mips
*-*-linux-musl*)
31227 gcc_cv_libc_gnustack
=yes
31231 if test $glibc_version_major -gt 2 \
31232 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31233 gcc_cv_libc_gnustack
=yes
31237 if test x
$gcc_cv_libc_gnustack = xyes
; then
31239 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31244 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31245 gcc_cv_target_dl_iterate_phdr
=unknown
31248 # <link.h> needs both a dl_iterate_phdr declaration and support for
31249 # compilation with largefile support.
31250 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31251 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31252 gcc_cv_target_dl_iterate_phdr
=yes
31254 gcc_cv_target_dl_iterate_phdr
=no
31257 *-*-dragonfly* |
*-*-freebsd*)
31258 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31259 gcc_cv_target_dl_iterate_phdr
=yes
31261 gcc_cv_target_dl_iterate_phdr
=no
31265 gcc_cv_target_dl_iterate_phdr
=yes
31269 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31271 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31275 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31277 # We no longer support different GC mechanisms. Emit an error if
31278 # the user configures with --with-gc.
31280 # Check whether --with-gc was given.
31281 if test "${with_gc+set}" = set; then :
31282 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31286 # Libraries to use on the host. This will normally be set by the top
31287 # level Makefile. Here we simply capture the value for our Makefile.
31288 if test -z "${HOST_LIBS+set}"; then
31293 # Use the system's zlib library.
31295 # Use the system's zlib library.
31296 zlibdir
="-L\$(top_builddir)/../zlib"
31297 zlibinc
="-I\$(top_srcdir)/../zlib"
31299 # Check whether --with-system-zlib was given.
31300 if test "${with_system_zlib+set}" = set; then :
31301 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31314 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31315 # Check whether --enable-maintainer-mode was given.
31316 if test "${enable_maintainer_mode+set}" = set; then :
31317 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31324 $as_echo "$maintainer_mode" >&6; }
31326 if test "$maintainer_mode" = "yes"; then
31332 if test -z "$CTAGS"; then
31336 if test -z "$ETAGS"; then
31340 if test -z "$CSCOPE"; then
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31347 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31348 # Check whether --enable-link-mutex was given.
31349 if test "${enable_link_mutex+set}" = set; then :
31350 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31356 $as_echo "$do_link_mutex" >&6; }
31358 if test "$do_link_mutex" = "yes"; then
31361 DO_LINK_MUTEX
=false
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31367 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31368 # Check whether --enable-link-serialization was given.
31369 if test "${enable_link_serialization+set}" = set; then :
31370 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31372 do_link_serialization
=no
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31376 $as_echo "$do_link_serialization" >&6; }
31378 case "$do_link_serialization" in
31380 DO_LINK_SERIALIZATION
=1;;
31381 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31382 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31384 DO_LINK_SERIALIZATION
=;;
31386 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31394 # Make empty files to contain the specs and options for each language.
31395 # Then add #include lines to for a compiler that has specs and/or options.
31401 # These (without "all_") are set in each config-lang.in.
31402 # `language' must be a single word so is spelled singularly.
31405 all_outputs
='Makefile'
31406 # List of language configure and makefile fragments.
31407 all_lang_configurefrags
=
31408 all_lang_makefrags
=
31409 # Additional files for gengtype
31410 all_gtfiles
="$target_gtfiles"
31412 # These are the languages that are set in --enable-languages,
31413 # and are available in the GCC tree.
31414 all_selected_languages
=
31416 # Add the language fragments.
31417 # Languages are added via two mechanisms. Some information must be
31418 # recorded in makefile variables, these are defined in config-lang.in.
31419 # We accumulate them and plug them into the main Makefile.
31420 # The other mechanism is a set of hooks for each of the main targets
31421 # like `clean', `install', etc.
31423 language_hooks
="Make-hooks"
31425 for lang
in ${srcdir}/*/config-lang.
in
31427 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31429 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31430 if test "x$lang_alias" = x
31432 echo "$lang doesn't set \$language." 1>&2
31435 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31436 subdirs
="$subdirs $subdir"
31438 # $gcc_subdir is where the gcc integration files are to be found
31439 # for a language, both for internal compiler purposes (compiler
31440 # sources implementing front-end to GCC tree converters), and for
31441 # build infrastructure purposes (Make-lang.in, etc.)
31443 # This will be <subdir> (relative to $srcdir) if a line like
31444 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31445 # is found in <langdir>/config-lang.in, and will remain <langdir>
31448 # Except for the language alias (fetched above), the regular
31449 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31450 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31451 # only this and the language alias.
31453 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31454 if [ "$gcc_subdir" = "" ]; then
31455 gcc_subdir
="$subdir"
31458 case ",$enable_languages," in
31460 all_selected_languages
="$all_selected_languages $lang_alias"
31461 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31462 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31473 .
${srcdir}/$gcc_subdir/config-lang.
in
31474 if test "x$language" = x
31476 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31481 case ",$enable_languages," in
31482 *,$lang_alias,*) ;;
31484 for i
in $subdir_requires; do
31485 test -f "${srcdir}/$i/config-lang.in" && continue
31493 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31494 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31495 # Put c/Make-lang.in fragment first to match serialization languages order.
31496 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31498 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31500 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31501 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31502 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31504 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31505 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31507 all_languages
="$all_languages $language"
31508 all_compilers
="$all_compilers $compilers"
31509 all_outputs
="$all_outputs $outputs"
31510 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31511 case ",$enable_languages," in
31514 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31524 for language
in $all_selected_languages
31526 check_languages
="$check_languages check-$language"
31529 selftest_languages
=
31530 for language
in $all_selected_languages
31532 selftest_languages
="$selftest_languages selftest-$language"
31535 # We link each language in with a set of hooks, reached indirectly via
31536 # lang.${target}. Only do so for selected languages.
31540 target_list
="all.cross start.encap rest.encap tags \
31541 install-common install-man install-info install-dvi install-pdf \
31542 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31543 mostlyclean clean distclean maintainer-clean install-plugin"
31545 for t
in $target_list
31548 for lang
in $all_selected_languages
31552 echo "lang.$t: $x" >> Make-hooks
31555 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31556 echo "SERIAL_LIST =" >> Make-hooks
31557 echo else >> Make-hooks
31561 serialization_languages
=c
31562 for lang
in $all_selected_languages
31564 test $lang = c
&& continue
31565 if test $lang = lto
; then
31566 serialization_languages
="$serialization_languages lto1 lto2"
31568 serialization_languages
="$serialization_languages $lang"
31571 for lang
in $serialization_languages
31573 test $lang = c
&& continue
31574 lang_cnt
=`expr $lang_cnt + 1`
31575 lang_list
=" $prev$lang_list"
31578 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31579 echo endif
>> Make-hooks
31580 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31581 echo "INDEX.c = 0" >> Make-hooks
31583 for lang
in $serialization_languages
31585 test $lang = c
&& continue
31586 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31587 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31588 lang_cnt
=`expr $lang_cnt - 1`
31589 lang_idx
=`expr $lang_idx + 1`
31593 # Option include files
31596 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31597 option_includes
="option-includes.mk"
31606 echo "dir ." > .gdbinit
31607 echo "dir ${srcdir}" >> .gdbinit
31608 if test x
$gdb_needs_out_file_path = xyes
31610 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31612 if test "x$subdirs" != x
; then
31615 echo "dir ${srcdir}/$s" >> .gdbinit
31618 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31619 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31621 # Put a breakpoint on __asan_report_error to help with debugging buffer
31624 *-fsanitize=address
*)
31625 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31629 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31633 # Find a directory in which to install a shared libgcc.
31635 # Check whether --enable-version-specific-runtime-libs was given.
31636 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31637 enableval
=$enable_version_specific_runtime_libs;
31641 # Substitute configuration variables
31712 if test x
${build} = x
${host} ; then
31713 if test x
${host} = x
${target} ; then
31714 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31716 echo "Links are now set up to build a cross-compiler" 1>&2
31717 echo " from ${host} to ${target}." 1>&2
31720 if test x
${host} = x
${target} ; then
31721 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31722 echo " for ${target}." 1>&2
31724 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31725 echo " from ${host} to ${target}." 1>&2
31734 if test "x${ISLLIBS}" != "x" ; then
31736 $as_echo "#define HAVE_isl 1" >>confdefs.h
31740 # Check for plugin support
31741 # Check whether --enable-plugin was given.
31742 if test "${enable_plugin+set}" = set; then :
31743 enableval
=$enable_plugin; enable_plugin
=$enableval
31745 enable_plugin
=yes; default_plugin
=yes
31754 # Since plugin support under MinGW is not as straightforward as on
31755 # other platforms (e.g., we have to link import library, etc), we
31756 # only enable it if explicitly requested.
31757 if test x
"$default_plugin" = x
"yes"; then
31759 elif test x
"$enable_plugin" = x
"yes"; then
31760 # Use make's target variable to derive import library name.
31761 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31766 if test x
$build = x
$host; then
31767 export_sym_check
="nm${exeext} -g"
31768 elif test x
$host = x
$target; then
31769 export_sym_check
="$gcc_cv_nm -g"
31775 if test x
$build = x
$host; then
31776 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31777 elif test x
$host = x
$target; then
31778 export_sym_check
="$gcc_cv_objdump -T"
31785 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31788 $as_echo_n "checking for exported symbols... " >&6; }
31789 if test "x$export_sym_check" != x
; then
31790 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31791 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31792 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31793 : # No need to use a flag
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31795 $as_echo "yes" >&6; }
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31798 $as_echo "yes" >&6; }
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31800 $as_echo_n "checking for -rdynamic... " >&6; }
31801 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31802 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31803 plugin_rdynamic
=yes
31804 pluginlibs
="-rdynamic"
31809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31810 $as_echo "$plugin_rdynamic" >&6; }
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31814 $as_echo "unable to check" >&6; }
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31820 $as_echo_n "checking for library containing dlopen... " >&6; }
31821 if ${ac_cv_search_dlopen+:} false
; then :
31822 $as_echo_n "(cached) " >&6
31824 ac_func_search_save_LIBS
=$LIBS
31825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31828 /* Override any GCC internal prototype to avoid an error.
31829 Use char because int might match the return type of a GCC
31830 builtin and then its argument prototype would still apply. */
31843 for ac_lib
in '' dl
; do
31844 if test -z "$ac_lib"; then
31845 ac_res
="none required"
31848 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31850 if ac_fn_cxx_try_link
"$LINENO"; then :
31851 ac_cv_search_dlopen
=$ac_res
31853 rm -f core conftest.err conftest.
$ac_objext \
31855 if ${ac_cv_search_dlopen+:} false
; then :
31859 if ${ac_cv_search_dlopen+:} false
; then :
31862 ac_cv_search_dlopen
=no
31864 rm conftest.
$ac_ext
31865 LIBS
=$ac_func_search_save_LIBS
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31868 $as_echo "$ac_cv_search_dlopen" >&6; }
31869 ac_res
=$ac_cv_search_dlopen
31870 if test "$ac_res" != no
; then :
31871 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31875 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31876 pluginlibs
="$pluginlibs -ldl"
31880 # Check that we can build shared objects with -fPIC -shared
31881 saved_LDFLAGS
="$LDFLAGS"
31882 saved_CFLAGS
="$CFLAGS"
31883 saved_CXXFLAGS
="$CXXFLAGS"
31886 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31887 CFLAGS
="$CFLAGS -fPIC"
31888 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31889 CXXFLAGS
="$CXXFLAGS -fPIC"
31890 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31893 CFLAGS
="$CFLAGS -fPIC"
31894 CXXFLAGS
="$CXXFLAGS -fPIC"
31895 LDFLAGS
="$LDFLAGS -fPIC -shared"
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31899 $as_echo_n "checking for -fPIC -shared... " >&6; }
31900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h. */
31911 if ac_fn_cxx_try_link
"$LINENO"; then :
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31913 $as_echo "yes" >&6; }; have_pic_shared
=yes
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31916 $as_echo "no" >&6; }; have_pic_shared
=no
31918 rm -f core conftest.err conftest.
$ac_objext \
31919 conftest
$ac_exeext conftest.
$ac_ext
31920 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
31924 LDFLAGS
="$saved_LDFLAGS"
31925 CFLAGS
="$saved_CFLAGS"
31926 CXXFLAGS
="$saved_CXXFLAGS"
31928 # If plugin support had been requested but not available, fail.
31929 if test x
"$enable_plugin" = x
"no" ; then
31930 if test x
"$default_plugin" != x
"yes"; then
31932 Building GCC with plugin support requires a host that supports
31933 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31940 if test x
"$enable_plugin" = x
"yes"; then
31942 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31947 # Enable --enable-host-shared
31948 # Check whether --enable-host-shared was given.
31949 if test "${enable_host_shared+set}" = set; then :
31950 enableval
=$enable_host_shared; PICFLAG
=-fPIC
31959 # Check whether --enable-libquadmath-support was given.
31960 if test "${enable_libquadmath_support+set}" = set; then :
31961 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
31963 ENABLE_LIBQUADMATH_SUPPORT
=yes
31966 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31968 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31973 # Specify what hash style to use by default.
31975 # Check whether --with-linker-hash-style was given.
31976 if test "${with_linker_hash_style+set}" = set; then :
31977 withval
=$with_linker_hash_style; case x
"$withval" in
31979 LINKER_HASH_STYLE
=sysv
31982 LINKER_HASH_STYLE
=gnu
31985 LINKER_HASH_STYLE
=both
31988 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31992 LINKER_HASH_STYLE
=''
31995 if test x
"${LINKER_HASH_STYLE}" != x
; then
31997 cat >>confdefs.h
<<_ACEOF
31998 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32003 # Specify what should be the default of -fdiagnostics-color option.
32005 # Check whether --with-diagnostics-color was given.
32006 if test "${with_diagnostics_color+set}" = set; then :
32007 withval
=$with_diagnostics_color; case x
"$withval" in
32009 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32012 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32015 DIAGNOSTICS_COLOR_DEFAULT
=-1
32018 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32021 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32025 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32029 cat >>confdefs.h
<<_ACEOF
32030 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32034 # Specify what should be the default of -fdiagnostics-urls option.
32036 # Check whether --with-diagnostics-urls was given.
32037 if test "${with_diagnostics_urls+set}" = set; then :
32038 withval
=$with_diagnostics_urls; case x
"$withval" in
32040 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32043 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32046 DIAGNOSTICS_URLS_DEFAULT
=-1
32049 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32052 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32056 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32060 cat >>confdefs.h
<<_ACEOF
32061 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32065 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32066 # of jit/jit-playback.cc.
32067 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32068 echo "gcc_driver_version: ${gcc_driver_version}"
32069 cat > gcc-driver-name.h
<<EOF
32070 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32073 # Check whether --enable-default-pie was given.
32074 # Check whether --enable-default-pie was given.
32075 if test "${enable_default_pie+set}" = set; then :
32076 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32078 enable_default_pie
=no
32081 if test x
$enable_default_pie = xyes
; then
32083 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32088 # Check if -fno-PIE works.
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32090 $as_echo_n "checking for -fno-PIE option... " >&6; }
32091 if ${gcc_cv_c_no_fpie+:} false
; then :
32092 $as_echo_n "(cached) " >&6
32094 saved_CXXFLAGS
="$CXXFLAGS"
32095 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32097 /* end confdefs.h. */
32098 int main(void) {return 0;}
32100 if ac_fn_cxx_try_compile
"$LINENO"; then :
32101 gcc_cv_c_no_fpie
=yes
32103 gcc_cv_c_no_fpie
=no
32105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32106 CXXFLAGS
="$saved_CXXFLAGS"
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32109 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32110 if test "$gcc_cv_c_no_fpie" = "yes"; then
32111 NO_PIE_CFLAGS
="-fno-PIE"
32115 # Check if -no-pie works.
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32117 $as_echo_n "checking for -no-pie option... " >&6; }
32118 if ${gcc_cv_no_pie+:} false
; then :
32119 $as_echo_n "(cached) " >&6
32121 saved_LDFLAGS
="$LDFLAGS"
32122 LDFLAGS
="$LDFLAGS -no-pie"
32123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32124 /* end confdefs.h. */
32125 int main(void) {return 0;}
32127 if ac_fn_cxx_try_link
"$LINENO"; then :
32132 rm -f core conftest.err conftest.
$ac_objext \
32133 conftest
$ac_exeext conftest.
$ac_ext
32134 LDFLAGS
="$saved_LDFLAGS"
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32137 $as_echo "$gcc_cv_no_pie" >&6; }
32138 if test "$gcc_cv_no_pie" = "yes"; then
32139 NO_PIE_FLAG
="-no-pie"
32143 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32144 # Check whether --enable-cet was given.
32145 if test "${enable_cet+set}" = set; then :
32146 enableval
=$enable_cet;
32147 case "$enableval" in
32149 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32158 $as_echo_n "checking for CET support... " >&6; }
32161 i
[34567]86-*-linux* | x86_64-
*-linux*)
32163 cet_save_CFLAGS
="$CFLAGS"
32164 CFLAGS
="$CFLAGS -fcf-protection"
32165 case "$enable_cet" in
32167 # Check if target supports multi-byte NOPs
32168 # and if compiler and assembler support CET.
32169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32170 /* end confdefs.h. */
32176 #if !defined(__SSE2__)
32177 #error target does not support multi-byte NOPs
32186 if ac_fn_cxx_try_compile
"$LINENO"; then :
32191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32194 # Check if compiler and assembler support CET.
32195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32196 /* end confdefs.h. */
32206 if ac_fn_cxx_try_compile
"$LINENO"; then :
32211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32212 if test $support_cet = "no"; then
32213 if test x
$enable_bootstrap != xno \
32214 && test -z "${with_build_subdir}" \
32215 && (test ! -f ..
/stage_current \
32216 ||
test `cat ../stage_current` != "stage1"); then
32217 # Require CET support only for the final GCC build.
32218 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32220 # Don't enable CET without CET support for non-bootstrap
32221 # build, in stage1 nor for build support.
32227 CFLAGS
="$cet_save_CFLAGS"
32235 cet_save_CFLAGS
="$CFLAGS"
32236 CFLAGS
="$CFLAGS -fcf-protection=none"
32237 cet_save_LDFLAGS
="$LDFLAGS"
32238 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32239 if test x
$may_have_cet = xyes
; then
32240 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32242 /* end confdefs.h. */
32252 if ac_fn_cxx_try_link
"$LINENO"; then :
32257 rm -f core conftest.err conftest.
$ac_objext \
32258 conftest
$ac_exeext conftest.
$ac_ext
32261 if test x
$may_have_cet = xyes
; then
32262 if test x
$cross_compiling = xno
; then
32263 if test "$cross_compiling" = yes; then :
32264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32266 as_fn_error $?
"cannot run test program while cross compiling
32267 See \`config.log' for more details" "$LINENO" 5; }
32269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32270 /* end confdefs.h. */
32280 if ac_fn_cxx_try_run
"$LINENO"; then :
32281 have_multi_byte_nop
=yes
32283 have_multi_byte_nop
=no
32285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32290 if test x
$have_multi_byte_nop = xyes
; then
32291 if test "$cross_compiling" = yes; then :
32292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32294 as_fn_error $?
"cannot run test program while cross compiling
32295 See \`config.log' for more details" "$LINENO" 5; }
32297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32298 /* end confdefs.h. */
32306 __attribute__ ((noinline, noclone))
32307 xxx (void (*f) (void))
32313 __attribute__ ((noinline, noclone))
32327 if ac_fn_cxx_try_run
"$LINENO"; then :
32332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32337 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32338 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32342 # Enable CET in cross compiler if possible so that it will run on both
32343 # CET and non-CET hosts.
32346 if test x
$enable_cet = xyes
; then
32347 CET_HOST_FLAGS
="-fcf-protection"
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32349 $as_echo "yes" >&6; }
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32352 $as_echo "no" >&6; }
32354 CFLAGS
="$cet_save_CFLAGS"
32355 LDFLAGS
="$cet_save_LDFLAGS"
32357 case x
$enable_languages in
32366 # Check linker supports '-z bndplt'
32367 ld_bndplt_support
=no
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32369 $as_echo_n "checking linker -z bndplt option... " >&6; }
32370 if test x
"$ld_is_gold" = xno
; then
32371 if test $in_tree_ld = yes ; then
32372 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
32373 ld_bndplt_support
=yes
32375 elif test x
$gcc_cv_ld != x
; then
32376 # Check if linker supports -a bndplt option
32377 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32378 ld_bndplt_support
=yes
32382 if test x
"$ld_bndplt_support" = xyes
; then
32384 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32388 $as_echo "$ld_bndplt_support" >&6; }
32390 # Check linker supports '--push-state'/'--pop-state'
32391 ld_pushpopstate_support
=no
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32393 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32394 if test x
"$ld_is_gold" = xno
; then
32395 if test $in_tree_ld = yes ; then
32396 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
32397 ld_pushpopstate_support
=yes
32399 elif test x
$gcc_cv_ld != x
; then
32400 # Check if linker supports --push-state/--pop-state options
32401 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32402 ld_pushpopstate_support
=yes
32406 if test x
"$ld_pushpopstate_support" = xyes
; then
32408 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32412 $as_echo "$ld_pushpopstate_support" >&6; }
32414 # On s390, float_t has historically been statically defined as double for no
32415 # good reason. To comply with the C standard in the light of this definition,
32416 # gcc has evaluated float expressions in double precision when in
32417 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32418 # a smooth transition towards the new model used by most architectures, where
32419 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32420 # float_t from that, this behavior can be configured with
32421 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32422 # the old model. When omitted, native builds and cross compiles that have target
32423 # libc headers will detect whether libc clamps float_t to double and in that
32424 # case maintain the old model. Otherwise, they will default to the new model.
32425 # Check whether --enable-s390-excess-float-precision was given.
32426 if test "${enable_s390_excess_float_precision+set}" = set; then :
32427 enableval
=$enable_s390_excess_float_precision;
32429 enable_s390_excess_float_precision
=auto
32435 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32436 # Can we autodetect the behavior of the target libc?
32437 if test "$target" = "$host" -a "$host" = "$build"; then
32438 enable_s390_excess_float_precision
=autodetect
32439 elif test "x$with_headers" != xno
; then
32440 # cross build. are target headers available?
32441 # carefully coerce the build-system compiler to use target headers
32442 saved_CXXFLAGS
="$CXXFLAGS"
32443 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32444 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32445 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32447 /* end confdefs.h. */
32452 if ac_fn_cxx_try_compile
"$LINENO"; then :
32453 enable_s390_excess_float_precision
=autodetect
32455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32456 CXXFLAGS
="$saved_CXXFLAGS"
32459 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32460 saved_CXXFLAGS
="$CXXFLAGS"
32461 if ! test "$target" = "$host" -a "$host" = "$build"; then
32462 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32463 unset CROSS_TEST_CXXFLAGS
32465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32466 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32467 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32468 $as_echo_n "(cached) " >&6
32471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32472 /* end confdefs.h. */
32474 #define __FLT_EVAL_METHOD__ 0
32476 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32479 if ac_fn_cxx_try_compile
"$LINENO"; then :
32480 gcc_cv_float_t_clamped_to_double
=yes
32482 gcc_cv_float_t_clamped_to_double
=no
32484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32487 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32488 CXXFLAGS
="$saved_CXXFLAGS"
32489 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32491 # no way to detect behavior of target libc, default to new model
32492 enable_s390_excess_float_precision
=no
32497 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32499 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32505 # Configure the subdirectories
32506 # AC_CONFIG_SUBDIRS($subdirs)
32508 # Create the Makefile
32509 # and configure language subdirectories
32510 ac_config_files
="$ac_config_files $all_outputs"
32513 ac_config_commands
="$ac_config_commands default"
32515 cat >confcache
<<\_ACEOF
32516 # This file is a shell script that caches the results of configure
32517 # tests run on this system so they can be shared between configure
32518 # scripts and configure runs, see configure's option --config-cache.
32519 # It is not useful on other systems. If it contains results you don't
32520 # want to keep, you may remove or edit it.
32522 # config.status only pays attention to the cache file if you give it
32523 # the --recheck option to rerun configure.
32525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32527 # following values.
32531 # The following way of writing the cache mishandles newlines in values,
32532 # but we know of no workaround that is simple, portable, and efficient.
32533 # So, we kill variables containing newlines.
32534 # Ultrix sh set writes to stderr and can't be redirected directly,
32535 # and sets the high bit in the cache file unless we assign to the vars.
32537 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32538 eval ac_val
=\$
$ac_var
32542 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32546 _ | IFS | as_nl
) ;; #(
32547 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32548 *) { eval $ac_var=; unset $ac_var;} ;;
32554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32555 *${as_nl}ac_space
=\
*)
32556 # `set' does not quote correctly, so add quotes: double-quote
32557 # substitution turns \\\\ into \\, and sed turns \\ into \.
32560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32563 # `set' quotes correctly as required by POSIX, so do not add quotes.
32564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32577 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32578 if test -w "$cache_file"; then
32579 if test "x$cache_file" != "x/dev/null"; then
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32581 $as_echo "$as_me: updating cache $cache_file" >&6;}
32582 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32583 cat confcache
>"$cache_file"
32585 case $cache_file in #(
32587 mv -f confcache
"$cache_file"$$
&&
32588 mv -f "$cache_file"$$
"$cache_file" ;; #(
32590 mv -f confcache
"$cache_file" ;;
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32601 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32602 # Let make expand exec_prefix.
32603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32605 DEFS
=-DHAVE_CONFIG_H
32610 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32611 # 1. Remove the extension, and $U if already installed.
32612 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32613 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32615 # will be set to the directory where LIBOBJS objects are built.
32616 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32617 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32619 LIBOBJS
=$ac_libobjs
32621 LTLIBOBJS
=$ac_ltlibobjs
32626 : "${CONFIG_STATUS=./config.status}"
32628 ac_clean_files_save
=$ac_clean_files
32629 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32635 # Generated by $as_me.
32636 # Run this file to recreate the current configuration.
32637 # Compiler output produced by configure, useful for debugging
32638 # configure, is in config.log if it exists.
32641 ac_cs_recheck=false
32644 SHELL=\${CONFIG_SHELL-$SHELL}
32647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32648 ## -------------------- ##
32649 ## M4sh Initialization. ##
32650 ## -------------------- ##
32652 # Be more Bourne compatible
32653 DUALCASE
=1; export DUALCASE
# for MKS sh
32654 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32658 # is contrary to our usage. Disable this feature.
32659 alias -g '${1+"$@"}'='"$@"'
32660 setopt NO_GLOB_SUBST
32662 case `(set -o) 2>/dev/null` in #(
32674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32675 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32678 # Prefer a ksh shell builtin over an external printf program on Solaris,
32679 # but without wasting forks for bash or zsh.
32680 if test -z "$BASH_VERSION$ZSH_VERSION" \
32681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32682 as_echo='print
-r --'
32683 as_echo_n='print
-rn --'
32684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32685 as_echo='printf %s
\n'
32686 as_echo_n='printf %s
'
32688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32689 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32690 as_echo_n='/usr
/ucb
/echo -n'
32692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32693 as_echo_n_body='eval
32697 expr "X$arg" : "X\\(.*\\)$as_nl";
32698 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32700 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32702 export as_echo_n_body
32703 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32705 export as_echo_body
32706 as_echo='sh
-c $as_echo_body as_echo
'
32709 # The user is always right.
32710 if test "${PATH_SEPARATOR+set}" != set; then
32712 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32713 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32720 # We need space, tab and new line, in precisely that order. Quoting is
32721 # there to prevent editors from complaining about space-tab.
32722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32723 # splitting by setting IFS to empty value.)
32726 # Find who we are. Look in the path if we contain no directory separator.
32729 *[\\/]* ) as_myself=$0 ;;
32730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731 for as_dir in $PATH
32734 test -z "$as_dir" && as_dir=.
32735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32741 # We did not find ourselves, most probably we were run as `sh COMMAND'
32742 # in which case we are not to be found in the path.
32743 if test "x$as_myself" = x
; then
32746 if test ! -f "$as_myself"; then
32747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32751 # Unset variables that we do not need and which cause bugs (e.g. in
32752 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32753 # suppresses any "Segmentation fault" message there. '((' could
32754 # trigger a bug in pdksh 5.2.14.
32755 for as_var
in BASH_ENV ENV MAIL MAILPATH
32756 do eval test x\
${$as_var+set} = xset \
32757 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32770 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32774 # ----------------------------------------
32775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32777 # script with STATUS, using 1 if that was 0.
32780 as_status
=$1; test $as_status -eq 0 && as_status
=1
32782 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32783 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32785 $as_echo "$as_me: error: $2" >&2
32786 as_fn_exit
$as_status
32790 # as_fn_set_status STATUS
32791 # -----------------------
32792 # Set $? to STATUS, without forking.
32793 as_fn_set_status
()
32796 } # as_fn_set_status
32798 # as_fn_exit STATUS
32799 # -----------------
32800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32804 as_fn_set_status
$1
32810 # Portably unset VAR.
32813 { eval $1=; unset $1;}
32815 as_unset
=as_fn_unset
32816 # as_fn_append VAR VALUE
32817 # ----------------------
32818 # Append the text in VALUE to the end of the definition contained in VAR. Take
32819 # advantage of any shell optimizations that allow amortized linear growth over
32820 # repeated appends, instead of the typical quadratic growth present in naive
32822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32823 eval 'as_fn_append ()
32834 # as_fn_arith ARG...
32835 # ------------------
32836 # Perform arithmetic evaluation on the ARGs, and store the result in the
32837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32838 # must be portable across $(()) and expr.
32839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32840 eval 'as_fn_arith ()
32847 as_val
=`expr "$@" || test $? -eq 1`
32852 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32853 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32859 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32860 as_basename
=basename
32865 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32871 as_me
=`$as_basename -- "$0" ||
32872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32873 X"$0" : 'X\(//\)$' \| \
32874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32876 sed '/^.*\/\([^/][^/]*\)\/*$/{
32890 # Avoid depending upon Character Ranges.
32891 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32892 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32893 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32894 as_cr_digits
='0123456789'
32895 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32897 ECHO_C
= ECHO_N
= ECHO_T
=
32898 case `echo -n x` in #(((((
32900 case `echo 'xy\c'` in
32901 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32903 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32910 rm -f conf$$ conf$$.exe conf$$.
file
32911 if test -d conf$$.dir
; then
32912 rm -f conf$$.dir
/conf$$.
file
32915 mkdir conf$$.dir
2>/dev
/null
32917 if (echo >conf$$.
file) 2>/dev
/null
; then
32918 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32920 # ... but there are two gotchas:
32921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32923 # In both cases, we have to default to `cp -pR'.
32924 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32926 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32934 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32935 rmdir conf$$.dir
2>/dev
/null
32940 # Create "$as_dir" as a directory, including parents if necessary.
32945 -*) as_dir
=.
/$as_dir;;
32947 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32951 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32952 *) as_qdir
=$as_dir;;
32954 as_dirs
="'$as_qdir' $as_dirs"
32955 as_dir
=`$as_dirname -- "$as_dir" ||
32956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32957 X"$as_dir" : 'X\(//\)[^/]' \| \
32958 X"$as_dir" : 'X\(//\)$' \| \
32959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32960 $as_echo X"$as_dir" |
32961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32965 /^X\(\/\/\)[^/].*/{
32978 test -d "$as_dir" && break
32980 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32981 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32985 if mkdir
-p .
2>/dev
/null
; then
32986 as_mkdir_p
='mkdir -p "$as_dir"'
32988 test -d .
/-p && rmdir .
/-p
32993 # as_fn_executable_p FILE
32994 # -----------------------
32995 # Test if FILE is an executable regular file.
32996 as_fn_executable_p
()
32998 test -f "$1" && test -x "$1"
32999 } # as_fn_executable_p
33000 as_test_x
='test -x'
33001 as_executable_p
=as_fn_executable_p
33003 # Sed expression to map a string onto a valid CPP name.
33004 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33006 # Sed expression to map a string onto a valid variable name.
33007 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33011 ## ----------------------------------- ##
33012 ## Main body of $CONFIG_STATUS script. ##
33013 ## ----------------------------------- ##
33015 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33018 # Save the log message, to keep $0 and so on meaningful, and to
33019 # report actual input values of CONFIG_FILES etc. instead of their
33020 # values after options handling.
33022 This file was extended by $as_me, which was
33023 generated by GNU Autoconf 2.69. Invocation command line was
33025 CONFIG_FILES = $CONFIG_FILES
33026 CONFIG_HEADERS = $CONFIG_HEADERS
33027 CONFIG_LINKS = $CONFIG_LINKS
33028 CONFIG_COMMANDS = $CONFIG_COMMANDS
33031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33036 case $ac_config_files in *"
33037 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33040 case $ac_config_headers in *"
33041 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33046 # Files that config.status was made for.
33047 config_files="$ac_config_files"
33048 config_headers="$ac_config_headers"
33049 config_links="$ac_config_links"
33050 config_commands="$ac_config_commands"
33054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33056 \`$as_me' instantiates files and other configuration actions
33057 from templates according to the current configuration. Unless the files
33058 and actions are specified as TAGs, all are instantiated by default.
33060 Usage: $0 [OPTION]... [TAG]...
33062 -h, --help print this help, then exit
33063 -V, --version print version number and configuration settings, then exit
33064 --config print configuration, then exit
33065 -q, --quiet, --silent
33066 do not print progress messages
33067 -d, --debug don't remove temporary files
33068 --recheck update $as_me by reconfiguring in the same conditions
33069 --file=FILE[:TEMPLATE]
33070 instantiate the configuration file FILE
33071 --header=FILE[:TEMPLATE]
33072 instantiate the configuration header FILE
33074 Configuration files:
33077 Configuration headers:
33080 Configuration links:
33083 Configuration commands:
33086 Report bugs to the package provider."
33089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33093 configured by $0, generated by GNU Autoconf 2.69,
33094 with options \\"\$ac_cs_config\\"
33096 Copyright (C) 2012 Free Software Foundation, Inc.
33097 This config.status script is free software; the Free Software Foundation
33098 gives unlimited permission to copy, distribute and modify it."
33103 test -n "\$AWK" || AWK=awk
33106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33107 # The default lists apply if the user does not specify any file.
33113 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33114 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33118 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33130 # Handling of the options.
33131 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33133 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33134 $as_echo "$ac_cs_version"; exit ;;
33135 --config |
--confi |
--conf |
--con |
--co |
--c )
33136 $as_echo "$ac_cs_config"; exit ;;
33137 --debug |
--debu |
--deb |
--de |
--d |
-d )
33139 --file |
--fil |
--fi |
--f )
33142 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33143 '') as_fn_error $?
"missing file argument" ;;
33145 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33146 ac_need_defaults
=false
;;
33147 --header |
--heade |
--head |
--hea )
33150 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33152 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33153 ac_need_defaults
=false
;;
33155 # Conflict between --help and --header
33156 as_fn_error $?
"ambiguous option: \`$1'
33157 Try \`$0 --help' for more information.";;
33158 --help |
--hel |
-h )
33159 $as_echo "$ac_cs_usage"; exit ;;
33160 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33161 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33164 # This is an error.
33165 -*) as_fn_error $?
"unrecognized option: \`$1'
33166 Try \`$0 --help' for more information." ;;
33168 *) as_fn_append ac_config_targets
" $1"
33169 ac_need_defaults
=false
;;
33175 ac_configure_extra_args
=
33177 if $ac_cs_silent; then
33179 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33184 if \$ac_cs_recheck; then
33185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33188 CONFIG_SHELL='$SHELL'
33189 export CONFIG_SHELL
33194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33199 ## Running $as_me. ##
33205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33209 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33210 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33217 # Handling of arguments.
33218 for ac_config_target
in $ac_config_targets
33220 case $ac_config_target in
33221 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33222 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33223 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33224 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33225 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33226 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33227 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33228 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33229 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33230 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33232 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33237 # If the user did not use the arguments to specify the items to instantiate,
33238 # then the envvar interface is used. Set only those that are not.
33239 # We use the long form for the default assignment because of an extremely
33240 # bizarre bug on SunOS 4.1.3.
33241 if $ac_need_defaults; then
33242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33244 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33248 # Have a temporary directory for convenience. Make it in the build tree
33249 # simply because there is no reason against having it here, and in addition,
33250 # creating and moving files from /tmp can sometimes cause problems.
33251 # Hook for its removal unless debugging.
33252 # Note that there is a small window in which the directory will not be cleaned:
33253 # after its creation but before its name has been assigned to `$tmp'.
33257 trap 'exit_status=$?
33258 : "${ac_tmp:=$tmp}"
33259 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33261 trap 'as_fn_exit 1' 1 2 13 15
33263 # Create a (secure) tmp directory for tmp files.
33266 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33270 tmp
=.
/conf$$
-$RANDOM
33271 (umask 077 && mkdir
"$tmp")
33272 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33275 # Set up the scripts for CONFIG_FILES section.
33276 # No need to generate them if there are no CONFIG_FILES.
33277 # This happens for instance with `./config.status config.h'.
33278 if test -n "$CONFIG_FILES"; then
33280 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33281 ac_cs_awk_getline
=:
33282 ac_cs_awk_pipe_init
=
33283 ac_cs_awk_read_file
='
33284 while ((getline aline < (F[key])) > 0)
33287 ac_cs_awk_pipe_fini
=
33289 ac_cs_awk_getline
=false
33290 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33291 ac_cs_awk_read_file
='
33293 print "cat " F[key] " &&"
33294 '$ac_cs_awk_pipe_init
33295 # The final `:' finishes the AND list.
33296 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33298 ac_cr
=`echo X | tr X '\015'`
33299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33300 # But we know of no other shell where ac_cr would be empty at this
33301 # point, so we can use a bashism as a fallback.
33302 if test "x$ac_cr" = x
; then
33303 eval ac_cr
=\$
\'\\r
\'
33305 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33309 ac_cs_awk_cr
=$ac_cr
33312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33315 # Create commands to substitute file output variables.
33317 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33318 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33319 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33322 } >conf$
$files.sh
&&
33323 . .
/conf$
$files.sh ||
33324 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33325 rm -f conf$
$files.sh
33328 echo "cat >conf$$subs.awk <<_ACEOF" &&
33329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33331 } >conf$$subs.sh ||
33332 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33333 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33335 for ac_last_try in false false false false false :; do
33336 . ./conf$$subs.sh ||
33337 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33339 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33340 if test $ac_delim_n = $ac_delim_num; then
33342 elif $ac_last_try; then
33343 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33345 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33348 rm -f conf$$subs.sh
33350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33351 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33355 s/^/S["/; s
/!.
*/"]=/
33365 s/\(.\{148\}\)..*/\1/
33367 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33372 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33379 s/\(.\{148\}\)..*/\1/
33381 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33385 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33390 ' <conf$$subs.awk | sed '
33395 ' >>$CONFIG_STATUS || ac_write_fail=1
33396 rm -f conf$$subs.awk
33397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33399 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33400 for (key in S) S_is_set[key] = 1
33402 \$ac_cs_awk_pipe_init
33406 nfields = split(line, field, "@
")
33408 len = length(field[1])
33409 for (i = 2; i < nfields; i++) {
33411 keylen = length(key)
33412 if (S_is_set[key]) {
33414 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33415 len += length(value) + length(field[++i])
33420 if (nfields == 3 && !substed) {
33422 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33423 \$ac_cs_awk_read_file
33429 \$ac_cs_awk_pipe_fini
33432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33433 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33434 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33437 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33438 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33441 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33442 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33443 # trailing colons and then remove the whole line if VPATH becomes empty
33444 # (actually we leave an empty line to preserve line numbers).
33445 if test "x
$srcdir" = x.; then
33446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33465 fi # test -n "$CONFIG_FILES"
33467 # Set up the scripts for CONFIG_HEADERS section.
33468 # No need to generate them if there are no CONFIG_HEADERS.
33469 # This happens for instance with `./config.status Makefile'.
33470 if test -n "$CONFIG_HEADERS"; then
33471 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33475 # Transform confdefs.h into an awk script `defines.awk', embedded as
33476 # here-document in config.status, that substitutes the proper values into
33477 # config.h.in to produce config.h.
33479 # Create a delimiter string that does not exist in confdefs.h, to ease
33480 # handling of long lines.
33482 for ac_last_try in false false :; do
33483 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33484 if test -z "$ac_tt"; then
33486 elif $ac_last_try; then
33487 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33489 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33493 # For the awk script, D is an array of macro values keyed by name,
33494 # likewise P contains macro parameters if any. Preserve backslash
33495 # newline sequences.
33497 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33499 s/.\{148\}/&'"$ac_delim"'/g
33502 s/^[ ]*#[ ]*define[ ][ ]*/ /
33509 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33511 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33516 D["\
1"]=" \
3\\\\\\n
"\\/p
33518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33523 s/.\{148\}/&'"$ac_delim"'/g
33528 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33531 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33533 ' <confdefs.h | sed '
33534 s/'"$ac_delim"'/"\\\
33535 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33538 for (key in D) D_is_set[key] = 1
33541 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33543 split(line, arg, " ")
33544 if (arg[1] == "#") {
33548 defundef
= substr
(arg
[1], 2)
33551 split(mac1
, mac2
, "(") #)
33553 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33554 if (D_is_set
[macro
]) {
33555 # Preserve the white space surrounding the "#".
33556 print prefix
"define", macro P
[macro
] D
[macro
]
33559 # Replace #undef with comments. This is necessary, for example,
33560 # in the case of _POSIX_SOURCE, which is predefined and required
33561 # on some systems where configure will not decide to define it.
33562 if (defundef
== "undef") {
33563 print
"/*", prefix defundef
, macro
, "*/"
33571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33572 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33573 fi # test -n "$CONFIG_HEADERS"
33576 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33581 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33583 case $ac_mode$ac_tag in
33585 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33586 :[FH
]-) ac_tag
=-:-;;
33587 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33604 -) ac_f
="$ac_tmp/stdin";;
33605 *) # Look for the file first in the build tree, then in the source tree
33606 # (if the path is not absolute). The absolute path cannot be DOS-style,
33607 # because $ac_f cannot contain `:'.
33611 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33613 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33615 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33616 as_fn_append ac_file_inputs
" '$ac_f'"
33619 # Let's still pretend it is `configure' which instantiates (i.e., don't
33620 # use $as_me), people would be surprised to read:
33621 # /* config.h. Generated by config.status. */
33622 configure_input
='Generated from '`
33623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33625 if test x
"$ac_file" != x-
; then
33626 configure_input
="$ac_file. $configure_input"
33627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33628 $as_echo "$as_me: creating $ac_file" >&6;}
33630 # Neutralize special characters interpreted by sed in replacement strings.
33631 case $configure_input in #(
33632 *\
&* |
*\|
* |
*\\* )
33633 ac_sed_conf_input
=`$as_echo "$configure_input" |
33634 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33635 *) ac_sed_conf_input
=$configure_input;;
33639 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33640 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33645 ac_dir
=`$as_dirname -- "$ac_file" ||
33646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33647 X"$ac_file" : 'X\(//\)[^/]' \| \
33648 X"$ac_file" : 'X\(//\)$' \| \
33649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33650 $as_echo X"$ac_file" |
33651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33655 /^X\(\/\/\)[^/].*/{
33668 as_dir
="$ac_dir"; as_fn_mkdir_p
33672 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33674 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33675 # A ".." for each directory in $ac_dir_suffix.
33676 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33677 case $ac_top_builddir_sub in
33678 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33679 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33682 ac_abs_top_builddir
=$ac_pwd
33683 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33684 # for backward compatibility:
33685 ac_top_builddir
=$ac_top_build_prefix
33688 .
) # We are building in place.
33690 ac_top_srcdir
=$ac_top_builddir_sub
33691 ac_abs_top_srcdir
=$ac_pwd ;;
33692 [\\/]* | ?
:[\\/]* ) # Absolute name.
33693 ac_srcdir
=$srcdir$ac_dir_suffix;
33694 ac_top_srcdir
=$srcdir
33695 ac_abs_top_srcdir
=$srcdir ;;
33696 *) # Relative name.
33697 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33698 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33699 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33701 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33713 # If the template does not know about datarootdir, expand it.
33714 # FIXME: This hack should be removed a few years after 2.60.
33715 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33727 *datarootdir
*) ac_datarootdir_seen
=yes;;
33728 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33733 ac_datarootdir_hack='
33734 s&@datadir@&$datadir&g
33735 s&@docdir@&$docdir&g
33736 s&@infodir@&$infodir&g
33737 s&@localedir@&$localedir&g
33738 s&@mandir@&$mandir&g
33739 s&\\\${datarootdir}&$datarootdir&g' ;;
33743 # Neutralize VPATH when `$srcdir' = `.'.
33744 # Shell code in configure.ac might set extrasub.
33745 # FIXME: do we really want to maintain this feature?
33746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33747 ac_sed_extra="$ac_vpsub
33750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33752 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33753 s|@configure_input@|
$ac_sed_conf_input|
;t t
33754 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33755 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33756 s
&@srcdir@
&$ac_srcdir&;t t
33757 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33758 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33759 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33760 s
&@builddir@
&$ac_builddir&;t t
33761 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33762 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33763 $ac_datarootdir_hack
33765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33766 if $ac_cs_awk_getline; then
33767 $AWK -f "$ac_tmp/subs.
awk"
33769 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33771 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33774 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33776 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33778 which seems to be undefined. Please make sure it is defined" >&5
33779 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33780 which seems to be undefined. Please make sure it is defined" >&2;}
33782 rm -f "$ac_tmp/stdin"
33784 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33785 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33793 if test x"$ac_file" != x-; then
33795 $as_echo "/* $configure_input */" \
33796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33797 } >"$ac_tmp/config.h" \
33798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33799 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33801 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33804 mv "$ac_tmp/config.h" "$ac_file" \
33805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33808 $as_echo "/* $configure_input */" \
33809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33810 || as_fn_error $? "could not create -" "$LINENO" 5
33818 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33821 # Prefer the file from the source tree if names are identical.
33822 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33823 ac_source=$srcdir/$ac_source
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33827 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33829 if test ! -r "$ac_source"; then
33830 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33834 # Try a relative symlink, then a hard link, then a copy.
33836 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33837 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33839 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33840 ln "$ac_source" "$ac_file" 2>/dev/null ||
33841 cp -p "$ac_source" "$ac_file" ||
33842 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33846 $as_echo "$as_me: executing $ac_file commands" >&6;}
33851 case $ac_file$ac_mode in
33852 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33854 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33855 for lang in $subdirs c-family common analyzer rtl-ssa
33857 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33859 "as":F) chmod +x as ;;
33860 "collect-ld":F) chmod +x collect-ld ;;
33861 "nm":F) chmod +x nm ;;
33862 "dsymutil":F) chmod +x dsymutil ;;
33864 case ${CONFIG_HEADERS} in
33865 *auto-host.h:config.in*)
33868 # Make sure all the subdirs exist.
33869 for d in $subdirs doc build common c-family
33871 test -d $d || mkdir $d
33881 ac_clean_files=$ac_clean_files_save
33883 test $ac_write_fail = 0 ||
33884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33887 # configure is writing to config.log, and then calls config.status.
33888 # config.status does its own redirection, appending to config.log.
33889 # Unfortunately, on DOS this fails, as config.log is still kept open
33890 # by configure, so config.status won't be able to
write to it
; its
33891 # output is simply discarded. So we exec the FD to /dev/null,
33892 # effectively closing config.log, so it can be properly (re)opened and
33893 # appended to by config.status. When coming back to configure, we
33894 # need to make the FD available again.
33895 if test "$no_create" != yes; then
33897 ac_config_status_args
=
33898 test "$silent" = yes &&
33899 ac_config_status_args
="$ac_config_status_args --quiet"
33901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33904 # would make configure fail if this is the last instruction.
33905 $ac_cs_success || as_fn_exit
1
33907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}