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
666 common_out_object_file
682 gcc_gxx_libcxx_include_dir_add_sysroot
683 gcc_gxx_libcxx_include_dir
684 gcc_gxx_include_dir_add_sysroot
691 user_headers_inc_next_post
692 user_headers_inc_next_pre
694 TM_MULTILIB_EXCEPTIONS_CONFIG
704 build_xm_include_list
706 build_install_headers_dir
708 all_selected_languages
711 all_lang_configurefrags
719 DO_LINK_SERIALIZATION
731 ld_version_script_option
733 ORIGINAL_DSYMUTIL_FOR_TARGET
738 ORIGINAL_NM_FOR_TARGET
740 ORIGINAL_LD_GOLD_FOR_TARGET
741 ORIGINAL_LD_BFD_FOR_TARGET
742 ORIGINAL_LD_FOR_TARGET
743 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 ORIGINAL_AS_FOR_TARGET
747 ENABLE_DARWIN_AT_RPATH_FALSE
748 ENABLE_DARWIN_AT_RPATH_TRUE
772 BUILD_SYSTEM_HEADER_DIR
792 NATIVE_SYSTEM_HEADER_DIR
819 MAKEINFO_TOC_INLINE_FLAG
833 omp_device_property_deps
834 omp_device_properties
836 real_target_noncanonical
837 enable_as_accelerator
847 DEFAULT_MATCHPD_PARTITIONS
854 valgrind_path_defines
886 CROSS_SYSTEM_HEADER_DIR
887 TARGET_SYSTEM_ROOT_DEFINE
889 SYSROOT_CFLAGS_FOR_TARGET
935 program_transform_name
946 ac_subst_files
='option_includes
949 enable_option_checking
952 with_native_system_header_dir
956 with_gxx_libcxx_include_dir
958 enable_generated_files_in_srcdir
966 enable_build_format_warnings
970 enable_gather_detailed_mem_stats
971 enable_valgrind_annotations
974 with_stack_clash_protection_guard_size
975 with_matchpd_partitions
990 with_documentation_root_url
991 with_changes_root_url
994 with_multilib_generator
1001 enable_sjlj_exceptions
1002 with_gcc_major_version_only
1004 enable_mingw_wildcard
1005 enable_large_address_aware
1006 enable_leading_mingw64_underscores
1008 enable_frame_pointer
1009 enable_win32_registry
1014 enable_darwin_at_rpath
1015 with_darwin_extra_rpath
1019 enable_gnu_indirect_function
1020 enable_initfini_array
1022 enable_newlib_nano_formatted_io
1023 enable_standard_branch_protection
1024 enable_fix_cortex_a53_835769
1025 enable_fix_cortex_a53_843419
1027 enable_gnu_unique_object
1028 enable_linker_build_id
1031 with_long_double_128
1032 with_long_double_format
1035 enable_maintainer_mode
1037 enable_link_serialization
1038 enable_version_specific_runtime_libs
1042 enable_host_bind_now
1043 enable_libquadmath_support
1044 with_linker_hash_style
1045 with_diagnostics_color
1046 with_diagnostics_urls
1049 enable_s390_excess_float_precision
1051 ac_precious_vars
='build_alias
1070 # Initialize some variables set by options.
1072 ac_init_version
=false
1073 ac_unrecognized_opts
=
1074 ac_unrecognized_sep
=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file
=/dev
/null
1084 program_transform_name
=s
,x
,x
,
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir
='${exec_prefix}/bin'
1099 sbindir
='${exec_prefix}/sbin'
1100 libexecdir
='${exec_prefix}/libexec'
1101 datarootdir
='${prefix}/share'
1102 datadir
='${datarootdir}'
1103 sysconfdir
='${prefix}/etc'
1104 sharedstatedir
='${prefix}/com'
1105 localstatedir
='${prefix}/var'
1106 includedir
='${prefix}/include'
1107 oldincludedir
='/usr/include'
1108 docdir
='${datarootdir}/doc/${PACKAGE}'
1109 infodir
='${datarootdir}/info'
1114 libdir
='${exec_prefix}/lib'
1115 localedir
='${datarootdir}/locale'
1116 mandir
='${datarootdir}/man'
1122 # If the previous option needs an argument, assign it.
1123 if test -n "$ac_prev"; then
1124 eval $ac_prev=\
$ac_option
1130 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1137 case $ac_dashdash$ac_option in
1141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1144 bindir
=$ac_optarg ;;
1146 -build |
--build |
--buil |
--bui |
--bu)
1147 ac_prev
=build_alias
;;
1148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1149 build_alias
=$ac_optarg ;;
1151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1153 ac_prev
=cache_file
;;
1154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1156 cache_file
=$ac_optarg ;;
1158 --config-cache |
-C)
1159 cache_file
=config.cache
;;
1161 -datadir |
--datadir |
--datadi |
--datad)
1163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1164 datadir
=$ac_optarg ;;
1166 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1167 |
--dataroo |
--dataro |
--datar)
1168 ac_prev
=datarootdir
;;
1169 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1170 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1171 datarootdir
=$ac_optarg ;;
1173 -disable-* |
--disable-*)
1174 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 as_fn_error $?
"invalid feature name: $ac_useropt"
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_
$ac_useropt"
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval enable_
$ac_useropt=no
;;
1189 -docdir |
--docdir |
--docdi |
--doc |
--do)
1191 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1192 docdir
=$ac_optarg ;;
1194 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1196 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1197 dvidir
=$ac_optarg ;;
1199 -enable-* |
--enable-*)
1200 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1203 as_fn_error $?
"invalid feature name: $ac_useropt"
1204 ac_useropt_orig
=$ac_useropt
1205 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "enable_
$ac_useropt"
1210 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1211 ac_unrecognized_sep
=', ';;
1213 eval enable_
$ac_useropt=\
$ac_optarg ;;
1215 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1216 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1217 |
--exec |
--exe |
--ex)
1218 ac_prev
=exec_prefix
;;
1219 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1220 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1221 |
--exec=* |
--exe=* |
--ex=*)
1222 exec_prefix
=$ac_optarg ;;
1224 -gas |
--gas |
--ga |
--g)
1225 # Obsolete; use --with-gas.
1228 -help |
--help |
--hel |
--he |
-h)
1229 ac_init_help
=long
;;
1230 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1231 ac_init_help
=recursive
;;
1232 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1233 ac_init_help
=short
;;
1235 -host |
--host |
--hos |
--ho)
1236 ac_prev
=host_alias
;;
1237 -host=* |
--host=* |
--hos=* |
--ho=*)
1238 host_alias
=$ac_optarg ;;
1240 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1242 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1244 htmldir
=$ac_optarg ;;
1246 -includedir |
--includedir |
--includedi |
--included |
--include \
1247 |
--includ |
--inclu |
--incl |
--inc)
1248 ac_prev
=includedir
;;
1249 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1250 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1251 includedir
=$ac_optarg ;;
1253 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1255 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1256 infodir
=$ac_optarg ;;
1258 -libdir |
--libdir |
--libdi |
--libd)
1260 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1261 libdir
=$ac_optarg ;;
1263 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1264 |
--libexe |
--libex |
--libe)
1265 ac_prev
=libexecdir
;;
1266 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1267 |
--libexe=* |
--libex=* |
--libe=*)
1268 libexecdir
=$ac_optarg ;;
1270 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1271 ac_prev
=localedir
;;
1272 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1273 localedir
=$ac_optarg ;;
1275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1276 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1277 ac_prev
=localstatedir
;;
1278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1280 localstatedir
=$ac_optarg ;;
1282 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1284 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1285 mandir
=$ac_optarg ;;
1287 -nfp |
--nfp |
--nf)
1288 # Obsolete; use --without-fp.
1291 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1292 |
--no-cr |
--no-c |
-n)
1295 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1296 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1299 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1300 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1301 |
--oldin |
--oldi |
--old |
--ol |
--o)
1302 ac_prev
=oldincludedir
;;
1303 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1304 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1305 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1306 oldincludedir
=$ac_optarg ;;
1308 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1310 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1311 prefix
=$ac_optarg ;;
1313 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1314 |
--program-pre |
--program-pr |
--program-p)
1315 ac_prev
=program_prefix
;;
1316 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1317 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1318 program_prefix
=$ac_optarg ;;
1320 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1321 |
--program-suf |
--program-su |
--program-s)
1322 ac_prev
=program_suffix
;;
1323 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1324 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1325 program_suffix
=$ac_optarg ;;
1327 -program-transform-name |
--program-transform-name \
1328 |
--program-transform-nam |
--program-transform-na \
1329 |
--program-transform-n |
--program-transform- \
1330 |
--program-transform |
--program-transfor \
1331 |
--program-transfo |
--program-transf \
1332 |
--program-trans |
--program-tran \
1333 |
--progr-tra |
--program-tr |
--program-t)
1334 ac_prev
=program_transform_name
;;
1335 -program-transform-name=* |
--program-transform-name=* \
1336 |
--program-transform-nam=* |
--program-transform-na=* \
1337 |
--program-transform-n=* |
--program-transform-=* \
1338 |
--program-transform=* |
--program-transfor=* \
1339 |
--program-transfo=* |
--program-transf=* \
1340 |
--program-trans=* |
--program-tran=* \
1341 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1342 program_transform_name
=$ac_optarg ;;
1344 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1346 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1347 pdfdir
=$ac_optarg ;;
1349 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1351 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1355 |
-silent |
--silent |
--silen |
--sile |
--sil)
1358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1362 sbindir
=$ac_optarg ;;
1364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1368 ac_prev
=sharedstatedir
;;
1369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1373 sharedstatedir
=$ac_optarg ;;
1375 -site |
--site |
--sit)
1377 -site=* |
--site=* |
--sit=*)
1380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1383 srcdir
=$ac_optarg ;;
1385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1387 ac_prev
=sysconfdir
;;
1388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1390 sysconfdir
=$ac_optarg ;;
1392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1393 ac_prev
=target_alias
;;
1394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1395 target_alias
=$ac_optarg ;;
1397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1400 -version |
--version |
--versio |
--versi |
--vers |
-V)
1401 ac_init_version
=: ;;
1404 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1407 as_fn_error $?
"invalid package name: $ac_useropt"
1408 ac_useropt_orig
=$ac_useropt
1409 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1414 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1415 ac_unrecognized_sep
=', ';;
1417 eval with_
$ac_useropt=\
$ac_optarg ;;
1419 -without-* |
--without-*)
1420 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1423 as_fn_error $?
"invalid package name: $ac_useropt"
1424 ac_useropt_orig
=$ac_useropt
1425 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1430 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1431 ac_unrecognized_sep
=', ';;
1433 eval with_
$ac_useropt=no
;;
1436 # Obsolete; use --with-x.
1439 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1440 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1441 ac_prev
=x_includes
;;
1442 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1443 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1444 x_includes
=$ac_optarg ;;
1446 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1447 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1448 ac_prev
=x_libraries
;;
1449 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1450 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1451 x_libraries
=$ac_optarg ;;
1453 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1454 Try \`$0 --help' for more information"
1458 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1459 # Reject names that are not valid shell variable names.
1460 case $ac_envvar in #(
1461 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1462 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1464 eval $ac_envvar=\
$ac_optarg
1465 export $ac_envvar ;;
1468 # FIXME: should be removed in autoconf 3.0.
1469 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1470 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1471 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1472 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1478 if test -n "$ac_prev"; then
1479 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1480 as_fn_error $?
"missing argument to $ac_option"
1483 if test -n "$ac_unrecognized_opts"; then
1484 case $enable_option_checking in
1486 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1487 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491 # Check all directory arguments for consistency.
1492 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1493 datadir sysconfdir sharedstatedir localstatedir includedir \
1494 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1495 libdir localedir mandir
1497 eval ac_val
=\$
$ac_var
1498 # Remove trailing slashes.
1501 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1502 eval $ac_var=\
$ac_val;;
1504 # Be sure to have absolute directory names.
1506 [\\/$
]* | ?
:[\\/]* ) continue;;
1507 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1509 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1512 # There might be people who depend on the old broken behavior: `$host'
1513 # used to hold the argument of --host etc.
1514 # FIXME: To remove some day.
1517 target
=$target_alias
1519 # FIXME: To remove some day.
1520 if test "x$host_alias" != x
; then
1521 if test "x$build_alias" = x
; then
1522 cross_compiling
=maybe
1523 elif test "x$build_alias" != "x$host_alias"; then
1529 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1531 test "$silent" = yes && exec 6>/dev
/null
1534 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1535 ac_ls_di
=`ls -di .` &&
1536 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1537 as_fn_error $?
"working directory cannot be determined"
1538 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1539 as_fn_error $?
"pwd does not report name of working directory"
1542 # Find the source files, if location was not specified.
1543 if test -z "$srcdir"; then
1544 ac_srcdir_defaulted
=yes
1545 # Try the directory containing this script, then the parent directory.
1546 ac_confdir
=`$as_dirname -- "$as_myself" ||
1547 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1548 X"$as_myself" : 'X\(//\)[^/]' \| \
1549 X"$as_myself" : 'X\(//\)$' \| \
1550 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1551 $as_echo X"$as_myself" |
1552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1570 if test ! -r "$srcdir/$ac_unique_file"; then
1574 ac_srcdir_defaulted
=no
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1578 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1580 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1582 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1584 # When building in place, set srcdir=.
1585 if test "$ac_abs_confdir" = "$ac_pwd"; then
1588 # Remove unnecessary trailing slashes from srcdir.
1589 # Double slashes in file names in object file debugging info
1590 # mess up M-x gdb in Emacs.
1592 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594 for ac_var
in $ac_precious_vars; do
1595 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1596 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1597 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1598 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1602 # Report the --help message.
1604 if test "$ac_init_help" = "long"; then
1605 # Omit some internal or obsolete options to make the list less imposing.
1606 # This message is too long to be a string in the A/UX 3.1 sh.
1608 \`configure' configures this package to adapt to many kinds of systems.
1610 Usage: $0 [OPTION]... [VAR=VALUE]...
1612 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613 VAR=VALUE. See below for descriptions of some of the useful variables.
1615 Defaults for the options are specified in brackets.
1618 -h, --help display this help and exit
1619 --help=short display options specific to this package
1620 --help=recursive display the short help of all the included packages
1621 -V, --version display version information and exit
1622 -q, --quiet, --silent do not print \`checking ...' messages
1623 --cache-file=FILE cache test results in FILE [disabled]
1624 -C, --config-cache alias for \`--cache-file=config.cache'
1625 -n, --no-create do not create output files
1626 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1628 Installation directories:
1629 --prefix=PREFIX install architecture-independent files in PREFIX
1630 [$ac_default_prefix]
1631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1634 By default, \`make install' will install all the files in
1635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637 for instance \`--prefix=\$HOME'.
1639 For better control, use the options below.
1641 Fine tuning of the installation directories:
1642 --bindir=DIR user executables [EPREFIX/bin]
1643 --sbindir=DIR system admin executables [EPREFIX/sbin]
1644 --libexecdir=DIR program executables [EPREFIX/libexec]
1645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1648 --libdir=DIR object code libraries [EPREFIX/lib]
1649 --includedir=DIR C header files [PREFIX/include]
1650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1651 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1652 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1653 --infodir=DIR info documentation [DATAROOTDIR/info]
1654 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1655 --mandir=DIR man documentation [DATAROOTDIR/man]
1656 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1657 --htmldir=DIR html documentation [DOCDIR]
1658 --dvidir=DIR dvi documentation [DOCDIR]
1659 --pdfdir=DIR pdf documentation [DOCDIR]
1660 --psdir=DIR ps documentation [DOCDIR]
1666 --program-prefix=PREFIX prepend PREFIX to installed program names
1667 --program-suffix=SUFFIX append SUFFIX to installed program names
1668 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1671 --build=BUILD configure
for building on BUILD
[guessed
]
1672 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1673 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1677 if test -n "$ac_init_help"; then
1682 --disable-option-checking ignore unrecognized
--enable/--with options
1683 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1684 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1685 --enable-generated-files-in-srcdir
1686 put copies of generated files
in source dir intended
1687 for creating
source tarballs
for users without
1688 texinfo bison or flex
1689 --disable-largefile omit support
for large files
1690 --disable-build-format-warnings
1691 don
't use -Wformat while building GCC
1692 --enable-werror-always enable -Werror despite compiler version
1693 --enable-checking[=LIST]
1694 enable expensive run-time checks. With LIST, enable
1695 only specific categories of checks. Categories are:
1696 yes,no,all,none,release. Flags are:
1697 assert,df,extra,fold,gc,gcac,gimple,misc,
1698 rtlflag,rtl,runtime,tree,valgrind,types
1699 --enable-coverage[=LEVEL]
1700 enable compiler's code coverage collection. Use to
1701 measure compiler performance and
locate unused parts
1702 of the compiler. With LEVEL
, specify optimization.
1703 Values are opt
, noopt
, default is noopt
1704 --enable-gather-detailed-mem-stats
1705 enable detailed memory allocation stats gathering
1706 --enable-valgrind-annotations
1707 enable valgrind runtime interaction
1708 --enable-multilib enable library support
for multiple ABIs
1709 --enable-multiarch enable support
for multiarch paths
1710 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1711 --enable-decimal-float={no
,yes,bid
,dpd
}
1712 enable decimal float extension to C. Selecting
'bid'
1713 or
'dpd' choses
which decimal floating point format
1715 --enable-fixed-point enable fixed-point arithmetic extension to C
1716 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1718 --enable-tls enable or disable generation of tls code overriding
1719 the assembler check
for tls support
1720 --enable-vtable-verify enable vtable verification feature
1721 --disable-analyzer disable
-fanalyzer static analyzer
1722 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1723 GNU Objective-C runtime
1724 --disable-shared don't provide a shared libgcc
1725 --disable-gcov don
't provide libgcov and related host tools
1726 --enable-languages=LIST specify which front-ends to build
1727 --disable-rpath do not hardcode runtime library paths
1728 --enable-sjlj-exceptions
1729 arrange to use setjmp/longjmp exception handling
1730 --enable-secureplt enable -msecure-plt by default for PowerPC
1731 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1732 Default to platform configuration
1733 --enable-large-address-aware
1734 Link mingw executables with --large-address-aware
1735 --enable-leading-mingw64-underscores
1736 enable leading underscores on 64 bit mingw targets
1737 --enable-cld enable -mcld by default for 32bit x86
1738 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1739 --disable-win32-registry
1740 disable lookup of installation paths in the Registry
1742 --enable-win32-registry enable registry lookup (default)
1743 --enable-win32-registry=KEY
1744 use KEY instead of GCC version as the last portion
1746 --enable-shared[=PKGS] build shared libraries [default=yes]
1747 --enable-static[=PKGS] build static libraries [default=yes]
1748 --enable-fast-install[=PKGS]
1749 optimize for fast installation [default=yes]
1750 --disable-libtool-lock avoid locking (might break parallel builds)
1751 --enable-darwin-at-rpath
1752 install libraries with @rpath/library-name, requires
1753 rpaths to be added to executables
1754 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1755 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1756 --enable-gnu-indirect-function
1757 enable the use of the @gnu_indirect_function to
1759 --enable-initfini-array use .init_array/.fini_array sections
1760 --enable-comdat enable COMDAT group support
1761 --enable-newlib-nano-formatted-io
1762 Use nano version formatted IO
1764 --enable-standard-branch-protection
1765 enable Branch Target Identification Mechanism and
1766 Return Address Signing by default for AArch64
1767 --disable-standard-branch-protection
1768 disable Branch Target Identification Mechanism and
1769 Return Address Signing by default for AArch64
1772 --enable-fix-cortex-a53-835769
1773 enable workaround for AArch64 Cortex-A53 erratum
1775 --disable-fix-cortex-a53-835769
1776 disable workaround for AArch64 Cortex-A53 erratum
1780 --enable-fix-cortex-a53-843419
1781 enable workaround for AArch64 Cortex-A53 erratum
1783 --disable-fix-cortex-a53-843419
1784 disable workaround for AArch64 Cortex-A53 erratum
1787 --enable-gnu-unique-object
1788 enable the use of the @gnu_unique_object ELF
1789 extension on glibc systems
1790 --enable-linker-build-id
1791 compiler will always pass --build-id to linker
1792 --enable-libssp enable linking against libssp
1793 --enable-default-ssp enable Stack Smashing Protection as default
1794 --enable-maintainer-mode
1795 enable make rules and dependencies not useful (and
1796 sometimes confusing) to the casual installer
1797 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1798 thrashing on the build machine
1799 --enable-link-serialization
1800 avoid linking multiple GCC front-ends at once using
1801 make dependencies to avoid thrashing on the build
1803 --enable-version-specific-runtime-libs
1804 specify that runtime libraries should be installed
1805 in a compiler-specific directory
1806 --enable-plugin enable plugin support
1807 --enable-host-shared build host code as shared libraries
1808 --enable-host-pie build host code as PIE
1809 --enable-host-bind-now link host code as BIND_NOW
1810 --disable-libquadmath-support
1811 disable libquadmath support for Fortran
1812 --enable-default-pie enable Position Independent Executable as default
1813 --enable-cet enable Intel CET in host libraries [default=auto]
1814 --enable-s390-excess-float-precision
1815 on s390 targets, evaluate float with double
1816 precision when in standards-conforming mode
1819 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1820 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1821 --with-build-libsubdir=DIR Directory where to find libraries for build system
1822 --with-local-prefix=DIR specifies directory to put local include
1823 --with-native-system-header-dir=dir
1824 use dir as the directory to look for standard
1825 system header files in. Defaults to /usr/include.
1826 --with-build-sysroot=sysroot
1827 use sysroot as the system root during the build
1828 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1829 --with-gxx-include-dir=DIR
1830 specifies directory to put g++ header files
1831 --with-gxx-libcxx-include-dir=DIR
1832 specifies directory to find libc++ header files
1833 --with-cpp-install-dir=DIR
1834 install the user visible C preprocessor in DIR
1835 (relative to PREFIX) as well as PREFIX/bin
1836 --with-gnu-ld arrange to work with GNU ld
1837 --with-ld arrange to use the specified ld (full pathname)
1838 --with-demangler-in-ld try to use demangler in GNU ld
1839 --with-dsymutil arrange to use the specified dsymutil (full
1841 --with-gnu-as arrange to work with GNU as
1842 --with-as arrange to use the specified as (full pathname)
1843 --with-stack-clash-protection-guard-size=size
1844 Set the default stack clash protection guard size
1845 for specific targets as a power of two in bytes.
1846 --with-matchpd-partitions=num
1847 Set the number of partitions to make for gimple and
1848 generic when splitting match.pd. [default=10]
1849 --with-dwarf2 force the default debug format to be DWARF 2 (or
1851 --with-specs=SPECS add SPECS to driver command-line processing
1852 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1853 --with-bugurl=URL Direct users to URL to report a bug
1854 --with-documentation-root-url=URL
1855 Root for documentation URLs
1856 --with-changes-root-url=URL
1857 Root for GCC changes URLs
1858 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1860 --with-multilib-generator
1861 Multi-libs configuration string (RISC-V only)
1862 --with-zstd=PATH specify prefix directory for installed zstd library.
1863 Equivalent to --with-zstd-include=PATH/include plus
1864 --with-zstd-lib=PATH/lib
1865 --with-zstd-include=PATH
1866 specify directory for installed zstd include files
1867 --with-zstd-lib=PATH specify directory for the installed zstd library
1868 --with-gnu-ld assume the C compiler uses GNU ld default=no
1869 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1870 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1871 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1872 --with-gcc-major-version-only
1873 use only GCC major number
in filesystem paths
1874 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1876 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1877 --with-darwin-extra-rpath=[ARG
]
1878 Specify a runpath directory
, additional to those
1879 provided by the compiler
1880 --with-plugin-ld=[ARG
] specify the plugin linker
1881 --with-glibc-version=M.N
1882 assume GCC used with glibc version M.N or later
1883 --with-long-double-128 use
128-bit long double by default
1884 --with-long-double-format={ieee
,ibm
}
1885 Specify whether PowerPC long double uses IEEE or IBM format
1887 --with-gc={page
,zone
} this option is not supported anymore. It used to
1888 choose the garbage collection mechanism to use with
1890 --with-system-zlib use installed libz
1891 --with-linker-hash-style={sysv
,gnu
,both
}
1892 specify the linker
hash style
1893 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1894 specify the default of
-fdiagnostics-color option
1895 auto-if-env stands
for -fdiagnostics-color=auto
if
1896 GCC_COLOR environment variable is present and
1897 -fdiagnostics-color=never otherwise
1898 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1899 specify the default of
-fdiagnostics-urls option
1900 auto-if-env stands
for -fdiagnostics-urls=auto
if
1901 GCC_URLS or TERM_URLS environment variable is
1902 present and
-fdiagnostics-urls=never otherwise
1904 Some influential environment variables
:
1905 CC C compiler
command
1906 CFLAGS C compiler flags
1907 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1908 nonstandard directory
<lib dir
>
1909 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1910 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1911 you have headers
in a nonstandard directory
<include dir
>
1912 CXX C
++ compiler
command
1913 CXXFLAGS C
++ compiler flags
1914 CXXCPP C
++ preprocessor
1916 GMPLIBS How to link GMP
1917 GMPINC How to
find GMP include files
1918 ISLLIBS How to link isl
1919 ISLINC How to
find isl include files
1921 Use these variables to override the choices made by
`configure' or to help
1922 it to find libraries and programs with nonstandard names/locations.
1924 Report bugs to the package provider.
1929 if test "$ac_init_help" = "recursive"; then
1930 # If there are subdirs, report their specific --help.
1931 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1932 test -d "$ac_dir" ||
1933 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1940 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1941 # A ".." for each directory in $ac_dir_suffix.
1942 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1943 case $ac_top_builddir_sub in
1944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1948 ac_abs_top_builddir=$ac_pwd
1949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1950 # for backward compatibility:
1951 ac_top_builddir=$ac_top_build_prefix
1954 .) # We are building in place.
1956 ac_top_srcdir=$ac_top_builddir_sub
1957 ac_abs_top_srcdir=$ac_pwd ;;
1958 [\\/]* | ?:[\\/]* ) # Absolute name.
1959 ac_srcdir=$srcdir$ac_dir_suffix;
1960 ac_top_srcdir=$srcdir
1961 ac_abs_top_srcdir=$srcdir ;;
1963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1964 ac_top_srcdir=$ac_top_build_prefix$srcdir
1965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1969 cd "$ac_dir" || { ac_status=$?; continue; }
1970 # Check for guested configure.
1971 if test -f "$ac_srcdir/configure.gnu"; then
1973 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1974 elif test -f "$ac_srcdir/configure"; then
1976 $SHELL "$ac_srcdir/configure" --help=recursive
1978 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1980 cd "$ac_pwd" || { ac_status=$?; break; }
1984 test -n "$ac_init_help" && exit $ac_status
1985 if $ac_init_version; then
1988 generated by GNU Autoconf 2.69
1990 Copyright (C) 2012 Free Software Foundation, Inc.
1991 This configure script is free software; the Free Software Foundation
1992 gives unlimited permission to copy, distribute and modify it.
1997 ## ------------------------ ##
1998 ## Autoconf initialization. ##
1999 ## ------------------------ ##
2001 # ac_fn_c_try_compile LINENO
2002 # --------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_c_try_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext
2008 if { { ac_try="$ac_compile"
2010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2011 *) ac_try_echo
=$ac_try;;
2013 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_compile") 2>conftest.err
2017 if test -s conftest.err
; then
2018 grep -v '^ *+' conftest.err
>conftest.er1
2019 cat conftest.er1
>&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest.
$ac_objext; then :
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.
$ac_ext >&5
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status
$ac_retval
2037 } # ac_fn_c_try_compile
2039 # ac_fn_cxx_try_compile LINENO
2040 # ----------------------------
2041 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2042 ac_fn_cxx_try_compile
()
2044 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2045 rm -f conftest.
$ac_objext
2046 if { { ac_try
="$ac_compile"
2048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_compile") 2>conftest.err
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && {
2062 test -z "$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 } && test -s conftest.$ac_objext; then :
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2075 } # ac_fn_cxx_try_compile
2077 # ac_fn_cxx_try_cpp LINENO
2078 # ------------------------
2079 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_cxx_try_cpp ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if { { ac_try="$ac_cpp conftest.$ac_ext"
2085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2086 *) ac_try_echo
=$ac_try;;
2088 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2092 if test -s conftest.err
; then
2093 grep -v '^ *+' conftest.err
>conftest.er1
2094 cat conftest.er1
>&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } > conftest.i
&& {
2099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2100 test ! -s conftest.err
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.
$ac_ext >&5
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status
$ac_retval
2112 } # ac_fn_cxx_try_cpp
2114 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # ---------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2119 ac_fn_cxx_check_header_mongrel
()
2121 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2122 if eval \
${$3+:} false
; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \
${$3+:} false
; then :
2126 $as_echo_n "(cached) " >&6
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_cxx_try_compile
"$LINENO"; then :
2141 ac_header_compiler
=yes
2143 ac_header_compiler
=no
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2157 ac_header_preproc
=yes
2159 ac_header_preproc
=no
2161 rm -f conftest.err conftest.i conftest.
$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \
${$3+:} false
; then :
2189 $as_echo_n "(cached) " >&6
2191 eval "$3=\$ac_header_compiler"
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_cxx_check_header_mongrel
2201 # ac_fn_cxx_try_run LINENO
2202 # ------------------------
2203 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204 # that executables *can* be run.
2205 ac_fn_cxx_try_run
()
2207 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2208 if { { ac_try
="$ac_link"
2210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>&5
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219 { { case "(($ac_try" in
2220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2221 *) ac_try_echo
=$ac_try;;
2223 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_try") 2>&5
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; }; then :
2231 $as_echo "$as_me: program exited with status $ac_status" >&5
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2235 ac_retval
=$ac_status
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 as_fn_set_status
$ac_retval
2241 } # ac_fn_cxx_try_run
2243 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2244 # ---------------------------------------------------------
2245 # Tests whether HEADER exists and can be compiled using the include files in
2246 # INCLUDES, setting the cache variable VAR accordingly.
2247 ac_fn_cxx_check_header_compile
()
2249 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \
${$3+:} false
; then :
2253 $as_echo_n "(cached) " >&6
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2260 if ac_fn_cxx_try_compile
"$LINENO"; then :
2265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_cxx_check_header_compile
2274 # ac_fn_c_try_cpp LINENO
2275 # ----------------------
2276 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2280 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } > conftest.i && {
2296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2301 $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307 as_fn_set_status $ac_retval
2311 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2312 # ----------------------------------------------
2313 # Tries to find the compile-time value of EXPR in a program that includes
2314 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2316 ac_fn_cxx_compute_int ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 if test "$cross_compiling" = yes; then
2320 # Depending upon the size, compute the lo and hi bounds.
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2327 static int test_array [1 - 2 * !(($2) >= 0)];
2329 return test_array [0];
2335 if ac_fn_cxx_try_compile "$LINENO"; then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2346 return test_array [0];
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=$ac_mid; break
2355 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2356 if test $ac_lo -le $ac_mid; then
2360 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2371 static int test_array [1 - 2 * !(($2) < 0)];
2373 return test_array [0];
2379 if ac_fn_cxx_try_compile "$LINENO"; then :
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2388 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2390 return test_array [0];
2396 if ac_fn_cxx_try_compile "$LINENO"; then :
2397 ac_lo=$ac_mid; break
2399 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2400 if test $ac_mid -le $ac_hi; then
2404 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 # Binary search between lo and hi bounds.
2415 while test "x$ac_lo" != "x$ac_hi"; do
2416 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2423 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2425 return test_array [0];
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2434 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2446 static long int longval () { return $2; }
2447 static unsigned long int ulongval () { return $2; }
2454 FILE *f = fopen ("conftest.val", "w");
2459 long int i = longval ();
2462 fprintf (f, "%ld", i);
2466 unsigned long int i = ulongval ();
2469 fprintf (f, "%lu", i);
2471 /* Do not output a trailing newline, as this causes \r\n confusion
2472 on some platforms. */
2473 return ferror (f) || fclose (f) != 0;
2479 if ac_fn_cxx_try_run "$LINENO"; then :
2480 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2485 conftest.$ac_objext conftest.beam conftest.$ac_ext
2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 as_fn_set_status $ac_retval
2492 } # ac_fn_cxx_compute_int
2494 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2495 # ---------------------------------------------
2496 # Tests whether TYPE exists after having included INCLUDES, setting cache
2497 # variable VAR accordingly.
2498 ac_fn_cxx_check_type ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546 } # ac_fn_cxx_check_type
2548 # ac_fn_c_find_intX_t LINENO BITS VAR
2549 # -----------------------------------
2550 # Finds a signed integer type with width BITS, setting cache variable VAR
2552 ac_fn_c_find_intX_t ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2556 $as_echo_n "checking for int$2_t... " >&6; }
2557 if eval \${$3+:} false; then :
2558 $as_echo_n "(cached) " >&6
2561 # Order is important - never check a type that is potentially smaller
2562 # than half of the expected target width.
2563 for ac_type in int$2_t 'int' 'long int' \
2564 'long long int' 'short int' 'signed char'; do
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2567 $ac_includes_default
2568 enum { N = $2 / 2 - 1 };
2572 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2574 return test_array [0];
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 $ac_includes_default
2584 enum { N = $2 / 2 - 1 };
2588 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2589 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2591 return test_array [0];
2597 if ac_fn_cxx_try_compile "$LINENO"; then :
2604 eval "$3=\$ac_type" ;;
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 if eval test \"x\$"$3"\" = x"no"; then :
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_find_intX_t
2624 # ac_fn_cxx_try_link LINENO
2625 # -------------------------
2626 # Try to link conftest.$ac_ext, and return whether this succeeded.
2627 ac_fn_cxx_try_link ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 rm -f conftest.$ac_objext conftest$ac_exeext
2631 if { { ac_try="$ac_link"
2633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2634 *) ac_try_echo
=$ac_try;;
2636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637 $as_echo "$ac_try_echo"; } >&5
2638 (eval "$ac_link") 2>conftest.err
2640 if test -s conftest.err
; then
2641 grep -v '^ *+' conftest.err
>conftest.er1
2642 cat conftest.er1
>&5
2643 mv -f conftest.er1 conftest.err
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; } && {
2647 test -z "$ac_cxx_werror_flag" ||
2648 test ! -s conftest.err
2649 } && test -s conftest
$ac_exeext && {
2650 test "$cross_compiling" = yes ||
2651 test -x conftest
$ac_exeext
2655 $as_echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.
$ac_ext >&5
2660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2662 # interfere with the next link command; also delete a directory that is
2663 # left behind by Apple's compiler. We do this before executing the actions.
2664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666 as_fn_set_status
$ac_retval
2668 } # ac_fn_cxx_try_link
2670 # ac_fn_c_find_uintX_t LINENO BITS VAR
2671 # ------------------------------------
2672 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2674 ac_fn_c_find_uintX_t
()
2676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2678 $as_echo_n "checking for uint$2_t... " >&6; }
2679 if eval \
${$3+:} false
; then :
2680 $as_echo_n "(cached) " >&6
2683 # Order is important - never check a type that is potentially smaller
2684 # than half of the expected target width.
2685 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2686 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 $ac_includes_default
2693 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2695 return test_array [0];
2701 if ac_fn_cxx_try_compile
"$LINENO"; then :
2706 eval "$3=\$ac_type" ;;
2709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2710 if eval test \"x\$
"$3"\" = x
"no"; then :
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722 } # ac_fn_c_find_uintX_t
2724 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2725 # ------------------------------------------------
2726 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2727 ac_fn_cxx_check_header_preproc
()
2729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2731 $as_echo_n "checking for $2... " >&6; }
2732 if eval \
${$3+:} false
; then :
2733 $as_echo_n "(cached) " >&6
2735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2739 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2744 rm -f conftest.err conftest.i conftest.
$ac_ext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751 } # ac_fn_cxx_check_header_preproc
2753 # ac_fn_cxx_check_func LINENO FUNC VAR
2754 # ------------------------------------
2755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2756 ac_fn_cxx_check_func
()
2758 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2760 $as_echo_n "checking for $2... " >&6; }
2761 if eval \
${$3+:} false
; then :
2762 $as_echo_n "(cached) " >&6
2764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2768 #define $2 innocuous_$2
2770 /* System header to define __stub macros and hopefully few prototypes,
2771 which can conflict with char $2 (); below.
2772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2773 <limits.h> exists even on freestanding compilers. */
2776 # include <limits.h>
2778 # include <assert.h>
2783 /* Override any GCC internal prototype to avoid an error.
2784 Use char because int might match the return type of a GCC
2785 builtin and then its argument prototype would still apply. */
2790 /* The GNU C library defines this for functions which it implements
2791 to always fail with ENOSYS. Some functions are actually named
2792 something starting with __ and the normal name is an alias. */
2793 #if defined __stub_$2 || defined __stub___$2
2805 if ac_fn_cxx_try_link
"$LINENO"; then :
2810 rm -f core conftest.err conftest.
$ac_objext \
2811 conftest
$ac_exeext conftest.
$ac_ext
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 } # ac_fn_cxx_check_func
2820 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2821 # -----------------------------------------------
2822 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2824 ac_fn_cxx_check_decl
()
2826 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2827 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2828 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2830 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2831 if eval \
${$3+:} false
; then :
2832 $as_echo_n "(cached) " >&6
2834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2840 #ifndef $as_decl_name
2842 (void) $as_decl_use;
2844 (void) $as_decl_name;
2852 if ac_fn_cxx_try_compile
"$LINENO"; then :
2857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2861 $as_echo "$ac_res" >&6; }
2862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2864 } # ac_fn_cxx_check_decl
2866 # ac_fn_c_try_link LINENO
2867 # -----------------------
2868 # Try to link conftest.$ac_ext, and return whether this succeeded.
2871 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2872 rm -f conftest.
$ac_objext conftest
$ac_exeext
2873 if { { ac_try
="$ac_link"
2875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879 $as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_link") 2>conftest.err
2882 if test -s conftest.err; then
2883 grep -v '^ *+' conftest.err >conftest.er1
2884 cat conftest.er1 >&5
2885 mv -f conftest.er1 conftest.err
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest$ac_exeext && {
2892 test "$cross_compiling" = yes ||
2893 test -x conftest$ac_exeext
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2904 # interfere with the next link command; also delete a directory that is
2905 # left behind by Apple's compiler. We do this before executing the actions.
2906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908 as_fn_set_status $ac_retval
2910 } # ac_fn_c_try_link
2912 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2913 # ----------------------------------------------
2914 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2915 ac_fn_c_check_header_preproc ()
2917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2919 $as_echo_n "checking for $2... " >&6; }
2920 if eval \${$3+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2927 if ac_fn_c_try_cpp "$LINENO"; then :
2932 rm -f conftest.err conftest.i conftest.$ac_ext
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2936 $as_echo "$ac_res" >&6; }
2937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2939 } # ac_fn_c_check_header_preproc
2941 # ac_fn_c_check_func LINENO FUNC VAR
2942 # ----------------------------------
2943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2944 ac_fn_c_check_func ()
2946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2948 $as_echo_n "checking for $2... " >&6; }
2949 if eval \${$3+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2956 #define $2 innocuous_$2
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $2 (); below.
2960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2961 <limits.h> exists even on freestanding compilers. */
2964 # include <limits.h>
2966 # include <assert.h>
2971 /* Override any GCC internal prototype to avoid an error.
2972 Use char because int might match the return type of a GCC
2973 builtin and then its argument prototype would still apply. */
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined __stub_$2 || defined __stub___$2
2993 if ac_fn_c_try_link "$LINENO"; then :
2998 rm -f core conftest.err conftest.$ac_objext \
2999 conftest$ac_exeext conftest.$ac_ext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3003 $as_echo "$ac_res" >&6; }
3004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3006 } # ac_fn_c_check_func
3007 cat >config.log <<_ACEOF
3008 This file contains any messages produced by compilers while
3009 running configure, to aid debugging if configure makes a mistake.
3011 It was created by $as_me, which was
3012 generated by GNU Autoconf 2.69. Invocation command line was
3024 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3025 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3026 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3027 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3028 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3030 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3031 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3033 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3034 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3035 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3036 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3037 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3038 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3039 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 $as_echo "PATH: $as_dir"
3064 # Keep a trace of the command line.
3065 # Strip out --no-create and --no-recursion so they do not pile up.
3066 # Strip out --silent because we don't want to record it for future runs.
3067 # Also quote any args containing shell meta-characters.
3068 # Make two passes to allow for proper duplicate-argument suppression.
3072 ac_must_keep_next=false
3078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3080 | -silent | --silent | --silen | --sile | --sil)
3083 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3086 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3088 as_fn_append ac_configure_args1 " '$ac_arg'"
3089 if test $ac_must_keep_next = true; then
3090 ac_must_keep_next=false # Got value, back to normal.
3093 *=* | --config-cache | -C | -disable-* | --disable-* \
3094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3096 | -with-* | --with-* | -without-* | --without-* | --x)
3097 case "$ac_configure_args0 " in
3098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3101 -* ) ac_must_keep_next=true ;;
3104 as_fn_append ac_configure_args " '$ac_arg'"
3109 { ac_configure_args0=; unset ac_configure_args0;}
3110 { ac_configure_args1=; unset ac_configure_args1;}
3112 # When interrupted or exit'd, cleanup temporary files, and complete
3113 # config.log. We remove comments because anyway the quotes in there
3114 # would cause problems or look ugly.
3115 # WARNING: Use '\'' to represent an apostrophe within the trap.
3116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3117 trap 'exit_status=$?
3118 # Save into config.log some information that might help in debugging.
3122 $as_echo "## ---------------- ##
3123 ## Cache variables. ##
3124 ## ---------------- ##"
3126 # The following way of writing the cache mishandles newlines in values,
3128 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3129 eval ac_val=\$$ac_var
3133 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3137 _ | IFS | as_nl) ;; #(
3138 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3139 *) { eval $ac_var=; unset $ac_var;} ;;
3144 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3145 *${as_nl}ac_space=\ *)
3147 "s/'\''/'\''\\\\'\'''\''/g;
3148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3158 $as_echo "## ----------------- ##
3159 ## Output variables. ##
3160 ## ----------------- ##"
3162 for ac_var in $ac_subst_vars
3164 eval ac_val=\$$ac_var
3166 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3168 $as_echo "$ac_var='\''$ac_val'\''"
3172 if test -n "$ac_subst_files"; then
3173 $as_echo "## ------------------- ##
3174 ## File substitutions. ##
3175 ## ------------------- ##"
3177 for ac_var in $ac_subst_files
3179 eval ac_val=\$$ac_var
3181 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3183 $as_echo "$ac_var='\''$ac_val'\''"
3188 if test -s confdefs.h; then
3189 $as_echo "## ----------- ##
3196 test "$ac_signal" != 0 &&
3197 $as_echo "$as_me: caught signal $ac_signal"
3198 $as_echo "$as_me: exit $exit_status"
3200 rm -f core *.core core.conftest.* &&
3201 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3204 for ac_signal in 1 2 13 15; do
3205 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3210 rm -f -r conftest* confdefs.h
3212 $as_echo "/* confdefs.h */" > confdefs.h
3214 # Predefined preprocessor variables.
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE_NAME "$PACKAGE_NAME"
3220 cat >>confdefs.h <<_ACEOF
3221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3224 cat >>confdefs.h <<_ACEOF
3225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE_STRING "$PACKAGE_STRING"
3232 cat >>confdefs.h <<_ACEOF
3233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3236 cat >>confdefs.h <<_ACEOF
3237 #define PACKAGE_URL "$PACKAGE_URL"
3241 # Let the site file select an alternate cache file if it wants to.
3242 # Prefer an explicitly selected file to automatically selected ones.
3245 if test -n "$CONFIG_SITE"; then
3246 # We do not want a PATH search for config.site.
3247 case $CONFIG_SITE in #((
3248 -*) ac_site_file1=./$CONFIG_SITE;;
3249 */*) ac_site_file1=$CONFIG_SITE;;
3250 *) ac_site_file1=./$CONFIG_SITE;;
3252 elif test "x$prefix" != xNONE; then
3253 ac_site_file1=$prefix/share/config.site
3254 ac_site_file2=$prefix/etc/config.site
3256 ac_site_file1=$ac_default_prefix/share/config.site
3257 ac_site_file2=$ac_default_prefix/etc/config.site
3259 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3261 test "x$ac_site_file" = xNONE && continue
3262 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3264 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3265 sed 's/^/| /' "$ac_site_file" >&5
3267 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "failed to load site
script $ac_site_file
3270 See \
`config.log' for more details" "$LINENO" 5; }
3274 if test -r "$cache_file"; then
3275 # Some versions of bash will fail to source /dev/null (special files
3276 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3277 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3279 $as_echo "$as_me: loading cache $cache_file" >&6;}
3281 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3282 *) . "./$cache_file";;
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3287 $as_echo "$as_me: creating cache $cache_file" >&6;}
3291 # Check that the precious variables saved in the cache have kept the same
3293 ac_cache_corrupted=false
3294 for ac_var in $ac_precious_vars; do
3295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3296 eval ac_new_set=\$ac_env_${ac_var}_set
3297 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3298 eval ac_new_val=\$ac_env_${ac_var}_value
3299 case $ac_old_set,$ac_new_set in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3302 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3303 ac_cache_corrupted=: ;;
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3306 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3307 ac_cache_corrupted=: ;;
3310 if test "x$ac_old_val" != "x$ac_new_val"; then
3311 # differences in whitespace do not lead to failure.
3312 ac_old_val_w=`echo x
$ac_old_val`
3313 ac_new_val_w=`echo x
$ac_new_val`
3314 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3316 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3317 ac_cache_corrupted=:
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3320 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3321 eval $ac_var=\$ac_old_val
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3324 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3326 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3329 # Pass precious variables to config.status.
3330 if test "$ac_new_set" = set; then
3332 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3333 *) ac_arg=$ac_var=$ac_new_val ;;
3335 case " $ac_configure_args " in
3336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3337 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3341 if $ac_cache_corrupted; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3345 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3346 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3348 ## -------------------- ##
3349 ## Main body of script. ##
3350 ## -------------------- ##
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3367 gcc_version=`cat $srcdir/BASE-VER
`
3369 # Determine the host, build, and target systems
3371 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3372 if test -f "$ac_dir/install-sh"; then
3374 ac_install_sh="$ac_aux_dir/install-sh -c"
3376 elif test -f "$ac_dir/install.sh"; then
3378 ac_install_sh="$ac_aux_dir/install.sh -c"
3380 elif test -f "$ac_dir/shtool"; then
3382 ac_install_sh="$ac_aux_dir/shtool install -c"
3386 if test -z "$ac_aux_dir"; then
3387 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3390 # These three variables are undocumented and unsupported,
3391 # and are intended to be withdrawn in a future Autoconf release.
3392 # They can cause serious problems if a builder's source tree is in a directory
3393 # whose full name contains unusual characters.
3394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3399 # Make sure we can run config.sub.
3400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3404 $as_echo_n "checking build system type... " >&6; }
3405 if ${ac_cv_build+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 ac_build_alias=$build_alias
3409 test "x$ac_build_alias" = x &&
3410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3411 test "x$ac_build_alias" = x &&
3412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3418 $as_echo "$ac_cv_build" >&6; }
3419 case $ac_cv_build in
3421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3424 ac_save_IFS=$IFS; IFS='-'
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3434 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3438 $as_echo_n "checking host system type... " >&6; }
3439 if ${ac_cv_host+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 if test "x$host_alias" = x; then
3443 ac_cv_host=$ac_cv_build
3445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3451 $as_echo "$ac_cv_host" >&6; }
3454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3457 ac_save_IFS=$IFS; IFS='-'
3463 # Remember, the first character of IFS is used to create $*,
3464 # except with old shells:
3467 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3471 $as_echo_n "checking target system type... " >&6; }
3472 if ${ac_cv_target+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 if test "x$target_alias" = x; then
3476 ac_cv_target=$ac_cv_host
3478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3484 $as_echo "$ac_cv_target" >&6; }
3485 case $ac_cv_target in
3487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3489 target=$ac_cv_target
3490 ac_save_IFS=$IFS; IFS='-'
3496 # Remember, the first character of IFS is used to create $*,
3497 # except with old shells:
3500 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3503 # The aliases save the names the user supplied, while $host etc.
3504 # will get canonicalized.
3505 test -n "$target_alias" &&
3506 test "$program_prefix$program_suffix$program_transform_name" = \
3508 program_prefix=${target_alias}-
3510 # Determine the noncanonical host name, for Ada.
3511 case ${build_alias} in
3512 "") build_noncanonical=${build} ;;
3513 *) build_noncanonical=${build_alias} ;;
3516 case ${host_alias} in
3517 "") host_noncanonical=${build_noncanonical} ;;
3518 *) host_noncanonical=${host_alias} ;;
3524 # Determine the noncanonical target name, for directory use.
3525 case ${target_alias} in
3526 "") target_noncanonical=${host_noncanonical} ;;
3527 *) target_noncanonical=${target_alias} ;;
3533 # Used for constructing correct paths for offload compilers.
3534 real_target_noncanonical=${target_noncanonical}
3537 # Determine the target- and build-specific subdirectories
3539 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3540 # have matching libraries, they should use host libraries: Makefile.tpl
3541 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3542 # However, they still use the build modules, because the corresponding
3543 # host modules (e.g. bison) are only built for the host when bootstrap
3545 # - build_subdir is where we find build modules, and never changes.
3546 # - build_libsubdir is where we find build libraries, and can be overridden.
3548 # Prefix 'build-' so this never conflicts with target_subdir.
3549 build_subdir="build-${build_noncanonical}"
3551 # Check whether --with-build-libsubdir was given.
3552 if test "${with_build_libsubdir+set}" = set; then :
3553 withval=$with_build_libsubdir; build_libsubdir="$withval"
3555 build_libsubdir="$build_subdir"
3558 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3559 if ( test $srcdir = . && test -d gcc ) \
3560 || test -d $srcdir/../host-${host_noncanonical}; then
3561 host_subdir="host-${host_noncanonical}"
3566 target_subdir=${target_noncanonical}
3569 # Set program_transform_name
3570 test "$program_prefix" != NONE &&
3571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3572 # Use a double $ so make ignores it.
3573 test "$program_suffix" != NONE &&
3574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3575 # Double any \ or $.
3576 # By default was `s
,x
,x
', remove it if useless.
3577 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3581 # Check for bogus environment variables.
3582 # Test if LIBRARY_PATH contains the notation for the current directory
3583 # since this would lead to problems installing/building glibc.
3584 # LIBRARY_PATH 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 LIBRARY_PATH variable" >&5
3590 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3591 case ${LIBRARY_PATH} in
3592 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3593 library_path_setting="contains current directory"
3596 library_path_setting="ok"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3600 $as_echo "$library_path_setting" >&6; }
3601 if test "$library_path_setting" != "ok"; then
3603 *** LIBRARY_PATH shouldn't contain the current directory when
3604 *** building gcc. Please change the environment variable
3605 *** and run configure again.
" "$LINENO" 5
3608 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3609 # since this would lead to problems installing/building glibc.
3610 # GCC_EXEC_PREFIX contains the current directory if one of the following
3612 # - one of the terminals (":" and ";") is the first or last sign
3613 # - two terminals occur directly after each other
3614 # - the path contains an element with a dot in it
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3616 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3617 case ${GCC_EXEC_PREFIX} in
3618 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3619 gcc_exec_prefix_setting="contains current directory
"
3622 gcc_exec_prefix_setting="ok
"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3626 $as_echo "$gcc_exec_prefix_setting" >&6; }
3627 if test "$gcc_exec_prefix_setting" != "ok
"; then
3629 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3630 *** building gcc. Please change the environment variable
3631 *** and run configure again." "$LINENO" 5
3638 # Specify the local prefix
3641 # Check whether --with-local-prefix was given.
3642 if test "${with_local_prefix+set}" = set; then :
3643 withval=$with_local_prefix; case "${withval}" in
3644 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3646 *) local_prefix=$with_local_prefix ;;
3651 # Default local prefix if it is empty
3652 if test x$local_prefix = x; then
3653 local_prefix=/usr/local
3657 # Check whether --with-native-system-header-dir was given.
3658 if test "${with_native_system_header_dir+set}" = set; then :
3659 withval=$with_native_system_header_dir;
3660 case ${with_native_system_header_dir} in
3661 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3662 /* | [A-Za-z]:[\\/]*) ;;
3663 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3665 configured_native_system_header_dir="${withval}"
3668 configured_native_system_header_dir=
3673 # Check whether --with-build-sysroot was given.
3674 if test "${with_build_sysroot+set}" = set; then :
3675 withval=$with_build_sysroot; if test x"$withval" != x ; then
3676 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3679 SYSROOT_CFLAGS_FOR_TARGET=
3684 if test "x$prefix" = xNONE; then
3685 test_prefix=/usr/local
3689 if test "x$exec_prefix" = xNONE; then
3690 test_exec_prefix=$test_prefix
3692 test_exec_prefix=$exec_prefix
3696 # Check whether --with-sysroot was given.
3697 if test "${with_sysroot+set}" = set; then :
3698 withval=$with_sysroot;
3699 case ${with_sysroot} in
3701 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3703 case ${with_sysroot} in
3704 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3705 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3708 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3709 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3711 case ${TARGET_SYSTEM_ROOT} in
3712 "${test_prefix}"|"${test_prefix}/"*|\
3713 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3714 '${prefix}'|'${prefix}/'*|\
3715 '${exec_prefix}'|'${exec_prefix}/'*)
3716 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3717 TARGET_SYSTEM_ROOT_DEFINE="$t"
3724 TARGET_SYSTEM_ROOT_DEFINE=
3725 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3733 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3734 # passed in by the toplevel make and thus we'd get different behavior
3735 # depending on where we built the sources.
3736 gcc_gxx_include_dir
=
3737 # Specify the g++ header file directory
3739 # Check whether --with-gxx-include-dir was given.
3740 if test "${with_gxx_include_dir+set}" = set; then :
3741 withval
=$with_gxx_include_dir; case "${withval}" in
3742 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3744 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3749 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3750 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3751 # relative to the sysroot.
3752 gcc_gxx_include_dir_add_sysroot
=0
3754 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3755 if test x
${gcc_gxx_include_dir} = x
; then
3756 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3757 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3759 libstdcxx_incdir
='include/c++/$(version)'
3760 if test x
$host != x
$target; then
3761 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3763 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3765 elif test "${with_sysroot+set}" = set; then
3766 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3767 if test "${gcc_gxx_without_sysroot}"; then
3768 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3769 gcc_gxx_include_dir_add_sysroot
=1
3773 # Configuration for an alternate set of C++ headers.
3774 gcc_gxx_libcxx_include_dir
=
3775 # Specify the alternate g++ header file directory
3777 # Check whether --with-gxx-libcxx-include-dir was given.
3778 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3779 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3780 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3781 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3786 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3787 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3788 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3789 #Â based on the platform (to be available on platform versions where it is the
3790 # default for the system tools). We also use a default path within the compiler
3792 #Â Otherwise, we use the path provided and enable the stdlib option.
3793 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3794 # check to see if the latter starts with the former and, upon success, compute
3795 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3796 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3797 gcc_enable_stdlib_opt
=0
3798 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3799 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3800 #Â set defaults for the dir, but the option is disabled anyway.
3801 gcc_gxx_libcxx_include_dir
=
3803 gcc_enable_stdlib_opt
=1
3807 *-darwin1[1-9]* |
*-darwin2*)
3808 #Â Default this on for Darwin versions which default to libcxx,
3809 #Â and embed the path in the compiler install so that we get a
3810 # self-contained toolchain.
3811 gcc_enable_stdlib_opt
=1
3817 cat >>confdefs.h
<<_ACEOF
3818 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3822 # Sysroot behaviour as for gxx-include-dir
3823 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3824 # default path,embedded in the compiler tree.
3825 libcxx_incdir
='include/c++/v1'
3826 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3827 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3829 if test x
$host != x
$target; then
3830 libcxx_incdir
="$target_alias/$libcxx_incdir"
3832 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3834 elif test "${with_sysroot+set}" = set; then
3835 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3836 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3837 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3838 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3843 # Check whether --with-cpp_install_dir was given.
3844 if test "${with_cpp_install_dir+set}" = set; then :
3845 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3846 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3847 elif test x
$withval != xno
; then
3848 cpp_install_dir
=$withval
3853 # We would like to our source tree to be readonly. However when releases or
3854 # pre-releases are generated, the flex/bison generated files as well as the
3855 # various formats of manuals need to be included along with the rest of the
3856 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3860 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3861 # Check whether --enable-generated-files-in-srcdir was given.
3862 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3863 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3865 generated_files_in_srcdir
=no
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3870 $as_echo "$generated_files_in_srcdir" >&6; }
3872 if test "$generated_files_in_srcdir" = "yes"; then
3879 # -------------------
3880 # Find default linker
3881 # -------------------
3885 # Check whether --with-gnu-ld was given.
3886 if test "${with_gnu_ld+set}" = set; then :
3887 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3895 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3896 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3904 # With pre-defined ld
3906 # Check whether --with-ld was given.
3907 if test "${with_ld+set}" = set; then :
3908 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3911 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3912 if test ! -x "$DEFAULT_LINKER"; then
3913 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3914 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3916 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3920 cat >>confdefs.h
<<_ACEOF
3921 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3927 $as_echo_n "checking whether a default linker was specified... " >&6; }
3928 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3929 if test x
"$gnu_ld_flag" = x
"no"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3931 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3934 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3941 # With demangler in GNU ld
3943 # Check whether --with-demangler-in-ld was given.
3944 if test "${with_demangler_in_ld+set}" = set; then :
3945 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3951 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3953 # Check whether --with-dsymutil was given.
3954 if test "${with_dsymutil+set}" = set; then :
3955 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3960 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3961 if test ! -x "$DEFAULT_DSYMUTIL"; then
3962 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3964 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3969 cat >>confdefs.h
<<_ACEOF
3970 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3976 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3977 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3979 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3985 # ----------------------
3986 # Find default assembler
3987 # ----------------------
3991 # Check whether --with-gnu-as was given.
3992 if test "${with_gnu_as+set}" = set; then :
3993 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
4000 # Check whether --with-as was given.
4001 if test "${with_as+set}" = set; then :
4002 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
4005 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4006 if test ! -x "$DEFAULT_ASSEMBLER"; then
4007 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4008 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4012 cat >>confdefs.h
<<_ACEOF
4013 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4019 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4020 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4021 if test x
"$gas_flag" = x
"no"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4023 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4026 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4037 # If a non-executable a.out is present (e.g. created by GNU as above even if
4038 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4039 # file, even when creating an executable, so an execution test fails.
4040 # Remove possible default executable files to avoid this.
4042 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4043 # Autoconf includes it.
4044 rm -f a.out a.exe b.out
4046 # Find the native compiler
4048 ac_cpp
='$CPP $CPPFLAGS'
4049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false
; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC
="$CC" # Let the user override the test.
4063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir
=.
4068 for ac_exec_ext
in '' $ac_executable_extensions; do
4069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4091 if test -z "$ac_cv_prog_CC"; then
4093 # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc
; ac_word
=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$ac_ct_CC"; then
4101 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir
=.
4108 for ac_exec_ext
in '' $ac_executable_extensions; do
4109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_ac_ct_CC
="gcc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 $as_echo "$ac_ct_CC" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4129 if test "x$ac_ct_CC" = x
; then
4132 case $cross_compiling:$ac_tool_warned in
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned
=yes ;;
4144 if test -z "$CC"; then
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if ${ac_cv_prog_CC+:} false
; then :
4151 $as_echo_n "(cached) " >&6
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC
="$CC" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4185 if test -z "$CC"; then
4186 # Extract the first word of "cc", so it can be a program name with args.
4187 set dummy cc
; ac_word
=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false
; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC
="$CC" # Let the user override the test.
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir
=.
4202 for ac_exec_ext
in '' $ac_executable_extensions; do
4203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205 ac_prog_rejected
=yes
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test $ac_prog_rejected = yes; then
4217 # We found a bogon in the path, so make sure we never use it.
4218 set dummy
$ac_cv_prog_CC
4220 if test $# != 0; then
4221 # We chose a different compiler from the bogus one.
4222 # However, it has the same basename, so the bogon will be chosen
4223 # first if we set CC to just the basename; use the full file name.
4225 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4231 if test -n "$CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 if test -z "$CC"; then
4242 if test -n "$ac_tool_prefix"; then
4243 for ac_prog
in cl.exe
4245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_CC+:} false
; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -n "$CC"; then
4253 ac_cv_prog_CC
="$CC" # Let the user override the test.
4255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir
=.
4260 for ac_exec_ext
in '' $ac_executable_extensions; do
4261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 if test -n "$CC"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 $as_echo "$CC" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4282 test -n "$CC" && break
4285 if test -z "$CC"; then
4287 for ac_prog
in cl.exe
4289 # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy
$ac_prog; ac_word
=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4294 $as_echo_n "(cached) " >&6
4296 if test -n "$ac_ct_CC"; then
4297 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir
=.
4304 for ac_exec_ext
in '' $ac_executable_extensions; do
4305 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_ac_ct_CC
="$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4317 if test -n "$ac_ct_CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319 $as_echo "$ac_ct_CC" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$ac_ct_CC" && break
4329 if test "x$ac_ct_CC" = x
; then
4332 case $cross_compiling:$ac_tool_warned in
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned
=yes ;;
4345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $?
"no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details" "$LINENO" 5; }
4350 # Provide some information about the compiler.
4351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4354 for ac_option
in --version -v -V -qversion; do
4355 { { ac_try
="$ac_compiler $ac_option >&5"
4357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4364 if test -s conftest.err; then
4366 ... rest of stderr output deleted ...
4367 10q' conftest.err >conftest.er1
4368 cat conftest.er1 >&5
4370 rm -f conftest.er1 conftest.err
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4392 $as_echo_n "checking whether the C compiler works... " >&6; }
4393 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4395 # The possible output files:
4396 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4399 for ac_file in $ac_files
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4408 if { { ac_try="$ac_link_default"
4410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4411 *) ac_try_echo
=$ac_try;;
4413 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link_default") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4422 # so that the user can short-circuit this test for compilers unknown to
4424 for ac_file
in $ac_files ''
4426 test -f "$ac_file" ||
continue
4428 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4431 # We found the default executable, but exeext='' is most
4435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4437 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 # We set ac_cv_exeext here because the later test for it is not
4440 # safe: cross compilers may not add the suffix if given an `-o'
4441 # argument, so we may need to know it at that point already.
4442 # Even if this section looks crufty: it has the advantage of
4449 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4454 if test -z "$ac_file"; then :
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 $as_echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.
$ac_ext >&5
4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4462 as_fn_error
77 "C compiler cannot create executables
4463 See \`config.log' for more details" "$LINENO" 5; }
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4466 $as_echo "yes" >&6; }
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4469 $as_echo_n "checking for C compiler default output file name... " >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4471 $as_echo "$ac_file" >&6; }
4472 ac_exeext
=$ac_cv_exeext
4474 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4475 ac_clean_files
=$ac_clean_files_save
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4477 $as_echo_n "checking for suffix of executables... " >&6; }
4478 if { { ac_try
="$ac_link"
4480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_link") 2>&5
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; then :
4489 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4490 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4491 # work properly (i.e., refer to `conftest.exe'), while it won't with
4493 for ac_file
in conftest.exe conftest conftest.
*; do
4494 test -f "$ac_file" ||
continue
4496 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4497 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4506 See \`config.log' for more details" "$LINENO" 5; }
4508 rm -f conftest conftest
$ac_cv_exeext
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4510 $as_echo "$ac_cv_exeext" >&6; }
4512 rm -f conftest.
$ac_ext
4513 EXEEXT
=$ac_cv_exeext
4515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4521 FILE *f = fopen ("conftest.out", "w");
4522 return ferror (f) || fclose (f) != 0;
4528 ac_clean_files
="$ac_clean_files conftest.out"
4529 # Check that the compiler produces executables we can run. If not, either
4530 # the compiler is broken, or we cross compile.
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4532 $as_echo_n "checking whether we are cross compiling... " >&6; }
4533 if test "$cross_compiling" != yes; then
4534 { { ac_try
="$ac_link"
4536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 $as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_link") 2>&5
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4545 if { ac_try='./conftest$ac_cv_exeext'
4546 { { case "(($ac_try" in
4547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4548 *) ac_try_echo
=$ac_try;;
4550 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_try") 2>&5
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; }; then
4558 if test "$cross_compiling" = maybe
; then
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error $?
"cannot run C compiled programs.
4564 If you meant to cross compile, use \`--host'.
4565 See \`config.log' for more details" "$LINENO" 5; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4570 $as_echo "$cross_compiling" >&6; }
4572 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4573 ac_clean_files
=$ac_clean_files_save
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4575 $as_echo_n "checking for suffix of object files... " >&6; }
4576 if ${ac_cv_objext+:} false
; then :
4577 $as_echo_n "(cached) " >&6
4579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 rm -f conftest.o conftest.obj
4591 if { { ac_try
="$ac_compile"
4593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 $as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_compile") 2>&5
4600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601 test $ac_status = 0; }; then :
4602 for ac_file in conftest.o conftest.obj conftest.*; do
4603 test -f "$ac_file" || continue;
4605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4611 $as_echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4617 See \
`config.log' for more details" "$LINENO" 5; }
4619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4622 $as_echo "$ac_cv_objext" >&6; }
4623 OBJEXT=$ac_cv_objext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4627 if ${ac_cv_c_compiler_gnu+:} false; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4644 if ac_fn_c_try_compile "$LINENO"; then :
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4660 ac_test_CFLAGS=${CFLAGS+set}
4661 ac_save_CFLAGS=$CFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4664 if ${ac_cv_prog_cc_g+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 ac_save_c_werror_flag=$ac_c_werror_flag
4668 ac_c_werror_flag=yes
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4682 if ac_fn_c_try_compile "$LINENO"; then :
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4697 if ac_fn_c_try_compile "$LINENO"; then :
4700 ac_c_werror_flag=$ac_save_c_werror_flag
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4713 if ac_fn_c_try_compile "$LINENO"; then :
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 ac_c_werror_flag=$ac_save_c_werror_flag
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4724 $as_echo "$ac_cv_prog_cc_g" >&6; }
4725 if test "$ac_test_CFLAGS" = set; then
4726 CFLAGS=$ac_save_CFLAGS
4727 elif test $ac_cv_prog_cc_g = yes; then
4728 if test "$GCC" = yes; then
4734 if test "$GCC" = yes; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4742 if ${ac_cv_prog_cc_c89+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 ac_cv_prog_cc_c89=no
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4753 struct buf { int x; };
4754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4755 static char *e (p, i)
4761 static char *f (char * (*g) (char **, int), char **p, ...)
4766 s = g (p, va_arg (v,int));
4771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4772 function prototypes and stuff, but not '\xHH' hex character constants.
4773 These don't provoke an error unfortunately, instead are silently treated
4774 as 'x'. The following induces an error, until -std is added to get
4775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4776 array size at least. It's necessary to write '\x00'==0 to get something
4777 that's true only with -std. */
4778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4780 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4781 inside strings and character constants. */
4783 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4785 int test (int i, double x);
4786 struct s1 {int (*f) (int a);};
4787 struct s2 {int (*f) (double a);};
4788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4800 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4802 CC="$ac_save_CC $ac_arg"
4803 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_cv_prog_cc_c89=$ac_arg
4806 rm -f core conftest.err conftest.$ac_objext
4807 test "x$ac_cv_prog_cc_c89" != "xno" && break
4809 rm -f conftest.$ac_ext
4814 case "x$ac_cv_prog_cc_c89" in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4817 $as_echo "none needed" >&6; } ;;
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4820 $as_echo "unsupported" >&6; } ;;
4822 CC="$CC $ac_cv_prog_cc_c89"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4824 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4826 if test "x$ac_cv_prog_cc_c89" != xno; then :
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 ac_cpp='$CXXCPP $CPPFLAGS'
4838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4841 if test -z "$CXX"; then
4842 if test -n "$CCC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_CXX+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$CXX"; then
4856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 if test -n "$CXX"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4878 $as_echo "$CXX" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$CXX" && break
4888 if test -z "$CXX"; then
4890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$ac_ct_CXX"; then
4900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CXX="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4920 if test -n "$ac_ct_CXX"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4922 $as_echo "$ac_ct_CXX" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$ac_ct_CXX" && break
4932 if test "x$ac_ct_CXX" = x; then
4935 case $cross_compiling:$ac_tool_warned in
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4947 # Provide some information about the compiler.
4948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4951 for ac_option in --version -v -V -qversion; do
4952 { { ac_try="$ac_compiler $ac_option >&5"
4954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4955 *) ac_try_echo
=$ac_try;;
4957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4958 $as_echo "$ac_try_echo"; } >&5
4959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4961 if test -s conftest.err
; then
4963 ... rest of stderr output deleted ...
4964 10q' conftest.err
>conftest.er1
4965 cat conftest.er1
>&5
4967 rm -f conftest.er1 conftest.err
4968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4969 test $ac_status = 0; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4973 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4974 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4975 $as_echo_n "(cached) " >&6
4977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4991 if ac_fn_cxx_try_compile
"$LINENO"; then :
4996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5001 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5002 if test $ac_compiler_gnu = yes; then
5007 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5008 ac_save_CXXFLAGS
=$CXXFLAGS
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5010 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5011 if ${ac_cv_prog_cxx_g+:} false
; then :
5012 $as_echo_n "(cached) " >&6
5014 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5015 ac_cxx_werror_flag
=yes
5018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5029 if ac_fn_cxx_try_compile
"$LINENO"; then :
5030 ac_cv_prog_cxx_g
=yes
5033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5044 if ac_fn_cxx_try_compile
"$LINENO"; then :
5047 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5060 if ac_fn_cxx_try_compile
"$LINENO"; then :
5061 ac_cv_prog_cxx_g
=yes
5063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5068 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5071 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5072 if test "$ac_test_CXXFLAGS" = set; then
5073 CXXFLAGS
=$ac_save_CXXFLAGS
5074 elif test $ac_cv_prog_cxx_g = yes; then
5075 if test "$GXX" = yes; then
5081 if test "$GXX" = yes; then
5088 ac_cpp
='$CPP $CPPFLAGS'
5089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5098 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_GNATBIND+:} false
; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -n "$GNATBIND"; then
5105 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 GNATBIND
=$ac_cv_prog_GNATBIND
5125 if test -n "$GNATBIND"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5127 $as_echo "$GNATBIND" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$ac_cv_prog_GNATBIND"; then
5136 ac_ct_GNATBIND
=$GNATBIND
5137 # Extract the first word of "gnatbind", so it can be a program name with args.
5138 set dummy gnatbind
; ac_word
=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -n "$ac_ct_GNATBIND"; then
5145 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5165 if test -n "$ac_ct_GNATBIND"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5167 $as_echo "$ac_ct_GNATBIND" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5173 if test "x$ac_ct_GNATBIND" = x
; then
5176 case $cross_compiling:$ac_tool_warned in
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned
=yes ;;
5182 GNATBIND
=$ac_ct_GNATBIND
5185 GNATBIND
="$ac_cv_prog_GNATBIND"
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5190 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5194 $as_echo_n "(cached) " >&6
5196 if test -n "$GNATMAKE"; then
5197 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 GNATMAKE
=$ac_cv_prog_GNATMAKE
5217 if test -n "$GNATMAKE"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5219 $as_echo "$GNATMAKE" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5227 if test -z "$ac_cv_prog_GNATMAKE"; then
5228 ac_ct_GNATMAKE
=$GNATMAKE
5229 # Extract the first word of "gnatmake", so it can be a program name with args.
5230 set dummy gnatmake
; ac_word
=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$ac_ct_GNATMAKE"; then
5237 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5257 if test -n "$ac_ct_GNATMAKE"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5259 $as_echo "$ac_ct_GNATMAKE" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5265 if test "x$ac_ct_GNATMAKE" = x
; then
5268 case $cross_compiling:$ac_tool_warned in
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned
=yes ;;
5274 GNATMAKE
=$ac_ct_GNATMAKE
5277 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5281 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5282 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5283 $as_echo_n "(cached) " >&6
5285 cat >conftest.adb
<<EOF
5286 pragma Warnings (Off);
5288 pragma Warnings (On);
5289 use type System.CRTL.int64;
5290 procedure conftest is begin null; end conftest;
5292 acx_cv_cc_gcc_supports_ada
=no
5293 # There is a bug in old released versions of GCC which causes the
5294 # driver to exit successfully when the appropriate language module
5295 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5296 # Therefore we must check for the error message as well as an
5297 # unsuccessful exit.
5298 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5299 # given a .adb file, but produce no object file. So we must check
5300 # if an object file was really produced to guard against this.
5301 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5302 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5303 acx_cv_cc_gcc_supports_ada
=yes
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5308 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5310 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5320 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_GDC+:} false
; then :
5324 $as_echo_n "(cached) " >&6
5326 if test -n "$GDC"; then
5327 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir
=.
5334 for ac_exec_ext
in '' $ac_executable_extensions; do
5335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 if test -n "$GDC"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5349 $as_echo "$GDC" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5357 if test -z "$ac_cv_prog_GDC"; then
5359 # Extract the first word of "gdc", so it can be a program name with args.
5360 set dummy gdc
; ac_word
=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5364 $as_echo_n "(cached) " >&6
5366 if test -n "$ac_ct_GDC"; then
5367 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir
=.
5374 for ac_exec_ext
in '' $ac_executable_extensions; do
5375 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_ac_ct_GDC
="gdc"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5387 if test -n "$ac_ct_GDC"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5389 $as_echo "$ac_ct_GDC" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5395 if test "x$ac_ct_GDC" = x
; then
5398 case $cross_compiling:$ac_tool_warned in
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402 ac_tool_warned
=yes ;;
5407 GDC
="$ac_cv_prog_GDC"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5411 $as_echo_n "checking whether the D compiler works... " >&6; }
5412 if ${acx_cv_d_compiler_works+:} false
; then :
5413 $as_echo_n "(cached) " >&6
5415 cat >conftest.d
<<EOF
5416 module conftest; int main() { return 0; }
5418 acx_cv_d_compiler_works
=no
5419 if test "x$GDC" != xno
; then
5420 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5421 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5422 acx_cv_d_compiler_works
=yes
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5428 $as_echo "$acx_cv_d_compiler_works" >&6; }
5429 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5436 # Do configure tests with the C++ compiler, since that's what we build with.
5438 ac_cpp
='$CXXCPP $CPPFLAGS'
5439 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5444 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5445 # optimizations to be activated explicitly by the toplevel.
5447 */prev-gcc
/xgcc
*) ;;
5448 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5449 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5455 # Determine PICFLAG for target gnatlib.
5461 # PIC is the default on some targets or must not be used.
5463 # For darwin, common symbols are not allowed in MH_DYLIB files
5465 # If we are using a compiler supporting mdynamic-no-pic
5466 # and the option has been tested as safe to add, then cancel
5467 # it here, since the code generated is incompatible with shared
5469 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5470 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5474 # PIC is the default.
5477 # PIC is the default for 64-bit PA HP-UX.
5479 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5481 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5483 i
[34567]86-*-interix[3-9]*)
5484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5485 # Instead, we relocate shared libraries at runtime.
5487 i
[34567]86-*-nto-qnx*)
5488 # QNX uses GNU C++, but need to define -shared option too, otherwise
5490 PICFLAG_FOR_TARGET
='-fPIC -shared'
5492 i
[34567]86-pc-msdosdjgpp*)
5493 # DJGPP does not support shared libraries at all.
5496 # On IA64 HP-UX, PIC is the default but the pic flag
5497 # sets the default TLS model and affects inlining.
5498 PICFLAG_FOR_TARGET
=-fPIC
5501 PICFLAG_FOR_TARGET
=-fpic
5504 # PIC is the default.
5506 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5507 # All AIX code is PIC.
5510 # Some targets support both -fPIC and -fpic, but prefer the latter.
5512 i
[34567]86-*-* | x86_64-
*-*)
5513 PICFLAG_FOR_TARGET
=-fpic
5515 # FIXME: Override -fPIC default in libgcc only?
5516 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5517 PICFLAG_FOR_TARGET
=-fpic
5520 PICFLAG_FOR_TARGET
=-fpic
5522 # Default to -fPIC unless specified otherwise.
5524 PICFLAG_FOR_TARGET
=-fPIC
5528 # If the user explicitly uses -fpic/-fPIC, keep that.
5529 case "${CFLAGS_FOR_TARGET}" in
5531 PICFLAG_FOR_TARGET
=-fpic
5534 PICFLAG_FOR_TARGET
=-fPIC
5540 # -------------------------
5541 # Check C compiler features
5542 # -------------------------
5546 ac_cpp
='$CXXCPP $CPPFLAGS'
5547 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5551 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5552 if test -z "$CXXCPP"; then
5553 if ${ac_cv_prog_CXXCPP+:} false
; then :
5554 $as_echo_n "(cached) " >&6
5556 # Double quotes because CXXCPP needs to be expanded
5557 for CXXCPP
in "$CXX -E" "/lib/cpp"
5560 for ac_cxx_preproc_warn_flag
in '' yes
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5571 # include <limits.h>
5573 # include <assert.h>
5577 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5580 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.i conftest.
$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5591 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5592 # Broken: success on invalid input.
5595 # Passes both tests.
5599 rm -f conftest.err conftest.i conftest.
$ac_ext
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.i conftest.err conftest.
$ac_ext
5604 if $ac_preproc_ok; then :
5609 ac_cv_prog_CXXCPP
=$CXXCPP
5612 CXXCPP
=$ac_cv_prog_CXXCPP
5614 ac_cv_prog_CXXCPP
=$CXXCPP
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5617 $as_echo "$CXXCPP" >&6; }
5619 for ac_cxx_preproc_warn_flag
in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 # include <limits.h>
5632 # include <assert.h>
5636 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5639 # Broken: fails on valid input.
5642 rm -f conftest.err conftest.i conftest.
$ac_ext
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5650 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5651 # Broken: success on invalid input.
5654 # Passes both tests.
5658 rm -f conftest.err conftest.i conftest.
$ac_ext
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.i conftest.err conftest.
$ac_ext
5663 if $ac_preproc_ok; then :
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5669 See \`config.log' for more details" "$LINENO" 5; }
5673 ac_cpp
='$CXXCPP $CPPFLAGS'
5674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5680 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5681 if ${ac_cv_path_GREP+:} false
; then :
5682 $as_echo_n "(cached) " >&6
5684 if test -z "$GREP"; then
5685 ac_path_GREP_found
=false
5686 # Loop through the user's path and test for each of PROGNAME-LIST
5687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5688 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5691 test -z "$as_dir" && as_dir
=.
5692 for ac_prog
in grep ggrep
; do
5693 for ac_exec_ext
in '' $ac_executable_extensions; do
5694 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5695 as_fn_executable_p
"$ac_path_GREP" ||
continue
5696 # Check for GNU ac_path_GREP and select it if it is found.
5697 # Check for GNU $ac_path_GREP
5698 case `"$ac_path_GREP" --version 2>&1` in
5700 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5703 $as_echo_n 0123456789 >"conftest.in"
5706 cat "conftest.in" "conftest.in" >"conftest.tmp"
5707 mv "conftest.tmp" "conftest.in"
5708 cp "conftest.in" "conftest.nl"
5709 $as_echo 'GREP' >> "conftest.nl"
5710 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5711 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5712 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5713 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5714 # Best one so far, save it but keep looking for a better one
5715 ac_cv_path_GREP
="$ac_path_GREP"
5716 ac_path_GREP_max
=$ac_count
5718 # 10*(2^10) chars as input seems more than enough
5719 test $ac_count -gt 10 && break
5721 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5724 $ac_path_GREP_found && break 3
5729 if test -z "$ac_cv_path_GREP"; then
5730 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5733 ac_cv_path_GREP
=$GREP
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5738 $as_echo "$ac_cv_path_GREP" >&6; }
5739 GREP
="$ac_cv_path_GREP"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5743 $as_echo_n "checking for egrep... " >&6; }
5744 if ${ac_cv_path_EGREP+:} false
; then :
5745 $as_echo_n "(cached) " >&6
5747 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5748 then ac_cv_path_EGREP
="$GREP -E"
5750 if test -z "$EGREP"; then
5751 ac_path_EGREP_found
=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5754 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5757 test -z "$as_dir" && as_dir
=.
5758 for ac_prog
in egrep; do
5759 for ac_exec_ext
in '' $ac_executable_extensions; do
5760 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5761 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5762 # Check for GNU ac_path_EGREP and select it if it is found.
5763 # Check for GNU $ac_path_EGREP
5764 case `"$ac_path_EGREP" --version 2>&1` in
5766 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5769 $as_echo_n 0123456789 >"conftest.in"
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo 'EGREP' >> "conftest.nl"
5776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5777 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5778 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_EGREP
="$ac_path_EGREP"
5782 ac_path_EGREP_max
=$ac_count
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5787 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5790 $ac_path_EGREP_found && break 3
5795 if test -z "$ac_cv_path_EGREP"; then
5796 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5799 ac_cv_path_EGREP
=$EGREP
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5805 $as_echo "$ac_cv_path_EGREP" >&6; }
5806 EGREP
="$ac_cv_path_EGREP"
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5810 $as_echo_n "checking for ANSI C header files... " >&6; }
5811 if ${ac_cv_header_stdc+:} false
; then :
5812 $as_echo_n "(cached) " >&6
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5829 if ac_fn_cxx_try_compile
"$LINENO"; then :
5830 ac_cv_header_stdc
=yes
5832 ac_cv_header_stdc
=no
5834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 if test $ac_cv_header_stdc = yes; then
5837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "memchr" >/dev
/null
2>&1; then :
5847 ac_cv_header_stdc
=no
5853 if test $ac_cv_header_stdc = yes; then
5854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "free" >/dev
/null
2>&1; then :
5864 ac_cv_header_stdc
=no
5870 if test $ac_cv_header_stdc = yes; then
5871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5872 if test "$cross_compiling" = yes; then :
5875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5879 #if ((' ' & 0x0FF) == 0x020)
5880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5883 # define ISLOWER(c) \
5884 (('a' <= (c) && (c) <= 'i') \
5885 || ('j' <= (c) && (c) <= 'r') \
5886 || ('s' <= (c) && (c) <= 'z'))
5887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5895 for (i = 0; i < 256; i++)
5896 if (XOR (islower (i), ISLOWER (i))
5897 || toupper (i) != TOUPPER (i))
5902 if ac_fn_cxx_try_run
"$LINENO"; then :
5905 ac_cv_header_stdc
=no
5907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5914 $as_echo "$ac_cv_header_stdc" >&6; }
5915 if test $ac_cv_header_stdc = yes; then
5917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5922 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5923 inttypes.h stdint.h unistd.h
5925 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5926 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5928 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5929 cat >>confdefs.h
<<_ACEOF
5930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5940 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5947 if test "$MINIX" = yes; then
5949 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5952 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5955 $as_echo "#define _MINIX 1" >>confdefs.h
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5961 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5962 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5963 $as_echo_n "(cached) " >&6
5965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5968 # define __EXTENSIONS__ 1
5969 $ac_includes_default
5978 if ac_fn_cxx_try_compile
"$LINENO"; then :
5979 ac_cv_safe_to_define___extensions__
=yes
5981 ac_cv_safe_to_define___extensions__
=no
5983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5986 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5987 test $ac_cv_safe_to_define___extensions__ = yes &&
5988 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5990 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5992 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5994 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5996 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6001 ac_cpp
='$CPP $CPPFLAGS'
6002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6006 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6007 # On Suns, sometimes $CPP names a directory.
6008 if test -n "$CPP" && test -d "$CPP"; then
6011 if test -z "$CPP"; then
6012 if ${ac_cv_prog_CPP+:} false
; then :
6013 $as_echo_n "(cached) " >&6
6015 # Double quotes because CPP needs to be expanded
6016 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6019 for ac_c_preproc_warn_flag
in '' yes
6021 # Use a header file that comes with gcc, so configuring glibc
6022 # with a fresh cross-compiler works.
6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024 # <limits.h> exists even on freestanding compilers.
6025 # On the NeXT, cc -E runs the code through the compiler's parser,
6026 # not just through cpp. "Syntax error" is here to catch this case.
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6030 # include <limits.h>
6032 # include <assert.h>
6036 if ac_fn_c_try_cpp
"$LINENO"; then :
6039 # Broken: fails on valid input.
6042 rm -f conftest.err conftest.i conftest.
$ac_ext
6044 # OK, works on sane cases. Now check whether nonexistent headers
6045 # can be detected and how.
6046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <ac_nonexistent.h>
6050 if ac_fn_c_try_cpp
"$LINENO"; then :
6051 # Broken: success on invalid input.
6054 # Passes both tests.
6058 rm -f conftest.err conftest.i conftest.
$ac_ext
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.i conftest.err conftest.
$ac_ext
6063 if $ac_preproc_ok; then :
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6076 $as_echo "$CPP" >&6; }
6078 for ac_c_preproc_warn_flag
in '' yes
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6089 # include <limits.h>
6091 # include <assert.h>
6095 if ac_fn_c_try_cpp
"$LINENO"; then :
6098 # Broken: fails on valid input.
6101 rm -f conftest.err conftest.i conftest.
$ac_ext
6103 # OK, works on sane cases. Now check whether nonexistent headers
6104 # can be detected and how.
6105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #include <ac_nonexistent.h>
6109 if ac_fn_c_try_cpp
"$LINENO"; then :
6110 # Broken: success on invalid input.
6113 # Passes both tests.
6117 rm -f conftest.err conftest.i conftest.
$ac_ext
6120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121 rm -f conftest.i conftest.err conftest.
$ac_ext
6122 if $ac_preproc_ok; then :
6125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6128 See \`config.log' for more details" "$LINENO" 5; }
6132 ac_cpp
='$CXXCPP $CPPFLAGS'
6133 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6138 $as_echo_n "checking for inline... " >&6; }
6139 if ${ac_cv_c_inline+:} false
; then :
6140 $as_echo_n "(cached) " >&6
6143 for ac_kw
in inline __inline__ __inline
; do
6144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6148 static $ac_kw foo_t static_foo () {return 0; }
6149 $ac_kw foo_t foo () {return 0; }
6153 if ac_fn_cxx_try_compile
"$LINENO"; then :
6154 ac_cv_c_inline
=$ac_kw
6156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6157 test "$ac_cv_c_inline" != no
&& break
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6162 $as_echo "$ac_cv_c_inline" >&6; }
6164 case $ac_cv_c_inline in
6167 case $ac_cv_c_inline in
6169 *) ac_val
=$ac_cv_c_inline;;
6171 cat >>confdefs.h
<<_ACEOF
6173 #define inline $ac_val
6180 # Check whether --enable-largefile was given.
6181 if test "${enable_largefile+set}" = set; then :
6182 enableval
=$enable_largefile;
6185 if test "$enable_largefile" != no
; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6188 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6189 if ${ac_cv_sys_largefile_CC+:} false
; then :
6190 $as_echo_n "(cached) " >&6
6192 ac_cv_sys_largefile_CC
=no
6193 if test "$GCC" != yes; then
6196 # IRIX 6.2 and later do not support large files by default,
6197 # so use the C compiler's -n32 option if that helps.
6198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 #include <sys/types.h>
6201 /* Check that off_t can represent 2**63 - 1 correctly.
6202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6203 since some C++ compilers masquerading as C compilers
6204 incorrectly reject 9223372036854775807. */
6205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6207 && LARGE_OFF_T % 2147483647 == 1)
6217 if ac_fn_cxx_try_compile
"$LINENO"; then :
6220 rm -f core conftest.err conftest.
$ac_objext
6222 if ac_fn_cxx_try_compile
"$LINENO"; then :
6223 ac_cv_sys_largefile_CC
=' -n32'; break
6225 rm -f core conftest.err conftest.
$ac_objext
6229 rm -f conftest.
$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6233 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6234 if test "$ac_cv_sys_largefile_CC" != no
; then
6235 CC
=$CC$ac_cv_sys_largefile_CC
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6239 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6240 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6241 $as_echo_n "(cached) " >&6
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <sys/types.h>
6247 /* Check that off_t can represent 2**63 - 1 correctly.
6248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6249 since some C++ compilers masquerading as C compilers
6250 incorrectly reject 9223372036854775807. */
6251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6253 && LARGE_OFF_T % 2147483647 == 1)
6263 if ac_fn_cxx_try_compile
"$LINENO"; then :
6264 ac_cv_sys_file_offset_bits
=no
; break
6266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #define _FILE_OFFSET_BITS 64
6270 #include <sys/types.h>
6271 /* Check that off_t can represent 2**63 - 1 correctly.
6272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6273 since some C++ compilers masquerading as C compilers
6274 incorrectly reject 9223372036854775807. */
6275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6277 && LARGE_OFF_T % 2147483647 == 1)
6287 if ac_fn_cxx_try_compile
"$LINENO"; then :
6288 ac_cv_sys_file_offset_bits
=64; break
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 ac_cv_sys_file_offset_bits
=unknown
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6296 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6297 case $ac_cv_sys_file_offset_bits in #(
6300 cat >>confdefs.h
<<_ACEOF
6301 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6306 if test $ac_cv_sys_file_offset_bits = unknown
; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6308 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6309 if ${ac_cv_sys_large_files+:} false
; then :
6310 $as_echo_n "(cached) " >&6
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/types.h>
6316 /* Check that off_t can represent 2**63 - 1 correctly.
6317 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6318 since some C++ compilers masquerading as C compilers
6319 incorrectly reject 9223372036854775807. */
6320 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6321 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6322 && LARGE_OFF_T % 2147483647 == 1)
6332 if ac_fn_cxx_try_compile
"$LINENO"; then :
6333 ac_cv_sys_large_files
=no
; break
6335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #define _LARGE_FILES 1
6339 #include <sys/types.h>
6340 /* Check that off_t can represent 2**63 - 1 correctly.
6341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6342 since some C++ compilers masquerading as C compilers
6343 incorrectly reject 9223372036854775807. */
6344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6346 && LARGE_OFF_T % 2147483647 == 1)
6356 if ac_fn_cxx_try_compile
"$LINENO"; then :
6357 ac_cv_sys_large_files
=1; break
6359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6360 ac_cv_sys_large_files
=unknown
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6365 $as_echo "$ac_cv_sys_large_files" >&6; }
6366 case $ac_cv_sys_large_files in #(
6369 cat >>confdefs.h
<<_ACEOF
6370 #define _LARGE_FILES $ac_cv_sys_large_files
6380 # The cast to long int works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6385 $as_echo_n "checking size of ino_t... " >&6; }
6386 if ${ac_cv_sizeof_ino_t+:} false
; then :
6387 $as_echo_n "(cached) " >&6
6389 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6392 if test "$ac_cv_type_ino_t" = yes; then
6393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6395 as_fn_error
77 "cannot compute sizeof (ino_t)
6396 See \`config.log' for more details" "$LINENO" 5; }
6398 ac_cv_sizeof_ino_t
=0
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6404 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6408 cat >>confdefs.h
<<_ACEOF
6409 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6413 # The cast to long int works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6418 $as_echo_n "checking size of dev_t... " >&6; }
6419 if ${ac_cv_sizeof_dev_t+:} false
; then :
6420 $as_echo_n "(cached) " >&6
6422 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6425 if test "$ac_cv_type_dev_t" = yes; then
6426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6428 as_fn_error
77 "cannot compute sizeof (dev_t)
6429 See \`config.log' for more details" "$LINENO" 5; }
6431 ac_cv_sizeof_dev_t
=0
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6437 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6441 cat >>confdefs.h
<<_ACEOF
6442 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6447 # Select the right stat being able to handle 64bit inodes, if needed.
6448 if test "$enable_largefile" != no
; then
6449 case "$host, $build" in
6450 *-*-aix*,*|
*,*-*-aix*)
6451 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6453 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6460 # sizeof(char) is 1 by definition.
6461 # The cast to long int works around a bug in the HP C Compiler
6462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6464 # This bug is HP SR number 8606223364.
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6466 $as_echo_n "checking size of void *... " >&6; }
6467 if ${ac_cv_sizeof_void_p+:} false
; then :
6468 $as_echo_n "(cached) " >&6
6470 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6473 if test "$ac_cv_type_void_p" = yes; then
6474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6476 as_fn_error
77 "cannot compute sizeof (void *)
6477 See \`config.log' for more details" "$LINENO" 5; }
6479 ac_cv_sizeof_void_p
=0
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6485 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6489 cat >>confdefs.h
<<_ACEOF
6490 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6494 # The cast to long int works around a bug in the HP C Compiler
6495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6497 # This bug is HP SR number 8606223364.
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6499 $as_echo_n "checking size of short... " >&6; }
6500 if ${ac_cv_sizeof_short+:} false
; then :
6501 $as_echo_n "(cached) " >&6
6503 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6506 if test "$ac_cv_type_short" = yes; then
6507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6509 as_fn_error
77 "cannot compute sizeof (short)
6510 See \`config.log' for more details" "$LINENO" 5; }
6512 ac_cv_sizeof_short
=0
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6518 $as_echo "$ac_cv_sizeof_short" >&6; }
6522 cat >>confdefs.h
<<_ACEOF
6523 #define SIZEOF_SHORT $ac_cv_sizeof_short
6527 # The cast to long int works around a bug in the HP C Compiler
6528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6530 # This bug is HP SR number 8606223364.
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6532 $as_echo_n "checking size of int... " >&6; }
6533 if ${ac_cv_sizeof_int+:} false
; then :
6534 $as_echo_n "(cached) " >&6
6536 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6539 if test "$ac_cv_type_int" = yes; then
6540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6542 as_fn_error
77 "cannot compute sizeof (int)
6543 See \`config.log' for more details" "$LINENO" 5; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6551 $as_echo "$ac_cv_sizeof_int" >&6; }
6555 cat >>confdefs.h
<<_ACEOF
6556 #define SIZEOF_INT $ac_cv_sizeof_int
6560 # The cast to long int works around a bug in the HP C Compiler
6561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6563 # This bug is HP SR number 8606223364.
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6565 $as_echo_n "checking size of long... " >&6; }
6566 if ${ac_cv_sizeof_long+:} false
; then :
6567 $as_echo_n "(cached) " >&6
6569 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6572 if test "$ac_cv_type_long" = yes; then
6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575 as_fn_error
77 "cannot compute sizeof (long)
6576 See \`config.log' for more details" "$LINENO" 5; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6584 $as_echo "$ac_cv_sizeof_long" >&6; }
6588 cat >>confdefs.h
<<_ACEOF
6589 #define SIZEOF_LONG $ac_cv_sizeof_long
6593 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6594 if test "x$ac_cv_type_long_long" = xyes
; then :
6596 cat >>confdefs.h
<<_ACEOF
6597 #define HAVE_LONG_LONG 1
6600 # The cast to long int works around a bug in the HP C Compiler
6601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6603 # This bug is HP SR number 8606223364.
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6605 $as_echo_n "checking size of long long... " >&6; }
6606 if ${ac_cv_sizeof_long_long+:} false
; then :
6607 $as_echo_n "(cached) " >&6
6609 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6612 if test "$ac_cv_type_long_long" = yes; then
6613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6615 as_fn_error
77 "cannot compute sizeof (long long)
6616 See \`config.log' for more details" "$LINENO" 5; }
6618 ac_cv_sizeof_long_long
=0
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6624 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6628 cat >>confdefs.h
<<_ACEOF
6629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6635 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6636 case $ac_cv_c_int8_t in #(
6640 cat >>confdefs.h
<<_ACEOF
6641 #define int8_t $ac_cv_c_int8_t
6646 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6647 case $ac_cv_c_int16_t in #(
6651 cat >>confdefs.h
<<_ACEOF
6652 #define int16_t $ac_cv_c_int16_t
6657 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6658 case $ac_cv_c_int32_t in #(
6662 cat >>confdefs.h
<<_ACEOF
6663 #define int32_t $ac_cv_c_int32_t
6668 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6669 case $ac_cv_c_int64_t in #(
6673 cat >>confdefs.h
<<_ACEOF
6674 #define int64_t $ac_cv_c_int64_t
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6681 $as_echo_n "checking for unsigned long long int... " >&6; }
6682 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6683 $as_echo_n "(cached) " >&6
6685 ac_cv_type_unsigned_long_long_int
=yes
6686 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6690 /* For now, do not test the preprocessor; as of 2007 there are too many
6691 implementations with broken preprocessors. Perhaps this can
6692 be revisited in 2012. In the meantime, code should not expect
6693 #if to work with literals wider than 32 bits. */
6694 /* Test literals. */
6695 long long int ll = 9223372036854775807ll;
6696 long long int nll = -9223372036854775807LL;
6697 unsigned long long int ull = 18446744073709551615ULL;
6698 /* Test constant expressions. */
6699 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6701 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6707 /* Test availability of runtime routines for shift and division. */
6708 long long int llmax = 9223372036854775807ll;
6709 unsigned long long int ullmax = 18446744073709551615ull;
6710 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6711 | (llmax / ll) | (llmax % ll)
6712 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6713 | (ullmax / ull) | (ullmax % ull));
6719 if ac_fn_cxx_try_link
"$LINENO"; then :
6722 ac_cv_type_unsigned_long_long_int
=no
6724 rm -f core conftest.err conftest.
$ac_objext \
6725 conftest
$ac_exeext conftest.
$ac_ext
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6729 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6730 if test $ac_cv_type_unsigned_long_long_int = yes; then
6732 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6739 $as_echo_n "checking for long long int... " >&6; }
6740 if ${ac_cv_type_long_long_int+:} false
; then :
6741 $as_echo_n "(cached) " >&6
6743 ac_cv_type_long_long_int
=yes
6744 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6745 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6746 if test $ac_cv_type_long_long_int = yes; then
6747 if test "$cross_compiling" = yes; then :
6750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6755 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6756 # define LLONG_MAX (HALF - 1 + HALF)
6761 long long int n = 1;
6765 long long int m = n << i;
6768 if (LLONG_MAX / 2 < m)
6776 if ac_fn_cxx_try_run
"$LINENO"; then :
6779 ac_cv_type_long_long_int
=no
6781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6789 $as_echo "$ac_cv_type_long_long_int" >&6; }
6790 if test $ac_cv_type_long_long_int = yes; then
6792 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6798 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6799 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6801 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6804 test $ac_cv_type_long_long_int = yes \
6805 && ac_type
='long long int' \
6806 || ac_type
='long int'
6808 cat >>confdefs.h
<<_ACEOF
6809 #define intmax_t $ac_type
6816 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6817 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6819 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6822 for ac_type
in 'int' 'long int' 'long long int'; do
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 $ac_includes_default
6829 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6831 return test_array [0];
6837 if ac_fn_cxx_try_compile
"$LINENO"; then :
6839 cat >>confdefs.h
<<_ACEOF
6840 #define intptr_t $ac_type
6845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6846 test -z "$ac_type" && break
6851 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6852 case $ac_cv_c_uint8_t in #(
6856 $as_echo "#define _UINT8_T 1" >>confdefs.h
6859 cat >>confdefs.h
<<_ACEOF
6860 #define uint8_t $ac_cv_c_uint8_t
6865 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6866 case $ac_cv_c_uint16_t in #(
6871 cat >>confdefs.h
<<_ACEOF
6872 #define uint16_t $ac_cv_c_uint16_t
6877 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6878 case $ac_cv_c_uint32_t in #(
6882 $as_echo "#define _UINT32_T 1" >>confdefs.h
6885 cat >>confdefs.h
<<_ACEOF
6886 #define uint32_t $ac_cv_c_uint32_t
6891 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6892 case $ac_cv_c_uint64_t in #(
6896 $as_echo "#define _UINT64_T 1" >>confdefs.h
6899 cat >>confdefs.h
<<_ACEOF
6900 #define uint64_t $ac_cv_c_uint64_t
6907 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6908 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6910 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6913 test $ac_cv_type_unsigned_long_long_int = yes \
6914 && ac_type
='unsigned long long int' \
6915 || ac_type
='unsigned long int'
6917 cat >>confdefs.h
<<_ACEOF
6918 #define uintmax_t $ac_type
6925 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6926 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6928 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6931 for ac_type
in 'unsigned int' 'unsigned long int' \
6932 'unsigned long long int'; do
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 $ac_includes_default
6939 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6941 return test_array [0];
6947 if ac_fn_cxx_try_compile
"$LINENO"; then :
6949 cat >>confdefs.h
<<_ACEOF
6950 #define uintptr_t $ac_type
6955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 test -z "$ac_type" && break
6973 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6974 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6977 # check what underlying integer type int64_t uses
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6979 $as_echo_n "checking for int64_t underlying type... " >&6; }
6980 if ${ac_cv_int64_t_type+:} false
; then :
6981 $as_echo_n "(cached) " >&6
6984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6987 #ifdef HAVE_STDINT_H
6990 template <typename T> struct X { };
6992 struct X<long> { typedef long t; };
7002 if ac_fn_cxx_try_compile
"$LINENO"; then :
7003 ac_cv_int64_t_type
=long
7005 ac_cv_int64_t_type
="long long"
7007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7010 $as_echo "$ac_cv_int64_t_type" >&6; }
7011 if test "$ac_cv_int64_t_type" = "long"; then
7013 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7019 #ifdef HAVE_STDINT_H
7022 template <typename T> struct X { };
7024 struct X<long long> { typedef long long t; };
7034 if ac_fn_cxx_try_compile
"$LINENO"; then :
7037 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7043 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7044 if ${ac_cv_std_swap_in_utility+:} false
; then :
7045 $as_echo_n "(cached) " >&6
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7056 int a, b; std::swap(a,b);
7061 if ac_fn_cxx_try_compile
"$LINENO"; then :
7062 ac_cv_std_swap_in_utility
=yes
7064 ac_cv_std_swap_in_utility
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7069 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7070 if test $ac_cv_std_swap_in_utility = yes; then
7072 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7076 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7077 # If the host compiler is affected by the bug, and we build with optimization
7078 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7079 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7080 # Since there is no reliable feature check for the presence of this bug,
7081 # we simply use a GCC version number check. (This should never trigger for
7082 # stages 2 or 3 of a native bootstrap.)
7084 if test "$GCC" = yes; then
7085 saved_CXXFLAGS
="$CXXFLAGS"
7087 # The following test compilation will succeed if and only if $CXX accepts
7088 # -fno-strict-aliasing *and* is older than GCC 4.3.
7089 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7091 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7096 #error compiler not affected by placement new aliasing bug
7100 if ac_fn_cxx_try_compile
"$LINENO"; then :
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 CXXFLAGS
="$saved_CXXFLAGS"
7115 # ---------------------
7116 # Warnings and checking
7117 # ---------------------
7119 # Check $CC warning features (if it's GCC).
7120 # We want to use -pedantic, but we don't want warnings about
7123 # * overlong strings
7124 # * C++11 narrowing conversions in { }
7125 # So, we only use -pedantic if we can disable those warnings.
7127 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7128 # Check whether --enable-build-format-warnings was given.
7129 if test "${enable_build_format_warnings+set}" = set; then :
7130 enableval
=$enable_build_format_warnings;
7132 enable_build_format_warnings
=yes
7135 if test $enable_build_format_warnings = no
; then :
7141 ac_cpp
='$CXXCPP $CPPFLAGS'
7142 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7147 save_CXXFLAGS
="$CXXFLAGS"
7148 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7149 # Do the check with the no- prefix removed since gcc silently
7150 # accepts any -Wno-* option on purpose
7151 case $real_option in
7152 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7153 *) option
=$real_option ;;
7155 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7158 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7159 if eval \
${$as_acx_Woption+:} false
; then :
7160 $as_echo_n "(cached) " >&6
7163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7174 if ac_fn_cxx_try_compile
"$LINENO"; then :
7175 eval "$as_acx_Woption=yes"
7177 eval "$as_acx_Woption=no"
7179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7182 eval ac_res
=\$
$as_acx_Woption
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7184 $as_echo "$ac_res" >&6; }
7185 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7186 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7189 CXXFLAGS
="$save_CXXFLAGS"
7191 ac_cpp
='$CXXCPP $CPPFLAGS'
7192 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7193 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7194 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7199 ac_cpp
='$CPP $CPPFLAGS'
7200 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7205 save_CFLAGS
="$CFLAGS"
7206 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7207 # Do the check with the no- prefix removed since gcc silently
7208 # accepts any -Wno-* option on purpose
7209 case $real_option in
7210 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7211 *) option
=$real_option ;;
7213 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7216 $as_echo_n "checking whether $CC supports $option... " >&6; }
7217 if eval \
${$as_acx_Woption+:} false
; then :
7218 $as_echo_n "(cached) " >&6
7221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7232 if ac_fn_c_try_compile
"$LINENO"; then :
7233 eval "$as_acx_Woption=yes"
7235 eval "$as_acx_Woption=no"
7237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 eval ac_res
=\$
$as_acx_Woption
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7242 $as_echo "$ac_res" >&6; }
7243 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7244 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7247 CFLAGS
="$save_CFLAGS"
7249 ac_cpp
='$CXXCPP $CPPFLAGS'
7250 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7256 ac_cpp
='$CXXCPP $CPPFLAGS'
7257 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7262 save_CXXFLAGS
="$CXXFLAGS"
7263 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7264 # Do the check with the no- prefix removed since gcc silently
7265 # accepts any -Wno-* option on purpose
7266 case $real_option in
7267 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7268 *) option
=$real_option ;;
7270 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7273 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7274 if eval \
${$as_acx_Woption+:} false
; then :
7275 $as_echo_n "(cached) " >&6
7278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7289 if ac_fn_cxx_try_compile
"$LINENO"; then :
7290 eval "$as_acx_Woption=yes"
7292 eval "$as_acx_Woption=no"
7294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 eval ac_res
=\$
$as_acx_Woption
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7299 $as_echo "$ac_res" >&6; }
7300 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7301 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7304 CXXFLAGS
="$save_CXXFLAGS"
7306 ac_cpp
='$CXXCPP $CPPFLAGS'
7307 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7313 ac_cpp
='$CPP $CPPFLAGS'
7314 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7319 save_CFLAGS
="$CFLAGS"
7320 for real_option
in -Wold-style-definition -Wc++-compat; do
7321 # Do the check with the no- prefix removed since gcc silently
7322 # accepts any -Wno-* option on purpose
7323 case $real_option in
7324 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7325 *) option
=$real_option ;;
7327 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7330 $as_echo_n "checking whether $CC supports $option... " >&6; }
7331 if eval \
${$as_acx_Woption+:} false
; then :
7332 $as_echo_n "(cached) " >&6
7335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7346 if ac_fn_c_try_compile
"$LINENO"; then :
7347 eval "$as_acx_Woption=yes"
7349 eval "$as_acx_Woption=no"
7351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7354 eval ac_res
=\$
$as_acx_Woption
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7356 $as_echo "$ac_res" >&6; }
7357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7358 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7361 CFLAGS
="$save_CFLAGS"
7363 ac_cpp
='$CXXCPP $CPPFLAGS'
7364 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7370 ac_cpp
='$CXXCPP $CPPFLAGS'
7371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7375 # Do the check with the no- prefix removed from the warning options
7376 # since gcc silently accepts any -Wno-* option on purpose
7377 if test "$GXX" = yes; then :
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7379 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7380 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7381 $as_echo_n "(cached) " >&6
7383 save_CXXFLAGS
="$CXXFLAGS"
7384 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_cxx_try_compile
"$LINENO"; then :
7397 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7399 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7402 CXXFLAGS
="$save_CXXFLAGS"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7405 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7406 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7407 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7412 ac_cpp
='$CXXCPP $CPPFLAGS'
7413 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7414 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7415 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7419 ac_cpp
='$CXXCPP $CPPFLAGS'
7420 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7424 # Check whether --enable-werror-always was given.
7425 if test "${enable_werror_always+set}" = set; then :
7426 enableval
=$enable_werror_always;
7428 enable_werror_always
=no
7431 if test $enable_werror_always = yes; then :
7432 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7436 ac_cpp
='$CXXCPP $CPPFLAGS'
7437 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7438 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7443 # The above macros do nothing if the compiler is not GCC. However, the
7444 # Makefile has more goo to add other flags, so these variables are used
7445 # to enable warnings only for GCC.
7448 if test "x$GCC" = "xyes"; then
7449 warn_cflags
='$(GCC_WARN_CFLAGS)'
7450 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7455 # Disable exceptions and RTTI if building with g++
7457 ac_cpp
='$CPP $CPPFLAGS'
7458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7463 save_CFLAGS
="$CFLAGS"
7464 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7465 # Do the check with the no- prefix removed since gcc silently
7466 # accepts any -Wno-* option on purpose
7467 case $real_option in
7468 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7469 *) option
=$real_option ;;
7471 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7474 $as_echo_n "checking whether $CC supports $option... " >&6; }
7475 if eval \
${$as_acx_Woption+:} false
; then :
7476 $as_echo_n "(cached) " >&6
7479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7490 if ac_fn_c_try_compile
"$LINENO"; then :
7491 eval "$as_acx_Woption=yes"
7493 eval "$as_acx_Woption=no"
7495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7498 eval ac_res
=\$
$as_acx_Woption
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7500 $as_echo "$ac_res" >&6; }
7501 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7502 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7505 CFLAGS
="$save_CFLAGS"
7507 ac_cpp
='$CXXCPP $CPPFLAGS'
7508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7514 # Enable expensive internal checks
7516 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7520 # Check whether --enable-checking was given.
7521 if test "${enable_checking+set}" = set; then :
7522 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7525 # Determine the default checks.
7526 if test x
$is_release = x
; then
7527 ac_checking_flags
=yes,extra
7529 ac_checking_flags
=release
7533 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7534 for check
in release
$ac_checking_flags
7537 # these set all the flags to specific states
7538 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7539 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7540 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7541 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7542 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7543 ac_types_checking
=1 ;;
7544 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7545 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7546 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7547 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7548 ac_tree_checking
= ; ac_valgrind_checking
= ;
7549 ac_types_checking
= ;;
7550 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7551 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7552 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7553 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7554 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7555 ac_types_checking
=1 ;;
7556 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7557 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7558 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7559 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7560 ac_tree_checking
= ; ac_valgrind_checking
= ;
7561 ac_types_checking
= ;;
7562 # these enable particular checks
7563 assert
) ac_assert_checking
=1 ;;
7564 df
) ac_df_checking
=1 ;;
7565 extra
) ac_extra_checking
=1 ;;
7566 fold) ac_fold_checking
=1 ;;
7567 gc
) ac_gc_checking
=1 ;;
7568 gcac
) ac_gc_always_collect
=1 ;;
7569 gimple
) ac_gimple_checking
=1 ;;
7570 misc
) ac_checking
=1 ;;
7571 rtl
) ac_rtl_checking
=1 ;;
7572 rtlflag
) ac_rtlflag_checking
=1 ;;
7573 runtime
) ac_runtime_checking
=1 ;;
7574 tree
) ac_tree_checking
=1 ;;
7575 types
) ac_types_checking
=1 ;;
7576 valgrind
) ac_valgrind_checking
=1 ;;
7577 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7583 if test x
$ac_checking != x
; then
7585 $as_echo "#define CHECKING_P 1" >>confdefs.h
7587 nocommon_flag
=-fno-common
7589 $as_echo "#define CHECKING_P 0" >>confdefs.h
7593 if test x
$ac_extra_checking != x
; then
7595 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7598 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7601 if test x
$ac_df_checking != x
; then
7603 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7606 if test x
$ac_assert_checking != x
; then
7608 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7611 if test x
$ac_gimple_checking != x
; then
7613 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7617 if test x
$ac_runtime_checking != x
; then
7619 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7622 if test x
$ac_tree_checking != x
; then
7624 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7628 if test x
$ac_types_checking != x
; then
7630 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7634 if test x
$ac_rtl_checking != x
; then
7636 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7639 if test x
$ac_rtlflag_checking != x
; then
7641 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7644 if test x
$ac_gc_checking != x
; then
7646 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7649 if test x
$ac_gc_always_collect != x
; then
7651 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7654 if test x
$ac_fold_checking != x
; then
7656 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7659 valgrind_path_defines
=
7662 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7663 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7671 # It is certainly possible that there's valgrind but no valgrind.h.
7672 # GCC relies on making annotations so we must have both.
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7674 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <valgrind/memcheck.h>
7678 #ifndef VALGRIND_DISCARD
7679 #error VALGRIND_DISCARD not defined
7682 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7683 gcc_cv_header_valgrind_memcheck_h
=yes
7685 gcc_cv_header_valgrind_memcheck_h
=no
7687 rm -f conftest.err conftest.i conftest.
$ac_ext
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7689 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7691 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <memcheck.h>
7695 #ifndef VALGRIND_DISCARD
7696 #error VALGRIND_DISCARD not defined
7699 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7700 gcc_cv_header_memcheck_h
=yes
7702 gcc_cv_header_memcheck_h
=no
7704 rm -f conftest.err conftest.i conftest.
$ac_ext
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7706 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7707 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7709 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7712 if test $gcc_cv_header_memcheck_h = yes; then
7714 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7718 if test x
$ac_valgrind_checking != x
; then
7720 # Prepare PATH_SEPARATOR.
7721 # The user is always right.
7722 if test "${PATH_SEPARATOR+set}" != set; then
7723 echo "#! /bin/sh" >conf$$.sh
7724 echo "exit 0" >>conf$$.sh
7726 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7734 # Find out how to test for executable files. Don't use a zero-byte file,
7735 # as systems may use methods other than mode bits to determine executability.
7736 cat >conf$$.
file <<_ASEOF
7740 chmod +x conf$$.
file
7741 if test -x conf$$.
file >/dev
/null
2>&1; then
7742 ac_executable_p
="test -x"
7744 ac_executable_p
="test -f"
7748 # Extract the first word of "valgrind", so it can be a program name with args.
7749 set dummy valgrind
; ac_word
=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_path_valgrind_path+:} false
; then :
7753 $as_echo_n "(cached) " >&6
7755 case "$valgrind_path" in
7757 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7760 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7761 for ac_dir
in $PATH; do
7763 test -z "$ac_dir" && ac_dir
=.
7764 for ac_exec_ext
in '' $ac_executable_extensions; do
7765 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7766 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7767 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7777 valgrind_path
="$ac_cv_path_valgrind_path"
7778 if test -n "$valgrind_path"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7780 $as_echo "$valgrind_path" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7786 if test "x$valgrind_path" = "x" \
7787 ||
(test $have_valgrind_h = no \
7788 && test $gcc_cv_header_memcheck_h = no \
7789 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7790 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7792 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7793 valgrind_command
="$valgrind_path -q"
7795 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7801 # Enable code coverage collection
7802 # Check whether --enable-coverage was given.
7803 if test "${enable_coverage+set}" = set; then :
7804 enableval
=$enable_coverage; case "${enableval}" in
7806 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7809 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7812 # a.k.a. --disable-coverage
7816 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7825 # Check whether --enable-gather-detailed-mem-stats was given.
7826 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7827 enableval
=$enable_gather_detailed_mem_stats;
7829 enable_gather_detailed_mem_stats
=no
7832 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7834 cat >>confdefs.h
<<_ACEOF
7835 #define GATHER_STATISTICS $gather_stats
7839 # Check whether --enable-valgrind-annotations was given.
7840 if test "${enable_valgrind_annotations+set}" = set; then :
7841 enableval
=$enable_valgrind_annotations;
7843 enable_valgrind_annotations
=no
7846 if test x
$enable_valgrind_annotations != xno \
7847 ||
test x
$ac_valgrind_checking != x
; then
7848 if (test $have_valgrind_h = no \
7849 && test $gcc_cv_header_memcheck_h = no \
7850 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7851 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7854 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7858 # -------------------------------
7859 # Miscenalleous configure options
7860 # -------------------------------
7862 # Determine whether or not multilibs are enabled.
7863 # Check whether --enable-multilib was given.
7864 if test "${enable_multilib+set}" = set; then :
7865 enableval
=$enable_multilib;
7872 # Determine whether or not multiarch is enabled.
7873 # Check whether --enable-multiarch was given.
7874 if test "${enable_multiarch+set}" = set; then :
7875 enableval
=$enable_multiarch; case "${enableval}" in
7876 yes|no|auto
) enable_multiarch
=$enableval;;
7877 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7880 enable_multiarch
=auto
7883 if test x
${enable_multiarch} = xauto
; then
7884 if test x
${with_native_system_header_dir} != x
; then
7885 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7888 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7889 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7893 if test x
${enable_multiarch} = xyes
; then
7895 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7899 $as_echo_n "checking for multiarch configuration... " >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7902 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7904 # needed for setting the multiarch name for soft-float/hard-float ABIs
7908 # default stack clash protection guard size as power of twos in bytes.
7909 # Please keep these in sync with params.def.
7913 # Keep the default value when the option is not used to 0, this allows us to
7914 # distinguish between the cases where the user specifially set a value via
7915 # configure and when the normal default value is used.
7917 # Check whether --with-stack-clash-protection-guard-size was given.
7918 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7919 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7921 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7924 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7925 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7926 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7927 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
7931 cat >>confdefs.h
<<_ACEOF
7932 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7936 # Specify the number of splits of match.pd to generate.
7938 # Check whether --with-matchpd-partitions was given.
7939 if test "${with_matchpd_partitions+set}" = set; then :
7940 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7942 DEFAULT_MATCHPD_PARTITIONS
=10
7945 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7946 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7951 # Enable __cxa_atexit for C++.
7952 # Check whether --enable-__cxa_atexit was given.
7953 if test "${enable___cxa_atexit+set}" = set; then :
7954 enableval
=$enable___cxa_atexit;
7958 # Enable C extension for decimal float if target supports it.
7960 # Check whether --enable-decimal-float was given.
7961 if test "${enable_decimal_float+set}" = set; then :
7962 enableval
=$enable_decimal_float;
7963 case $enable_decimal_float in
7964 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7965 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7966 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7973 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7974 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7975 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7976 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7977 enable_decimal_float
=yes
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7981 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7982 enable_decimal_float
=no
7989 # x86's use BID format instead of DPD
7990 case x
$enable_decimal_float in
7993 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7994 enable_decimal_float
=bid
7997 enable_decimal_float
=dpd
8000 default_decimal_float
=$enable_decimal_float
8003 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8004 # dependency on libdecnumber.
8005 default_decimal_float
=dpd
8012 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8014 cat >>confdefs.h
<<_ACEOF
8015 #define ENABLE_DECIMAL_FLOAT $dfp
8019 # Use default_decimal_float for dependency.
8020 enable_decimal_float
=$default_decimal_float
8022 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8024 cat >>confdefs.h
<<_ACEOF
8025 #define ENABLE_DECIMAL_BID_FORMAT $bid
8029 # Enable C extension for fixed-point arithmetic.
8030 # Check whether --enable-fixed-point was given.
8031 if test "${enable_fixed_point+set}" = set; then :
8032 enableval
=$enable_fixed_point;
8037 enable_fixed_point
=yes
8041 enable_fixed_point
=yes
8044 enable_fixed_point
=yes
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8048 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8049 enable_fixed_point
=no
8057 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8059 cat >>confdefs.h
<<_ACEOF
8060 #define ENABLE_FIXED_POINT $fixedpoint
8065 # Pass with no value to take the default
8066 # Pass with a value to specify a thread package
8067 # Check whether --enable-threads was given.
8068 if test "${enable_threads+set}" = set; then :
8069 enableval
=$enable_threads;
8075 # Check whether --enable-tls was given.
8076 if test "${enable_tls+set}" = set; then :
8077 enableval
=$enable_tls;
8080 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8081 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8089 # Check whether --enable-vtable-verify was given.
8090 if test "${enable_vtable_verify+set}" = set; then :
8091 enableval
=$enable_vtable_verify;
8093 enable_vtable_verify
=no
8096 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8098 cat >>confdefs.h
<<_ACEOF
8099 #define ENABLE_VTABLE_VERIFY $vtable_verify
8103 # Check whether --enable-analyzer was given.
8104 if test "${enable_analyzer+set}" = set; then :
8105 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8115 cat >>confdefs.h
<<_ACEOF
8116 #define ENABLE_ANALYZER $analyzer
8120 # Check whether --enable-objc-gc was given.
8121 if test "${enable_objc_gc+set}" = set; then :
8122 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8133 # Check whether --with-dwarf2 was given.
8134 if test "${with_dwarf2+set}" = set; then :
8135 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8141 # Check whether --enable-shared was given.
8142 if test "${enable_shared+set}" = set; then :
8143 enableval
=$enable_shared;
8144 case $enable_shared in
8148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8149 for pkg
in $enableval; do
8150 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8164 # Check whether --enable-gcov was given.
8165 if test "${enable_gcov+set}" = set; then :
8166 enableval
=$enable_gcov;
8182 # Check whether --with-specs was given.
8183 if test "${with_specs+set}" = set; then :
8184 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8194 # Check whether --with-pkgversion was given.
8195 if test "${with_pkgversion+set}" = set; then :
8196 withval
=$with_pkgversion; case "$withval" in
8197 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8199 *) PKGVERSION
="($withval) " ;;
8210 # Check whether --with-bugurl was given.
8211 if test "${with_bugurl+set}" = set; then :
8212 withval
=$with_bugurl; case "$withval" in
8213 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8216 *) BUGURL
="$withval"
8220 BUGURL
="https://gcc.gnu.org/bugs/"
8230 REPORT_BUGS_TO
="<$BUGURL>"
8231 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8238 # Allow overriding the default URL for documentation
8240 # Check whether --with-documentation-root-url was given.
8241 if test "${with_documentation_root_url+set}" = set; then :
8242 withval
=$with_documentation_root_url; case "$withval" in
8243 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8244 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8245 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8246 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8249 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8254 cat >>confdefs.h
<<_ACEOF
8255 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8259 # Allow overriding the default URL for GCC changes
8261 # Check whether --with-changes-root-url was given.
8262 if test "${with_changes_root_url+set}" = set; then :
8263 withval
=$with_changes_root_url; case "$withval" in
8264 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8265 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8266 */) CHANGES_ROOT_URL
="$withval" ;;
8267 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8270 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8275 cat >>confdefs.h
<<_ACEOF
8276 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8280 # Sanity check enable_languages in case someone does not run the toplevel
8281 # configure # script.
8282 # Check whether --enable-languages was given.
8283 if test "${enable_languages+set}" = set; then :
8284 enableval
=$enable_languages; case ,${enable_languages}, in
8286 # go safe -- we cannot be much sure without the toplevel
8288 # analysis of which target libs are present and usable
8292 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8297 enable_languages
=c
,${enable_languages}
8305 # If top-level libada has been disabled, then wire in install-gnatlib
8306 # invocation with `make install', so that one can build and install
8307 # the library manually with `make -C gcc all gnatlib gnattools install'.
8308 if test x
"$enable_libada" = xno
; then
8309 gnat_install_lib
=gnat-install-lib
8315 if test x
"$enable_as_accelerator_for" != x
; then
8317 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8319 enable_as_accelerator
=yes
8320 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8321 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8322 accel_dir_suffix
=/accel
/${target_noncanonical}
8323 real_target_noncanonical
=${enable_as_accelerator_for}
8329 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8330 tgt
=`echo $tgt | sed 's/=.*//'`
8335 omp_device_property
=omp-device-properties-gcn
8336 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8339 omp_device_property
=omp-device-properties-nvptx
8340 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8343 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8346 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8347 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8349 if test x
"$offload_targets" = x
; then
8350 offload_targets
=$tgt
8352 offload_targets
="$offload_targets,$tgt"
8359 cat >>confdefs.h
<<_ACEOF
8360 #define OFFLOAD_TARGETS "$offload_targets"
8363 if test x
"$enable_offloading" != x
; then
8365 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8369 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8373 if test "x$enable_offload_defaulted" = xyes
; then
8375 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8380 # Check whether --with-multilib-list was given.
8381 if test "${with_multilib_list+set}" = set; then :
8382 withval
=$with_multilib_list; :
8384 with_multilib_list
=default
8389 # Check whether --with-multilib-generator was given.
8390 if test "${with_multilib_generator+set}" = set; then :
8391 withval
=$with_multilib_generator; :
8393 with_multilib_generator
=default
8397 # -------------------------
8398 # Checks for other programs
8399 # -------------------------
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8402 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8404 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8405 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8406 $as_echo_n "(cached) " >&6
8408 cat >conftest.
make <<\_ACEOF
8411 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8413 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8414 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8416 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8418 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8422 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8424 $as_echo "yes" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 SET_MAKE
="MAKE=${MAKE-make}"
8433 # Find some useful tools
8434 for ac_prog
in gawk mawk nawk
awk
8436 # Extract the first word of "$ac_prog", so it can be a program name with args.
8437 set dummy
$ac_prog; ac_word
=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_AWK+:} false
; then :
8441 $as_echo_n "(cached) " >&6
8443 if test -n "$AWK"; then
8444 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8450 test -z "$as_dir" && as_dir
=.
8451 for ac_exec_ext
in '' $ac_executable_extensions; do
8452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8453 ac_cv_prog_AWK
="$ac_prog"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 if test -n "$AWK"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8466 $as_echo "$AWK" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8473 test -n "$AWK" && break
8476 # We need awk to create options.cc and options.h.
8477 # Bail out if it's missing.
8479 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8483 $as_echo_n "checking whether ln -s works... " >&6; }
8484 if ${gcc_cv_prog_LN_S+:} false
; then :
8485 $as_echo_n "(cached) " >&6
8487 rm -f conftestdata_t
8488 echo >conftestdata_f
8489 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8491 gcc_cv_prog_LN_S
="ln -s"
8493 if ln conftestdata_f conftestdata_t
2>/dev
/null
8497 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8499 gcc_cv_prog_LN_S
="cp -p"
8505 rm -f conftestdata_f conftestdata_t
8508 LN_S
="$gcc_cv_prog_LN_S"
8509 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8513 if test "$gcc_cv_prog_LN_S" = "ln"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8515 $as_echo "no, using ln" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8518 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8523 $as_echo_n "checking whether ln works... " >&6; }
8524 if ${acx_cv_prog_LN+:} false
; then :
8525 $as_echo_n "(cached) " >&6
8527 rm -f conftestdata_t
8528 echo >conftestdata_f
8529 if ln conftestdata_f conftestdata_t
2>/dev
/null
8535 rm -f conftestdata_f conftestdata_t
8538 if test $acx_cv_prog_LN = no
; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8541 $as_echo "no, using $LN" >&6; }
8543 LN
="$acx_cv_prog_LN"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8545 $as_echo "yes" >&6; }
8548 if test -n "$ac_tool_prefix"; then
8549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8550 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_prog_RANLIB+:} false
; then :
8554 $as_echo_n "(cached) " >&6
8556 if test -n "$RANLIB"; then
8557 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8563 test -z "$as_dir" && as_dir
=.
8564 for ac_exec_ext
in '' $ac_executable_extensions; do
8565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8566 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 RANLIB
=$ac_cv_prog_RANLIB
8577 if test -n "$RANLIB"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8579 $as_echo "$RANLIB" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8587 if test -z "$ac_cv_prog_RANLIB"; then
8588 ac_ct_RANLIB
=$RANLIB
8589 # Extract the first word of "ranlib", so it can be a program name with args.
8590 set dummy ranlib
; ac_word
=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8594 $as_echo_n "(cached) " >&6
8596 if test -n "$ac_ct_RANLIB"; then
8597 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8603 test -z "$as_dir" && as_dir
=.
8604 for ac_exec_ext
in '' $ac_executable_extensions; do
8605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8617 if test -n "$ac_ct_RANLIB"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8619 $as_echo "$ac_ct_RANLIB" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8625 if test "x$ac_ct_RANLIB" = x
; then
8628 case $cross_compiling:$ac_tool_warned in
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned
=yes ;;
8634 RANLIB
=$ac_ct_RANLIB
8637 RANLIB
="$ac_cv_prog_RANLIB"
8643 # Find a good install program. We prefer a C program (faster),
8644 # so one script is as good as another. But avoid the broken or
8645 # incompatible versions:
8646 # SysV /etc/install, /usr/sbin/install
8647 # SunOS /usr/etc/install
8648 # IRIX /sbin/install
8650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8652 # ./install, which can be erroneously created by make from ./install.sh.
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8654 $as_echo_n "checking for a BSD compatible install... " >&6; }
8655 if test -z "$INSTALL"; then
8656 if ${ac_cv_path_install+:} false
; then :
8657 $as_echo_n "(cached) " >&6
8659 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8660 for ac_dir
in $PATH; do
8661 # Account for people who put trailing slashes in PATH elements.
8663 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8665 # OSF1 and SCO ODT 3.0 have their own names for install.
8666 for ac_prog
in ginstall scoinst
install; do
8667 if test -f $ac_dir/$ac_prog; then
8668 if test $ac_prog = install &&
8669 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8670 # AIX install. It has an incompatible calling convention.
8671 # OSF/1 installbsd also uses dspmsg, but is usable.
8674 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8685 if test "${ac_cv_path_install+set}" = set; then
8686 INSTALL
="$ac_cv_path_install"
8688 # As a last resort, use the slow shell script. We don't cache a
8689 # path for INSTALL within a source directory, because that will
8690 # break other packages using the cache if that directory is
8691 # removed, or if the path is relative.
8692 INSTALL
="$ac_install_sh"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8696 $as_echo "$INSTALL" >&6; }
8698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8699 # It thinks the first close brace ends the variable substitution.
8700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8705 # See if cmp has --ignore-initial.
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8707 $as_echo_n "checking for cmp's capabilities... " >&6; }
8708 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8709 $as_echo_n "(cached) " >&6
8713 gcc_cv_prog_cmp_skip
=slowcompare
8714 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8715 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8718 gcc_cv_prog_cmp_skip
=gnucompare
8721 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8722 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8723 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8726 gcc_cv_prog_cmp_skip
=fastcompare
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8734 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8735 make_compare_target
=$gcc_cv_prog_cmp_skip
8739 # See if we have the mktemp command.
8740 # Extract the first word of "mktemp", so it can be a program name with args.
8741 set dummy mktemp
; ac_word
=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$have_mktemp_command"; then
8748 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir
=.
8755 for ac_exec_ext
in '' $ac_executable_extensions; do
8756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_have_mktemp_command
="yes"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8768 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8769 if test -n "$have_mktemp_command"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8771 $as_echo "$have_mktemp_command" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8779 # See if makeinfo has been installed and is modern enough
8780 # that we can use it.
8782 # Extract the first word of "makeinfo", so it can be a program name with args.
8783 set dummy makeinfo
; ac_word
=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8787 $as_echo_n "(cached) " >&6
8789 if test -n "$MAKEINFO"; then
8790 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8796 test -z "$as_dir" && as_dir
=.
8797 for ac_exec_ext
in '' $ac_executable_extensions; do
8798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_MAKEINFO
="makeinfo"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 MAKEINFO
=$ac_cv_prog_MAKEINFO
8810 if test -n "$MAKEINFO"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8812 $as_echo "$MAKEINFO" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 if test -n "$MAKEINFO"; then
8820 # Found it, now check the version.
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8822 $as_echo_n "checking for modern makeinfo... " >&6; }
8823 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8824 $as_echo_n "(cached) " >&6
8826 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8827 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8829 case $ac_prog_version in
8830 '') gcc_cv_prog_makeinfo_modern
=no
;;
8831 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8832 *) gcc_cv_prog_makeinfo_modern
=no
;;
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8837 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8839 gcc_cv_prog_makeinfo_modern
=no
8841 if test $gcc_cv_prog_makeinfo_modern = no
; then
8842 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8845 if test $gcc_cv_prog_makeinfo_modern = no
; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8847 *** Makeinfo is missing or too old.
8848 *** Info documentation will not be built." >&5
8849 $as_echo "$as_me: WARNING:
8850 *** Makeinfo is missing or too old.
8851 *** Info documentation will not be built." >&2;}
8858 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8859 # If it does, we want to pass it to makeinfo in order to restore the old
8860 # behavior of @{summary,}contents placement.
8861 MAKEINFO_TOC_INLINE_FLAG
=
8862 if test x
"$MAKEINFO" != x
; then :
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8865 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8866 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8867 $as_echo_n "(cached) " >&6
8870 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8871 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8872 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8873 gcc_cv_texi_add_toc_inline_flags
=no
8875 gcc_cv_texi_add_toc_inline_flags
=yes
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8880 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8881 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8882 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8888 # Is pod2man recent enough to regenerate manpages?
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8890 $as_echo_n "checking for recent Pod::Man... " >&6; }
8891 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8893 $as_echo "yes" >&6; }
8894 GENERATED_MANPAGES
=generated-manpages
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8907 # Extract the first word of "$ac_prog", so it can be a program name with args.
8908 set dummy
$ac_prog; ac_word
=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_prog_FLEX+:} false
; then :
8912 $as_echo_n "(cached) " >&6
8914 if test -n "$FLEX"; then
8915 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8921 test -z "$as_dir" && as_dir
=.
8922 for ac_exec_ext
in '' $ac_executable_extensions; do
8923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_FLEX
="$ac_prog"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 FLEX
=$ac_cv_prog_FLEX
8935 if test -n "$FLEX"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8937 $as_echo "$FLEX" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8944 test -n "$FLEX" && break
8946 test -n "$FLEX" || FLEX
="$MISSING flex"
8950 for ac_prog
in bison
8952 # Extract the first word of "$ac_prog", so it can be a program name with args.
8953 set dummy
$ac_prog; ac_word
=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_prog_BISON+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 if test -n "$BISON"; then
8960 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8966 test -z "$as_dir" && as_dir
=.
8967 for ac_exec_ext
in '' $ac_executable_extensions; do
8968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8969 ac_cv_prog_BISON
="$ac_prog"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 BISON
=$ac_cv_prog_BISON
8980 if test -n "$BISON"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8982 $as_echo "$BISON" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8989 test -n "$BISON" && break
8991 test -n "$BISON" || BISON
="$MISSING bison"
8996 # Extract the first word of "python3", so it can be a program name with args.
8997 set dummy python3
; ac_word
=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if ${ac_cv_prog_PYTHON+:} false
; then :
9001 $as_echo_n "(cached) " >&6
9003 if test -n "$PYTHON"; then
9004 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
9006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9010 test -z "$as_dir" && as_dir
=.
9011 for ac_exec_ext
in '' $ac_executable_extensions; do
9012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_PYTHON
="python3"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 PYTHON
=$ac_cv_prog_PYTHON
9024 if test -n "$PYTHON"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9026 $as_echo "$PYTHON" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9033 if test -n "$PYTHON"; then
9034 # Found it, now check the version.
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9036 $as_echo_n "checking for modern python3... " >&6; }
9037 if ${gcc_cv_prog_python3_modern+:} false
; then :
9038 $as_echo_n "(cached) " >&6
9040 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9041 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9043 case $ac_prog_version in
9044 '') gcc_cv_prog_python3_modern
=no
;;
9045 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9046 *) gcc_cv_prog_python3_modern
=no
;;
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9051 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9053 gcc_cv_prog_python3_modern
=no
9055 if test $gcc_cv_prog_python3_modern = no
; then
9056 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9059 if test $gcc_cv_prog_python3_modern = no
; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9061 *** Python3 is missing.
9062 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9063 $as_echo "$as_me: WARNING:
9064 *** Python3 is missing.
9065 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9072 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9073 # check for build == host before using them.
9076 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9077 && test -d ..
/binutils
; then
9078 NM
='${objdir}/../binutils/nm-new'
9080 # Extract the first word of "nm", so it can be a program name with args.
9081 set dummy nm
; ac_word
=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if ${ac_cv_prog_NM+:} false
; then :
9085 $as_echo_n "(cached) " >&6
9087 if test -n "$NM"; then
9088 ac_cv_prog_NM
="$NM" # Let the user override the test.
9090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9094 test -z "$as_dir" && as_dir
=.
9095 for ac_exec_ext
in '' $ac_executable_extensions; do
9096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9109 if test -n "$NM"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9111 $as_echo "$NM" >&6; }
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9121 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9122 && test -d ..
/binutils
; then
9123 AR
='${objdir}/../binutils/ar'
9125 # Extract the first word of "ar", so it can be a program name with args.
9126 set dummy
ar; ac_word
=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if ${ac_cv_prog_AR+:} false
; then :
9130 $as_echo_n "(cached) " >&6
9132 if test -n "$AR"; then
9133 ac_cv_prog_AR
="$AR" # Let the user override the test.
9135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9139 test -z "$as_dir" && as_dir
=.
9140 for ac_exec_ext
in '' $ac_executable_extensions; do
9141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9154 if test -n "$AR"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9156 $as_echo "$AR" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9165 # The jit documentation looks better if built with sphinx, but can be
9166 # built with texinfo if sphinx is not available.
9167 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9168 # Extract the first word of "sphinx-build", so it can be a program name with args.
9169 set dummy sphinx-build
; ac_word
=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9173 $as_echo_n "(cached) " >&6
9175 if test -n "$doc_build_sys"; then
9176 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9182 test -z "$as_dir" && as_dir
=.
9183 for ac_exec_ext
in '' $ac_executable_extensions; do
9184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_doc_build_sys
="sphinx"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9196 doc_build_sys
=$ac_cv_prog_doc_build_sys
9197 if test -n "$doc_build_sys"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9199 $as_echo "$doc_build_sys" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9207 # --------------------
9208 # Checks for C headers
9209 # --------------------
9211 # Need to reject headers which give warnings, so that the -Werror bootstrap
9212 # works later. *sigh* This needs to come before all header checks.
9214 ac_c_preproc_warn_flag
=yes
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9217 $as_echo_n "checking for ANSI C header files... " >&6; }
9218 if ${ac_cv_header_stdc+:} false
; then :
9219 $as_echo_n "(cached) " >&6
9221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9236 if ac_fn_cxx_try_compile
"$LINENO"; then :
9237 ac_cv_header_stdc
=yes
9239 ac_cv_header_stdc
=no
9241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9243 if test $ac_cv_header_stdc = yes; then
9244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9251 $EGREP "memchr" >/dev
/null
2>&1; then :
9254 ac_cv_header_stdc
=no
9260 if test $ac_cv_header_stdc = yes; then
9261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9268 $EGREP "free" >/dev
/null
2>&1; then :
9271 ac_cv_header_stdc
=no
9277 if test $ac_cv_header_stdc = yes; then
9278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9279 if test "$cross_compiling" = yes; then :
9282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9286 #if ((' ' & 0x0FF) == 0x020)
9287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9290 # define ISLOWER(c) \
9291 (('a' <= (c) && (c) <= 'i') \
9292 || ('j' <= (c) && (c) <= 'r') \
9293 || ('s' <= (c) && (c) <= 'z'))
9294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9302 for (i = 0; i < 256; i++)
9303 if (XOR (islower (i), ISLOWER (i))
9304 || toupper (i) != TOUPPER (i))
9309 if ac_fn_cxx_try_run
"$LINENO"; then :
9312 ac_cv_header_stdc
=no
9314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9321 $as_echo "$ac_cv_header_stdc" >&6; }
9322 if test $ac_cv_header_stdc = yes; then
9324 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9329 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9330 if ${ac_cv_header_time+:} false
; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #include <sys/types.h>
9336 #include <sys/time.h>
9342 if ((struct tm *) 0)
9348 if ac_fn_cxx_try_compile
"$LINENO"; then :
9349 ac_cv_header_time
=yes
9351 ac_cv_header_time
=no
9353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9356 $as_echo "$ac_cv_header_time" >&6; }
9357 if test $ac_cv_header_time = yes; then
9359 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9364 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9365 if ${gcc_cv_header_string+:} false
; then :
9366 $as_echo_n "(cached) " >&6
9368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9371 #include <strings.h>
9380 if ac_fn_cxx_try_compile
"$LINENO"; then :
9381 gcc_cv_header_string
=yes
9383 gcc_cv_header_string
=no
9385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9388 $as_echo "$gcc_cv_header_string" >&6; }
9389 if test $gcc_cv_header_string = yes; then
9391 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9396 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9397 if ${ac_cv_header_sys_wait_h+:} false
; then :
9398 $as_echo_n "(cached) " >&6
9400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 #include <sys/types.h>
9403 #include <sys/wait.h>
9405 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9408 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9416 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9421 if ac_fn_cxx_try_compile
"$LINENO"; then :
9422 ac_cv_header_sys_wait_h
=yes
9424 ac_cv_header_sys_wait_h
=no
9426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9429 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9430 if test $ac_cv_header_sys_wait_h = yes; then
9432 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9437 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9438 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9439 $as_echo_n "(cached) " >&6
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #include <sys/types.h>
9444 #include <termios.h>
9450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9451 $EGREP "yes" >/dev
/null
2>&1; then :
9452 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9454 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9460 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9462 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9464 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9465 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9466 $as_echo_n "(cached) " >&6
9468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 #include <sys/types.h>
9471 #include <sys/ioctl.h>
9477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9478 $EGREP "yes" >/dev
/null
2>&1; then :
9479 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9481 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9487 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9489 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9491 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9496 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9497 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9498 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9499 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9501 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9503 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9504 cat >>confdefs.h
<<_ACEOF
9505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9512 # Check for thread headers.
9513 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9514 if test "x$ac_cv_header_thread_h" = xyes
; then :
9520 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9521 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9528 # These tests can't be done till we know if we have limits.h.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9530 $as_echo_n "checking for CHAR_BIT... " >&6; }
9531 if ${gcc_cv_decl_char_bit+:} false
; then :
9532 $as_echo_n "(cached) " >&6
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #ifdef HAVE_LIMITS_H
9543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9544 $EGREP "found" >/dev
/null
2>&1; then :
9545 gcc_cv_decl_char_bit
=yes
9547 gcc_cv_decl_char_bit
=no
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9554 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9555 if test $gcc_cv_decl_char_bit = no
; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9557 $as_echo_n "checking number of bits in a byte... " >&6; }
9558 if ${gcc_cv_c_nbby+:} false
; then :
9559 $as_echo_n "(cached) " >&6
9563 while test $i -lt 65; do
9564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9571 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9572 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9578 if ac_fn_cxx_try_compile
"$LINENO"; then :
9579 gcc_cv_c_nbby
=$i; break
9581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9584 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9588 $as_echo "$gcc_cv_c_nbby" >&6; }
9589 if test $gcc_cv_c_nbby = failed
; then
9590 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9593 cat >>confdefs.h
<<_ACEOF
9594 #define CHAR_BIT $gcc_cv_c_nbby
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9600 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9601 if ${ac_cv_c_bigendian+:} false
; then :
9602 $as_echo_n "(cached) " >&6
9604 ac_cv_c_bigendian
=unknown
9605 # See if we're dealing with a universal compiler.
9606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 #ifndef __APPLE_CC__
9609 not a universal capable compiler
9614 if ac_fn_cxx_try_compile
"$LINENO"; then :
9616 # Check for potential -arch flags. It is not universal unless
9617 # there are at least two -arch flags with different values.
9620 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9621 if test -n "$ac_prev"; then
9623 i?
86 | x86_64 | ppc | ppc64
)
9624 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9627 ac_cv_c_bigendian
=universal
9633 elif test "x$ac_word" = "x-arch"; then
9638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 if test $ac_cv_c_bigendian = unknown
; then
9640 # See if sys/param.h defines the BYTE_ORDER macro.
9641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/param.h>
9649 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9650 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9659 if ac_fn_cxx_try_compile
"$LINENO"; then :
9660 # It does; now see whether it defined to BIG_ENDIAN or not.
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <sys/types.h>
9664 #include <sys/param.h>
9669 #if BYTE_ORDER != BIG_ENDIAN
9677 if ac_fn_cxx_try_compile
"$LINENO"; then :
9678 ac_cv_c_bigendian
=yes
9680 ac_cv_c_bigendian
=no
9682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 if test $ac_cv_c_bigendian = unknown
; then
9687 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9695 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9703 if ac_fn_cxx_try_compile
"$LINENO"; then :
9704 # It does; now see whether it defined to _BIG_ENDIAN or not.
9705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9720 if ac_fn_cxx_try_compile
"$LINENO"; then :
9721 ac_cv_c_bigendian
=yes
9723 ac_cv_c_bigendian
=no
9725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9729 if test $ac_cv_c_bigendian = unknown
; then
9730 # Compile a test program.
9731 if test "$cross_compiling" = yes; then :
9732 # Try to guess by grepping values from an object file.
9733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 short int ascii_mm[] =
9736 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9737 short int ascii_ii[] =
9738 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9739 int use_ascii (int i) {
9740 return ascii_mm[i] + ascii_ii[i];
9742 short int ebcdic_ii[] =
9743 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9744 short int ebcdic_mm[] =
9745 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9746 int use_ebcdic (int i) {
9747 return ebcdic_mm[i] + ebcdic_ii[i];
9754 return use_ascii (foo) == use_ebcdic (foo);
9759 if ac_fn_cxx_try_compile
"$LINENO"; then :
9760 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9761 ac_cv_c_bigendian
=yes
9763 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9764 if test "$ac_cv_c_bigendian" = unknown
; then
9765 ac_cv_c_bigendian
=no
9767 # finding both strings is unlikely to happen, but who knows?
9768 ac_cv_c_bigendian
=unknown
9772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 $ac_includes_default
9781 /* Are we little or big endian? From Harbison&Steele. */
9785 char c[sizeof (long int)];
9788 return u.c[sizeof (long int) - 1] == 1;
9794 if ac_fn_cxx_try_run
"$LINENO"; then :
9795 ac_cv_c_bigendian
=no
9797 ac_cv_c_bigendian
=yes
9799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9806 $as_echo "$ac_cv_c_bigendian" >&6; }
9807 case $ac_cv_c_bigendian in #(
9809 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9815 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9819 as_fn_error $?
"unknown endianness
9820 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9824 # ----------------------
9825 # Checks for C++ headers
9826 # ----------------------
9829 ac_cpp
='$CXXCPP $CPPFLAGS'
9830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9834 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9835 if test -z "$CXXCPP"; then
9836 if ${ac_cv_prog_CXXCPP+:} false
; then :
9837 $as_echo_n "(cached) " >&6
9839 # Double quotes because CXXCPP needs to be expanded
9840 for CXXCPP
in "$CXX -E" "/lib/cpp"
9843 for ac_cxx_preproc_warn_flag
in '' yes
9845 # Use a header file that comes with gcc, so configuring glibc
9846 # with a fresh cross-compiler works.
9847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9848 # <limits.h> exists even on freestanding compilers.
9849 # On the NeXT, cc -E runs the code through the compiler's parser,
9850 # not just through cpp. "Syntax error" is here to catch this case.
9851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9854 # include <limits.h>
9856 # include <assert.h>
9860 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9863 # Broken: fails on valid input.
9866 rm -f conftest.err conftest.i conftest.
$ac_ext
9868 # OK, works on sane cases. Now check whether nonexistent headers
9869 # can be detected and how.
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <ac_nonexistent.h>
9874 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9875 # Broken: success on invalid input.
9878 # Passes both tests.
9882 rm -f conftest.err conftest.i conftest.
$ac_ext
9885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9886 rm -f conftest.i conftest.err conftest.
$ac_ext
9887 if $ac_preproc_ok; then :
9892 ac_cv_prog_CXXCPP
=$CXXCPP
9895 CXXCPP
=$ac_cv_prog_CXXCPP
9897 ac_cv_prog_CXXCPP
=$CXXCPP
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9900 $as_echo "$CXXCPP" >&6; }
9902 for ac_cxx_preproc_warn_flag
in '' yes
9904 # Use a header file that comes with gcc, so configuring glibc
9905 # with a fresh cross-compiler works.
9906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 # <limits.h> exists even on freestanding compilers.
9908 # On the NeXT, cc -E runs the code through the compiler's parser,
9909 # not just through cpp. "Syntax error" is here to catch this case.
9910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9913 # include <limits.h>
9915 # include <assert.h>
9919 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9922 # Broken: fails on valid input.
9925 rm -f conftest.err conftest.i conftest.
$ac_ext
9927 # OK, works on sane cases. Now check whether nonexistent headers
9928 # can be detected and how.
9929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9931 #include <ac_nonexistent.h>
9933 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9934 # Broken: success on invalid input.
9937 # Passes both tests.
9941 rm -f conftest.err conftest.i conftest.
$ac_ext
9944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9945 rm -f conftest.i conftest.err conftest.
$ac_ext
9946 if $ac_preproc_ok; then :
9949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9952 See \`config.log' for more details" >&5
9953 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9954 See \`config.log' for more details" >&2;}; }
9958 ac_cpp
='$CXXCPP $CPPFLAGS'
9959 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9964 for ac_header
in unordered_map
9966 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9967 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9968 cat >>confdefs.h
<<_ACEOF
9969 #define HAVE_UNORDERED_MAP 1
9975 for ac_header
in tr1/unordered_map
9977 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9978 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9979 cat >>confdefs.h
<<_ACEOF
9980 #define HAVE_TR1_UNORDERED_MAP 1
9986 for ac_header
in ext
/hash_map
9988 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9989 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9990 cat >>confdefs.h
<<_ACEOF
9991 #define HAVE_EXT_HASH_MAP 1
9999 # Dependency checking.
10002 rm -rf .tst
2>/dev
/null
10003 mkdir .tst
2>/dev
/null
10004 if test -d .tst
; then
10009 rmdir .tst
2>/dev
/null
10011 DEPDIR
="${am__leading_dot}deps"
10013 ac_config_commands
="$ac_config_commands depdir"
10016 ac_config_commands
="$ac_config_commands gccdepdir"
10019 depcc
="$CXX" am_compiler_list
=
10021 am_depcomp
=$ac_aux_dir/depcomp
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10023 $as_echo_n "checking dependency style of $depcc... " >&6; }
10024 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10025 $as_echo_n "(cached) " >&6
10027 if test -f "$am_depcomp"; then
10028 # We make a subdir and do the tests there. Otherwise we can end up
10029 # making bogus files that we don't know about and never remove. For
10030 # instance it was reported that on HP-UX the gcc test will end up
10031 # making a dummy file named `D' -- because `-MD' means `put the output
10034 # Copy depcomp to subdir because otherwise we won't find it if we're
10035 # using a relative directory.
10036 cp "$am_depcomp" conftest.dir
10038 # We will build objects and dependencies in a subdirectory because
10039 # it helps to detect inapplicable dependency modes. For instance
10040 # both Tru64's cc and ICC support -MD to output dependencies as a
10041 # side effect of compilation, but ICC will put the dependencies in
10042 # the current directory while Tru64 will put them in the object
10046 am_cv_CXX_dependencies_compiler_type
=none
10047 if test "$am_compiler_list" = ""; then
10048 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10050 for depmode
in $am_compiler_list; do
10051 if test $depmode = none
; then break; fi
10053 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10054 # Setup a source with many dependencies, because some compilers
10055 # like to wrap large dependency lists on column 80 (with \), and
10056 # we should not choose a depcomp mode which is confused by this.
10058 # We need to recreate these files for each test, as the compiler may
10059 # overwrite some of them when testing with obscure command lines.
10060 # This happens at least with the AIX C compiler.
10062 for i
in 1 2 3 4 5 6; do
10063 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10064 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10065 # Solaris 8's {/usr,}/bin/sh.
10066 touch sub
/conftst
$i.h
10068 echo "include sub/conftest.Po" > confmf
10070 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10071 # mode. It turns out that the SunPro C++ compiler does not properly
10072 # handle `-M -o', and we need to detect this.
10073 depcmd
="depmode=$depmode \
10074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10077 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10078 if env
$depcmd > conftest.err
2>&1 &&
10079 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10080 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10081 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10082 # icc doesn't choke on unknown options, it will just issue warnings
10083 # or remarks (even with -Werror). So we grep stderr for any message
10084 # that says an option was ignored or not supported.
10085 # When given -MP, icc 7.0 and 7.1 complain thusly:
10086 # icc: Command line warning: ignoring option '-M'; no argument required
10087 # The diagnosis changed in icc 8.0:
10088 # icc: Command line remark: option '-MP' not supported
10089 if (grep 'ignoring option' conftest.err ||
10090 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10091 am_cv_CXX_dependencies_compiler_type
=$depmode
10092 $as_echo "$as_me:$LINENO: success" >&5
10096 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10097 sed -e 's/^/| /' < conftest.err
>&5
10101 rm -rf conftest.dir
10103 am_cv_CXX_dependencies_compiler_type
=none
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10108 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10109 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10110 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10111 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10121 # These libraries may be used by collect2.
10122 # We may need a special search path to get them linked.
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10124 $as_echo_n "checking for collect2 libraries... " >&6; }
10125 if ${gcc_cv_collect2_libs+:} false
; then :
10126 $as_echo_n "(cached) " >&6
10129 for libs
in '' -lld -lmld \
10130 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10131 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10152 if ac_fn_cxx_try_link
"$LINENO"; then :
10153 gcc_cv_collect2_libs
="$libs"; break
10155 rm -f core conftest.err conftest.
$ac_objext \
10156 conftest
$ac_exeext conftest.
$ac_ext
10159 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10162 $as_echo "$gcc_cv_collect2_libs" >&6; }
10163 case $gcc_cv_collect2_libs in
10164 "none required") ;;
10165 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10169 # When building Ada code on Alpha, we need exc_resume which is usually in
10170 # -lexc. So test for it.
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10174 $as_echo_n "checking for library containing exc_resume... " >&6; }
10175 if ${ac_cv_search_exc_resume+:} false
; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_func_search_save_LIBS
=$LIBS
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10188 char exc_resume ();
10192 return exc_resume ();
10197 for ac_lib
in '' exc
; do
10198 if test -z "$ac_lib"; then
10199 ac_res
="none required"
10202 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10204 if ac_fn_cxx_try_link
"$LINENO"; then :
10205 ac_cv_search_exc_resume
=$ac_res
10207 rm -f core conftest.err conftest.
$ac_objext \
10209 if ${ac_cv_search_exc_resume+:} false
; then :
10213 if ${ac_cv_search_exc_resume+:} false
; then :
10216 ac_cv_search_exc_resume
=no
10218 rm conftest.
$ac_ext
10219 LIBS
=$ac_func_search_save_LIBS
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10222 $as_echo "$ac_cv_search_exc_resume" >&6; }
10223 ac_res
=$ac_cv_search_exc_resume
10224 if test "$ac_res" != no
; then :
10225 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10229 GNAT_LIBEXC
="$LIBS"
10233 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10237 $as_echo_n "checking for library containing kstat_open... " >&6; }
10238 if ${ac_cv_search_kstat_open+:} false
; then :
10239 $as_echo_n "(cached) " >&6
10241 ac_func_search_save_LIBS
=$LIBS
10242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10251 char kstat_open ();
10255 return kstat_open ();
10260 for ac_lib
in '' kstat
; do
10261 if test -z "$ac_lib"; then
10262 ac_res
="none required"
10265 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10267 if ac_fn_cxx_try_link
"$LINENO"; then :
10268 ac_cv_search_kstat_open
=$ac_res
10270 rm -f core conftest.err conftest.
$ac_objext \
10272 if ${ac_cv_search_kstat_open+:} false
; then :
10276 if ${ac_cv_search_kstat_open+:} false
; then :
10279 ac_cv_search_kstat_open
=no
10281 rm conftest.
$ac_ext
10282 LIBS
=$ac_func_search_save_LIBS
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10285 $as_echo "$ac_cv_search_kstat_open" >&6; }
10286 ac_res
=$ac_cv_search_kstat_open
10287 if test "$ac_res" != no
; then :
10288 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10292 EXTRA_GCC_LIBS
="$LIBS"
10296 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10297 # C++ needs those for libcody.
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10302 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10303 if ${ac_cv_search_gethostbyname+:} false
; then :
10304 $as_echo_n "(cached) " >&6
10306 ac_func_search_save_LIBS
=$LIBS
10307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10316 char gethostbyname ();
10320 return gethostbyname ();
10325 for ac_lib
in '' nsl
; do
10326 if test -z "$ac_lib"; then
10327 ac_res
="none required"
10330 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10332 if ac_fn_cxx_try_link
"$LINENO"; then :
10333 ac_cv_search_gethostbyname
=$ac_res
10335 rm -f core conftest.err conftest.
$ac_objext \
10337 if ${ac_cv_search_gethostbyname+:} false
; then :
10341 if ${ac_cv_search_gethostbyname+:} false
; then :
10344 ac_cv_search_gethostbyname
=no
10346 rm conftest.
$ac_ext
10347 LIBS
=$ac_func_search_save_LIBS
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10350 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10351 ac_res
=$ac_cv_search_gethostbyname
10352 if test "$ac_res" != no
; then :
10353 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10358 $as_echo_n "checking for library containing socket... " >&6; }
10359 if ${ac_cv_search_socket+:} 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 '' socket
; 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_socket
=$ac_res
10391 rm -f core conftest.err conftest.
$ac_objext \
10393 if ${ac_cv_search_socket+:} false
; then :
10397 if ${ac_cv_search_socket+:} false
; then :
10400 ac_cv_search_socket
=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_socket" >&5
10406 $as_echo "$ac_cv_search_socket" >&6; }
10407 ac_res
=$ac_cv_search_socket
10408 if test "$ac_res" != no
; then :
10409 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10414 $as_echo_n "checking for socket in -lsocket... " >&6; }
10415 if ${ac_cv_lib_socket_socket+:} false
; then :
10416 $as_echo_n "(cached) " >&6
10418 ac_check_lib_save_LIBS
=$LIBS
10419 LIBS
="-lsocket -lnsl $LIBS"
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10438 if ac_fn_cxx_try_link
"$LINENO"; then :
10439 ac_cv_lib_socket_socket
=yes
10441 ac_cv_lib_socket_socket
=no
10443 rm -f core conftest.err conftest.
$ac_objext \
10444 conftest
$ac_exeext conftest.
$ac_ext
10445 LIBS
=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10448 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10449 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10450 LIBS
="-lsocket -lnsl $LIBS"
10460 # Some systems put ldexp and frexp in libm instead of libc; assume
10461 # they're both in the same place. jcf-dump needs them.
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10465 $as_echo_n "checking for library containing ldexp... " >&6; }
10466 if ${ac_cv_search_ldexp+:} false
; then :
10467 $as_echo_n "(cached) " >&6
10469 ac_func_search_save_LIBS
=$LIBS
10470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10488 for ac_lib
in '' m
; do
10489 if test -z "$ac_lib"; then
10490 ac_res
="none required"
10493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10495 if ac_fn_cxx_try_link
"$LINENO"; then :
10496 ac_cv_search_ldexp
=$ac_res
10498 rm -f core conftest.err conftest.
$ac_objext \
10500 if ${ac_cv_search_ldexp+:} false
; then :
10504 if ${ac_cv_search_ldexp+:} false
; then :
10507 ac_cv_search_ldexp
=no
10509 rm conftest.
$ac_ext
10510 LIBS
=$ac_func_search_save_LIBS
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10513 $as_echo "$ac_cv_search_ldexp" >&6; }
10514 ac_res
=$ac_cv_search_ldexp
10515 if test "$ac_res" != no
; then :
10516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10524 # Some systems need dlopen
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10528 $as_echo_n "checking for library containing dlopen... " >&6; }
10529 if ${ac_cv_search_dlopen+:} false
; then :
10530 $as_echo_n "(cached) " >&6
10532 ac_func_search_save_LIBS
=$LIBS
10533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10551 for ac_lib
in '' dl
; do
10552 if test -z "$ac_lib"; then
10553 ac_res
="none required"
10556 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10558 if ac_fn_cxx_try_link
"$LINENO"; then :
10559 ac_cv_search_dlopen
=$ac_res
10561 rm -f core conftest.err conftest.
$ac_objext \
10563 if ${ac_cv_search_dlopen+:} false
; then :
10567 if ${ac_cv_search_dlopen+:} false
; then :
10570 ac_cv_search_dlopen
=no
10572 rm conftest.
$ac_ext
10573 LIBS
=$ac_func_search_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10576 $as_echo "$ac_cv_search_dlopen" >&6; }
10577 ac_res
=$ac_cv_search_dlopen
10578 if test "$ac_res" != no
; then :
10579 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10587 # Use <inttypes.h> only if it exists,
10588 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10591 $as_echo_n "checking for inttypes.h... " >&6; }
10592 if ${gcc_cv_header_inttypes_h+:} false
; then :
10593 $as_echo_n "(cached) " >&6
10595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #define __STDC_FORMAT_MACROS
10598 #include <sys/types.h>
10599 #include <inttypes.h>
10611 if ac_fn_cxx_try_compile
"$LINENO"; then :
10612 gcc_cv_header_inttypes_h
=yes
10614 gcc_cv_header_inttypes_h
=no
10616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10620 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10621 if test $gcc_cv_header_inttypes_h = yes; then
10623 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10627 # Look for the ZSTD package.
10637 # Check whether --with-zstd was given.
10638 if test "${with_zstd+set}" = set; then :
10639 withval
=$with_zstd;
10643 # Check whether --with-zstd-include was given.
10644 if test "${with_zstd_include+set}" = set; then :
10645 withval
=$with_zstd_include;
10649 # Check whether --with-zstd-lib was given.
10650 if test "${with_zstd_lib+set}" = set; then :
10651 withval
=$with_zstd_lib;
10654 case "x$with_zstd" in
10660 *) ZSTD_INCLUDE
=$with_zstd/include
10661 ZSTD_LIB
=$with_zstd/lib
10665 if test "x$with_zstd" != xno
; then
10666 if test "x$with_zstd_include" != x
; then
10667 ZSTD_INCLUDE
=$with_zstd_include
10669 if test "x$with_zstd_lib" != x
; then
10670 ZSTD_LIB
=$with_zstd_lib
10672 if test "x$ZSTD_INCLUDE" != x \
10673 && test "x$ZSTD_INCLUDE" != xno
; then
10674 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10676 if test "x$ZSTD_LIB" != x \
10677 && test "x$ZSTD_LIB" != xno
; then
10678 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10681 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10682 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10684 # LTO can use zstd compression algorithm
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10688 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10689 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10690 $as_echo_n "(cached) " >&6
10692 ac_func_search_save_LIBS
=$LIBS
10693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10702 char ZSTD_compress ();
10706 return ZSTD_compress ();
10711 for ac_lib
in '' zstd
; do
10712 if test -z "$ac_lib"; then
10713 ac_res
="none required"
10716 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10718 if ac_fn_cxx_try_link
"$LINENO"; then :
10719 ac_cv_search_ZSTD_compress
=$ac_res
10721 rm -f core conftest.err conftest.
$ac_objext \
10723 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10727 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10730 ac_cv_search_ZSTD_compress
=no
10732 rm conftest.
$ac_ext
10733 LIBS
=$ac_func_search_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10736 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10737 ac_res
=$ac_cv_search_ZSTD_compress
10738 if test "$ac_res" != no
; then :
10739 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10742 gcc_cv_header_zstd_h
=no
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10750 $as_echo_n "checking for zstd.h... " >&6; }
10751 if ${gcc_cv_header_zstd_h+:} false
; then :
10752 $as_echo_n "(cached) " >&6
10754 # We require version 1.3.0 or later. This is the first version that has
10755 # ZSTD_getFrameContentSize.
10756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 #if ZSTD_VERSION_NUMBER < 10300
10760 #error "need zstd 1.3.0 or better"
10770 if ac_fn_cxx_try_compile
"$LINENO"; then :
10771 gcc_cv_header_zstd_h
=yes
10773 gcc_cv_header_zstd_h
=no
10775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10779 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10780 if test $gcc_cv_header_zstd_h = yes; then
10782 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10784 elif test "x$with_zstd" != x
; then
10785 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10791 for ac_func
in times clock kill getrlimit setrlimit atoq \
10792 popen sysconf strsignal getrusage nl_langinfo \
10793 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10794 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
10796 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10797 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10798 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10799 cat >>confdefs.h
<<_ACEOF
10800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10807 if test x
$ac_cv_func_mbstowcs = xyes
; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10809 $as_echo_n "checking whether mbstowcs works... " >&6; }
10810 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10811 $as_echo_n "(cached) " >&6
10813 if test "$cross_compiling" = yes; then :
10814 gcc_cv_func_mbstowcs_works
=yes
10816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 #include <stdlib.h>
10821 mbstowcs(0, "", 0);
10825 if ac_fn_cxx_try_run
"$LINENO"; then :
10826 gcc_cv_func_mbstowcs_works
=yes
10828 gcc_cv_func_mbstowcs_works
=no
10830 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10831 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10836 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10837 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10839 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10844 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10845 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10849 cat >>confdefs.h
<<_ACEOF
10850 #define ssize_t int
10855 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10856 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10860 cat >>confdefs.h
<<_ACEOF
10861 #define caddr_t char *
10866 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10868 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10870 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10876 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10877 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10878 gcc_header_sys_mman_h
=yes
10880 gcc_header_sys_mman_h
=no
10883 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10884 if test "x$ac_cv_func_mmap" = xyes
; then :
10890 if test "$gcc_header_sys_mman_h" != yes \
10891 ||
test "$gcc_func_mmap" != yes; then
10892 gcc_cv_func_mmap_file
=no
10893 gcc_cv_func_mmap_dev_zero
=no
10894 gcc_cv_func_mmap_anon
=no
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10897 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10898 if ${gcc_cv_func_mmap_file+:} false
; then :
10899 $as_echo_n "(cached) " >&6
10901 # Add a system to this blacklist if
10902 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10903 # memory area containing the same data that you'd get if you applied
10904 # read() to the same fd. The only system known to have a problem here
10905 # is VMS, where text files have record structure.
10908 gcc_cv_func_mmap_file
=no
;;
10910 gcc_cv_func_mmap_file
=yes;;
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10914 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10916 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10917 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10918 $as_echo_n "(cached) " >&6
10920 # Add a system to this blacklist if it has mmap() but /dev/zero
10921 # does not exist, or if mmapping /dev/zero does not give anonymous
10922 # zeroed pages with both the following properties:
10923 # 1. If you map N consecutive pages in with one call, and then
10924 # unmap any subset of those pages, the pages that were not
10925 # explicitly unmapped remain accessible.
10926 # 2. If you map two adjacent blocks of memory and then unmap them
10927 # both at once, they must both go away.
10928 # Systems known to be in this category are Windows (all variants),
10931 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10932 gcc_cv_func_mmap_dev_zero
=no
;;
10934 gcc_cv_func_mmap_dev_zero
=yes;;
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10938 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10940 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10942 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10943 if ${gcc_cv_decl_map_anon+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <sys/types.h>
10949 #include <sys/mman.h>
10950 #include <unistd.h>
10952 #ifndef MAP_ANONYMOUS
10953 #define MAP_ANONYMOUS MAP_ANON
10959 int n = MAP_ANONYMOUS;
10964 if ac_fn_cxx_try_compile
"$LINENO"; then :
10965 gcc_cv_decl_map_anon
=yes
10967 gcc_cv_decl_map_anon
=no
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10972 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10974 if test $gcc_cv_decl_map_anon = no
; then
10975 gcc_cv_func_mmap_anon
=no
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10978 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10979 if ${gcc_cv_func_mmap_anon+:} false
; then :
10980 $as_echo_n "(cached) " >&6
10982 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10983 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10984 # doesn't give anonymous zeroed pages with the same properties listed
10985 # above for use of /dev/zero.
10986 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10988 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10989 gcc_cv_func_mmap_anon
=no
;;
10991 gcc_cv_func_mmap_anon
=yes;;
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10995 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10999 if test $gcc_cv_func_mmap_file = yes; then
11001 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11004 if test $gcc_cv_func_mmap_dev_zero = yes; then
11006 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11009 if test $gcc_cv_func_mmap_anon = yes; then
11011 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11018 # Under VMS, vfork works very differently than on Unix. The standard test
11019 # won't work, and it isn't easily adaptable. It makes more sense to
11021 ac_cv_func_vfork_works
=yes
11024 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11025 if test "x$ac_cv_type_pid_t" = xyes
; then :
11029 cat >>confdefs.h
<<_ACEOF
11035 for ac_header
in vfork.h
11037 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11038 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11039 cat >>confdefs.h
<<_ACEOF
11040 #define HAVE_VFORK_H 1
11046 for ac_func
in fork vfork
11048 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11049 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11050 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11051 cat >>confdefs.h
<<_ACEOF
11052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 if test "x$ac_cv_func_fork" = xyes
; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11060 $as_echo_n "checking for working fork... " >&6; }
11061 if ${ac_cv_func_fork_works+:} false
; then :
11062 $as_echo_n "(cached) " >&6
11064 if test "$cross_compiling" = yes; then :
11065 ac_cv_func_fork_works
=cross
11067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 $ac_includes_default
11074 /* By Ruediger Kuhlmann. */
11075 return fork () < 0;
11081 if ac_fn_cxx_try_run
"$LINENO"; then :
11082 ac_cv_func_fork_works
=yes
11084 ac_cv_func_fork_works
=no
11086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11092 $as_echo "$ac_cv_func_fork_works" >&6; }
11095 ac_cv_func_fork_works
=$ac_cv_func_fork
11097 if test "x$ac_cv_func_fork_works" = xcross
; then
11099 *-*-amigaos* |
*-*-msdosdjgpp*)
11100 # Override, as these systems have only a dummy fork() stub
11101 ac_cv_func_fork_works
=no
11104 ac_cv_func_fork_works
=yes
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11108 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11110 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11111 if test "x$ac_cv_func_vfork" = xyes
; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11113 $as_echo_n "checking for working vfork... " >&6; }
11114 if ${ac_cv_func_vfork_works+:} false
; then :
11115 $as_echo_n "(cached) " >&6
11117 if test "$cross_compiling" = yes; then :
11118 ac_cv_func_vfork_works
=cross
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 /* Thanks to Paul Eggert for this test. */
11123 $ac_includes_default
11124 #include <sys/wait.h>
11125 #ifdef HAVE_VFORK_H
11126 # include <vfork.h>
11128 /* On some sparc systems, changes by the child to local and incoming
11129 argument registers are propagated back to the parent. The compiler
11130 is told about this with #include <vfork.h>, but some compilers
11131 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11132 static variable whose address is put into a register that is
11133 clobbered by the vfork. */
11136 sparc_address_test (int arg)
11138 sparc_address_test (arg) int arg;
11141 static pid_t child;
11159 pid_t parent = getpid ();
11162 sparc_address_test (0);
11167 /* Here is another test for sparc vfork register problems. This
11168 test uses lots of local variables, at least as many local
11169 variables as main has allocated so far including compiler
11170 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11171 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11172 reuse the register of parent for one of the local variables,
11173 since it will think that parent can't possibly be used any more
11174 in this routine. Assigning to the local variable will thus
11175 munge parent in the parent process. */
11177 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11178 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11179 /* Convince the compiler that p..p7 are live; otherwise, it might
11180 use the same hardware register for all 8 local variables. */
11181 if (p != p1 || p != p2 || p != p3 || p != p4
11182 || p != p5 || p != p6 || p != p7)
11185 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11186 from child file descriptors. If the child closes a descriptor
11187 before it execs or exits, this munges the parent's descriptor
11188 as well. Test for this by closing stdout in the child. */
11189 _exit(close(fileno(stdout)) != 0);
11194 while (wait(&status) != child)
11197 /* Was there some problem with vforking? */
11200 /* Did the child fail? (This shouldn't happen.) */
11203 /* Did the vfork/compiler bug occur? */
11204 || parent != getpid()
11206 /* Did the file descriptor bug occur? */
11207 || fstat(fileno(stdout), &st) != 0
11212 if ac_fn_cxx_try_run
"$LINENO"; then :
11213 ac_cv_func_vfork_works
=yes
11215 ac_cv_func_vfork_works
=no
11217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11223 $as_echo "$ac_cv_func_vfork_works" >&6; }
11226 if test "x$ac_cv_func_fork_works" = xcross
; then
11227 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11229 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11232 if test "x$ac_cv_func_vfork_works" = xyes
; then
11234 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11238 $as_echo "#define vfork fork" >>confdefs.h
11241 if test "x$ac_cv_func_fork_works" = xyes
; then
11243 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11249 if test "X$prefix" = "XNONE"; then
11250 acl_final_prefix
="$ac_default_prefix"
11252 acl_final_prefix
="$prefix"
11254 if test "X$exec_prefix" = "XNONE"; then
11255 acl_final_exec_prefix
='${prefix}'
11257 acl_final_exec_prefix
="$exec_prefix"
11259 acl_save_prefix
="$prefix"
11260 prefix
="$acl_final_prefix"
11261 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11262 prefix
="$acl_save_prefix"
11265 # Check whether --with-gnu-ld was given.
11266 if test "${with_gnu_ld+set}" = set; then :
11267 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11272 # Prepare PATH_SEPARATOR.
11273 # The user is always right.
11274 if test "${PATH_SEPARATOR+set}" != set; then
11275 echo "#! /bin/sh" >conf$$.sh
11276 echo "exit 0" >>conf$$.sh
11278 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11286 if test "$GCC" = yes; then
11287 # Check if gcc -print-prog-name=ld gives a path.
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11289 $as_echo_n "checking for ld used by GCC... " >&6; }
11292 # gcc leaves a trailing carriage return which upsets mingw
11293 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11295 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11298 # Accept absolute paths.
11299 [\\/]* |
[A-Za-z
]:[\\/]*)
11300 re_direlt
='/[^/][^/]*/\.\./'
11301 # Canonicalize the path of ld
11302 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11303 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11304 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11306 test -z "$LD" && LD
="$ac_prog"
11309 # If it fails, then pretend we aren't using GCC.
11313 # If it is relative, then search for the first ld in PATH.
11314 with_gnu_ld
=unknown
11317 elif test "$with_gnu_ld" = yes; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11319 $as_echo_n "checking for GNU ld... " >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11322 $as_echo_n "checking for non-GNU ld... " >&6; }
11324 if ${acl_cv_path_LD+:} false
; then :
11325 $as_echo_n "(cached) " >&6
11327 if test -z "$LD"; then
11328 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11329 for ac_dir
in $PATH; do
11330 test -z "$ac_dir" && ac_dir
=.
11331 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11332 acl_cv_path_LD
="$ac_dir/$ac_prog"
11333 # Check to see if the program is GNU ld. I'd rather use --version,
11334 # but apparently some GNU ld's only accept -v.
11335 # Break only if it was the GNU/non-GNU ld that we prefer.
11336 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11337 test "$with_gnu_ld" != no
&& break
11339 test "$with_gnu_ld" != yes && break
11345 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11349 LD
="$acl_cv_path_LD"
11350 if test -n "$LD"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11352 $as_echo "$LD" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11357 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11360 if ${acl_cv_prog_gnu_ld+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11364 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11365 acl_cv_prog_gnu_ld
=yes
11367 acl_cv_prog_gnu_ld
=no
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11371 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11372 with_gnu_ld
=$acl_cv_prog_gnu_ld
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11377 $as_echo_n "checking for shared library run path origin... " >&6; }
11378 if ${acl_cv_rpath+:} false
; then :
11379 $as_echo_n "(cached) " >&6
11382 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11383 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11385 rm -f .
/conftest.sh
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11390 $as_echo "$acl_cv_rpath" >&6; }
11392 libext
="$acl_cv_libext"
11393 shlibext
="$acl_cv_shlibext"
11394 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11395 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11396 hardcode_direct
="$acl_cv_hardcode_direct"
11397 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11398 # Check whether --enable-rpath was given.
11399 if test "${enable_rpath+set}" = set; then :
11400 enableval
=$enable_rpath; :
11414 acl_save_prefix
="$prefix"
11415 prefix
="$acl_final_prefix"
11416 acl_save_exec_prefix
="$exec_prefix"
11417 exec_prefix
="$acl_final_exec_prefix"
11419 eval additional_includedir
=\"$includedir\"
11420 eval additional_libdir
=\"$libdir\"
11422 exec_prefix
="$acl_save_exec_prefix"
11423 prefix
="$acl_save_prefix"
11426 # Check whether --with-libiconv-prefix was given.
11427 if test "${with_libiconv_prefix+set}" = set; then :
11428 withval
=$with_libiconv_prefix;
11429 if test "X$withval" = "Xno"; then
11432 if test "X$withval" = "X"; then
11434 acl_save_prefix
="$prefix"
11435 prefix
="$acl_final_prefix"
11436 acl_save_exec_prefix
="$exec_prefix"
11437 exec_prefix
="$acl_final_exec_prefix"
11439 eval additional_includedir
=\"$includedir\"
11440 eval additional_libdir
=\"$libdir\"
11442 exec_prefix
="$acl_save_exec_prefix"
11443 prefix
="$acl_save_prefix"
11446 additional_includedir
="$withval/include"
11447 additional_libdir
="$withval/lib"
11454 # Check whether --with-libiconv-type was given.
11455 if test "${with_libiconv_type+set}" = set; then :
11456 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11458 with_libiconv_type
=auto
11461 lib_type
=`eval echo \$with_libiconv_type`
11468 names_already_handled
=
11469 names_next_round
='iconv '
11470 while test -n "$names_next_round"; do
11471 names_this_round
="$names_next_round"
11473 for name
in $names_this_round; do
11475 for n
in $names_already_handled; do
11476 if test "$n" = "$name"; then
11477 already_handled
=yes
11481 if test -z "$already_handled"; then
11482 names_already_handled
="$names_already_handled $name"
11483 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11484 eval value
=\"\
$HAVE_LIB$uppername\"
11485 if test -n "$value"; then
11486 if test "$value" = yes; then
11487 eval value
=\"\
$LIB$uppername\"
11488 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11489 eval value
=\"\
$LTLIB$uppername\"
11490 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11499 if test $use_additional = yes; then
11500 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11501 found_dir
="$additional_libdir"
11502 found_so
="$additional_libdir/lib$name.$shlibext"
11503 if test -f "$additional_libdir/lib$name.la"; then
11504 found_la
="$additional_libdir/lib$name.la"
11506 elif test x
$lib_type != xshared
; then
11507 if test -f "$additional_libdir/lib$name.$libext"; then
11508 found_dir
="$additional_libdir"
11509 found_a
="$additional_libdir/lib$name.$libext"
11510 if test -f "$additional_libdir/lib$name.la"; then
11511 found_la
="$additional_libdir/lib$name.la"
11516 if test "X$found_dir" = "X"; then
11517 for x
in $LDFLAGS $LTLIBICONV; do
11519 acl_save_prefix
="$prefix"
11520 prefix
="$acl_final_prefix"
11521 acl_save_exec_prefix
="$exec_prefix"
11522 exec_prefix
="$acl_final_exec_prefix"
11524 exec_prefix
="$acl_save_exec_prefix"
11525 prefix
="$acl_save_prefix"
11529 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11530 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11532 found_so
="$dir/lib$name.$shlibext"
11533 if test -f "$dir/lib$name.la"; then
11534 found_la
="$dir/lib$name.la"
11536 elif test x
$lib_type != xshared
; then
11537 if test -f "$dir/lib$name.$libext"; then
11539 found_a
="$dir/lib$name.$libext"
11540 if test -f "$dir/lib$name.la"; then
11541 found_la
="$dir/lib$name.la"
11547 if test "X$found_dir" != "X"; then
11552 if test "X$found_dir" != "X"; then
11553 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11554 if test "X$found_so" != "X"; then
11555 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11556 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11559 for x
in $ltrpathdirs; do
11560 if test "X$x" = "X$found_dir"; then
11565 if test -z "$haveit"; then
11566 ltrpathdirs
="$ltrpathdirs $found_dir"
11568 if test "$hardcode_direct" = yes; then
11569 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11571 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11572 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11574 for x
in $rpathdirs; do
11575 if test "X$x" = "X$found_dir"; then
11580 if test -z "$haveit"; then
11581 rpathdirs
="$rpathdirs $found_dir"
11585 for x
in $LDFLAGS $LIBICONV; do
11587 acl_save_prefix
="$prefix"
11588 prefix
="$acl_final_prefix"
11589 acl_save_exec_prefix
="$exec_prefix"
11590 exec_prefix
="$acl_final_exec_prefix"
11592 exec_prefix
="$acl_save_exec_prefix"
11593 prefix
="$acl_save_prefix"
11595 if test "X$x" = "X-L$found_dir"; then
11600 if test -z "$haveit"; then
11601 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11603 if test "$hardcode_minus_L" != no
; then
11604 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11606 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11612 if test "X$found_a" != "X"; then
11613 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11615 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11618 additional_includedir
=
11619 case "$found_dir" in
11621 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11622 additional_includedir
="$basedir/include"
11625 if test "X$additional_includedir" != "X"; then
11626 if test "X$additional_includedir" != "X/usr/include"; then
11628 if test "X$additional_includedir" = "X/usr/local/include"; then
11629 if test -n "$GCC"; then
11631 linux
*) haveit
=yes;;
11635 if test -z "$haveit"; then
11636 for x
in $CPPFLAGS $INCICONV; do
11638 acl_save_prefix
="$prefix"
11639 prefix
="$acl_final_prefix"
11640 acl_save_exec_prefix
="$exec_prefix"
11641 exec_prefix
="$acl_final_exec_prefix"
11643 exec_prefix
="$acl_save_exec_prefix"
11644 prefix
="$acl_save_prefix"
11646 if test "X$x" = "X-I$additional_includedir"; then
11651 if test -z "$haveit"; then
11652 if test -d "$additional_includedir"; then
11653 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11659 if test -n "$found_la"; then
11660 save_libdir
="$libdir"
11661 case "$found_la" in
11662 */* |
*\\*) .
"$found_la" ;;
11663 *) .
"./$found_la" ;;
11665 libdir
="$save_libdir"
11666 for dep
in $dependency_libs; do
11669 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11670 if test "X$additional_libdir" != "X/usr/lib"; then
11672 if test "X$additional_libdir" = "X/usr/local/lib"; then
11673 if test -n "$GCC"; then
11675 linux
*) haveit
=yes;;
11679 if test -z "$haveit"; then
11681 for x
in $LDFLAGS $LIBICONV; do
11683 acl_save_prefix
="$prefix"
11684 prefix
="$acl_final_prefix"
11685 acl_save_exec_prefix
="$exec_prefix"
11686 exec_prefix
="$acl_final_exec_prefix"
11688 exec_prefix
="$acl_save_exec_prefix"
11689 prefix
="$acl_save_prefix"
11691 if test "X$x" = "X-L$additional_libdir"; then
11696 if test -z "$haveit"; then
11697 if test -d "$additional_libdir"; then
11698 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11702 for x
in $LDFLAGS $LTLIBICONV; do
11704 acl_save_prefix
="$prefix"
11705 prefix
="$acl_final_prefix"
11706 acl_save_exec_prefix
="$exec_prefix"
11707 exec_prefix
="$acl_final_exec_prefix"
11709 exec_prefix
="$acl_save_exec_prefix"
11710 prefix
="$acl_save_prefix"
11712 if test "X$x" = "X-L$additional_libdir"; then
11717 if test -z "$haveit"; then
11718 if test -d "$additional_libdir"; then
11719 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11726 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11727 if test "$enable_rpath" != no
; then
11729 for x
in $rpathdirs; do
11730 if test "X$x" = "X$dir"; then
11735 if test -z "$haveit"; then
11736 rpathdirs
="$rpathdirs $dir"
11739 for x
in $ltrpathdirs; do
11740 if test "X$x" = "X$dir"; then
11745 if test -z "$haveit"; then
11746 ltrpathdirs
="$ltrpathdirs $dir"
11751 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11754 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11757 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11758 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11764 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11765 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11766 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11768 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11769 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11776 if test "X$rpathdirs" != "X"; then
11777 if test -n "$hardcode_libdir_separator"; then
11779 for found_dir
in $rpathdirs; do
11780 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11782 acl_save_libdir
="$libdir"
11784 eval flag
=\"$hardcode_libdir_flag_spec\"
11785 libdir
="$acl_save_libdir"
11786 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11788 for found_dir
in $rpathdirs; do
11789 acl_save_libdir
="$libdir"
11790 libdir
="$found_dir"
11791 eval flag
=\"$hardcode_libdir_flag_spec\"
11792 libdir
="$acl_save_libdir"
11793 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11797 if test "X$ltrpathdirs" != "X"; then
11798 for found_dir
in $ltrpathdirs; do
11799 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11810 $as_echo_n "checking for iconv... " >&6; }
11811 if ${am_cv_func_iconv+:} false
; then :
11812 $as_echo_n "(cached) " >&6
11815 am_cv_func_iconv
="no, consider installing GNU libiconv"
11817 am_save_CPPFLAGS
="$CPPFLAGS"
11818 CPPFLAGS
="$CPPFLAGS $INCICONV"
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 #include <stdlib.h>
11826 iconv_t cd = iconv_open("","");
11827 iconv(cd,NULL,NULL,NULL,NULL);
11833 if ac_fn_cxx_try_link
"$LINENO"; then :
11834 am_cv_func_iconv
=yes
11836 rm -f core conftest.err conftest.
$ac_objext \
11837 conftest
$ac_exeext conftest.
$ac_ext
11838 CPPFLAGS
="$am_save_CPPFLAGS"
11840 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11841 for _libs
in .libs _libs
; do
11842 am_save_CPPFLAGS
="$CPPFLAGS"
11843 am_save_LIBS
="$LIBS"
11844 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11845 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <stdlib.h>
11853 iconv_t cd = iconv_open("","");
11854 iconv(cd,NULL,NULL,NULL,NULL);
11860 if ac_fn_cxx_try_link
"$LINENO"; then :
11861 INCICONV
="-I../libiconv/include"
11862 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11863 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11864 am_cv_lib_iconv
=yes
11865 am_cv_func_iconv
=yes
11867 rm -f core conftest.err conftest.
$ac_objext \
11868 conftest
$ac_exeext conftest.
$ac_ext
11869 CPPFLAGS
="$am_save_CPPFLAGS"
11870 LIBS
="$am_save_LIBS"
11871 if test "$am_cv_func_iconv" = "yes"; then
11877 if test "$am_cv_func_iconv" != yes; then
11878 am_save_CPPFLAGS
="$CPPFLAGS"
11879 am_save_LIBS
="$LIBS"
11880 CPPFLAGS
="$CPPFLAGS $INCICONV"
11881 LIBS
="$LIBS $LIBICONV"
11882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <stdlib.h>
11889 iconv_t cd = iconv_open("","");
11890 iconv(cd,NULL,NULL,NULL,NULL);
11896 if ac_fn_cxx_try_link
"$LINENO"; then :
11897 am_cv_lib_iconv
=yes
11898 am_cv_func_iconv
=yes
11900 rm -f core conftest.err conftest.
$ac_objext \
11901 conftest
$ac_exeext conftest.
$ac_ext
11902 CPPFLAGS
="$am_save_CPPFLAGS"
11903 LIBS
="$am_save_LIBS"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11908 $as_echo "$am_cv_func_iconv" >&6; }
11909 if test "$am_cv_func_iconv" = yes; then
11911 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11914 if test "$am_cv_lib_iconv" = yes; then
11916 for element
in $INCICONV; do
11918 for x
in $CPPFLAGS; do
11920 acl_save_prefix
="$prefix"
11921 prefix
="$acl_final_prefix"
11922 acl_save_exec_prefix
="$exec_prefix"
11923 exec_prefix
="$acl_final_exec_prefix"
11925 exec_prefix
="$acl_save_exec_prefix"
11926 prefix
="$acl_save_prefix"
11928 if test "X$x" = "X$element"; then
11933 if test -z "$haveit"; then
11934 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11939 $as_echo_n "checking how to link with libiconv... " >&6; }
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11941 $as_echo "$LIBICONV" >&6; }
11949 if test "$am_cv_func_iconv" = yes; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11951 $as_echo_n "checking for iconv declaration... " >&6; }
11952 if ${am_cv_proto_iconv+:} false
; then :
11953 $as_echo_n "(cached) " >&6
11956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 #include <stdlib.h>
11965 #if defined(__STDC__) || defined(__cplusplus)
11966 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11979 if ac_fn_cxx_try_compile
"$LINENO"; then :
11980 am_cv_proto_iconv_arg1
=""
11982 am_cv_proto_iconv_arg1
="const"
11984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11985 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);"
11988 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11990 }$am_cv_proto_iconv" >&5
11992 }$am_cv_proto_iconv" >&6; }
11994 cat >>confdefs.h
<<_ACEOF
11995 #define ICONV_CONST $am_cv_proto_iconv_arg1
12001 # Until we have in-tree GNU iconv:
12003 if test -f "$LTLIBICONV"; then
12004 LIBICONV_DEP
=$LTLIBICONV
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12010 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12011 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <locale.h>
12025 if ac_fn_cxx_try_link
"$LINENO"; then :
12026 am_cv_val_LC_MESSAGES
=yes
12028 am_cv_val_LC_MESSAGES
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12034 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12035 if test $am_cv_val_LC_MESSAGES = yes; then
12037 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12044 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12045 if ${am_cv_langinfo_codeset+:} false
; then :
12046 $as_echo_n "(cached) " >&6
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <langinfo.h>
12054 char* cs = nl_langinfo(CODESET);
12059 if ac_fn_cxx_try_link
"$LINENO"; then :
12060 am_cv_langinfo_codeset
=yes
12062 am_cv_langinfo_codeset
=no
12064 rm -f core conftest.err conftest.
$ac_objext \
12065 conftest
$ac_exeext conftest.
$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12069 $as_echo "$am_cv_langinfo_codeset" >&6; }
12070 if test $am_cv_langinfo_codeset = yes; then
12072 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12077 # We will need to find libiberty.h and ansidecl.h
12078 saved_CFLAGS
="$CFLAGS"
12079 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12080 saved_CXXFLAGS
="$CXXFLAGS"
12081 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12083 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12084 # normal autoconf function for these. But force definition of
12085 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12086 # basename handling in libiberty.h.
12087 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12088 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12089 #undef HAVE_DECL_BASENAME
12090 #define HAVE_DECL_BASENAME 1
12091 #include \"ansidecl.h\"
12092 #include \"system.h\"
12094 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12100 cat >>confdefs.h
<<_ACEOF
12101 #define HAVE_DECL_BASENAME $ac_have_decl
12103 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12104 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12105 #undef HAVE_DECL_BASENAME
12106 #define HAVE_DECL_BASENAME 1
12107 #include \"ansidecl.h\"
12108 #include \"system.h\"
12110 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12116 cat >>confdefs.h
<<_ACEOF
12117 #define HAVE_DECL_STRSTR $ac_have_decl
12121 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12122 madvise stpcpy strnlen strsignal strverscmp \
12123 strtol strtoul strtoll strtoull setenv unsetenv \
12124 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12125 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
12127 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12129 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12130 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 #define $ac_tr_decl 1
12138 #include "ansidecl.h"
12139 #include "system.h"
12145 char *(*pfn) = (char *(*)) $ac_func ;
12151 if ac_fn_cxx_try_compile
"$LINENO"; then :
12152 eval "gcc_cv_have_decl_$ac_func=yes"
12154 eval "gcc_cv_have_decl_$ac_func=no"
12156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12159 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12162 #define $ac_tr_decl 1
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12168 #define $ac_tr_decl 0
12176 for ac_func
in getrlimit setrlimit getrusage
12178 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12180 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12181 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12182 $as_echo_n "(cached) " >&6
12184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 #define $ac_tr_decl 1
12189 #include "ansidecl.h"
12190 #include "system.h"
12191 #ifdef HAVE_SYS_RESOURCE_H
12192 #include <sys/resource.h>
12200 char *(*pfn) = (char *(*)) $ac_func ;
12206 if ac_fn_cxx_try_compile
"$LINENO"; then :
12207 eval "gcc_cv_have_decl_$ac_func=yes"
12209 eval "gcc_cv_have_decl_$ac_func=no"
12211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12214 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12217 #define $ac_tr_decl 1
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12223 #define $ac_tr_decl 0
12231 for ac_func
in mallinfo mallinfo2
12233 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12235 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12236 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12237 $as_echo_n "(cached) " >&6
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 #define $ac_tr_decl 1
12244 #include "ansidecl.h"
12245 #include "system.h"
12246 #ifdef HAVE_MALLOC_H
12247 #include <malloc.h>
12255 char *(*pfn) = (char *(*)) $ac_func ;
12261 if ac_fn_cxx_try_compile
"$LINENO"; then :
12262 eval "gcc_cv_have_decl_$ac_func=yes"
12264 eval "gcc_cv_have_decl_$ac_func=no"
12266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12271 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12272 #define $ac_tr_decl 1
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12278 #define $ac_tr_decl 0
12286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 #include "ansidecl.h"
12290 #include "system.h"
12291 #ifdef HAVE_SYS_RESOURCE_H
12292 #include <sys/resource.h>
12303 if ac_fn_cxx_try_compile
"$LINENO"; then :
12307 $as_echo "#define rlim_t long" >>confdefs.h
12310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12312 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12313 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12314 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12315 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12316 for ac_func
in ldgetname
12318 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12321 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12322 $as_echo_n "(cached) " >&6
12324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 #define $ac_tr_decl 1
12329 #include "ansidecl.h"
12330 #include "system.h"
12331 #ifdef HAVE_LDFCN_H
12342 char *(*pfn) = (char *(*)) $ac_func ;
12348 if ac_fn_cxx_try_compile
"$LINENO"; then :
12349 eval "gcc_cv_have_decl_$ac_func=yes"
12351 eval "gcc_cv_have_decl_$ac_func=no"
12353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12359 #define $ac_tr_decl 1
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12365 #define $ac_tr_decl 0
12373 for ac_func
in times
12375 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12377 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12378 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12379 $as_echo_n "(cached) " >&6
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 #define $ac_tr_decl 1
12386 #include "ansidecl.h"
12387 #include "system.h"
12388 #ifdef HAVE_SYS_TIMES_H
12389 #include <sys/times.h>
12397 char *(*pfn) = (char *(*)) $ac_func ;
12403 if ac_fn_cxx_try_compile
"$LINENO"; then :
12404 eval "gcc_cv_have_decl_$ac_func=yes"
12406 eval "gcc_cv_have_decl_$ac_func=no"
12408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12411 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12413 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12414 #define $ac_tr_decl 1
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12420 #define $ac_tr_decl 0
12428 for ac_func
in sigaltstack
12430 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12432 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12433 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12434 $as_echo_n "(cached) " >&6
12436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 #define $ac_tr_decl 1
12441 #include "ansidecl.h"
12442 #include "system.h"
12443 #include <signal.h>
12450 char *(*pfn) = (char *(*)) $ac_func ;
12456 if ac_fn_cxx_try_compile
"$LINENO"; then :
12457 eval "gcc_cv_have_decl_$ac_func=yes"
12459 eval "gcc_cv_have_decl_$ac_func=no"
12461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12464 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12466 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12467 #define $ac_tr_decl 1
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12473 #define $ac_tr_decl 0
12481 # More time-related stuff.
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12483 $as_echo_n "checking for struct tms... " >&6; }
12484 if ${ac_cv_struct_tms+:} false
; then :
12485 $as_echo_n "(cached) " >&6
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 #include "ansidecl.h"
12492 #include "system.h"
12493 #ifdef HAVE_SYS_TIMES_H
12494 #include <sys/times.h>
12505 if ac_fn_cxx_try_compile
"$LINENO"; then :
12506 ac_cv_struct_tms
=yes
12508 ac_cv_struct_tms
=no
12510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12513 $as_echo "$ac_cv_struct_tms" >&6; }
12514 if test $ac_cv_struct_tms = yes; then
12516 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12520 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12521 # revisit after autoconf 2.50.
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12523 $as_echo_n "checking for clock_t... " >&6; }
12524 if ${gcc_cv_type_clock_t+:} false
; then :
12525 $as_echo_n "(cached) " >&6
12528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 #include "ansidecl.h"
12532 #include "system.h"
12542 if ac_fn_cxx_try_compile
"$LINENO"; then :
12543 gcc_cv_type_clock_t
=yes
12545 gcc_cv_type_clock_t
=no
12547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12550 $as_echo "$gcc_cv_type_clock_t" >&6; }
12551 if test $gcc_cv_type_clock_t = yes; then
12553 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12557 # Check if F_SETLKW is supported by fcntl.
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12559 $as_echo_n "checking for F_SETLKW... " >&6; }
12560 if ${ac_cv_f_setlkw+:} false
; then :
12561 $as_echo_n "(cached) " >&6
12564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12577 return fcntl (1, F_SETLKW, &fl);
12582 if ac_fn_cxx_try_compile
"$LINENO"; then :
12587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12590 $as_echo "$ac_cv_f_setlkw" >&6; }
12591 if test $ac_cv_f_setlkw = yes; then
12593 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12597 # Check if O_CLOEXEC is defined by fcntl
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12599 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12600 if ${ac_cv_o_cloexec+:} false
; then :
12601 $as_echo_n "(cached) " >&6
12604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12612 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12617 if ac_fn_cxx_try_compile
"$LINENO"; then :
12618 ac_cv_o_cloexec
=yes
12622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12625 $as_echo "$ac_cv_o_cloexec" >&6; }
12626 if test $ac_cv_o_cloexec = yes; then
12628 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12632 # Check if O_NONBLOCK is defined by fcntl
12633 for ac_header
in fcntl.h
12635 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12636 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12637 cat >>confdefs.h
<<_ACEOF
12638 #define HAVE_FCNTL_H 1
12644 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12646 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12650 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12652 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12657 # C++ Modules would like some networking features to provide the mapping
12658 # server. You can still use modules without them though.
12659 # The following network-related checks could probably do with some
12660 # Windows and other non-linux defenses and checking.
12662 # Local socket connectivity wants AF_UNIX networking
12663 # Check for AF_UNIX networking
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12665 $as_echo_n "checking for AF_UNIX... " >&6; }
12666 if ${ac_cv_af_unix+:} false
; then :
12667 $as_echo_n "(cached) " >&6
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include <sys/types.h>
12674 #include <sys/socket.h>
12675 #include <sys/un.h>
12676 #include <netinet/in.h>
12682 un.sun_family = AF_UNSPEC;
12683 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12684 connect (fd, (sockaddr *)&un, sizeof (un));
12689 if ac_fn_cxx_try_compile
"$LINENO"; then :
12694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12697 $as_echo "$ac_cv_af_unix" >&6; }
12698 if test $ac_cv_af_unix = yes; then
12700 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12704 # Remote socket connectivity wants AF_INET6 networking
12705 # Check for AF_INET6 networking
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12707 $as_echo_n "checking for AF_INET6... " >&6; }
12708 if ${ac_cv_af_inet6+:} false
; then :
12709 $as_echo_n "(cached) " >&6
12712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 #include <sys/types.h>
12716 #include <sys/socket.h>
12717 #include <netinet/in.h>
12724 in6.sin6_family = AF_UNSPEC;
12725 struct addrinfo *addrs = 0;
12726 struct addrinfo hints;
12727 hints.ai_flags = 0;
12728 hints.ai_family = AF_INET6;
12729 hints.ai_socktype = SOCK_STREAM;
12730 hints.ai_protocol = 0;
12731 hints.ai_canonname = 0;
12734 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12735 const char *str = gai_strerror (e);
12736 freeaddrinfo (addrs);
12737 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12738 connect (fd, (sockaddr *)&in6, sizeof (in6));
12743 if ac_fn_cxx_try_compile
"$LINENO"; then :
12748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12751 $as_echo "$ac_cv_af_inet6" >&6; }
12752 if test $ac_cv_af_inet6 = yes; then
12754 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12758 # Check if _LK_LOCK is supported by _locking
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12760 $as_echo_n "checking for _LK_LOCK... " >&6; }
12761 if ${ac_cv_lk_lock+:} false
; then :
12762 $as_echo_n "(cached) " >&6
12765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12769 #include <sys/locking.h>
12775 return _locking (fd, _LK_LOCK, 0);
12780 if ac_fn_cxx_try_compile
"$LINENO"; then :
12785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12788 $as_echo "$ac_cv_lk_lock" >&6; }
12789 if test $ac_cv_lk_lock = yes; then
12791 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12795 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12796 CFLAGS
="$saved_CFLAGS"
12797 CXXFLAGS
="$saved_CXXFLAGS"
12799 # mkdir takes a single argument on some systems.
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12801 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12802 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12803 $as_echo_n "(cached) " >&6
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12808 #include <sys/types.h>
12809 #ifdef HAVE_SYS_STAT_H
12810 # include <sys/stat.h>
12812 #ifdef HAVE_UNISTD_H
12813 # include <unistd.h>
12815 #ifdef HAVE_DIRECT_H
12816 # include <direct.h>
12826 if ac_fn_cxx_try_compile
"$LINENO"; then :
12827 gcc_cv_mkdir_takes_one_arg
=no
12829 gcc_cv_mkdir_takes_one_arg
=yes
12831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12834 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12835 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12837 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12848 # With Setjmp/Longjmp based exception handling.
12849 # Check whether --enable-sjlj-exceptions was given.
12850 if test "${enable_sjlj_exceptions+set}" = set; then :
12851 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12855 force_sjlj_exceptions
=yes
12859 force_sjlj_exceptions
=no
12864 if test $force_sjlj_exceptions = yes; then
12865 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12867 cat >>confdefs.h
<<_ACEOF
12868 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12873 # --------------------------------------------------------
12874 # Build, host, and target specific configuration fragments
12875 # --------------------------------------------------------
12877 # Collect build-machine-specific information.
12878 .
${srcdir}/config.build ||
exit 1
12880 # Collect host-machine-specific information.
12881 .
${srcdir}/config.
host ||
exit 1
12885 # Collect target-machine-specific information.
12886 .
${srcdir}/config.gcc ||
exit 1
12888 extra_objs
="${host_extra_objs} ${extra_objs}"
12889 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12891 # Default the target-machine variables that were not explicitly set.
12892 if test x
"$tm_file" = x
12893 then tm_file
=$cpu_type/$cpu_type.h
; fi
12895 if test x
"$extra_headers" = x
12896 then extra_headers
=; fi
12898 if test x
$md_file = x
12899 then md_file
=$cpu_type/$cpu_type.md
; fi
12901 if test x
$out_file = x
12902 then out_file
=$cpu_type/$cpu_type.cc
; fi
12904 if test x
"$tmake_file" = x
12905 then tmake_file
=$cpu_type/t-
$cpu_type
12908 # Support --enable-initfini-array.
12909 if test x
$enable_initfini_array != xno
; then
12910 tm_file
="${tm_file} initfini-array.h"
12913 if test x
"$dwarf2" = xyes
12914 then tm_file
="$tm_file tm-dwarf2.h"
12917 # Say what files are being used for the output code and MD file.
12918 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12919 echo "Using \`$srcdir/config/$md_file' as machine description file."
12921 # If any of the xm_file variables contain nonexistent files, warn
12922 # about them and drop them.
12925 for x
in $build_xm_file; do
12926 if test -f $srcdir/config
/$x
12928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12932 build_xm_file
="$bx"
12935 for x
in $host_xm_file; do
12936 if test -f $srcdir/config
/$x
12938 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12939 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12945 for x
in $xm_file; do
12946 if test -f $srcdir/config
/$x
12948 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12949 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12955 for f
in $tm_file; do
12958 if test $count = ax
; then
12959 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12961 echo "Using the following target machine macro files:"
12962 for f
in $tm_file; do
12963 echo " $srcdir/config/$f"
12967 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12969 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12973 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12975 cat >>confdefs.h
<<_ACEOF
12976 #define HAVE_GNU_LD $gnu_ld_bool
12980 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12982 cat >>confdefs.h
<<_ACEOF
12983 #define HAVE_GNU_AS $gnu_as_bool
12988 for f
in $host_xm_file; do
12991 if test $count = a
; then
12993 elif test $count = ax
; then
12994 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12996 echo "Using the following host machine macro files:"
12997 for f
in $host_xm_file; do
12998 echo " $srcdir/config/$f"
13001 echo "Using ${out_host_hook_obj} for host machine hooks."
13003 if test "$host_xm_file" != "$build_xm_file"; then
13005 for f
in $build_xm_file; do
13008 if test $count = a
; then
13010 elif test $count = ax
; then
13011 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13013 echo "Using the following build machine macro files:"
13014 for f
in $build_xm_file; do
13015 echo " $srcdir/config/$f"
13020 if test -n "$configured_native_system_header_dir"; then
13021 native_system_header_dir
=$configured_native_system_header_dir
13023 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13027 powerpc
*-*-darwin*)
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13029 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13030 if ${gcc_cv_mcontext_underscores+:} false
; then :
13031 $as_echo_n "(cached) " >&6
13033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 #include <sys/cdefs.h>
13037 #include <sys/signal.h>
13038 #include <ucontext.h>
13039 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13042 if ac_fn_cxx_try_compile
"$LINENO"; then :
13043 gcc_cv_mcontext_underscores
=no
13045 gcc_cv_mcontext_underscores
=yes
13047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13050 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13051 if test $gcc_cv_mcontext_underscores = yes; then
13053 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13063 # Check if a valid thread package
13064 case ${enable_threads} in
13067 target_thread_file
='single'
13071 target_thread_file
='single'
13073 aix | dce | lynx | mipssde | posix | rtems | \
13074 single | tpf | vxworks | win32 | mcf
)
13075 target_thread_file
=${enable_threads}
13078 echo "${enable_threads} is an unknown thread package" 1>&2
13083 if test x
${thread_file} = x
; then
13084 # No thread file set by target-specific clauses in config.gcc,
13085 # so use file chosen by default logic above
13086 thread_file
=${target_thread_file}
13094 if test x
$enable___cxa_atexit = xyes || \
13095 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13096 if test x
$host = x
$target; then
13098 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13099 # keyed to flag_use_cxa_atexit
13107 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13108 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13111 echo "__cxa_atexit can't be enabled on this target"
13117 # We can't check for __cxa_atexit when building a cross, so assume
13121 if test x
$use_cxa_atexit = xyes
; then
13123 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13128 # Look for a file containing extra machine modes.
13129 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13130 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13133 cat >>confdefs.h
<<_ACEOF
13134 #define EXTRA_MODES_FILE "config/$extra_modes"
13139 # Convert extra_options into a form suitable for Makefile use.
13142 for f
in $extra_options; do
13143 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13144 all_opt_files
="$all_opt_files $srcdir/config/$f"
13148 # auto-host.h is the file containing items generated by autoconf and is
13149 # the first file included by config.h.
13150 # If host=build, it is correct to have bconfig include auto-host.h
13151 # as well. If host!=build, we are in error and need to do more
13152 # work to find out the build config parameters.
13153 if test x
$host = x
$build
13155 build_auto
=auto-host.h
13156 HAVE_AUTO_BUILD
='# '
13158 # We create a subdir, then run autoconf in the subdir.
13159 # To prevent recursion we set host and build for the new
13160 # invocation of configure to the build for this invocation
13167 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13168 *) realsrcdir
=..
/${srcdir};;
13170 # Clearing GMPINC is necessary to prevent host headers being
13171 # used by the build compiler. Defining GENERATOR_FILE stops
13172 # system.h from including gmp.h.
13173 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13174 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13175 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13176 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13177 ${realsrcdir}/configure \
13178 --enable-languages=${enable_languages-all} \
13179 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13180 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13181 --target=$target_alias --host=$build_alias \
13182 --build=$build_alias ||
exit # retaining $tempdir
13184 # We just finished tests for the build machine, so rename
13185 # the file auto-build.h in the gcc directory.
13186 mv auto-host.h ..
/auto-build.h
13189 build_auto
=auto-build.h
13195 tm_file
="${tm_file} defaults.h"
13196 tm_p_file
="${tm_p_file} tm-preds.h"
13197 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13198 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13199 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13200 # put this back in temporarily.
13201 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13207 # Compile in configure arguments.
13208 if test -f configargs.h
; then
13209 # Being re-configured.
13210 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13211 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13212 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13213 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13216 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13219 # Double all backslashes and backslash all quotes to turn
13220 # gcc_config_arguments into a C string.
13221 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13222 $gcc_config_arguments
13224 gcc_config_arguments_str
=`cat conftest.out`
13227 cat > configargs.h
<<EOF
13228 /* Generated automatically. */
13229 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13230 static const char thread_model[] = "$thread_file";
13232 static const struct {
13233 const char *name, *value;
13234 } configure_default_options[] = $configure_default_options;
13237 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13238 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13239 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13240 if test -f $srcdir/REVISION
; then
13241 gcc_REVISION
=`cat $srcdir/REVISION`
13245 cat > plugin-version.h
<<EOF
13246 #include "configargs.h"
13248 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13249 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13250 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13251 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13253 static char basever[] = "$gcc_BASEVER";
13254 static char datestamp[] = "$gcc_DATESTAMP";
13255 static char devphase[] = "$gcc_DEVPHASE";
13256 static char revision[] = "$gcc_REVISION";
13258 /* FIXME plugins: We should make the version information more precise.
13259 One way to do is to add a checksum. */
13261 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13262 devphase, revision,
13263 configuration_arguments};
13266 # Determine what GCC version number to use in filesystem paths.
13268 get_gcc_base_ver
="cat"
13270 # Check whether --with-gcc-major-version-only was given.
13271 if test "${with_gcc_major_version_only+set}" = set; then :
13272 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13273 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13281 # Internationalization
13282 # If we haven't got the data from the intl directory,
13283 # assume NLS is disabled.
13292 if test -f ..
/intl
/config.intl
; then
13293 . ..
/intl
/config.intl
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13296 $as_echo_n "checking whether NLS is requested... " >&6; }
13297 if test x
"$USE_NLS" != xyes
; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302 $as_echo "yes" >&6; }
13304 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13308 $as_echo_n "checking for catalogs to be installed... " >&6; }
13309 # Look for .po and .gmo files in the source directory.
13312 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13313 # If there aren't any .gmo files the shell will give us the
13314 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13316 case "$cat" in *\
**)
13319 # The quadruple backslash is collapsed to a double backslash
13320 # by the backticks, then collapsed again by the double quotes,
13321 # leaving us with one backslash in the sed expression (right
13322 # before the dot that mustn't act as a wildcard).
13323 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13324 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13325 # The user is allowed to set LINGUAS to a list of languages to
13326 # install catalogs for. If it's empty that means "all of them."
13327 if test "x$LINGUAS" = x
; then
13328 CATALOGS
="$CATALOGS $cat"
13329 XLINGUAS
="$XLINGUAS $lang"
13331 case "$LINGUAS" in *$lang*)
13332 CATALOGS
="$CATALOGS $cat"
13333 XLINGUAS
="$XLINGUAS $lang"
13338 LINGUAS
="$XLINGUAS"
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13340 $as_echo "$LINGUAS" >&6; }
13353 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13354 # -liconv on the link line twice.
13355 case "$LIBINTL" in *$LIBICONV*)
13359 # Check whether --enable-secureplt was given.
13360 if test "${enable_secureplt+set}" = set; then :
13361 enableval
=$enable_secureplt;
13365 # Check whether --enable-mingw-wildcard was given.
13366 if test "${enable_mingw_wildcard+set}" = set; then :
13367 enableval
=$enable_mingw_wildcard;
13369 enable_mingw_wildcard
=platform
13372 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13374 cat >>confdefs.h
<<_ACEOF
13375 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13380 # Check whether --enable-large-address-aware was given.
13381 if test "${enable_large_address_aware+set}" = set; then :
13382 enableval
=$enable_large_address_aware;
13385 if test x
"$enable_large_address_aware" = xyes
; then :
13387 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13391 # Check whether --enable-leading-mingw64-underscores was given.
13392 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13393 enableval
=$enable_leading_mingw64_underscores;
13396 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13398 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13402 # Check whether --enable-cld was given.
13403 if test "${enable_cld+set}" = set; then :
13404 enableval
=$enable_cld;
13410 # Check whether --enable-frame-pointer was given.
13411 if test "${enable_frame_pointer+set}" = set; then :
13412 enableval
=$enable_frame_pointer;
13416 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13417 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13418 enable_frame_pointer
=no
13421 enable_frame_pointer
=yes
13429 i
[34567]86-*-* | x86_64-
*-*)
13430 if test "x$enable_cld" = xyes
; then
13431 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13433 if test "x$enable_frame_pointer" = xyes
; then
13434 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13439 # Windows32 Registry support for specifying GCC installation paths.
13440 # Check whether --enable-win32-registry was given.
13441 if test "${enable_win32_registry+set}" = set; then :
13442 enableval
=$enable_win32_registry;
13447 win32 | pe | cygwin
* | mingw32
*)
13448 if test "x$enable_win32_registry" != xno
; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13450 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13451 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13452 $as_echo_n "(cached) " >&6
13454 ac_func_search_save_LIBS
=$LIBS
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13464 char RegOpenKeyExA ();
13468 return RegOpenKeyExA ();
13473 for ac_lib
in '' advapi32
; do
13474 if test -z "$ac_lib"; then
13475 ac_res
="none required"
13478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13480 if ac_fn_cxx_try_link
"$LINENO"; then :
13481 ac_cv_search_RegOpenKeyExA
=$ac_res
13483 rm -f core conftest.err conftest.
$ac_objext \
13485 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13489 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13492 ac_cv_search_RegOpenKeyExA
=no
13494 rm conftest.
$ac_ext
13495 LIBS
=$ac_func_search_save_LIBS
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13498 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13499 ac_res
=$ac_cv_search_RegOpenKeyExA
13500 if test "$ac_res" != no
; then :
13501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13504 enable_win32_registry
=no
13509 if test "x$enable_win32_registry" != xno
; then
13511 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13514 if test "x$enable_win32_registry" != xyes \
13515 && test "x$enable_win32_registry" != x
; then
13517 cat >>confdefs.h
<<_ACEOF
13518 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13526 # Get an absolute path to the GCC top-level source directory
13527 holddir
=`${PWDCMD-pwd}`
13529 topdir
=`${PWDCMD-pwd}`
13532 # Conditionalize the makefile for this host machine.
13534 for f
in ${host_xmake_file}
13536 if test -f ${srcdir}/config
/$f
13538 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13542 # Conditionalize the makefile for this target machine.
13544 for f
in ${tmake_file}
13546 if test -f ${srcdir}/config
/$f
13548 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13551 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13553 out_object_file
=`basename $out_file .cc`.o
13554 common_out_object_file
=`basename $common_out_file .cc`.o
13556 tm_file_list
="options.h"
13557 tm_include_list
="options.h insn-constants.h"
13558 for f
in $tm_file; do
13561 f
=`echo $f | sed 's/^..//'`
13562 tm_file_list
="${tm_file_list} $f"
13563 tm_include_list
="${tm_include_list} $f"
13566 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13567 tm_include_list
="${tm_include_list} $f"
13570 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13571 tm_include_list
="${tm_include_list} config/$f"
13578 for f
in $tm_p_file; do
13581 tm_p_file_list
="${tm_p_file_list} $f"
13582 tm_p_include_list
="${tm_p_include_list} $f"
13585 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13586 tm_p_include_list
="${tm_p_include_list} config/$f"
13592 for f
in $tm_d_file; do
13595 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13596 tm_d_include_list
="${tm_d_include_list} config/$f"
13602 tm_rust_include_list
=
13603 for f
in $tm_rust_file; do
13606 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
13607 tm_rust_include_list
="${tm_rust_include_list} config/$f"
13614 for f
in $xm_file; do
13617 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13618 xm_include_list
="${xm_include_list} $f"
13621 xm_file_list
="${xm_file_list} $f"
13622 xm_include_list
="${xm_include_list} $f"
13625 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13626 xm_include_list
="${xm_include_list} config/$f"
13632 host_xm_include_list
=
13633 for f
in $host_xm_file; do
13636 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13637 host_xm_include_list
="${host_xm_include_list} $f"
13640 host_xm_file_list
="${host_xm_file_list} $f"
13641 host_xm_include_list
="${host_xm_include_list} $f"
13644 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13645 host_xm_include_list
="${host_xm_include_list} config/$f"
13650 build_xm_file_list
=
13651 for f
in $build_xm_file; do
13654 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13655 build_xm_include_list
="${build_xm_include_list} $f"
13657 auto-build.h | auto-host.h
)
13658 build_xm_file_list
="${build_xm_file_list} $f"
13659 build_xm_include_list
="${build_xm_include_list} $f"
13662 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13663 build_xm_include_list
="${build_xm_include_list} config/$f"
13668 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13669 # cross-compiler which does not use the native headers and libraries.
13670 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13673 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13674 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13676 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13677 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13678 if test "x$with_build_sysroot" != x
; then
13679 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13681 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13684 if test x
$host != x
$target
13686 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13688 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13689 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13690 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13693 if test "x$with_build_sysroot" != "x"; then
13694 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13695 elif test "x$with_sysroot" = x
; then
13696 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13697 elif test "x$with_sysroot" = xyes
; then
13698 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13700 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13703 target_header_dir
=${native_system_header_dir}
13706 # If this is a cross-compiler that does not
13707 # have its own set of headers then define
13710 # If this is using newlib, without having the headers available now,
13711 # then define inhibit_libc in LIBGCC2_CFLAGS.
13712 # This prevents libgcc2 from containing any code which requires libc
13714 : ${inhibit_libc=false}
13715 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13716 test x
$with_newlib = xyes
; } &&
13717 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13722 # When building gcc with a cross-compiler, we need to adjust things so
13723 # that the generator programs are still built with the native compiler.
13724 # Also, we cannot run fixincludes.
13726 # These are the normal (build=host) settings:
13727 CC_FOR_BUILD
='$(CC)'
13728 CXX_FOR_BUILD
='$(CXX)'
13729 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13730 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13731 BUILD_LDFLAGS
='$(LDFLAGS)'
13732 STMP_FIXINC
=stmp-fixinc
13734 # And these apply if build != host, or we are generating coverage data
13735 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13737 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13738 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13739 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13743 if test x
$enable_fixincludes = xno
;
13748 # Expand extra_headers to include complete path.
13749 # This substitutes for lots of t-* files.
13750 extra_headers_list
=
13751 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13752 for file in ${extra_headers} ; do
13753 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13756 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13757 if test x
"$use_gcc_tgmath" = xyes
13758 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13761 # Define collect2 in Makefile.
13762 case $host_can_use_collect2 in
13764 *) collect2
='collect2$(exeext)' ;;
13768 # Add a definition of USE_COLLECT2 if system wants one.
13769 case $use_collect2 in
13770 no
) use_collect2
= ;;
13773 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13774 xm_defines
="${xm_defines} USE_COLLECT2"
13775 case $host_can_use_collect2 in
13777 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13784 cat >>confdefs.h
<<_ACEOF
13785 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13789 # ---------------------------
13790 # Assembler & linker features
13791 # ---------------------------
13793 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13794 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13795 # However when ld-new is first executed from the build tree, libtool will
13796 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13797 # to the build tree. While doing this we need to use the previous-stage
13798 # linker, or we have an infinite loop. The presence of a shell script as
13799 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13800 # the gcc/collect-ld script. So we need to know how libtool works, or
13801 # exec-tool will fail.
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13807 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13812 macro_version
='2.2.7a'
13813 macro_revision
='1.3134'
13827 ltmain
="$ac_aux_dir/ltmain.sh"
13829 # Backslashify metacharacters that are still active within
13830 # double-quoted strings.
13831 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13833 # Same as above, but do not quote variable references.
13834 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13836 # Sed substitution to delay expansion of an escaped shell variable in a
13837 # double_quote_subst'ed string.
13838 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13840 # Sed substitution to delay expansion of an escaped single quote.
13841 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13843 # Sed substitution to avoid accidental globbing in evaled expressions
13844 no_glob_subst
='s/\*/\\\*/g'
13846 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13851 $as_echo_n "checking how to print strings... " >&6; }
13852 # Test print first, because it will be a builtin if present.
13853 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13859 # Use this function as a fallback that always works.
13860 func_fallback_echo ()
13862 eval 'cat <<_LTECHO_EOF
13866 ECHO='func_fallback_echo
'
13869 # func_echo_all arg...
13870 # Invoke $ECHO with all args, space-separated.
13877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13878 $as_echo "printf" >&6; } ;;
13879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13880 $as_echo "print -r" >&6; } ;;
13881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13882 $as_echo "cat" >&6; } ;;
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13899 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13900 if ${ac_cv_path_SED+:} false; then :
13901 $as_echo_n "(cached) " >&6
13903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13904 for ac_i in 1 2 3 4 5 6 7; do
13905 ac_script="$ac_script$as_nl$ac_script"
13907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13908 { ac_script=; unset ac_script;}
13909 if test -z "$SED"; then
13910 ac_path_SED_found=false
13911 # Loop through the user's path and
test for each of PROGNAME-LIST
13912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13913 for as_dir
in $PATH
13916 test -z "$as_dir" && as_dir
=.
13917 for ac_prog
in sed gsed
; do
13918 for ac_exec_ext
in '' $ac_executable_extensions; do
13919 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13920 as_fn_executable_p
"$ac_path_SED" ||
continue
13921 # Check for GNU ac_path_SED and select it if it is found.
13922 # Check for GNU $ac_path_SED
13923 case `"$ac_path_SED" --version 2>&1` in
13925 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13928 $as_echo_n 0123456789 >"conftest.in"
13931 cat "conftest.in" "conftest.in" >"conftest.tmp"
13932 mv "conftest.tmp" "conftest.in"
13933 cp "conftest.in" "conftest.nl"
13934 $as_echo '' >> "conftest.nl"
13935 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13936 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13937 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13938 if test $ac_count -gt ${ac_path_SED_max-0}; then
13939 # Best one so far, save it but keep looking for a better one
13940 ac_cv_path_SED
="$ac_path_SED"
13941 ac_path_SED_max
=$ac_count
13943 # 10*(2^10) chars as input seems more than enough
13944 test $ac_count -gt 10 && break
13946 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13949 $ac_path_SED_found && break 3
13954 if test -z "$ac_cv_path_SED"; then
13955 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13958 ac_cv_path_SED
=$SED
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13963 $as_echo "$ac_cv_path_SED" >&6; }
13964 SED
="$ac_cv_path_SED"
13967 test -z "$SED" && SED
=sed
13968 Xsed
="$SED -e 1s/^X//"
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13981 $as_echo_n "checking for fgrep... " >&6; }
13982 if ${ac_cv_path_FGREP+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13985 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13986 then ac_cv_path_FGREP
="$GREP -F"
13988 if test -z "$FGREP"; then
13989 ac_path_FGREP_found
=false
13990 # Loop through the user's path and test for each of PROGNAME-LIST
13991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13992 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13995 test -z "$as_dir" && as_dir
=.
13996 for ac_prog
in fgrep
; do
13997 for ac_exec_ext
in '' $ac_executable_extensions; do
13998 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13999 as_fn_executable_p
"$ac_path_FGREP" ||
continue
14000 # Check for GNU ac_path_FGREP and select it if it is found.
14001 # Check for GNU $ac_path_FGREP
14002 case `"$ac_path_FGREP" --version 2>&1` in
14004 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
14007 $as_echo_n 0123456789 >"conftest.in"
14010 cat "conftest.in" "conftest.in" >"conftest.tmp"
14011 mv "conftest.tmp" "conftest.in"
14012 cp "conftest.in" "conftest.nl"
14013 $as_echo 'FGREP' >> "conftest.nl"
14014 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
14015 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
14016 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
14017 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14018 # Best one so far, save it but keep looking for a better one
14019 ac_cv_path_FGREP
="$ac_path_FGREP"
14020 ac_path_FGREP_max
=$ac_count
14022 # 10*(2^10) chars as input seems more than enough
14023 test $ac_count -gt 10 && break
14025 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
14028 $ac_path_FGREP_found && break 3
14033 if test -z "$ac_cv_path_FGREP"; then
14034 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14037 ac_cv_path_FGREP
=$FGREP
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14043 $as_echo "$ac_cv_path_FGREP" >&6; }
14044 FGREP
="$ac_cv_path_FGREP"
14047 test -z "$GREP" && GREP
=grep
14067 # Check whether --with-gnu-ld was given.
14068 if test "${with_gnu_ld+set}" = set; then :
14069 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14075 if test "$GCC" = yes; then
14076 # Check if gcc -print-prog-name=ld gives a path.
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14078 $as_echo_n "checking for ld used by $CC... " >&6; }
14081 # gcc leaves a trailing carriage return which upsets mingw
14082 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14084 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14087 # Accept absolute paths.
14089 re_direlt
='/[^/][^/]*/\.\./'
14090 # Canonicalize the pathname of ld
14091 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14092 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14093 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14095 test -z "$LD" && LD
="$ac_prog"
14098 # If it fails, then pretend we aren't using GCC.
14102 # If it is relative, then search for the first ld in PATH.
14103 with_gnu_ld
=unknown
14106 elif test "$with_gnu_ld" = yes; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14108 $as_echo_n "checking for GNU ld... " >&6; }
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14111 $as_echo_n "checking for non-GNU ld... " >&6; }
14113 if ${lt_cv_path_LD+:} false
; then :
14114 $as_echo_n "(cached) " >&6
14116 if test -z "$LD"; then
14117 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14118 for ac_dir
in $PATH; do
14120 test -z "$ac_dir" && ac_dir
=.
14121 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14122 lt_cv_path_LD
="$ac_dir/$ac_prog"
14123 # Check to see if the program is GNU ld. I'd rather use --version,
14124 # but apparently some variants of GNU ld only accept -v.
14125 # Break only if it was the GNU/non-GNU ld that we prefer.
14126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14127 *GNU
* |
*'with BFD'*)
14128 test "$with_gnu_ld" != no
&& break
14131 test "$with_gnu_ld" != yes && break
14138 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14142 LD
="$lt_cv_path_LD"
14143 if test -n "$LD"; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14145 $as_echo "$LD" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; }
14150 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14153 if ${lt_cv_prog_gnu_ld+:} false
; then :
14154 $as_echo_n "(cached) " >&6
14156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14157 case `$LD -v 2>&1 </dev/null` in
14158 *GNU
* |
*'with BFD'*)
14159 lt_cv_prog_gnu_ld
=yes
14162 lt_cv_prog_gnu_ld
=no
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14168 with_gnu_ld
=$lt_cv_prog_gnu_ld
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14179 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14180 if ${lt_cv_path_NM+:} false
; then :
14181 $as_echo_n "(cached) " >&6
14183 if test -n "$NM"; then
14184 # Let the user override the nm to test.
14185 lt_nm_to_check
="$NM"
14187 lt_nm_to_check
="${ac_tool_prefix}nm"
14188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14189 lt_nm_to_check
="$lt_nm_to_check nm"
14192 for lt_tmp_nm
in "$lt_nm_to_check"; do
14193 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14194 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14196 test -z "$ac_dir" && ac_dir
=.
14197 # Strip out any user-provided options from the nm to test twice,
14198 # the first time to test to see if nm (rather than its options) has
14199 # an explicit path, the second time to yield a file which can be
14201 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14202 case "$tmp_nm_path" in
14203 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
14204 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
14206 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14207 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
14208 # Check to see if the nm accepts a BSD-compat flag.
14209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14210 # nm: unknown option "B" ignored
14211 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14212 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
14216 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14218 lt_cv_path_NM
="$tmp_nm -p"
14222 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14223 continue # so that we can try to find one that supports BSD flags
14232 : ${lt_cv_path_NM=no}
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14235 $as_echo "$lt_cv_path_NM" >&6; }
14236 if test "$lt_cv_path_NM" != "no"; then
14237 NM
="$lt_cv_path_NM"
14239 # Didn't find any BSD compatible name lister, look for dumpbin.
14240 if test -n "$DUMPBIN"; then :
14241 # Let the user override the test.
14243 if test -n "$ac_tool_prefix"; then
14244 for ac_prog
in dumpbin
"link -dump"
14246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14247 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14251 $as_echo_n "(cached) " >&6
14253 if test -n "$DUMPBIN"; then
14254 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14257 for as_dir
in $PATH
14260 test -z "$as_dir" && as_dir
=.
14261 for ac_exec_ext
in '' $ac_executable_extensions; do
14262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14263 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273 DUMPBIN
=$ac_cv_prog_DUMPBIN
14274 if test -n "$DUMPBIN"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14276 $as_echo "$DUMPBIN" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14283 test -n "$DUMPBIN" && break
14286 if test -z "$DUMPBIN"; then
14287 ac_ct_DUMPBIN
=$DUMPBIN
14288 for ac_prog
in dumpbin
"link -dump"
14290 # Extract the first word of "$ac_prog", so it can be a program name with args.
14291 set dummy
$ac_prog; ac_word
=$2
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14293 $as_echo_n "checking for $ac_word... " >&6; }
14294 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14295 $as_echo_n "(cached) " >&6
14297 if test -n "$ac_ct_DUMPBIN"; then
14298 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14301 for as_dir
in $PATH
14304 test -z "$as_dir" && as_dir
=.
14305 for ac_exec_ext
in '' $ac_executable_extensions; do
14306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14307 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14318 if test -n "$ac_ct_DUMPBIN"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14320 $as_echo "$ac_ct_DUMPBIN" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323 $as_echo "no" >&6; }
14327 test -n "$ac_ct_DUMPBIN" && break
14330 if test "x$ac_ct_DUMPBIN" = x
; then
14333 case $cross_compiling:$ac_tool_warned in
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14337 ac_tool_warned
=yes ;;
14339 DUMPBIN
=$ac_ct_DUMPBIN
14343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14345 DUMPBIN
="$DUMPBIN -symbols"
14353 if test "$DUMPBIN" != ":"; then
14357 test -z "$NM" && NM
=nm
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14366 if ${lt_cv_nm_interface+:} false
; then :
14367 $as_echo_n "(cached) " >&6
14369 lt_cv_nm_interface
="BSD nm"
14370 echo "int some_variable = 0;" > conftest.
$ac_ext
14371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14372 (eval "$ac_compile" 2>conftest.err
)
14373 cat conftest.err
>&5
14374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14376 cat conftest.err
>&5
14377 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14378 cat conftest.out
>&5
14379 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14380 lt_cv_nm_interface
="MS dumpbin"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14385 $as_echo "$lt_cv_nm_interface" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14388 $as_echo_n "checking whether ln -s works... " >&6; }
14390 if test "$LN_S" = "ln -s"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392 $as_echo "yes" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14395 $as_echo "no, using $LN_S" >&6; }
14398 # find the maximum length of command line arguments
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14401 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14402 $as_echo_n "(cached) " >&6
14409 # On DJGPP, this test can blow up pretty badly due to problems in libc
14410 # (any single argument exceeding 2000 bytes causes a buffer overrun
14411 # during glob expansion). Even if it were fixed, the result of this
14412 # check would be larger than it should be.
14413 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14417 # Under GNU Hurd, this test is not required because there is
14418 # no limit to the length of command line arguments.
14419 # Libtool will interpret -1 as no limit whatsoever
14420 lt_cv_sys_max_cmd_len
=-1;
14423 cygwin
* | mingw
* | cegcc
*)
14424 # On Win9x/ME, this test blows up -- it succeeds, but takes
14425 # about 5 minutes as the teststring grows exponentially.
14426 # Worse, since 9x/ME are not pre-emptively multitasking,
14427 # you end up with a "frozen" computer, even though with patience
14428 # the test eventually succeeds (with a max line length of 256k).
14429 # Instead, let's just punt: use the minimum linelength reported by
14430 # all of the supported platforms: 8192 (on NT/2K/XP).
14431 lt_cv_sys_max_cmd_len
=8192;
14435 # On MiNT this can take a long time and run out of memory.
14436 lt_cv_sys_max_cmd_len
=8192;
14440 # On AmigaOS with pdksh, this test takes hours, literally.
14441 # So we just punt and use a minimum line length of 8192.
14442 lt_cv_sys_max_cmd_len
=8192;
14445 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14446 # This has been around since 386BSD, at least. Likely further.
14447 if test -x /sbin
/sysctl
; then
14448 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14449 elif test -x /usr
/sbin
/sysctl
; then
14450 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14452 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14454 # And add a safety zone
14455 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14456 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14460 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14461 lt_cv_sys_max_cmd_len
=196608
14465 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14466 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14467 # nice to cause kernel panics so lets avoid the loop below.
14468 # First set a reasonable default.
14469 lt_cv_sys_max_cmd_len
=16384
14471 if test -x /sbin
/sysconfig
; then
14472 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14473 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14478 lt_cv_sys_max_cmd_len
=102400
14480 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14481 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14482 if test -n "$kargmax"; then
14483 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14485 lt_cv_sys_max_cmd_len
=32768
14489 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14490 if test -n "$lt_cv_sys_max_cmd_len"; then
14491 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14492 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14494 # Make teststring a little bigger before we do anything with it.
14495 # a 1K string should be a reasonable start.
14496 for i
in 1 2 3 4 5 6 7 8 ; do
14497 teststring
=$teststring$teststring
14499 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14500 # If test is not a shell built-in, we'll probably end up computing a
14501 # maximum length that is only half of the actual maximum length, but
14503 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14504 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14505 test $i != 17 # 1/2 MB should be enough
14508 teststring
=$teststring$teststring
14510 # Only check the string length outside the loop.
14511 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14513 # Add a significant safety factor because C++ compilers can tack on
14514 # massive amounts of additional arguments before passing them to the
14515 # linker. It appears as though 1/2 is a usable value.
14516 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14523 if test -n $lt_cv_sys_max_cmd_len ; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14525 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14528 $as_echo "none" >&6; }
14530 max_cmd_len
=$lt_cv_sys_max_cmd_len
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14542 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14543 # Try some XSI features
14545 ( _lt_dummy
="a/b/c"
14546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14548 && eval 'test $(( 1 + 1 )) -eq 2 \
14549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14552 $as_echo "$xsi_shell" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14556 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14558 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14560 && lt_shell_append=yes
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14562 $as_echo "$lt_shell_append" >&6; }
14565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14575 # test EBCDIC or ASCII
14576 case `echo X|tr X '\101'` in
14577 A) # ASCII based system
14578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14579 lt_SP2NL='tr \040 \012'
14580 lt_NL2SP='tr \015\012 \040\040'
14582 *) # EBCDIC based system
14583 lt_SP2NL='tr \100 \n'
14584 lt_NL2SP='tr \r\n \100\100'
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14597 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14598 if ${lt_cv_ld_reload_flag+:} false; then :
14599 $as_echo_n "(cached
) " >&6
14601 lt_cv_ld_reload_flag='-r'
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14605 reload_flag=$lt_cv_ld_reload_flag
14606 case $reload_flag in
14608 *) reload_flag=" $reload_flag" ;;
14610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14613 if test "$GCC" = yes; then
14614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14629 if test -n "$ac_tool_prefix"; then
14630 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14631 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14633 $as_echo_n "checking
for $ac_word...
" >&6; }
14634 if ${ac_cv_prog_OBJDUMP+:} false; then :
14635 $as_echo_n "(cached
) " >&6
14637 if test -n "$OBJDUMP"; then
14638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14657 OBJDUMP=$ac_cv_prog_OBJDUMP
14658 if test -n "$OBJDUMP"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14660 $as_echo "$OBJDUMP" >&6; }
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14663 $as_echo "no
" >&6; }
14668 if test -z "$ac_cv_prog_OBJDUMP"; then
14669 ac_ct_OBJDUMP=$OBJDUMP
14670 # Extract the first word of "objdump
", so it can be a program name with args.
14671 set dummy objdump; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14673 $as_echo_n "checking
for $ac_word...
" >&6; }
14674 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14675 $as_echo_n "(cached
) " >&6
14677 if test -n "$ac_ct_OBJDUMP"; then
14678 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14697 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14698 if test -n "$ac_ct_OBJDUMP"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14700 $as_echo "$ac_ct_OBJDUMP" >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14703 $as_echo "no
" >&6; }
14706 if test "x
$ac_ct_OBJDUMP" = x; then
14709 case $cross_compiling:$ac_tool_warned in
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14712 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14713 ac_tool_warned=yes ;;
14715 OBJDUMP=$ac_ct_OBJDUMP
14718 OBJDUMP="$ac_cv_prog_OBJDUMP"
14721 test -z "$OBJDUMP" && OBJDUMP=objdump
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14732 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14733 if ${lt_cv_deplibs_check_method+:} false; then :
14734 $as_echo_n "(cached
) " >&6
14736 lt_cv_file_magic_cmd='$MAGIC_CMD'
14737 lt_cv_file_magic_test_file=
14738 lt_cv_deplibs_check_method='unknown'
14739 # Need to set the preceding variable on all platforms that support
14740 # interlibrary dependencies.
14741 # 'none' -- dependencies not supported.
14742 # `unknown' -- same as none, but documents that we really don't know.
14743 # 'pass_all' -- all dependencies passed with no checks.
14744 # 'test_compile' -- check by making test program.
14745 # 'file_magic [[regex]]' -- check by looking for files in library path
14746 # which responds to the $file_magic_cmd with a given extended regex.
14747 # If you have `file' or equivalent on your system and you're not sure
14748 # whether `pass_all' will *always* work, you probably want this one.
14752 lt_cv_deplibs_check_method=pass_all
14756 lt_cv_deplibs_check_method=pass_all
14760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14761 lt_cv_file_magic_cmd='/usr/bin/file -L'
14762 lt_cv_file_magic_test_file=/shlib/libc.so
14766 # func_win32_libid is a shell function defined in ltmain.sh
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14772 # Base MSYS/MinGW do not provide the 'file' command needed by
14773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14774 # unless we find 'file', for example because we are cross-compiling.
14775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14776 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14778 lt_cv_file_magic_cmd='func_win32_libid'
14780 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14781 lt_cv_file_magic_cmd='$OBJDUMP -f'
14786 # use the weaker test based on 'objdump'. See mingw*.
14787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14788 lt_cv_file_magic_cmd='$OBJDUMP -f'
14791 darwin* | rhapsody*)
14792 lt_cv_deplibs_check_method=pass_all
14795 freebsd* | dragonfly*)
14796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14799 # Not sure whether the presence of OpenBSD here was a mistake.
14800 # Let's accept both of them until this is cleared up.
14801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14802 lt_cv_file_magic_cmd=/usr/bin/file
14803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14807 lt_cv_deplibs_check_method=pass_all
14812 lt_cv_deplibs_check_method=pass_all
14816 lt_cv_deplibs_check_method=pass_all
14819 hpux10.20* | hpux11*)
14820 lt_cv_file_magic_cmd=/usr/bin/file
14823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14827 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]'
14828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14842 irix5* | irix6* | nonstopux*)
14844 *-32|*"-32 ") libmagic=32-bit;;
14845 *-n32|*"-n32 ") libmagic=N32;;
14846 *-64|*"-64 ") libmagic=64-bit;;
14847 *) libmagic=never-match;;
14849 lt_cv_deplibs_check_method=pass_all
14852 # This must be Linux ELF.
14853 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14854 lt_cv_deplibs_check_method=pass_all
14858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14867 lt_cv_file_magic_cmd=/usr/bin/file
14868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14872 lt_cv_deplibs_check_method=pass_all
14876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14883 osf3* | osf4* | osf5*)
14884 lt_cv_deplibs_check_method=pass_all
14888 lt_cv_deplibs_check_method=pass_all
14892 lt_cv_deplibs_check_method=pass_all
14895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14896 lt_cv_deplibs_check_method=pass_all
14900 case $host_vendor in
14902 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]'
14903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14906 lt_cv_deplibs_check_method=pass_all
14909 lt_cv_file_magic_cmd='/bin/file'
14910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14913 lt_cv_file_magic_cmd='/bin/file'
14914 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14915 lt_cv_file_magic_test_file=/lib/libc.so
14918 lt_cv_deplibs_check_method=pass_all
14921 lt_cv_deplibs_check_method=pass_all
14927 lt_cv_deplibs_check_method=pass_all
14930 # Assume VxWorks cross toolchains are built on Linux, possibly
14931 # as canadian for Windows hosts.
14932 lt_cv_deplibs_check_method=pass_all
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14938 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14939 file_magic_cmd=$lt_cv_file_magic_cmd
14940 deplibs_check_method=$lt_cv_deplibs_check_method
14941 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14955 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14956 for plugin in $plugin_names; do
14957 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14958 if test x$plugin_so = x$plugin; then
14959 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14961 if test x$plugin_so != x$plugin; then
14962 plugin_option="--plugin $plugin_so"
14967 if test -n "$ac_tool_prefix"; then
14968 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14969 set dummy ${ac_tool_prefix}ar; ac_word=$2
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14971 $as_echo_n "checking
for $ac_word...
" >&6; }
14972 if ${ac_cv_prog_AR+:} false; then :
14973 $as_echo_n "(cached
) " >&6
14975 if test -n "$AR"; then
14976 ac_cv_prog_AR="$AR" # Let the user override the test.
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_AR="${ac_tool_prefix}ar"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 if test -n "$AR"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14998 $as_echo "$AR" >&6; }
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15001 $as_echo "no
" >&6; }
15006 if test -z "$ac_cv_prog_AR"; then
15008 # Extract the first word of "ar", so it can be a program name with args.
15009 set dummy ar; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15011 $as_echo_n "checking
for $ac_word...
" >&6; }
15012 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15013 $as_echo_n "(cached
) " >&6
15015 if test -n "$ac_ct_AR"; then
15016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_ac_ct_AR="ar"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15036 if test -n "$ac_ct_AR"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
15038 $as_echo "$ac_ct_AR" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15041 $as_echo "no
" >&6; }
15044 if test "x
$ac_ct_AR" = x; then
15047 case $cross_compiling:$ac_tool_warned in
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15050 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15051 ac_tool_warned=yes ;;
15056 AR="$ac_cv_prog_AR"
15059 test -z "$AR" && AR=ar
15060 if test -n "$plugin_option"; then
15061 if $AR --help 2>&1 | grep -q "\
--plugin"; then
15063 $AR $plugin_option rc conftest.a conftest.c
15064 if test "$?
" != 0; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
15066 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
15068 AR="$AR $plugin_option"
15073 test -z "$AR_FLAGS" && AR_FLAGS=cru
15085 if test -n "$ac_tool_prefix"; then
15086 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15087 set dummy ${ac_tool_prefix}strip; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15089 $as_echo_n "checking
for $ac_word...
" >&6; }
15090 if ${ac_cv_prog_STRIP+:} false; then :
15091 $as_echo_n "(cached
) " >&6
15093 if test -n "$STRIP"; then
15094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15113 STRIP=$ac_cv_prog_STRIP
15114 if test -n "$STRIP"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15116 $as_echo "$STRIP" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15119 $as_echo "no
" >&6; }
15124 if test -z "$ac_cv_prog_STRIP"; then
15126 # Extract the first word of "strip
", so it can be a program name with args.
15127 set dummy strip; ac_word=$2
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15129 $as_echo_n "checking
for $ac_word...
" >&6; }
15130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15131 $as_echo_n "(cached
) " >&6
15133 if test -n "$ac_ct_STRIP"; then
15134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 for as_dir in $PATH
15140 test -z "$as_dir" && as_dir=.
15141 for ac_exec_ext in '' $ac_executable_extensions; do
15142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15143 ac_cv_prog_ac_ct_STRIP="strip
"
15144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15154 if test -n "$ac_ct_STRIP"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15156 $as_echo "$ac_ct_STRIP" >&6; }
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15159 $as_echo "no
" >&6; }
15162 if test "x
$ac_ct_STRIP" = x; then
15165 case $cross_compiling:$ac_tool_warned in
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15168 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15169 ac_tool_warned=yes ;;
15174 STRIP="$ac_cv_prog_STRIP"
15177 test -z "$STRIP" && STRIP=:
15184 if test -n "$ac_tool_prefix"; then
15185 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15188 $as_echo_n "checking
for $ac_word...
" >&6; }
15189 if ${ac_cv_prog_RANLIB+:} false; then :
15190 $as_echo_n "(cached
) " >&6
15192 if test -n "$RANLIB"; then
15193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $PATH
15199 test -z "$as_dir" && as_dir=.
15200 for ac_exec_ext in '' $ac_executable_extensions; do
15201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15212 RANLIB=$ac_cv_prog_RANLIB
15213 if test -n "$RANLIB"; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15215 $as_echo "$RANLIB" >&6; }
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15218 $as_echo "no
" >&6; }
15223 if test -z "$ac_cv_prog_RANLIB"; then
15224 ac_ct_RANLIB=$RANLIB
15225 # Extract the first word of "ranlib
", so it can be a program name with args.
15226 set dummy ranlib; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15228 $as_echo_n "checking
for $ac_word...
" >&6; }
15229 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15230 $as_echo_n "(cached
) " >&6
15232 if test -n "$ac_ct_RANLIB"; then
15233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $PATH
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15253 if test -n "$ac_ct_RANLIB"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15255 $as_echo "$ac_ct_RANLIB" >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15258 $as_echo "no
" >&6; }
15261 if test "x
$ac_ct_RANLIB" = x; then
15264 case $cross_compiling:$ac_tool_warned in
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15267 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15268 ac_tool_warned=yes ;;
15270 RANLIB=$ac_ct_RANLIB
15273 RANLIB="$ac_cv_prog_RANLIB"
15276 test -z "$RANLIB" && RANLIB=:
15277 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15278 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
15279 RANLIB="$RANLIB $plugin_option"
15288 # Determine commands to create old-style static archives.
15289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15290 old_postinstall_cmds='chmod 644 $oldlib'
15291 old_postuninstall_cmds=
15293 if test -n "$RANLIB"; then
15296 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15299 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15302 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15307 lock_old_archive_extraction=yes ;;
15309 lock_old_archive_extraction=no ;;
15350 # If no C compiler was specified, use CC.
15353 # If no C compiler flags were specified, use CFLAGS.
15354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15356 # Allow CC to be a program name with arguments.
15360 # Check for command to grab the raw symbol name followed by C symbol from nm.
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15362 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15363 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15364 $as_echo_n "(cached
) " >&6
15367 # These are sane defaults that work on at least a few old systems.
15368 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15370 # Character class describing NM global symbol codes.
15371 symcode='[BCDEGRST]'
15373 # Regexp to match symbols that can be accessed directly from C.
15374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15376 # Define system-specific variables.
15381 cygwin* | mingw* | pw32* | cegcc*)
15382 symcode='[ABCDGISTW]'
15385 if test "$host_cpu" = ia64; then
15386 symcode='[ABCDEGRST]'
15389 irix* | nonstopux*)
15390 symcode='[BCDEGRST]'
15393 symcode='[BCDEGQRST]'
15404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15412 # If we're using GNU nm, then use its standard symbol codes.
15413 case `$NM -V 2>&1` in
15414 *GNU* | *'with BFD'*)
15415 symcode='[ABCDGIRSTW]' ;;
15418 # Transform an extracted symbol line into a proper C declaration.
15419 # Some systems (esp. on ia64) link data and code symbols differently,
15420 # so use this general approach.
15421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15423 # Transform an extracted symbol line into symbol name and symbol address
15424 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15425 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'"
15427 # Handle CRLF in mingw tool chain
15431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15435 # Try without a prefix underscore, then with it.
15436 for ac_symprfx in "" "_
"; do
15438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15439 symxfrm="\\1 $ac_symprfx\\2 \\2"
15441 # Write the raw and C identifiers.
15442 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15443 # Fake it for dumpbin and say T for any non-static function
15444 # and D for any global variable.
15445 # Also find C++ and __fastcall symbols from MSVC++,
15446 # which start with @ or ?.
15447 lt_cv_sys_global_symbol_pipe="$AWK '"\
15448 " {last_section=section; section=\$ 3};"\
15449 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15450 " \$ 0!~/External *\|/{next};"\
15451 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15452 " {if(hide[section]) next};"\
15453 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15454 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15455 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15456 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15457 " ' prfx
=^
$ac_symprfx"
15459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15462 # Check to see that the pipe works correctly.
15466 cat > conftest.$ac_ext <<_LT_EOF
15471 void nm_test_func(void);
15472 void nm_test_func(void){}
15476 int main(){nm_test_var='a';nm_test_func();return(0);}
15479 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15480 (eval $ac_compile) 2>&5
15482 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15483 test $ac_status = 0; }; then
15484 # Now try to grab the symbols.
15486 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15489 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15490 test $ac_status = 0; } && test -s "$nlist"; then
15491 # Try sorting and uniquifying the output.
15492 if sort "$nlist" | uniq > "$nlist"T; then
15493 mv -f "$nlist"T "$nlist"
15498 # Make sure that we snagged all the symbols we need.
15499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15501 cat <<_LT_EOF > conftest.$ac_ext
15507 # Now generate the symbol file.
15508 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15510 cat <<_LT_EOF >> conftest.$ac_ext
15512 /* The mapping between symbol names and symbols. */
15517 lt__PROGRAM__LTX_preloaded_symbols[] =
15519 { "@PROGRAM@
", (void *) 0 },
15521 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15522 cat <<\_LT_EOF >> conftest.$ac_ext
15526 /* This works around a problem in FreeBSD linker */
15527 #ifdef FREEBSD_WORKAROUND
15528 static const void *lt_preloaded_setup() {
15529 return lt__PROGRAM__LTX_preloaded_symbols;
15537 # Now try linking the two files.
15538 mv conftest.$ac_objext conftstm.$ac_objext
15539 lt_save_LIBS="$LIBS"
15540 lt_save_CFLAGS="$CFLAGS"
15541 LIBS="conftstm.
$ac_objext"
15542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15543 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15544 (eval $ac_link) 2>&5
15546 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15547 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15550 LIBS="$lt_save_LIBS"
15551 CFLAGS="$lt_save_CFLAGS"
15553 echo "cannot
find nm_test_func
in $nlist" >&5
15556 echo "cannot
find nm_test_var
in $nlist" >&5
15559 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15562 echo "$progname: failed program was
:" >&5
15563 cat conftest.$ac_ext >&5
15565 rm -rf conftest* conftst*
15567 # Do not use the global_symbol_pipe unless it works.
15568 if test "$pipe_works" = yes; then
15571 lt_cv_sys_global_symbol_pipe=
15577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15578 lt_cv_sys_global_symbol_to_cdecl=
15580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15582 $as_echo "failed
" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15585 $as_echo "ok
" >&6; }
15609 # Check whether --enable-libtool-lock was given.
15610 if test "${enable_libtool_lock+set}" = set; then :
15611 enableval=$enable_libtool_lock;
15614 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15616 # Some flags need to be propagated to the compiler or linker for good
15620 # Find out which ABI we are using.
15621 echo 'int i;' > conftest.$ac_ext
15622 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15623 (eval $ac_compile) 2>&5
15625 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15626 test $ac_status = 0; }; then
15627 case `/usr/bin/file conftest.$ac_objext` in
15629 HPUX_IA64_MODE="32"
15632 HPUX_IA64_MODE="64"
15639 # Find out which ABI we are using.
15640 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15641 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15642 (eval $ac_compile) 2>&5
15644 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15645 test $ac_status = 0; }; then
15646 if test "$lt_cv_prog_gnu_ld" = yes; then
15647 case `/usr/bin/file conftest.$ac_objext` in
15649 LD="${LD-ld} -melf32bsmip"
15652 LD="${LD-ld} -melf32bmipn32"
15655 LD="${LD-ld} -melf64bmip"
15659 case `/usr/bin/file conftest.$ac_objext` in
15675 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15676 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15677 # Find out which ABI we are using.
15678 echo 'int i;' > conftest.$ac_ext
15679 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15680 (eval $ac_compile) 2>&5
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15683 test $ac_status = 0; }; then
15684 case `/usr/bin/file conftest.o` in
15687 x86_64-*kfreebsd*-gnu)
15688 LD="${LD-ld} -m elf_i386_fbsd
"
15691 case `/usr/bin/file conftest.o` in
15693 LD="${LD-ld} -m elf32_x86_64
"
15696 LD="${LD-ld} -m elf_i386
"
15700 powerpc64le-*linux*)
15701 LD="${LD-ld} -m elf32lppclinux
"
15704 LD="${LD-ld} -m elf32ppclinux
"
15707 LD="${LD-ld} -m elf_s390
"
15710 LD="${LD-ld} -m elf32_sparc
"
15716 x86_64-*kfreebsd*-gnu)
15717 LD="${LD-ld} -m elf_x86_64_fbsd
"
15720 LD="${LD-ld} -m elf_x86_64
"
15723 LD="${LD-ld} -m elf64lppc
"
15726 LD="${LD-ld} -m elf64ppc
"
15728 s390*-*linux*|s390*-*tpf*)
15729 LD="${LD-ld} -m elf64_s390
"
15732 LD="${LD-ld} -m elf64_sparc
"
15742 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15743 SAVE_CFLAGS="$CFLAGS"
15744 CFLAGS="$CFLAGS -belf"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15746 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15747 if ${lt_cv_cc_needs_belf+:} false; then :
15748 $as_echo_n "(cached
) " >&6
15751 ac_cpp='$CPP $CPPFLAGS'
15752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15767 if ac_fn_c_try_link "$LINENO"; then :
15768 lt_cv_cc_needs_belf=yes
15770 lt_cv_cc_needs_belf=no
15772 rm -f core conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
15775 ac_cpp='$CPP $CPPFLAGS'
15776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15782 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15785 CFLAGS="$SAVE_CFLAGS"
15789 # Find out which ABI we are using.
15790 echo 'int i;' > conftest.$ac_ext
15791 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15792 (eval $ac_compile) 2>&5
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15795 test $ac_status = 0; }; then
15796 case `/usr/bin/file conftest.o` in
15798 case $lt_cv_prog_gnu_ld in
15799 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15813 need_locks="$enable_libtool_lock"
15817 rhapsody* | darwin*)
15818 if test -n "$ac_tool_prefix"; then
15819 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15822 $as_echo_n "checking
for $ac_word...
" >&6; }
15823 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15824 $as_echo_n "(cached
) " >&6
15826 if test -n "$DSYMUTIL"; then
15827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 for as_dir in $PATH
15833 test -z "$as_dir" && as_dir=.
15834 for ac_exec_ext in '' $ac_executable_extensions; do
15835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15847 if test -n "$DSYMUTIL"; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15849 $as_echo "$DSYMUTIL" >&6; }
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15852 $as_echo "no
" >&6; }
15857 if test -z "$ac_cv_prog_DSYMUTIL"; then
15858 ac_ct_DSYMUTIL=$DSYMUTIL
15859 # Extract the first word of "dsymutil
", so it can be a program name with args.
15860 set dummy dsymutil; ac_word=$2
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15862 $as_echo_n "checking
for $ac_word...
" >&6; }
15863 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15864 $as_echo_n "(cached
) " >&6
15866 if test -n "$ac_ct_DSYMUTIL"; then
15867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870 for as_dir in $PATH
15873 test -z "$as_dir" && as_dir=.
15874 for ac_exec_ext in '' $ac_executable_extensions; do
15875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15887 if test -n "$ac_ct_DSYMUTIL"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15892 $as_echo "no
" >&6; }
15895 if test "x
$ac_ct_DSYMUTIL" = x; then
15898 case $cross_compiling:$ac_tool_warned in
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15902 ac_tool_warned=yes ;;
15904 DSYMUTIL=$ac_ct_DSYMUTIL
15907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15910 if test -n "$ac_tool_prefix"; then
15911 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15914 $as_echo_n "checking
for $ac_word...
" >&6; }
15915 if ${ac_cv_prog_NMEDIT+:} false; then :
15916 $as_echo_n "(cached
) " >&6
15918 if test -n "$NMEDIT"; then
15919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15922 for as_dir in $PATH
15925 test -z "$as_dir" && as_dir=.
15926 for ac_exec_ext in '' $ac_executable_extensions; do
15927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15938 NMEDIT=$ac_cv_prog_NMEDIT
15939 if test -n "$NMEDIT"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15941 $as_echo "$NMEDIT" >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15944 $as_echo "no
" >&6; }
15949 if test -z "$ac_cv_prog_NMEDIT"; then
15950 ac_ct_NMEDIT=$NMEDIT
15951 # Extract the first word of "nmedit
", so it can be a program name with args.
15952 set dummy nmedit; ac_word=$2
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15954 $as_echo_n "checking
for $ac_word...
" >&6; }
15955 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15956 $as_echo_n "(cached
) " >&6
15958 if test -n "$ac_ct_NMEDIT"; then
15959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962 for as_dir in $PATH
15965 test -z "$as_dir" && as_dir=.
15966 for ac_exec_ext in '' $ac_executable_extensions; do
15967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15968 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15979 if test -n "$ac_ct_NMEDIT"; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15981 $as_echo "$ac_ct_NMEDIT" >&6; }
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15984 $as_echo "no
" >&6; }
15987 if test "x
$ac_ct_NMEDIT" = x; then
15990 case $cross_compiling:$ac_tool_warned in
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15994 ac_tool_warned=yes ;;
15996 NMEDIT=$ac_ct_NMEDIT
15999 NMEDIT="$ac_cv_prog_NMEDIT"
16002 if test -n "$ac_tool_prefix"; then
16003 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
16004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16006 $as_echo_n "checking
for $ac_word...
" >&6; }
16007 if ${ac_cv_prog_LIPO+:} false; then :
16008 $as_echo_n "(cached
) " >&6
16010 if test -n "$LIPO"; then
16011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16014 for as_dir in $PATH
16017 test -z "$as_dir" && as_dir=.
16018 for ac_exec_ext in '' $ac_executable_extensions; do
16019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16030 LIPO=$ac_cv_prog_LIPO
16031 if test -n "$LIPO"; then
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
16033 $as_echo "$LIPO" >&6; }
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16036 $as_echo "no
" >&6; }
16041 if test -z "$ac_cv_prog_LIPO"; then
16043 # Extract the first word of "lipo
", so it can be a program name with args.
16044 set dummy lipo; ac_word=$2
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16046 $as_echo_n "checking
for $ac_word...
" >&6; }
16047 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16048 $as_echo_n "(cached
) " >&6
16050 if test -n "$ac_ct_LIPO"; then
16051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054 for as_dir in $PATH
16057 test -z "$as_dir" && as_dir=.
16058 for ac_exec_ext in '' $ac_executable_extensions; do
16059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16060 ac_cv_prog_ac_ct_LIPO="lipo
"
16061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16071 if test -n "$ac_ct_LIPO"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
16073 $as_echo "$ac_ct_LIPO" >&6; }
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16076 $as_echo "no
" >&6; }
16079 if test "x
$ac_ct_LIPO" = x; then
16082 case $cross_compiling:$ac_tool_warned in
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16086 ac_tool_warned=yes ;;
16091 LIPO="$ac_cv_prog_LIPO"
16094 if test -n "$ac_tool_prefix"; then
16095 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16096 set dummy ${ac_tool_prefix}otool; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16098 $as_echo_n "checking
for $ac_word...
" >&6; }
16099 if ${ac_cv_prog_OTOOL+:} false; then :
16100 $as_echo_n "(cached
) " >&6
16102 if test -n "$OTOOL"; then
16103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16122 OTOOL=$ac_cv_prog_OTOOL
16123 if test -n "$OTOOL"; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16125 $as_echo "$OTOOL" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16128 $as_echo "no
" >&6; }
16133 if test -z "$ac_cv_prog_OTOOL"; then
16135 # Extract the first word of "otool
", so it can be a program name with args.
16136 set dummy otool; ac_word=$2
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16138 $as_echo_n "checking
for $ac_word...
" >&6; }
16139 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16140 $as_echo_n "(cached
) " >&6
16142 if test -n "$ac_ct_OTOOL"; then
16143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16146 for as_dir in $PATH
16149 test -z "$as_dir" && as_dir=.
16150 for ac_exec_ext in '' $ac_executable_extensions; do
16151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16152 ac_cv_prog_ac_ct_OTOOL="otool
"
16153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16163 if test -n "$ac_ct_OTOOL"; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16165 $as_echo "$ac_ct_OTOOL" >&6; }
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16168 $as_echo "no
" >&6; }
16171 if test "x
$ac_ct_OTOOL" = x; then
16174 case $cross_compiling:$ac_tool_warned in
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16178 ac_tool_warned=yes ;;
16183 OTOOL="$ac_cv_prog_OTOOL"
16186 if test -n "$ac_tool_prefix"; then
16187 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16190 $as_echo_n "checking
for $ac_word...
" >&6; }
16191 if ${ac_cv_prog_OTOOL64+:} false; then :
16192 $as_echo_n "(cached
) " >&6
16194 if test -n "$OTOOL64"; then
16195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16201 test -z "$as_dir" && as_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
16203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16214 OTOOL64=$ac_cv_prog_OTOOL64
16215 if test -n "$OTOOL64"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16217 $as_echo "$OTOOL64" >&6; }
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16220 $as_echo "no
" >&6; }
16225 if test -z "$ac_cv_prog_OTOOL64"; then
16226 ac_ct_OTOOL64=$OTOOL64
16227 # Extract the first word of "otool64
", so it can be a program name with args.
16228 set dummy otool64; ac_word=$2
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16230 $as_echo_n "checking
for $ac_word...
" >&6; }
16231 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16232 $as_echo_n "(cached
) " >&6
16234 if test -n "$ac_ct_OTOOL64"; then
16235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238 for as_dir in $PATH
16241 test -z "$as_dir" && as_dir=.
16242 for ac_exec_ext in '' $ac_executable_extensions; do
16243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16244 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16255 if test -n "$ac_ct_OTOOL64"; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16257 $as_echo "$ac_ct_OTOOL64" >&6; }
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16260 $as_echo "no
" >&6; }
16263 if test "x
$ac_ct_OTOOL64" = x; then
16266 case $cross_compiling:$ac_tool_warned in
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16270 ac_tool_warned=yes ;;
16272 OTOOL64=$ac_ct_OTOOL64
16275 OTOOL64="$ac_cv_prog_OTOOL64"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16305 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16306 if ${lt_cv_apple_cc_single_mod+:} false; then :
16307 $as_echo_n "(cached
) " >&6
16309 lt_cv_apple_cc_single_mod=no
16310 if test -z "${LT_MULTI_MODULE}"; then
16311 # By default we will add the -single_module flag. You can override
16312 # by either setting the environment variable LT_MULTI_MODULE
16313 # non-empty at configure time, or by adding -multi_module to the
16315 rm -rf libconftest.dylib*
16316 echo "int foo
(void
){return 1;}" > conftest.c
16317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16318 -dynamiclib -Wl,-single_module conftest.c
" >&5
16319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16322 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16323 lt_cv_apple_cc_single_mod=yes
16325 cat conftest.err >&5
16327 rm -rf libconftest.dylib*
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16332 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16334 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16335 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16336 $as_echo_n "(cached
) " >&6
16338 lt_cv_ld_exported_symbols_list=no
16339 save_LDFLAGS=$LDFLAGS
16340 echo "_main
" > conftest.sym
16341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16353 if ac_fn_c_try_link "$LINENO"; then :
16354 lt_cv_ld_exported_symbols_list=yes
16356 lt_cv_ld_exported_symbols_list=no
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LDFLAGS="$save_LDFLAGS"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16366 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16367 if ${lt_cv_ld_force_load+:} false; then :
16368 $as_echo_n "(cached
) " >&6
16370 lt_cv_ld_force_load=no
16371 cat > conftest.c << _LT_EOF
16372 int forced_loaded() { return 2;}
16374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16376 echo "$AR cru libconftest.a conftest.o
" >&5
16377 $AR cru libconftest.a conftest.o 2>&5
16378 cat > conftest.c << _LT_EOF
16379 int main() { return 0;}
16381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16385 lt_cv_ld_force_load=yes
16387 cat conftest.err >&5
16389 rm -f conftest.err libconftest.a conftest conftest.c
16390 rm -rf conftest.dSYM
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16394 $as_echo "$lt_cv_ld_force_load" >&6; }
16395 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16396 # build without first building modern cctools / linker.
16397 case $host_cpu-$host_os in
16398 *-rhapsody* | *-darwin1.[012])
16399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16403 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16404 # deployment target is forced to an earlier version.
16405 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16406 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
16409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16417 _lt_dar_single_mod='$single_module'
16419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16424 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16425 _lt_dsymutil='~$DSYMUTIL $lib || :'
16433 for ac_header in dlfcn.h
16435 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16436 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16437 cat >>confdefs.h <<_ACEOF
16438 #define HAVE_DLFCN_H 1
16455 enable_win32_dll=no
16458 # Check whether --enable-shared was given.
16459 if test "${enable_shared+set}" = set; then :
16460 enableval=$enable_shared; p=${PACKAGE-default}
16462 yes) enable_shared=yes ;;
16463 no) enable_shared=no ;;
16466 # Look at the argument we got. We use all the common list separators.
16467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16468 for pkg in $enableval; do
16470 if test "X
$pkg" = "X
$p"; then
16489 # Check whether --enable-static was given.
16490 if test "${enable_static+set}" = set; then :
16491 enableval=$enable_static; p=${PACKAGE-default}
16493 yes) enable_static=yes ;;
16494 no) enable_static=no ;;
16497 # Look at the argument we got. We use all the common list separators.
16498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16499 for pkg in $enableval; do
16501 if test "X
$pkg" = "X
$p"; then
16521 # Check whether --with-pic was given.
16522 if test "${with_pic+set}" = set; then :
16523 withval=$with_pic; pic_mode="$withval"
16529 test -z "$pic_mode" && pic_mode=default
16537 # Check whether --enable-fast-install was given.
16538 if test "${enable_fast_install+set}" = set; then :
16539 enableval=$enable_fast_install; p=${PACKAGE-default}
16541 yes) enable_fast_install=yes ;;
16542 no) enable_fast_install=no ;;
16544 enable_fast_install=no
16545 # Look at the argument we got. We use all the common list separators.
16546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16547 for pkg in $enableval; do
16549 if test "X
$pkg" = "X
$p"; then
16550 enable_fast_install=yes
16557 enable_fast_install=yes
16570 # This can be used to rebuild libtool when needed
16571 LIBTOOL_DEPS="$ltmain"
16573 # Always use our own libtool.
16574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16601 test -z "$LN_S" && LN_S="ln -s"
16616 if test -n "${ZSH_VERSION+set}" ; then
16617 setopt NO_GLOB_SUBST
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16621 $as_echo_n "checking
for objdir...
" >&6; }
16622 if ${lt_cv_objdir+:} false; then :
16623 $as_echo_n "(cached
) " >&6
16625 rm -f .libs 2>/dev/null
16626 mkdir .libs 2>/dev/null
16627 if test -d .libs; then
16630 # MS-DOS does not allow filenames that begin with a dot.
16633 rmdir .libs 2>/dev/null
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16636 $as_echo "$lt_cv_objdir" >&6; }
16637 objdir=$lt_cv_objdir
16643 cat >>confdefs.h <<_ACEOF
16644 #define LT_OBJDIR "$lt_cv_objdir/"
16652 # AIX sometimes has problems with the GCC collect2 program. For some
16653 # reason, if we set the COLLECT_NAMES environment variable, the problems
16654 # vanish in a puff of smoke.
16655 if test "X
${COLLECT_NAMES+set}" != Xset; then
16657 export COLLECT_NAMES
16662 # Global variables:
16664 can_build_shared=yes
16666 # All known linkers require a `.a' archive for static linking (except MSVC,
16667 # which needs '.lib').
16670 with_gnu_ld="$lt_cv_prog_gnu_ld"
16673 old_CFLAGS="$CFLAGS"
16675 # Set sane defaults for various variables
16676 test -z "$CC" && CC=cc
16677 test -z "$LTCC" && LTCC=$CC
16678 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16679 test -z "$LD" && LD=ld
16680 test -z "$ac_objext" && ac_objext=o
16682 for cc_temp in $compiler""; do
16684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16690 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16693 # Only perform the check for file, if the check method requires it
16694 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16695 case $deplibs_check_method in
16697 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16699 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16700 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16701 $as_echo_n "(cached
) " >&6
16705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16708 lt_save_MAGIC_CMD="$MAGIC_CMD"
16709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16710 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16711 for ac_dir in $ac_dummy; do
16713 test -z "$ac_dir" && ac_dir=.
16714 if test -f $ac_dir/${ac_tool_prefix}file; then
16715 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16716 if test -n "$file_magic_test_file"; then
16717 case $deplibs_check_method in
16719 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16722 $EGREP "$file_magic_regex" > /dev/null; then
16727 *** Warning: the command libtool uses to detect shared libraries,
16728 *** $file_magic_cmd, produces output that libtool cannot recognize.
16729 *** The result is that libtool may fail to recognize shared libraries
16730 *** as such. This will affect the creation of libtool libraries that
16731 *** depend on shared libraries, but programs linked with such libtool
16732 *** libraries will work regardless of this problem. Nevertheless, you
16733 *** may want to report the problem to your system manager and/or to
16734 *** bug-libtool@gnu.org
16744 MAGIC_CMD="$lt_save_MAGIC_CMD"
16749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16750 if test -n "$MAGIC_CMD"; then
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16752 $as_echo "$MAGIC_CMD" >&6; }
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16755 $as_echo "no
" >&6; }
16762 if test -z "$lt_cv_path_MAGIC_CMD"; then
16763 if test -n "$ac_tool_prefix"; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16765 $as_echo_n "checking
for file...
" >&6; }
16766 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16767 $as_echo_n "(cached
) " >&6
16771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16774 lt_save_MAGIC_CMD="$MAGIC_CMD"
16775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16776 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16777 for ac_dir in $ac_dummy; do
16779 test -z "$ac_dir" && ac_dir=.
16780 if test -f $ac_dir/file; then
16781 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16782 if test -n "$file_magic_test_file"; then
16783 case $deplibs_check_method in
16785 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16788 $EGREP "$file_magic_regex" > /dev/null; then
16793 *** Warning: the command libtool uses to detect shared libraries,
16794 *** $file_magic_cmd, produces output that libtool cannot recognize.
16795 *** The result is that libtool may fail to recognize shared libraries
16796 *** as such. This will affect the creation of libtool libraries that
16797 *** depend on shared libraries, but programs linked with such libtool
16798 *** libraries will work regardless of this problem. Nevertheless, you
16799 *** may want to report the problem to your system manager and/or to
16800 *** bug-libtool@gnu.org
16810 MAGIC_CMD="$lt_save_MAGIC_CMD"
16815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16816 if test -n "$MAGIC_CMD"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16818 $as_echo "$MAGIC_CMD" >&6; }
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16821 $as_echo "no
" >&6; }
16834 # Use C for the default configuration in the libtool script
16838 ac_cpp='$CPP $CPPFLAGS'
16839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16844 # Source file extension for C test sources.
16847 # Object file extension for compiled C test sources.
16851 # Code to be used in simple compile tests
16852 lt_simple_compile_test_code="int some_variable
= 0;"
16854 # Code to be used in simple link tests
16855 lt_simple_link_test_code='int main(){return(0);}'
16863 # If no C compiler was specified, use CC.
16866 # If no C compiler flags were specified, use CFLAGS.
16867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16869 # Allow CC to be a program name with arguments.
16872 # Save the default compiler, since it gets overwritten when the other
16873 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16874 compiler_DEFAULT=$CC
16876 # save warnings/boilerplate of simple test code
16877 ac_outfile=conftest.$ac_objext
16878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16880 _lt_compiler_boilerplate=`cat conftest.err`
16883 ac_outfile=conftest.$ac_objext
16884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16886 _lt_linker_boilerplate=`cat conftest.err`
16891 ## There is no encapsulation within the following macros, do not change
16892 ## the running order or otherwise move them around unless you know exactly
16893 ## what you are doing...
16894 if test -n "$compiler"; then
16896 lt_prog_compiler_no_builtin_flag=
16898 if test "$GCC" = yes; then
16899 case $cc_basename in
16901 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16907 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16908 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16909 $as_echo_n "(cached
) " >&6
16911 lt_cv_prog_compiler_rtti_exceptions=no
16912 ac_outfile=conftest.$ac_objext
16913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16914 lt_compiler_flag="-fno-rtti -fno-exceptions"
16915 # Insert the option either (1) after the last *FLAGS variable, or
16916 # (2) before a word containing "conftest.
", or (3) at the end.
16917 # Note that $ac_compile itself does not contain backslashes and begins
16918 # with a dollar sign (not a hyphen), so the echo should work correctly.
16919 # The option is referenced via a variable to avoid confusing sed.
16920 lt_compile=`echo "$ac_compile" | $SED \
16921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923 -e 's:$: $lt_compiler_flag:'`
16924 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16925 (eval "$lt_compile" 2>conftest.err)
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16929 if (exit $ac_status) && test -s "$ac_outfile"; then
16930 # The compiler can only warn and ignore the option if not recognized
16931 # So say no if there are warnings other than the usual output.
16932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935 lt_cv_prog_compiler_rtti_exceptions=yes
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16942 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16944 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16945 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16957 lt_prog_compiler_wl=
16958 lt_prog_compiler_pic=
16959 lt_prog_compiler_static=
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16962 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16964 if test "$GCC" = yes; then
16965 lt_prog_compiler_wl='-Wl,'
16966 lt_prog_compiler_static='-static'
16970 # All AIX code is PIC.
16971 if test "$host_cpu" = ia64; then
16972 # AIX 5 now supports IA64 processor
16973 lt_prog_compiler_static='-Bstatic'
16975 lt_prog_compiler_pic='-fPIC'
16981 # see comment about AmigaOS4 .so support
16982 lt_prog_compiler_pic='-fPIC'
16985 # FIXME: we need at least 68020 code to build shared libraries, but
16986 # adding the `-m68020' flag to GCC prevents building anything better,
16988 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16994 # PIC is the default for these OSes.
16997 mingw* | cygwin* | pw32* | os2* | cegcc*)
16998 # This hack is so that the source file can tell whether it is being
16999 # built for inclusion in a dll (and should export symbols for example).
17000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17001 # (--disable-auto-import) libraries
17002 lt_prog_compiler_pic='-DDLL_EXPORT'
17005 darwin* | rhapsody*)
17006 # PIC is the default on this platform
17007 # Common symbols not allowed in MH_DYLIB files
17008 lt_prog_compiler_pic='-fno-common'
17012 # PIC is the default for Haiku.
17013 # The "-static" flag exists, but is broken.
17014 lt_prog_compiler_static=
17018 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17019 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17020 # sets the default TLS model and affects inlining.
17026 lt_prog_compiler_pic='-fPIC'
17032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17033 # Instead, we relocate shared libraries at runtime.
17037 # Just because we use GCC doesn't mean we suddenly get shared libraries
17038 # on systems that don't support them.
17039 lt_prog_compiler_can_build_shared=no
17044 # QNX uses GNU C++, but need to define -shared option too, otherwise
17045 # it will coredump.
17046 lt_prog_compiler_pic='-fPIC -shared'
17050 if test -d /usr/nec; then
17051 lt_prog_compiler_pic=-Kconform_pic
17056 lt_prog_compiler_pic='-fPIC'
17060 case $cc_basename in
17061 nvcc*) # Cuda Compiler Driver 2.2
17062 lt_prog_compiler_wl='-Xlinker '
17063 lt_prog_compiler_pic='-Xcompiler -fPIC'
17067 # PORTME Check for flag to pass linker flags through the system compiler.
17070 lt_prog_compiler_wl='-Wl,'
17071 if test "$host_cpu" = ia64; then
17072 # AIX 5 now supports IA64 processor
17073 lt_prog_compiler_static='-Bstatic'
17075 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17079 mingw* | cygwin* | pw32* | os2* | cegcc*)
17080 # This hack is so that the source file can tell whether it is being
17081 # built for inclusion in a dll (and should export symbols for example).
17082 lt_prog_compiler_pic='-DDLL_EXPORT'
17085 hpux9* | hpux10* | hpux11*)
17086 lt_prog_compiler_wl='-Wl,'
17087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17088 # not for PA HP-UX.
17094 lt_prog_compiler_pic='+Z'
17097 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17098 lt_prog_compiler_static='${wl}-a ${wl}archive'
17101 irix5* | irix6* | nonstopux*)
17102 lt_prog_compiler_wl='-Wl,'
17103 # PIC (with -KPIC) is the default.
17104 lt_prog_compiler_static='-non_shared'
17107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17108 case $cc_basename in
17109 # old Intel for x86_64 which still supported -KPIC.
17111 lt_prog_compiler_wl='-Wl,'
17112 lt_prog_compiler_pic='-KPIC'
17113 lt_prog_compiler_static='-static'
17115 # icc used to be incompatible with GCC.
17116 # ICC 10 doesn't accept -KPIC any more.
17118 lt_prog_compiler_wl='-Wl,'
17119 lt_prog_compiler_pic='-fPIC'
17120 lt_prog_compiler_static='-static'
17122 # Lahey Fortran 8.1.
17124 lt_prog_compiler_wl='-Wl,'
17125 lt_prog_compiler_pic='--shared'
17126 lt_prog_compiler_static='--static'
17128 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17129 # Portland Group compilers (*not* the Pentium gcc compiler,
17130 # which looks to be a dead project)
17131 lt_prog_compiler_wl='-Wl,'
17132 lt_prog_compiler_pic='-fpic'
17133 lt_prog_compiler_static='-Bstatic'
17136 lt_prog_compiler_wl='-Wl,'
17137 # All Alpha code is PIC.
17138 lt_prog_compiler_static='-non_shared'
17140 xl* | bgxl* | bgf* | mpixl*)
17141 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17142 lt_prog_compiler_wl='-Wl,'
17143 lt_prog_compiler_pic='-qpic'
17144 lt_prog_compiler_static='-qstaticlink'
17147 case `$CC -V 2>&1 | sed 5q` in
17148 *Sun\ F* | *Sun*Fortran*)
17149 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17150 lt_prog_compiler_pic='-KPIC'
17151 lt_prog_compiler_static='-Bstatic'
17152 lt_prog_compiler_wl=''
17156 lt_prog_compiler_pic='-KPIC'
17157 lt_prog_compiler_static='-Bstatic'
17158 lt_prog_compiler_wl='-Wl,'
17166 lt_prog_compiler_pic='-KPIC'
17167 lt_prog_compiler_static='-Bstatic'
17171 # QNX uses GNU C++, but need to define -shared option too, otherwise
17172 # it will coredump.
17173 lt_prog_compiler_pic='-fPIC -shared'
17176 osf3* | osf4* | osf5*)
17177 lt_prog_compiler_wl='-Wl,'
17178 # All OSF/1 code is PIC.
17179 lt_prog_compiler_static='-non_shared'
17183 lt_prog_compiler_static='-non_shared'
17187 lt_prog_compiler_pic='-KPIC'
17188 lt_prog_compiler_static='-Bstatic'
17189 case $cc_basename in
17190 f77* | f90* | f95*)
17191 lt_prog_compiler_wl='-Qoption ld ';;
17193 lt_prog_compiler_wl='-Wl,';;
17198 lt_prog_compiler_wl='-Qoption ld '
17199 lt_prog_compiler_pic='-PIC'
17200 lt_prog_compiler_static='-Bstatic'
17203 sysv4 | sysv4.2uw2* | sysv4.3*)
17204 lt_prog_compiler_wl='-Wl,'
17205 lt_prog_compiler_pic='-KPIC'
17206 lt_prog_compiler_static='-Bstatic'
17210 if test -d /usr/nec ;then
17211 lt_prog_compiler_pic='-Kconform_pic'
17212 lt_prog_compiler_static='-Bstatic'
17216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17217 lt_prog_compiler_wl='-Wl,'
17218 lt_prog_compiler_pic='-KPIC'
17219 lt_prog_compiler_static='-Bstatic'
17223 lt_prog_compiler_wl='-Wl,'
17224 lt_prog_compiler_can_build_shared=no
17228 lt_prog_compiler_pic='-pic'
17229 lt_prog_compiler_static='-Bstatic'
17233 lt_prog_compiler_can_build_shared=no
17239 # For platforms which do not support PIC, -DPIC is meaningless:
17241 lt_prog_compiler_pic=
17244 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17248 $as_echo "$lt_prog_compiler_pic" >&6; }
17256 # Check to make sure the PIC flag actually works.
17258 if test -n "$lt_prog_compiler_pic"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17260 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17261 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17262 $as_echo_n "(cached
) " >&6
17264 lt_cv_prog_compiler_pic_works=no
17265 ac_outfile=conftest.$ac_objext
17266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.
", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 # The option is referenced via a variable to avoid confusing sed.
17273 lt_compile=`echo "$ac_compile" | $SED \
17274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276 -e 's:$: $lt_compiler_flag:'`
17277 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17278 (eval "$lt_compile" 2>conftest.err)
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17282 if (exit $ac_status) && test -s "$ac_outfile"; then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings other than the usual output.
17285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_pic_works=yes
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17295 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17297 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17298 case $lt_prog_compiler_pic in
17300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17303 lt_prog_compiler_pic=
17304 lt_prog_compiler_can_build_shared=no
17315 # Check to make sure the static flag actually works.
17317 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17319 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17320 if ${lt_cv_prog_compiler_static_works+:} false; then :
17321 $as_echo_n "(cached
) " >&6
17323 lt_cv_prog_compiler_static_works=no
17324 save_LDFLAGS="$LDFLAGS"
17325 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17326 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17327 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17328 # The linker can only warn and ignore the option if not recognized
17329 # So say no if there are warnings
17330 if test -s conftest.err; then
17331 # Append any errors to the config.log.
17332 cat conftest.err 1>&5
17333 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17335 if diff conftest.exp conftest.er2 >/dev/null; then
17336 lt_cv_prog_compiler_static_works=yes
17339 lt_cv_prog_compiler_static_works=yes
17343 LDFLAGS="$save_LDFLAGS"
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17347 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17349 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17352 lt_prog_compiler_static=
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17362 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17363 if ${lt_cv_prog_compiler_c_o+:} false; then :
17364 $as_echo_n "(cached
) " >&6
17366 lt_cv_prog_compiler_c_o=no
17367 $RM -r conftest 2>/dev/null
17371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17373 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17374 # Insert the option either (1) after the last *FLAGS variable, or
17375 # (2) before a word containing "conftest.
", or (3) at the end.
17376 # Note that $ac_compile itself does not contain backslashes and begins
17377 # with a dollar sign (not a hyphen), so the echo should work correctly.
17378 lt_compile=`echo "$ac_compile" | $SED \
17379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17381 -e 's:$: $lt_compiler_flag:'`
17382 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17383 (eval "$lt_compile" 2>out/conftest.err)
17385 cat out/conftest.err >&5
17386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17389 # The compiler can only warn and ignore the option if not recognized
17390 # So say no if there are warnings
17391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17394 lt_cv_prog_compiler_c_o=yes
17399 # SGI C++ compiler will create directory out/ii_files/ for
17400 # template instantiation
17401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17402 $RM out/* && rmdir out
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17409 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17417 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17418 if ${lt_cv_prog_compiler_c_o+:} false; then :
17419 $as_echo_n "(cached
) " >&6
17421 lt_cv_prog_compiler_c_o=no
17422 $RM -r conftest 2>/dev/null
17426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17428 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17429 # Insert the option either (1) after the last *FLAGS variable, or
17430 # (2) before a word containing "conftest.
", or (3) at the end.
17431 # Note that $ac_compile itself does not contain backslashes and begins
17432 # with a dollar sign (not a hyphen), so the echo should work correctly.
17433 lt_compile=`echo "$ac_compile" | $SED \
17434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17436 -e 's:$: $lt_compiler_flag:'`
17437 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17438 (eval "$lt_compile" 2>out/conftest.err)
17440 cat out/conftest.err >&5
17441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17444 # The compiler can only warn and ignore the option if not recognized
17445 # So say no if there are warnings
17446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17449 lt_cv_prog_compiler_c_o=yes
17454 # SGI C++ compiler will create directory out/ii_files/ for
17455 # template instantiation
17456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17457 $RM out/* && rmdir out
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17469 hard_links="nottested
"
17470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17471 # do not overwrite the value of need_locks provided by the user
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17473 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17478 ln conftest.a conftest.b 2>&5 || hard_links=no
17479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17481 $as_echo "$hard_links" >&6; }
17482 if test "$hard_links" = no; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17484 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17497 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17500 allow_undefined_flag=
17501 always_export_symbols=no
17503 archive_expsym_cmds=
17504 compiler_needs_object=no
17505 enable_shared_with_static_runtimes=no
17506 export_dynamic_flag_spec=
17507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17508 hardcode_automatic=no
17510 hardcode_direct_absolute=no
17511 hardcode_libdir_flag_spec=
17512 hardcode_libdir_flag_spec_ld=
17513 hardcode_libdir_separator=
17514 hardcode_minus_L=no
17515 hardcode_shlibpath_var=unsupported
17517 link_all_deplibs=unknown
17519 module_expsym_cmds=
17520 old_archive_from_new_cmds=
17521 old_archive_from_expsyms_cmds=
17522 thread_safe_flag_spec=
17523 whole_archive_flag_spec=
17524 # include_expsyms should be a list of space-separated symbols to be *always*
17525 # included in the symbol list
17527 # exclude_expsyms can be an extended regexp of symbols to exclude
17528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17530 # as well as any symbol that contains `d'.
17531 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17533 # platforms (ab)use it in PIC code, but their linkers get confused if
17534 # the symbol is explicitly referenced. Since portable code cannot
17535 # rely on this symbol name, it's probably fine to never include it in
17536 # preloaded symbol tables.
17537 # Exclude shared library initialization/finalization symbols.
17538 extract_expsyms_cmds=
17541 cygwin* | mingw* | pw32* | cegcc*)
17542 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17543 # When not using gcc, we currently assume that we are using
17544 # Microsoft Visual C++.
17545 if test "$GCC" != yes; then
17550 # we just hope/assume this is gcc and not c89 (= MSVC++)
17560 # On some targets, GNU ld is compatible enough with the native linker
17561 # that we're better off using the native interface for both.
17562 lt_use_gnu_ld_interface=no
17563 if test "$with_gnu_ld" = yes; then
17566 # The AIX port of GNU ld has always aspired to compatibility
17567 # with the native linker. However, as the warning in the GNU ld
17568 # block says, versions before 2.19.5* couldn't really create working
17569 # shared libraries, regardless of the interface used.
17570 case `$LD -v 2>&1` in
17571 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17572 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17573 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17575 lt_use_gnu_ld_interface=yes
17580 lt_use_gnu_ld_interface=yes
17585 if test "$lt_use_gnu_ld_interface" = yes; then
17586 # If archive_cmds runs LD, not CC, wlarc should be empty
17589 # Set some defaults for GNU ld with shared library support. These
17590 # are reset later if shared libraries are not supported. Putting them
17591 # here allows them to be overridden if necessary.
17592 runpath_var=LD_RUN_PATH
17593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17594 export_dynamic_flag_spec='${wl}--export-dynamic'
17595 # ancient GNU ld didn't support --whole-archive et. al.
17596 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17597 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17599 whole_archive_flag_spec=
17601 supports_anon_versioning=no
17602 case `$LD -v 2>&1` in
17603 *GNU\ gold*) supports_anon_versioning=yes ;;
17604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17607 *\ 2.11.*) ;; # other 2.11 versions
17608 *) supports_anon_versioning=yes ;;
17611 # See if GNU ld supports shared libraries.
17614 # On AIX/PPC, the GNU linker is very broken
17615 if test "$host_cpu" != ia64; then
17619 *** Warning: the GNU linker, at least up to release 2.19, is reported
17620 *** to be unable to reliably create shared libraries on AIX.
17621 *** Therefore, libtool is disabling shared libraries support. If you
17622 *** really care for shared libraries, you may want to install binutils
17623 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17624 *** You will then need to restart the configuration process.
17633 # see comment about AmigaOS4 .so support
17634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17635 archive_expsym_cmds=''
17638 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)'
17639 hardcode_libdir_flag_spec
='-L$libdir'
17640 hardcode_minus_L
=yes
17646 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17647 allow_undefined_flag
=unsupported
17648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17649 # support --undefined. This deserves some investigation. FIXME
17650 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17656 cygwin
* | mingw
* | pw32
* | cegcc
*)
17657 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17658 # as there is no search path for DLLs.
17659 hardcode_libdir_flag_spec
='-L$libdir'
17660 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17661 allow_undefined_flag
=unsupported
17662 always_export_symbols
=no
17663 enable_shared_with_static_runtimes
=yes
17664 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17666 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17667 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17668 # If the export-symbols file already is a .def file (1st line
17669 # is EXPORTS), use it as is; otherwise, prepend...
17670 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17671 cp $export_symbols $output_objdir/$soname.def;
17673 echo EXPORTS > $output_objdir/$soname.def;
17674 cat $export_symbols >> $output_objdir/$soname.def;
17676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17683 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17684 link_all_deplibs
=yes
17689 hardcode_shlibpath_var
=no
17690 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17691 export_dynamic_flag_spec
='${wl}-E'
17692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17693 # Instead, shared libraries are loaded at an image base (0x10000000 by
17694 # default) and relocated if they conflict, which is a slow very memory
17695 # consuming and fragmenting process. To avoid this, we pick a random,
17696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17698 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17699 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'
17702 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17704 if test "$host_os" = linux-dietlibc
; then
17705 case $cc_basename in
17706 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17709 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17710 && test "$tmp_diet" = no
17712 tmp_addflag
=' $pic_flag'
17713 tmp_sharedflag
='-shared'
17714 case $cc_basename,$host_cpu in
17715 pgcc
*) # Portland Group C compiler
17716 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'
17717 tmp_addflag
=' $pic_flag'
17719 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17720 # Portland Group f77 and f90 compilers
17721 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'
17722 tmp_addflag
=' $pic_flag -Mnomain' ;;
17723 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17724 tmp_addflag
=' -i_dynamic' ;;
17725 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17726 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17727 ifc
* | ifort
*) # Intel Fortran compiler
17728 tmp_addflag
=' -nofor_main' ;;
17729 lf95
*) # Lahey Fortran 8.1
17730 whole_archive_flag_spec
=
17731 tmp_sharedflag
='--shared' ;;
17732 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17733 tmp_sharedflag
='-qmkshrobj'
17735 nvcc
*) # Cuda Compiler Driver 2.2
17736 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'
17737 compiler_needs_object
=yes
17740 case `$CC -V 2>&1 | sed 5q` in
17741 *Sun\ C
*) # Sun C 5.9
17742 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'
17743 compiler_needs_object
=yes
17744 tmp_sharedflag
='-G' ;;
17745 *Sun\ F
*) # Sun Fortran 8.3
17746 tmp_sharedflag
='-G' ;;
17748 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17750 if test "x$supports_anon_versioning" = xyes
; then
17751 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17753 echo "local: *; };" >> $output_objdir/$libname.ver~
17754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17757 case $cc_basename in
17758 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17759 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17760 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17761 hardcode_libdir_flag_spec
=
17762 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17763 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17764 if test "x$supports_anon_versioning" = xyes
; then
17765 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17767 echo "local: *; };" >> $output_objdir/$libname.ver~
17768 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17778 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17779 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17782 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17783 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17788 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17793 *** create shared libraries on Solaris systems. Therefore, libtool
17794 *** is disabling shared libraries support. We urge you to upgrade GNU
17795 *** binutils to release 2.9.1 or newer. Another option is to modify
17796 *** your PATH or compiler configuration so that the native linker is
17797 *** used, and then restart.
17800 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17801 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17808 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17809 case `$LD -v 2>&1` in
17810 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17815 *** reliably create shared libraries on SCO systems. Therefore, libtool
17816 *** is disabling shared libraries support. We urge you to upgrade GNU
17817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17818 *** your PATH or compiler configuration so that the native linker is
17819 *** used, and then restart.
17824 # For security reasons, it is highly recommended that you always
17825 # use absolute paths for naming shared libraries, and exclude the
17826 # DT_RUNPATH tag from executables and libraries. But doing so
17827 # requires that you compile everything twice, which is a pain.
17828 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17829 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17830 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17831 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17840 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17842 hardcode_direct
=yes
17843 hardcode_shlibpath_var
=no
17847 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17849 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17856 if test "$ld_shlibs" = no
; then
17858 hardcode_libdir_flag_spec
=
17859 export_dynamic_flag_spec
=
17860 whole_archive_flag_spec
=
17863 # PORTME fill in a description of your system's linker (not GNU ld)
17866 allow_undefined_flag
=unsupported
17867 always_export_symbols
=yes
17868 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'
17869 # Note: this linker hardcodes the directories in LIBPATH if there
17870 # are no directories specified by -L.
17871 hardcode_minus_L
=yes
17872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17873 # Neither direct hardcoding nor static linking is supported with a
17875 hardcode_direct
=unsupported
17880 if test "$host_cpu" = ia64
; then
17881 # On IA64, the linker does run time linking by default, so we don't
17882 # have to do anything special.
17883 aix_use_runtimelinking
=no
17884 exp_sym_flag
='-Bexport'
17887 # If we're using GNU nm, then we don't want the "-C" option.
17888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17889 # Also, AIX nm treats weak defined symbols like other global
17890 # defined symbols, whereas GNU nm marks them as "W".
17891 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17892 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'
17894 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'
17896 aix_use_runtimelinking
=no
17898 # Test if we are trying to use run time linking or normal
17899 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17900 # need to do runtime linking.
17901 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17902 for ld_flag
in $LDFLAGS; do
17903 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17904 aix_use_runtimelinking
=yes
17911 exp_sym_flag
='-bexport'
17912 no_entry_flag
='-bnoentry'
17915 # When large executables or shared objects are built, AIX ld can
17916 # have problems creating the table of contents. If linking a library
17917 # or program results in "error TOC overflow" add -mminimal-toc to
17918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17922 hardcode_direct
=yes
17923 hardcode_direct_absolute
=yes
17924 hardcode_libdir_separator
=':'
17925 link_all_deplibs
=yes
17926 file_list_spec
='${wl}-f,'
17928 if test "$GCC" = yes; then
17929 case $host_os in aix4.
[012]|aix4.
[012].
*)
17930 # We only want to do this on AIX 4.2 and lower, the check
17931 # below for broken collect2 doesn't work under 4.3+
17932 collect2name
=`${CC} -print-prog-name=collect2`
17933 if test -f "$collect2name" &&
17934 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17936 # We have reworked collect2
17939 # We have old collect2
17940 hardcode_direct
=unsupported
17941 # It fails to find uninstalled libraries when the uninstalled
17942 # path is not listed in the libpath. Setting hardcode_minus_L
17943 # to unsupported forces relinking
17944 hardcode_minus_L
=yes
17945 hardcode_libdir_flag_spec
='-L$libdir'
17946 hardcode_libdir_separator
=
17950 shared_flag
='-shared'
17951 if test "$aix_use_runtimelinking" = yes; then
17952 shared_flag
="$shared_flag "'${wl}-G'
17956 if test "$host_cpu" = ia64
; then
17957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17958 # chokes on -Wl,-G. The following line is correct:
17961 if test "$aix_use_runtimelinking" = yes; then
17962 shared_flag
='${wl}-G'
17964 shared_flag
='${wl}-bM:SRE'
17969 export_dynamic_flag_spec
='${wl}-bexpall'
17970 # It seems that -bexpall does not export symbols beginning with
17971 # underscore (_), so it is better to generate a list of symbols to export.
17972 always_export_symbols
=yes
17973 if test "$aix_use_runtimelinking" = yes; then
17974 # Warning - without using the other runtime loading flags (-brtl),
17975 # -berok will link without error, but may produce a broken library.
17976 allow_undefined_flag
='-berok'
17977 # Determine the default libpath from the value encoded in an
17978 # empty executable.
17979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17990 if ac_fn_c_try_link
"$LINENO"; then :
17992 lt_aix_libpath_sed
='
17993 /Import File Strings/,/^$/ {
17999 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18000 # Check for a 64-bit object if we didn't find anything.
18001 if test -z "$aix_libpath"; then
18002 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18005 rm -f core conftest.err conftest.
$ac_objext \
18006 conftest
$ac_exeext conftest.
$ac_ext
18007 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18009 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18010 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"
18012 if test "$host_cpu" = ia64
; then
18013 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
18014 allow_undefined_flag
="-z nodefs"
18015 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"
18017 # Determine the default libpath from the value encoded in an
18018 # empty executable.
18019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18030 if ac_fn_c_try_link
"$LINENO"; then :
18032 lt_aix_libpath_sed
='
18033 /Import File Strings/,/^$/ {
18039 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18040 # Check for a 64-bit object if we didn't find anything.
18041 if test -z "$aix_libpath"; then
18042 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18045 rm -f core conftest.err conftest.
$ac_objext \
18046 conftest
$ac_exeext conftest.
$ac_ext
18047 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18049 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18050 # Warning - without using the other run time loading flags,
18051 # -berok will link without error, but may produce a broken library.
18052 no_undefined_flag
=' ${wl}-bernotok'
18053 allow_undefined_flag
=' ${wl}-berok'
18054 if test "$with_gnu_ld" = yes; then
18055 # We only use this code for GNU lds that support --whole-archive.
18056 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18058 # Exported symbols can be pulled into shared objects from archives
18059 whole_archive_flag_spec
='$convenience'
18061 archive_cmds_need_lc
=yes
18062 # This is similar to how AIX traditionally builds its shared libraries.
18063 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'
18071 # see comment about AmigaOS4 .so support
18072 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073 archive_expsym_cmds
=''
18076 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)'
18077 hardcode_libdir_flag_spec
='-L$libdir'
18078 hardcode_minus_L
=yes
18084 export_dynamic_flag_spec
=-rdynamic
18087 cygwin
* | mingw
* | pw32
* | cegcc
*)
18088 # When not using gcc, we currently assume that we are using
18089 # Microsoft Visual C++.
18090 # hardcode_libdir_flag_spec is actually meaningless, as there is
18091 # no search path for DLLs.
18092 hardcode_libdir_flag_spec
=' '
18093 allow_undefined_flag
=unsupported
18094 # Tell ltmain to make .lib files, not .a files.
18096 # Tell ltmain to make .dll files, not .so files.
18098 # FIXME: Setting linknames here is a bad hack.
18099 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18100 # The linker will automatically build a .lib file if we build a DLL.
18101 old_archive_from_new_cmds
='true'
18102 # FIXME: Should let the user specify the lib program.
18103 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18104 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18105 enable_shared_with_static_runtimes
=yes
18108 darwin
* | rhapsody
*)
18112 # Publish an arg to allow the user to select that Darwin host (and target)
18113 # libraries should be given install-names like @rpath/libfoo.dylib. This
18114 # requires that the user of the library then adds an 'rpath' to the DSO that
18116 # NOTE: there are defaults below, for systems that support rpaths. The person
18117 # configuring can override the defaults for any system version that supports
18118 # them - they are, however, forced off for system versions without support.
18119 # Check whether --enable-darwin-at-rpath was given.
18120 if test "${enable_darwin_at_rpath+set}" = set; then :
18121 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
18122 # This is not supported before macOS 10.5 / Darwin9.
18123 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18124 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
18126 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
18127 enable_darwin_at_rpath
=no
18132 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
18133 # As above, before 10.5 / Darwin9 this does not work.
18134 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
18135 enable_darwin_at_rpath
=no
18138 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
18139 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
18140 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
18141 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
18143 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
18144 enable_darwin_at_rpath
=yes
18146 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
18147 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
18154 archive_cmds_need_lc
=no
18156 hardcode_automatic
=yes
18157 hardcode_shlibpath_var
=unsupported
18158 if test "$lt_cv_ld_force_load" = "yes"; then
18159 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\"`'
18161 whole_archive_flag_spec
=''
18163 link_all_deplibs
=yes
18164 allow_undefined_flag
="$_lt_dar_allow_undefined"
18165 case $cc_basename in
18166 ifort
*) _lt_dar_can_shared
=yes ;;
18167 *) _lt_dar_can_shared
=$GCC ;;
18169 if test "$_lt_dar_can_shared" = "yes"; then
18170 output_verbose_link_cmd
=func_echo_all
18171 _lt_install_name
='\$rpath/\$soname'
18172 if test "x$enable_darwin_at_rpath" = "xyes"; then
18173 _lt_install_name
='@rpath/\$soname'
18175 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
18176 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18177 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
18178 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}"
18187 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188 hardcode_libdir_flag_spec
='-L$libdir'
18189 hardcode_shlibpath_var
=no
18192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18193 # support. Future versions do this automatically, but an explicit c++rt0.o
18194 # does not break anything, and helps significantly (at the cost of a little
18197 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18198 hardcode_libdir_flag_spec
='-R$libdir'
18199 hardcode_direct
=yes
18200 hardcode_shlibpath_var
=no
18203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18205 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18206 hardcode_direct
=yes
18207 hardcode_minus_L
=yes
18208 hardcode_shlibpath_var
=no
18211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18212 freebsd
* | dragonfly
*)
18213 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18214 hardcode_libdir_flag_spec
='-R$libdir'
18215 hardcode_direct
=yes
18216 hardcode_shlibpath_var
=no
18220 if test "$GCC" = yes; then
18221 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'
18223 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'
18225 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18226 hardcode_libdir_separator
=:
18227 hardcode_direct
=yes
18229 # hardcode_minus_L: Not really in the search PATH,
18230 # but as the default location of the library.
18231 hardcode_minus_L
=yes
18232 export_dynamic_flag_spec
='${wl}-E'
18236 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18237 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18239 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18241 if test "$with_gnu_ld" = no
; then
18242 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18243 hardcode_libdir_flag_spec_ld
='+b $libdir'
18244 hardcode_libdir_separator
=:
18245 hardcode_direct
=yes
18246 hardcode_direct_absolute
=yes
18247 export_dynamic_flag_spec
='${wl}-E'
18248 # hardcode_minus_L: Not really in the search PATH,
18249 # but as the default location of the library.
18250 hardcode_minus_L
=yes
18255 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18258 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18264 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18273 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18277 # Older versions of the 11.00 compiler do not understand -b yet
18278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18280 $as_echo_n "checking if $CC understands -b... " >&6; }
18281 if ${lt_cv_prog_compiler__b+:} false
; then :
18282 $as_echo_n "(cached) " >&6
18284 lt_cv_prog_compiler__b
=no
18285 save_LDFLAGS
="$LDFLAGS"
18286 LDFLAGS
="$LDFLAGS -b"
18287 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18288 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18289 # The linker can only warn and ignore the option if not recognized
18290 # So say no if there are warnings
18291 if test -s conftest.err
; then
18292 # Append any errors to the config.log.
18293 cat conftest.err
1>&5
18294 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18295 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18296 if diff conftest.exp conftest.er2
>/dev
/null
; then
18297 lt_cv_prog_compiler__b
=yes
18300 lt_cv_prog_compiler__b
=yes
18304 LDFLAGS
="$save_LDFLAGS"
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18308 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18310 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18311 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18313 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18319 if test "$with_gnu_ld" = no
; then
18320 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18321 hardcode_libdir_separator
=:
18326 hardcode_shlibpath_var
=no
18329 hardcode_direct
=yes
18330 hardcode_direct_absolute
=yes
18331 export_dynamic_flag_spec
='${wl}-E'
18333 # hardcode_minus_L: Not really in the search PATH,
18334 # but as the default location of the library.
18335 hardcode_minus_L
=yes
18341 irix5
* | irix6
* | nonstopux
*)
18342 if test "$GCC" = yes; then
18343 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'
18344 # Try to use the -exported_symbol ld option, if it does not
18345 # work, assume that -exports_file does not work either and
18346 # implicitly export all symbols.
18347 save_LDFLAGS
="$LDFLAGS"
18348 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18353 if ac_fn_c_try_link
"$LINENO"; then :
18354 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'
18357 rm -f core conftest.err conftest.
$ac_objext \
18358 conftest
$ac_exeext conftest.
$ac_ext
18359 LDFLAGS
="$save_LDFLAGS"
18361 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'
18362 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'
18364 archive_cmds_need_lc
='no'
18365 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18366 hardcode_libdir_separator
=:
18368 link_all_deplibs
=yes
18372 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18373 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18375 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18377 hardcode_libdir_flag_spec
='-R$libdir'
18378 hardcode_direct
=yes
18379 hardcode_shlibpath_var
=no
18383 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_direct
=yes
18385 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator
=:
18387 hardcode_shlibpath_var
=no
18394 if test -f /usr
/libexec
/ld.so
; then
18395 hardcode_direct
=yes
18396 hardcode_shlibpath_var
=no
18397 hardcode_direct_absolute
=yes
18398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18399 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18400 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18401 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18402 export_dynamic_flag_spec
='${wl}-E'
18405 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18406 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18407 hardcode_libdir_flag_spec
='-R$libdir'
18410 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18411 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18421 hardcode_libdir_flag_spec
='-L$libdir'
18422 hardcode_minus_L
=yes
18423 allow_undefined_flag
=unsupported
18424 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'
18425 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18429 if test "$GCC" = yes; then
18430 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18431 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'
18433 allow_undefined_flag
=' -expect_unresolved \*'
18434 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'
18436 archive_cmds_need_lc
='no'
18437 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18438 hardcode_libdir_separator
=:
18441 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18442 if test "$GCC" = yes; then
18443 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18444 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'
18445 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18447 allow_undefined_flag
=' -expect_unresolved \*'
18448 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'
18449 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~
18450 $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'
18452 # Both c and cxx compiler support -rpath directly
18453 hardcode_libdir_flag_spec
='-rpath $libdir'
18455 archive_cmds_need_lc
='no'
18456 hardcode_libdir_separator
=:
18460 no_undefined_flag
=' -z defs'
18461 if test "$GCC" = yes; then
18463 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18467 case `$CC -V 2>&1` in
18470 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18471 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18476 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18477 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18482 hardcode_libdir_flag_spec
='-R$libdir'
18483 hardcode_shlibpath_var
=no
18485 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18487 # The compiler driver will combine and reorder linker options,
18488 # but understands `-z linker_flag'. GCC discards it without `$wl',
18489 # but is careful enough not to reorder.
18490 # Supported since Solaris 2.6 (maybe 2.5.1?)
18491 if test "$GCC" = yes; then
18492 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18494 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18498 link_all_deplibs
=yes
18502 if test "x$host_vendor" = xsequent
; then
18503 # Use $CC to link under sequent, because it throws in some extra .o
18504 # files that make .init and .fini sections work.
18505 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18507 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18509 hardcode_libdir_flag_spec
='-L$libdir'
18510 hardcode_direct
=yes
18511 hardcode_minus_L
=yes
18512 hardcode_shlibpath_var
=no
18516 case $host_vendor in
18518 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_direct
=yes # is this really true???
18522 ## LD is ld it makes a PLAMLIB
18523 ## CC just makes a GrossModule.
18524 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18525 reload_cmds
='$CC -r -o $output$reload_objs'
18529 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18530 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18533 runpath_var
='LD_RUN_PATH'
18534 hardcode_shlibpath_var
=no
18538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18539 hardcode_shlibpath_var
=no
18540 export_dynamic_flag_spec
='-Bexport'
18544 if test -d /usr
/nec
; then
18545 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18546 hardcode_shlibpath_var
=no
18547 runpath_var
=LD_RUN_PATH
18548 hardcode_runpath_var
=yes
18553 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18554 no_undefined_flag
='${wl}-z,text'
18555 archive_cmds_need_lc
=no
18556 hardcode_shlibpath_var
=no
18557 runpath_var
='LD_RUN_PATH'
18559 if test "$GCC" = yes; then
18560 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18561 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18563 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18564 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18568 sysv5
* | sco3.2v5
* | sco5v6
*)
18569 # Note: We can NOT use -z defs as we might desire, because we do not
18570 # link with -lc, and that would cause any symbols used from libc to
18571 # always be unresolved, which means just about no library would
18572 # ever link correctly. If we're not using GNU ld we use -z text
18573 # though, which does catch some bad symbols but isn't as heavy-handed
18575 no_undefined_flag
='${wl}-z,text'
18576 allow_undefined_flag
='${wl}-z,nodefs'
18577 archive_cmds_need_lc
=no
18578 hardcode_shlibpath_var
=no
18579 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18580 hardcode_libdir_separator
=':'
18581 link_all_deplibs
=yes
18582 export_dynamic_flag_spec
='${wl}-Bexport'
18583 runpath_var
='LD_RUN_PATH'
18585 if test "$GCC" = yes; then
18586 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18587 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18589 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18595 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18596 hardcode_libdir_flag_spec
='-L$libdir'
18597 hardcode_shlibpath_var
=no
18605 if test x
$host_vendor = xsni
; then
18607 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18608 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18615 $as_echo "$ld_shlibs" >&6; }
18616 test "$ld_shlibs" = no
&& can_build_shared
=no
18618 with_gnu_ld
=$with_gnu_ld
18635 # Do we need to explicitly link libc?
18637 case "x$archive_cmds_need_lc" in
18639 # Assume -lc should be added
18640 archive_cmds_need_lc
=yes
18642 if test "$enable_shared" = yes && test "$GCC" = yes; then
18643 case $archive_cmds in
18645 # FIXME: we may have to deal with multi-command sequences.
18648 # Test whether the compiler implicitly links with -lc since on some
18649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18650 # to ld, don't add -lc before -lgcc.
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18653 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18654 $as_echo_n "(cached) " >&6
18657 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18660 (eval $ac_compile) 2>&5
18662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18663 test $ac_status = 0; } 2>conftest.err
; then
18666 libobjs
=conftest.
$ac_objext
18668 wl
=$lt_prog_compiler_wl
18669 pic_flag
=$lt_prog_compiler_pic
18675 lt_save_allow_undefined_flag
=$allow_undefined_flag
18676 allow_undefined_flag
=
18677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18678 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18681 test $ac_status = 0; }
18683 lt_cv_archive_cmds_need_lc
=no
18685 lt_cv_archive_cmds_need_lc
=yes
18687 allow_undefined_flag
=$lt_save_allow_undefined_flag
18689 cat conftest.err
1>&5
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18695 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18696 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18862 if test "$GCC" = yes; then
18864 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18865 *) lt_awk_arg
="/^libraries:/" ;;
18868 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18869 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18871 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18872 case $lt_search_path_spec in
18874 # if the path contains ";" then we assume it to be the separator
18875 # otherwise default to the standard path separator (i.e. ":") - it is
18876 # assumed that no part of a normal pathname contains ";" but that should
18877 # okay in the real world where ";" in dirpaths is itself problematic.
18878 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18881 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18884 # Ok, now we have the path, separated by spaces, we can step through it
18885 # and add multilib dir if necessary.
18886 lt_tmp_lt_search_path_spec
=
18887 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18888 for lt_sys_path
in $lt_search_path_spec; do
18889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18890 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18892 test -d "$lt_sys_path" && \
18893 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18896 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18897 BEGIN {RS=" "; FS="/|\n";} {
18900 for (lt_i = NF; lt_i > 0; lt_i--) {
18901 if ($lt_i != "" && $lt_i != ".") {
18902 if ($lt_i == "..") {
18905 if (lt_count == 0) {
18906 lt_foo="/" $lt_i lt_foo;
18913 if (lt_foo != "") { lt_freq[lt_foo]++; }
18914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18916 # AWK program above erroneously prepends '/' to C:/dos/paths
18919 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18922 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18924 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18926 library_names_spec
=
18927 libname_spec
='lib$name'
18931 postuninstall_cmds
=
18935 shlibpath_overrides_runpath
=unknown
18937 dynamic_linker
="$host_os ld.so"
18938 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18939 need_lib_prefix
=unknown
18940 hardcode_into_libs
=no
18942 # when you set need_version to no, make sure it does not cause -set_version
18943 # flags to be left without arguments
18944 need_version
=unknown
18949 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18950 shlibpath_var
=LIBPATH
18952 # AIX 3 has no versioning support, so we append a major version to the name.
18953 soname_spec
='${libname}${release}${shared_ext}$major'
18960 hardcode_into_libs
=yes
18961 if test "$host_cpu" = ia64
; then
18962 # AIX 5 supports IA64
18963 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18964 shlibpath_var
=LD_LIBRARY_PATH
18966 # With GCC up to 2.95.x, collect2 would create an import file
18967 # for dependence libraries. The import file would start with
18968 # the line `#! .'. This would cause the generated library to
18969 # depend on `.', always an invalid library. This was fixed in
18970 # development snapshots of GCC prior to 3.0.
18972 aix4 | aix4.
[01] | aix4.
[01].
*)
18973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18975 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18978 can_build_shared
=no
18982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18983 # soname into executable. Probably we can add versioning support to
18984 # collect2, so additional links can be useful in future.
18985 if test "$aix_use_runtimelinking" = yes; then
18986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18987 # instead of lib<name>.a to let people know that these are not
18988 # typical AIX shared libraries.
18989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991 # We preserve .a as extension for shared libraries through AIX4.2
18992 # and later when we are not doing run time linking.
18993 library_names_spec
='${libname}${release}.a $libname.a'
18994 soname_spec
='${libname}${release}${shared_ext}$major'
18996 shlibpath_var
=LIBPATH
19003 # Since July 2007 AmigaOS4 officially supports .so libraries.
19004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 library_names_spec
='$libname.ixlibrary $libname.a'
19009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19010 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'
19016 library_names_spec
='${libname}${shared_ext}'
19017 dynamic_linker
="$host_os ld.so"
19018 shlibpath_var
=LIBRARY_PATH
19024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19025 soname_spec
='${libname}${release}${shared_ext}$major'
19026 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19027 shlibpath_var
=LD_LIBRARY_PATH
19028 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19029 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19030 # the default ld.so.conf also contains /usr/contrib/lib and
19031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19032 # libtool to hard-code these into programs
19035 cygwin
* | mingw
* | pw32
* | cegcc
*)
19036 version_type
=windows
19041 case $GCC,$host_os in
19042 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19043 library_names_spec
='$libname.dll.a'
19044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19045 postinstall_cmds
='base_file=`basename \${file}`~
19046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19047 dldir=$destdir/`dirname \$dlpath`~
19048 test -d \$dldir || mkdir -p \$dldir~
19049 $install_prog $dir/$dlname \$dldir/$dlname~
19050 chmod a+x \$dldir/$dlname~
19051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19054 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19055 dlpath=$dir/\$dldll~
19057 shlibpath_overrides_runpath
=yes
19061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19062 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19064 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
19067 # MinGW DLLs use traditional 'lib' prefix
19068 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19071 # pw32 DLLs use 'pw' prefix rather than 'lib'
19072 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19078 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19081 dynamic_linker
='Win32 ld.exe'
19082 # FIXME: first we should search . and the directory the executable is in
19086 darwin
* | rhapsody
*)
19087 dynamic_linker
="$host_os dyld"
19088 version_type
=darwin
19091 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19092 soname_spec
='${libname}${release}${major}$shared_ext'
19093 shlibpath_overrides_runpath
=yes
19094 shlibpath_var
=DYLD_LIBRARY_PATH
19095 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19097 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19098 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19106 soname_spec
='${libname}${release}${shared_ext}$major'
19107 shlibpath_var
=LD_LIBRARY_PATH
19110 freebsd
* | dragonfly
*)
19111 # DragonFly does not have aout. When/if they implement a new
19112 # versioning mechanism, adjust this.
19113 if test -x /usr
/bin
/objformat
; then
19114 objformat
=`/usr/bin/objformat`
19117 freebsd
[23].
*) objformat
=aout
;;
19118 *) objformat
=elf
;;
19121 version_type
=freebsd-
$objformat
19122 case $version_type in
19124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19129 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19133 shlibpath_var
=LD_LIBRARY_PATH
19136 shlibpath_overrides_runpath
=yes
19138 freebsd3.
[01]* | freebsdelf3.
[01]*)
19139 shlibpath_overrides_runpath
=yes
19140 hardcode_into_libs
=yes
19142 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19143 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19144 shlibpath_overrides_runpath
=no
19145 hardcode_into_libs
=yes
19147 *) # from 4.6 on, and DragonFly
19148 shlibpath_overrides_runpath
=yes
19149 hardcode_into_libs
=yes
19158 dynamic_linker
="$host_os runtime_loader"
19159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19160 soname_spec
='${libname}${release}${shared_ext}$major'
19161 shlibpath_var
=LIBRARY_PATH
19162 shlibpath_overrides_runpath
=yes
19163 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19164 hardcode_into_libs
=yes
19167 hpux9
* | hpux10
* | hpux11
*)
19168 # Give a soname corresponding to the major version so that dld.sl refuses to
19169 # link against other versions.
19176 hardcode_into_libs
=yes
19177 dynamic_linker
="$host_os dld.so"
19178 shlibpath_var
=LD_LIBRARY_PATH
19179 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 soname_spec
='${libname}${release}${shared_ext}$major'
19182 if test "X$HPUX_IA64_MODE" = X32
; then
19183 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19185 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19187 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19191 hardcode_into_libs
=yes
19192 dynamic_linker
="$host_os dld.sl"
19193 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19194 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196 soname_spec
='${libname}${release}${shared_ext}$major'
19197 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19198 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19202 dynamic_linker
="$host_os dld.sl"
19203 shlibpath_var
=SHLIB_PATH
19204 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19206 soname_spec
='${libname}${release}${shared_ext}$major'
19209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19210 postinstall_cmds
='chmod 555 $lib'
19211 # or fails outright, so override atomically:
19212 install_override_mode
=555
19219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19220 soname_spec
='${libname}${release}${shared_ext}$major'
19221 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19222 shlibpath_var
=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath
=no
19224 hardcode_into_libs
=yes
19227 irix5
* | irix6
* | nonstopux
*)
19229 nonstopux
*) version_type
=nonstopux
;;
19231 if test "$lt_cv_prog_gnu_ld" = yes; then
19239 soname_spec
='${libname}${release}${shared_ext}$major'
19240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19242 irix5
* | nonstopux
*)
19243 libsuff
= shlibsuff
=
19246 case $LD in # libtool.m4 will add one of these switches to LD
19247 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19248 libsuff
= shlibsuff
= libmagic
=32-bit;;
19249 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19250 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19251 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19252 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19253 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19257 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19258 shlibpath_overrides_runpath
=no
19259 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19260 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19261 hardcode_into_libs
=yes
19264 # No shared lib support for Linux oldld, aout, or coff.
19265 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19269 # This must be Linux ELF.
19271 # uclinux* changes (here and below) have been submitted to the libtool
19272 # project, but have not yet been accepted: they are GCC-local changes
19273 # for the time being. (See
19274 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19275 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19280 soname_spec
='${libname}${release}${shared_ext}$major'
19281 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19282 shlibpath_var
=LD_LIBRARY_PATH
19283 shlibpath_overrides_runpath
=no
19285 # Some binutils ld are patched to set DT_RUNPATH
19286 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19287 $as_echo_n "(cached) " >&6
19289 lt_cv_shlibpath_overrides_runpath
=no
19290 save_LDFLAGS
=$LDFLAGS
19291 save_libdir
=$libdir
19292 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19293 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19305 if ac_fn_c_try_link
"$LINENO"; then :
19306 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19307 lt_cv_shlibpath_overrides_runpath
=yes
19310 rm -f core conftest.err conftest.
$ac_objext \
19311 conftest
$ac_exeext conftest.
$ac_ext
19312 LDFLAGS
=$save_LDFLAGS
19313 libdir
=$save_libdir
19317 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19319 # This implies no fast_install, which is unacceptable.
19320 # Some rework will be needed to allow for fast_install
19321 # before this can be enabled.
19322 hardcode_into_libs
=yes
19324 # Append ld.so.conf contents to the search path
19325 if test -f /etc
/ld.so.conf
; then
19326 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' ' '`
19327 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19330 # We used to test for /lib/ld.so.1 and disable shared libraries on
19331 # powerpc, because MkLinux only supported shared libraries with the
19332 # GNU dynamic linker. Since this was broken with cross compilers,
19333 # most powerpc-linux boxes support dynamic linking these days and
19334 # people can always --disable-shared, the test was removed, and we
19335 # assume the GNU/Linux dynamic linker is in use.
19336 dynamic_linker
='GNU/Linux ld.so'
19343 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19345 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19346 dynamic_linker
='NetBSD (a.out) ld.so'
19348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19349 soname_spec
='${libname}${release}${shared_ext}$major'
19350 dynamic_linker
='NetBSD ld.elf_so'
19352 shlibpath_var
=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath
=yes
19354 hardcode_into_libs
=yes
19359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 shlibpath_var
=LD_LIBRARY_PATH
19361 shlibpath_overrides_runpath
=yes
19368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19369 soname_spec
='${libname}${release}${shared_ext}$major'
19370 shlibpath_var
=LD_LIBRARY_PATH
19371 shlibpath_overrides_runpath
=no
19372 hardcode_into_libs
=yes
19373 dynamic_linker
='ldqnx.so'
19378 sys_lib_dlsearch_path_spec
="/usr/lib"
19380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19382 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19383 *) need_version
=no
;;
19385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19386 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19387 shlibpath_var
=LD_LIBRARY_PATH
19388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19390 openbsd2.
[89] | openbsd2.
[89].
*)
19391 shlibpath_overrides_runpath
=no
19394 shlibpath_overrides_runpath
=yes
19398 shlibpath_overrides_runpath
=yes
19403 libname_spec
='$name'
19406 library_names_spec
='$libname${shared_ext} $libname.a'
19407 dynamic_linker
='OS/2 ld.exe'
19408 shlibpath_var
=LIBPATH
19411 osf3
* | osf4
* | osf5
*)
19415 soname_spec
='${libname}${release}${shared_ext}$major'
19416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 shlibpath_var
=LD_LIBRARY_PATH
19418 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19419 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19431 soname_spec
='${libname}${release}${shared_ext}$major'
19432 shlibpath_var
=LD_LIBRARY_PATH
19433 shlibpath_overrides_runpath
=yes
19434 hardcode_into_libs
=yes
19435 # ldd complains unless libraries are executable
19436 postinstall_cmds
='chmod +x $lib'
19441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19442 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19443 shlibpath_var
=LD_LIBRARY_PATH
19444 shlibpath_overrides_runpath
=yes
19445 if test "$with_gnu_ld" = yes; then
19453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19454 soname_spec
='${libname}${release}${shared_ext}$major'
19455 shlibpath_var
=LD_LIBRARY_PATH
19456 case $host_vendor in
19458 shlibpath_overrides_runpath
=no
19460 runpath_var
=LD_RUN_PATH
19468 shlibpath_overrides_runpath
=no
19469 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19475 if test -d /usr
/nec
;then
19477 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19478 soname_spec
='$libname${shared_ext}.$major'
19479 shlibpath_var
=LD_LIBRARY_PATH
19483 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19484 version_type
=freebsd-elf
19487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19488 soname_spec
='${libname}${release}${shared_ext}$major'
19489 shlibpath_var
=LD_LIBRARY_PATH
19490 shlibpath_overrides_runpath
=yes
19491 hardcode_into_libs
=yes
19492 if test "$with_gnu_ld" = yes; then
19493 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19495 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19498 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19502 sys_lib_dlsearch_path_spec
='/usr/lib'
19506 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 shlibpath_var
=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath
=no
19513 hardcode_into_libs
=yes
19518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19519 soname_spec
='${libname}${release}${shared_ext}$major'
19520 shlibpath_var
=LD_LIBRARY_PATH
19523 # Shared libraries for VwWorks, >= 7 only at this stage
19524 # and (fpic) still incompatible with "large" code models
19525 # in a few configurations. Only for RTP mode in any case,
19526 # and upon explicit request at configure time.
19529 case ${with_multisubdir}-${enable_shared} in
19536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19537 soname_spec
='${libname}${release}${shared_ext}$major'
19538 dynamic_linker
="$host_os module_loader"
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19547 $as_echo "$dynamic_linker" >&6; }
19548 test "$dynamic_linker" = no
&& can_build_shared
=no
19550 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19551 if test "$GCC" = yes; then
19552 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19556 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19559 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19656 if test -n "$hardcode_libdir_flag_spec" ||
19657 test -n "$runpath_var" ||
19658 test "X$hardcode_automatic" = "Xyes" ; then
19660 # We can hardcode non-existent directories.
19661 if test "$hardcode_direct" != no
&&
19662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19663 # have to relink, otherwise we might link with an installed library
19664 # when we should be linking with a yet-to-be-installed one
19665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19666 test "$hardcode_minus_L" != no
; then
19667 # Linking always hardcodes the temporary library directory.
19668 hardcode_action
=relink
19670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19671 hardcode_action
=immediate
19674 # We cannot hardcode anything, or else we can only hardcode existing
19676 hardcode_action
=unsupported
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19679 $as_echo "$hardcode_action" >&6; }
19681 if test "$hardcode_action" = relink ||
19682 test "$inherit_rpath" = yes; then
19683 # Fast installation is not supported
19684 enable_fast_install
=no
19685 elif test "$shlibpath_overrides_runpath" = yes ||
19686 test "$enable_shared" = no
; then
19687 # Fast installation is not necessary
19688 enable_fast_install
=needless
19696 if test "x$enable_dlopen" != xyes
; then
19697 enable_dlopen
=unknown
19698 enable_dlopen_self
=unknown
19699 enable_dlopen_self_static
=unknown
19706 lt_cv_dlopen
="load_add_on"
19708 lt_cv_dlopen_self
=yes
19711 mingw
* | pw32
* | cegcc
*)
19712 lt_cv_dlopen
="LoadLibrary"
19717 lt_cv_dlopen
="dlopen"
19722 # if libdl is installed we need to link against it
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19725 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19726 $as_echo_n "(cached) " >&6
19728 ac_check_lib_save_LIBS
=$LIBS
19730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19748 if ac_fn_c_try_link
"$LINENO"; then :
19749 ac_cv_lib_dl_dlopen
=yes
19751 ac_cv_lib_dl_dlopen
=no
19753 rm -f core conftest.err conftest.
$ac_objext \
19754 conftest
$ac_exeext conftest.
$ac_ext
19755 LIBS
=$ac_check_lib_save_LIBS
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19759 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19760 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19763 lt_cv_dlopen
="dyld"
19765 lt_cv_dlopen_self
=yes
19772 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19773 if test "x$ac_cv_func_shl_load" = xyes
; then :
19774 lt_cv_dlopen
="shl_load"
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19778 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19779 $as_echo_n "(cached) " >&6
19781 ac_check_lib_save_LIBS
=$LIBS
19783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19796 return shl_load ();
19801 if ac_fn_c_try_link
"$LINENO"; then :
19802 ac_cv_lib_dld_shl_load
=yes
19804 ac_cv_lib_dld_shl_load
=no
19806 rm -f core conftest.err conftest.
$ac_objext \
19807 conftest
$ac_exeext conftest.
$ac_ext
19808 LIBS
=$ac_check_lib_save_LIBS
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19812 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19813 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19815 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19816 if test "x$ac_cv_func_dlopen" = xyes
; then :
19817 lt_cv_dlopen
="dlopen"
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19821 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19822 $as_echo_n "(cached) " >&6
19824 ac_check_lib_save_LIBS
=$LIBS
19826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19829 /* Override any GCC internal prototype to avoid an error.
19830 Use char because int might match the return type of a GCC
19831 builtin and then its argument prototype would still apply. */
19844 if ac_fn_c_try_link
"$LINENO"; then :
19845 ac_cv_lib_dl_dlopen
=yes
19847 ac_cv_lib_dl_dlopen
=no
19849 rm -f core conftest.err conftest.
$ac_objext \
19850 conftest
$ac_exeext conftest.
$ac_ext
19851 LIBS
=$ac_check_lib_save_LIBS
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19855 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19856 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19860 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19861 $as_echo_n "(cached) " >&6
19863 ac_check_lib_save_LIBS
=$LIBS
19864 LIBS
="-lsvld $LIBS"
19865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19868 /* Override any GCC internal prototype to avoid an error.
19869 Use char because int might match the return type of a GCC
19870 builtin and then its argument prototype would still apply. */
19883 if ac_fn_c_try_link
"$LINENO"; then :
19884 ac_cv_lib_svld_dlopen
=yes
19886 ac_cv_lib_svld_dlopen
=no
19888 rm -f core conftest.err conftest.
$ac_objext \
19889 conftest
$ac_exeext conftest.
$ac_ext
19890 LIBS
=$ac_check_lib_save_LIBS
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19894 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19895 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19899 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19900 $as_echo_n "(cached) " >&6
19902 ac_check_lib_save_LIBS
=$LIBS
19904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19907 /* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19917 return dld_link ();
19922 if ac_fn_c_try_link
"$LINENO"; then :
19923 ac_cv_lib_dld_dld_link
=yes
19925 ac_cv_lib_dld_dld_link
=no
19927 rm -f core conftest.err conftest.
$ac_objext \
19928 conftest
$ac_exeext conftest.
$ac_ext
19929 LIBS
=$ac_check_lib_save_LIBS
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19933 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19934 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19955 if test "x$lt_cv_dlopen" != xno
; then
19961 case $lt_cv_dlopen in
19963 save_CPPFLAGS
="$CPPFLAGS"
19964 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19966 save_LDFLAGS
="$LDFLAGS"
19967 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19970 LIBS
="$lt_cv_dlopen_libs $LIBS"
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19974 if ${lt_cv_dlopen_self+:} false
; then :
19975 $as_echo_n "(cached) " >&6
19977 if test "$cross_compiling" = yes; then :
19978 lt_cv_dlopen_self
=cross
19980 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19981 lt_status
=$lt_dlunknown
19982 cat > conftest.
$ac_ext <<_LT_EOF
19983 #line 19983 "configure"
19984 #include "confdefs.h"
19993 # define LT_DLGLOBAL RTLD_GLOBAL
19996 # define LT_DLGLOBAL DL_GLOBAL
19998 # define LT_DLGLOBAL 0
20002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20003 find out it does not work in some platform. */
20004 #ifndef LT_DLLAZY_OR_NOW
20006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20009 # define LT_DLLAZY_OR_NOW DL_LAZY
20012 # define LT_DLLAZY_OR_NOW RTLD_NOW
20015 # define LT_DLLAZY_OR_NOW DL_NOW
20017 # define LT_DLLAZY_OR_NOW 0
20024 /* When -fvisbility=hidden is used, assume the code has been annotated
20025 correspondingly for the symbols needed. */
20026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20027 void fnord () __attribute__((visibility("default")));
20030 void fnord () { int i=42; }
20033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20034 int status = $lt_dlunknown;
20038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20042 else puts (dlerror ());
20044 /* dlclose (self); */
20052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20053 (eval $ac_link) 2>&5
20055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20056 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20057 (.
/conftest
; exit; ) >&5 2>/dev
/null
20059 case x
$lt_status in
20060 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20061 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20062 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20065 # compilation failed
20066 lt_cv_dlopen_self
=no
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20074 $as_echo "$lt_cv_dlopen_self" >&6; }
20076 if test "x$lt_cv_dlopen_self" = xyes
; then
20077 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20080 if ${lt_cv_dlopen_self_static+:} false
; then :
20081 $as_echo_n "(cached) " >&6
20083 if test "$cross_compiling" = yes; then :
20084 lt_cv_dlopen_self_static
=cross
20086 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20087 lt_status
=$lt_dlunknown
20088 cat > conftest.
$ac_ext <<_LT_EOF
20089 #line 20089 "configure"
20090 #include "confdefs.h"
20099 # define LT_DLGLOBAL RTLD_GLOBAL
20102 # define LT_DLGLOBAL DL_GLOBAL
20104 # define LT_DLGLOBAL 0
20108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20109 find out it does not work in some platform. */
20110 #ifndef LT_DLLAZY_OR_NOW
20112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20115 # define LT_DLLAZY_OR_NOW DL_LAZY
20118 # define LT_DLLAZY_OR_NOW RTLD_NOW
20121 # define LT_DLLAZY_OR_NOW DL_NOW
20123 # define LT_DLLAZY_OR_NOW 0
20130 /* When -fvisbility=hidden is used, assume the code has been annotated
20131 correspondingly for the symbols needed. */
20132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20133 void fnord () __attribute__((visibility("default")));
20136 void fnord () { int i=42; }
20139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20140 int status = $lt_dlunknown;
20144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20148 else puts (dlerror ());
20150 /* dlclose (self); */
20158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20159 (eval $ac_link) 2>&5
20161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20162 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20163 (.
/conftest
; exit; ) >&5 2>/dev
/null
20165 case x
$lt_status in
20166 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20167 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20168 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20171 # compilation failed
20172 lt_cv_dlopen_self_static
=no
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20183 CPPFLAGS
="$save_CPPFLAGS"
20184 LDFLAGS
="$save_LDFLAGS"
20189 case $lt_cv_dlopen_self in
20190 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20191 *) enable_dlopen_self
=unknown
;;
20194 case $lt_cv_dlopen_self_static in
20195 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20196 *) enable_dlopen_self_static
=unknown
;;
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20220 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20221 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20222 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224 $as_echo "yes" >&6; }
20226 # FIXME - insert some real tests, host_os isn't really good enough
20229 if test -n "$STRIP" ; then
20230 striplib
="$STRIP -x"
20231 old_striplib
="$STRIP -S"
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20233 $as_echo "yes" >&6; }
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20241 $as_echo "no" >&6; }
20257 # Report which library types will actually be built
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20261 $as_echo "$can_build_shared" >&6; }
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20264 $as_echo_n "checking whether to build shared libraries... " >&6; }
20265 test "$can_build_shared" = "no" && enable_shared
=no
20267 # On AIX, shared libraries and static libraries use the same namespace, and
20268 # are all built from PIC.
20271 test "$enable_shared" = yes && enable_static
=no
20272 if test -n "$RANLIB"; then
20273 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20274 postinstall_cmds
='$RANLIB $lib'
20279 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20280 test "$enable_shared" = yes && enable_static
=no
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20285 $as_echo "$enable_shared" >&6; }
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20288 $as_echo_n "checking whether to build static libraries... " >&6; }
20289 # Make sure either enable_shared or enable_static is yes.
20290 test "$enable_shared" = yes || enable_static
=yes
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20292 $as_echo "$enable_static" >&6; }
20299 ac_cpp
='$CXXCPP $CPPFLAGS'
20300 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20306 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20308 (test "X$CXX" != "Xg++"))) ; then
20310 ac_cpp
='$CXXCPP $CPPFLAGS'
20311 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20315 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20316 if test -z "$CXXCPP"; then
20317 if ${ac_cv_prog_CXXCPP+:} false
; then :
20318 $as_echo_n "(cached) " >&6
20320 # Double quotes because CXXCPP needs to be expanded
20321 for CXXCPP
in "$CXX -E" "/lib/cpp"
20323 ac_preproc_ok
=false
20324 for ac_cxx_preproc_warn_flag
in '' yes
20326 # Use a header file that comes with gcc, so configuring glibc
20327 # with a fresh cross-compiler works.
20328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 # <limits.h> exists even on freestanding compilers.
20330 # On the NeXT, cc -E runs the code through the compiler's parser,
20331 # not just through cpp. "Syntax error" is here to catch this case.
20332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20335 # include <limits.h>
20337 # include <assert.h>
20341 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20344 # Broken: fails on valid input.
20347 rm -f conftest.err conftest.i conftest.
$ac_ext
20349 # OK, works on sane cases. Now check whether nonexistent headers
20350 # can be detected and how.
20351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20353 #include <ac_nonexistent.h>
20355 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20356 # Broken: success on invalid input.
20359 # Passes both tests.
20363 rm -f conftest.err conftest.i conftest.
$ac_ext
20366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20367 rm -f conftest.i conftest.err conftest.
$ac_ext
20368 if $ac_preproc_ok; then :
20373 ac_cv_prog_CXXCPP
=$CXXCPP
20376 CXXCPP
=$ac_cv_prog_CXXCPP
20378 ac_cv_prog_CXXCPP
=$CXXCPP
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20381 $as_echo "$CXXCPP" >&6; }
20382 ac_preproc_ok
=false
20383 for ac_cxx_preproc_warn_flag
in '' yes
20385 # Use a header file that comes with gcc, so configuring glibc
20386 # with a fresh cross-compiler works.
20387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388 # <limits.h> exists even on freestanding compilers.
20389 # On the NeXT, cc -E runs the code through the compiler's parser,
20390 # not just through cpp. "Syntax error" is here to catch this case.
20391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20394 # include <limits.h>
20396 # include <assert.h>
20400 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20403 # Broken: fails on valid input.
20406 rm -f conftest.err conftest.i conftest.
$ac_ext
20408 # OK, works on sane cases. Now check whether nonexistent headers
20409 # can be detected and how.
20410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20411 /* end confdefs.h. */
20412 #include <ac_nonexistent.h>
20414 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20415 # Broken: success on invalid input.
20418 # Passes both tests.
20422 rm -f conftest.err conftest.i conftest.
$ac_ext
20425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20426 rm -f conftest.i conftest.err conftest.
$ac_ext
20427 if $ac_preproc_ok; then :
20430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20432 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20433 See \`config.log' for more details" "$LINENO" 5; }
20437 ac_cpp
='$CXXCPP $CPPFLAGS'
20438 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20443 _lt_caught_CXX_error
=yes
20447 ac_cpp
='$CXXCPP $CPPFLAGS'
20448 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20452 archive_cmds_need_lc_CXX
=no
20453 allow_undefined_flag_CXX
=
20454 always_export_symbols_CXX
=no
20455 archive_expsym_cmds_CXX
=
20456 compiler_needs_object_CXX
=no
20457 export_dynamic_flag_spec_CXX
=
20458 hardcode_direct_CXX
=no
20459 hardcode_direct_absolute_CXX
=no
20460 hardcode_libdir_flag_spec_CXX
=
20461 hardcode_libdir_flag_spec_ld_CXX
=
20462 hardcode_libdir_separator_CXX
=
20463 hardcode_minus_L_CXX
=no
20464 hardcode_shlibpath_var_CXX
=unsupported
20465 hardcode_automatic_CXX
=no
20466 inherit_rpath_CXX
=no
20468 module_expsym_cmds_CXX
=
20469 link_all_deplibs_CXX
=unknown
20470 old_archive_cmds_CXX
=$old_archive_cmds
20471 reload_flag_CXX
=$reload_flag
20472 reload_cmds_CXX
=$reload_cmds
20473 no_undefined_flag_CXX
=
20474 whole_archive_flag_spec_CXX
=
20475 enable_shared_with_static_runtimes_CXX
=no
20477 # Source file extension for C++ test sources.
20480 # Object file extension for compiled C++ test sources.
20484 # No sense in running all these tests if we already determined that
20485 # the CXX compiler isn't working. Some variables (like enable_shared)
20486 # are currently assumed to apply to all compilers on this platform,
20487 # and will be corrupted by setting them based on a non-working compiler.
20488 if test "$_lt_caught_CXX_error" != yes; then
20489 # Code to be used in simple compile tests
20490 lt_simple_compile_test_code
="int some_variable = 0;"
20492 # Code to be used in simple link tests
20493 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20495 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20502 # If no C compiler was specified, use CC.
20505 # If no C compiler flags were specified, use CFLAGS.
20506 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20508 # Allow CC to be a program name with arguments.
20512 # save warnings/boilerplate of simple test code
20513 ac_outfile
=conftest.
$ac_objext
20514 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20515 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20516 _lt_compiler_boilerplate
=`cat conftest.err`
20519 ac_outfile
=conftest.
$ac_objext
20520 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20521 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20522 _lt_linker_boilerplate
=`cat conftest.err`
20526 # Allow CC to be a program name with arguments.
20531 lt_save_with_gnu_ld
=$with_gnu_ld
20532 lt_save_path_LD
=$lt_cv_path_LD
20533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20534 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20536 $as_unset lt_cv_prog_gnu_ld
20538 if test -n "${lt_cv_path_LDCXX+set}"; then
20539 lt_cv_path_LD
=$lt_cv_path_LDCXX
20541 $as_unset lt_cv_path_LD
20543 test -z "${LDCXX+set}" || LD
=$LDCXX
20547 for cc_temp
in $compiler""; do
20549 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20550 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20555 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20558 if test -n "$compiler"; then
20559 # We don't want -fno-exception when compiling C++ code, so set the
20560 # no_builtin_flag separately
20561 if test "$GXX" = yes; then
20562 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20564 lt_prog_compiler_no_builtin_flag_CXX
=
20567 if test "$GXX" = yes; then
20568 # Set up default GNU C++ configuration
20572 # Check whether --with-gnu-ld was given.
20573 if test "${with_gnu_ld+set}" = set; then :
20574 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20580 if test "$GCC" = yes; then
20581 # Check if gcc -print-prog-name=ld gives a path.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20583 $as_echo_n "checking for ld used by $CC... " >&6; }
20586 # gcc leaves a trailing carriage return which upsets mingw
20587 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20589 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20592 # Accept absolute paths.
20594 re_direlt
='/[^/][^/]*/\.\./'
20595 # Canonicalize the pathname of ld
20596 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20597 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20598 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20600 test -z "$LD" && LD
="$ac_prog"
20603 # If it fails, then pretend we aren't using GCC.
20607 # If it is relative, then search for the first ld in PATH.
20608 with_gnu_ld
=unknown
20611 elif test "$with_gnu_ld" = yes; then
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20613 $as_echo_n "checking for GNU ld... " >&6; }
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20616 $as_echo_n "checking for non-GNU ld... " >&6; }
20618 if ${lt_cv_path_LD+:} false
; then :
20619 $as_echo_n "(cached) " >&6
20621 if test -z "$LD"; then
20622 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20623 for ac_dir
in $PATH; do
20625 test -z "$ac_dir" && ac_dir
=.
20626 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20627 lt_cv_path_LD
="$ac_dir/$ac_prog"
20628 # Check to see if the program is GNU ld. I'd rather use --version,
20629 # but apparently some variants of GNU ld only accept -v.
20630 # Break only if it was the GNU/non-GNU ld that we prefer.
20631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20632 *GNU
* |
*'with BFD'*)
20633 test "$with_gnu_ld" != no
&& break
20636 test "$with_gnu_ld" != yes && break
20643 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20647 LD
="$lt_cv_path_LD"
20648 if test -n "$LD"; then
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20650 $as_echo "$LD" >&6; }
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20655 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20658 if ${lt_cv_prog_gnu_ld+:} false
; then :
20659 $as_echo_n "(cached) " >&6
20661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20662 case `$LD -v 2>&1 </dev/null` in
20663 *GNU
* |
*'with BFD'*)
20664 lt_cv_prog_gnu_ld
=yes
20667 lt_cv_prog_gnu_ld
=no
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20673 with_gnu_ld
=$lt_cv_prog_gnu_ld
20681 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20682 # archiving commands below assume that GNU ld is being used.
20683 if test "$with_gnu_ld" = yes; then
20684 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20685 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'
20687 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20688 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20690 # If archive_cmds runs LD, not CC, wlarc should be empty
20691 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20692 # investigate it a little bit more. (MM)
20695 # ancient GNU ld didn't support --whole-archive et. al.
20696 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20697 $GREP 'no-whole-archive' > /dev
/null
; then
20698 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20700 whole_archive_flag_spec_CXX
=
20706 # A generic and very simple default shared library creation
20707 # command for GNU C++ for the case where it uses the native
20708 # linker, instead of GNU ld. If possible, this setting should
20709 # overridden to take advantage of the native linker features on
20710 # the platform it is being used on.
20711 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20714 # Commands to make compiler produce verbose output that lists
20715 # what "hidden" libraries, object files and flags are used when
20716 # linking a shared library.
20717 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20725 # PORTME: fill in a description of your system's C++ link characteristics
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20731 # FIXME: insert proper C++ library support
20735 if test "$host_cpu" = ia64
; then
20736 # On IA64, the linker does run time linking by default, so we don't
20737 # have to do anything special.
20738 aix_use_runtimelinking
=no
20739 exp_sym_flag
='-Bexport'
20742 aix_use_runtimelinking
=no
20744 # Test if we are trying to use run time linking or normal
20745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20746 # need to do runtime linking.
20747 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20748 for ld_flag
in $LDFLAGS; do
20751 aix_use_runtimelinking
=yes
20759 exp_sym_flag
='-bexport'
20760 no_entry_flag
='-bnoentry'
20763 # When large executables or shared objects are built, AIX ld can
20764 # have problems creating the table of contents. If linking a library
20765 # or program results in "error TOC overflow" add -mminimal-toc to
20766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20769 archive_cmds_CXX
=''
20770 hardcode_direct_CXX
=yes
20771 hardcode_direct_absolute_CXX
=yes
20772 hardcode_libdir_separator_CXX
=':'
20773 link_all_deplibs_CXX
=yes
20774 file_list_spec_CXX
='${wl}-f,'
20776 if test "$GXX" = yes; then
20777 case $host_os in aix4.
[012]|aix4.
[012].
*)
20778 # We only want to do this on AIX 4.2 and lower, the check
20779 # below for broken collect2 doesn't work under 4.3+
20780 collect2name
=`${CC} -print-prog-name=collect2`
20781 if test -f "$collect2name" &&
20782 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20784 # We have reworked collect2
20787 # We have old collect2
20788 hardcode_direct_CXX
=unsupported
20789 # It fails to find uninstalled libraries when the uninstalled
20790 # path is not listed in the libpath. Setting hardcode_minus_L
20791 # to unsupported forces relinking
20792 hardcode_minus_L_CXX
=yes
20793 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20794 hardcode_libdir_separator_CXX
=
20797 shared_flag
='-shared'
20798 if test "$aix_use_runtimelinking" = yes; then
20799 shared_flag
="$shared_flag "'${wl}-G'
20803 if test "$host_cpu" = ia64
; then
20804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20805 # chokes on -Wl,-G. The following line is correct:
20808 if test "$aix_use_runtimelinking" = yes; then
20809 shared_flag
='${wl}-G'
20811 shared_flag
='${wl}-bM:SRE'
20816 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20817 # It seems that -bexpall does not export symbols beginning with
20818 # underscore (_), so it is better to generate a list of symbols to
20820 always_export_symbols_CXX
=yes
20821 if test "$aix_use_runtimelinking" = yes; then
20822 # Warning - without using the other runtime loading flags (-brtl),
20823 # -berok will link without error, but may produce a broken library.
20824 allow_undefined_flag_CXX
='-berok'
20825 # Determine the default libpath from the value encoded in an empty
20827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20838 if ac_fn_cxx_try_link
"$LINENO"; then :
20840 lt_aix_libpath_sed
='
20841 /Import File Strings/,/^$/ {
20847 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20848 # Check for a 64-bit object if we didn't find anything.
20849 if test -z "$aix_libpath"; then
20850 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20853 rm -f core conftest.err conftest.
$ac_objext \
20854 conftest
$ac_exeext conftest.
$ac_ext
20855 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20857 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20859 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"
20861 if test "$host_cpu" = ia64
; then
20862 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20863 allow_undefined_flag_CXX
="-z nodefs"
20864 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"
20866 # Determine the default libpath from the value encoded in an
20867 # empty executable.
20868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h. */
20879 if ac_fn_cxx_try_link
"$LINENO"; then :
20881 lt_aix_libpath_sed
='
20882 /Import File Strings/,/^$/ {
20888 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20889 # Check for a 64-bit object if we didn't find anything.
20890 if test -z "$aix_libpath"; then
20891 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20894 rm -f core conftest.err conftest.
$ac_objext \
20895 conftest
$ac_exeext conftest.
$ac_ext
20896 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20898 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20899 # Warning - without using the other run time loading flags,
20900 # -berok will link without error, but may produce a broken library.
20901 no_undefined_flag_CXX
=' ${wl}-bernotok'
20902 allow_undefined_flag_CXX
=' ${wl}-berok'
20903 if test "$with_gnu_ld" = yes; then
20904 # We only use this code for GNU lds that support --whole-archive.
20905 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20907 # Exported symbols can be pulled into shared objects from archives
20908 whole_archive_flag_spec_CXX
='$convenience'
20910 archive_cmds_need_lc_CXX
=yes
20911 # This is similar to how AIX traditionally builds its shared
20913 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'
20919 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20920 allow_undefined_flag_CXX
=unsupported
20921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20922 # support --undefined. This deserves some investigation. FIXME
20923 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20930 case $cc_basename in
20932 # FIXME: insert proper C++ library support
20938 cygwin
* | mingw
* | pw32
* | cegcc
*)
20939 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20940 # as there is no search path for DLLs.
20941 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20942 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20943 allow_undefined_flag_CXX
=unsupported
20944 always_export_symbols_CXX
=no
20945 enable_shared_with_static_runtimes_CXX
=yes
20947 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20948 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'
20949 # If the export-symbols file already is a .def file (1st line
20950 # is EXPORTS), use it as is; otherwise, prepend...
20951 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20952 cp $export_symbols $output_objdir/$soname.def;
20954 echo EXPORTS > $output_objdir/$soname.def;
20955 cat $export_symbols >> $output_objdir/$soname.def;
20957 $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'
20962 darwin
* | rhapsody
*)
20966 # Publish an arg to allow the user to select that Darwin host (and target)
20967 # libraries should be given install-names like @rpath/libfoo.dylib. This
20968 # requires that the user of the library then adds an 'rpath' to the DSO that
20970 # NOTE: there are defaults below, for systems that support rpaths. The person
20971 # configuring can override the defaults for any system version that supports
20972 # them - they are, however, forced off for system versions without support.
20973 # Check whether --enable-darwin-at-rpath was given.
20974 if test "${enable_darwin_at_rpath+set}" = set; then :
20975 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
20976 # This is not supported before macOS 10.5 / Darwin9.
20977 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
20978 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
20980 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
20981 enable_darwin_at_rpath
=no
20986 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
20987 # As above, before 10.5 / Darwin9 this does not work.
20988 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
20989 enable_darwin_at_rpath
=no
20992 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
20993 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
20994 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
20995 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
20997 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
20998 enable_darwin_at_rpath
=yes
21000 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
21001 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
21008 archive_cmds_need_lc_CXX
=no
21009 hardcode_direct_CXX
=no
21010 hardcode_automatic_CXX
=yes
21011 hardcode_shlibpath_var_CXX
=unsupported
21012 if test "$lt_cv_ld_force_load" = "yes"; then
21013 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\"`'
21015 whole_archive_flag_spec_CXX
=''
21017 link_all_deplibs_CXX
=yes
21018 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
21019 case $cc_basename in
21020 ifort
*) _lt_dar_can_shared
=yes ;;
21021 *) _lt_dar_can_shared
=$GCC ;;
21023 if test "$_lt_dar_can_shared" = "yes"; then
21024 output_verbose_link_cmd
=func_echo_all
21025 _lt_install_name
='\$rpath/\$soname'
21026 if test "x$enable_darwin_at_rpath" = "xyes"; then
21027 _lt_install_name
='@rpath/\$soname'
21029 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
21030 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21031 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
21032 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}"
21033 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
21034 _lt_install_name
='\$rpath/\$soname'
21035 if test "x$enable_darwin_at_rpath" = "xyes"; then
21036 _lt_install_name
='@rpath/\$soname'
21038 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
21039 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}"
21049 case $cc_basename in
21051 # FIXME: insert proper C++ library support
21055 # Green Hills C++ Compiler
21056 # FIXME: insert proper C++ library support
21060 # FIXME: insert proper C++ library support
21067 # C++ shared libraries reported to be fairly broken before
21073 archive_cmds_need_lc_CXX
=no
21076 freebsd
* | dragonfly
*)
21077 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21086 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21087 link_all_deplibs_CXX
=yes
21091 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21092 hardcode_libdir_separator_CXX
=:
21093 export_dynamic_flag_spec_CXX
='${wl}-E'
21094 hardcode_direct_CXX
=yes
21095 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21096 # but as the default
21097 # location of the library.
21099 case $cc_basename in
21101 # FIXME: insert proper C++ library support
21105 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'
21106 # Commands to make compiler produce verbose output that lists
21107 # what "hidden" libraries, object files and flags are used when
21108 # linking a shared library.
21110 # There doesn't appear to be a way to prevent this compiler from
21111 # explicitly linking system object files so we need to strip them
21112 # from the output so that they don't get included in the library
21114 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"'
21117 if test "$GXX" = yes; then
21118 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'
21120 # FIXME: insert proper C++ library support
21128 if test $with_gnu_ld = no
; then
21129 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
21130 hardcode_libdir_separator_CXX
=:
21136 export_dynamic_flag_spec_CXX
='${wl}-E'
21142 hardcode_direct_CXX
=no
21143 hardcode_shlibpath_var_CXX
=no
21146 hardcode_direct_CXX
=yes
21147 hardcode_direct_absolute_CXX
=yes
21148 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21149 # but as the default
21150 # location of the library.
21154 case $cc_basename in
21156 # FIXME: insert proper C++ library support
21162 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21165 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21168 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21171 # Commands to make compiler produce verbose output that lists
21172 # what "hidden" libraries, object files and flags are used when
21173 # linking a shared library.
21175 # There doesn't appear to be a way to prevent this compiler from
21176 # explicitly linking system object files so we need to strip them
21177 # from the output so that they don't get included in the library
21179 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"'
21182 if test "$GXX" = yes; then
21183 if test $with_gnu_ld = no
; then
21186 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21189 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21192 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'
21197 # FIXME: insert proper C++ library support
21205 hardcode_direct_CXX
=no
21206 hardcode_shlibpath_var_CXX
=no
21207 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21208 export_dynamic_flag_spec_CXX
='${wl}-E'
21209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21210 # Instead, shared libraries are loaded at an image base (0x10000000 by
21211 # default) and relocated if they conflict, which is a slow very memory
21212 # consuming and fragmenting process. To avoid this, we pick a random,
21213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21215 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'
21216 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'
21219 case $cc_basename in
21222 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'
21224 # Archives containing C++ object files must be created using
21225 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21226 # necessary to make sure instantiated templates are included
21228 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21231 if test "$GXX" = yes; then
21232 if test "$with_gnu_ld" = no
; then
21233 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'
21235 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'
21238 link_all_deplibs_CXX
=yes
21241 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21242 hardcode_libdir_separator_CXX
=:
21243 inherit_rpath_CXX
=yes
21246 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21247 case $cc_basename in
21249 # Kuck and Associates, Inc. (KAI) C++ Compiler
21251 # KCC will only create a shared library if the output file
21252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21253 # to its proper name (with version) after linking.
21254 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'
21255 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'
21256 # Commands to make compiler produce verbose output that lists
21257 # what "hidden" libraries, object files and flags are used when
21258 # linking a shared library.
21260 # There doesn't appear to be a way to prevent this compiler from
21261 # explicitly linking system object files so we need to strip them
21262 # from the output so that they don't get included in the library
21264 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"'
21266 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21267 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21269 # Archives containing C++ object files must be created using
21270 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21271 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21276 # version 8.0 and above of icpc choke on multiply defined symbols
21277 # if we add $predep_objects and $postdep_objects, however 7.1 and
21278 # earlier do not add the objects themselves.
21279 case `$CC -V 2>&1` in
21281 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21282 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'
21284 *) # Version 8.0 or newer
21287 ia64
*) tmp_idyn
=' -i_dynamic';;
21289 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21290 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'
21293 archive_cmds_need_lc_CXX
=no
21294 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21295 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21296 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21299 # Portland Group C++ compiler
21301 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21302 prelink_cmds_CXX
='tpldir=Template.dir~
21304 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21305 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21306 old_archive_cmds_CXX
='tpldir=Template.dir~
21308 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21309 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21311 archive_cmds_CXX
='tpldir=Template.dir~
21313 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21314 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21315 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21317 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21318 $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'
21320 *) # Version 6 and above use weak symbols
21321 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21322 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'
21326 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21327 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21328 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'
21332 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21333 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'
21335 runpath_var
=LD_RUN_PATH
21336 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21337 hardcode_libdir_separator_CXX
=:
21339 # Commands to make compiler produce verbose output that lists
21340 # what "hidden" libraries, object files and flags are used when
21341 # linking a shared library.
21343 # There doesn't appear to be a way to prevent this compiler from
21344 # explicitly linking system object files so we need to strip them
21345 # from the output so that they don't get included in the library
21347 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'
21349 xl
* | mpixl
* | bgxl
*)
21350 # IBM XL 8.0 on PPC, with GNU ld
21351 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21352 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21353 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21354 if test "x$supports_anon_versioning" = xyes
; then
21355 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21357 echo "local: *; };" >> $output_objdir/$libname.ver~
21358 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21362 case `$CC -V 2>&1 | sed 5q` in
21365 no_undefined_flag_CXX
=' -zdefs'
21366 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21367 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'
21368 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21369 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'
21370 compiler_needs_object_CXX
=yes
21372 # Not sure whether something based on
21373 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21375 output_verbose_link_cmd
='func_echo_all'
21377 # Archives containing C++ object files must be created using
21378 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21379 # necessary to make sure instantiated templates are included
21381 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21389 # FIXME: insert proper C++ library support
21394 # FIXME: insert proper C++ library support
21399 case $cc_basename in
21401 # FIXME: insert proper C++ library support
21405 # FIXME: insert proper C++ library support
21412 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21413 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21415 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21416 hardcode_direct_CXX
=yes
21417 hardcode_shlibpath_var_CXX
=no
21419 # Workaround some broken pre-1.5 toolchains
21420 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21428 # C++ shared libraries are fairly broken
21433 if test -f /usr
/libexec
/ld.so
; then
21434 hardcode_direct_CXX
=yes
21435 hardcode_shlibpath_var_CXX
=no
21436 hardcode_direct_absolute_CXX
=yes
21437 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21438 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21439 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21440 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21441 export_dynamic_flag_spec_CXX
='${wl}-E'
21442 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21444 output_verbose_link_cmd
=func_echo_all
21450 osf3
* | osf4
* | osf5
*)
21451 case $cc_basename in
21453 # Kuck and Associates, Inc. (KAI) C++ Compiler
21455 # KCC will only create a shared library if the output file
21456 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21457 # to its proper name (with version) after linking.
21458 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'
21460 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21461 hardcode_libdir_separator_CXX
=:
21463 # Archives containing C++ object files must be created using
21464 # the KAI C++ compiler.
21466 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21467 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21471 # Rational C++ 2.4.1
21472 # FIXME: insert proper C++ library support
21478 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21479 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'
21480 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21483 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21484 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'
21485 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21486 echo "-hidden">> $lib.exp~
21487 $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~
21489 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21493 hardcode_libdir_separator_CXX
=:
21495 # Commands to make compiler produce verbose output that lists
21496 # what "hidden" libraries, object files and flags are used when
21497 # linking a shared library.
21499 # There doesn't appear to be a way to prevent this compiler from
21500 # explicitly linking system object files so we need to strip them
21501 # from the output so that they don't get included in the library
21503 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"'
21506 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21507 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21510 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'
21513 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'
21517 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21518 hardcode_libdir_separator_CXX
=:
21520 # Commands to make compiler produce verbose output that lists
21521 # what "hidden" libraries, object files and flags are used when
21522 # linking a shared library.
21523 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21526 # FIXME: insert proper C++ library support
21534 # FIXME: insert proper C++ library support
21539 case $cc_basename in
21542 # FIXME: insert proper C++ library support
21547 # FIXME: insert proper C++ library support
21551 # FIXME: insert proper C++ library support
21558 case $cc_basename in
21560 # Sun C++ 4.2, 5.x and Centerline C++
21561 archive_cmds_need_lc_CXX
=yes
21562 no_undefined_flag_CXX
=' -zdefs'
21563 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21564 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21565 $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'
21567 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21568 hardcode_shlibpath_var_CXX
=no
21570 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21572 # The compiler driver will combine and reorder linker options,
21573 # but understands `-z linker_flag'.
21574 # Supported since Solaris 2.6 (maybe 2.5.1?)
21575 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21578 link_all_deplibs_CXX
=yes
21580 output_verbose_link_cmd
='func_echo_all'
21582 # Archives containing C++ object files must be created using
21583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21584 # necessary to make sure instantiated templates are included
21586 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21589 # Green Hills C++ Compiler
21590 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21592 # The C++ compiler must be used to create the archive.
21593 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21596 # GNU C++ compiler with Solaris linker
21597 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21598 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21599 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21600 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21601 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21602 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21604 # Commands to make compiler produce verbose output that lists
21605 # what "hidden" libraries, object files and flags are used when
21606 # linking a shared library.
21607 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21609 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21611 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21612 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21613 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21615 # Commands to make compiler produce verbose output that lists
21616 # what "hidden" libraries, object files and flags are used when
21617 # linking a shared library.
21618 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21621 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21623 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21625 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21633 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21634 no_undefined_flag_CXX
='${wl}-z,text'
21635 archive_cmds_need_lc_CXX
=no
21636 hardcode_shlibpath_var_CXX
=no
21637 runpath_var
='LD_RUN_PATH'
21639 case $cc_basename in
21641 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21642 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21645 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21646 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21651 sysv5
* | sco3.2v5
* | sco5v6
*)
21652 # Note: We can NOT use -z defs as we might desire, because we do not
21653 # link with -lc, and that would cause any symbols used from libc to
21654 # always be unresolved, which means just about no library would
21655 # ever link correctly. If we're not using GNU ld we use -z text
21656 # though, which does catch some bad symbols but isn't as heavy-handed
21658 no_undefined_flag_CXX
='${wl}-z,text'
21659 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21660 archive_cmds_need_lc_CXX
=no
21661 hardcode_shlibpath_var_CXX
=no
21662 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21663 hardcode_libdir_separator_CXX
=':'
21664 link_all_deplibs_CXX
=yes
21665 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21666 runpath_var
='LD_RUN_PATH'
21668 case $cc_basename in
21670 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21671 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21672 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21673 '"$old_archive_cmds_CXX"
21674 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21675 '"$reload_cmds_CXX"
21678 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21679 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21685 case $cc_basename in
21687 # NonStop-UX NCC 3.20
21688 # FIXME: insert proper C++ library support
21692 # FIXME: insert proper C++ library support
21699 # For VxWorks ports, we assume the use of a GNU linker with
21700 # standard elf conventions.
21705 # FIXME: insert proper C++ library support
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21711 $as_echo "$ld_shlibs_CXX" >&6; }
21712 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21718 ## There is no encapsulation within the following macros, do not change
21719 ## the running order or otherwise move them around unless you know exactly
21720 ## what you are doing...
21721 # Dependencies to place before and after the object being linked:
21722 predep_objects_CXX
=
21723 postdep_objects_CXX
=
21726 compiler_lib_search_path_CXX
=
21728 cat > conftest.
$ac_ext <<_LT_EOF
21732 Foo (void) { a = 0; }
21738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21739 (eval $ac_compile) 2>&5
21741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21742 test $ac_status = 0; }; then
21743 # Parse the compiler output and extract the necessary
21744 # objects, libraries and library flags.
21746 # Sentinel used to keep track of whether or not we are before
21747 # the conftest object file.
21748 pre_test_object_deps_done
=no
21750 for p
in `eval "$output_verbose_link_cmd"`; do
21754 # Some compilers place space between "-{L,R}" and the path.
21755 # Remove the space.
21756 if test $p = "-L" ||
21757 test $p = "-R"; then
21764 if test "$pre_test_object_deps_done" = no
; then
21767 # Internal compiler library paths should come after those
21768 # provided the user. The postdeps already come after the
21769 # user supplied libs so there is no need to process them.
21770 if test -z "$compiler_lib_search_path_CXX"; then
21771 compiler_lib_search_path_CXX
="${prev}${p}"
21773 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21776 # The "-l" case would never come before the object being
21777 # linked, so don't bother handling this case.
21780 if test -z "$postdeps_CXX"; then
21781 postdeps_CXX
="${prev}${p}"
21783 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21789 # This assumes that the test object file only shows up
21790 # once in the compiler output.
21791 if test "$p" = "conftest.$objext"; then
21792 pre_test_object_deps_done
=yes
21796 if test "$pre_test_object_deps_done" = no
; then
21797 if test -z "$predep_objects_CXX"; then
21798 predep_objects_CXX
="$p"
21800 predep_objects_CXX
="$predep_objects_CXX $p"
21803 if test -z "$postdep_objects_CXX"; then
21804 postdep_objects_CXX
="$p"
21806 postdep_objects_CXX
="$postdep_objects_CXX $p"
21811 *) ;; # Ignore the rest.
21819 echo "libtool.m4: error: problem compiling CXX test program"
21822 $RM -f confest.
$objext
21824 # PORTME: override above test on systems where it is broken
21827 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21828 # hack all around it, let's just trust "g++" to DTRT.
21829 predep_objects_CXX
=
21830 postdep_objects_CXX
=
21835 case `$CC -V 2>&1 | sed 5q` in
21839 # The more standards-conforming stlport4 library is
21840 # incompatible with the Cstd library. Avoid specifying
21841 # it if it's in CXXFLAGS. Ignore libCrun as
21842 # -library=stlport4 depends on it.
21843 case " $CXX $CXXFLAGS " in
21844 *" -library=stlport4 "*)
21845 solaris_use_stlport4
=yes
21849 if test "$solaris_use_stlport4" != yes; then
21850 postdeps_CXX
='-library=Cstd -library=Crun'
21857 case $cc_basename in
21859 # The more standards-conforming stlport4 library is
21860 # incompatible with the Cstd library. Avoid specifying
21861 # it if it's in CXXFLAGS. Ignore libCrun as
21862 # -library=stlport4 depends on it.
21863 case " $CXX $CXXFLAGS " in
21864 *" -library=stlport4 "*)
21865 solaris_use_stlport4
=yes
21869 # Adding this requires a known-good setup of shared libraries for
21870 # Sun compiler versions before 5.6, else PIC objects from an old
21871 # archive will be linked into the output, leading to subtle bugs.
21872 if test "$solaris_use_stlport4" != yes; then
21873 postdeps_CXX
='-library=Cstd -library=Crun'
21881 case " $postdeps_CXX " in
21882 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21884 compiler_lib_search_dirs_CXX
=
21885 if test -n "${compiler_lib_search_path_CXX}"; then
21886 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21919 lt_prog_compiler_wl_CXX
=
21920 lt_prog_compiler_pic_CXX
=
21921 lt_prog_compiler_static_CXX
=
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21924 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21926 # C++ specific cases for pic, static, wl, etc.
21927 if test "$GXX" = yes; then
21928 lt_prog_compiler_wl_CXX
='-Wl,'
21929 lt_prog_compiler_static_CXX
='-static'
21933 # All AIX code is PIC.
21934 if test "$host_cpu" = ia64
; then
21935 # AIX 5 now supports IA64 processor
21936 lt_prog_compiler_static_CXX
='-Bstatic'
21938 lt_prog_compiler_pic_CXX
='-fPIC'
21944 # see comment about AmigaOS4 .so support
21945 lt_prog_compiler_pic_CXX
='-fPIC'
21948 # FIXME: we need at least 68020 code to build shared libraries, but
21949 # adding the `-m68020' flag to GCC prevents building anything better,
21951 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21956 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21957 # PIC is the default for these OSes.
21959 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21960 # This hack is so that the source file can tell whether it is being
21961 # built for inclusion in a dll (and should export symbols for example).
21962 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21963 # (--disable-auto-import) libraries
21964 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21966 darwin
* | rhapsody
*)
21967 # PIC is the default on this platform
21968 # Common symbols not allowed in MH_DYLIB files
21969 lt_prog_compiler_pic_CXX
='-fno-common'
21972 # DJGPP does not support shared libraries at all
21973 lt_prog_compiler_pic_CXX
=
21976 # PIC is the default for Haiku.
21977 # The "-static" flag exists, but is broken.
21978 lt_prog_compiler_static_CXX
=
21981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21982 # Instead, we relocate shared libraries at runtime.
21985 if test -d /usr
/nec
; then
21986 lt_prog_compiler_pic_CXX
=-Kconform_pic
21990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21992 # sets the default TLS model and affects inlining.
21997 lt_prog_compiler_pic_CXX
='-fPIC'
22002 # QNX uses GNU C++, but need to define -shared option too, otherwise
22003 # it will coredump.
22004 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22007 lt_prog_compiler_pic_CXX
='-fPIC'
22013 # All AIX code is PIC.
22014 if test "$host_cpu" = ia64
; then
22015 # AIX 5 now supports IA64 processor
22016 lt_prog_compiler_static_CXX
='-Bstatic'
22018 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
22022 case $cc_basename in
22024 # Green Hills C++ Compiler
22025 # _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"
22030 case $cc_basename in
22032 lt_prog_compiler_pic_CXX
='-KPIC'
22035 # Green Hills C++ Compiler
22036 lt_prog_compiler_pic_CXX
='-pic'
22042 freebsd
* | dragonfly
*)
22043 # FreeBSD uses GNU C++
22045 hpux9
* | hpux10
* | hpux11
*)
22046 case $cc_basename in
22048 lt_prog_compiler_wl_CXX
='-Wl,'
22049 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22050 if test "$host_cpu" != ia64
; then
22051 lt_prog_compiler_pic_CXX
='+Z'
22055 lt_prog_compiler_wl_CXX
='-Wl,'
22056 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
22062 lt_prog_compiler_pic_CXX
='+Z'
22071 # This is c89, which is MS Visual C++ (no shared libs)
22072 # Anyone wants to do a port?
22074 irix5
* | irix6
* | nonstopux
*)
22075 case $cc_basename in
22077 lt_prog_compiler_wl_CXX
='-Wl,'
22078 lt_prog_compiler_static_CXX
='-non_shared'
22079 # CC pic flag -KPIC is the default.
22085 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22086 case $cc_basename in
22089 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22090 lt_prog_compiler_pic_CXX
='-fPIC'
22093 # old Intel C++ for x86_64 which still supported -KPIC.
22094 lt_prog_compiler_wl_CXX
='-Wl,'
22095 lt_prog_compiler_pic_CXX
='-KPIC'
22096 lt_prog_compiler_static_CXX
='-static'
22099 # Intel C++, used to be incompatible with GCC.
22100 # ICC 10 doesn't accept -KPIC any more.
22101 lt_prog_compiler_wl_CXX
='-Wl,'
22102 lt_prog_compiler_pic_CXX
='-fPIC'
22103 lt_prog_compiler_static_CXX
='-static'
22106 # Portland Group C++ compiler
22107 lt_prog_compiler_wl_CXX
='-Wl,'
22108 lt_prog_compiler_pic_CXX
='-fpic'
22109 lt_prog_compiler_static_CXX
='-Bstatic'
22113 # Make sure the PIC flag is empty. It appears that all Alpha
22114 # Linux and Compaq Tru64 Unix objects are PIC.
22115 lt_prog_compiler_pic_CXX
=
22116 lt_prog_compiler_static_CXX
='-non_shared'
22118 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
22119 # IBM XL 8.0, 9.0 on PPC and BlueGene
22120 lt_prog_compiler_wl_CXX
='-Wl,'
22121 lt_prog_compiler_pic_CXX
='-qpic'
22122 lt_prog_compiler_static_CXX
='-qstaticlink'
22125 case `$CC -V 2>&1 | sed 5q` in
22128 lt_prog_compiler_pic_CXX
='-KPIC'
22129 lt_prog_compiler_static_CXX
='-Bstatic'
22130 lt_prog_compiler_wl_CXX
='-Qoption ld '
22141 case $cc_basename in
22143 lt_prog_compiler_pic_CXX
='-W c,exportall'
22152 # QNX uses GNU C++, but need to define -shared option too, otherwise
22153 # it will coredump.
22154 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22156 osf3
* | osf4
* | osf5
*)
22157 case $cc_basename in
22159 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22162 # Rational C++ 2.4.1
22163 lt_prog_compiler_pic_CXX
='-pic'
22166 # Digital/Compaq C++
22167 lt_prog_compiler_wl_CXX
='-Wl,'
22168 # Make sure the PIC flag is empty. It appears that all Alpha
22169 # Linux and Compaq Tru64 Unix objects are PIC.
22170 lt_prog_compiler_pic_CXX
=
22171 lt_prog_compiler_static_CXX
='-non_shared'
22180 case $cc_basename in
22182 # Sun C++ 4.2, 5.x and Centerline C++
22183 lt_prog_compiler_pic_CXX
='-KPIC'
22184 lt_prog_compiler_static_CXX
='-Bstatic'
22185 lt_prog_compiler_wl_CXX
='-Qoption ld '
22188 # Green Hills C++ Compiler
22189 lt_prog_compiler_pic_CXX
='-PIC'
22196 case $cc_basename in
22199 lt_prog_compiler_pic_CXX
='-pic'
22200 lt_prog_compiler_static_CXX
='-Bstatic'
22204 lt_prog_compiler_pic_CXX
='-pic'
22210 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22211 case $cc_basename in
22213 lt_prog_compiler_wl_CXX
='-Wl,'
22214 lt_prog_compiler_pic_CXX
='-KPIC'
22215 lt_prog_compiler_static_CXX
='-Bstatic'
22220 case $cc_basename in
22222 # NonStop-UX NCC 3.20
22223 lt_prog_compiler_pic_CXX
='-KPIC'
22232 lt_prog_compiler_can_build_shared_CXX
=no
22238 # For platforms which do not support PIC, -DPIC is meaningless:
22240 lt_prog_compiler_pic_CXX
=
22243 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22247 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22252 # Check to make sure the PIC flag actually works.
22254 if test -n "$lt_prog_compiler_pic_CXX"; then
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22257 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22258 $as_echo_n "(cached) " >&6
22260 lt_cv_prog_compiler_pic_works_CXX
=no
22261 ac_outfile
=conftest.
$ac_objext
22262 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22263 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22264 # Insert the option either (1) after the last *FLAGS variable, or
22265 # (2) before a word containing "conftest.", or (3) at the end.
22266 # Note that $ac_compile itself does not contain backslashes and begins
22267 # with a dollar sign (not a hyphen), so the echo should work correctly.
22268 # The option is referenced via a variable to avoid confusing sed.
22269 lt_compile
=`echo "$ac_compile" | $SED \
22270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22272 -e 's:$: $lt_compiler_flag:'`
22273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22274 (eval "$lt_compile" 2>conftest.err
)
22276 cat conftest.err
>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 if (exit $ac_status) && test -s "$ac_outfile"; then
22279 # The compiler can only warn and ignore the option if not recognized
22280 # So say no if there are warnings other than the usual output.
22281 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22282 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22283 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22284 lt_cv_prog_compiler_pic_works_CXX
=yes
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22291 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22293 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22294 case $lt_prog_compiler_pic_CXX in
22296 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22299 lt_prog_compiler_pic_CXX
=
22300 lt_prog_compiler_can_build_shared_CXX
=no
22308 # Check to make sure the static flag actually works.
22310 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22313 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22314 $as_echo_n "(cached) " >&6
22316 lt_cv_prog_compiler_static_works_CXX
=no
22317 save_LDFLAGS
="$LDFLAGS"
22318 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22319 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22320 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22321 # The linker can only warn and ignore the option if not recognized
22322 # So say no if there are warnings
22323 if test -s conftest.err
; then
22324 # Append any errors to the config.log.
22325 cat conftest.err
1>&5
22326 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22327 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22328 if diff conftest.exp conftest.er2
>/dev
/null
; then
22329 lt_cv_prog_compiler_static_works_CXX
=yes
22332 lt_cv_prog_compiler_static_works_CXX
=yes
22336 LDFLAGS
="$save_LDFLAGS"
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22342 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22345 lt_prog_compiler_static_CXX
=
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22353 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22354 $as_echo_n "(cached) " >&6
22356 lt_cv_prog_compiler_c_o_CXX
=no
22357 $RM -r conftest
2>/dev
/null
22361 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22363 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22364 # Insert the option either (1) after the last *FLAGS variable, or
22365 # (2) before a word containing "conftest.", or (3) at the end.
22366 # Note that $ac_compile itself does not contain backslashes and begins
22367 # with a dollar sign (not a hyphen), so the echo should work correctly.
22368 lt_compile
=`echo "$ac_compile" | $SED \
22369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22371 -e 's:$: $lt_compiler_flag:'`
22372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22373 (eval "$lt_compile" 2>out
/conftest.err
)
22375 cat out
/conftest.err
>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22379 # The compiler can only warn and ignore the option if not recognized
22380 # So say no if there are warnings
22381 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22382 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22383 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22384 lt_cv_prog_compiler_c_o_CXX
=yes
22389 # SGI C++ compiler will create directory out/ii_files/ for
22390 # template instantiation
22391 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22392 $RM out
/* && rmdir out
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22405 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22406 $as_echo_n "(cached) " >&6
22408 lt_cv_prog_compiler_c_o_CXX
=no
22409 $RM -r conftest
2>/dev
/null
22413 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22415 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22416 # Insert the option either (1) after the last *FLAGS variable, or
22417 # (2) before a word containing "conftest.", or (3) at the end.
22418 # Note that $ac_compile itself does not contain backslashes and begins
22419 # with a dollar sign (not a hyphen), so the echo should work correctly.
22420 lt_compile
=`echo "$ac_compile" | $SED \
22421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22423 -e 's:$: $lt_compiler_flag:'`
22424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22425 (eval "$lt_compile" 2>out
/conftest.err
)
22427 cat out
/conftest.err
>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22431 # The compiler can only warn and ignore the option if not recognized
22432 # So say no if there are warnings
22433 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22434 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22435 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22436 lt_cv_prog_compiler_c_o_CXX
=yes
22441 # SGI C++ compiler will create directory out/ii_files/ for
22442 # template instantiation
22443 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22444 $RM out
/* && rmdir out
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22456 hard_links
="nottested"
22457 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22458 # do not overwrite the value of need_locks provided by the user
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22460 $as_echo_n "checking if we can lock with hard links... " >&6; }
22463 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22465 ln conftest.a conftest.b
2>&5 || hard_links
=no
22466 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22468 $as_echo "$hard_links" >&6; }
22469 if test "$hard_links" = no
; then
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22483 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22486 # If we're using GNU nm, then we don't want the "-C" option.
22487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22488 # Also, AIX nm treats weak defined symbols like other global defined
22489 # symbols, whereas GNU nm marks them as "W".
22490 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22491 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'
22493 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'
22497 export_symbols_cmds_CXX
="$ltdll_cmds"
22499 cygwin
* | mingw
* | cegcc
*)
22500 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'
22503 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22506 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22509 $as_echo "$ld_shlibs_CXX" >&6; }
22510 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22512 with_gnu_ld_CXX
=$with_gnu_ld
22520 # Do we need to explicitly link libc?
22522 case "x$archive_cmds_need_lc_CXX" in
22524 # Assume -lc should be added
22525 archive_cmds_need_lc_CXX
=yes
22527 if test "$enable_shared" = yes && test "$GCC" = yes; then
22528 case $archive_cmds_CXX in
22530 # FIXME: we may have to deal with multi-command sequences.
22533 # Test whether the compiler implicitly links with -lc since on some
22534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22535 # to ld, don't add -lc before -lgcc.
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22538 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22539 $as_echo_n "(cached) " >&6
22542 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22545 (eval $ac_compile) 2>&5
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; } 2>conftest.err
; then
22551 libobjs
=conftest.
$ac_objext
22553 wl
=$lt_prog_compiler_wl_CXX
22554 pic_flag
=$lt_prog_compiler_pic_CXX
22560 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22561 allow_undefined_flag_CXX
=
22562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22563 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }
22568 lt_cv_archive_cmds_need_lc_CXX
=no
22570 lt_cv_archive_cmds_need_lc_CXX
=yes
22572 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22574 cat conftest.err
1>&5
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22580 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22581 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22652 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22654 library_names_spec
=
22655 libname_spec
='lib$name'
22659 postuninstall_cmds
=
22663 shlibpath_overrides_runpath
=unknown
22665 dynamic_linker
="$host_os ld.so"
22666 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22667 need_lib_prefix
=unknown
22668 hardcode_into_libs
=no
22670 # when you set need_version to no, make sure it does not cause -set_version
22671 # flags to be left without arguments
22672 need_version
=unknown
22677 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22678 shlibpath_var
=LIBPATH
22680 # AIX 3 has no versioning support, so we append a major version to the name.
22681 soname_spec
='${libname}${release}${shared_ext}$major'
22688 hardcode_into_libs
=yes
22689 if test "$host_cpu" = ia64
; then
22690 # AIX 5 supports IA64
22691 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22692 shlibpath_var
=LD_LIBRARY_PATH
22694 # With GCC up to 2.95.x, collect2 would create an import file
22695 # for dependence libraries. The import file would start with
22696 # the line `#! .'. This would cause the generated library to
22697 # depend on `.', always an invalid library. This was fixed in
22698 # development snapshots of GCC prior to 3.0.
22700 aix4 | aix4.
[01] | aix4.
[01].
*)
22701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22703 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22706 can_build_shared
=no
22710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22711 # soname into executable. Probably we can add versioning support to
22712 # collect2, so additional links can be useful in future.
22713 if test "$aix_use_runtimelinking" = yes; then
22714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22715 # instead of lib<name>.a to let people know that these are not
22716 # typical AIX shared libraries.
22717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22719 # We preserve .a as extension for shared libraries through AIX4.2
22720 # and later when we are not doing run time linking.
22721 library_names_spec
='${libname}${release}.a $libname.a'
22722 soname_spec
='${libname}${release}${shared_ext}$major'
22724 shlibpath_var
=LIBPATH
22731 # Since July 2007 AmigaOS4 officially supports .so libraries.
22732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22736 library_names_spec
='$libname.ixlibrary $libname.a'
22737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22738 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'
22744 library_names_spec
='${libname}${shared_ext}'
22745 dynamic_linker
="$host_os ld.so"
22746 shlibpath_var
=LIBRARY_PATH
22752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22753 soname_spec
='${libname}${release}${shared_ext}$major'
22754 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22755 shlibpath_var
=LD_LIBRARY_PATH
22756 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22757 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22758 # the default ld.so.conf also contains /usr/contrib/lib and
22759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22760 # libtool to hard-code these into programs
22763 cygwin
* | mingw
* | pw32
* | cegcc
*)
22764 version_type
=windows
22769 case $GCC,$host_os in
22770 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22771 library_names_spec
='$libname.dll.a'
22772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22773 postinstall_cmds
='base_file=`basename \${file}`~
22774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22775 dldir=$destdir/`dirname \$dlpath`~
22776 test -d \$dldir || mkdir -p \$dldir~
22777 $install_prog $dir/$dlname \$dldir/$dlname~
22778 chmod a+x \$dldir/$dlname~
22779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22782 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22783 dlpath=$dir/\$dldll~
22785 shlibpath_overrides_runpath
=yes
22789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22790 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794 # MinGW DLLs use traditional 'lib' prefix
22795 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22798 # pw32 DLLs use 'pw' prefix rather than 'lib'
22799 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22805 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22808 dynamic_linker
='Win32 ld.exe'
22809 # FIXME: first we should search . and the directory the executable is in
22813 darwin
* | rhapsody
*)
22814 dynamic_linker
="$host_os dyld"
22815 version_type
=darwin
22818 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22819 soname_spec
='${libname}${release}${major}$shared_ext'
22820 shlibpath_overrides_runpath
=yes
22821 shlibpath_var
=DYLD_LIBRARY_PATH
22822 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22824 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22832 soname_spec
='${libname}${release}${shared_ext}$major'
22833 shlibpath_var
=LD_LIBRARY_PATH
22836 freebsd
* | dragonfly
*)
22837 # DragonFly does not have aout. When/if they implement a new
22838 # versioning mechanism, adjust this.
22839 if test -x /usr
/bin
/objformat
; then
22840 objformat
=`/usr/bin/objformat`
22843 freebsd
[23].
*) objformat
=aout
;;
22844 *) objformat
=elf
;;
22847 version_type
=freebsd-
$objformat
22848 case $version_type in
22850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22855 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22859 shlibpath_var
=LD_LIBRARY_PATH
22862 shlibpath_overrides_runpath
=yes
22864 freebsd3.
[01]* | freebsdelf3.
[01]*)
22865 shlibpath_overrides_runpath
=yes
22866 hardcode_into_libs
=yes
22868 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22869 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22870 shlibpath_overrides_runpath
=no
22871 hardcode_into_libs
=yes
22873 *) # from 4.6 on, and DragonFly
22874 shlibpath_overrides_runpath
=yes
22875 hardcode_into_libs
=yes
22884 dynamic_linker
="$host_os runtime_loader"
22885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22886 soname_spec
='${libname}${release}${shared_ext}$major'
22887 shlibpath_var
=LIBRARY_PATH
22888 shlibpath_overrides_runpath
=yes
22889 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22890 hardcode_into_libs
=yes
22893 hpux9
* | hpux10
* | hpux11
*)
22894 # Give a soname corresponding to the major version so that dld.sl refuses to
22895 # link against other versions.
22902 hardcode_into_libs
=yes
22903 dynamic_linker
="$host_os dld.so"
22904 shlibpath_var
=LD_LIBRARY_PATH
22905 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 soname_spec
='${libname}${release}${shared_ext}$major'
22908 if test "X$HPUX_IA64_MODE" = X32
; then
22909 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22911 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22913 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22917 hardcode_into_libs
=yes
22918 dynamic_linker
="$host_os dld.sl"
22919 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22920 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22922 soname_spec
='${libname}${release}${shared_ext}$major'
22923 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22924 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22928 dynamic_linker
="$host_os dld.sl"
22929 shlibpath_var
=SHLIB_PATH
22930 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22932 soname_spec
='${libname}${release}${shared_ext}$major'
22935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22936 postinstall_cmds
='chmod 555 $lib'
22937 # or fails outright, so override atomically:
22938 install_override_mode
=555
22945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22946 soname_spec
='${libname}${release}${shared_ext}$major'
22947 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22948 shlibpath_var
=LD_LIBRARY_PATH
22949 shlibpath_overrides_runpath
=no
22950 hardcode_into_libs
=yes
22953 irix5
* | irix6
* | nonstopux
*)
22955 nonstopux
*) version_type
=nonstopux
;;
22957 if test "$lt_cv_prog_gnu_ld" = yes; then
22965 soname_spec
='${libname}${release}${shared_ext}$major'
22966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22968 irix5
* | nonstopux
*)
22969 libsuff
= shlibsuff
=
22972 case $LD in # libtool.m4 will add one of these switches to LD
22973 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22974 libsuff
= shlibsuff
= libmagic
=32-bit;;
22975 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22976 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22977 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22978 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22979 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22983 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22984 shlibpath_overrides_runpath
=no
22985 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22986 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22987 hardcode_into_libs
=yes
22990 # No shared lib support for Linux oldld, aout, or coff.
22991 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22995 # This must be Linux ELF.
22997 # uclinux* changes (here and below) have been submitted to the libtool
22998 # project, but have not yet been accepted: they are GCC-local changes
22999 # for the time being. (See
23000 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
23001 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
23005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23006 soname_spec
='${libname}${release}${shared_ext}$major'
23007 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23008 shlibpath_var
=LD_LIBRARY_PATH
23009 shlibpath_overrides_runpath
=no
23011 # Some binutils ld are patched to set DT_RUNPATH
23012 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
23013 $as_echo_n "(cached) " >&6
23015 lt_cv_shlibpath_overrides_runpath
=no
23016 save_LDFLAGS
=$LDFLAGS
23017 save_libdir
=$libdir
23018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23031 if ac_fn_cxx_try_link
"$LINENO"; then :
23032 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
23033 lt_cv_shlibpath_overrides_runpath
=yes
23036 rm -f core conftest.err conftest.
$ac_objext \
23037 conftest
$ac_exeext conftest.
$ac_ext
23038 LDFLAGS
=$save_LDFLAGS
23039 libdir
=$save_libdir
23043 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
23045 # This implies no fast_install, which is unacceptable.
23046 # Some rework will be needed to allow for fast_install
23047 # before this can be enabled.
23048 hardcode_into_libs
=yes
23050 # Append ld.so.conf contents to the search path
23051 if test -f /etc
/ld.so.conf
; then
23052 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' ' '`
23053 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23056 # We used to test for /lib/ld.so.1 and disable shared libraries on
23057 # powerpc, because MkLinux only supported shared libraries with the
23058 # GNU dynamic linker. Since this was broken with cross compilers,
23059 # most powerpc-linux boxes support dynamic linking these days and
23060 # people can always --disable-shared, the test was removed, and we
23061 # assume the GNU/Linux dynamic linker is in use.
23062 dynamic_linker
='GNU/Linux ld.so'
23069 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
23070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23071 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23072 dynamic_linker
='NetBSD (a.out) ld.so'
23074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23075 soname_spec
='${libname}${release}${shared_ext}$major'
23076 dynamic_linker
='NetBSD ld.elf_so'
23078 shlibpath_var
=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath
=yes
23080 hardcode_into_libs
=yes
23085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086 shlibpath_var
=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath
=yes
23094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 soname_spec
='${libname}${release}${shared_ext}$major'
23096 shlibpath_var
=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath
=no
23098 hardcode_into_libs
=yes
23099 dynamic_linker
='ldqnx.so'
23104 sys_lib_dlsearch_path_spec
="/usr/lib"
23106 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23108 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23109 *) need_version
=no
;;
23111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23112 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23113 shlibpath_var
=LD_LIBRARY_PATH
23114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23116 openbsd2.
[89] | openbsd2.
[89].
*)
23117 shlibpath_overrides_runpath
=no
23120 shlibpath_overrides_runpath
=yes
23124 shlibpath_overrides_runpath
=yes
23129 libname_spec
='$name'
23132 library_names_spec
='$libname${shared_ext} $libname.a'
23133 dynamic_linker
='OS/2 ld.exe'
23134 shlibpath_var
=LIBPATH
23137 osf3
* | osf4
* | osf5
*)
23141 soname_spec
='${libname}${release}${shared_ext}$major'
23142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23143 shlibpath_var
=LD_LIBRARY_PATH
23144 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23145 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23157 soname_spec
='${libname}${release}${shared_ext}$major'
23158 shlibpath_var
=LD_LIBRARY_PATH
23159 shlibpath_overrides_runpath
=yes
23160 hardcode_into_libs
=yes
23161 # ldd complains unless libraries are executable
23162 postinstall_cmds
='chmod +x $lib'
23167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23168 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23169 shlibpath_var
=LD_LIBRARY_PATH
23170 shlibpath_overrides_runpath
=yes
23171 if test "$with_gnu_ld" = yes; then
23179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec
='${libname}${release}${shared_ext}$major'
23181 shlibpath_var
=LD_LIBRARY_PATH
23182 case $host_vendor in
23184 shlibpath_overrides_runpath
=no
23186 runpath_var
=LD_RUN_PATH
23194 shlibpath_overrides_runpath
=no
23195 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23201 if test -d /usr
/nec
;then
23203 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23204 soname_spec
='$libname${shared_ext}.$major'
23205 shlibpath_var
=LD_LIBRARY_PATH
23209 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23210 version_type
=freebsd-elf
23213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23214 soname_spec
='${libname}${release}${shared_ext}$major'
23215 shlibpath_var
=LD_LIBRARY_PATH
23216 shlibpath_overrides_runpath
=yes
23217 hardcode_into_libs
=yes
23218 if test "$with_gnu_ld" = yes; then
23219 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23221 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23224 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23228 sys_lib_dlsearch_path_spec
='/usr/lib'
23232 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23237 shlibpath_var
=LD_LIBRARY_PATH
23238 shlibpath_overrides_runpath
=no
23239 hardcode_into_libs
=yes
23244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23245 soname_spec
='${libname}${release}${shared_ext}$major'
23246 shlibpath_var
=LD_LIBRARY_PATH
23249 # Shared libraries for VwWorks, >= 7 only at this stage
23250 # and (fpic) still incompatible with "large" code models
23251 # in a few configurations. Only for RTP mode in any case,
23252 # and upon explicit request at configure time.
23255 case ${with_multisubdir}-${enable_shared} in
23262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23263 soname_spec
='${libname}${release}${shared_ext}$major'
23264 dynamic_linker
="$host_os module_loader"
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23273 $as_echo "$dynamic_linker" >&6; }
23274 test "$dynamic_linker" = no
&& can_build_shared
=no
23276 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23277 if test "$GCC" = yes; then
23278 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23281 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23282 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23284 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23285 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23327 hardcode_action_CXX
=
23328 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23329 test -n "$runpath_var_CXX" ||
23330 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23332 # We can hardcode non-existent directories.
23333 if test "$hardcode_direct_CXX" != no
&&
23334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23335 # have to relink, otherwise we might link with an installed library
23336 # when we should be linking with a yet-to-be-installed one
23337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23338 test "$hardcode_minus_L_CXX" != no
; then
23339 # Linking always hardcodes the temporary library directory.
23340 hardcode_action_CXX
=relink
23342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23343 hardcode_action_CXX
=immediate
23346 # We cannot hardcode anything, or else we can only hardcode existing
23348 hardcode_action_CXX
=unsupported
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23351 $as_echo "$hardcode_action_CXX" >&6; }
23353 if test "$hardcode_action_CXX" = relink ||
23354 test "$inherit_rpath_CXX" = yes; then
23355 # Fast installation is not supported
23356 enable_fast_install
=no
23357 elif test "$shlibpath_overrides_runpath" = yes ||
23358 test "$enable_shared" = no
; then
23359 # Fast installation is not necessary
23360 enable_fast_install
=needless
23369 fi # test -n "$compiler"
23375 with_gnu_ld
=$lt_save_with_gnu_ld
23376 lt_cv_path_LDCXX
=$lt_cv_path_LD
23377 lt_cv_path_LD
=$lt_save_path_LD
23378 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23379 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23380 fi # test "$_lt_caught_CXX_error" != yes
23383 ac_cpp
='$CXXCPP $CPPFLAGS'
23384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23403 # Only expand once:
23409 if test x
$enable_darwin_at_rpath = xyes
; then
23410 ENABLE_DARWIN_AT_RPATH_TRUE
=
23411 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
23413 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
23414 ENABLE_DARWIN_AT_RPATH_FALSE
=
23417 DARWIN_DO_EXTRA_RPATH
=0
23419 # Check whether --with-darwin-extra-rpath was given.
23420 if test "${with_darwin_extra_rpath+set}" = set; then :
23421 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
23422 DARWIN_ADD_RPATH
="$withval"
23423 DARWIN_DO_EXTRA_RPATH
=1
23428 cat >>confdefs.h
<<_ACEOF
23429 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
23433 cat >>confdefs.h
<<_ACEOF
23434 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
23438 # Identify the assembler which will work hand-in-glove with the newly
23439 # built GCC, so that we can examine its features. This is the assembler
23440 # which will be driven by the driver program.
23442 # If build != host, and we aren't building gas in-tree, we identify a
23443 # build->target assembler and hope that it will have the same features
23444 # as the host->target assembler we'll be using.
23445 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23447 if ${gcc_cv_as+:} false
; then :
23451 if test -x "$DEFAULT_ASSEMBLER"; then
23452 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23453 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23454 && test -f ..
/gas
/Makefile \
23455 && test x
$build = x
$host; then
23456 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23457 elif test -x as
$build_exeext; then
23458 # Build using assembler in the current directory.
23459 gcc_cv_as
=.
/as
$build_exeext
23460 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23461 gcc_cv_as
="$AS_FOR_TARGET"
23463 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23464 set dummy
$AS_FOR_TARGET; ac_word
=$2
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23466 $as_echo_n "checking for $ac_word... " >&6; }
23467 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23468 $as_echo_n "(cached) " >&6
23472 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23476 for as_dir
in $PATH
23479 test -z "$as_dir" && as_dir
=.
23480 for ac_exec_ext
in '' $ac_executable_extensions; do
23481 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23482 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23493 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23494 if test -n "$gcc_cv_as"; then
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23496 $as_echo "$gcc_cv_as" >&6; }
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23499 $as_echo "no" >&6; }
23506 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23508 case "$ORIGINAL_AS_FOR_TARGET" in
23509 .
/as | .
/as
$build_exeext) ;;
23510 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23515 # Check whether --enable-ld was given.
23516 if test "${enable_ld+set}" = set; then :
23517 enableval
=$enable_ld; case "${enableval}" in
23525 install_gold_as_default
=no
23526 # Check whether --enable-gold was given.
23527 if test "${enable_gold+set}" = set; then :
23528 enableval
=$enable_gold; case "${enableval}" in
23530 install_gold_as_default
=yes
23533 if test x
${default_ld} != x
; then
23534 install_gold_as_default
=yes
23540 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23546 # Identify the linker which will work hand-in-glove with the newly
23547 # built GCC, so that we can examine its features. This is the linker
23548 # which will be driven by the driver program.
23550 # If build != host, and we aren't building gas in-tree, we identify a
23551 # build->target linker and hope that it will have the same features
23552 # as the host->target linker we'll be using.
23553 gcc_cv_gld_major_version
=
23554 gcc_cv_gld_minor_version
=
23555 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23556 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23557 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23559 if ${gcc_cv_ld+:} false
; then :
23563 if test -x "$DEFAULT_LINKER"; then
23564 gcc_cv_ld
="$DEFAULT_LINKER"
23565 elif test $install_gold_as_default = yes \
23566 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23567 && test -f ..
/gold
/Makefile \
23568 && test x
$build = x
$host; then
23569 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23570 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23571 && test -f ..
/ld
/Makefile \
23572 && test x
$build = x
$host; then
23573 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23574 elif test -x collect-ld
$build_exeext; then
23575 # Build using linker in the current directory.
23576 gcc_cv_ld
=.
/collect-ld
$build_exeext
23577 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23578 gcc_cv_ld
="$LD_FOR_TARGET"
23580 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23581 set dummy
$LD_FOR_TARGET; ac_word
=$2
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23583 $as_echo_n "checking for $ac_word... " >&6; }
23584 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23585 $as_echo_n "(cached) " >&6
23589 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23593 for as_dir
in $PATH
23596 test -z "$as_dir" && as_dir
=.
23597 for ac_exec_ext
in '' $ac_executable_extensions; do
23598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23599 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23610 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23611 if test -n "$gcc_cv_ld"; then
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23613 $as_echo "$gcc_cv_ld" >&6; }
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23623 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23624 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23625 # if the PLUGIN_LD is set ld-new, just have it as ld
23626 # as that is the installed named.
23627 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23628 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23629 PLUGIN_LD_SUFFIX
=ld
23632 # Check whether --with-plugin-ld was given.
23633 if test "${with_plugin_ld+set}" = set; then :
23634 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23635 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23636 PLUGIN_LD_SUFFIX
="$withval"
23642 cat >>confdefs.h
<<_ACEOF
23643 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23647 # Check to see if we are using gold instead of ld
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23649 $as_echo_n "checking whether we are using gold... " >&6; }
23651 if test x
$gcc_cv_ld != x
; then
23652 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23653 |
grep "GNU gold" > /dev
/null
; then
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23658 $as_echo "$ld_is_gold" >&6; }
23660 # Check to see if we are using mold instead of ld
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23662 $as_echo_n "checking whether we are using mold... " >&6; }
23664 if test x
$gcc_cv_ld != x
; then
23665 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23666 |
grep "mold" > /dev
/null
; then
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23671 $as_echo "$ld_is_mold" >&6; }
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23675 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23676 # Check to see if default ld is not gold, but gold is
23677 # available and has support for split stack. If gcc was configured
23678 # with gold then no checking is done.
23680 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23682 # For platforms other than powerpc64*, enable as appropriate.
23684 gold_non_default
=no
23685 ld_gold
=`which ${gcc_cv_ld}.gold`
23686 # Make sure this gold has minimal split stack support
23687 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23688 ld_vers
=`$ld_gold --version | sed 1q`
23689 gold_vers
=`echo $ld_vers | sed -n \
23690 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23692 # check that the gold version contains the complete split stack support
23693 # on powerpc64 big and little endian
23695 case "$gold_vers" in
23696 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23698 *) gold_non_default
=no
23704 if test $gold_non_default = yes; then
23706 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23711 $as_echo "$gold_non_default" >&6; }
23713 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23715 case "$ORIGINAL_LD_FOR_TARGET" in
23716 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23717 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23722 $as_echo_n "checking what linker to use... " >&6; }
23723 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23724 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23725 # Single tree build which includes ld. We want to prefer it
23726 # over whatever linker top-level may have detected, since
23727 # we'll use what we're building after installation anyway.
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23729 $as_echo "newly built ld" >&6; }
23731 in_tree_ld_is_elf
=no
23732 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23733 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23734 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23735 in_tree_ld_is_elf
=yes
23736 elif test "$ld_is_gold" = yes; then
23737 in_tree_ld_is_elf
=yes
23739 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
23741 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23742 if test x
$gcc_cv_gld_version != x
; then
23746 case $gcc_cv_gld_version in
23748 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23750 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23751 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23752 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23753 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23756 $as_echo "$gcc_cv_ld" >&6; }
23758 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23759 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23760 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23766 # Figure out what nm we will be using.
23767 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23768 if ${gcc_cv_nm+:} false
; then :
23772 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23773 && test -f ..
/binutils
/Makefile \
23774 && test x
$build = x
$host; then
23775 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23776 elif test -x nm
$build_exeext; then
23777 gcc_cv_nm
=.
/nm
$build_exeext
23778 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23779 gcc_cv_nm
="$NM_FOR_TARGET"
23781 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23782 set dummy
$NM_FOR_TARGET; ac_word
=$2
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23784 $as_echo_n "checking for $ac_word... " >&6; }
23785 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23786 $as_echo_n "(cached) " >&6
23790 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23794 for as_dir
in $PATH
23797 test -z "$as_dir" && as_dir
=.
23798 for ac_exec_ext
in '' $ac_executable_extensions; do
23799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23800 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23811 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23812 if test -n "$gcc_cv_nm"; then
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23814 $as_echo "$gcc_cv_nm" >&6; }
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23825 $as_echo_n "checking what nm to use... " >&6; }
23826 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23827 # Single tree build which includes binutils.
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23829 $as_echo "newly built nm" >&6; }
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23833 $as_echo "$gcc_cv_nm" >&6; }
23837 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23839 case "$ORIGINAL_NM_FOR_TARGET" in
23840 .
/nm | .
/nm
$build_exeext) ;;
23841 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23846 # Figure out what objdump we will be using.
23847 if ${gcc_cv_objdump+:} false
; then :
23851 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23852 && test -f ..
/binutils
/Makefile \
23853 && test x
$build = x
$host; then
23854 # Single tree build which includes binutils.
23855 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23856 elif test -x objdump
$build_exeext; then
23857 gcc_cv_objdump
=.
/objdump
$build_exeext
23858 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23859 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23861 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23862 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23864 $as_echo_n "checking for $ac_word... " >&6; }
23865 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23866 $as_echo_n "(cached) " >&6
23868 case $gcc_cv_objdump in
23870 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23874 for as_dir
in $PATH
23877 test -z "$as_dir" && as_dir
=.
23878 for ac_exec_ext
in '' $ac_executable_extensions; do
23879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23880 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23891 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23892 if test -n "$gcc_cv_objdump"; then
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23894 $as_echo "$gcc_cv_objdump" >&6; }
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23905 $as_echo_n "checking what objdump to use... " >&6; }
23906 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23907 # Single tree build which includes binutils.
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23909 $as_echo "newly built objdump" >&6; }
23910 elif test x
$gcc_cv_objdump = x
; then
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23912 $as_echo "not found" >&6; }
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23915 $as_echo "$gcc_cv_objdump" >&6; }
23918 # Figure out what readelf we will be using.
23919 if ${gcc_cv_readelf+:} false
; then :
23923 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23924 && test -f ..
/binutils
/Makefile \
23925 && test x
$build = x
$host; then
23926 # Single tree build which includes binutils.
23927 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23928 elif test -x readelf
$build_exeext; then
23929 gcc_cv_readelf
=.
/readelf
$build_exeext
23930 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23931 gcc_cv_readelf
="$READELF_FOR_TARGET"
23933 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23934 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23936 $as_echo_n "checking for $ac_word... " >&6; }
23937 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23938 $as_echo_n "(cached) " >&6
23940 case $gcc_cv_readelf in
23942 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23946 for as_dir
in $PATH
23949 test -z "$as_dir" && as_dir
=.
23950 for ac_exec_ext
in '' $ac_executable_extensions; do
23951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23952 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23963 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23964 if test -n "$gcc_cv_readelf"; then
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23966 $as_echo "$gcc_cv_readelf" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23969 $as_echo "no" >&6; }
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23977 $as_echo_n "checking what readelf to use... " >&6; }
23978 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23979 # Single tree build which includes binutils.
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23981 $as_echo "newly built readelf" >&6; }
23982 elif test x
$gcc_cv_readelf = x
; then
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23984 $as_echo "not found" >&6; }
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23987 $as_echo "$gcc_cv_readelf" >&6; }
23990 # Figure out what otool we will be using.
23991 if ${gcc_cv_otool+:} false
; then :
23995 if test -x otool
$build_exeext; then
23996 gcc_cv_otool
=.
/otool
$build_exeext
23997 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23998 gcc_cv_otool
="$OTOOL_FOR_TARGET"
24000 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
24001 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24003 $as_echo_n "checking for $ac_word... " >&6; }
24004 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
24005 $as_echo_n "(cached) " >&6
24007 case $gcc_cv_otool in
24009 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
24012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24013 for as_dir
in $PATH
24016 test -z "$as_dir" && as_dir
=.
24017 for ac_exec_ext
in '' $ac_executable_extensions; do
24018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24019 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
24020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24030 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
24031 if test -n "$gcc_cv_otool"; then
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24033 $as_echo "$gcc_cv_otool" >&6; }
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
24044 $as_echo_n "checking what otool to use... " >&6; }
24045 if test x
$gcc_cv_otool = x
; then
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24047 $as_echo "not found" >&6; }
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24050 $as_echo "$gcc_cv_otool" >&6; }
24053 # Figure out the dsymutil we will use.
24054 if ${gcc_cv_dsymutil+:} false
; then :
24058 if test -x "$DEFAULT_DSYMUTIL"; then
24059 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
24060 elif test -x dsymutil
$build_exeext; then
24061 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
24062 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
24063 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
24064 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
24065 gcc_cv_dsymutil
=$DSYMUTIL
24067 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
24068 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24070 $as_echo_n "checking for $ac_word... " >&6; }
24071 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
24072 $as_echo_n "(cached) " >&6
24074 case $gcc_cv_dsymutil in
24076 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
24079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24080 for as_dir
in $PATH
24083 test -z "$as_dir" && as_dir
=.
24084 for ac_exec_ext
in '' $ac_executable_extensions; do
24085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24086 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
24087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24097 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
24098 if test -n "$gcc_cv_dsymutil"; then
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
24100 $as_echo "$gcc_cv_dsymutil" >&6; }
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24110 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
24112 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
24113 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
24114 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
24118 # Figure out what assembler alignment features are present.
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
24120 $as_echo_n "checking assembler flags... " >&6; }
24121 if ${gcc_cv_as_flags+:} false
; then :
24122 $as_echo_n "(cached) " >&6
24125 i
[34567]86-*-linux*)
24126 gcc_cv_as_flags
=--32
24128 x86_64-
*-linux-gnux32)
24129 gcc_cv_as_flags
=--x32
24132 gcc_cv_as_flags
=--64
24134 powerpc
*-*-darwin*)
24135 gcc_cv_as_flags
="-arch ppc"
24138 gcc_cv_as_flags
=" "
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24143 $as_echo "$gcc_cv_as_flags" >&6; }
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24146 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24147 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
24148 $as_echo_n "(cached) " >&6
24150 gcc_cv_as_balign_and_p2align
=no
24151 if test x
$gcc_cv_as != x
; then
24152 $as_echo '.balign 4
24153 .p2align 2' > conftest.s
24154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24156 (eval $ac_try) 2>&5
24158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24159 test $ac_status = 0; }; }
24161 gcc_cv_as_balign_and_p2align
=yes
24163 echo "configure: failed program was" >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24170 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24171 if test $gcc_cv_as_balign_and_p2align = yes; then
24173 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24179 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24180 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
24181 $as_echo_n "(cached) " >&6
24183 gcc_cv_as_max_skip_p2align
=no
24184 if test x
$gcc_cv_as != x
; then
24185 $as_echo '.p2align 4,,7' > conftest.s
24186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24193 gcc_cv_as_max_skip_p2align
=yes
24195 echo "configure: failed program was" >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24202 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24203 if test $gcc_cv_as_max_skip_p2align = yes; then
24205 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24211 $as_echo_n "checking assembler for .literal16... " >&6; }
24212 if ${gcc_cv_as_literal16+:} false
; then :
24213 $as_echo_n "(cached) " >&6
24215 gcc_cv_as_literal16
=no
24216 if test x
$gcc_cv_as != x
; then
24217 $as_echo '.literal16' > conftest.s
24218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24220 (eval $ac_try) 2>&5
24222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223 test $ac_status = 0; }; }
24225 gcc_cv_as_literal16
=yes
24227 echo "configure: failed program was" >&5
24230 rm -f conftest.o conftest.s
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24234 $as_echo "$gcc_cv_as_literal16" >&6; }
24235 if test $gcc_cv_as_literal16 = yes; then
24237 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24243 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24244 if ${gcc_cv_as_subsection_m1+:} false
; then :
24245 $as_echo_n "(cached) " >&6
24247 gcc_cv_as_subsection_m1
=no
24248 if test x
$gcc_cv_as != x
; then
24249 $as_echo 'conftest_label1: .word 0
24251 conftest_label2: .word 0
24252 .previous' > conftest.s
24253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24255 (eval $ac_try) 2>&5
24257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24258 test $ac_status = 0; }; }
24260 if test x
$gcc_cv_nm != x
; then
24261 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24262 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24263 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24265 else gcc_cv_as_subsection_m1
=yes
24267 rm -f conftest.nm1 conftest.nm2
24270 echo "configure: failed program was" >&5
24273 rm -f conftest.o conftest.s
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24277 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24278 if test $gcc_cv_as_subsection_m1 = yes; then
24280 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24286 $as_echo_n "checking assembler for .weak... " >&6; }
24287 if ${gcc_cv_as_weak+:} false
; then :
24288 $as_echo_n "(cached) " >&6
24291 if test x
$gcc_cv_as != x
; then
24292 $as_echo ' .weak foobar' > conftest.s
24293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24295 (eval $ac_try) 2>&5
24297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }; }
24302 echo "configure: failed program was" >&5
24305 rm -f conftest.o conftest.s
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24309 $as_echo "$gcc_cv_as_weak" >&6; }
24310 if test $gcc_cv_as_weak = yes; then
24312 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24318 $as_echo_n "checking assembler for .weakref... " >&6; }
24319 if ${gcc_cv_as_weakref+:} false
; then :
24320 $as_echo_n "(cached) " >&6
24322 gcc_cv_as_weakref
=no
24323 if test x
$gcc_cv_as != x
; then
24324 $as_echo ' .weakref foobar, barfnot' > conftest.s
24325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24327 (eval $ac_try) 2>&5
24329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24330 test $ac_status = 0; }; }
24332 gcc_cv_as_weakref
=yes
24334 echo "configure: failed program was" >&5
24337 rm -f conftest.o conftest.s
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24341 $as_echo "$gcc_cv_as_weakref" >&6; }
24342 if test $gcc_cv_as_weakref = yes; then
24344 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24350 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24351 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24352 $as_echo_n "(cached) " >&6
24354 gcc_cv_as_nsubspa_comdat
=no
24355 if test x
$gcc_cv_as != x
; then
24356 $as_echo ' .SPACE $TEXT$
24357 .NSUBSPA $CODE$,COMDAT' > conftest.s
24358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24365 gcc_cv_as_nsubspa_comdat
=yes
24367 echo "configure: failed program was" >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24374 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24375 if test $gcc_cv_as_nsubspa_comdat = yes; then
24377 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24382 # .hidden needs to be supported in both the assembler and the linker,
24383 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24384 # This is irritatingly difficult to feature test for; we have to check the
24385 # date string after the version number. If we've got an in-tree
24386 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24388 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24389 case "${target}" in
24391 conftest_s
=' .globl foobar,hidden'
24394 conftest_s
=' .hidden foobar
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24399 $as_echo_n "checking assembler for .hidden... " >&6; }
24400 if ${gcc_cv_as_hidden+:} false
; then :
24401 $as_echo_n "(cached) " >&6
24403 gcc_cv_as_hidden
=no
24404 if test x
$gcc_cv_as != x
; then
24405 $as_echo "$conftest_s" > conftest.s
24406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24413 gcc_cv_as_hidden
=yes
24415 echo "configure: failed program was" >&5
24418 rm -f conftest.o conftest.s
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24422 $as_echo "$gcc_cv_as_hidden" >&6; }
24425 case "${target}" in
24427 # Darwin as has some visibility support, though with a different syntax.
24428 gcc_cv_as_hidden
=yes
24432 # gnu_indirect_function type is an extension proposed at
24433 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24434 # selection of function implementation
24435 # Check whether --enable-gnu-indirect-function was given.
24436 if test "${enable_gnu_indirect_function+set}" = set; then :
24437 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24439 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24440 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24443 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24447 case "${target}" in
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24450 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24451 cat > conftest.s
<<EOF
24453 .type foo_resolver, @function
24456 .size foo_resolver, .-foo_resolver
24459 .type foo, %gnu_indirect_function
24460 .set foo, foo_resolver
24463 .type bar, @function
24469 if test x
$gcc_cv_as != x \
24470 && test x
$gcc_cv_ld != x \
24471 && test x
$gcc_cv_readelf != x \
24472 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24473 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24474 && $gcc_cv_readelf --relocs --wide conftest \
24475 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24476 enable_gnu_indirect_function
=yes
24478 rm -f conftest conftest.o conftest.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24480 $as_echo "$enable_gnu_indirect_function" >&6; }
24484 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24486 cat >>confdefs.h
<<_ACEOF
24487 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24492 if test $in_tree_ld != yes ; then
24493 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24494 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24495 if test x
"$ld_is_gold" = xyes
; then
24496 # GNU gold --version looks like this:
24498 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24500 # We extract the binutils version which is more familiar and specific
24501 # than the gold version.
24502 ld_vers
=`echo $ld_ver | sed -n \
24503 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24505 # GNU ld --version looks like this:
24507 # GNU ld (GNU Binutils) 2.21.51.20110225
24508 ld_vers
=`echo $ld_ver | sed -n \
24509 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24511 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'`
24512 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24513 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24514 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24516 case "${target}" in
24518 # Solaris 2 ld -V output looks like this for a regular version:
24520 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24522 # but test versions add stuff at the end:
24524 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24526 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24527 # numbers can be used in ld.so.1 feature checks even if a different
24528 # linker is configured.
24529 ld_ver
=`$gcc_cv_ld -V 2>&1`
24530 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24531 ld_vers
=`echo $ld_ver | sed -n \
24532 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24533 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24534 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24542 $as_echo_n "checking linker for .hidden support... " >&6; }
24543 if ${gcc_cv_ld_hidden+:} false
; then :
24544 $as_echo_n "(cached) " >&6
24546 if test $in_tree_ld = yes ; then
24547 gcc_cv_ld_hidden
=no
24548 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 \
24549 && test $in_tree_ld_is_elf = yes; then
24550 gcc_cv_ld_hidden
=yes
24553 gcc_cv_ld_hidden
=yes
24554 if test x
"$ld_is_gold" = xyes
; then
24556 elif test x
"$ld_is_mold" = xyes
; then
24558 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24559 if test 0"$ld_date" -lt 20020404; then
24560 if test -n "$ld_date"; then
24561 # If there was date string, but was earlier than 2002-04-04, fail
24562 gcc_cv_ld_hidden
=no
24563 elif test -z "$ld_vers"; then
24564 # If there was no date string nor ld version number, something is wrong
24565 gcc_cv_ld_hidden
=no
24567 test -z "$ld_vers_patch" && ld_vers_patch
=0
24568 if test "$ld_vers_major" -lt 2; then
24569 gcc_cv_ld_hidden
=no
24570 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24571 gcc_cv_ld_hidden
="no"
24572 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24573 gcc_cv_ld_hidden
=no
24578 case "${target}" in
24580 gcc_cv_ld_hidden
=yes
24583 # Darwin ld has some visibility support.
24584 gcc_cv_ld_hidden
=yes
24586 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24587 gcc_cv_ld_hidden
=yes
24590 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24591 # .symbolic was only added in Solaris 9 12/02.
24592 gcc_cv_ld_hidden
=yes
24595 gcc_cv_ld_hidden
=no
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24602 $as_echo "$gcc_cv_ld_hidden" >&6; }
24603 libgcc_visibility
=no
24606 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24607 libgcc_visibility
=yes
24609 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24614 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24615 gcc_cv_ld_ro_rw_mix
=unknown
24616 if test $in_tree_ld = yes ; then
24617 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 \
24618 && test $in_tree_ld_is_elf = yes; then
24619 gcc_cv_ld_ro_rw_mix
=read-write
24621 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24622 echo '.section myfoosect, "a"' > conftest1.s
24623 echo '.section myfoosect, "aw"' > conftest2.s
24624 echo '.byte 1' >> conftest2.s
24625 echo '.section myfoosect, "a"' > conftest3.s
24626 echo '.byte 0' >> conftest3.s
24627 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24628 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24629 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
24630 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24631 conftest2.o conftest3.o
> /dev
/null
2>&1 \
24632 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
24633 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24634 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24635 | sed -e '/myfoosect/!d' -e N`
24636 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24637 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24638 gcc_cv_ld_ro_rw_mix
=read-only
24640 gcc_cv_ld_ro_rw_mix
=read-write
24645 rm -f conftest.
* conftest
[123].
*
24647 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24649 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24653 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24655 # Check whether --enable-initfini-array was given.
24656 if test "${enable_initfini_array+set}" = set; then :
24657 enableval
=$enable_initfini_array;
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24661 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24662 if ${gcc_cv_initfini_array+:} false
; then :
24663 $as_echo_n "(cached) " >&6
24665 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24666 case "${target}" in
24668 if test "$cross_compiling" = yes; then :
24669 gcc_cv_initfini_array
=no
24671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24675 #error Not an ELF OS
24677 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24678 if it can be used. */
24680 int main (void) { return x; }
24681 int foo (void) { x = 0; }
24682 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24685 if ac_fn_cxx_try_run
"$LINENO"; then :
24686 gcc_cv_initfini_array
=yes
24688 gcc_cv_initfini_array
=no
24690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24695 gcc_cv_initfini_array
=no
24696 if test $in_tree_ld = yes ; then
24697 if test "$gcc_cv_gld_major_version" -eq 2 \
24698 -a "$gcc_cv_gld_minor_version" -ge 22 \
24699 -o "$gcc_cv_gld_major_version" -gt 2 \
24700 && test $in_tree_ld_is_elf = yes; then
24701 gcc_cv_initfini_array
=yes
24703 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24704 case $target:$gas in
24707 sh_type
='%progbits'
24709 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24711 sh_type
='@progbits'
24713 sparc
*-*-solaris2*:no
)
24715 sh_type
='#progbits'
24719 case "$target:$gnu_ld" in
24721 cat > conftest.s
<<EOF
24722 .section .dtors,$sh_flags,$sh_type
24724 .byte 'A', 'A', 'A', 'A'
24725 .section .ctors,$sh_flags,$sh_type
24727 .byte 'B', 'B', 'B', 'B'
24728 .section .fini_array.65530,$sh_flags,$sh_type
24730 .byte 'C', 'C', 'C', 'C'
24731 .section .init_array.65530,$sh_flags,$sh_type
24733 .byte 'D', 'D', 'D', 'D'
24734 .section .dtors.64528,$sh_flags,$sh_type
24736 .byte 'E', 'E', 'E', 'E'
24737 .section .ctors.64528,$sh_flags,$sh_type
24739 .byte 'F', 'F', 'F', 'F'
24740 .section .fini_array.01005,$sh_flags,$sh_type
24742 .byte 'G', 'G', 'G', 'G'
24743 .section .init_array.01005,$sh_flags,$sh_type
24745 .byte 'H', 'H', 'H', 'H'
24750 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24751 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24752 && $gcc_cv_objdump -s -j .init_array conftest \
24753 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24754 && $gcc_cv_objdump -s -j .fini_array conftest \
24755 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24756 gcc_cv_initfini_array
=yes
24760 # When Solaris ld added constructor priority support, it was
24761 # decided to only handle .init_array.N/.fini_array.N since
24762 # there was no need for backwards compatibility with
24763 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24764 # sections with correct execution order resp. to
24765 # .init_array/.fini_array, while gld merges them into
24766 # .init_array/.fini_array.
24767 cat > conftest.s
<<EOF
24768 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24770 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24771 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24773 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24774 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24776 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24777 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24779 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24784 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24785 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24786 && $gcc_cv_objdump -s -j .init_array conftest \
24787 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24788 && $gcc_cv_objdump -s -j .fini_array conftest \
24789 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24790 gcc_cv_initfini_array
=yes
24794 rm -f conftest conftest.
*
24796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24797 /* end confdefs.h. */
24800 # error Not an ELF OS
24802 #include <stdlib.h>
24803 #if defined __GLIBC_PREREQ
24804 # if __GLIBC_PREREQ (2, 4)
24806 # error GLIBC 2.4 required
24809 # if defined __sun__ && defined __svr4__
24810 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24812 # error The C library not known to support .init_array/.fini_array
24817 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24820 gcc_cv_initfini_array
=no
24822 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24825 case "${target}" in
24826 aarch64
*-linux-gnu*)
24827 # AArch64 postdates glibc support for .init_array/.fini_array,
24828 # so we don't need the preprocessor test above.
24829 gcc_cv_initfini_array
=yes
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24834 $as_echo_n "checking cross compile... guessing... " >&6; }
24835 gcc_cv_initfini_array
=no
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24841 $as_echo "$gcc_cv_initfini_array" >&6; }
24842 enable_initfini_array
=$gcc_cv_initfini_array
24847 cat >>confdefs.h
<<_ACEOF
24848 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24853 # Some assemblers (GNU as for LoongArch) generates relocations for
24854 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
24855 # probing leb128 support then.
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
24859 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
24860 if ${gcc_cv_as_mno_relax+:} false
; then :
24861 $as_echo_n "(cached) " >&6
24863 gcc_cv_as_mno_relax
=no
24864 if test x
$gcc_cv_as != x
; then
24865 $as_echo '.text' > conftest.s
24866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 gcc_cv_as_mno_relax
=yes
24875 echo "configure: failed program was" >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
24882 $as_echo "$gcc_cv_as_mno_relax" >&6; }
24883 if test $gcc_cv_as_mno_relax = yes; then
24884 check_leb128_asflags
=-mno-relax
24889 check_leb128_asflags
=
24893 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24894 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24895 # these directives, even when they appear to accept them.
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24897 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24898 if ${gcc_cv_as_leb128+:} false
; then :
24899 $as_echo_n "(cached) " >&6
24901 gcc_cv_as_leb128
=no
24902 if test x
$gcc_cv_as != x
; then
24909 .uleb128 0x8000000000000000
24911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24919 if test "x$gcc_cv_objdump" != x
; then
24920 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24921 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24922 gcc_cv_as_leb128
=yes
24924 elif test "x$gcc_cv_otool" != x
; then
24925 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24926 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24927 gcc_cv_as_leb128
=yes
24930 # play safe, assume the assembler is broken.
24935 echo "configure: failed program was" >&5
24938 rm -f conftest.o conftest.s
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24942 $as_echo "$gcc_cv_as_leb128" >&6; }
24943 if test $gcc_cv_as_leb128 = yes; then
24945 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24948 if test $gcc_cv_as_leb128 != yes; then
24950 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24954 # Determine if an .eh_frame section is read-only.
24955 gcc_fn_eh_frame_ro
() {
24956 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24957 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24958 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24961 # Check if we have assembler support for unwind directives.
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24963 $as_echo_n "checking assembler for cfi directives... " >&6; }
24964 if ${gcc_cv_as_cfi_directive+:} false
; then :
24965 $as_echo_n "(cached) " >&6
24967 gcc_cv_as_cfi_directive
=no
24968 if test x
$gcc_cv_as != x
; then
24974 .cfi_escape 1, 2, 3, 4, 5
24975 .cfi_endproc' > conftest.s
24976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24978 (eval $ac_try) 2>&5
24980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24981 test $ac_status = 0; }; }
24985 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24986 # read-only and read-write sections, we need to make sure that the
24987 # assembler used emits read-write .eh_frame sections.
24988 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24989 gcc_cv_as_cfi_directive
=yes
24990 elif test "x$gcc_cv_objdump" = x
; then
24991 # No objdump, err on the side of caution.
24992 gcc_cv_as_cfi_directive
=no
24994 if test x
$gas = xyes
; then
25002 sparc
*-*-solaris2.
*)
25003 # On Solaris/SPARC, .eh_frame sections should always be read-write.
25004 if gcc_fn_eh_frame_ro
$as_32_opt \
25005 || gcc_fn_eh_frame_ro
$as_64_opt; then
25006 gcc_cv_as_cfi_directive
=no
25008 gcc_cv_as_cfi_directive
=yes
25011 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25012 # On Solaris/x86, make sure that GCC and assembler agree on using
25013 # read-only .eh_frame sections for 64-bit.
25014 if gcc_fn_eh_frame_ro
$as_32_opt; then
25015 gcc_cv_as_cfi_directive
=no
25016 elif gcc_fn_eh_frame_ro
$as_64_opt; then
25017 gcc_cv_as_cfi_directive
=yes
25019 gcc_cv_as_cfi_directive
=no
25026 gcc_cv_as_cfi_directive
=yes
25030 echo "configure: failed program was" >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
25037 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
25040 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
25042 $as_echo_n "checking assembler for working cfi advance... " >&6; }
25043 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
25044 $as_echo_n "(cached) " >&6
25046 gcc_cv_as_cfi_advance_working
=no
25047 if test x
$gcc_cv_as != x
; then
25050 .cfi_adjust_cfa_offset 64
25052 .cfi_adjust_cfa_offset 128
25053 .cfi_endproc' > conftest.s
25054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25062 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
25063 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
25064 gcc_cv_as_cfi_advance_working
=yes
25068 echo "configure: failed program was" >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
25075 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
25079 # no objdump, err on the side of caution
25080 gcc_cv_as_cfi_advance_working
=no
25084 cat >>confdefs.h
<<_ACEOF
25085 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
25086 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
25092 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
25093 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
25094 $as_echo_n "(cached) " >&6
25096 gcc_cv_as_cfi_personality_directive
=no
25097 if test x
$gcc_cv_as != x
; then
25100 .cfi_personality 0, symbol
25101 .cfi_endproc' > conftest.s
25102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25104 (eval $ac_try) 2>&5
25106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25107 test $ac_status = 0; }; }
25109 gcc_cv_as_cfi_personality_directive
=yes
25111 echo "configure: failed program was" >&5
25114 rm -f conftest.o conftest.s
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
25118 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
25122 cat >>confdefs.h
<<_ACEOF
25123 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
25128 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
25129 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_cfi_sections_directive
=no
25133 if test x
$gcc_cv_as != x
; then
25135 .cfi_sections .debug_frame, .eh_frame
25137 .cfi_endproc' > conftest.s
25138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25140 (eval $ac_try) 2>&5
25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25143 test $ac_status = 0; }; }
25146 win32 | pe | cygwin
* | mingw32
*)
25147 # Need to check that we generated the correct relocation for the
25148 # .debug_frame section. This was fixed for binutils 2.21.
25149 gcc_cv_as_cfi_sections_directive
=no
25150 if test "x$gcc_cv_objdump" != x
; then
25151 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
25152 grep -i secrel
> /dev
/null
; then
25153 gcc_cv_as_cfi_sections_directive
=yes
25158 gcc_cv_as_cfi_sections_directive
=yes
25162 echo "configure: failed program was" >&5
25165 rm -f conftest.o conftest.s
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25169 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25174 cat >>confdefs.h
<<_ACEOF
25175 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25179 # GAS versions up to and including 2.11.0 may mis-optimize
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25182 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25183 if ${gcc_cv_as_eh_frame+:} false
; then :
25184 $as_echo_n "(cached) " >&6
25186 gcc_cv_as_eh_frame
=no
25187 if test x
$gcc_cv_as != x
; then
25194 .section .eh_frame,"aw",@progbits
25196 .4byte .LECIE1-.LSCIE1
25210 .4byte .LEFDE1-.LASFDE1
25212 .4byte .LASFDE1-__FRAME_BEGIN__
25219 .LEFDE1:' > conftest.s
25220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25227 cat > conftest.lit
<<EOF
25228 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25229 0010 01000000 12000000 18000000 00000000 ................
25230 0020 08000000 04080000 0044 .........D
25232 cat > conftest.big
<<EOF
25233 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25234 0010 00000001 00000012 00000018 00000000 ................
25235 0020 00000008 04000000 0844 .........D
25237 # If the assembler didn't choke, and we can objdump,
25238 # and we got the correct data, then succeed.
25239 # The text in the here-document typically retains its unix-style line
25240 # endings, while the output of objdump will use host line endings.
25241 # Therefore, use diff -b for the comparisons.
25242 if test x
$gcc_cv_objdump != x \
25243 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25244 |
tail -3 > conftest.got \
25245 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25246 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25248 gcc_cv_as_eh_frame
=yes
25249 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; }; then
25255 gcc_cv_as_eh_frame
=buggy
25257 # Uh oh, what do we do now?
25258 gcc_cv_as_eh_frame
=no
25261 echo "configure: failed program was" >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25268 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25272 if test $gcc_cv_as_eh_frame = buggy
; then
25274 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25278 # Test if the assembler supports the section flag 'e' or #exclude for
25279 # specifying an excluded section.
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25281 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25282 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25283 $as_echo_n "(cached) " >&6
25285 gcc_cv_as_section_exclude_e
=no
25286 if test x
$gcc_cv_as != x
; then
25287 $as_echo '.section foo1,"e"
25288 .byte 0,0,0,0' > conftest.s
25289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25296 gcc_cv_as_section_exclude_e
=yes
25298 echo "configure: failed program was" >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25305 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25308 if test $gcc_cv_as_section_exclude_e = no
; then
25309 case "${target}" in
25310 # Solaris as uses #exclude instead.
25312 case "${target}" in
25313 sparc
*-*-solaris2*)
25314 conftest_s
='.section "foo1", #exclude'
25316 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25317 conftest_s
='.section foo1, #exclude'
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25323 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25324 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25325 $as_echo_n "(cached) " >&6
25327 gcc_cv_as_section_exclude_hash
=no
25328 if test x
$gcc_cv_as != x
; then
25329 $as_echo "$conftest_s
25330 .byte 0,0,0,0" > conftest.s
25331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25338 gcc_cv_as_section_exclude_hash
=yes
25340 echo "configure: failed program was" >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25347 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25352 cat >>confdefs.h
<<_ACEOF
25353 #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`
25357 # Test if the assembler supports the section flag 'R' for specifying
25358 # section with SHF_GNU_RETAIN.
25359 case "${target}" in
25360 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25361 # assembler supports the section flag 'R', it doesn't mean that
25362 # Solairs ld supports it.
25364 gcc_cv_as_shf_gnu_retain
=no
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25368 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25369 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25370 $as_echo_n "(cached) " >&6
25372 gcc_cv_as_shf_gnu_retain
=no
25373 if test x
$gcc_cv_as != x
; then
25374 $as_echo '.section .foo,"awR",%progbits
25375 .byte 0' > conftest.s
25376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25383 gcc_cv_as_shf_gnu_retain
=yes
25385 echo "configure: failed program was" >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25392 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25398 cat >>confdefs.h
<<_ACEOF
25399 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25403 # Test if the assembler supports the section flag 'o' for specifying
25404 # section with link-order.
25405 case "${target}" in
25406 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25407 # assembler supports the section flag 'o', it doesn't mean that
25408 # Solairs ld supports it.
25410 gcc_cv_as_section_link_order
=no
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25414 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25415 if ${gcc_cv_as_section_link_order+:} false
; then :
25416 $as_echo_n "(cached) " >&6
25418 gcc_cv_as_section_link_order
=no
25419 if test x
$gcc_cv_as != x
; then
25420 $as_echo '.section .foo,"a"
25422 .section __patchable_function_entries,"awo",%progbits,.foo
25423 .byte 0' > conftest.s
25424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25426 (eval $ac_try) 2>&5
25428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25429 test $ac_status = 0; }; }
25431 gcc_cv_as_section_link_order
=yes
25433 echo "configure: failed program was" >&5
25436 rm -f conftest.o conftest.s
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25440 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25446 cat >>confdefs.h
<<_ACEOF
25447 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25452 $as_echo_n "checking assembler for section merging support... " >&6; }
25453 if ${gcc_cv_as_shf_merge+:} false
; then :
25454 $as_echo_n "(cached) " >&6
25456 gcc_cv_as_shf_merge
=no
25457 if test x
$gcc_cv_as != x
; then
25458 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461 (eval $ac_try) 2>&5
25463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464 test $ac_status = 0; }; }
25466 gcc_cv_as_shf_merge
=yes
25468 echo "configure: failed program was" >&5
25471 rm -f conftest.o conftest.s
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25475 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25478 if test $gcc_cv_as_shf_merge = no
; then
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25480 $as_echo_n "checking assembler for section merging support... " >&6; }
25481 if ${gcc_cv_as_shf_merge+:} false
; then :
25482 $as_echo_n "(cached) " >&6
25484 gcc_cv_as_shf_merge
=no
25485 if test x
$gcc_cv_as != x
; then
25486 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25494 gcc_cv_as_shf_merge
=yes
25496 echo "configure: failed program was" >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25503 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25508 cat >>confdefs.h
<<_ACEOF
25509 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25513 gcc_cv_ld_aligned_shf_merge
=yes
25515 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25517 sparc
*-*-solaris2.11
*)
25518 if test x
"$gnu_ld" = xno \
25519 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25520 gcc_cv_ld_aligned_shf_merge
=no
25525 cat >>confdefs.h
<<_ACEOF
25526 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25531 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25532 if ${gcc_cv_as_comdat_group+:} false
; then :
25533 $as_echo_n "(cached) " >&6
25535 gcc_cv_as_comdat_group
=no
25536 if test x
$gcc_cv_as != x
; then
25537 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25540 (eval $ac_try) 2>&5
25542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25543 test $ac_status = 0; }; }
25545 gcc_cv_as_comdat_group
=yes
25547 echo "configure: failed program was" >&5
25550 rm -f conftest.o conftest.s
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25554 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25557 if test $gcc_cv_as_comdat_group = yes; then
25558 gcc_cv_as_comdat_group_percent
=no
25559 gcc_cv_as_comdat_group_group
=no
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25562 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25563 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25564 $as_echo_n "(cached) " >&6
25566 gcc_cv_as_comdat_group_percent
=no
25567 if test x
$gcc_cv_as != x
; then
25568 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25576 gcc_cv_as_comdat_group_percent
=yes
25578 echo "configure: failed program was" >&5
25581 rm -f conftest.o conftest.s
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25585 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25588 if test $gcc_cv_as_comdat_group_percent = yes; then
25589 gcc_cv_as_comdat_group_group
=no
25591 case "${target}" in
25592 # Sun as uses a completely different syntax.
25594 case "${target}" in
25595 sparc
*-*-solaris2*)
25597 .group foo,".text%foo",#comdat
25598 .section ".text%foo", #alloc,#execinstr,#progbits
25603 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25605 .group foo,.text%foo,#comdat
25606 .section .text%foo, "ax", @progbits
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25613 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25614 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25615 $as_echo_n "(cached) " >&6
25617 gcc_cv_as_comdat_group_group
=no
25618 if test x
$gcc_cv_as != x
; then
25619 $as_echo "$conftest_s" > conftest.s
25620 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25627 gcc_cv_as_comdat_group_group
=yes
25629 echo "configure: failed program was" >&5
25632 rm -f conftest.o conftest.s
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25636 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25641 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25642 gcc_cv_as_comdat_group_group
=no
25646 if test x
"$ld_is_gold" = xyes
; then
25648 elif test x
"$ld_is_mold" = xyes
; then
25650 elif test $in_tree_ld = yes ; then
25652 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 \
25653 && test $in_tree_ld_is_elf = yes; then
25656 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25658 if test 0"$ld_date" -lt 20050308; then
25659 if test -n "$ld_date"; then
25660 # If there was date string, but was earlier than 2005-03-08, fail
25662 elif test "$ld_vers_major" -lt 2; then
25664 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25669 case "${target}" in
25670 *-*-solaris2.1
[1-9]*)
25672 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25673 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25676 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25677 # least ld version 1.2267.
25678 if test "$ld_vers_major" -gt 1; then
25680 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25682 elif test "$ld_vers_minor" -ge 2267; then
25687 # Assume linkers other than GNU ld don't support COMDAT group.
25692 # Allow overriding the automatic COMDAT group tests above.
25693 # Check whether --enable-comdat was given.
25694 if test "${enable_comdat+set}" = set; then :
25695 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25698 if test $comdat_group = no
; then
25699 gcc_cv_as_comdat_group
=no
25700 gcc_cv_as_comdat_group_percent
=no
25701 gcc_cv_as_comdat_group_group
=no
25704 cat >>confdefs.h
<<_ACEOF
25705 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25706 || test $gcc_cv_as_comdat_group_percent = yes \
25707 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25711 # Restrict this test to Solaris/x86: other targets define this statically.
25712 case "${target}" in
25713 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25715 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25716 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25717 hidden_linkonce
=yes
25719 case "${target}" in
25720 # Full support for hidden thunks in linkonce sections only appeared in
25721 # Solaris 11/OpenSolaris.
25722 *-*-solaris2.1
[1-9]*)
25723 hidden_linkonce
=yes
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25731 $as_echo "$hidden_linkonce" >&6; }
25733 cat >>confdefs.h
<<_ACEOF
25734 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25741 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25742 if ${gcc_cv_as_is_stmt+:} false
; then :
25743 $as_echo_n "(cached) " >&6
25745 gcc_cv_as_is_stmt
=no
25746 if test x
$gcc_cv_as != x
; then
25749 .loc 1 1 0 is_stmt 1' > conftest.s
25750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25757 gcc_cv_as_is_stmt
=yes
25759 echo "configure: failed program was" >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25766 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25767 if test $gcc_cv_as_is_stmt = yes; then
25769 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25775 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25776 if ${gcc_cv_as_discriminator+:} false
; then :
25777 $as_echo_n "(cached) " >&6
25779 gcc_cv_as_discriminator
=no
25780 if test x
$gcc_cv_as != x
; then
25783 .loc 1 1 0 discriminator 1' > conftest.s
25784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25791 gcc_cv_as_discriminator
=yes
25793 echo "configure: failed program was" >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25800 $as_echo "$gcc_cv_as_discriminator" >&6; }
25801 if test $gcc_cv_as_discriminator = yes; then
25803 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25808 # Catch the newlib flag of the same name so we can gate GCC features on it.
25809 # Check whether --enable-newlib-nano-formatted-io was given.
25810 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25811 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25815 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25821 # Thread-local storage - the check is heavily parameterized.
25827 .section ".tdata","awT",@progbits
25830 ldq $27,__tls_get_addr($29) !literal!1
25831 lda $16,foo($29) !tlsgd!1
25832 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25833 ldq $27,__tls_get_addr($29) !literal!2
25834 lda $16,foo($29) !tlsldm!2
25835 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25836 ldq $1,foo($29) !gotdtprel
25837 ldah $2,foo($29) !dtprelhi
25838 lda $3,foo($2) !dtprello
25839 lda $4,foo($29) !dtprel
25840 ldq $1,foo($29) !gottprel
25841 ldah $2,foo($29) !tprelhi
25842 lda $3,foo($2) !tprello
25843 lda $4,foo($29) !tprel'
25844 tls_as_opt
=--fatal-warnings
25848 add_s r0,r0, @foo@tpoff'
25850 cris-
*-*|crisv32-
*-*)
25852 .section ".tdata","awT",@progbits
25857 tls_as_opt
=--fatal-warnings
25861 .section ".tdata","awT",@progbits
25864 call #gettlsoff(x)'
25871 .section ".tdata","awT",@progbits
25875 addil LT%foo-$tls_gdidx$,gp
25876 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25879 addil LT%foo-$tls_ldidx$,gp
25881 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25882 addil LR%foo-$tls_dtpoff$,%ret0
25883 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25885 addil LT%foo-$tls_ieoff$,gp
25886 ldw RT%foo-$tls_ieoff$(%r1),%t2
25889 addil LR%foo-$tls_leoff$,%t1
25890 ldo RR%foo-$tls_leoff$(%r1),%t2'
25891 tls_as_opt
=--fatal-warnings
25895 .section ".tdata","awT",%progbits
25898 .word foo(gottpoff)
25904 i
[34567]86-*-* | x86_64-
*-*)
25906 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25913 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25915 .section .tdata,"awt",@progbits'
25918 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25922 .section ".tdata","awT",@progbits'
25924 tls_as_opt
="--fatal-warnings"
25928 if test x
$on_solaris = xyes
; then
25930 yes) tls_as_opt
="$tls_as_opt --32" ;;
25933 conftest_s
="$conftest_s
25937 leal foo@tlsgd(,%ebx,1), %eax
25938 leal foo@tlsldm(%ebx), %eax
25939 leal foo@dtpoff(%eax), %edx
25940 movl foo@gottpoff(%ebx), %eax
25941 subl foo@gottpoff(%ebx), %eax
25942 addl foo@gotntpoff(%ebx), %eax
25943 movl foo@indntpoff, %eax
25944 movl \$foo@tpoff, %eax
25945 subl \$foo@tpoff, %eax
25946 leal foo@ntpoff(%ecx), %eax"
25949 if test x
$on_solaris = xyes
; then
25951 yes) tls_as_opt
="$tls_as_opt --64" ;;
25952 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25955 conftest_s
="$conftest_s
25959 leaq foo@tlsgd(%rip), %rdi
25960 leaq foo@tlsld(%rip), %rdi
25961 leaq foo@dtpoff(%rax), %rdx
25962 movq foo@gottpoff(%rip), %rax
25963 movq \$foo@tpoff, %rax"
25969 .section ".tdata","awT",@progbits
25972 addl r16 = @ltoff(@dtpmod(foo#)), gp
25973 addl r17 = @ltoff(@dtprel(foo#)), gp
25974 addl r18 = @ltoff(@tprel(foo#)), gp
25975 addl r19 = @dtprel(foo#), gp
25976 adds r21 = @dtprel(foo#), r13
25977 movl r23 = @dtprel(foo#)
25978 addl r20 = @tprel(foo#), gp
25979 adds r22 = @tprel(foo#), r13
25980 movl r24 = @tprel(foo#)'
25981 tls_as_opt
=--fatal-warnings
25985 .section .tdata,"awT",@progbits
25992 tls_as_opt
='--fatal-warnings'
25996 .section .tdata,"awT",@progbits
26000 addik r5,r20,x@TLSGD
26001 addik r5,r20,x@TLSLDM'
26002 tls_as_opt
='--fatal-warnings'
26006 .section .tdata,"awT",@progbits
26010 addiu $4, $28, %tlsgd(x)
26011 addiu $4, $28, %tlsldm(x)
26012 lui $4, %dtprel_hi(x)
26013 addiu $4, $4, %dtprel_lo(x)
26014 lw $4, %gottprel(x)($28)
26015 lui $4, %tprel_hi(x)
26016 addiu $4, $4, %tprel_lo(x)'
26017 tls_as_opt
='-32 --fatal-warnings'
26021 .section .tdata,"awT",@progbits
26026 move.l x@TLSGD(%a5),%a0
26027 move.l x@TLSLDM(%a5),%a0
26028 move.l x@TLSLDO(%a5),%a0
26029 move.l x@TLSIE(%a5),%a0
26030 move.l x@TLSLE(%a5),%a0'
26031 tls_as_opt
='--fatal-warnings'
26035 .section ".tdata","awT",@progbits'
26036 tls_as_opt
="--fatal-warnings"
26040 .section ".tdata","awT",%progbits
26044 add x0, x0, #:tlsgd_lo12:x
26047 tls_as_opt
='--fatal-warnings'
26051 .section ".tdata","awT",@progbits
26054 l.movhi r3, tpoffha(foo)
26056 l.lwz r4, tpofflo(foo)(r3)'
26057 tls_as_opt
=--fatal-warnings
26061 .extern __get_tpointer
26077 .section ".tdata","awT",@progbits
26085 addi 3,2,ld0@got@tlsgd
26091 addi 3,2,x1@got@tlsld
26097 addis 9,3,x2@dtprel@ha
26098 addi 9,9,x2@dtprel@l
26101 ld 9,x3@got@dtprel(2)
26105 tls_as_opt
="-a64 --fatal-warnings"
26109 .section ".tdata","awT",@progbits
26117 addi 3,31,ld0@got@tlsgd
26119 addi 3,31,x1@got@tlsld
26122 addis 9,3,x2@dtprel@ha
26123 addi 9,9,x2@dtprel@l
26124 lwz 9,x3@got@tprel(31)
26127 addis 9,2,x2@tprel@ha
26128 addi 9,9,x2@tprel@l'
26129 tls_as_opt
="-a32 --fatal-warnings"
26133 .section .tdata,"awT",@progbits
26137 call __tls_get_addr'
26138 tls_as_opt
='--fatal-warnings'
26142 .section ".tdata","awT",@progbits
26149 .long foo@GOTNTPOFF
26150 .long foo@INDNTPOFF
26151 l %r1,foo@GOTNTPOFF(%r12)
26152 l %r1,0(%r1):tls_load:foo
26153 bas %r14,0(%r1,%r13):tls_gdcall:foo
26154 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26155 tls_as_opt
="-m31 --fatal-warnings"
26159 .section ".tdata","awT",@progbits
26166 .quad foo@GOTNTPOFF
26167 lg %r1,foo@GOTNTPOFF(%r12)
26168 larl %r1,foo@INDNTPOFF
26169 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26170 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26171 tls_as_opt
="-m64 -Aesame --fatal-warnings"
26173 sh-
*-* | sh
[123456789lbe
]*-*-*)
26175 .section ".tdata","awT",@progbits
26183 tls_as_opt
=--fatal-warnings
26187 sparc
*-sun-solaris2.
*)
26194 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
26196 .section ".tdata",#alloc,#write,#tls'
26199 .section ".tdata","awT",@progbits'
26200 tls_as_opt
="-32 --fatal-warnings"
26202 conftest_s
="$conftest_s
26205 sethi %tgd_hi22(foo), %o0
26206 add %o0, %tgd_lo10(foo), %o1
26207 add %l7, %o1, %o0, %tgd_add(foo)
26208 call __tls_get_addr, %tgd_call(foo)
26209 sethi %tldm_hi22(foo), %l1
26210 add %l1, %tldm_lo10(foo), %l2
26211 add %l7, %l2, %o0, %tldm_add(foo)
26212 call __tls_get_addr, %tldm_call(foo)
26213 sethi %tldo_hix22(foo), %l3
26214 xor %l3, %tldo_lox10(foo), %l4
26215 add %o0, %l4, %l5, %tldo_add(foo)
26216 sethi %tie_hi22(foo), %o3
26217 add %o3, %tie_lo10(foo), %o3
26218 ld [%l7 + %o3], %o2, %tie_ld(foo)
26219 add %g7, %o2, %o4, %tie_add(foo)
26220 sethi %tle_hix22(foo), %l1
26221 xor %l1, %tle_lox10(foo), %o5
26222 ld [%g7 + %o5], %o1"
26226 .section ".tdata","awT",@progbits
26229 movi a8, foo@TLSFUNC
26230 movi a10, foo@TLSARG
26231 callx8.tls a8, foo@TLSCALL'
26235 if test "x$enable_tls" = xno
; then
26236 : # TLS explicitly disabled.
26237 elif test "x$enable_tls" = xyes
; then
26238 set_have_as_tls
=yes # TLS explicitly enabled.
26239 elif test -z "$conftest_s"; then
26240 : # If we don't have a check, assume no support.
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26243 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26244 if ${gcc_cv_as_tls+:} false
; then :
26245 $as_echo_n "(cached) " >&6
26248 if test x
$gcc_cv_as != x
; then
26249 $as_echo "$conftest_s" > conftest.s
26250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26252 (eval $ac_try) 2>&5
26254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26255 test $ac_status = 0; }; }
26259 echo "configure: failed program was" >&5
26262 rm -f conftest.o conftest.s
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26266 $as_echo "$gcc_cv_as_tls" >&6; }
26267 if test $gcc_cv_as_tls = yes; then
26268 set_have_as_tls
=yes
26272 if test $set_have_as_tls = yes ; then
26274 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26278 # Target-specific assembler checks.
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26281 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26282 gcc_cv_ld_static_dynamic
=no
26283 gcc_cv_ld_static_option
='-Bstatic'
26284 gcc_cv_ld_dynamic_option
='-Bdynamic'
26285 if test $in_tree_ld = yes ; then
26286 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
26287 gcc_cv_ld_static_dynamic
=yes
26289 elif test x
$gcc_cv_ld != x
; then
26290 # Check if linker supports -Bstatic/-Bdynamic option
26291 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26292 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26293 gcc_cv_ld_static_dynamic
=yes
26296 # AIX ld uses -b flags
26297 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26298 gcc_cv_ld_static_dynamic
=yes
26299 gcc_cv_ld_static_option
="-bstatic"
26300 gcc_cv_ld_dynamic_option
="-bdynamic"
26302 # HP-UX ld uses -a flags to select between shared and archive.
26304 if test x
"$gnu_ld" = xno
; then
26305 gcc_cv_ld_static_dynamic
=yes
26306 gcc_cv_ld_static_option
="-aarchive_shared"
26307 gcc_cv_ld_dynamic_option
="-adefault"
26310 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26312 gcc_cv_ld_static_dynamic
=yes
26317 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26319 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26322 cat >>confdefs.h
<<_ACEOF
26323 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26327 cat >>confdefs.h
<<_ACEOF
26328 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26333 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26336 $as_echo_n "checking linker --version-script option... " >&6; }
26337 gcc_cv_ld_version_script
=no
26338 ld_version_script_option
=''
26339 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26340 gcc_cv_ld_version_script
=yes
26341 ld_version_script_option
='--version-script'
26342 elif test x
$gcc_cv_ld != x
; then
26344 # Solaris 2 ld always supports -M. It also supports a subset of
26345 # --version-script since Solaris 11.4, but requires
26346 # -z gnu-version-script-compat to activate.
26348 gcc_cv_ld_version_script
=yes
26349 ld_version_script_option
='-M'
26353 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26355 $as_echo "$gcc_cv_ld_version_script" >&6; }
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26359 $as_echo_n "checking linker soname option... " >&6; }
26360 gcc_cv_ld_soname
=no
26361 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26362 gcc_cv_ld_soname
=yes
26363 ld_soname_option
='-soname'
26364 elif test x
$gcc_cv_ld != x
; then
26367 gcc_cv_ld_soname
=yes
26368 ld_soname_option
='-install_name'
26370 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26371 # ld compatiblity since some Solaris 10 update.
26373 gcc_cv_ld_soname
=yes
26374 ld_soname_option
='-h'
26378 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26380 $as_echo "$gcc_cv_ld_soname" >&6; }
26383 if test x
"$demangler_in_ld" = xyes
; then
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26385 $as_echo_n "checking linker --demangle support... " >&6; }
26386 gcc_cv_ld_demangle
=no
26387 if test $in_tree_ld = yes; then
26388 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 \
26389 gcc_cv_ld_demangle
=yes
26391 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26392 # Check if the GNU linker supports --demangle option
26393 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26394 gcc_cv_ld_demangle
=yes
26397 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26399 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26403 $as_echo "$gcc_cv_ld_demangle" >&6; }
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26407 $as_echo_n "checking linker plugin support... " >&6; }
26408 gcc_cv_lto_plugin
=0
26409 if test -f liblto_plugin.la
; then
26410 save_ld_ver
="$ld_ver"
26411 save_ld_vers_major
="$ld_vers_major"
26412 save_ld_vers_minor
="$ld_vers_minor"
26413 save_ld_is_gold
="$ld_is_gold"
26417 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26419 # FIXME: ld_is_gold?
26420 ld_vers_major
="$gcc_cv_gld_major_version"
26421 ld_vers_minor
="$gcc_cv_gld_minor_version"
26423 # Determine plugin linker version.
26424 # FIXME: Partial duplicate from above, generalize.
26425 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26426 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26427 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26429 ld_vers
=`echo $ld_ver | sed -n \
26430 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26432 ld_vers
=`echo $ld_ver | sed -n \
26433 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26435 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26436 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26440 # Determine plugin support.
26441 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26442 # Require GNU ld or gold 2.21+ for plugin support by default.
26443 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26444 gcc_cv_lto_plugin
=2
26445 elif test "$ld_is_mold" = yes; then
26446 gcc_cv_lto_plugin
=2
26447 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26448 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26449 gcc_cv_lto_plugin
=1
26453 ld_ver
="$save_ld_ver"
26454 ld_vers_major
="$save_ld_vers_major"
26455 ld_vers_minor
="$save_ld_vers_minor"
26456 ld_is_gold
="$save_ld_is_gold"
26459 cat >>confdefs.h
<<_ACEOF
26460 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26464 $as_echo "$gcc_cv_lto_plugin" >&6; }
26466 # Target OS-specific assembler checks.
26468 case "$target_os" in
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26471 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26472 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26473 $as_echo_n "(cached) " >&6
26475 gcc_cv_as_mmacosx_version_min
=no
26476 if test x
$gcc_cv_as != x
; then
26477 $as_echo '.text' > conftest.s
26478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26480 (eval $ac_try) 2>&5
26482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26483 test $ac_status = 0; }; }
26485 gcc_cv_as_mmacosx_version_min
=yes
26487 echo "configure: failed program was" >&5
26490 rm -f conftest.o conftest.s
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26494 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26495 if test $gcc_cv_as_mmacosx_version_min = yes; then
26497 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26501 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
26503 $as_echo_n "checking assembler for .build_version... " >&6; }
26504 if ${gcc_cv_as_darwin_build_version+:} false
; then :
26505 $as_echo_n "(cached) " >&6
26507 gcc_cv_as_darwin_build_version
=no
26508 if test x
$gcc_cv_as != x
; then
26509 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
26510 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
26511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26512 (eval $ac_try) 2>&5
26514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26515 test $ac_status = 0; }; }
26517 gcc_cv_as_darwin_build_version
=yes
26519 echo "configure: failed program was" >&5
26522 rm -f conftest.o conftest.s
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
26526 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
26527 if test $gcc_cv_as_darwin_build_version = yes; then
26529 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
26537 # Target CPU-specific assembler checks.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26542 $as_echo_n "checking assembler for -mabi option... " >&6; }
26543 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26544 $as_echo_n "(cached) " >&6
26546 gcc_cv_as_aarch64_mabi
=no
26547 if test x
$gcc_cv_as != x
; then
26548 $as_echo '.text' > conftest.s
26549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26551 (eval $ac_try) 2>&5
26553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }; }
26556 gcc_cv_as_aarch64_mabi
=yes
26558 echo "configure: failed program was" >&5
26561 rm -f conftest.o conftest.s
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26565 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26568 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26570 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26573 if test x
$with_abi = xilp32
; then
26574 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26575 Upgrade the Assembler." "$LINENO" 5
26577 if test x
"$with_multilib_list" = xdefault
; then
26578 TM_MULTILIB_CONFIG
=lp64
26580 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26581 for aarch64_multilib
in ${aarch64_multilibs}; do
26582 case ${aarch64_multilib} in
26584 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26585 Upgrade the Assembler." "$LINENO" 5
26593 # Check if we have binutils support for relocations types needed by -fpic
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26595 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26596 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26597 $as_echo_n "(cached) " >&6
26599 gcc_cv_as_aarch64_picreloc
=no
26600 if test x
$gcc_cv_as != x
; then
26603 ldr x0, [x2, #:gotpage_lo15:globalsym]
26605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26612 gcc_cv_as_aarch64_picreloc
=yes
26614 echo "configure: failed program was" >&5
26617 rm -f conftest.o conftest.s
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26621 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26622 if test $gcc_cv_as_aarch64_picreloc = yes; then
26624 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26628 # Enable Branch Target Identification Mechanism and Return Address
26629 # Signing by default.
26630 # Check whether --enable-standard-branch-protection was given.
26631 if test "${enable_standard_branch_protection+set}" = set; then :
26632 enableval
=$enable_standard_branch_protection;
26635 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26640 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26641 Valid choices are 'yes' and 'no'." "$LINENO" 5
26647 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26648 # Check whether --enable-fix-cortex-a53-835769 was given.
26649 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26650 enableval
=$enable_fix_cortex_a53_835769;
26653 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26658 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26659 Valid choices are 'yes' and 'no'." "$LINENO" 5
26666 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26667 # Check whether --enable-fix-cortex-a53-843419 was given.
26668 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26669 enableval
=$enable_fix_cortex_a53_843419;
26672 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26677 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26678 Valid choices are 'yes' and 'no'." "$LINENO" 5
26687 # All TARGET_ABI_OSF targets.
26688 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26690 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26691 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26692 $as_echo_n "(cached) " >&6
26694 gcc_cv_as_alpha_explicit_relocs
=no
26695 if test x
$gcc_cv_as != x
; then
26696 $as_echo ' .set nomacro
26698 extbl $3, $2, $3 !lituse_bytoff!1
26699 ldq $2, a($29) !literal!1
26700 ldq $4, b($29) !literal!2
26701 ldq_u $3, 0($2) !lituse_base!1
26702 ldq $27, f($29) !literal!5
26703 jsr $26, ($27), f !lituse_jsr!5
26704 ldah $29, 0($26) !gpdisp!3
26705 lda $0, c($29) !gprel
26706 ldah $1, d($29) !gprelhigh
26707 lda $1, d($1) !gprellow
26708 lda $29, 0($29) !gpdisp!3' > conftest.s
26709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26711 (eval $ac_try) 2>&5
26713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26714 test $ac_status = 0; }; }
26716 gcc_cv_as_alpha_explicit_relocs
=yes
26718 echo "configure: failed program was" >&5
26721 rm -f conftest.o conftest.s
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26725 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26726 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26728 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26733 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26734 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26735 $as_echo_n "(cached) " >&6
26737 gcc_cv_as_alpha_jsrdirect_relocs
=no
26738 if test x
$gcc_cv_as != x
; then
26739 $as_echo ' .set nomacro
26741 ldq $27, a($29) !literal!1
26742 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26750 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26752 echo "configure: failed program was" >&5
26755 rm -f conftest.o conftest.s
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26759 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26760 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26762 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26770 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26771 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26772 $as_echo_n "(cached) " >&6
26774 gcc_cv_as_avr_mlink_relax
=no
26775 if test x
$gcc_cv_as != x
; then
26776 $as_echo '.text' > conftest.s
26777 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26784 gcc_cv_as_avr_mlink_relax
=yes
26786 echo "configure: failed program was" >&5
26789 rm -f conftest.o conftest.s
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26793 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26794 if test $gcc_cv_as_avr_mlink_relax = yes; then
26796 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26802 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26803 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26804 $as_echo_n "(cached) " >&6
26806 gcc_cv_as_avr_mrmw
=no
26807 if test x
$gcc_cv_as != x
; then
26808 $as_echo '.text' > conftest.s
26809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26816 gcc_cv_as_avr_mrmw
=yes
26818 echo "configure: failed program was" >&5
26821 rm -f conftest.o conftest.s
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26825 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26826 if test $gcc_cv_as_avr_mrmw = yes; then
26828 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26834 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26835 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26836 $as_echo_n "(cached) " >&6
26838 gcc_cv_as_avr_mgccisr
=no
26839 if test x
$gcc_cv_as != x
; then
26845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26847 (eval $ac_try) 2>&5
26849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850 test $ac_status = 0; }; }
26852 gcc_cv_as_avr_mgccisr
=yes
26854 echo "configure: failed program was" >&5
26857 rm -f conftest.o conftest.s
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26861 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26862 if test $gcc_cv_as_avr_mgccisr = yes; then
26864 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26869 # Check how default linker description file implements .rodata for
26870 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26871 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26873 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26874 cat > conftest.s
<<EOF
26875 .section .rodata,"a",@progbits
26877 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26882 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26884 (eval $ac_try) 2>&5
26886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26887 test $ac_status = 0; }; }
26888 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26890 (eval $ac_try) 2>&5
26892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26893 test $ac_status = 0; }; }
26894 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26896 (eval $ac_try) 2>&5
26898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26899 test $ac_status = 0; }; }
26900 if test -s conftest.nm
26902 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26904 $as_echo "yes" >&6; }
26906 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26910 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26911 echo "$as_me: nm output was" >&5
26912 cat conftest.nm
>&5
26913 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26914 { $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
26915 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26919 $as_echo "test failed" >&6; }
26920 echo "$as_me: failed program was" >&5
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26923 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26925 rm -f conftest.s conftest.o conftest.elf conftest.nm
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26930 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26931 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26932 $as_echo_n "(cached) " >&6
26934 gcc_cv_as_cris_no_mul_bug
=no
26935 if test x
$gcc_cv_as != x
; then
26936 $as_echo '.text' > conftest.s
26937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26939 (eval $ac_try) 2>&5
26941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942 test $ac_status = 0; }; }
26944 gcc_cv_as_cris_no_mul_bug
=yes
26946 echo "configure: failed program was" >&5
26949 rm -f conftest.o conftest.s
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26953 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26954 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26956 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26964 $as_echo_n "checking assembler for -relax option... " >&6; }
26965 if ${gcc_cv_as_sparc_relax+:} false
; then :
26966 $as_echo_n "(cached) " >&6
26968 gcc_cv_as_sparc_relax
=no
26969 if test x
$gcc_cv_as != x
; then
26970 $as_echo '.text' > conftest.s
26971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26978 gcc_cv_as_sparc_relax
=yes
26980 echo "configure: failed program was" >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26987 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26988 if test $gcc_cv_as_sparc_relax = yes; then
26990 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26996 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26997 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26998 $as_echo_n "(cached) " >&6
27000 gcc_cv_as_sparc_gotdata_op
=no
27001 if test x
$gcc_cv_as != x
; then
27007 sethi %gdop_hix22(foo), %g1
27008 xor %g1, %gdop_lox10(foo), %g1
27009 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
27010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }
27017 if test x
$gcc_cv_ld != x \
27018 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
27019 if test x
$gcc_cv_objdump != x
; then
27020 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
27021 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
27022 gcc_cv_as_sparc_gotdata_op
=no
27024 gcc_cv_as_sparc_gotdata_op
=yes
27030 echo "configure: failed program was" >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
27037 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
27038 if test $gcc_cv_as_sparc_gotdata_op = yes; then
27040 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
27046 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
27047 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
27048 $as_echo_n "(cached) " >&6
27050 gcc_cv_as_sparc_ua_pcrel
=no
27051 if test x
$gcc_cv_as != x
; then
27058 .uaword %r_disp32(foo)' > conftest.s
27059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27066 if test x
$gcc_cv_ld != x \
27067 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
27068 gcc_cv_as_sparc_ua_pcrel
=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_sparc_ua_pcrel" >&5
27079 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
27080 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
27082 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
27086 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
27087 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
27088 $as_echo_n "(cached) " >&6
27090 gcc_cv_as_sparc_ua_pcrel_hidden
=no
27091 if test x
$gcc_cv_as != x
; then
27095 .uaword %r_disp32(foo)
27096 .byte 0x32, 0x33, 0x34
27100 .skip 4' > conftest.s
27101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
27102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27103 (eval $ac_try) 2>&5
27105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27106 test $ac_status = 0; }; }
27108 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27109 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
27110 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
27111 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
27112 if $gcc_cv_objdump -R conftest
2> /dev
/null \
27113 |
grep 'DISP32' > /dev
/null
2>&1; then
27116 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
27121 echo "configure: failed program was" >&5
27124 rm -f conftest.o conftest.s
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
27128 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
27129 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
27131 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
27137 # unaligned pcrel relocs
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
27140 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
27141 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
27142 $as_echo_n "(cached) " >&6
27144 gcc_cv_as_sparc_offsetable_lo10
=no
27145 if test x
$gcc_cv_as != x
; then
27147 or %g1, %lo(ab) + 12, %g1
27148 or %g1, %lo(ab + 12), %g1' > conftest.s
27149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
27150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27151 (eval $ac_try) 2>&5
27153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27154 test $ac_status = 0; }; }
27156 if test x
$gcc_cv_objdump != x \
27157 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
27158 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
27159 gcc_cv_as_sparc_offsetable_lo10
=yes
27162 echo "configure: failed program was" >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
27169 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27170 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27172 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27178 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27179 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
27180 $as_echo_n "(cached) " >&6
27182 gcc_cv_as_sparc_fmaf
=no
27183 if test x
$gcc_cv_as != x
; then
27185 .register %g2, #scratch
27186 .register %g3, #scratch
27188 fmaddd %f0, %f2, %f4, %f6
27189 addxccc %g1, %g2, %g3
27190 fsrl32 %f2, %f4, %f8
27191 fnaddd %f10, %f12, %f14' > conftest.s
27192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27194 (eval $ac_try) 2>&5
27196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27197 test $ac_status = 0; }; }
27199 gcc_cv_as_sparc_fmaf
=yes
27201 echo "configure: failed program was" >&5
27204 rm -f conftest.o conftest.s
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27208 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27209 if test $gcc_cv_as_sparc_fmaf = yes; then
27211 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27217 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27218 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
27219 $as_echo_n "(cached) " >&6
27221 gcc_cv_as_sparc_sparc4
=no
27222 if test x
$gcc_cv_as != x
; then
27224 .register %g2, #scratch
27225 .register %g3, #scratch
27228 1: cwbneg %g2, %g3, 1f
27231 aes_kexpand0 %f4, %f6, %f8
27232 des_round %f38, %f40, %f42, %f44
27233 camellia_f %f54, %f56, %f58, %f60
27234 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27237 (eval $ac_try) 2>&5
27239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27240 test $ac_status = 0; }; }
27242 gcc_cv_as_sparc_sparc4
=yes
27244 echo "configure: failed program was" >&5
27247 rm -f conftest.o conftest.s
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27251 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27252 if test $gcc_cv_as_sparc_sparc4 = yes; then
27254 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27260 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27261 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
27262 $as_echo_n "(cached) " >&6
27264 gcc_cv_as_sparc_sparc5
=no
27265 if test x
$gcc_cv_as != x
; then
27267 .register %g2, #scratch
27268 .register %g3, #scratch
27270 subxc %g1, %g2, %g3
27271 fpadd8 %f0, %f2, %f4' > conftest.s
27272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27274 (eval $ac_try) 2>&5
27276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27277 test $ac_status = 0; }; }
27279 gcc_cv_as_sparc_sparc5
=yes
27281 echo "configure: failed program was" >&5
27284 rm -f conftest.o conftest.s
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27288 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27289 if test $gcc_cv_as_sparc_sparc5 = yes; then
27291 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27297 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27298 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27299 $as_echo_n "(cached) " >&6
27301 gcc_cv_as_sparc_sparc6
=no
27302 if test x
$gcc_cv_as != x
; then
27304 .register %g2, #scratch
27305 .register %g3, #scratch
27308 fpsll64x %f0, %f2, %f4' > conftest.s
27309 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27311 (eval $ac_try) 2>&5
27313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27314 test $ac_status = 0; }; }
27316 gcc_cv_as_sparc_sparc6
=yes
27318 echo "configure: failed program was" >&5
27321 rm -f conftest.o conftest.s
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27325 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27326 if test $gcc_cv_as_sparc_sparc6 = yes; then
27328 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27334 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27335 if ${gcc_cv_as_sparc_leon+:} false
; then :
27336 $as_echo_n "(cached) " >&6
27338 gcc_cv_as_sparc_leon
=no
27339 if test x
$gcc_cv_as != x
; then
27341 .register %g2, #scratch
27342 .register %g3, #scratch
27346 casa [%g2] 0xb, %g3, %g1' > conftest.s
27347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27354 gcc_cv_as_sparc_leon
=yes
27356 echo "configure: failed program was" >&5
27359 rm -f conftest.o conftest.s
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27363 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27364 if test $gcc_cv_as_sparc_leon = yes; then
27366 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27372 i
[34567]86-*-* | x86_64-
*-*)
27375 # Full C++ conformance when using a shared libstdc++-v3 requires some
27376 # support from the Cygwin DLL, which in more recent versions exports
27377 # wrappers to aid in interposing and redirecting operators new, delete,
27378 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27379 # are configuring for a version of Cygwin that exports the wrappers.
27380 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27381 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27382 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27383 gcc_ac_cygwin_dll_wrappers
=yes
27385 gcc_ac_cygwin_dll_wrappers
=no
27389 # Can't check presence of libc functions during cross-compile, so
27390 # we just have to assume we're building for an up-to-date target.
27391 gcc_ac_cygwin_dll_wrappers
=yes
27394 cat >>confdefs.h
<<_ACEOF
27395 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27400 cygwin
* | pe | mingw32
*)
27401 # Recent binutils allows the three-operand form of ".comm" on PE. This
27402 # definition is used unconditionally to initialise the default state of
27403 # the target option variable that governs usage of the feature.
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27405 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27406 if ${gcc_cv_as_comm_has_align+:} false
; then :
27407 $as_echo_n "(cached) " >&6
27409 gcc_cv_as_comm_has_align
=no
27410 if test x
$gcc_cv_as != x
; then
27411 $as_echo '.comm foo,1,32' > conftest.s
27412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27414 (eval $ac_try) 2>&5
27416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27417 test $ac_status = 0; }; }
27419 gcc_cv_as_comm_has_align
=yes
27421 echo "configure: failed program was" >&5
27424 rm -f conftest.o conftest.s
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27428 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27432 cat >>confdefs.h
<<_ACEOF
27433 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27436 # Used for DWARF 2 in PE
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27438 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27439 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27440 $as_echo_n "(cached) " >&6
27442 gcc_cv_as_ix86_pe_secrel32
=no
27443 if test x
$gcc_cv_as != x
; then
27447 .secrel32 foo' > conftest.s
27448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27450 (eval $ac_try) 2>&5
27452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27453 test $ac_status = 0; }; }
27455 if test x
$gcc_cv_ld != x \
27456 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27457 gcc_cv_as_ix86_pe_secrel32
=yes
27461 echo "configure: failed program was" >&5
27464 rm -f conftest.o conftest.s
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27468 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27469 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27471 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27475 # Test if the assembler supports the extended form of the .section
27476 # directive that specifies section alignment. LTO support uses this,
27477 # but normally only after installation, so we warn but don't fail the
27478 # configure if LTO is enabled but the assembler does not support it.
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27480 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27481 if ${gcc_cv_as_section_has_align+:} false
; then :
27482 $as_echo_n "(cached) " >&6
27484 gcc_cv_as_section_has_align
=no
27485 if test x
$gcc_cv_as != x
; then
27486 $as_echo '.section lto_test,"dr0"' > conftest.s
27487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27489 (eval $ac_try) 2>&5
27491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27492 test $ac_status = 0; }; }
27494 gcc_cv_as_section_has_align
=yes
27496 echo "configure: failed program was" >&5
27499 rm -f conftest.o conftest.s
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27503 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27506 if test x
$gcc_cv_as_section_has_align != xyes
; then
27507 case ",$enable_languages," in
27509 { $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
27510 $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;}
27517 darwin2
* | darwin19
*)
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27519 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27520 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27521 $as_echo_n "(cached) " >&6
27523 gcc_cv_as_mllvm_x86_pad_for_align
=no
27524 if test x
$gcc_cv_as != x
; then
27525 $as_echo '.text' > conftest.s
27526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27528 (eval $ac_try) 2>&5
27530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27531 test $ac_status = 0; }; }
27533 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27535 echo "configure: failed program was" >&5
27538 rm -f conftest.o conftest.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27542 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27543 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27545 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27553 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27554 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27555 $as_echo_n "(cached) " >&6
27557 gcc_cv_as_ix86_xbrace_comment
=no
27558 if test x
$gcc_cv_as != x
; then
27559 $as_echo '.text' > conftest.s
27560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27562 (eval $ac_try) 2>&5
27564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27565 test $ac_status = 0; }; }
27567 gcc_cv_as_ix86_xbrace_comment
=yes
27569 echo "configure: failed program was" >&5
27572 rm -f conftest.o conftest.s
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27576 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27577 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27579 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27585 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27586 if ${gcc_cv_as_ix86_filds+:} false
; then :
27587 $as_echo_n "(cached) " >&6
27589 gcc_cv_as_ix86_filds
=no
27590 if test x
$gcc_cv_as != x
; then
27591 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27594 (eval $ac_try) 2>&5
27596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27597 test $ac_status = 0; }; }
27599 gcc_cv_as_ix86_filds
=yes
27601 echo "configure: failed program was" >&5
27604 rm -f conftest.o conftest.s
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27608 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27609 if test $gcc_cv_as_ix86_filds = yes; then
27611 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27617 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27618 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27619 $as_echo_n "(cached) " >&6
27621 gcc_cv_as_ix86_fildq
=no
27622 if test x
$gcc_cv_as != x
; then
27623 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27626 (eval $ac_try) 2>&5
27628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27629 test $ac_status = 0; }; }
27631 gcc_cv_as_ix86_fildq
=yes
27633 echo "configure: failed program was" >&5
27636 rm -f conftest.o conftest.s
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27640 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27641 if test $gcc_cv_as_ix86_fildq = yes; then
27643 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27649 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27650 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27651 $as_echo_n "(cached) " >&6
27653 gcc_cv_as_ix86_cmov_sun_syntax
=no
27654 if test x
$gcc_cv_as != x
; then
27655 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27656 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27658 (eval $ac_try) 2>&5
27660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27661 test $ac_status = 0; }; }
27663 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27665 echo "configure: failed program was" >&5
27668 rm -f conftest.o conftest.s
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27672 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27673 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27675 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27681 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27682 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27683 $as_echo_n "(cached) " >&6
27685 gcc_cv_as_ix86_ffreep
=no
27686 if test x
$gcc_cv_as != x
; then
27687 $as_echo 'ffreep %st(1)' > conftest.s
27688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27690 (eval $ac_try) 2>&5
27692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693 test $ac_status = 0; }; }
27695 gcc_cv_as_ix86_ffreep
=yes
27697 echo "configure: failed program was" >&5
27700 rm -f conftest.o conftest.s
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27704 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27705 if test $gcc_cv_as_ix86_ffreep = yes; then
27707 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27713 $as_echo_n "checking assembler for .quad directive... " >&6; }
27714 if ${gcc_cv_as_ix86_quad+:} false
; then :
27715 $as_echo_n "(cached) " >&6
27717 gcc_cv_as_ix86_quad
=no
27718 if test x
$gcc_cv_as != x
; then
27719 $as_echo '.quad 0' > conftest.s
27720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27722 (eval $ac_try) 2>&5
27724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27725 test $ac_status = 0; }; }
27727 gcc_cv_as_ix86_quad
=yes
27729 echo "configure: failed program was" >&5
27732 rm -f conftest.o conftest.s
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27736 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27737 if test $gcc_cv_as_ix86_quad = yes; then
27739 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27745 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27746 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27747 $as_echo_n "(cached) " >&6
27749 gcc_cv_as_ix86_sahf
=no
27750 if test x
$gcc_cv_as != x
; then
27753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755 (eval $ac_try) 2>&5
27757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758 test $ac_status = 0; }; }
27760 gcc_cv_as_ix86_sahf
=yes
27762 echo "configure: failed program was" >&5
27765 rm -f conftest.o conftest.s
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27769 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27770 if test $gcc_cv_as_ix86_sahf = yes; then
27772 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27778 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27779 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27780 $as_echo_n "(cached) " >&6
27782 gcc_cv_as_ix86_interunit_movq
=no
27783 if test x
$gcc_cv_as != x
; then
27786 movq %rax, %xmm0' > conftest.s
27787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27789 (eval $ac_try) 2>&5
27791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27792 test $ac_status = 0; }; }
27794 gcc_cv_as_ix86_interunit_movq
=yes
27796 echo "configure: failed program was" >&5
27799 rm -f conftest.o conftest.s
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27803 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27807 cat >>confdefs.h
<<_ACEOF
27808 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27813 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27814 if ${gcc_cv_as_ix86_hle+:} false
; then :
27815 $as_echo_n "(cached) " >&6
27817 gcc_cv_as_ix86_hle
=no
27818 if test x
$gcc_cv_as != x
; then
27819 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27822 (eval $ac_try) 2>&5
27824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27825 test $ac_status = 0; }; }
27827 gcc_cv_as_ix86_hle
=yes
27829 echo "configure: failed program was" >&5
27832 rm -f conftest.o conftest.s
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27836 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27837 if test $gcc_cv_as_ix86_hle = yes; then
27839 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27845 $as_echo_n "checking assembler for swap suffix... " >&6; }
27846 if ${gcc_cv_as_ix86_swap+:} false
; then :
27847 $as_echo_n "(cached) " >&6
27849 gcc_cv_as_ix86_swap
=no
27850 if test x
$gcc_cv_as != x
; then
27851 $as_echo 'movl.s %esp, %ebp' > conftest.s
27852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27859 gcc_cv_as_ix86_swap
=yes
27861 echo "configure: failed program was" >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27868 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27869 if test $gcc_cv_as_ix86_swap = yes; then
27871 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27877 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27878 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27879 $as_echo_n "(cached) " >&6
27881 gcc_cv_as_ix86_diff_sect_delta
=no
27882 if test x
$gcc_cv_as != x
; then
27883 $as_echo '.section .rodata
27889 .L2: nop' > conftest.s
27890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27892 (eval $ac_try) 2>&5
27894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27895 test $ac_status = 0; }; }
27897 gcc_cv_as_ix86_diff_sect_delta
=yes
27899 echo "configure: failed program was" >&5
27902 rm -f conftest.o conftest.s
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27906 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27907 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27909 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27915 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27916 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27917 $as_echo_n "(cached) " >&6
27919 gcc_cv_as_ix86_rep_lock_prefix
=no
27920 if test x
$gcc_cv_as != x
; then
27921 $as_echo 'rep movsl
27926 lock addl %edi, (%eax,%esi)
27927 lock orl $0, (%esp)' > conftest.s
27928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; }
27935 gcc_cv_as_ix86_rep_lock_prefix
=yes
27937 echo "configure: failed program was" >&5
27940 rm -f conftest.o conftest.s
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27944 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27945 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27947 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27953 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27954 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27955 $as_echo_n "(cached) " >&6
27957 gcc_cv_as_ix86_ud2
=no
27958 if test x
$gcc_cv_as != x
; then
27959 $as_echo 'ud2' > conftest.s
27960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27962 (eval $ac_try) 2>&5
27964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27965 test $ac_status = 0; }; }
27967 gcc_cv_as_ix86_ud2
=yes
27969 echo "configure: failed program was" >&5
27972 rm -f conftest.o conftest.s
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27976 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27977 if test $gcc_cv_as_ix86_ud2 = yes; then
27979 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27984 # Enforce 32-bit output with gas and gld.
27985 if test x
$gas = xyes
; then
27986 as_ix86_gas_32_opt
="--32"
27988 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27989 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27990 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27992 ld_ix86_gld_32_opt
="-melf_i386"
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27997 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27998 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27999 $as_echo_n "(cached) " >&6
28001 gcc_cv_as_ix86_tlsgdplt
=no
28002 if test x
$gcc_cv_as != x
; then
28003 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
28004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28006 (eval $ac_try) 2>&5
28008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009 test $ac_status = 0; }; }
28011 if test x
$gcc_cv_ld != x \
28012 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
28013 gcc_cv_as_ix86_tlsgdplt
=yes
28017 echo "configure: failed program was" >&5
28020 rm -f conftest.o conftest.s
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
28024 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
28025 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
28027 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
28033 .section .tdata,"aw'$tls_section_flag'",@progbits
28035 .section .text,"ax",@progbits
28036 call tls_ld@tlsldmplt'
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
28039 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
28040 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
28041 $as_echo_n "(cached) " >&6
28043 gcc_cv_as_ix86_tlsldmplt
=no
28044 if test x
$gcc_cv_as != x
; then
28045 $as_echo "$conftest_s" > conftest.s
28046 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28048 (eval $ac_try) 2>&5
28050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28051 test $ac_status = 0; }; }
28053 if test x
$gcc_cv_ld != x \
28054 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
28055 gcc_cv_as_ix86_tlsldmplt
=yes
28059 echo "configure: failed program was" >&5
28062 rm -f conftest.o conftest.s
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
28066 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
28070 cat >>confdefs.h
<<_ACEOF
28071 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
28076 .section .text,"ax",@progbits
28078 .type _start, @function
28080 leal value@tlsldm(%ebx), %eax
28081 call ___tls_get_addr@plt
28083 .section .tdata,"aw'$tls_section_flag'",@progbits
28084 .type value, @object
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
28087 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
28088 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
28089 $as_echo_n "(cached) " >&6
28091 gcc_cv_as_ix86_tlsldm
=no
28092 if test x
$gcc_cv_as != x
; then
28093 $as_echo "$conftest_s" > conftest.s
28094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28096 (eval $ac_try) 2>&5
28098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28099 test $ac_status = 0; }; }
28101 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28102 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
28103 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
28104 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
28105 gcc_cv_as_ix86_tlsldm
=yes
28110 echo "configure: failed program was" >&5
28113 rm -f conftest.o conftest.s
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
28117 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
28121 cat >>confdefs.h
<<_ACEOF
28122 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
28136 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
28137 if ${gcc_cv_as_ix86_got32x+:} false
; then :
28138 $as_echo_n "(cached) " >&6
28140 gcc_cv_as_ix86_got32x
=no
28141 if test x
$gcc_cv_as != x
; then
28142 $as_echo "$conftest_s" > conftest.s
28143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28145 (eval $ac_try) 2>&5
28147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28148 test $ac_status = 0; }; }
28150 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28151 && test x
$gcc_cv_readelf != x \
28152 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
28153 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
28154 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28155 if $gcc_cv_objdump -dw conftest
2>&1 \
28156 |
grep 0xffffff > /dev
/null
2>&1; then
28157 gcc_cv_as_ix86_got32x
=no
28159 gcc_cv_as_ix86_got32x
=yes
28164 echo "configure: failed program was" >&5
28167 rm -f conftest.o conftest.s
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28171 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28175 cat >>confdefs.h
<<_ACEOF
28176 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28181 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28182 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
28183 $as_echo_n "(cached) " >&6
28185 gcc_cv_as_ix86_gotoff_in_data
=no
28186 if test x
$gcc_cv_as != x
; then
28191 .long .L0@GOTOFF' > conftest.s
28192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28194 (eval $ac_try) 2>&5
28196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28197 test $ac_status = 0; }; }
28199 gcc_cv_as_ix86_gotoff_in_data
=yes
28201 echo "configure: failed program was" >&5
28204 rm -f conftest.o conftest.s
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28208 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28212 cat >>confdefs.h
<<_ACEOF
28213 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28218 .section .text,"ax",@progbits
28220 .type _start, @function
28222 leal ld@tlsldm(%ecx), %eax
28223 call *___tls_get_addr@GOT(%ecx)
28224 leal gd@tlsgd(%ecx), %eax
28225 call *___tls_get_addr@GOT(%ecx)
28227 .section .tdata,"aw'$tls_section_flag'",@progbits
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28236 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28237 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
28238 $as_echo_n "(cached) " >&6
28240 gcc_cv_as_ix86_tls_get_addr_via_got
=no
28241 if test x
$gcc_cv_as != x
; then
28242 $as_echo "$conftest_s" > conftest.s
28243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28245 (eval $ac_try) 2>&5
28247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28248 test $ac_status = 0; }; }
28250 if test x
$gcc_cv_ld != x \
28251 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28252 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
28256 echo "configure: failed program was" >&5
28259 rm -f conftest.o conftest.s
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28263 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28267 cat >>confdefs.h
<<_ACEOF
28268 #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`
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28275 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28276 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
28277 $as_echo_n "(cached) " >&6
28279 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
28280 if test x
$gcc_cv_as != x
; then
28282 addl r15 = @ltoffx(x#), gp
28284 ld8.mov r16 = [r15], x#
28286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28288 (eval $ac_try) 2>&5
28290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28291 test $ac_status = 0; }; }
28293 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28295 echo "configure: failed program was" >&5
28298 rm -f conftest.o conftest.s
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28302 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28303 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28305 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28317 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28318 if ${gcc_cv_as_machine_directive+:} false
; then :
28319 $as_echo_n "(cached) " >&6
28321 gcc_cv_as_machine_directive
=no
28322 if test x
$gcc_cv_as != x
; then
28323 $as_echo ' .machine ppc7400' > conftest.s
28324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28331 gcc_cv_as_machine_directive
=yes
28333 echo "configure: failed program was" >&5
28336 rm -f conftest.o conftest.s
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28340 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28343 if test x
$gcc_cv_as_machine_directive != xyes
; then
28344 echo "*** This target requires an assembler supporting \".machine\"" >&2
28345 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28346 test x
$build = x
$target && exit 1
28352 *-*-aix*) conftest_s
=' .machine "pwr5"
28355 *-*-darwin*) conftest_s
=' .text
28357 *) conftest_s
=' .machine power4
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28363 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28364 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28365 $as_echo_n "(cached) " >&6
28367 gcc_cv_as_powerpc_mfcrf
=no
28368 if test x
$gcc_cv_as != x
; then
28369 $as_echo "$conftest_s" > conftest.s
28370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28372 (eval $ac_try) 2>&5
28374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28375 test $ac_status = 0; }; }
28377 gcc_cv_as_powerpc_mfcrf
=yes
28379 echo "configure: failed program was" >&5
28382 rm -f conftest.o conftest.s
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28386 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28387 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28389 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28395 *-*-aix*) conftest_s
=' .csect .text[PR]
28397 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28401 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28402 *) conftest_s
=' .text
28404 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28408 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28409 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28410 $as_echo_n "(cached) " >&6
28412 gcc_cv_as_powerpc_rel16
=no
28413 if test x
$gcc_cv_as != x
; then
28414 $as_echo "$conftest_s" > conftest.s
28415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28422 gcc_cv_as_powerpc_rel16
=yes
28424 echo "configure: failed program was" >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28431 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28432 if test $gcc_cv_as_powerpc_rel16 = yes; then
28434 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28440 *-*-aix*) conftest_s
=' .machine "pwr7"
28443 *) conftest_s
=' .machine power7
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28449 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28450 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28451 $as_echo_n "(cached) " >&6
28453 gcc_cv_as_powerpc_vsx
=no
28454 if test x
$gcc_cv_as != x
; then
28455 $as_echo "$conftest_s" > conftest.s
28456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28458 (eval $ac_try) 2>&5
28460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }; }
28463 gcc_cv_as_powerpc_vsx
=yes
28465 echo "configure: failed program was" >&5
28468 rm -f conftest.o conftest.s
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28472 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28473 if test $gcc_cv_as_powerpc_vsx = yes; then
28475 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28481 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28482 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28483 $as_echo_n "(cached) " >&6
28485 gcc_cv_as_powerpc_gnu_attribute
=no
28486 if test x
$gcc_cv_as != x
; then
28487 $as_echo '.gnu_attribute 4,1' > conftest.s
28488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28490 (eval $ac_try) 2>&5
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; }
28495 gcc_cv_as_powerpc_gnu_attribute
=yes
28497 echo "configure: failed program was" >&5
28500 rm -f conftest.o conftest.s
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28504 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28505 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28507 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28513 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28514 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28515 $as_echo_n "(cached) " >&6
28517 gcc_cv_as_powerpc_entry_markers
=no
28518 if test x
$gcc_cv_as != x
; then
28519 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28522 (eval $ac_try) 2>&5
28524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28525 test $ac_status = 0; }; }
28527 gcc_cv_as_powerpc_entry_markers
=yes
28529 echo "configure: failed program was" >&5
28532 rm -f conftest.o conftest.s
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28536 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28537 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28539 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28545 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28546 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28547 $as_echo_n "(cached) " >&6
28549 gcc_cv_as_powerpc_pltseq_markers
=no
28550 if test x
$gcc_cv_as != x
; then
28551 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28552 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28554 (eval $ac_try) 2>&5
28556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28557 test $ac_status = 0; }; }
28559 gcc_cv_as_powerpc_pltseq_markers
=yes
28561 echo "configure: failed program was" >&5
28564 rm -f conftest.o conftest.s
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28568 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28569 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28571 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28579 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28580 if ${gcc_cv_as_aix_ref+:} false
; then :
28581 $as_echo_n "(cached) " >&6
28583 gcc_cv_as_aix_ref
=no
28584 if test x
$gcc_cv_as != x
; then
28585 $as_echo ' .csect stuff[rw]
28591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28593 (eval $ac_try) 2>&5
28595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28596 test $ac_status = 0; }; }
28598 gcc_cv_as_aix_ref
=yes
28600 echo "configure: failed program was" >&5
28603 rm -f conftest.o conftest.s
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28607 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28608 if test $gcc_cv_as_aix_ref = yes; then
28610 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28616 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28617 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28618 $as_echo_n "(cached) " >&6
28620 gcc_cv_as_aix_dwloc
=no
28621 if test x
$gcc_cv_as != x
; then
28622 $as_echo ' .dwsect 0xA0000
28626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28628 (eval $ac_try) 2>&5
28630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631 test $ac_status = 0; }; }
28633 gcc_cv_as_aix_dwloc
=yes
28635 echo "configure: failed program was" >&5
28638 rm -f conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28642 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28643 if test $gcc_cv_as_aix_dwloc = yes; then
28645 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28655 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28656 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28657 $as_echo_n "(cached) " >&6
28659 gcc_cv_as_mips_explicit_relocs
=no
28660 if test x
$gcc_cv_as != x
; then
28661 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28664 (eval $ac_try) 2>&5
28666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28667 test $ac_status = 0; }; }
28669 gcc_cv_as_mips_explicit_relocs
=yes
28671 echo "configure: failed program was" >&5
28674 rm -f conftest.o conftest.s
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28678 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28679 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28680 if test x
$target_cpu_default = x
28681 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28682 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28688 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28689 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28690 $as_echo_n "(cached) " >&6
28692 gcc_cv_as_mips_no_shared
=no
28693 if test x
$gcc_cv_as != x
; then
28694 $as_echo 'nop' > conftest.s
28695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28697 (eval $ac_try) 2>&5
28699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28700 test $ac_status = 0; }; }
28702 gcc_cv_as_mips_no_shared
=yes
28704 echo "configure: failed program was" >&5
28707 rm -f conftest.o conftest.s
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28711 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28712 if test $gcc_cv_as_mips_no_shared = yes; then
28714 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28720 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28721 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28722 $as_echo_n "(cached) " >&6
28724 gcc_cv_as_mips_gnu_attribute
=no
28725 if test x
$gcc_cv_as != x
; then
28726 $as_echo '.gnu_attribute 4,1' > conftest.s
28727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28729 (eval $ac_try) 2>&5
28731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28732 test $ac_status = 0; }; }
28734 gcc_cv_as_mips_gnu_attribute
=yes
28736 echo "configure: failed program was" >&5
28739 rm -f conftest.o conftest.s
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28743 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28744 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28746 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28752 $as_echo_n "checking assembler for .module support... " >&6; }
28753 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28754 $as_echo_n "(cached) " >&6
28756 gcc_cv_as_mips_dot_module
=no
28757 if test x
$gcc_cv_as != x
; then
28758 $as_echo '.module mips2
28759 .module fp=xx' > conftest.s
28760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28762 (eval $ac_try) 2>&5
28764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28765 test $ac_status = 0; }; }
28767 gcc_cv_as_mips_dot_module
=yes
28769 echo "configure: failed program was" >&5
28772 rm -f conftest.o conftest.s
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28776 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28777 if test $gcc_cv_as_mips_dot_module = yes; then
28779 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28783 if test x
$gcc_cv_as_mips_dot_module = xno \
28784 && test x
$with_fp_32 != x
; then
28785 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28789 $as_echo_n "checking assembler for .micromips support... " >&6; }
28790 if ${gcc_cv_as_micromips_support+:} false
; then :
28791 $as_echo_n "(cached) " >&6
28793 gcc_cv_as_micromips_support
=no
28794 if test x
$gcc_cv_as != x
; then
28795 $as_echo '.set micromips' > conftest.s
28796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28798 (eval $ac_try) 2>&5
28800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28801 test $ac_status = 0; }; }
28803 gcc_cv_as_micromips_support
=yes
28805 echo "configure: failed program was" >&5
28808 rm -f conftest.o conftest.s
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28812 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28813 if test $gcc_cv_as_micromips_support = yes; then
28815 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28821 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28822 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28823 $as_echo_n "(cached) " >&6
28825 gcc_cv_as_mips_dtprelword
=no
28826 if test x
$gcc_cv_as != x
; then
28827 $as_echo '.section .tdata,"awT",@progbits
28831 .dtprelword x+0x8000' > conftest.s
28832 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28834 (eval $ac_try) 2>&5
28836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28837 test $ac_status = 0; }; }
28839 gcc_cv_as_mips_dtprelword
=yes
28841 echo "configure: failed program was" >&5
28844 rm -f conftest.o conftest.s
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28848 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28849 if test $gcc_cv_as_mips_dtprelword = yes; then
28851 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28857 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28858 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28859 $as_echo_n "(cached) " >&6
28861 gcc_cv_as_mips_dspr1_mult
=no
28862 if test x
$gcc_cv_as != x
; then
28863 $as_echo ' .set mips32r2
28871 multu $ac3,$4,$5' > conftest.s
28872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28874 (eval $ac_try) 2>&5
28876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28877 test $ac_status = 0; }; }
28879 gcc_cv_as_mips_dspr1_mult
=yes
28881 echo "configure: failed program was" >&5
28884 rm -f conftest.o conftest.s
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28888 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28889 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28891 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28897 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28898 gcc_cv_as_ld_jalr_reloc
=no
28899 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28900 if test $in_tree_ld = yes ; then
28901 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 \
28902 && test $in_tree_ld_is_elf = yes; then
28903 gcc_cv_as_ld_jalr_reloc
=yes
28905 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28906 echo ' .ent x' > conftest.s
28907 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28908 echo ' lw $25,%call16(y)($28)' >> conftest.s
28909 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28910 echo '1: jalr $25' >> conftest.s
28911 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28912 echo '1: jalr $25' >> conftest.s
28913 echo ' .end x' >> conftest.s
28914 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28915 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28916 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28917 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28918 gcc_cv_as_ld_jalr_reloc
=yes
28924 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28925 if test x
$target_cpu_default = x
; then
28926 target_cpu_default
=MASK_RELAX_PIC_CALLS
28928 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28932 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28935 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28936 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28937 $as_echo_n "(cached) " >&6
28939 gcc_cv_ld_mips_personality_relaxation
=no
28940 if test $in_tree_ld = yes ; then
28941 if test "$gcc_cv_gld_major_version" -eq 2 \
28942 -a "$gcc_cv_gld_minor_version" -ge 21 \
28943 -o "$gcc_cv_gld_major_version" -gt 2; then
28944 gcc_cv_ld_mips_personality_relaxation
=yes
28946 elif test x
$gcc_cv_as != x \
28947 -a x
$gcc_cv_ld != x \
28948 -a x
$gcc_cv_readelf != x
; then
28949 cat > conftest.s
<<EOF
28951 .cfi_personality 0x80,indirect_ptr
28958 .section .data,"aw",@progbits
28962 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28963 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28964 if $gcc_cv_readelf -d conftest
2>&1 \
28965 |
grep TEXTREL
> /dev
/null
2>&1; then
28967 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28968 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28971 gcc_cv_ld_mips_personality_relaxation
=yes
28975 rm -f conftest.s conftest.o conftest
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28978 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28979 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28981 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28986 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28987 if ${gcc_cv_as_mips_nan+:} false
; then :
28988 $as_echo_n "(cached) " >&6
28990 gcc_cv_as_mips_nan
=no
28991 if test x
$gcc_cv_as != x
; then
28992 $as_echo '' > conftest.s
28993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28995 (eval $ac_try) 2>&5
28997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28998 test $ac_status = 0; }; }
29000 gcc_cv_as_mips_nan
=yes
29002 echo "configure: failed program was" >&5
29005 rm -f conftest.o conftest.s
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
29009 $as_echo "$gcc_cv_as_mips_nan" >&6; }
29010 if test $gcc_cv_as_mips_nan = yes; then
29012 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
29016 if test x
$gcc_cv_as_mips_nan = xno \
29017 && test x
$with_nan != x
; then
29018 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
29022 # Earlier GAS versions generically support .gnu_attribute, but the
29023 # msp430 assembler will not do anything with it.
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29025 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29026 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
29027 $as_echo_n "(cached) " >&6
29029 gcc_cv_as_msp430_gnu_attribute
=no
29030 if test x
$gcc_cv_as != x
; then
29031 $as_echo '.gnu_attribute 4,1' > conftest.s
29032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29034 (eval $ac_try) 2>&5
29036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037 test $ac_status = 0; }; }
29039 gcc_cv_as_msp430_gnu_attribute
=yes
29041 echo "configure: failed program was" >&5
29044 rm -f conftest.o conftest.s
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
29048 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
29049 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
29051 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
29056 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
29057 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
29058 $as_echo_n "(cached) " >&6
29060 gcc_cv_as_msp430_mspabi_attribute
=no
29061 if test x
$gcc_cv_as != x
; then
29062 $as_echo '.mspabi_attribute 4,2' > conftest.s
29063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29065 (eval $ac_try) 2>&5
29067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29068 test $ac_status = 0; }; }
29070 gcc_cv_as_msp430_mspabi_attribute
=yes
29072 echo "configure: failed program was" >&5
29075 rm -f conftest.o conftest.s
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
29079 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
29080 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
29082 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
29086 if test x
$enable_newlib_nano_formatted_io = xyes
; then
29088 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
29093 # Versions 2.33 and earlier lacked support for the %gotoff relocation
29094 # syntax that is documented in the ABI specification.
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
29096 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
29097 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
29098 $as_echo_n "(cached) " >&6
29100 gcc_cv_as_nios2_gotoff_relocation
=no
29101 if test x
$gcc_cv_as != x
; then
29102 $as_echo ' .extern foo
29104 .long %gotoff(foo)' > conftest.s
29105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29112 gcc_cv_as_nios2_gotoff_relocation
=yes
29114 echo "configure: failed program was" >&5
29117 rm -f conftest.o conftest.s
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
29121 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
29122 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
29124 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
29131 $as_echo_n "checking assembler for .attribute support... " >&6; }
29132 if ${gcc_cv_as_riscv_attribute+:} false
; then :
29133 $as_echo_n "(cached) " >&6
29135 gcc_cv_as_riscv_attribute
=no
29136 if test x
$gcc_cv_as != x
; then
29137 $as_echo '.attribute stack_align,4' > conftest.s
29138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29140 (eval $ac_try) 2>&5
29142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29143 test $ac_status = 0; }; }
29145 gcc_cv_as_riscv_attribute
=yes
29147 echo "configure: failed program was" >&5
29150 rm -f conftest.o conftest.s
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
29154 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
29155 if test $gcc_cv_as_riscv_attribute = yes; then
29157 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
29162 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
29163 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
29164 $as_echo_n "(cached) " >&6
29166 gcc_cv_as_riscv_isa_spec
=no
29167 if test x
$gcc_cv_as != x
; then
29168 $as_echo '' > conftest.s
29169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
29170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29171 (eval $ac_try) 2>&5
29173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29174 test $ac_status = 0; }; }
29176 gcc_cv_as_riscv_isa_spec
=yes
29178 echo "configure: failed program was" >&5
29181 rm -f conftest.o conftest.s
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
29185 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
29186 if test $gcc_cv_as_riscv_isa_spec = yes; then
29188 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
29193 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
29194 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
29195 $as_echo_n "(cached) " >&6
29197 gcc_cv_as_riscv_march_zifencei
=no
29198 if test x
$gcc_cv_as != x
; then
29199 $as_echo '' > conftest.s
29200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
29201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29202 (eval $ac_try) 2>&5
29204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205 test $ac_status = 0; }; }
29207 gcc_cv_as_riscv_march_zifencei
=yes
29209 echo "configure: failed program was" >&5
29212 rm -f conftest.o conftest.s
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
29216 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
29217 if test $gcc_cv_as_riscv_march_zifencei = yes; then
29219 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
29226 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
29227 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
29228 $as_echo_n "(cached) " >&6
29230 gcc_cv_as_loongarch_dtprelword
=no
29231 if test x
$gcc_cv_as != x
; then
29232 $as_echo '' > conftest.s
29233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
29234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29235 (eval $ac_try) 2>&5
29237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29238 test $ac_status = 0; }; }
29240 .section .tdata
,"awT",@progbits
29244 .dtprelword x
+0x8000
29246 echo "configure: failed program was" >&5
29249 rm -f conftest.o conftest.s
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29253 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29255 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29257 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29261 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29262 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
29263 $as_echo_n "(cached) " >&6
29265 gcc_cv_as_loongarch_explicit_relocs
=no
29266 if test x
$gcc_cv_as != x
; then
29267 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29270 (eval $ac_try) 2>&5
29272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29273 test $ac_status = 0; }; }
29275 gcc_cv_as_loongarch_explicit_relocs
=yes
29277 echo "configure: failed program was" >&5
29280 rm -f conftest.o conftest.s
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29284 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29285 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29287 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29292 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29293 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
29294 $as_echo_n "(cached) " >&6
29296 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
29297 if test x
$gcc_cv_as != x
; then
29298 $as_echo '.cfi_startproc
29299 .cfi_personality 0x9b,a
29301 .cfi_endproc' > conftest.s
29302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29304 (eval $ac_try) 2>&5
29306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307 test $ac_status = 0; }; }
29309 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
29311 echo "configure: failed program was" >&5
29314 rm -f conftest.o conftest.s
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29318 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29319 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29321 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
29326 $as_echo_n "checking assembler for -mrelax option... " >&6; }
29327 if ${gcc_cv_as_loongarch_relax+:} false
; then :
29328 $as_echo_n "(cached) " >&6
29330 gcc_cv_as_loongarch_relax
=no
29331 if test x
$gcc_cv_as != x
; then
29332 $as_echo '.text' > conftest.s
29333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29340 gcc_cv_as_loongarch_relax
=yes
29342 echo "configure: failed program was" >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
29349 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
29350 if test $gcc_cv_as_loongarch_relax = yes; then
29352 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29359 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29360 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29361 $as_echo_n "(cached) " >&6
29363 gcc_cv_as_s390_gnu_attribute
=no
29364 if test x
$gcc_cv_as != x
; then
29365 $as_echo '.gnu_attribute 8,1' > conftest.s
29366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29368 (eval $ac_try) 2>&5
29370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29371 test $ac_status = 0; }; }
29373 gcc_cv_as_s390_gnu_attribute
=yes
29375 echo "configure: failed program was" >&5
29378 rm -f conftest.o conftest.s
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29382 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29383 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29385 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29390 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29391 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29392 $as_echo_n "(cached) " >&6
29394 gcc_cv_as_s390_machine_machinemode
=no
29395 if test x
$gcc_cv_as != x
; then
29396 $as_echo ' .machinemode push
29399 .machine pop' > conftest.s
29400 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29402 (eval $ac_try) 2>&5
29404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29405 test $ac_status = 0; }; }
29407 gcc_cv_as_s390_machine_machinemode
=yes
29409 echo "configure: failed program was" >&5
29412 rm -f conftest.o conftest.s
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29416 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29417 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29419 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29424 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29425 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29426 $as_echo_n "(cached) " >&6
29428 gcc_cv_as_s390_architecture_modifiers
=no
29429 if test x
$gcc_cv_as != x
; then
29430 $as_echo ' .machine z13+vx ' > conftest.s
29431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29433 (eval $ac_try) 2>&5
29435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29436 test $ac_status = 0; }; }
29438 gcc_cv_as_s390_architecture_modifiers
=yes
29440 echo "configure: failed program was" >&5
29443 rm -f conftest.o conftest.s
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29447 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29448 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29450 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29455 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29456 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29457 $as_echo_n "(cached) " >&6
29459 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29460 if test x
$gcc_cv_as != x
; then
29461 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29464 (eval $ac_try) 2>&5
29466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29467 test $ac_status = 0; }; }
29469 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29471 echo "configure: failed program was" >&5
29474 rm -f conftest.o conftest.s
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29478 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29479 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29481 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29486 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29487 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29488 $as_echo_n "(cached) " >&6
29490 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29491 if test x
$gcc_cv_as != x
; then
29492 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29495 (eval $ac_try) 2>&5
29497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29498 test $ac_status = 0; }; }
29500 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29502 echo "configure: failed program was" >&5
29505 rm -f conftest.o conftest.s
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29509 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29510 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29512 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29520 # Mips, LoongArch and HP-UX need the GNU assembler.
29521 # Linux on IA64 might be able to use the Intel assembler.
29524 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29525 if test x
$gas_flag = xyes \
29526 ||
test x
"$host" != x
"$build" \
29527 ||
test ! -x "$gcc_cv_as" \
29528 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29531 echo "*** This configuration requires the GNU assembler" >&2
29537 # AMD GCN needs the LLVM assembler and linker.
29538 # Test that LLVM is at least 13.0.1.
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29542 $as_echo_n "checking llvm assembler version... " >&6; }
29543 gcc_cv_as_version
="unknown"
29544 if test x
$gcc_cv_as != x
; then
29545 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29546 case "$gcc_cv_as_version" in
29547 13.0.
[1-9]*) ;; # 13.0.1+
29548 13.
[1-9]*) ;; # 13.1+
29549 1[4-9]*) ;; # 14..19
29550 [2-9][0-9]*) ;; # 20..99
29551 [1-9][0-9][0-9]*) ;; # 100+
29552 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29553 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29557 $as_echo "$gcc_cv_as_version, ok" >&6; }
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29564 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29565 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29566 $as_echo_n "(cached) " >&6
29568 gcc_cv_as_arm_option_extensions
=no
29569 if test x
$gcc_cv_as != x
; then
29573 vmov.f32 s0, s1' > conftest.s
29574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29576 (eval $ac_try) 2>&5
29578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29579 test $ac_status = 0; }; }
29581 gcc_cv_as_arm_option_extensions
=yes
29583 echo "configure: failed program was" >&5
29586 rm -f conftest.o conftest.s
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29590 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29591 if test $gcc_cv_as_arm_option_extensions = yes; then
29593 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29599 # ??? Not all targets support dwarf2 debug_line, even within a version
29600 # of gas. Moreover, we need to emit a valid instruction to trigger any
29601 # info to the output file. So, as supported targets are added to gas 2.11,
29602 # add some instruction here to (also) show we expect this might work.
29603 # ??? Once 2.11 is released, probably need to add first known working
29604 # version to the per-target configury.
29605 case "$cpu_type" in
29606 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29607 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29608 | visium | xstormy16 | xtensa
)
29618 if test x
"$insn" != x
; then
29620 .file 1 \"conftest.s\"
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29624 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29625 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29626 $as_echo_n "(cached) " >&6
29628 gcc_cv_as_dwarf2_debug_line
=no
29629 if test x
$gcc_cv_as != x
; then
29630 $as_echo "$conftest_s" > conftest.s
29631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29633 (eval $ac_try) 2>&5
29635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29636 test $ac_status = 0; }; }
29638 if test x
$gcc_cv_objdump != x \
29639 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29640 |
grep debug_line
> /dev
/null
2>&1; then
29641 gcc_cv_as_dwarf2_debug_line
=yes
29642 elif test x
$gcc_cv_otool != x \
29643 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29644 |
grep debug_line
> /dev
/null
2>&1; then
29645 gcc_cv_as_dwarf2_debug_line
=yes
29648 echo "configure: failed program was" >&5
29651 rm -f conftest.o conftest.s
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29655 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29659 # The .debug_line file table must be in the exact order that
29660 # we specified the files, since these indices are also used
29661 # by DW_AT_decl_file. Approximate this test by testing if
29662 # the assembler bitches if the same index is assigned twice.
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29664 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29665 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29666 $as_echo_n "(cached) " >&6
29668 gcc_cv_as_dwarf2_file_buggy
=no
29669 if test x
$gcc_cv_as != x
; then
29670 $as_echo ' .file 1 "foo.s"
29671 .file 1 "bar.s"' > conftest.s
29672 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29674 (eval $ac_try) 2>&5
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; }
29679 gcc_cv_as_dwarf2_file_buggy
=yes
29681 echo "configure: failed program was" >&5
29684 rm -f conftest.o conftest.s
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29688 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29692 if test $gcc_cv_as_dwarf2_debug_line = yes \
29693 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29695 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29698 if test $gcc_cv_as_leb128 = yes; then
29700 .file 1 \"conftest.s\"
29701 .loc 1 3 0 view .LVU1
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29708 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29709 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29710 $as_echo_n "(cached) " >&6
29712 gcc_cv_as_dwarf2_debug_view
=no
29713 if test x
$gcc_cv_as != x
; then
29714 $as_echo "$conftest_s" > conftest.s
29715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; }
29722 gcc_cv_as_dwarf2_debug_view
=yes
29724 echo "configure: failed program was" >&5
29727 rm -f conftest.o conftest.s
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29731 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29732 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29734 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29742 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29743 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29744 $as_echo_n "(cached) " >&6
29746 gcc_cv_as_gdwarf2_flag
=no
29747 if test x
$gcc_cv_as != x
; then
29748 $as_echo "$insn" > conftest.s
29749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29751 (eval $ac_try) 2>&5
29753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29754 test $ac_status = 0; }; }
29756 gcc_cv_as_gdwarf2_flag
=yes
29758 echo "configure: failed program was" >&5
29761 rm -f conftest.o conftest.s
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29765 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29766 if test $gcc_cv_as_gdwarf2_flag = yes; then
29768 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29774 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29775 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29776 $as_echo_n "(cached) " >&6
29778 gcc_cv_as_gdwarf_5_flag
=no
29779 if test x
$gcc_cv_as != x
; then
29780 $as_echo "$insn" > conftest.s
29781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29783 (eval $ac_try) 2>&5
29785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29786 test $ac_status = 0; }; }
29788 if test x
$gcc_cv_objdump != x \
29789 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29790 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29791 gcc_cv_as_gdwarf_5_flag
=yes;
29794 echo "configure: failed program was" >&5
29797 rm -f conftest.o conftest.s
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29801 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29802 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29804 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29810 win32 | pe | cygwin
* | mingw32
*)
29811 section_flags
=\"dr
\"
29812 function_type
=".def foo; .scl 2; .type 32; .endef"
29815 section_flags
=\"\",%progbits
29816 function_type
=".type foo, %function"
29817 function_size
=".size foo, .-foo";;
29819 dwarf4_debug_info_size
=0x46
29820 dwarf4_high_pc_form
=7
29821 dwarf4_debug_aranges_size
=0x2c
29823 for dwarf4_addr_size
in 8 4; do
29839 .section .debug_info,$section_flags
29841 .4byte $dwarf4_debug_info_size
29843 .4byte .Ldebug_abbrev0
29844 .byte 0x$dwarf4_addr_size
29846 .ascii \"GNU C17\\0\"
29850 .${dwarf4_addr_size}byte .Ltext0
29851 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29852 .4byte .Ldebug_line0
29858 .${dwarf4_addr_size}byte .LFB0
29859 .${dwarf4_addr_size}byte .LFE0-.LFB0
29863 .section .debug_abbrev,$section_flags
29879 .byte 0x$dwarf4_high_pc_form
29900 .byte 0x$dwarf4_high_pc_form
29906 .section .debug_aranges,$section_flags
29907 .4byte $dwarf4_debug_aranges_size
29909 .4byte .Ldebug_info0
29914 .${dwarf4_addr_size}byte .Ltext0
29915 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29916 .${dwarf4_addr_size}byte 0
29917 .${dwarf4_addr_size}byte 0
29918 .section .debug_line,$section_flags
29920 .4byte .LELT0-.LSLT0
29923 .4byte .LELTP0-.LASLTP0
29951 .byte 0x$dwarf4_line_sz
29953 .${dwarf4_addr_size}byte .LM1
29958 .byte 0x$dwarf4_line_sz
29960 .${dwarf4_addr_size}byte .LM2
29965 .byte 0x$dwarf4_line_sz
29967 .${dwarf4_addr_size}byte .Letext0
29972 .section .debug_str,$section_flags
29976 if test $dwarf4_addr_size = 4; then
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29978 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29979 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29980 $as_echo_n "(cached) " >&6
29982 gcc_cv_as_debug_line_32_flag
=no
29983 if test x
$gcc_cv_as != x
; then
29984 $as_echo "$conftest_s" > conftest.s
29985 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29987 (eval $ac_try) 2>&5
29989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29990 test $ac_status = 0; }; }
29992 gcc_cv_as_debug_line_32_flag
=yes
29994 echo "configure: failed program was" >&5
29997 rm -f conftest.o conftest.s
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
30001 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
30002 if test $gcc_cv_as_debug_line_32_flag = yes; then
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
30008 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
30009 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
30010 $as_echo_n "(cached) " >&6
30012 gcc_cv_as_debug_line_64_flag
=no
30013 if test x
$gcc_cv_as != x
; then
30014 $as_echo "$conftest_s" > conftest.s
30015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30017 (eval $ac_try) 2>&5
30019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020 test $ac_status = 0; }; }
30022 gcc_cv_as_debug_line_64_flag
=yes
30024 echo "configure: failed program was" >&5
30027 rm -f conftest.o conftest.s
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
30031 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
30032 if test $gcc_cv_as_debug_line_64_flag = yes; then
30037 if test $dwarf4_success = yes; then
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
30040 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
30041 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
30042 $as_echo_n "(cached) " >&6
30044 gcc_cv_as_dwarf_4_debug_line_flag
=no
30045 if test x
$gcc_cv_as != x
; then
30046 $as_echo "$conftest_s" > conftest.s
30047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30049 (eval $ac_try) 2>&5
30051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30052 test $ac_status = 0; }; }
30054 gcc_cv_as_dwarf_4_debug_line_flag
=yes
30056 echo "configure: failed program was" >&5
30059 rm -f conftest.o conftest.s
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
30063 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
30064 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
30070 dwarf4_debug_info_size
=0x36
30071 dwarf4_high_pc_form
=6
30072 dwarf4_debug_aranges_size
=0x1c
30076 if test $dwarf4_success = yes; then
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
30095 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
30096 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
30097 $as_echo_n "(cached) " >&6
30099 gcc_cv_as_dwarf_4_app_flag
=no
30100 if test x
$gcc_cv_as != x
; then
30101 $as_echo "$conftest_s" > conftest.s
30102 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30104 (eval $ac_try) 2>&5
30106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30107 test $ac_status = 0; }; }
30109 gcc_cv_as_dwarf_4_app_flag
=yes
30111 echo "configure: failed program was" >&5
30114 rm -f conftest.o conftest.s
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
30118 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
30119 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
30125 if test $dwarf4_success = yes; then
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
30136 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
30137 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
30138 $as_echo_n "(cached) " >&6
30140 gcc_cv_as_working_gdwarf_n_flag
=no
30141 if test x
$gcc_cv_as != x
; then
30142 $as_echo "$conftest_s" > conftest.s
30143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
30144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30145 (eval $ac_try) 2>&5
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; }
30150 if test x
$gcc_cv_objdump != x \
30151 && $gcc_cv_objdump -W conftest.o
2>&1 \
30152 |
grep conftest.s
> /dev
/null
2>&1; then
30153 gcc_cv_as_working_gdwarf_n_flag
=no
30155 gcc_cv_as_working_gdwarf_n_flag
=yes
30158 echo "configure: failed program was" >&5
30161 rm -f conftest.o conftest.s
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
30165 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
30168 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
30170 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
30176 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
30177 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
30178 $as_echo_n "(cached) " >&6
30180 gcc_cv_as_debug_prefix_map_flag
=no
30181 if test x
$gcc_cv_as != x
; then
30182 $as_echo "$insn" > conftest.s
30183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
30184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30185 (eval $ac_try) 2>&5
30187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30188 test $ac_status = 0; }; }
30190 gcc_cv_as_debug_prefix_map_flag
=yes
30192 echo "configure: failed program was" >&5
30195 rm -f conftest.o conftest.s
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
30199 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
30200 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
30202 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
30209 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
30210 if ${gcc_cv_as_compress_debug+:} false
; then :
30211 $as_echo_n "(cached) " >&6
30213 gcc_cv_as_compress_debug
=no
30214 if test x
$gcc_cv_as != x
; then
30215 $as_echo '' > conftest.s
30216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30218 (eval $ac_try) 2>&5
30220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30221 test $ac_status = 0; }; }
30223 # gas compiled without zlib cannot compress debug sections and warns
30224 # about it, but still exits successfully. So check for this, too.
30225 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
30227 gcc_cv_as_compress_debug
=0
30228 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
30230 gcc_cv_as_compress_debug
=1
30231 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
30232 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
30233 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
30234 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
30236 gcc_cv_as_compress_debug
=2
30239 gcc_cv_as_compress_debug
=0
30242 echo "configure: failed program was" >&5
30245 rm -f conftest.o conftest.s
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
30249 $as_echo "$gcc_cv_as_compress_debug" >&6; }
30253 cat >>confdefs.h
<<_ACEOF
30254 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
30258 cat >>confdefs.h
<<_ACEOF
30259 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
30263 cat >>confdefs.h
<<_ACEOF
30264 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
30269 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
30270 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
30271 $as_echo_n "(cached) " >&6
30273 gcc_cv_as_lcomm_with_alignment
=no
30274 if test x
$gcc_cv_as != x
; then
30275 $as_echo '.lcomm bar,4,16' > conftest.s
30276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30278 (eval $ac_try) 2>&5
30280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30281 test $ac_status = 0; }; }
30283 gcc_cv_as_lcomm_with_alignment
=yes
30285 echo "configure: failed program was" >&5
30288 rm -f conftest.o conftest.s
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30292 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30293 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30295 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30300 if test x
$with_sysroot = x
&& test x
$host = x
$target \
30301 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30302 && test "$prefix" != "NONE"; then
30304 cat >>confdefs.h
<<_ACEOF
30305 #define PREFIX_INCLUDE_DIR "$prefix/include"
30310 # Determine the version of glibc, if any, used on the target.
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30312 $as_echo_n "checking for target glibc version... " >&6; }
30314 # Check whether --with-glibc-version was given.
30315 if test "${with_glibc_version+set}" = set; then :
30316 withval
=$with_glibc_version;
30317 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30318 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30319 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30321 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30325 glibc_version_major
=0
30326 glibc_version_minor
=0
30327 if test -f $target_header_dir/features.h \
30328 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30329 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30330 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30331 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30336 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30338 cat >>confdefs.h
<<_ACEOF
30339 #define TARGET_GLIBC_MAJOR $glibc_version_major
30343 cat >>confdefs.h
<<_ACEOF
30344 #define TARGET_GLIBC_MINOR $glibc_version_minor
30348 # Check whether --enable-gnu-unique-object was given.
30349 if test "${enable_gnu_unique_object+set}" = set; then :
30350 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30352 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30353 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30357 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30358 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30359 $as_echo_n "(cached) " >&6
30361 gcc_cv_as_gnu_unique_object
=no
30362 if test x
$gcc_cv_as != x
; then
30363 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30366 (eval $ac_try) 2>&5
30368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30369 test $ac_status = 0; }; }
30371 gcc_cv_as_gnu_unique_object
=yes
30373 echo "configure: failed program was" >&5
30376 rm -f conftest.o conftest.s
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30380 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30381 if test $gcc_cv_as_gnu_unique_object = yes; then
30382 # We need to unquote above to to use the definition from config.gcc.
30383 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30385 if test $glibc_version_major -gt 2 \
30386 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30387 enable_gnu_unique_object
=yes
30394 if test x
$enable_gnu_unique_object = xyes
; then
30396 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30401 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30402 if ${gcc_cv_as_line_zero+:} false
; then :
30403 $as_echo_n "(cached) " >&6
30405 gcc_cv_as_line_zero
=no
30406 if test "x$gcc_cv_as" != x
; then
30407 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30408 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30410 (eval $ac_try) 2>&5
30412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30413 test $ac_status = 0; }; } &&
30414 test "x`cat conftest.out`" = x
30416 gcc_cv_as_line_zero
=yes
30418 echo "configure: failed program was" >&5
30420 echo "configure: error output was" >&5
30421 cat conftest.out
>&5
30423 rm -f conftest.o conftest.s conftest.out
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30427 $as_echo "$gcc_cv_as_line_zero" >&6; }
30428 if test "x$gcc_cv_as_line_zero" = xyes
; then
30430 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30435 $as_echo_n "checking support for thin archives... " >&6; }
30436 thin_archive_support
=no
30437 echo 'int main (void) { return 0; }' > conftest.c
30438 if ($AR --version |
sed 1q |
grep "GNU ar" \
30439 && $CC $CFLAGS -c conftest.c \
30440 && $AR rcT conftest.a conftest.o \
30441 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30442 thin_archive_support
=yes
30444 rm -f conftest.c conftest.o conftest.a conftest
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30446 $as_echo "$thin_archive_support" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30450 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30451 gcc_cv_ld_eh_frame_hdr
=no
30452 if test $in_tree_ld = yes ; then
30453 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 \
30454 && test $in_tree_ld_is_elf = yes; then
30455 gcc_cv_ld_eh_frame_hdr
=yes
30457 elif test x
$gcc_cv_ld != x
; then
30458 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30459 # Check if linker supports --eh-frame-hdr option
30460 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30461 gcc_cv_ld_eh_frame_hdr
=yes
30466 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30467 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30468 gcc_cv_ld_eh_frame_hdr
=yes
30475 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30477 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30481 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30484 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30485 gcc_cv_ld_eh_frame_ciev3
=no
30486 if test $in_tree_ld = yes ; then
30487 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 \
30488 && test $in_tree_ld_is_elf = yes; then
30489 gcc_cv_ld_eh_frame_ciev3
=yes
30491 elif test x
$gcc_cv_ld != x
; then
30492 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30493 gcc_cv_ld_eh_frame_ciev3
=yes
30494 if test 0"$ld_date" -lt 20040513; then
30495 if test -n "$ld_date"; then
30496 # If there was date string, but was earlier than 2004-05-13, fail
30497 gcc_cv_ld_eh_frame_ciev3
=no
30498 elif test "$ld_vers_major" -lt 2; then
30499 gcc_cv_ld_eh_frame_ciev3
=no
30500 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30501 gcc_cv_ld_eh_frame_ciev3
=no
30507 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30508 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30509 gcc_cv_ld_eh_frame_ciev3
=yes
30516 cat >>confdefs.h
<<_ACEOF
30517 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30521 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30524 $as_echo_n "checking linker position independent executable support... " >&6; }
30526 if test $in_tree_ld = yes ; then
30528 # Full PIE support on Solaris was only introduced in gld 2.26.
30529 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30530 *) gcc_gld_pie_min_version
=15 ;;
30532 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 \
30533 && test $in_tree_ld_is_elf = yes; then
30536 elif test x
$gcc_cv_ld != x
; then
30537 # Check if linker supports -pie option
30538 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30542 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30543 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30550 *-*-solaris2.1
[1-9]*)
30551 # Solaris 11.3 added PIE support.
30552 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30559 if test x
"$gcc_cv_ld_pie" = xyes
; then
30561 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30565 $as_echo "$gcc_cv_ld_pie" >&6; }
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30568 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30569 gcc_cv_ld_pie_copyreloc
=no
30570 if test $gcc_cv_ld_pie = yes ; then
30571 if test $in_tree_ld = yes ; then
30572 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
30573 gcc_cv_ld_pie_copyreloc
=yes
30575 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30576 # Check if linker supports -pie option with copy reloc
30578 i?
86-*-linux* | x86_64-
*-linux*)
30579 cat > conftest1.s
<<EOF
30582 .type a_glob, @object
30587 cat > conftest2.s
<<EOF
30590 .type main, @function
30592 movl %eax, a_glob(%rip)
30595 .section .data.rel,"aw",@progbits
30600 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30601 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30602 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30603 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30604 gcc_cv_ld_pie_copyreloc
=yes
30606 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30612 cat >>confdefs.h
<<_ACEOF
30613 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30617 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30620 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30621 gcc_cv_ld_eh_gc_sections
=no
30622 if test $in_tree_ld = yes ; then
30623 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 \
30624 && test $in_tree_ld_is_elf = yes; then
30625 gcc_cv_ld_eh_gc_sections
=yes
30627 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30628 cat > conftest.s
<<EOF
30631 .type _start, @function
30634 .size _start, .-_start
30635 .section .text.foo,"ax",@progbits
30636 .type foo, @function
30640 .section .gcc_except_table.foo,"a",@progbits
30643 .section .eh_frame,"a",@progbits
30646 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30647 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30648 |
grep "gc-sections option ignored" > /dev
/null
; then
30649 gcc_cv_ld_eh_gc_sections
=no
30650 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30651 |
grep gcc_except_table
> /dev
/null
; then
30652 gcc_cv_ld_eh_gc_sections
=yes
30653 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30654 if test x
$gcc_cv_as_comdat_group != xyes
; then
30655 gcc_cv_ld_eh_gc_sections
=no
30656 cat > conftest.s
<<EOF
30659 .type _start, @function
30662 .size _start, .-_start
30663 .section .gnu.linkonce.t.foo,"ax",@progbits
30664 .type foo, @function
30668 .section .gcc_except_table.foo,"a",@progbits
30671 .section .eh_frame,"a",@progbits
30674 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30675 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30676 |
grep "gc-sections option ignored" > /dev
/null
; then
30677 gcc_cv_ld_eh_gc_sections
=no
30678 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30679 |
grep gcc_except_table
> /dev
/null
; then
30680 gcc_cv_ld_eh_gc_sections
=yes
30686 rm -f conftest.s conftest.o conftest
30690 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30691 gcc_cv_ld_eh_gc_sections
=no
30694 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30696 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30700 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30703 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30704 gcc_cv_ld_eh_gc_sections_bug
=no
30705 if test $in_tree_ld = yes ; then
30706 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 \
30707 && test $in_tree_ld_is_elf = yes; then
30708 gcc_cv_ld_eh_gc_sections_bug
=yes
30710 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
30711 gcc_cv_ld_eh_gc_sections_bug
=yes
30712 cat > conftest.s
<<EOF
30715 .type _start, @function
30718 .size _start, .-_start
30719 .section .text.startup.foo,"ax",@progbits
30720 .type foo, @function
30724 .section .gcc_except_table.foo,"a",@progbits
30727 .section .eh_frame,"a",@progbits
30730 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30731 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30732 |
grep "gc-sections option ignored" > /dev
/null
; then
30734 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30735 |
grep gcc_except_table
> /dev
/null
; then
30736 gcc_cv_ld_eh_gc_sections_bug
=no
30739 rm -f conftest.s conftest.o conftest
30741 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30743 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30747 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30750 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30751 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30752 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30753 gcc_cv_ld_compress_debug
=1
30754 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30755 # Detect zstd debug section compression support
30756 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30757 gcc_cv_ld_compress_debug
=2
30760 case "${target}" in
30762 # Introduced in Solaris 11.2.
30763 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30764 gcc_cv_ld_compress_debug
=1
30765 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30767 gcc_cv_ld_compress_debug
=0
30771 # Assume linkers other than GNU ld don't support compessed debug
30773 gcc_cv_ld_compress_debug
=0
30778 cat >>confdefs.h
<<_ACEOF
30779 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30783 cat >>confdefs.h
<<_ACEOF
30784 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30788 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30790 if test x
"$ld64_flag" = x
"yes"; then
30792 # Set defaults for possibly untestable items.
30793 gcc_cv_ld64_export_dynamic
=0
30794 gcc_cv_ld64_platform_version
=0
30795 gcc_cv_ld64_demangle
=0
30797 if test "$build" = "$host"; then
30803 # On Darwin, because of FAT library support, it is often possible to execute
30804 # exes from compatible archs even when the host differs from the build system.
30805 case "$build","$host" in
30806 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30807 darwin_try_test
=1;;
30811 # If the configurer specified a minimum ld64 version to be supported, then use
30812 # that to determine feature support.
30813 if test x
"${gcc_cv_ld64_version}" != x
; then
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30815 $as_echo_n "checking ld64 specified version... " >&6; }
30816 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30818 $as_echo "$gcc_cv_ld64_major" >&6; }
30819 if test "$gcc_cv_ld64_major" -ge 97; then
30820 gcc_cv_ld64_demangle
=1
30822 if test "$gcc_cv_ld64_major" -ge 236; then
30823 gcc_cv_ld64_export_dynamic
=1
30825 if test "$gcc_cv_ld64_major" -ge 512; then
30826 gcc_cv_ld64_platform_version
=1
30828 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30829 # If the version was not specified, try to find it.
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30831 $as_echo_n "checking linker version... " >&6; }
30832 if test x
"${gcc_cv_ld64_version}" = x
; then
30833 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
30834 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30837 $as_echo "$gcc_cv_ld64_version" >&6; }
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30840 $as_echo_n "checking linker for -demangle support... " >&6; }
30841 gcc_cv_ld64_demangle
=1
30842 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30843 gcc_cv_ld64_demangle
=0
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30846 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30849 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30850 gcc_cv_ld64_export_dynamic
=1
30851 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30852 gcc_cv_ld64_export_dynamic
=0
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30855 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30858 $as_echo_n "checking linker for -platform_version support... " >&6; }
30859 gcc_cv_ld64_platform_version
=1
30860 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30861 gcc_cv_ld64_platform_version
=0
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30864 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30867 if test x
"${gcc_cv_ld64_version}" != x
; then
30869 cat >>confdefs.h
<<_ACEOF
30870 #define LD64_VERSION "${gcc_cv_ld64_version}"
30876 cat >>confdefs.h
<<_ACEOF
30877 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30882 cat >>confdefs.h
<<_ACEOF
30883 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30888 cat >>confdefs.h
<<_ACEOF
30889 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30894 if test x
"$dsymutil_flag" = x
"yes"; then
30896 # If the user specified a dsymutil path, then we will already have the
30897 # version string, otherwise, pick it up.
30898 if test x
"$gcc_cv_dsymutil" = x
; then
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30900 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30901 dsymutil_vers
="tool unspecified"
30902 elif test x
"$dsymutil_vers" = x
; then
30903 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30906 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30908 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30909 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30910 dsymutil_kind
=DWARFUTILS
30911 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30912 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30913 dsymutil_kind
=CLANG
30914 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30915 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30917 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30919 dsymutil_kind
=DET_UNKNOWN
30920 dsymutil_vers
="0.0"
30922 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30923 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30924 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30925 if test x
"${dsymutil_minor}" = x
; then
30928 if test x
"${dsymutil_tiny}" = x
; then
30932 cat >>confdefs.h
<<_ACEOF
30933 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30937 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30941 win32 | pe | cygwin* | mingw32*)
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30943 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30944 gcc_cv_ld_broken_pe_dwarf5=yes
30945 if test $in_tree_ld = yes ; then
30946 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30947 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30948 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30949 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30950 gcc_cv_ld_broken_pe_dwarf5=no
30953 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30954 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30955 gcc_cv_ld_broken_pe_dwarf5=no
30958 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30960 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30964 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30967 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30968 gcc_cv_ld_disable_dynamicbase
=no
30969 if test $in_tree_ld = yes; then
30970 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 \
30971 gcc_cv_ld_disable_dynamicbase
=yes
30974 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30975 gcc_cv_ld_disable_dynamicbase
=yes
30978 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30980 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30984 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30993 $as_echo_n "checking linker --as-needed support... " >&6; }
30994 if ${gcc_cv_ld_as_needed+:} false
; then :
30995 $as_echo_n "(cached) " >&6
30997 gcc_cv_ld_as_needed
=no
30998 gcc_cv_ld_as_needed_option
='--as-needed'
30999 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
31000 if test $in_tree_ld = yes ; then
31001 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 \
31002 && test $in_tree_ld_is_elf = yes; then
31003 gcc_cv_ld_as_needed
=yes
31004 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
31005 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
31006 gcc_cv_ld_no_as_needed_option
='--pop-state'
31009 elif test x
$gcc_cv_ld != x
; then
31010 # Check if linker supports --as-needed and --no-as-needed options
31011 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
31012 gcc_cv_ld_as_needed
=yes
31013 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
31014 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
31015 && echo "$ld_ver" |
grep GNU
> /dev
/null \
31016 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
31017 # Use these options only when both ld.bfd and ld.gold support
31018 # --push-state/--pop-state, which unfortunately wasn't added
31019 # at the same time.
31020 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
31021 gcc_cv_ld_no_as_needed_option
='--pop-state'
31024 case "$target:$gnu_ld" in
31026 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
31028 gcc_cv_ld_as_needed
=yes
31029 gcc_cv_ld_as_needed_option
="-z ignore"
31030 gcc_cv_ld_no_as_needed_option
="-z record"
31034 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
31035 # dl_iterate_phdr, i.e. since Solaris 11.
31037 *-*-solaris2.1
[1-9]*)
31039 i?
86-*-* | x86_64-
*-*)
31040 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
31041 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
31042 gcc_cv_ld_as_needed
=no
31048 gcc_cv_ld_as_needed
=no
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
31054 $as_echo "$gcc_cv_ld_as_needed" >&6; }
31055 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
31057 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
31060 cat >>confdefs.h
<<_ACEOF
31061 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
31065 cat >>confdefs.h
<<_ACEOF
31066 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
31072 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
31073 saved_LDFLAGS
="$LDFLAGS"
31074 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
31075 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
31076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31077 /* end confdefs.h. */
31078 int main(void) {return 0;}
31080 if ac_fn_cxx_try_link
"$LINENO"; then :
31081 gcc_cv_ld_clearcap
=yes; break
31083 gcc_cv_ld_clearcap
=no
31085 rm -f core conftest.err conftest.
$ac_objext \
31086 conftest
$ac_exeext conftest.
$ac_ext
31088 LDFLAGS
="$saved_LDFLAGS"
31089 if test "x$gcc_cv_ld_clearcap" = xyes
; then
31091 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
31093 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
31097 $as_echo "$gcc_cv_ld_clearcap" >&6; }
31103 emul_name
="-melf32lppc"
31106 emul_name
="-melf32ppc"
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
31110 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
31111 if ${gcc_cv_ld_ppc_attr+:} false
; then :
31112 $as_echo_n "(cached) " >&6
31114 gcc_cv_ld_ppc_attr
=no
31115 if test x
"$ld_is_gold" = xyes
; then
31116 gcc_cv_ld_ppc_attr
=yes
31117 elif test $in_tree_ld = yes ; then
31118 if test "$gcc_cv_gld_major_version" -eq 2 \
31119 -a "$gcc_cv_gld_minor_version" -ge 28 \
31120 -o "$gcc_cv_gld_major_version" -gt 2; then
31121 gcc_cv_ld_ppc_attr
=yes
31123 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31124 # check that merging the long double .gnu_attribute doesn't warn
31125 cat > conftest1.s
<<EOF
31128 cat > conftest2.s
<<EOF
31131 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31132 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31133 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
31134 && test ! -s conftest.err
; then
31135 gcc_cv_ld_ppc_attr
=yes
31137 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
31142 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
31143 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
31145 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
31151 case "$target:$tm_file" in
31152 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
31155 emul_name
="-melf64lppc"
31158 emul_name
="-melf64ppc"
31161 emul_name
="-melf64lppc_fbsd"
31164 emul_name
="-melf64ppc_fbsd"
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
31168 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
31169 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
31170 $as_echo_n "(cached) " >&6
31172 gcc_cv_ld_no_dot_syms
=no
31173 if test x
"$ld_is_gold" = xyes
; then
31174 gcc_cv_ld_no_dot_syms
=yes
31175 elif test $in_tree_ld = yes ; then
31176 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
31177 gcc_cv_ld_no_dot_syms
=yes
31179 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31180 cat > conftest1.s
<<EOF
31184 cat > conftest2.s
<<EOF
31185 .section ".opd","aw"
31188 .type foo,@function
31190 .quad .LEfoo,.TOC.@tocbase,0
31196 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
31197 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
31198 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
31199 gcc_cv_ld_no_dot_syms
=yes
31201 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
31206 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
31207 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
31209 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31214 $as_echo_n "checking linker large toc support... " >&6; }
31215 if ${gcc_cv_ld_large_toc+:} false
; then :
31216 $as_echo_n "(cached) " >&6
31218 gcc_cv_ld_large_toc
=no
31219 if test x
"$ld_is_gold" = xyes
; then
31220 gcc_cv_ld_large_toc
=yes
31221 elif test $in_tree_ld = yes ; then
31222 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
31223 gcc_cv_ld_large_toc
=yes
31225 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
31226 cat > conftest.s
<<EOF
31227 .section ".tbss","awT",@nobits
31233 addis 9,13,ie0@got@tprel@ha
31234 ld 9,ie0@got@tprel@l(9)
31236 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31237 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
31238 gcc_cv_ld_large_toc
=yes
31240 rm -f conftest conftest.o conftest.s
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31245 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31246 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31248 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
31253 $as_echo_n "checking linker toc pointer alignment... " >&6; }
31254 if ${gcc_cv_ld_toc_align+:} false
; then :
31255 $as_echo_n "(cached) " >&6
31257 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
31258 cat > conftest.s
<<EOF
31263 .section .data.rel.ro,"aw",@progbits
31268 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
31269 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
31270 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)) }'`
31272 rm -f conftest conftest.o conftest.s
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
31277 $as_echo "$gcc_cv_ld_toc_align" >&6; }
31278 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31280 cat >>confdefs.h
<<_ACEOF
31281 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31291 $as_echo_n "checking linker large toc support... " >&6; }
31292 if ${gcc_cv_ld_large_toc+:} false
; then :
31293 $as_echo_n "(cached) " >&6
31295 gcc_cv_ld_large_toc
=no
31296 if test x
$gcc_cv_as != x
; then
31297 cat > conftest.s
<<EOF
31307 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31308 gcc_cv_ld_large_toc
=yes
31310 rm -f conftest conftest.o conftest.s
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31315 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31316 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31318 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31325 $as_echo_n "checking linker --build-id support... " >&6; }
31326 if ${gcc_cv_ld_buildid+:} false
; then :
31327 $as_echo_n "(cached) " >&6
31329 gcc_cv_ld_buildid
=no
31330 if test $in_tree_ld = yes ; then
31331 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31332 "$gcc_cv_gld_minor_version" -ge 18 -o \
31333 "$gcc_cv_gld_major_version" -gt 2 \
31334 && test $in_tree_ld_is_elf = yes; then
31335 gcc_cv_ld_buildid
=yes
31337 elif test x
$gcc_cv_ld != x
; then
31338 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31339 gcc_cv_ld_buildid
=yes
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31344 $as_echo "$gcc_cv_ld_buildid" >&6; }
31345 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31347 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31351 # Check whether --enable-linker-build-id was given.
31352 if test "${enable_linker_build_id+set}" = set; then :
31353 enableval
=$enable_linker_build_id;
31355 enable_linker_build_id
=no
31359 if test x
"$enable_linker_build_id" = xyes
; then
31360 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31362 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31366 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31370 # In binutils 2.21, GNU ld gained support for new emulations fully
31371 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31373 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31374 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31375 $as_echo_n "(cached) " >&6
31377 gcc_cv_ld_sol2_emulation
=no
31378 if test $in_tree_ld = yes ; then
31379 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31380 "$gcc_cv_gld_minor_version" -ge 21 -o \
31381 "$gcc_cv_gld_major_version" -gt 2 \
31382 && test $in_tree_ld_is_elf = yes; then
31383 gcc_cv_ld_sol2_emulation
=yes
31385 elif test x
$gcc_cv_ld != x
; then
31386 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31387 grep _sol2
> /dev
/null
; then
31388 gcc_cv_ld_sol2_emulation
=yes
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31393 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31394 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31396 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31401 $as_echo_n "checking linker --sysroot support... " >&6; }
31402 if ${gcc_cv_ld_sysroot+:} false
; then :
31403 $as_echo_n "(cached) " >&6
31405 gcc_cv_ld_sysroot
=no
31406 if test $in_tree_ld = yes ; then
31407 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
31408 gcc_cv_ld_sysroot
=yes
31410 elif test x
$gcc_cv_ld != x
; then
31411 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31412 gcc_cv_ld_sysroot
=yes
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31417 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31418 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31420 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31426 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31428 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31429 if ${gcc_cv_solaris_crts+:} false
; then :
31430 $as_echo_n "(cached) " >&6
31432 gcc_cv_solaris_crts
=no
31433 if test x
$host != x
$target; then
31434 if test "x$with_sysroot" = xyes
; then
31435 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31437 target_sysroot
="${with_sysroot}"
31440 target_libdir
="$target_sysroot/usr/lib"
31441 # At the time they were added, gcrt1.o became a symlink for backwards
31442 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31444 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31445 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31447 sparc
*-*-solaris2*)
31448 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31453 $as_echo "$gcc_cv_solaris_crts" >&6; }
31456 if test x
$gcc_cv_solaris_crts = xyes
; then
31458 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31462 # Check whether --enable-libssp was given.
31463 if test "${enable_libssp+set}" = set; then :
31464 enableval
=$enable_libssp; case "${enableval}" in
31468 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31474 # Test for stack protector support in target C library.
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31476 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31477 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31478 $as_echo_n "(cached) " >&6
31480 gcc_cv_libc_provides_ssp
=no
31481 if test "x$enable_libssp" = "xno"; then
31482 gcc_cv_libc_provides_ssp
=yes
31483 elif test "x$enable_libssp" = "xyes"; then
31484 gcc_cv_libc_provides_ssp
=no
31488 # All versions of musl provide stack protector
31489 gcc_cv_libc_provides_ssp
=yes;;
31490 *-*-linux* |
*-*-kfreebsd*-gnu)
31491 # glibc 2.4 and later provides __stack_chk_fail and
31492 # either __stack_chk_guard, or TLS access to stack guard canary.
31494 if test $glibc_version_major -gt 2 \
31495 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31496 gcc_cv_libc_provides_ssp
=yes
31499 if test -f $target_header_dir/features.h \
31500 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31501 $target_header_dir/features.h
> /dev
/null
; then
31502 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31503 $target_header_dir/features.h
> /dev
/null
&& \
31504 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31505 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31506 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31507 gcc_cv_libc_provides_ssp
=yes
31509 # all versions of Bionic support stack protector
31510 elif test -f $target_header_dir/sys
/cdefs.h \
31511 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31512 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31513 gcc_cv_libc_provides_ssp
=yes
31518 # Avoid complicated tests (see
31519 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31520 # simply assert that glibc does provide this, which is true for all
31521 # realistically usable GNU/Hurd configurations.
31522 # All supported versions of musl provide it as well
31523 gcc_cv_libc_provides_ssp
=yes;;
31524 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31525 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31526 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31527 gcc_cv_libc_provides_ssp
=yes
31529 echo "no __stack_chk_fail on this target"
31533 *) gcc_cv_libc_provides_ssp
=no
;;
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31538 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31540 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31542 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31546 # Check whether --enable-default-ssp was given.
31547 # Check whether --enable-default-ssp was given.
31548 if test "${enable_default_ssp+set}" = set; then :
31549 enableval
=$enable_default_ssp;
31550 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31552 ia64
*-*-*) enable_default_ssp
=no
;;
31553 *) enable_default_ssp
=$enableval ;;
31556 enable_default_ssp
=no
31559 enable_default_ssp
=no
31562 if test x
$enable_default_ssp = xyes
; then
31564 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31569 # Test for <sys/sdt.h> on the target.
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31572 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31573 if ${gcc_cv_sys_sdt_h+:} false
; then :
31574 $as_echo_n "(cached) " >&6
31577 gcc_cv_sys_sdt_h
=no
31578 if test -f $target_header_dir/sys
/sdt.h
; then
31579 gcc_cv_sys_sdt_h
=yes
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31584 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31585 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31588 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31593 # Check if TFmode long double should be used by default or not.
31594 # Some glibc targets used DFmode long double, but with glibc 2.4
31595 # and later they can use TFmode.
31597 powerpc
*-*-linux* | \
31598 sparc
*-*-linux* | \
31602 # Check whether --with-long-double-128 was given.
31603 if test "${with_long_double_128+set}" = set; then :
31604 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31608 s390
*-*-linux-musl*)
31609 gcc_cv_target_ldbl128
=yes
31611 powerpc
*-*-linux-musl*)
31612 gcc_cv_target_ldbl128
=no
31616 if test $glibc_version_major -gt 2 \
31617 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31618 gcc_cv_target_ldbl128
=yes
31621 gcc_cv_target_ldbl128
=no
31622 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31623 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31624 && gcc_cv_target_ldbl128
=yes
31635 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31637 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31641 # Check if TFmode long double target should use the IBM extended double or IEEE
31642 # 128-bit floating point formats if long doubles are 128-bits long. The long
31643 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31644 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31647 # Check whether --with-long-double-format was given.
31648 if test "${with_long_double_format+set}" = set; then :
31649 withval
=$with_long_double_format;
31650 case "$target:$with_long_double_format" in
31651 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31654 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31655 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31656 case "$with_cpu" in
31657 power7 | power8 | power9 | power1
*)
31661 as_fn_error $?
"Configuration option --with-long-double-format is only \
31662 supported if the default cpu is power7 or newer" "$LINENO" 5
31663 with_long_double_format
=""
31667 powerpc64
*-*-linux*:*)
31668 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31669 with_long_double_format
=""
31672 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31673 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31674 with_long_double_format
=""
31680 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31681 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31682 gcc_cv_libc_provides_hwcap_in_tcb
=no
31686 if test $glibc_version_major -gt 2 \
31687 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31688 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31692 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31694 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31698 # Check if the target LIBC handles PT_GNU_STACK.
31699 gcc_cv_libc_gnustack
=unknown
31701 mips
*-*-linux-musl*)
31702 gcc_cv_libc_gnustack
=yes
31706 if test $glibc_version_major -gt 2 \
31707 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31708 gcc_cv_libc_gnustack
=yes
31712 if test x
$gcc_cv_libc_gnustack = xyes
; then
31714 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31719 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31720 gcc_cv_target_dl_iterate_phdr
=unknown
31723 # <link.h> needs both a dl_iterate_phdr declaration and support for
31724 # compilation with largefile support.
31725 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31726 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31727 gcc_cv_target_dl_iterate_phdr
=yes
31729 gcc_cv_target_dl_iterate_phdr
=no
31732 *-*-dragonfly* |
*-*-freebsd*)
31733 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31734 gcc_cv_target_dl_iterate_phdr
=yes
31736 gcc_cv_target_dl_iterate_phdr
=no
31740 gcc_cv_target_dl_iterate_phdr
=yes
31744 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31746 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31750 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31752 # We no longer support different GC mechanisms. Emit an error if
31753 # the user configures with --with-gc.
31755 # Check whether --with-gc was given.
31756 if test "${with_gc+set}" = set; then :
31757 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31761 # Libraries to use on the host. This will normally be set by the top
31762 # level Makefile. Here we simply capture the value for our Makefile.
31763 if test -z "${HOST_LIBS+set}"; then
31768 # Use the system's zlib library.
31770 # Use the system's zlib library.
31771 zlibdir
="-L\$(top_builddir)/../zlib"
31772 zlibinc
="-I\$(top_srcdir)/../zlib"
31774 # Check whether --with-system-zlib was given.
31775 if test "${with_system_zlib+set}" = set; then :
31776 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31789 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31790 # Check whether --enable-maintainer-mode was given.
31791 if test "${enable_maintainer_mode+set}" = set; then :
31792 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31799 $as_echo "$maintainer_mode" >&6; }
31801 if test "$maintainer_mode" = "yes"; then
31807 if test -z "$CTAGS"; then
31811 if test -z "$ETAGS"; then
31815 if test -z "$CSCOPE"; then
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31822 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31823 # Check whether --enable-link-mutex was given.
31824 if test "${enable_link_mutex+set}" = set; then :
31825 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31831 $as_echo "$do_link_mutex" >&6; }
31833 if test "$do_link_mutex" = "yes"; then
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
31836 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31838 DO_LINK_MUTEX
=false
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31844 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31845 # Check whether --enable-link-serialization was given.
31846 if test "${enable_link_serialization+set}" = set; then :
31847 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31849 do_link_serialization
=no
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31853 $as_echo "$do_link_serialization" >&6; }
31855 case "$do_link_serialization" in
31857 DO_LINK_SERIALIZATION
=1;;
31858 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31859 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31861 DO_LINK_SERIALIZATION
=;;
31863 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31871 # Make empty files to contain the specs and options for each language.
31872 # Then add #include lines to for a compiler that has specs and/or options.
31878 # These (without "all_") are set in each config-lang.in.
31879 # `language' must be a single word so is spelled singularly.
31882 all_outputs
='Makefile'
31883 # List of language configure and makefile fragments.
31884 all_lang_configurefrags
=
31885 all_lang_makefrags
=
31886 # Additional files for gengtype
31887 all_gtfiles
="$target_gtfiles"
31889 # These are the languages that are set in --enable-languages,
31890 # and are available in the GCC tree.
31891 all_selected_languages
=
31893 # Add the language fragments.
31894 # Languages are added via two mechanisms. Some information must be
31895 # recorded in makefile variables, these are defined in config-lang.in.
31896 # We accumulate them and plug them into the main Makefile.
31897 # The other mechanism is a set of hooks for each of the main targets
31898 # like `clean', `install', etc.
31900 language_hooks
="Make-hooks"
31902 for lang
in ${srcdir}/*/config-lang.
in
31904 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31906 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31907 if test "x$lang_alias" = x
31909 echo "$lang doesn't set \$language." 1>&2
31912 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31913 subdirs
="$subdirs $subdir"
31915 # $gcc_subdir is where the gcc integration files are to be found
31916 # for a language, both for internal compiler purposes (compiler
31917 # sources implementing front-end to GCC tree converters), and for
31918 # build infrastructure purposes (Make-lang.in, etc.)
31920 # This will be <subdir> (relative to $srcdir) if a line like
31921 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31922 # is found in <langdir>/config-lang.in, and will remain <langdir>
31925 # Except for the language alias (fetched above), the regular
31926 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31927 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31928 # only this and the language alias.
31930 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31931 if [ "$gcc_subdir" = "" ]; then
31932 gcc_subdir
="$subdir"
31935 case ",$enable_languages," in
31937 all_selected_languages
="$all_selected_languages $lang_alias"
31938 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31939 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31950 .
${srcdir}/$gcc_subdir/config-lang.
in
31951 if test "x$language" = x
31953 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31958 case ",$enable_languages," in
31959 *,$lang_alias,*) ;;
31961 for i
in $subdir_requires; do
31962 test -f "${srcdir}/$i/config-lang.in" && continue
31970 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31971 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31972 # Put c/Make-lang.in fragment first to match serialization languages order.
31973 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31975 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31977 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31978 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31979 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31981 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31982 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31984 all_languages
="$all_languages $language"
31985 all_compilers
="$all_compilers $compilers"
31986 all_outputs
="$all_outputs $outputs"
31987 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31988 case ",$enable_languages," in
31991 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
32001 for language
in $all_selected_languages
32003 check_languages
="$check_languages check-$language"
32006 selftest_languages
=
32007 for language
in $all_selected_languages
32009 selftest_languages
="$selftest_languages selftest-$language"
32012 # We link each language in with a set of hooks, reached indirectly via
32013 # lang.${target}. Only do so for selected languages.
32017 target_list
="all.cross start.encap rest.encap tags \
32018 install-common install-man install-info install-dvi install-pdf \
32019 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
32020 mostlyclean clean distclean maintainer-clean install-plugin"
32022 for t
in $target_list
32025 for lang
in $all_selected_languages
32029 echo "lang.$t: $x" >> Make-hooks
32032 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
32033 echo "SERIAL_LIST =" >> Make-hooks
32034 echo else >> Make-hooks
32038 serialization_languages
=c
32039 for lang
in $all_selected_languages
32041 test $lang = c
&& continue
32042 if test $lang = lto
; then
32043 serialization_languages
="$serialization_languages lto1 lto2"
32045 serialization_languages
="$serialization_languages $lang"
32048 for lang
in $serialization_languages
32050 test $lang = c
&& continue
32051 lang_cnt
=`expr $lang_cnt + 1`
32052 lang_list
=" $prev$lang_list"
32055 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
32056 echo endif
>> Make-hooks
32057 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
32058 echo "INDEX.c = 0" >> Make-hooks
32060 for lang
in $serialization_languages
32062 test $lang = c
&& continue
32063 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
32064 echo "INDEX.$lang = $lang_idx" >> Make-hooks
32065 lang_cnt
=`expr $lang_cnt - 1`
32066 lang_idx
=`expr $lang_idx + 1`
32070 # Option include files
32073 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
32074 option_includes
="option-includes.mk"
32083 echo "dir ." > .gdbinit
32084 echo "dir ${srcdir}" >> .gdbinit
32085 if test x
$gdb_needs_out_file_path = xyes
32087 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
32089 if test "x$subdirs" != x
; then
32092 echo "dir ${srcdir}/$s" >> .gdbinit
32095 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
32096 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
32098 # Put a breakpoint on __asan_report_error to help with debugging buffer
32101 *-fsanitize=address
*)
32102 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
32106 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
32110 # Find a directory in which to install a shared libgcc.
32112 # Check whether --enable-version-specific-runtime-libs was given.
32113 if test "${enable_version_specific_runtime_libs+set}" = set; then :
32114 enableval
=$enable_version_specific_runtime_libs;
32118 # Substitute configuration variables
32192 if test x
${build} = x
${host} ; then
32193 if test x
${host} = x
${target} ; then
32194 echo "Links are now set up to build a native compiler for ${target}." 1>&2
32196 echo "Links are now set up to build a cross-compiler" 1>&2
32197 echo " from ${host} to ${target}." 1>&2
32200 if test x
${host} = x
${target} ; then
32201 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
32202 echo " for ${target}." 1>&2
32204 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
32205 echo " from ${host} to ${target}." 1>&2
32214 if test "x${ISLLIBS}" != "x" ; then
32216 $as_echo "#define HAVE_isl 1" >>confdefs.h
32220 # Check for plugin support
32221 # Check whether --enable-plugin was given.
32222 if test "${enable_plugin+set}" = set; then :
32223 enableval
=$enable_plugin; enable_plugin
=$enableval
32225 enable_plugin
=yes; default_plugin
=yes
32234 # Since plugin support under MinGW is not as straightforward as on
32235 # other platforms (e.g., we have to link import library, etc), we
32236 # only enable it if explicitly requested.
32237 if test x
"$default_plugin" = x
"yes"; then
32239 elif test x
"$enable_plugin" = x
"yes"; then
32240 # Use make's target variable to derive import library name.
32241 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
32246 if test x
$build = x
$host; then
32247 export_sym_check
="nm${exeext} -g"
32248 elif test x
$host = x
$target; then
32249 export_sym_check
="$gcc_cv_nm -g"
32255 if test x
$build = x
$host; then
32256 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32257 elif test x
$host = x
$target; then
32258 export_sym_check
="$gcc_cv_objdump -T"
32260 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
32265 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
32268 $as_echo_n "checking for exported symbols... " >&6; }
32269 if test "x$export_sym_check" != x
; then
32270 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
32271 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32272 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32273 : # No need to use a flag
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32275 $as_echo "yes" >&6; }
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32278 $as_echo "yes" >&6; }
32279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
32280 $as_echo_n "checking for -rdynamic... " >&6; }
32281 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32282 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32283 plugin_rdynamic
=yes
32284 pluginlibs
="-rdynamic"
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32290 $as_echo "$plugin_rdynamic" >&6; }
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32294 $as_echo "unable to check" >&6; }
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32300 $as_echo_n "checking for library containing dlopen... " >&6; }
32301 if ${ac_cv_search_dlopen+:} false
; then :
32302 $as_echo_n "(cached) " >&6
32304 ac_func_search_save_LIBS
=$LIBS
32305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32306 /* end confdefs.h. */
32308 /* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
32323 for ac_lib
in '' dl
; do
32324 if test -z "$ac_lib"; then
32325 ac_res
="none required"
32328 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32330 if ac_fn_cxx_try_link
"$LINENO"; then :
32331 ac_cv_search_dlopen
=$ac_res
32333 rm -f core conftest.err conftest.
$ac_objext \
32335 if ${ac_cv_search_dlopen+:} false
; then :
32339 if ${ac_cv_search_dlopen+:} false
; then :
32342 ac_cv_search_dlopen
=no
32344 rm conftest.
$ac_ext
32345 LIBS
=$ac_func_search_save_LIBS
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32348 $as_echo "$ac_cv_search_dlopen" >&6; }
32349 ac_res
=$ac_cv_search_dlopen
32350 if test "$ac_res" != no
; then :
32351 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32355 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32356 pluginlibs
="$pluginlibs -ldl"
32360 # Check that we can build shared objects with -fPIC -shared
32361 saved_LDFLAGS
="$LDFLAGS"
32362 saved_CFLAGS
="$CFLAGS"
32363 saved_CXXFLAGS
="$CXXFLAGS"
32366 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32367 CFLAGS
="$CFLAGS -fPIC"
32368 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32369 CXXFLAGS
="$CXXFLAGS -fPIC"
32370 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32373 CFLAGS
="$CFLAGS -fPIC"
32374 CXXFLAGS
="$CXXFLAGS -fPIC"
32375 LDFLAGS
="$LDFLAGS -fPIC -shared"
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32379 $as_echo_n "checking for -fPIC -shared... " >&6; }
32380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32381 /* end confdefs.h. */
32391 if ac_fn_cxx_try_link
"$LINENO"; then :
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32393 $as_echo "yes" >&6; }; have_pic_shared
=yes
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32396 $as_echo "no" >&6; }; have_pic_shared
=no
32398 rm -f core conftest.err conftest.
$ac_objext \
32399 conftest
$ac_exeext conftest.
$ac_ext
32400 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32404 LDFLAGS
="$saved_LDFLAGS"
32405 CFLAGS
="$saved_CFLAGS"
32406 CXXFLAGS
="$saved_CXXFLAGS"
32408 # If plugin support had been requested but not available, fail.
32409 if test x
"$enable_plugin" = x
"no" ; then
32410 if test x
"$default_plugin" != x
"yes"; then
32412 Building GCC with plugin support requires a host that supports
32413 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32420 if test x
"$enable_plugin" = x
"yes"; then
32422 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32427 # Enable --enable-host-shared
32428 # Check whether --enable-host-shared was given.
32429 if test "${enable_host_shared+set}" = set; then :
32430 enableval
=$enable_host_shared;
32435 # Enable --enable-host-pie
32436 # Check whether --enable-host-pie was given.
32437 if test "${enable_host_pie+set}" = set; then :
32438 enableval
=$enable_host_pie;
32443 # Enable --enable-host-bind-now
32444 # Check whether --enable-host-bind-now was given.
32445 if test "${enable_host_bind_now+set}" = set; then :
32446 enableval
=$enable_host_bind_now;
32451 # Check whether --enable-libquadmath-support was given.
32452 if test "${enable_libquadmath_support+set}" = set; then :
32453 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32455 ENABLE_LIBQUADMATH_SUPPORT
=yes
32458 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32460 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32465 # Specify what hash style to use by default.
32467 # Check whether --with-linker-hash-style was given.
32468 if test "${with_linker_hash_style+set}" = set; then :
32469 withval
=$with_linker_hash_style; case x
"$withval" in
32471 LINKER_HASH_STYLE
=sysv
32474 LINKER_HASH_STYLE
=gnu
32477 LINKER_HASH_STYLE
=both
32480 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32484 LINKER_HASH_STYLE
=''
32487 if test x
"${LINKER_HASH_STYLE}" != x
; then
32489 cat >>confdefs.h
<<_ACEOF
32490 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32495 # Specify what should be the default of -fdiagnostics-color option.
32497 # Check whether --with-diagnostics-color was given.
32498 if test "${with_diagnostics_color+set}" = set; then :
32499 withval
=$with_diagnostics_color; case x
"$withval" in
32501 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32504 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32507 DIAGNOSTICS_COLOR_DEFAULT
=-1
32510 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32513 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32517 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32521 cat >>confdefs.h
<<_ACEOF
32522 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32526 # Specify what should be the default of -fdiagnostics-urls option.
32528 # Check whether --with-diagnostics-urls was given.
32529 if test "${with_diagnostics_urls+set}" = set; then :
32530 withval
=$with_diagnostics_urls; case x
"$withval" in
32532 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32535 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32538 DIAGNOSTICS_URLS_DEFAULT
=-1
32541 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32544 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32548 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32552 cat >>confdefs.h
<<_ACEOF
32553 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32557 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32558 # of jit/jit-playback.cc.
32559 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32560 echo "gcc_driver_version: ${gcc_driver_version}"
32561 cat > gcc-driver-name.h
<<EOF
32562 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32565 # Check whether --enable-default-pie was given.
32566 # Check whether --enable-default-pie was given.
32567 if test "${enable_default_pie+set}" = set; then :
32568 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32570 enable_default_pie
=no
32573 if test x
$enable_default_pie = xyes
; then
32575 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32580 # Check if -fno-PIE works.
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32582 $as_echo_n "checking for -fno-PIE option... " >&6; }
32583 if ${gcc_cv_c_no_fpie+:} false
; then :
32584 $as_echo_n "(cached) " >&6
32586 saved_CXXFLAGS
="$CXXFLAGS"
32587 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32589 /* end confdefs.h. */
32590 int main(void) {return 0;}
32592 if ac_fn_cxx_try_compile
"$LINENO"; then :
32593 gcc_cv_c_no_fpie
=yes
32595 gcc_cv_c_no_fpie
=no
32597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32598 CXXFLAGS
="$saved_CXXFLAGS"
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32601 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32603 # Check if -no-pie works.
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32605 $as_echo_n "checking for -no-pie option... " >&6; }
32606 if ${gcc_cv_no_pie+:} false
; then :
32607 $as_echo_n "(cached) " >&6
32609 saved_LDFLAGS
="$LDFLAGS"
32610 LDFLAGS
="$LDFLAGS -no-pie"
32611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32612 /* end confdefs.h. */
32613 int main(void) {return 0;}
32615 if ac_fn_cxx_try_link
"$LINENO"; then :
32620 rm -f core conftest.err conftest.
$ac_objext \
32621 conftest
$ac_exeext conftest.
$ac_ext
32622 LDFLAGS
="$saved_LDFLAGS"
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32625 $as_echo "$gcc_cv_no_pie" >&6; }
32627 if test x
$enable_host_shared = xyes
; then
32629 elif test x
$enable_host_pie = xyes
; then
32631 elif test x
$gcc_cv_c_no_fpie = xyes
; then
32639 if test x
$enable_host_pie = xyes
; then
32641 elif test x
$gcc_cv_no_pie = xyes
; then
32647 if test x
$enable_host_bind_now = xyes
; then
32648 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
32653 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32654 # Check whether --enable-cet was given.
32655 if test "${enable_cet+set}" = set; then :
32656 enableval
=$enable_cet;
32657 case "$enableval" in
32659 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32668 $as_echo_n "checking for CET support... " >&6; }
32671 i
[34567]86-*-linux* | x86_64-
*-linux*)
32673 cet_save_CFLAGS
="$CFLAGS"
32674 CFLAGS
="$CFLAGS -fcf-protection"
32675 case "$enable_cet" in
32677 # Check if target supports multi-byte NOPs
32678 # and if compiler and assembler support CET.
32679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32680 /* end confdefs.h. */
32686 #if !defined(__SSE2__)
32687 #error target does not support multi-byte NOPs
32696 if ac_fn_cxx_try_compile
"$LINENO"; then :
32701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32704 # Check if compiler and assembler support CET.
32705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32706 /* end confdefs.h. */
32716 if ac_fn_cxx_try_compile
"$LINENO"; then :
32721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32722 if test $support_cet = "no"; then
32723 if test x
$enable_bootstrap != xno \
32724 && test -z "${with_build_subdir}" \
32725 && (test ! -f ..
/stage_current \
32726 ||
test `cat ../stage_current` != "stage1"); then
32727 # Require CET support only for the final GCC build.
32728 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32730 # Don't enable CET without CET support for non-bootstrap
32731 # build, in stage1 nor for build support.
32737 CFLAGS
="$cet_save_CFLAGS"
32745 cet_save_CFLAGS
="$CFLAGS"
32746 CFLAGS
="$CFLAGS -fcf-protection=none"
32747 cet_save_LDFLAGS
="$LDFLAGS"
32748 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32749 if test x
$may_have_cet = xyes
; then
32750 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h. */
32762 if ac_fn_cxx_try_link
"$LINENO"; then :
32767 rm -f core conftest.err conftest.
$ac_objext \
32768 conftest
$ac_exeext conftest.
$ac_ext
32771 if test x
$may_have_cet = xyes
; then
32772 if test x
$cross_compiling = xno
; then
32773 if test "$cross_compiling" = yes; then :
32774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32776 as_fn_error $?
"cannot run test program while cross compiling
32777 See \`config.log' for more details" "$LINENO" 5; }
32779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32780 /* end confdefs.h. */
32790 if ac_fn_cxx_try_run
"$LINENO"; then :
32791 have_multi_byte_nop
=yes
32793 have_multi_byte_nop
=no
32795 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32796 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32800 if test x
$have_multi_byte_nop = xyes
; then
32801 if test "$cross_compiling" = yes; then :
32802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32804 as_fn_error $?
"cannot run test program while cross compiling
32805 See \`config.log' for more details" "$LINENO" 5; }
32807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h. */
32816 __attribute__ ((noinline, noclone))
32817 xxx (void (*f) (void))
32823 __attribute__ ((noinline, noclone))
32837 if ac_fn_cxx_try_run
"$LINENO"; then :
32842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32847 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32848 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32852 # Enable CET in cross compiler if possible so that it will run on both
32853 # CET and non-CET hosts.
32856 if test x
$enable_cet = xyes
; then
32857 CET_HOST_FLAGS
="-fcf-protection"
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32859 $as_echo "yes" >&6; }
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32862 $as_echo "no" >&6; }
32864 CFLAGS
="$cet_save_CFLAGS"
32865 LDFLAGS
="$cet_save_LDFLAGS"
32867 case x
$enable_languages in
32876 # Check linker supports '-z bndplt'
32877 ld_bndplt_support
=no
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32879 $as_echo_n "checking linker -z bndplt option... " >&6; }
32880 if test x
"$ld_is_gold" = xno
; then
32881 if test $in_tree_ld = yes ; then
32882 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
32883 ld_bndplt_support
=yes
32885 elif test x
$gcc_cv_ld != x
; then
32886 # Check if linker supports -a bndplt option
32887 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32888 ld_bndplt_support
=yes
32892 if test x
"$ld_bndplt_support" = xyes
; then
32894 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32898 $as_echo "$ld_bndplt_support" >&6; }
32900 # Check linker supports '--push-state'/'--pop-state'
32901 ld_pushpopstate_support
=no
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32903 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32904 if test x
"$ld_is_gold" = xno
; then
32905 if test $in_tree_ld = yes ; then
32906 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
32907 ld_pushpopstate_support
=yes
32909 elif test x
$gcc_cv_ld != x
; then
32910 # Check if linker supports --push-state/--pop-state options
32911 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32912 ld_pushpopstate_support
=yes
32916 if test x
"$ld_pushpopstate_support" = xyes
; then
32918 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32922 $as_echo "$ld_pushpopstate_support" >&6; }
32924 # On s390, float_t has historically been statically defined as double for no
32925 # good reason. To comply with the C standard in the light of this definition,
32926 # gcc has evaluated float expressions in double precision when in
32927 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32928 # a smooth transition towards the new model used by most architectures, where
32929 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32930 # float_t from that, this behavior can be configured with
32931 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32932 # the old model. When omitted, native builds and cross compiles that have target
32933 # libc headers will detect whether libc clamps float_t to double and in that
32934 # case maintain the old model. Otherwise, they will default to the new model.
32935 # Check whether --enable-s390-excess-float-precision was given.
32936 if test "${enable_s390_excess_float_precision+set}" = set; then :
32937 enableval
=$enable_s390_excess_float_precision;
32939 enable_s390_excess_float_precision
=auto
32945 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32946 # Can we autodetect the behavior of the target libc?
32947 if test "$target" = "$host" -a "$host" = "$build"; then
32948 enable_s390_excess_float_precision
=autodetect
32949 elif test "x$with_headers" != xno
; then
32950 # cross build. are target headers available?
32951 # carefully coerce the build-system compiler to use target headers
32952 saved_CXXFLAGS
="$CXXFLAGS"
32953 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32954 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32955 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32957 /* end confdefs.h. */
32962 if ac_fn_cxx_try_compile
"$LINENO"; then :
32963 enable_s390_excess_float_precision
=autodetect
32965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32966 CXXFLAGS
="$saved_CXXFLAGS"
32969 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32970 saved_CXXFLAGS
="$CXXFLAGS"
32971 if ! test "$target" = "$host" -a "$host" = "$build"; then
32972 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32973 unset CROSS_TEST_CXXFLAGS
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32976 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32977 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32978 $as_echo_n "(cached) " >&6
32981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32982 /* end confdefs.h. */
32984 #define __FLT_EVAL_METHOD__ 0
32986 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32989 if ac_fn_cxx_try_compile
"$LINENO"; then :
32990 gcc_cv_float_t_clamped_to_double
=yes
32992 gcc_cv_float_t_clamped_to_double
=no
32994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32997 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32998 CXXFLAGS
="$saved_CXXFLAGS"
32999 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
33001 # no way to detect behavior of target libc, default to new model
33002 enable_s390_excess_float_precision
=no
33007 if test x
"$enable_s390_excess_float_precision" = xyes
; then
33009 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
33015 # Configure the subdirectories
33016 # AC_CONFIG_SUBDIRS($subdirs)
33018 # Create the Makefile
33019 # and configure language subdirectories
33020 ac_config_files
="$ac_config_files $all_outputs"
33023 ac_config_commands
="$ac_config_commands default"
33025 cat >confcache
<<\_ACEOF
33026 # This file is a shell script that caches the results of configure
33027 # tests run on this system so they can be shared between configure
33028 # scripts and configure runs, see configure's option --config-cache.
33029 # It is not useful on other systems. If it contains results you don't
33030 # want to keep, you may remove or edit it.
33032 # config.status only pays attention to the cache file if you give it
33033 # the --recheck option to rerun configure.
33035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33037 # following values.
33041 # The following way of writing the cache mishandles newlines in values,
33042 # but we know of no workaround that is simple, portable, and efficient.
33043 # So, we kill variables containing newlines.
33044 # Ultrix sh set writes to stderr and can't be redirected directly,
33045 # and sets the high bit in the cache file unless we assign to the vars.
33047 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33048 eval ac_val
=\$
$ac_var
33052 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33056 _ | IFS | as_nl
) ;; #(
33057 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33058 *) { eval $ac_var=; unset $ac_var;} ;;
33064 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33065 *${as_nl}ac_space
=\
*)
33066 # `set' does not quote correctly, so add quotes: double-quote
33067 # substitution turns \\\\ into \\, and sed turns \\ into \.
33070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33073 # `set' quotes correctly as required by POSIX, so do not add quotes.
33074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33087 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33088 if test -w "$cache_file"; then
33089 if test "x$cache_file" != "x/dev/null"; then
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33091 $as_echo "$as_me: updating cache $cache_file" >&6;}
33092 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33093 cat confcache
>"$cache_file"
33095 case $cache_file in #(
33097 mv -f confcache
"$cache_file"$$
&&
33098 mv -f "$cache_file"$$
"$cache_file" ;; #(
33100 mv -f confcache
"$cache_file" ;;
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33106 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33111 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33112 # Let make expand exec_prefix.
33113 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33115 DEFS
=-DHAVE_CONFIG_H
33120 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33121 # 1. Remove the extension, and $U if already installed.
33122 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33123 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33125 # will be set to the directory where LIBOBJS objects are built.
33126 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33127 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33129 LIBOBJS
=$ac_libobjs
33131 LTLIBOBJS
=$ac_ltlibobjs
33135 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
33136 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
33137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33140 : "${CONFIG_STATUS=./config.status}"
33142 ac_clean_files_save
=$ac_clean_files
33143 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33149 # Generated by $as_me.
33150 # Run this file to recreate the current configuration.
33151 # Compiler output produced by configure, useful for debugging
33152 # configure, is in config.log if it exists.
33155 ac_cs_recheck=false
33158 SHELL=\${CONFIG_SHELL-$SHELL}
33161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33162 ## -------------------- ##
33163 ## M4sh Initialization. ##
33164 ## -------------------- ##
33166 # Be more Bourne compatible
33167 DUALCASE
=1; export DUALCASE
# for MKS sh
33168 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33172 # is contrary to our usage. Disable this feature.
33173 alias -g '${1+"$@"}'='"$@"'
33174 setopt NO_GLOB_SUBST
33176 case `(set -o) 2>/dev/null` in #(
33188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33189 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33192 # Prefer a ksh shell builtin over an external printf program on Solaris,
33193 # but without wasting forks for bash or zsh.
33194 if test -z "$BASH_VERSION$ZSH_VERSION" \
33195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33196 as_echo='print
-r --'
33197 as_echo_n='print
-rn --'
33198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33199 as_echo='printf %s
\n'
33200 as_echo_n='printf %s
'
33202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33203 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33204 as_echo_n='/usr
/ucb
/echo -n'
33206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33207 as_echo_n_body='eval
33211 expr "X$arg" : "X\\(.*\\)$as_nl";
33212 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33214 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33216 export as_echo_n_body
33217 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33219 export as_echo_body
33220 as_echo='sh
-c $as_echo_body as_echo
'
33223 # The user is always right.
33224 if test "${PATH_SEPARATOR+set}" != set; then
33226 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33227 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33234 # We need space, tab and new line, in precisely that order. Quoting is
33235 # there to prevent editors from complaining about space-tab.
33236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33237 # splitting by setting IFS to empty value.)
33240 # Find who we are. Look in the path if we contain no directory separator.
33243 *[\\/]* ) as_myself=$0 ;;
33244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33245 for as_dir in $PATH
33248 test -z "$as_dir" && as_dir=.
33249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33255 # We did not find ourselves, most probably we were run as `sh COMMAND'
33256 # in which case we are not to be found in the path.
33257 if test "x$as_myself" = x
; then
33260 if test ! -f "$as_myself"; then
33261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33265 # Unset variables that we do not need and which cause bugs (e.g. in
33266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33267 # suppresses any "Segmentation fault" message there. '((' could
33268 # trigger a bug in pdksh 5.2.14.
33269 for as_var
in BASH_ENV ENV MAIL MAILPATH
33270 do eval test x\
${$as_var+set} = xset \
33271 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33284 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33288 # ----------------------------------------
33289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33291 # script with STATUS, using 1 if that was 0.
33294 as_status
=$1; test $as_status -eq 0 && as_status
=1
33296 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33299 $as_echo "$as_me: error: $2" >&2
33300 as_fn_exit
$as_status
33304 # as_fn_set_status STATUS
33305 # -----------------------
33306 # Set $? to STATUS, without forking.
33307 as_fn_set_status
()
33310 } # as_fn_set_status
33312 # as_fn_exit STATUS
33313 # -----------------
33314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33318 as_fn_set_status
$1
33324 # Portably unset VAR.
33327 { eval $1=; unset $1;}
33329 as_unset
=as_fn_unset
33330 # as_fn_append VAR VALUE
33331 # ----------------------
33332 # Append the text in VALUE to the end of the definition contained in VAR. Take
33333 # advantage of any shell optimizations that allow amortized linear growth over
33334 # repeated appends, instead of the typical quadratic growth present in naive
33336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33337 eval 'as_fn_append ()
33348 # as_fn_arith ARG...
33349 # ------------------
33350 # Perform arithmetic evaluation on the ARGs, and store the result in the
33351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33352 # must be portable across $(()) and expr.
33353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33354 eval 'as_fn_arith ()
33361 as_val
=`expr "$@" || test $? -eq 1`
33366 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33367 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33373 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33374 as_basename
=basename
33379 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33385 as_me
=`$as_basename -- "$0" ||
33386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33387 X"$0" : 'X\(//\)$' \| \
33388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33390 sed '/^.*\/\([^/][^/]*\)\/*$/{
33404 # Avoid depending upon Character Ranges.
33405 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33406 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33407 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33408 as_cr_digits
='0123456789'
33409 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33411 ECHO_C
= ECHO_N
= ECHO_T
=
33412 case `echo -n x` in #(((((
33414 case `echo 'xy\c'` in
33415 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33417 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33424 rm -f conf$$ conf$$.exe conf$$.
file
33425 if test -d conf$$.dir
; then
33426 rm -f conf$$.dir
/conf$$.
file
33429 mkdir conf$$.dir
2>/dev
/null
33431 if (echo >conf$$.
file) 2>/dev
/null
; then
33432 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33434 # ... but there are two gotchas:
33435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33437 # In both cases, we have to default to `cp -pR'.
33438 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33440 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33448 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33449 rmdir conf$$.dir
2>/dev
/null
33454 # Create "$as_dir" as a directory, including parents if necessary.
33459 -*) as_dir
=.
/$as_dir;;
33461 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33465 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33466 *) as_qdir
=$as_dir;;
33468 as_dirs
="'$as_qdir' $as_dirs"
33469 as_dir
=`$as_dirname -- "$as_dir" ||
33470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33471 X"$as_dir" : 'X\(//\)[^/]' \| \
33472 X"$as_dir" : 'X\(//\)$' \| \
33473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33474 $as_echo X"$as_dir" |
33475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33479 /^X\(\/\/\)[^/].*/{
33492 test -d "$as_dir" && break
33494 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33495 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33499 if mkdir
-p .
2>/dev
/null
; then
33500 as_mkdir_p
='mkdir -p "$as_dir"'
33502 test -d .
/-p && rmdir .
/-p
33507 # as_fn_executable_p FILE
33508 # -----------------------
33509 # Test if FILE is an executable regular file.
33510 as_fn_executable_p
()
33512 test -f "$1" && test -x "$1"
33513 } # as_fn_executable_p
33514 as_test_x
='test -x'
33515 as_executable_p
=as_fn_executable_p
33517 # Sed expression to map a string onto a valid CPP name.
33518 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33520 # Sed expression to map a string onto a valid variable name.
33521 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33525 ## ----------------------------------- ##
33526 ## Main body of $CONFIG_STATUS script. ##
33527 ## ----------------------------------- ##
33529 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33532 # Save the log message, to keep $0 and so on meaningful, and to
33533 # report actual input values of CONFIG_FILES etc. instead of their
33534 # values after options handling.
33536 This file was extended by $as_me, which was
33537 generated by GNU Autoconf 2.69. Invocation command line was
33539 CONFIG_FILES = $CONFIG_FILES
33540 CONFIG_HEADERS = $CONFIG_HEADERS
33541 CONFIG_LINKS = $CONFIG_LINKS
33542 CONFIG_COMMANDS = $CONFIG_COMMANDS
33545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33550 case $ac_config_files in *"
33551 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33554 case $ac_config_headers in *"
33555 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33560 # Files that config.status was made for.
33561 config_files="$ac_config_files"
33562 config_headers="$ac_config_headers"
33563 config_links="$ac_config_links"
33564 config_commands="$ac_config_commands"
33568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33570 \`$as_me' instantiates files and other configuration actions
33571 from templates according to the current configuration. Unless the files
33572 and actions are specified as TAGs, all are instantiated by default.
33574 Usage: $0 [OPTION]... [TAG]...
33576 -h, --help print this help, then exit
33577 -V, --version print version number and configuration settings, then exit
33578 --config print configuration, then exit
33579 -q, --quiet, --silent
33580 do not print progress messages
33581 -d, --debug don't remove temporary files
33582 --recheck update $as_me by reconfiguring in the same conditions
33583 --file=FILE[:TEMPLATE]
33584 instantiate the configuration file FILE
33585 --header=FILE[:TEMPLATE]
33586 instantiate the configuration header FILE
33588 Configuration files:
33591 Configuration headers:
33594 Configuration links:
33597 Configuration commands:
33600 Report bugs to the package provider."
33603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33607 configured by $0, generated by GNU Autoconf 2.69,
33608 with options \\"\$ac_cs_config\\"
33610 Copyright (C) 2012 Free Software Foundation, Inc.
33611 This config.status script is free software; the Free Software Foundation
33612 gives unlimited permission to copy, distribute and modify it."
33617 test -n "\$AWK" || AWK=awk
33620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33621 # The default lists apply if the user does not specify any file.
33627 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33628 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33632 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33644 # Handling of the options.
33645 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33647 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33648 $as_echo "$ac_cs_version"; exit ;;
33649 --config |
--confi |
--conf |
--con |
--co |
--c )
33650 $as_echo "$ac_cs_config"; exit ;;
33651 --debug |
--debu |
--deb |
--de |
--d |
-d )
33653 --file |
--fil |
--fi |
--f )
33656 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33657 '') as_fn_error $?
"missing file argument" ;;
33659 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33660 ac_need_defaults
=false
;;
33661 --header |
--heade |
--head |
--hea )
33664 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33666 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33667 ac_need_defaults
=false
;;
33669 # Conflict between --help and --header
33670 as_fn_error $?
"ambiguous option: \`$1'
33671 Try \`$0 --help' for more information.";;
33672 --help |
--hel |
-h )
33673 $as_echo "$ac_cs_usage"; exit ;;
33674 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33675 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33678 # This is an error.
33679 -*) as_fn_error $?
"unrecognized option: \`$1'
33680 Try \`$0 --help' for more information." ;;
33682 *) as_fn_append ac_config_targets
" $1"
33683 ac_need_defaults
=false
;;
33689 ac_configure_extra_args
=
33691 if $ac_cs_silent; then
33693 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33698 if \$ac_cs_recheck; then
33699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33702 CONFIG_SHELL='$SHELL'
33703 export CONFIG_SHELL
33708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33713 ## Running $as_me. ##
33719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33723 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33724 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33731 # Handling of arguments.
33732 for ac_config_target
in $ac_config_targets
33734 case $ac_config_target in
33735 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33736 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33737 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33738 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33739 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33740 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33741 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33742 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33743 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33744 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33746 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33751 # If the user did not use the arguments to specify the items to instantiate,
33752 # then the envvar interface is used. Set only those that are not.
33753 # We use the long form for the default assignment because of an extremely
33754 # bizarre bug on SunOS 4.1.3.
33755 if $ac_need_defaults; then
33756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33758 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33762 # Have a temporary directory for convenience. Make it in the build tree
33763 # simply because there is no reason against having it here, and in addition,
33764 # creating and moving files from /tmp can sometimes cause problems.
33765 # Hook for its removal unless debugging.
33766 # Note that there is a small window in which the directory will not be cleaned:
33767 # after its creation but before its name has been assigned to `$tmp'.
33771 trap 'exit_status=$?
33772 : "${ac_tmp:=$tmp}"
33773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33775 trap 'as_fn_exit 1' 1 2 13 15
33777 # Create a (secure) tmp directory for tmp files.
33780 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33784 tmp
=.
/conf$$
-$RANDOM
33785 (umask 077 && mkdir
"$tmp")
33786 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33789 # Set up the scripts for CONFIG_FILES section.
33790 # No need to generate them if there are no CONFIG_FILES.
33791 # This happens for instance with `./config.status config.h'.
33792 if test -n "$CONFIG_FILES"; then
33794 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33795 ac_cs_awk_getline
=:
33796 ac_cs_awk_pipe_init
=
33797 ac_cs_awk_read_file
='
33798 while ((getline aline < (F[key])) > 0)
33801 ac_cs_awk_pipe_fini
=
33803 ac_cs_awk_getline
=false
33804 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33805 ac_cs_awk_read_file
='
33807 print "cat " F[key] " &&"
33808 '$ac_cs_awk_pipe_init
33809 # The final `:' finishes the AND list.
33810 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33812 ac_cr
=`echo X | tr X '\015'`
33813 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33814 # But we know of no other shell where ac_cr would be empty at this
33815 # point, so we can use a bashism as a fallback.
33816 if test "x$ac_cr" = x
; then
33817 eval ac_cr
=\$
\'\\r
\'
33819 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33820 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33823 ac_cs_awk_cr
=$ac_cr
33826 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33829 # Create commands to substitute file output variables.
33831 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33832 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33833 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33836 } >conf$
$files.sh
&&
33837 . .
/conf$
$files.sh ||
33838 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33839 rm -f conf$
$files.sh
33842 echo "cat >conf$$subs.awk <<_ACEOF" &&
33843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33845 } >conf$$subs.sh ||
33846 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33849 for ac_last_try in false false false false false :; do
33850 . ./conf$$subs.sh ||
33851 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33853 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33854 if test $ac_delim_n = $ac_delim_num; then
33856 elif $ac_last_try; then
33857 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33859 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33862 rm -f conf$$subs.sh
33864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33865 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33869 s/^/S["/; s
/!.
*/"]=/
33879 s/\(.\{148\}\)..*/\1/
33881 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33886 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33893 s/\(.\{148\}\)..*/\1/
33895 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33899 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33904 ' <conf$$subs.awk | sed '
33909 ' >>$CONFIG_STATUS || ac_write_fail=1
33910 rm -f conf$$subs.awk
33911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33913 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33914 for (key in S) S_is_set[key] = 1
33916 \$ac_cs_awk_pipe_init
33920 nfields = split(line, field, "@
")
33922 len = length(field[1])
33923 for (i = 2; i < nfields; i++) {
33925 keylen = length(key)
33926 if (S_is_set[key]) {
33928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33929 len += length(value) + length(field[++i])
33934 if (nfields == 3 && !substed) {
33936 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33937 \$ac_cs_awk_read_file
33943 \$ac_cs_awk_pipe_fini
33946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33947 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33948 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33951 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33952 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33955 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33956 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33957 # trailing colons and then remove the whole line if VPATH becomes empty
33958 # (actually we leave an empty line to preserve line numbers).
33959 if test "x
$srcdir" = x.; then
33960 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33979 fi # test -n "$CONFIG_FILES"
33981 # Set up the scripts for CONFIG_HEADERS section.
33982 # No need to generate them if there are no CONFIG_HEADERS.
33983 # This happens for instance with `./config.status Makefile'.
33984 if test -n "$CONFIG_HEADERS"; then
33985 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33989 # Transform confdefs.h into an awk script `defines.awk', embedded as
33990 # here-document in config.status, that substitutes the proper values into
33991 # config.h.in to produce config.h.
33993 # Create a delimiter string that does not exist in confdefs.h, to ease
33994 # handling of long lines.
33996 for ac_last_try in false false :; do
33997 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33998 if test -z "$ac_tt"; then
34000 elif $ac_last_try; then
34001 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
34003 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34007 # For the awk script, D is an array of macro values keyed by name,
34008 # likewise P contains macro parameters if any. Preserve backslash
34009 # newline sequences.
34011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34013 s/.\{148\}/&'"$ac_delim"'/g
34016 s/^[ ]*#[ ]*define[ ][ ]*/ /
34023 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
34025 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
34029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
34030 D["\
1"]=" \
3\\\\\\n
"\\/p
34032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
34037 s/.\{148\}/&'"$ac_delim"'/g
34042 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
34045 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
34047 ' <confdefs.h | sed '
34048 s/'"$ac_delim"'/"\\\
34049 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34052 for (key in D) D_is_set[key] = 1
34055 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34057 split(line, arg, " ")
34058 if (arg[1] == "#") {
34062 defundef
= substr
(arg
[1], 2)
34065 split(mac1
, mac2
, "(") #)
34067 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
34068 if (D_is_set
[macro
]) {
34069 # Preserve the white space surrounding the "#".
34070 print prefix
"define", macro P
[macro
] D
[macro
]
34073 # Replace #undef with comments. This is necessary, for example,
34074 # in the case of _POSIX_SOURCE, which is predefined and required
34075 # on some systems where configure will not decide to define it.
34076 if (defundef
== "undef") {
34077 print
"/*", prefix defundef
, macro
, "*/"
34085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34086 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
34087 fi # test -n "$CONFIG_HEADERS"
34090 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
34095 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34097 case $ac_mode$ac_tag in
34099 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
34100 :[FH
]-) ac_tag
=-:-;;
34101 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34118 -) ac_f
="$ac_tmp/stdin";;
34119 *) # Look for the file first in the build tree, then in the source tree
34120 # (if the path is not absolute). The absolute path cannot be DOS-style,
34121 # because $ac_f cannot contain `:'.
34125 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34127 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34129 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34130 as_fn_append ac_file_inputs
" '$ac_f'"
34133 # Let's still pretend it is `configure' which instantiates (i.e., don't
34134 # use $as_me), people would be surprised to read:
34135 # /* config.h. Generated by config.status. */
34136 configure_input
='Generated from '`
34137 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34139 if test x
"$ac_file" != x-
; then
34140 configure_input
="$ac_file. $configure_input"
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34142 $as_echo "$as_me: creating $ac_file" >&6;}
34144 # Neutralize special characters interpreted by sed in replacement strings.
34145 case $configure_input in #(
34146 *\
&* |
*\|
* |
*\\* )
34147 ac_sed_conf_input
=`$as_echo "$configure_input" |
34148 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34149 *) ac_sed_conf_input
=$configure_input;;
34153 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
34154 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
34159 ac_dir
=`$as_dirname -- "$ac_file" ||
34160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34161 X"$ac_file" : 'X\(//\)[^/]' \| \
34162 X"$ac_file" : 'X\(//\)$' \| \
34163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34164 $as_echo X"$ac_file" |
34165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34169 /^X\(\/\/\)[^/].*/{
34182 as_dir
="$ac_dir"; as_fn_mkdir_p
34186 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34188 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34189 # A ".." for each directory in $ac_dir_suffix.
34190 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34191 case $ac_top_builddir_sub in
34192 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34193 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34196 ac_abs_top_builddir
=$ac_pwd
34197 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34198 # for backward compatibility:
34199 ac_top_builddir
=$ac_top_build_prefix
34202 .
) # We are building in place.
34204 ac_top_srcdir
=$ac_top_builddir_sub
34205 ac_abs_top_srcdir
=$ac_pwd ;;
34206 [\\/]* | ?
:[\\/]* ) # Absolute name.
34207 ac_srcdir
=$srcdir$ac_dir_suffix;
34208 ac_top_srcdir
=$srcdir
34209 ac_abs_top_srcdir
=$srcdir ;;
34210 *) # Relative name.
34211 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34212 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34213 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34215 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34227 # If the template does not know about datarootdir, expand it.
34228 # FIXME: This hack should be removed a few years after 2.60.
34229 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34241 *datarootdir
*) ac_datarootdir_seen
=yes;;
34242 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34247 ac_datarootdir_hack='
34248 s&@datadir@&$datadir&g
34249 s&@docdir@&$docdir&g
34250 s&@infodir@&$infodir&g
34251 s&@localedir@&$localedir&g
34252 s&@mandir@&$mandir&g
34253 s&\\\${datarootdir}&$datarootdir&g' ;;
34257 # Neutralize VPATH when `$srcdir' = `.'.
34258 # Shell code in configure.ac might set extrasub.
34259 # FIXME: do we really want to maintain this feature?
34260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34261 ac_sed_extra="$ac_vpsub
34264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34266 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34267 s|@configure_input@|
$ac_sed_conf_input|
;t t
34268 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34269 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34270 s
&@srcdir@
&$ac_srcdir&;t t
34271 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34272 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34273 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34274 s
&@builddir@
&$ac_builddir&;t t
34275 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34276 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34277 $ac_datarootdir_hack
34279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
34280 if $ac_cs_awk_getline; then
34281 $AWK -f "$ac_tmp/subs.
awk"
34283 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
34285 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34288 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34290 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34292 which seems to be undefined. Please make sure it is defined" >&5
34293 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34294 which seems to be undefined. Please make sure it is defined" >&2;}
34296 rm -f "$ac_tmp/stdin"
34298 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34299 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34307 if test x"$ac_file" != x-; then
34309 $as_echo "/* $configure_input */" \
34310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34311 } >"$ac_tmp/config.h" \
34312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34313 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34315 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34318 mv "$ac_tmp/config.h" "$ac_file" \
34319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34322 $as_echo "/* $configure_input */" \
34323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34324 || as_fn_error $? "could not create -" "$LINENO" 5
34332 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
34335 # Prefer the file from the source tree if names are identical.
34336 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34337 ac_source=$srcdir/$ac_source
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34341 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34343 if test ! -r "$ac_source"; then
34344 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34348 # Try a relative symlink, then a hard link, then a copy.
34350 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34351 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34353 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34354 ln "$ac_source" "$ac_file" 2>/dev/null ||
34355 cp -p "$ac_source" "$ac_file" ||
34356 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34360 $as_echo "$as_me: executing $ac_file commands" >&6;}
34365 case $ac_file$ac_mode in
34366 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34368 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34369 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34371 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34373 "as":F) chmod +x as ;;
34374 "collect-ld":F) chmod +x collect-ld ;;
34375 "nm":F) chmod +x nm ;;
34376 "dsymutil":F) chmod +x dsymutil ;;
34378 case ${CONFIG_HEADERS} in
34379 *auto-host.h:config.in*)
34382 # Make sure all the subdirs exist.
34383 for d in $subdirs doc build common c-family
34385 test -d $d || mkdir $d
34395 ac_clean_files=$ac_clean_files_save
34397 test $ac_write_fail = 0 ||
34398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34401 # configure is writing to config.log, and then calls config.status.
34402 # config.status does its own redirection, appending to config.log.
34403 # Unfortunately, on DOS this fails, as config.log is still kept open
34404 # by configure, so config.status won't be able to
write to it
; its
34405 # output is simply discarded. So we exec the FD to /dev/null,
34406 # effectively closing config.log, so it can be properly (re)opened and
34407 # appended to by config.status. When coming back to configure, we
34408 # need to make the FD available again.
34409 if test "$no_create" != yes; then
34411 ac_config_status_args
=
34412 test "$silent" = yes &&
34413 ac_config_status_args
="$ac_config_status_args --quiet"
34415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34418 # would make configure fail if this is the last instruction.
34419 $ac_cs_success || as_fn_exit
1
34421 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34423 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}