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>
633 ac_subst_vars
='LTLIBOBJS
667 common_out_object_file
683 gcc_gxx_libcxx_include_dir_add_sysroot
684 gcc_gxx_libcxx_include_dir
685 gcc_gxx_include_dir_add_sysroot
692 user_headers_inc_next_post
693 user_headers_inc_next_pre
695 TM_MULTILIB_EXCEPTIONS_CONFIG
705 build_xm_include_list
707 build_install_headers_dir
709 all_selected_languages
712 all_lang_configurefrags
720 DO_LINK_SERIALIZATION
732 ld_version_script_option
734 ORIGINAL_DSYMUTIL_FOR_TARGET
739 ORIGINAL_NM_FOR_TARGET
741 ORIGINAL_LD_GOLD_FOR_TARGET
742 ORIGINAL_LD_BFD_FOR_TARGET
743 ORIGINAL_LD_FOR_TARGET
744 ORIGINAL_PLUGIN_LD_FOR_TARGET
746 ORIGINAL_AS_FOR_TARGET
748 ENABLE_DARWIN_AT_RPATH_FALSE
749 ENABLE_DARWIN_AT_RPATH_TRUE
773 BUILD_SYSTEM_HEADER_DIR
800 NATIVE_SYSTEM_HEADER_DIR
827 MAKEINFO_TOC_INLINE_FLAG
841 omp_device_property_deps
842 omp_device_properties
844 real_target_noncanonical
845 enable_as_accelerator
855 DEFAULT_INSNEMIT_PARTITIONS
856 DEFAULT_MATCHPD_PARTITIONS
863 valgrind_path_defines
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
898 SYSROOT_CFLAGS_FOR_TARGET
944 program_transform_name
955 ac_subst_files
='option_includes
958 enable_option_checking
961 with_native_system_header_dir
965 with_gxx_libcxx_include_dir
967 enable_generated_files_in_srcdir
975 enable_build_format_warnings
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
1000 with_documentation_root_url
1001 with_changes_root_url
1004 with_multilib_generator
1009 with_libiconv_prefix
1011 enable_sjlj_exceptions
1012 enable_win32_utf8_manifest
1013 with_gcc_major_version_only
1018 enable_mingw_wildcard
1019 enable_large_address_aware
1020 enable_leading_mingw64_underscores
1022 enable_frame_pointer
1023 enable_win32_registry
1028 enable_darwin_at_rpath
1029 with_darwin_extra_rpath
1033 enable_gnu_indirect_function
1034 enable_initfini_array
1036 enable_newlib_nano_formatted_io
1037 enable_standard_branch_protection
1038 enable_fix_cortex_a53_835769
1039 enable_fix_cortex_a53_843419
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1045 with_long_double_128
1046 with_long_double_format
1049 enable_maintainer_mode
1051 enable_link_serialization
1052 enable_version_specific_runtime_libs
1056 enable_host_bind_now
1057 enable_libquadmath_support
1058 with_linker_hash_style
1059 with_diagnostics_color
1060 with_diagnostics_urls
1063 enable_s390_excess_float_precision
1065 ac_precious_vars
='build_alias
1084 # Initialize some variables set by options.
1086 ac_init_version
=false
1087 ac_unrecognized_opts
=
1088 ac_unrecognized_sep
=
1089 # The variables have the same names as the options, with
1090 # dashes changed to underlines.
1091 cache_file
=/dev
/null
1098 program_transform_name
=s
,x
,x
,
1106 # Installation directory options.
1107 # These are left unexpanded so users can "make install exec_prefix=/foo"
1108 # and all the variables that are supposed to be based on exec_prefix
1109 # by default will actually change.
1110 # Use braces instead of parens because sh, perl, etc. also accept them.
1111 # (The list follows the same order as the GNU Coding Standards.)
1112 bindir
='${exec_prefix}/bin'
1113 sbindir
='${exec_prefix}/sbin'
1114 libexecdir
='${exec_prefix}/libexec'
1115 datarootdir
='${prefix}/share'
1116 datadir
='${datarootdir}'
1117 sysconfdir
='${prefix}/etc'
1118 sharedstatedir
='${prefix}/com'
1119 localstatedir
='${prefix}/var'
1120 includedir
='${prefix}/include'
1121 oldincludedir
='/usr/include'
1122 docdir
='${datarootdir}/doc/${PACKAGE}'
1123 infodir
='${datarootdir}/info'
1128 libdir
='${exec_prefix}/lib'
1129 localedir
='${datarootdir}/locale'
1130 mandir
='${datarootdir}/man'
1136 # If the previous option needs an argument, assign it.
1137 if test -n "$ac_prev"; then
1138 eval $ac_prev=\
$ac_option
1144 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1149 # Accept the important Cygnus configure options, so we can diagnose typos.
1151 case $ac_dashdash$ac_option in
1155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1158 bindir
=$ac_optarg ;;
1160 -build |
--build |
--buil |
--bui |
--bu)
1161 ac_prev
=build_alias
;;
1162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1163 build_alias
=$ac_optarg ;;
1165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1167 ac_prev
=cache_file
;;
1168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1170 cache_file
=$ac_optarg ;;
1172 --config-cache |
-C)
1173 cache_file
=config.cache
;;
1175 -datadir |
--datadir |
--datadi |
--datad)
1177 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1178 datadir
=$ac_optarg ;;
1180 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1181 |
--dataroo |
--dataro |
--datar)
1182 ac_prev
=datarootdir
;;
1183 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1184 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1185 datarootdir
=$ac_optarg ;;
1187 -disable-* |
--disable-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 as_fn_error $?
"invalid feature name: $ac_useropt"
1192 ac_useropt_orig
=$ac_useropt
1193 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_
$ac_useropt"
1198 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1199 ac_unrecognized_sep
=', ';;
1201 eval enable_
$ac_useropt=no
;;
1203 -docdir |
--docdir |
--docdi |
--doc |
--do)
1205 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1206 docdir
=$ac_optarg ;;
1208 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1210 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1211 dvidir
=$ac_optarg ;;
1213 -enable-* |
--enable-*)
1214 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error $?
"invalid feature name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "enable_
$ac_useropt"
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval enable_
$ac_useropt=\
$ac_optarg ;;
1229 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1230 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1231 |
--exec |
--exe |
--ex)
1232 ac_prev
=exec_prefix
;;
1233 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1234 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1235 |
--exec=* |
--exe=* |
--ex=*)
1236 exec_prefix
=$ac_optarg ;;
1238 -gas |
--gas |
--ga |
--g)
1239 # Obsolete; use --with-gas.
1242 -help |
--help |
--hel |
--he |
-h)
1243 ac_init_help
=long
;;
1244 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1245 ac_init_help
=recursive
;;
1246 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1247 ac_init_help
=short
;;
1249 -host |
--host |
--hos |
--ho)
1250 ac_prev
=host_alias
;;
1251 -host=* |
--host=* |
--hos=* |
--ho=*)
1252 host_alias
=$ac_optarg ;;
1254 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1256 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1258 htmldir
=$ac_optarg ;;
1260 -includedir |
--includedir |
--includedi |
--included |
--include \
1261 |
--includ |
--inclu |
--incl |
--inc)
1262 ac_prev
=includedir
;;
1263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1265 includedir
=$ac_optarg ;;
1267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1270 infodir
=$ac_optarg ;;
1272 -libdir |
--libdir |
--libdi |
--libd)
1274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1275 libdir
=$ac_optarg ;;
1277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1278 |
--libexe |
--libex |
--libe)
1279 ac_prev
=libexecdir
;;
1280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1281 |
--libexe=* |
--libex=* |
--libe=*)
1282 libexecdir
=$ac_optarg ;;
1284 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1285 ac_prev
=localedir
;;
1286 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1287 localedir
=$ac_optarg ;;
1289 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1290 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1291 ac_prev
=localstatedir
;;
1292 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1293 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1294 localstatedir
=$ac_optarg ;;
1296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1299 mandir
=$ac_optarg ;;
1301 -nfp |
--nfp |
--nf)
1302 # Obsolete; use --without-fp.
1305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1306 |
--no-cr |
--no-c |
-n)
1309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1315 |
--oldin |
--oldi |
--old |
--ol |
--o)
1316 ac_prev
=oldincludedir
;;
1317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1320 oldincludedir
=$ac_optarg ;;
1322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1325 prefix
=$ac_optarg ;;
1327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1328 |
--program-pre |
--program-pr |
--program-p)
1329 ac_prev
=program_prefix
;;
1330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1332 program_prefix
=$ac_optarg ;;
1334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1335 |
--program-suf |
--program-su |
--program-s)
1336 ac_prev
=program_suffix
;;
1337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1339 program_suffix
=$ac_optarg ;;
1341 -program-transform-name |
--program-transform-name \
1342 |
--program-transform-nam |
--program-transform-na \
1343 |
--program-transform-n |
--program-transform- \
1344 |
--program-transform |
--program-transfor \
1345 |
--program-transfo |
--program-transf \
1346 |
--program-trans |
--program-tran \
1347 |
--progr-tra |
--program-tr |
--program-t)
1348 ac_prev
=program_transform_name
;;
1349 -program-transform-name=* |
--program-transform-name=* \
1350 |
--program-transform-nam=* |
--program-transform-na=* \
1351 |
--program-transform-n=* |
--program-transform-=* \
1352 |
--program-transform=* |
--program-transfor=* \
1353 |
--program-transfo=* |
--program-transf=* \
1354 |
--program-trans=* |
--program-tran=* \
1355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1356 program_transform_name
=$ac_optarg ;;
1358 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1360 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1361 pdfdir
=$ac_optarg ;;
1363 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1365 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1369 |
-silent |
--silent |
--silen |
--sile |
--sil)
1372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1376 sbindir
=$ac_optarg ;;
1378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1382 ac_prev
=sharedstatedir
;;
1383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1387 sharedstatedir
=$ac_optarg ;;
1389 -site |
--site |
--sit)
1391 -site=* |
--site=* |
--sit=*)
1394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1397 srcdir
=$ac_optarg ;;
1399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1401 ac_prev
=sysconfdir
;;
1402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1404 sysconfdir
=$ac_optarg ;;
1406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1407 ac_prev
=target_alias
;;
1408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1409 target_alias
=$ac_optarg ;;
1411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1414 -version |
--version |
--versio |
--versi |
--vers |
-V)
1415 ac_init_version
=: ;;
1418 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1421 as_fn_error $?
"invalid package name: $ac_useropt"
1422 ac_useropt_orig
=$ac_useropt
1423 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1428 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429 ac_unrecognized_sep
=', ';;
1431 eval with_
$ac_useropt=\
$ac_optarg ;;
1433 -without-* |
--without-*)
1434 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1437 as_fn_error $?
"invalid package name: $ac_useropt"
1438 ac_useropt_orig
=$ac_useropt
1439 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1444 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445 ac_unrecognized_sep
=', ';;
1447 eval with_
$ac_useropt=no
;;
1450 # Obsolete; use --with-x.
1453 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1454 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1455 ac_prev
=x_includes
;;
1456 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1457 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1458 x_includes
=$ac_optarg ;;
1460 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1461 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1462 ac_prev
=x_libraries
;;
1463 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1464 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1465 x_libraries
=$ac_optarg ;;
1467 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1468 Try \`$0 --help' for more information"
1472 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1473 # Reject names that are not valid shell variable names.
1474 case $ac_envvar in #(
1475 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1476 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1478 eval $ac_envvar=\
$ac_optarg
1479 export $ac_envvar ;;
1482 # FIXME: should be removed in autoconf 3.0.
1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1492 if test -n "$ac_prev"; then
1493 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1494 as_fn_error $?
"missing argument to $ac_option"
1497 if test -n "$ac_unrecognized_opts"; then
1498 case $enable_option_checking in
1500 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1505 # Check all directory arguments for consistency.
1506 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507 datadir sysconfdir sharedstatedir localstatedir includedir \
1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509 libdir localedir mandir
1511 eval ac_val
=\$
$ac_var
1512 # Remove trailing slashes.
1515 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516 eval $ac_var=\
$ac_val;;
1518 # Be sure to have absolute directory names.
1520 [\\/$
]* | ?
:[\\/]* ) continue;;
1521 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1523 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1526 # There might be people who depend on the old broken behavior: `$host'
1527 # used to hold the argument of --host etc.
1528 # FIXME: To remove some day.
1531 target
=$target_alias
1533 # FIXME: To remove some day.
1534 if test "x$host_alias" != x
; then
1535 if test "x$build_alias" = x
; then
1536 cross_compiling
=maybe
1537 elif test "x$build_alias" != "x$host_alias"; then
1543 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1545 test "$silent" = yes && exec 6>/dev
/null
1548 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di
=`ls -di .` &&
1550 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1551 as_fn_error $?
"working directory cannot be determined"
1552 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553 as_fn_error $?
"pwd does not report name of working directory"
1556 # Find the source files, if location was not specified.
1557 if test -z "$srcdir"; then
1558 ac_srcdir_defaulted
=yes
1559 # Try the directory containing this script, then the parent directory.
1560 ac_confdir
=`$as_dirname -- "$as_myself" ||
1561 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562 X"$as_myself" : 'X\(//\)[^/]' \| \
1563 X"$as_myself" : 'X\(//\)$' \| \
1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565 $as_echo X"$as_myself" |
1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1584 if test ! -r "$srcdir/$ac_unique_file"; then
1588 ac_srcdir_defaulted
=no
1590 if test ! -r "$srcdir/$ac_unique_file"; then
1591 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1592 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1594 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1598 # When building in place, set srcdir=.
1599 if test "$ac_abs_confdir" = "$ac_pwd"; then
1602 # Remove unnecessary trailing slashes from srcdir.
1603 # Double slashes in file names in object file debugging info
1604 # mess up M-x gdb in Emacs.
1606 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1608 for ac_var
in $ac_precious_vars; do
1609 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1610 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1611 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1612 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1616 # Report the --help message.
1618 if test "$ac_init_help" = "long"; then
1619 # Omit some internal or obsolete options to make the list less imposing.
1620 # This message is too long to be a string in the A/UX 3.1 sh.
1622 \`configure' configures this package to adapt to many kinds of systems.
1624 Usage: $0 [OPTION]... [VAR=VALUE]...
1626 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627 VAR=VALUE. See below for descriptions of some of the useful variables.
1629 Defaults for the options are specified in brackets.
1632 -h, --help display this help and exit
1633 --help=short display options specific to this package
1634 --help=recursive display the short help of all the included packages
1635 -V, --version display version information and exit
1636 -q, --quiet, --silent do not print \`checking ...' messages
1637 --cache-file=FILE cache test results in FILE [disabled]
1638 -C, --config-cache alias for \`--cache-file=config.cache'
1639 -n, --no-create do not create output files
1640 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1642 Installation directories:
1643 --prefix=PREFIX install architecture-independent files in PREFIX
1644 [$ac_default_prefix]
1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1648 By default, \`make install' will install all the files in
1649 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1650 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651 for instance \`--prefix=\$HOME'.
1653 For better control, use the options below.
1655 Fine tuning of the installation directories:
1656 --bindir=DIR user executables [EPREFIX/bin]
1657 --sbindir=DIR system admin executables [EPREFIX/sbin]
1658 --libexecdir=DIR program executables [EPREFIX/libexec]
1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1662 --libdir=DIR object code libraries [EPREFIX/lib]
1663 --includedir=DIR C header files [PREFIX/include]
1664 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1665 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1667 --infodir=DIR info documentation [DATAROOTDIR/info]
1668 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1669 --mandir=DIR man documentation [DATAROOTDIR/man]
1670 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1671 --htmldir=DIR html documentation [DOCDIR]
1672 --dvidir=DIR dvi documentation [DOCDIR]
1673 --pdfdir=DIR pdf documentation [DOCDIR]
1674 --psdir=DIR ps documentation [DOCDIR]
1680 --program-prefix=PREFIX prepend PREFIX to installed program names
1681 --program-suffix=SUFFIX append SUFFIX to installed program names
1682 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1685 --build=BUILD configure
for building on BUILD
[guessed
]
1686 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1687 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1691 if test -n "$ac_init_help"; then
1696 --disable-option-checking ignore unrecognized
--enable/--with options
1697 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1698 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1699 --enable-generated-files-in-srcdir
1700 put copies of generated files
in source dir intended
1701 for creating
source tarballs
for users without
1702 texinfo bison or flex
1703 --disable-largefile omit support
for large files
1704 --disable-build-format-warnings
1705 don
't use -Wformat while building GCC
1706 --enable-werror-always enable -Werror despite compiler version
1707 --enable-checking[=LIST]
1708 enable expensive run-time checks. With LIST, enable
1709 only specific categories of checks. Categories are:
1710 yes,no,all,none,release. Flags are:
1711 assert,df,extra,fold,gc,gcac,gimple,misc,
1712 rtlflag,rtl,runtime,tree,valgrind,types
1713 --enable-coverage[=LEVEL]
1714 enable compiler's code coverage collection. Use to
1715 measure compiler performance and
locate unused parts
1716 of the compiler. With LEVEL
, specify optimization.
1717 Values are opt
, noopt
, default is noopt
1718 --enable-gather-detailed-mem-stats
1719 enable detailed memory allocation stats gathering
1720 --enable-valgrind-annotations
1721 enable valgrind runtime interaction
1722 --enable-multilib enable library support
for multiple ABIs
1723 --enable-multiarch enable support
for multiarch paths
1724 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1725 --enable-decimal-float={no
,yes,bid
,dpd
}
1726 enable decimal float extension to C. Selecting
'bid'
1727 or
'dpd' choses
which decimal floating point format
1729 --enable-fixed-point enable fixed-point arithmetic extension to C
1730 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1732 --enable-tls enable or disable generation of tls code overriding
1733 the assembler check
for tls support
1734 --enable-vtable-verify enable vtable verification feature
1735 --disable-analyzer disable
-fanalyzer static analyzer
1736 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1737 GNU Objective-C runtime
1738 --disable-shared don't provide a shared libgcc
1739 --disable-gcov don
't provide libgcov and related host tools
1740 --enable-languages=LIST specify which front-ends to build
1741 --disable-rpath do not hardcode runtime library paths
1742 --enable-sjlj-exceptions
1743 arrange to use setjmp/longjmp exception handling
1744 --disable-win32-utf8-manifest
1745 disable embedding a utf8 manifest on mingw hosts
1746 --enable-win32-utf8-manifest
1747 enable embedding a utf8 manifest on mingw hosts
1749 --disable-nls do not use Native Language Support
1750 --enable-secureplt enable -msecure-plt by default for PowerPC
1751 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1752 Default to platform configuration
1753 --enable-large-address-aware
1754 Link mingw executables with --large-address-aware
1755 --enable-leading-mingw64-underscores
1756 enable leading underscores on 64 bit mingw targets
1757 --enable-cld enable -mcld by default for 32bit x86
1758 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1759 --disable-win32-registry
1760 disable lookup of installation paths in the Registry
1762 --enable-win32-registry enable registry lookup (default)
1763 --enable-win32-registry=KEY
1764 use KEY instead of GCC version as the last portion
1766 --enable-shared[=PKGS] build shared libraries [default=yes]
1767 --enable-static[=PKGS] build static libraries [default=yes]
1768 --enable-fast-install[=PKGS]
1769 optimize for fast installation [default=yes]
1770 --disable-libtool-lock avoid locking (might break parallel builds)
1771 --enable-darwin-at-rpath
1772 install libraries with @rpath/library-name, requires
1773 rpaths to be added to executables
1774 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1775 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1776 --enable-gnu-indirect-function
1777 enable the use of the @gnu_indirect_function to
1779 --enable-initfini-array use .init_array/.fini_array sections
1780 --enable-comdat enable COMDAT group support
1781 --enable-newlib-nano-formatted-io
1782 Use nano version formatted IO
1784 --enable-standard-branch-protection
1785 enable Branch Target Identification Mechanism and
1786 Return Address Signing by default for AArch64
1787 --disable-standard-branch-protection
1788 disable Branch Target Identification Mechanism and
1789 Return Address Signing by default for AArch64
1792 --enable-fix-cortex-a53-835769
1793 enable workaround for AArch64 Cortex-A53 erratum
1795 --disable-fix-cortex-a53-835769
1796 disable workaround for AArch64 Cortex-A53 erratum
1800 --enable-fix-cortex-a53-843419
1801 enable workaround for AArch64 Cortex-A53 erratum
1803 --disable-fix-cortex-a53-843419
1804 disable workaround for AArch64 Cortex-A53 erratum
1807 --enable-gnu-unique-object
1808 enable the use of the @gnu_unique_object ELF
1809 extension on glibc systems
1810 --enable-linker-build-id
1811 compiler will always pass --build-id to linker
1812 --enable-libssp enable linking against libssp
1813 --enable-default-ssp enable Stack Smashing Protection as default
1814 --enable-maintainer-mode
1815 enable make rules and dependencies not useful (and
1816 sometimes confusing) to the casual installer
1817 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1818 thrashing on the build machine
1819 --enable-link-serialization
1820 avoid linking multiple GCC front-ends at once using
1821 make dependencies to avoid thrashing on the build
1823 --enable-version-specific-runtime-libs
1824 specify that runtime libraries should be installed
1825 in a compiler-specific directory
1826 --enable-plugin enable plugin support
1827 --enable-host-shared build host code as shared libraries
1828 --enable-host-pie build host code as PIE
1829 --enable-host-bind-now link host code as BIND_NOW
1830 --disable-libquadmath-support
1831 disable libquadmath support for Fortran
1832 --enable-default-pie enable Position Independent Executable as default
1833 --enable-cet enable Intel CET in host libraries [default=auto]
1834 --enable-s390-excess-float-precision
1835 on s390 targets, evaluate float with double
1836 precision when in standards-conforming mode
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-build-libsubdir=DIR Directory where to find libraries for build system
1842 --with-local-prefix=DIR specifies directory to put local include
1843 --with-native-system-header-dir=dir
1844 use dir as the directory to look for standard
1845 system header files in. Defaults to /usr/include.
1846 --with-build-sysroot=sysroot
1847 use sysroot as the system root during the build
1848 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1849 --with-gxx-include-dir=DIR
1850 specifies directory to put g++ header files
1851 --with-gxx-libcxx-include-dir=DIR
1852 specifies directory to find libc++ header files
1853 --with-cpp-install-dir=DIR
1854 install the user visible C preprocessor in DIR
1855 (relative to PREFIX) as well as PREFIX/bin
1856 --with-gnu-ld arrange to work with GNU ld
1857 --with-ld arrange to use the specified ld (full pathname)
1858 --with-demangler-in-ld try to use demangler in GNU ld
1859 --with-dsymutil arrange to use the specified dsymutil (full
1861 --with-gnu-as arrange to work with GNU as
1862 --with-as arrange to use the specified as (full pathname)
1863 --with-stack-clash-protection-guard-size=size
1864 Set the default stack clash protection guard size
1865 for specific targets as a power of two in bytes.
1866 --with-matchpd-partitions=num
1867 Set the number of partitions to make for gimple and
1868 generic when splitting match.pd. [default=10]
1869 --with-insnemit-partitions=num
1870 Set the number of partitions of insn-emit.cc for
1871 genemit to create. [default=10]
1872 --with-dwarf2 force the default debug format to be DWARF 2 (or
1874 --with-specs=SPECS add SPECS to driver command-line processing
1875 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1876 --with-bugurl=URL Direct users to URL to report a bug
1877 --with-documentation-root-url=URL
1878 Root for documentation URLs
1879 --with-changes-root-url=URL
1880 Root for GCC changes URLs
1881 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1883 --with-multilib-generator
1884 Multi-libs configuration string (RISC-V only)
1885 --with-zstd=PATH specify prefix directory for installed zstd library.
1886 Equivalent to --with-zstd-include=PATH/include plus
1887 --with-zstd-lib=PATH/lib
1888 --with-zstd-include=PATH
1889 specify directory for installed zstd include files
1890 --with-zstd-lib=PATH specify directory for the installed zstd library
1891 --with-gnu-ld assume the C compiler uses GNU ld default=no
1892 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1893 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1894 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1895 --with-gcc-major-version-only
1896 use only GCC major number
in filesystem paths
1897 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1898 --without-libintl-prefix don
't search for libintl in includedir and libdir
1899 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1900 --with-pic try to use only PIC/non-PIC objects [default=use
1902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1903 --with-darwin-extra-rpath=[ARG]
1904 Specify a runpath directory, additional to those
1905 provided by the compiler
1906 --with-plugin-ld=[ARG] specify the plugin linker
1907 --with-glibc-version=M.N
1908 assume GCC used with glibc version M.N or later
1909 --with-long-double-128 use 128-bit long double by default
1910 --with-long-double-format={ieee,ibm}
1911 Specify whether PowerPC long double uses IEEE or IBM format
1913 --with-gc={page,zone} this option is not supported anymore. It used to
1914 choose the garbage collection mechanism to use with
1916 --with-system-zlib use installed libz
1917 --with-linker-hash-style={sysv,gnu,both}
1918 specify the linker hash style
1919 --with-diagnostics-color={never,auto,auto-if-env,always}
1920 specify the default of -fdiagnostics-color option
1921 auto-if-env stands for -fdiagnostics-color=auto if
1922 GCC_COLOR environment variable is present and
1923 -fdiagnostics-color=never otherwise
1924 --with-diagnostics-urls={never,auto,auto-if-env,always}
1925 specify the default of -fdiagnostics-urls option
1926 auto-if-env stands for -fdiagnostics-urls=auto if
1927 GCC_URLS or TERM_URLS environment variable is
1928 present and -fdiagnostics-urls=never otherwise
1930 Some influential environment variables:
1931 CC C compiler command
1932 CFLAGS C compiler flags
1933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1934 nonstandard directory <lib dir>
1935 LIBS libraries to pass to the linker, e.g. -l<library>
1936 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1937 you have headers in a nonstandard directory <include dir>
1938 CXX C++ compiler command
1939 CXXFLAGS C++ compiler flags
1940 CXXCPP C++ preprocessor
1942 GMPLIBS How to link GMP
1943 GMPINC How to find GMP include files
1944 ISLLIBS How to link isl
1945 ISLINC How to find isl include files
1947 Use these variables to override the choices made by `configure' or to
help
1948 it to
find libraries and programs with nonstandard names
/locations.
1950 Report bugs to the package provider.
1955 if test "$ac_init_help" = "recursive"; then
1956 # If there are subdirs, report their specific --help.
1957 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1958 test -d "$ac_dir" ||
1959 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1964 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1966 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1967 # A ".." for each directory in $ac_dir_suffix.
1968 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1969 case $ac_top_builddir_sub in
1970 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1971 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1974 ac_abs_top_builddir
=$ac_pwd
1975 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir
=$ac_top_build_prefix
1980 .
) # We are building in place.
1982 ac_top_srcdir
=$ac_top_builddir_sub
1983 ac_abs_top_srcdir
=$ac_pwd ;;
1984 [\\/]* | ?
:[\\/]* ) # Absolute name.
1985 ac_srcdir
=$srcdir$ac_dir_suffix;
1986 ac_top_srcdir
=$srcdir
1987 ac_abs_top_srcdir
=$srcdir ;;
1989 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1991 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1993 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1995 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1996 # Check for guested configure.
1997 if test -f "$ac_srcdir/configure.gnu"; then
1999 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000 elif test -f "$ac_srcdir/configure"; then
2002 $SHELL "$ac_srcdir/configure" --help=recursive
2004 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2006 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2014 generated by GNU Autoconf
2.69
2016 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2017 This configure
script is free software
; the Free Software Foundation
2018 gives unlimited permission to copy
, distribute and modify it.
2023 ## ------------------------ ##
2024 ## Autoconf initialization. ##
2025 ## ------------------------ ##
2027 # ac_fn_c_try_compile LINENO
2028 # --------------------------
2029 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_c_try_compile
()
2032 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2033 rm -f conftest.
$ac_objext
2034 if { { ac_try
="$ac_compile"
2036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_compile") 2>conftest.err
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_c_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest.$ac_objext; then :
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
2063 } # ac_fn_c_try_compile
2065 # ac_fn_cxx_try_compile LINENO
2066 # ----------------------------
2067 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_compile ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext
2072 if { { ac_try="$ac_compile"
2074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2075 *) ac_try_echo
=$ac_try;;
2077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compile") 2>conftest.err
2081 if test -s conftest.err
; then
2082 grep -v '^ *+' conftest.err
>conftest.er1
2083 cat conftest.er1
>&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_cxx_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest.
$ac_objext; then :
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status
$ac_retval
2101 } # ac_fn_cxx_try_compile
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 eval "$3=\$ac_header_compiler"
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_try_run LINENO
2228 # ------------------------
2229 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2230 # that executables *can* be run.
2231 ac_fn_cxx_try_run ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if { { ac_try="$ac_link"
2236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2237 *) ac_try_echo
=$ac_try;;
2239 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>&5
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2245 { { case "(($ac_try" in
2246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_try") 2>&5
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; }; then :
2257 $as_echo "$as_me: program exited with status $ac_status" >&5
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2261 ac_retval=$ac_status
2263 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265 as_fn_set_status $ac_retval
2267 } # ac_fn_cxx_try_run
2269 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2270 # ---------------------------------------------------------
2271 # Tests whether HEADER exists and can be compiled using the include files in
2272 # INCLUDES, setting the cache variable VAR accordingly.
2273 ac_fn_cxx_check_header_compile ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_cxx_check_header_compile
2300 # ac_fn_c_try_cpp LINENO
2301 # ----------------------
2302 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if { { ac_try="$ac_cpp conftest.$ac_ext"
2308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2309 *) ac_try_echo
=$ac_try;;
2311 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 $as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2315 if test -s conftest.err
; then
2316 grep -v '^ *+' conftest.err
>conftest.er1
2317 cat conftest.er1
>&5
2318 mv -f conftest.er1 conftest.err
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } > conftest.i
&& {
2322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2323 test ! -s conftest.err
2327 $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.
$ac_ext >&5
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status
$ac_retval
2337 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2338 # ----------------------------------------------
2339 # Tries to find the compile-time value of EXPR in a program that includes
2340 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2342 ac_fn_cxx_compute_int
()
2344 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2345 if test "$cross_compiling" = yes; then
2346 # Depending upon the size, compute the lo and hi bounds.
2347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2353 static int test_array [1 - 2 * !(($2) >= 0)];
2355 return test_array [0];
2361 if ac_fn_cxx_try_compile
"$LINENO"; then :
2364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2370 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2372 return test_array [0];
2378 if ac_fn_cxx_try_compile
"$LINENO"; then :
2379 ac_hi
=$ac_mid; break
2381 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2382 if test $ac_lo -le $ac_mid; then
2386 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 static int test_array [1 - 2 * !(($2) < 0)];
2399 return test_array [0];
2405 if ac_fn_cxx_try_compile
"$LINENO"; then :
2408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2414 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2416 return test_array [0];
2422 if ac_fn_cxx_try_compile
"$LINENO"; then :
2423 ac_lo
=$ac_mid; break
2425 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2426 if test $ac_mid -le $ac_hi; then
2430 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2440 # Binary search between lo and hi bounds.
2441 while test "x$ac_lo" != "x$ac_hi"; do
2442 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2451 return test_array [0];
2457 if ac_fn_cxx_try_compile
"$LINENO"; then :
2460 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2472 static long int longval () { return $2; }
2473 static unsigned long int ulongval () { return $2; }
2480 FILE *f = fopen ("conftest.val", "w");
2485 long int i = longval ();
2488 fprintf (f, "%ld", i);
2492 unsigned long int i = ulongval ();
2495 fprintf (f, "%lu", i);
2497 /* Do not output a trailing newline, as this causes \r\n confusion
2498 on some platforms. */
2499 return ferror (f) || fclose (f) != 0;
2505 if ac_fn_cxx_try_run
"$LINENO"; then :
2506 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 as_fn_set_status
$ac_retval
2518 } # ac_fn_cxx_compute_int
2520 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2521 # ---------------------------------------------
2522 # Tests whether TYPE exists after having included INCLUDES, setting cache
2523 # variable VAR accordingly.
2524 ac_fn_cxx_check_type
()
2526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if eval \
${$3+:} false
; then :
2530 $as_echo_n "(cached) " >&6
2533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2545 if ac_fn_cxx_try_compile
"$LINENO"; then :
2546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2558 if ac_fn_cxx_try_compile
"$LINENO"; then :
2563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 } # ac_fn_cxx_check_type
2574 # ac_fn_c_find_intX_t LINENO BITS VAR
2575 # -----------------------------------
2576 # Finds a signed integer type with width BITS, setting cache variable VAR
2578 ac_fn_c_find_intX_t
()
2580 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2582 $as_echo_n "checking for int$2_t... " >&6; }
2583 if eval \
${$3+:} false
; then :
2584 $as_echo_n "(cached) " >&6
2587 # Order is important - never check a type that is potentially smaller
2588 # than half of the expected target width.
2589 for ac_type
in int
$2_t 'int' 'long int' \
2590 'long long int' 'short int' 'signed char'; do
2591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $ac_includes_default
2594 enum { N = $2 / 2 - 1 };
2598 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2600 return test_array [0];
2606 if ac_fn_cxx_try_compile
"$LINENO"; then :
2607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $ac_includes_default
2610 enum { N = $2 / 2 - 1 };
2614 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2615 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2617 return test_array [0];
2623 if ac_fn_cxx_try_compile
"$LINENO"; then :
2630 eval "$3=\$ac_type" ;;
2633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2636 if eval test \"x\$
"$3"\" = x
"no"; then :
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645 $as_echo "$ac_res" >&6; }
2646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648 } # ac_fn_c_find_intX_t
2650 # ac_fn_cxx_try_link LINENO
2651 # -------------------------
2652 # Try to link conftest.$ac_ext, and return whether this succeeded.
2653 ac_fn_cxx_try_link
()
2655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2656 rm -f conftest.
$ac_objext conftest
$ac_exeext
2657 if { { ac_try
="$ac_link"
2659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_link") 2>conftest.err
2666 if test -s conftest.err; then
2667 grep -v '^ *+' conftest.err >conftest.er1
2668 cat conftest.er1 >&5
2669 mv -f conftest.er1 conftest.err
2671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2672 test $ac_status = 0; } && {
2673 test -z "$ac_cxx_werror_flag" ||
2674 test ! -s conftest.err
2675 } && test -s conftest$ac_exeext && {
2676 test "$cross_compiling" = yes ||
2677 test -x conftest$ac_exeext
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2688 # interfere with the next link command; also delete a directory that is
2689 # left behind by Apple's compiler. We do this before executing the actions.
2690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 as_fn_set_status $ac_retval
2694 } # ac_fn_cxx_try_link
2696 # ac_fn_c_find_uintX_t LINENO BITS VAR
2697 # ------------------------------------
2698 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2700 ac_fn_c_find_uintX_t ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2704 $as_echo_n "checking for uint$2_t... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2709 # Order is important - never check a type that is potentially smaller
2710 # than half of the expected target width.
2711 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2712 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $ac_includes_default
2719 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2721 return test_array [0];
2727 if ac_fn_cxx_try_compile "$LINENO"; then :
2732 eval "$3=\$ac_type" ;;
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if eval test \"x\$"$3"\" = x"no"; then :
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748 } # ac_fn_c_find_uintX_t
2750 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2751 # ------------------------------------------------
2752 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2753 ac_fn_cxx_check_header_preproc ()
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2757 $as_echo_n "checking for $2... " >&6; }
2758 if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2765 if ac_fn_cxx_try_cpp "$LINENO"; then :
2770 rm -f conftest.err conftest.i conftest.$ac_ext
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2774 $as_echo "$ac_res" >&6; }
2775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777 } # ac_fn_cxx_check_header_preproc
2779 # ac_fn_cxx_check_func LINENO FUNC VAR
2780 # ------------------------------------
2781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2782 ac_fn_cxx_check_func ()
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2794 #define $2 innocuous_$2
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $2 (); below.
2798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799 <limits.h> exists even on freestanding compilers. */
2802 # include <limits.h>
2804 # include <assert.h>
2809 /* Override any GCC internal prototype to avoid an error.
2810 Use char because int might match the return type of a GCC
2811 builtin and then its argument prototype would still apply. */
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined __stub_$2 || defined __stub___$2
2831 if ac_fn_cxx_try_link "$LINENO"; then :
2836 rm -f core conftest.err conftest.$ac_objext \
2837 conftest$ac_exeext conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841 $as_echo "$ac_res" >&6; }
2842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 } # ac_fn_cxx_check_func
2846 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2847 # -----------------------------------------------
2848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2850 ac_fn_cxx_check_decl ()
2852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2854 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2857 if eval \${$3+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2866 #ifndef $as_decl_name
2868 (void) $as_decl_use;
2870 (void) $as_decl_name;
2878 if ac_fn_cxx_try_compile "$LINENO"; then :
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2887 $as_echo "$ac_res" >&6; }
2888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 } # ac_fn_cxx_check_decl
2892 # ac_fn_c_try_link LINENO
2893 # -----------------------
2894 # Try to link conftest.$ac_ext, and return whether this succeeded.
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 rm -f conftest.$ac_objext conftest$ac_exeext
2899 if { { ac_try="$ac_link"
2901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2902 *) ac_try_echo
=$ac_try;;
2904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_link") 2>conftest.err
2908 if test -s conftest.err
; then
2909 grep -v '^ *+' conftest.err
>conftest.er1
2910 cat conftest.er1
>&5
2911 mv -f conftest.er1 conftest.err
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest
$ac_exeext && {
2918 test "$cross_compiling" = yes ||
2919 test -x conftest
$ac_exeext
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.
$ac_ext >&5
2928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2930 # interfere with the next link command; also delete a directory that is
2931 # left behind by Apple's compiler. We do this before executing the actions.
2932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934 as_fn_set_status
$ac_retval
2936 } # ac_fn_c_try_link
2938 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2939 # ----------------------------------------------
2940 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2941 ac_fn_c_check_header_preproc
()
2943 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2945 $as_echo_n "checking for $2... " >&6; }
2946 if eval \
${$3+:} false
; then :
2947 $as_echo_n "(cached) " >&6
2949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2953 if ac_fn_c_try_cpp
"$LINENO"; then :
2958 rm -f conftest.err conftest.i conftest.
$ac_ext
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2962 $as_echo "$ac_res" >&6; }
2963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2965 } # ac_fn_c_check_header_preproc
2967 # ac_fn_c_check_func LINENO FUNC VAR
2968 # ----------------------------------
2969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2970 ac_fn_c_check_func
()
2972 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2974 $as_echo_n "checking for $2... " >&6; }
2975 if eval \
${$3+:} false
; then :
2976 $as_echo_n "(cached) " >&6
2978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2982 #define $2 innocuous_$2
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $2 (); below.
2986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987 <limits.h> exists even on freestanding compilers. */
2990 # include <limits.h>
2992 # include <assert.h>
2997 /* Override any GCC internal prototype to avoid an error.
2998 Use char because int might match the return type of a GCC
2999 builtin and then its argument prototype would still apply. */
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined __stub_$2 || defined __stub___$2
3019 if ac_fn_c_try_link
"$LINENO"; then :
3024 rm -f core conftest.err conftest.
$ac_objext \
3025 conftest
$ac_exeext conftest.
$ac_ext
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029 $as_echo "$ac_res" >&6; }
3030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3032 } # ac_fn_c_check_func
3033 cat >config.log
<<_ACEOF
3034 This file contains any messages produced by compilers while
3035 running configure, to aid debugging if configure makes a mistake.
3037 It was created by $as_me, which was
3038 generated by GNU Autoconf 2.69. Invocation command line was
3050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir
=.
3074 $as_echo "PATH: $as_dir"
3090 # Keep a trace of the command line.
3091 # Strip out --no-create and --no-recursion so they do not pile up.
3092 # Strip out --silent because we don't want to record it for future runs.
3093 # Also quote any args containing shell meta-characters.
3094 # Make two passes to allow for proper duplicate-argument suppression.
3098 ac_must_keep_next
=false
3104 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3105 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3106 |
-silent |
--silent |
--silen |
--sile |
--sil)
3109 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3112 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3114 as_fn_append ac_configure_args1
" '$ac_arg'"
3115 if test $ac_must_keep_next = true
; then
3116 ac_must_keep_next
=false
# Got value, back to normal.
3119 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3120 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3121 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3122 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3123 case "$ac_configure_args0 " in
3124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3127 -* ) ac_must_keep_next
=true
;;
3130 as_fn_append ac_configure_args
" '$ac_arg'"
3135 { ac_configure_args0
=; unset ac_configure_args0
;}
3136 { ac_configure_args1
=; unset ac_configure_args1
;}
3138 # When interrupted or exit'd, cleanup temporary files, and complete
3139 # config.log. We remove comments because anyway the quotes in there
3140 # would cause problems or look ugly.
3141 # WARNING: Use '\'' to represent an apostrophe within the trap.
3142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3143 trap 'exit_status=$?
3144 # Save into config.log some information that might help in debugging.
3148 $as_echo "## ---------------- ##
3149 ## Cache variables. ##
3150 ## ---------------- ##"
3152 # The following way of writing the cache mishandles newlines in values,
3154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3155 eval ac_val=\$$ac_var
3159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3163 _ | IFS | as_nl) ;; #(
3164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3165 *) { eval $ac_var=; unset $ac_var;} ;;
3170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3171 *${as_nl}ac_space=\ *)
3173 "s/'\''/'\''\\\\'\'''\''/g;
3174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3184 $as_echo "## ----------------- ##
3185 ## Output variables. ##
3186 ## ----------------- ##"
3188 for ac_var in $ac_subst_vars
3190 eval ac_val=\$$ac_var
3192 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3194 $as_echo "$ac_var='\''$ac_val'\''"
3198 if test -n "$ac_subst_files"; then
3199 $as_echo "## ------------------- ##
3200 ## File substitutions. ##
3201 ## ------------------- ##"
3203 for ac_var
in $ac_subst_files
3205 eval ac_val
=\$
$ac_var
3207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3209 $as_echo "$ac_var='\''$ac_val'\''"
3214 if test -s confdefs.h; then
3215 $as_echo "## ----------- ##
3222 test "$ac_signal" != 0 &&
3223 $as_echo "$as_me: caught signal $ac_signal"
3224 $as_echo "$as_me: exit $exit_status"
3226 rm -f core *.core core.conftest.* &&
3227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3230 for ac_signal
in 1 2 13 15; do
3231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3236 rm -f -r conftest
* confdefs.h
3238 $as_echo "/* confdefs.h */" > confdefs.h
3240 # Predefined preprocessor variables.
3242 cat >>confdefs.h
<<_ACEOF
3243 #define PACKAGE_NAME "$PACKAGE_NAME"
3246 cat >>confdefs.h
<<_ACEOF
3247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3250 cat >>confdefs.h
<<_ACEOF
3251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3254 cat >>confdefs.h
<<_ACEOF
3255 #define PACKAGE_STRING "$PACKAGE_STRING"
3258 cat >>confdefs.h
<<_ACEOF
3259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3262 cat >>confdefs.h
<<_ACEOF
3263 #define PACKAGE_URL "$PACKAGE_URL"
3267 # Let the site file select an alternate cache file if it wants to.
3268 # Prefer an explicitly selected file to automatically selected ones.
3271 if test -n "$CONFIG_SITE"; then
3272 # We do not want a PATH search for config.site.
3273 case $CONFIG_SITE in #((
3274 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3275 */*) ac_site_file1
=$CONFIG_SITE;;
3276 *) ac_site_file1
=.
/$CONFIG_SITE;;
3278 elif test "x$prefix" != xNONE
; then
3279 ac_site_file1
=$prefix/share
/config.site
3280 ac_site_file2
=$prefix/etc
/config.site
3282 ac_site_file1
=$ac_default_prefix/share
/config.site
3283 ac_site_file2
=$ac_default_prefix/etc
/config.site
3285 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3287 test "x$ac_site_file" = xNONE
&& continue
3288 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3291 sed 's/^/| /' "$ac_site_file" >&5
3293 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $?
"failed to load site script $ac_site_file
3296 See \`config.log' for more details" "$LINENO" 5; }
3300 if test -r "$cache_file"; then
3301 # Some versions of bash will fail to source /dev/null (special files
3302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3303 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3305 $as_echo "$as_me: loading cache $cache_file" >&6;}
3307 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3308 *) .
"./$cache_file";;
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3313 $as_echo "$as_me: creating cache $cache_file" >&6;}
3317 gt_needs
="$gt_needs "
3318 # Check that the precious variables saved in the cache have kept the same
3320 ac_cache_corrupted
=false
3321 for ac_var
in $ac_precious_vars; do
3322 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3323 eval ac_new_set
=\
$ac_env_${ac_var}_set
3324 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3325 eval ac_new_val
=\
$ac_env_${ac_var}_value
3326 case $ac_old_set,$ac_new_set in
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3330 ac_cache_corrupted
=: ;;
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3334 ac_cache_corrupted
=: ;;
3337 if test "x$ac_old_val" != "x$ac_new_val"; then
3338 # differences in whitespace do not lead to failure.
3339 ac_old_val_w
=`echo x $ac_old_val`
3340 ac_new_val_w
=`echo x $ac_new_val`
3341 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3344 ac_cache_corrupted
=:
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3348 eval $ac_var=\
$ac_old_val
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3351 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3353 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3356 # Pass precious variables to config.status.
3357 if test "$ac_new_set" = set; then
3359 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3360 *) ac_arg
=$ac_var=$ac_new_val ;;
3362 case " $ac_configure_args " in
3363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3364 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3368 if $ac_cache_corrupted; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3373 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3375 ## -------------------- ##
3376 ## Main body of script. ##
3377 ## -------------------- ##
3380 ac_cpp
='$CPP $CPPFLAGS'
3381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3391 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3394 gcc_version
=`cat $srcdir/BASE-VER`
3396 # Determine the host, build, and target systems
3398 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3399 if test -f "$ac_dir/install-sh"; then
3401 ac_install_sh
="$ac_aux_dir/install-sh -c"
3403 elif test -f "$ac_dir/install.sh"; then
3405 ac_install_sh
="$ac_aux_dir/install.sh -c"
3407 elif test -f "$ac_dir/shtool"; then
3409 ac_install_sh
="$ac_aux_dir/shtool install -c"
3413 if test -z "$ac_aux_dir"; then
3414 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3417 # These three variables are undocumented and unsupported,
3418 # and are intended to be withdrawn in a future Autoconf release.
3419 # They can cause serious problems if a builder's source tree is in a directory
3420 # whose full name contains unusual characters.
3421 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3422 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3423 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426 # Make sure we can run config.sub.
3427 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3428 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3431 $as_echo_n "checking build system type... " >&6; }
3432 if ${ac_cv_build+:} false
; then :
3433 $as_echo_n "(cached) " >&6
3435 ac_build_alias
=$build_alias
3436 test "x$ac_build_alias" = x
&&
3437 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3438 test "x$ac_build_alias" = x
&&
3439 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3440 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3441 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3445 $as_echo "$ac_cv_build" >&6; }
3446 case $ac_cv_build in
3448 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3451 ac_save_IFS
=$IFS; IFS
='-'
3457 # Remember, the first character of IFS is used to create $*,
3458 # except with old shells:
3461 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3465 $as_echo_n "checking host system type... " >&6; }
3466 if ${ac_cv_host+:} false
; then :
3467 $as_echo_n "(cached) " >&6
3469 if test "x$host_alias" = x
; then
3470 ac_cv_host
=$ac_cv_build
3472 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3473 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3478 $as_echo "$ac_cv_host" >&6; }
3481 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3484 ac_save_IFS
=$IFS; IFS
='-'
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3494 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3498 $as_echo_n "checking target system type... " >&6; }
3499 if ${ac_cv_target+:} false
; then :
3500 $as_echo_n "(cached) " >&6
3502 if test "x$target_alias" = x
; then
3503 ac_cv_target
=$ac_cv_host
3505 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3506 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3511 $as_echo "$ac_cv_target" >&6; }
3512 case $ac_cv_target in
3514 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3516 target
=$ac_cv_target
3517 ac_save_IFS
=$IFS; IFS
='-'
3523 # Remember, the first character of IFS is used to create $*,
3524 # except with old shells:
3527 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3530 # The aliases save the names the user supplied, while $host etc.
3531 # will get canonicalized.
3532 test -n "$target_alias" &&
3533 test "$program_prefix$program_suffix$program_transform_name" = \
3535 program_prefix
=${target_alias}-
3537 # Determine the noncanonical host name, for Ada.
3538 case ${build_alias} in
3539 "") build_noncanonical
=${build} ;;
3540 *) build_noncanonical
=${build_alias} ;;
3543 case ${host_alias} in
3544 "") host_noncanonical
=${build_noncanonical} ;;
3545 *) host_noncanonical
=${host_alias} ;;
3551 # Determine the noncanonical target name, for directory use.
3552 case ${target_alias} in
3553 "") target_noncanonical
=${host_noncanonical} ;;
3554 *) target_noncanonical
=${target_alias} ;;
3560 # Used for constructing correct paths for offload compilers.
3561 real_target_noncanonical
=${target_noncanonical}
3564 # Determine the target- and build-specific subdirectories
3566 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3567 # have matching libraries, they should use host libraries: Makefile.tpl
3568 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3569 # However, they still use the build modules, because the corresponding
3570 # host modules (e.g. bison) are only built for the host when bootstrap
3572 # - build_subdir is where we find build modules, and never changes.
3573 # - build_libsubdir is where we find build libraries, and can be overridden.
3575 # Prefix 'build-' so this never conflicts with target_subdir.
3576 build_subdir
="build-${build_noncanonical}"
3578 # Check whether --with-build-libsubdir was given.
3579 if test "${with_build_libsubdir+set}" = set; then :
3580 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3582 build_libsubdir
="$build_subdir"
3585 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3586 if ( test $srcdir = .
&& test -d gcc
) \
3587 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3588 host_subdir
="host-${host_noncanonical}"
3593 target_subdir
=${target_noncanonical}
3596 # Set program_transform_name
3597 test "$program_prefix" != NONE
&&
3598 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3599 # Use a double $ so make ignores it.
3600 test "$program_suffix" != NONE
&&
3601 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3602 # Double any \ or $.
3603 # By default was `s,x,x', remove it if useless.
3604 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3605 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608 # Check for bogus environment variables.
3609 # Test if LIBRARY_PATH contains the notation for the current directory
3610 # since this would lead to problems installing/building glibc.
3611 # LIBRARY_PATH contains the current directory if one of the following
3613 # - one of the terminals (":" and ";") is the first or last sign
3614 # - two terminals occur directly after each other
3615 # - the path contains an element with a dot in it
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3617 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3618 case ${LIBRARY_PATH} in
3619 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3620 library_path_setting
="contains current directory"
3623 library_path_setting
="ok"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3627 $as_echo "$library_path_setting" >&6; }
3628 if test "$library_path_setting" != "ok"; then
3630 *** LIBRARY_PATH shouldn't contain the current directory when
3631 *** building gcc. Please change the environment variable
3632 *** and run configure again." "$LINENO" 5
3635 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3636 # since this would lead to problems installing/building glibc.
3637 # GCC_EXEC_PREFIX contains the current directory if one of the following
3639 # - one of the terminals (":" and ";") is the first or last sign
3640 # - two terminals occur directly after each other
3641 # - the path contains an element with a dot in it
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3643 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3644 case ${GCC_EXEC_PREFIX} in
3645 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3646 gcc_exec_prefix_setting
="contains current directory"
3649 gcc_exec_prefix_setting
="ok"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3653 $as_echo "$gcc_exec_prefix_setting" >&6; }
3654 if test "$gcc_exec_prefix_setting" != "ok"; then
3656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3657 *** building gcc. Please change the environment variable
3658 *** and run configure again." "$LINENO" 5
3665 # Specify the local prefix
3668 # Check whether --with-local-prefix was given.
3669 if test "${with_local_prefix+set}" = set; then :
3670 withval
=$with_local_prefix; case "${withval}" in
3671 yes) as_fn_error $?
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3673 *) local_prefix
=$with_local_prefix ;;
3678 # Default local prefix if it is empty
3679 if test x
$local_prefix = x
; then
3680 local_prefix
=/usr
/local
3684 # Check whether --with-native-system-header-dir was given.
3685 if test "${with_native_system_header_dir+set}" = set; then :
3686 withval
=$with_native_system_header_dir;
3687 case ${with_native_system_header_dir} in
3688 yes|no
) as_fn_error $?
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3689 /* |
[A-Za-z
]:[\\/]*) ;;
3690 *) as_fn_error $?
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3692 configured_native_system_header_dir
="${withval}"
3695 configured_native_system_header_dir
=
3700 # Check whether --with-build-sysroot was given.
3701 if test "${with_build_sysroot+set}" = set; then :
3702 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3703 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3706 SYSROOT_CFLAGS_FOR_TARGET
=
3711 if test "x$prefix" = xNONE
; then
3712 test_prefix
=/usr
/local
3716 if test "x$exec_prefix" = xNONE
; then
3717 test_exec_prefix
=$test_prefix
3719 test_exec_prefix
=$exec_prefix
3723 # Check whether --with-sysroot was given.
3724 if test "${with_sysroot+set}" = set; then :
3725 withval
=$with_sysroot;
3726 case ${with_sysroot} in
3728 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3730 case ${with_sysroot} in
3731 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3732 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3735 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3736 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3738 case ${TARGET_SYSTEM_ROOT} in
3739 "${test_prefix}"|
"${test_prefix}/"*|\
3740 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3741 '${prefix}'|
'${prefix}/'*|\
3742 '${exec_prefix}'|
'${exec_prefix}/'*)
3743 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3744 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3751 TARGET_SYSTEM_ROOT_DEFINE
=
3752 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3760 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3761 # passed in by the toplevel make and thus we'd get different behavior
3762 # depending on where we built the sources.
3763 gcc_gxx_include_dir
=
3764 # Specify the g++ header file directory
3766 # Check whether --with-gxx-include-dir was given.
3767 if test "${with_gxx_include_dir+set}" = set; then :
3768 withval
=$with_gxx_include_dir; case "${withval}" in
3769 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3771 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3776 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3777 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3778 # relative to the sysroot.
3779 gcc_gxx_include_dir_add_sysroot
=0
3781 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3782 if test x
${gcc_gxx_include_dir} = x
; then
3783 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3784 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3786 libstdcxx_incdir
='include/c++/$(version)'
3787 if test x
$host != x
$target; then
3788 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3790 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3792 elif test "${with_sysroot+set}" = set; then
3793 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3794 if test "${gcc_gxx_without_sysroot}"; then
3795 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3796 gcc_gxx_include_dir_add_sysroot
=1
3800 # Configuration for an alternate set of C++ headers.
3801 gcc_gxx_libcxx_include_dir
=
3802 # Specify the alternate g++ header file directory
3804 # Check whether --with-gxx-libcxx-include-dir was given.
3805 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3806 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3807 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3808 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3813 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3814 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3815 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3816 #Â based on the platform (to be available on platform versions where it is the
3817 # default for the system tools). We also use a default path within the compiler
3819 #Â Otherwise, we use the path provided and enable the stdlib option.
3820 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3821 # check to see if the latter starts with the former and, upon success, compute
3822 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3823 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3824 gcc_enable_stdlib_opt
=0
3825 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3826 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3827 #Â set defaults for the dir, but the option is disabled anyway.
3828 gcc_gxx_libcxx_include_dir
=
3830 gcc_enable_stdlib_opt
=1
3834 *-darwin1[1-9]* |
*-darwin2*)
3835 #Â Default this on for Darwin versions which default to libcxx,
3836 #Â and embed the path in the compiler install so that we get a
3837 # self-contained toolchain.
3838 gcc_enable_stdlib_opt
=1
3844 cat >>confdefs.h
<<_ACEOF
3845 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3849 # Sysroot behaviour as for gxx-include-dir
3850 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3851 # default path,embedded in the compiler tree.
3852 libcxx_incdir
='include/c++/v1'
3853 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3854 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3856 if test x
$host != x
$target; then
3857 libcxx_incdir
="$target_alias/$libcxx_incdir"
3859 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3861 elif test "${with_sysroot+set}" = set; then
3862 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3863 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3864 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3865 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3870 # Check whether --with-cpp_install_dir was given.
3871 if test "${with_cpp_install_dir+set}" = set; then :
3872 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3873 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3874 elif test x
$withval != xno
; then
3875 cpp_install_dir
=$withval
3880 # We would like to our source tree to be readonly. However when releases or
3881 # pre-releases are generated, the flex/bison generated files as well as the
3882 # various formats of manuals need to be included along with the rest of the
3883 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3887 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3888 # Check whether --enable-generated-files-in-srcdir was given.
3889 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3890 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3892 generated_files_in_srcdir
=no
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3897 $as_echo "$generated_files_in_srcdir" >&6; }
3899 if test "$generated_files_in_srcdir" = "yes"; then
3906 # -------------------
3907 # Find default linker
3908 # -------------------
3912 # Check whether --with-gnu-ld was given.
3913 if test "${with_gnu_ld+set}" = set; then :
3914 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3922 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3923 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3931 # With pre-defined ld
3933 # Check whether --with-ld was given.
3934 if test "${with_ld+set}" = set; then :
3935 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3938 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3939 if test ! -x "$DEFAULT_LINKER"; then
3940 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3941 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3943 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3947 cat >>confdefs.h
<<_ACEOF
3948 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3954 $as_echo_n "checking whether a default linker was specified... " >&6; }
3955 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3956 if test x
"$gnu_ld_flag" = x
"no"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3958 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3961 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 # With demangler in GNU ld
3970 # Check whether --with-demangler-in-ld was given.
3971 if test "${with_demangler_in_ld+set}" = set; then :
3972 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3978 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3980 # Check whether --with-dsymutil was given.
3981 if test "${with_dsymutil+set}" = set; then :
3982 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3987 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3988 if test ! -x "$DEFAULT_DSYMUTIL"; then
3989 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3991 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3996 cat >>confdefs.h
<<_ACEOF
3997 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4003 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4004 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4006 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4012 # ----------------------
4013 # Find default assembler
4014 # ----------------------
4018 # Check whether --with-gnu-as was given.
4019 if test "${with_gnu_as+set}" = set; then :
4020 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
4027 # Check whether --with-as was given.
4028 if test "${with_as+set}" = set; then :
4029 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
4032 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4033 if test ! -x "$DEFAULT_ASSEMBLER"; then
4034 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4035 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4039 cat >>confdefs.h
<<_ACEOF
4040 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4046 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4047 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4048 if test x
"$gas_flag" = x
"no"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4050 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4053 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4064 # If a non-executable a.out is present (e.g. created by GNU as above even if
4065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4066 # file, even when creating an executable, so an execution test fails.
4067 # Remove possible default executable files to avoid this.
4069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4070 # Autoconf includes it.
4071 rm -f a.out a.exe b.out
4073 # Find the native compiler
4075 ac_cpp
='$CPP $CPPFLAGS'
4076 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4081 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false
; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC
="$CC" # Let the user override the test.
4090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir
=.
4095 for ac_exec_ext
in '' $ac_executable_extensions; do
4096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4118 if test -z "$ac_cv_prog_CC"; then
4120 # Extract the first word of "gcc", so it can be a program name with args.
4121 set dummy gcc
; ac_word
=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir
=.
4135 for ac_exec_ext
in '' $ac_executable_extensions; do
4136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC
="gcc"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 $as_echo "$ac_ct_CC" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4156 if test "x$ac_ct_CC" = x
; then
4159 case $cross_compiling:$ac_tool_warned in
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned
=yes ;;
4171 if test -z "$CC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4174 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_CC+:} false
; then :
4178 $as_echo_n "(cached) " >&6
4180 if test -n "$CC"; then
4181 ac_cv_prog_CC
="$CC" # Let the user override the test.
4183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4187 test -z "$as_dir" && as_dir
=.
4188 for ac_exec_ext
in '' $ac_executable_extensions; do
4189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4212 if test -z "$CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc
; ac_word
=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_CC+:} false
; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC
="$CC" # Let the user override the test.
4224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir
=.
4229 for ac_exec_ext
in '' $ac_executable_extensions; do
4230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected
=yes
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 if test $ac_prog_rejected = yes; then
4244 # We found a bogon in the path, so make sure we never use it.
4245 set dummy
$ac_cv_prog_CC
4247 if test $# != 0; then
4248 # We chose a different compiler from the bogus one.
4249 # However, it has the same basename, so the bogon will be chosen
4250 # first if we set CC to just the basename; use the full file name.
4252 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4258 if test -n "$CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260 $as_echo "$CC" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 if test -z "$CC"; then
4269 if test -n "$ac_tool_prefix"; then
4270 for ac_prog
in cl.exe
4272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false
; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC
="$CC" # Let the user override the test.
4282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir
=.
4287 for ac_exec_ext
in '' $ac_executable_extensions; do
4288 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$CC" && break
4312 if test -z "$CC"; then
4314 for ac_prog
in cl.exe
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy
$ac_prog; ac_word
=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4321 $as_echo_n "(cached) " >&6
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_CC
="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4346 $as_echo "$ac_ct_CC" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4353 test -n "$ac_ct_CC" && break
4356 if test "x$ac_ct_CC" = x
; then
4359 case $cross_compiling:$ac_tool_warned in
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned
=yes ;;
4372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error $?
"no acceptable C compiler found in \$PATH
4375 See \`config.log' for more details" "$LINENO" 5; }
4377 # Provide some information about the compiler.
4378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4381 for ac_option
in --version -v -V -qversion; do
4382 { { ac_try
="$ac_compiler $ac_option >&5"
4384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4391 if test -s conftest.err; then
4393 ... rest of stderr output deleted ...
4394 10q' conftest.err >conftest.er1
4395 cat conftest.er1 >&5
4397 rm -f conftest.er1 conftest.err
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4413 ac_clean_files_save=$ac_clean_files
4414 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4415 # Try to create an executable without -o first, disregard a.out.
4416 # It will help us diagnose broken compilers, and finding out an intuition
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4419 $as_echo_n "checking whether the C compiler works... " >&6; }
4420 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4422 # The possible output files:
4423 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4426 for ac_file in $ac_files
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4435 if { { ac_try="$ac_link_default"
4437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4438 *) ac_try_echo
=$ac_try;;
4440 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_link_default") 2>&5
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }; then :
4446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4449 # so that the user can short-circuit this test for compilers unknown to
4451 for ac_file
in $ac_files ''
4453 test -f "$ac_file" ||
continue
4455 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4458 # We found the default executable, but exeext='' is most
4462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4464 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 # We set ac_cv_exeext here because the later test for it is not
4467 # safe: cross compilers may not add the suffix if given an `-o'
4468 # argument, so we may need to know it at that point already.
4469 # Even if this section looks crufty: it has the advantage of
4476 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4481 if test -z "$ac_file"; then :
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 $as_echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.
$ac_ext >&5
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error
77 "C compiler cannot create executables
4490 See \`config.log' for more details" "$LINENO" 5; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493 $as_echo "yes" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4496 $as_echo_n "checking for C compiler default output file name... " >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4498 $as_echo "$ac_file" >&6; }
4499 ac_exeext
=$ac_cv_exeext
4501 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4502 ac_clean_files
=$ac_clean_files_save
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4504 $as_echo_n "checking for suffix of executables... " >&6; }
4505 if { { ac_try
="$ac_link"
4507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_link") 2>&5
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; then :
4516 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4517 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4518 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 for ac_file
in conftest.exe conftest conftest.
*; do
4521 test -f "$ac_file" ||
continue
4523 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4524 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details" "$LINENO" 5; }
4535 rm -f conftest conftest
$ac_cv_exeext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4537 $as_echo "$ac_cv_exeext" >&6; }
4539 rm -f conftest.
$ac_ext
4540 EXEEXT
=$ac_cv_exeext
4542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4548 FILE *f = fopen ("conftest.out", "w");
4549 return ferror (f) || fclose (f) != 0;
4555 ac_clean_files
="$ac_clean_files conftest.out"
4556 # Check that the compiler produces executables we can run. If not, either
4557 # the compiler is broken, or we cross compile.
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4559 $as_echo_n "checking whether we are cross compiling... " >&6; }
4560 if test "$cross_compiling" != yes; then
4561 { { ac_try
="$ac_link"
4563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_link") 2>&5
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }
4572 if { ac_try='./conftest$ac_cv_exeext'
4573 { { case "(($ac_try" in
4574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4575 *) ac_try_echo
=$ac_try;;
4577 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578 $as_echo "$ac_try_echo"; } >&5
4579 (eval "$ac_try") 2>&5
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }; }; then
4585 if test "$cross_compiling" = maybe
; then
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $?
"cannot run C compiled programs.
4591 If you meant to cross compile, use \`--host'.
4592 See \`config.log' for more details" "$LINENO" 5; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4597 $as_echo "$cross_compiling" >&6; }
4599 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4600 ac_clean_files
=$ac_clean_files_save
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4602 $as_echo_n "checking for suffix of object files... " >&6; }
4603 if ${ac_cv_objext+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4617 rm -f conftest.o conftest.obj
4618 if { { ac_try
="$ac_compile"
4620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compile") 2>&5
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; then :
4629 for ac_file in conftest.o conftest.obj conftest.*; do
4630 test -f "$ac_file" || continue;
4632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4644 See \
`config.log' for more details" "$LINENO" 5; }
4646 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4649 $as_echo "$ac_cv_objext" >&6; }
4650 OBJEXT=$ac_cv_objext
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4654 if ${ac_cv_c_compiler_gnu+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4671 if ac_fn_c_try_compile "$LINENO"; then :
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4682 if test $ac_compiler_gnu = yes; then
4687 ac_test_CFLAGS=${CFLAGS+set}
4688 ac_save_CFLAGS=$CFLAGS
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4691 if ${ac_cv_prog_cc_g+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_save_c_werror_flag=$ac_c_werror_flag
4695 ac_c_werror_flag=yes
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4709 if ac_fn_c_try_compile "$LINENO"; then :
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4724 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4740 if ac_fn_c_try_compile "$LINENO"; then :
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4751 $as_echo "$ac_cv_prog_cc_g" >&6; }
4752 if test "$ac_test_CFLAGS" = set; then
4753 CFLAGS=$ac_save_CFLAGS
4754 elif test $ac_cv_prog_cc_g = yes; then
4755 if test "$GCC" = yes; then
4761 if test "$GCC" = yes; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4769 if ${ac_cv_prog_cc_c89+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 ac_cv_prog_cc_c89=no
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4780 struct buf { int x; };
4781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4782 static char *e (p, i)
4788 static char *f (char * (*g) (char **, int), char **p, ...)
4793 s = g (p, va_arg (v,int));
4798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4799 function prototypes and stuff, but not '\xHH' hex character constants.
4800 These don't provoke an error unfortunately, instead are silently treated
4801 as 'x'. The following induces an error, until -std is added to get
4802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4803 array size at least. It's necessary to write '\x00'==0 to get something
4804 that's true only with -std. */
4805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4808 inside strings and character constants. */
4810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4812 int test (int i, double x);
4813 struct s1 {int (*f) (int a);};
4814 struct s2 {int (*f) (double a);};
4815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4829 CC="$ac_save_CC $ac_arg"
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_c89=$ac_arg
4833 rm -f core conftest.err conftest.$ac_objext
4834 test "x$ac_cv_prog_cc_c89" != "xno" && break
4836 rm -f conftest.$ac_ext
4841 case "x$ac_cv_prog_cc_c89" in
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; } ;;
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847 $as_echo "unsupported" >&6; } ;;
4849 CC="$CC $ac_cv_prog_cc_c89"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4853 if test "x$ac_cv_prog_cc_c89" != xno; then :
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 ac_cpp='$CXXCPP $CPPFLAGS'
4865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868 if test -z "$CXX"; then
4869 if test -n "$CCC"; then
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_CXX+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -n "$CXX"; then
4883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 if test -n "$CXX"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4905 $as_echo "$CXX" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$CXX" && break
4915 if test -z "$CXX"; then
4917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$ac_ct_CXX"; then
4927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_CXX="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4947 if test -n "$ac_ct_CXX"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4949 $as_echo "$ac_ct_CXX" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$ac_ct_CXX" && break
4959 if test "x$ac_ct_CXX" = x; then
4962 case $cross_compiling:$ac_tool_warned in
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4974 # Provide some information about the compiler.
4975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4978 for ac_option in --version -v -V -qversion; do
4979 { { ac_try="$ac_compiler $ac_option >&5"
4981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4982 *) ac_try_echo
=$ac_try;;
4984 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4988 if test -s conftest.err
; then
4990 ... rest of stderr output deleted ...
4991 10q' conftest.err
>conftest.er1
4992 cat conftest.er1
>&5
4994 rm -f conftest.er1 conftest.err
4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5001 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5002 $as_echo_n "(cached) " >&6
5004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5018 if ac_fn_cxx_try_compile
"$LINENO"; then :
5023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5024 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5029 if test $ac_compiler_gnu = yes; then
5034 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5035 ac_save_CXXFLAGS
=$CXXFLAGS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5038 if ${ac_cv_prog_cxx_g+:} false
; then :
5039 $as_echo_n "(cached) " >&6
5041 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5042 ac_cxx_werror_flag
=yes
5045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5056 if ac_fn_cxx_try_compile
"$LINENO"; then :
5057 ac_cv_prog_cxx_g
=yes
5060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5071 if ac_fn_cxx_try_compile
"$LINENO"; then :
5074 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5087 if ac_fn_cxx_try_compile
"$LINENO"; then :
5088 ac_cv_prog_cxx_g
=yes
5090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5095 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5099 if test "$ac_test_CXXFLAGS" = set; then
5100 CXXFLAGS
=$ac_save_CXXFLAGS
5101 elif test $ac_cv_prog_cxx_g = yes; then
5102 if test "$GXX" = yes; then
5108 if test "$GXX" = yes; then
5115 ac_cpp
='$CPP $CPPFLAGS'
5116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5125 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_GNATBIND+:} false
; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -n "$GNATBIND"; then
5132 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir
=.
5139 for ac_exec_ext
in '' $ac_executable_extensions; do
5140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 GNATBIND
=$ac_cv_prog_GNATBIND
5152 if test -n "$GNATBIND"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5154 $as_echo "$GNATBIND" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_GNATBIND"; then
5163 ac_ct_GNATBIND
=$GNATBIND
5164 # Extract the first word of "gnatbind", so it can be a program name with args.
5165 set dummy gnatbind
; ac_word
=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$ac_ct_GNATBIND"; then
5172 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_exec_ext
in '' $ac_executable_extensions; do
5180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5192 if test -n "$ac_ct_GNATBIND"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5194 $as_echo "$ac_ct_GNATBIND" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_GNATBIND" = x
; then
5203 case $cross_compiling:$ac_tool_warned in
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned
=yes ;;
5209 GNATBIND
=$ac_ct_GNATBIND
5212 GNATBIND
="$ac_cv_prog_GNATBIND"
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5217 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$GNATMAKE"; then
5224 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir
=.
5231 for ac_exec_ext
in '' $ac_executable_extensions; do
5232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 GNATMAKE
=$ac_cv_prog_GNATMAKE
5244 if test -n "$GNATMAKE"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5246 $as_echo "$GNATMAKE" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_GNATMAKE"; then
5255 ac_ct_GNATMAKE
=$GNATMAKE
5256 # Extract the first word of "gnatmake", so it can be a program name with args.
5257 set dummy gnatmake
; ac_word
=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_GNATMAKE"; then
5264 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5284 if test -n "$ac_ct_GNATMAKE"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5286 $as_echo "$ac_ct_GNATMAKE" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_GNATMAKE" = x
; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned
=yes ;;
5301 GNATMAKE
=$ac_ct_GNATMAKE
5304 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5308 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5309 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5310 $as_echo_n "(cached) " >&6
5312 cat >conftest.adb
<<EOF
5313 pragma Warnings (Off);
5315 pragma Warnings (On);
5316 use type System.CRTL.int64;
5317 procedure conftest is begin null; end conftest;
5319 acx_cv_cc_gcc_supports_ada
=no
5320 # There is a bug in old released versions of GCC which causes the
5321 # driver to exit successfully when the appropriate language module
5322 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5323 # Therefore we must check for the error message as well as an
5324 # unsuccessful exit.
5325 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5326 # given a .adb file, but produce no object file. So we must check
5327 # if an object file was really produced to guard against this.
5328 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5329 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5330 acx_cv_cc_gcc_supports_ada
=yes
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5335 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5337 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5347 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_GDC+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$GDC"; then
5354 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir
=.
5361 for ac_exec_ext
in '' $ac_executable_extensions; do
5362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 if test -n "$GDC"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5376 $as_echo "$GDC" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_GDC"; then
5386 # Extract the first word of "gdc", so it can be a program name with args.
5387 set dummy gdc
; ac_word
=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_GDC"; then
5394 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir
=.
5401 for ac_exec_ext
in '' $ac_executable_extensions; do
5402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_GDC
="gdc"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5414 if test -n "$ac_ct_GDC"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5416 $as_echo "$ac_ct_GDC" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_GDC" = x
; then
5425 case $cross_compiling:$ac_tool_warned in
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned
=yes ;;
5434 GDC
="$ac_cv_prog_GDC"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5438 $as_echo_n "checking whether the D compiler works... " >&6; }
5439 if ${acx_cv_d_compiler_works+:} false
; then :
5440 $as_echo_n "(cached) " >&6
5442 cat >conftest.d
<<EOF
5443 module conftest; int main() { return 0; }
5445 acx_cv_d_compiler_works
=no
5446 if test "x$GDC" != xno
; then
5447 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5448 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5449 acx_cv_d_compiler_works
=yes
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5455 $as_echo "$acx_cv_d_compiler_works" >&6; }
5456 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5463 # Do configure tests with the C++ compiler, since that's what we build with.
5465 ac_cpp
='$CXXCPP $CPPFLAGS'
5466 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5471 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5472 # optimizations to be activated explicitly by the toplevel.
5474 */prev-gcc
/xgcc
*) ;;
5475 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5476 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5482 # Determine PICFLAG for target gnatlib.
5488 # PIC is the default on some targets or must not be used.
5490 # For darwin, common symbols are not allowed in MH_DYLIB files
5492 # If we are using a compiler supporting mdynamic-no-pic
5493 # and the option has been tested as safe to add, then cancel
5494 # it here, since the code generated is incompatible with shared
5496 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5497 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5501 # PIC is the default.
5504 # PIC is the default for 64-bit PA HP-UX.
5506 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5508 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5510 i
[34567]86-*-interix[3-9]*)
5511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5512 # Instead, we relocate shared libraries at runtime.
5514 i
[34567]86-*-nto-qnx*)
5515 # QNX uses GNU C++, but need to define -shared option too, otherwise
5517 PICFLAG_FOR_TARGET
='-fPIC -shared'
5519 i
[34567]86-pc-msdosdjgpp*)
5520 # DJGPP does not support shared libraries at all.
5523 # On IA64 HP-UX, PIC is the default but the pic flag
5524 # sets the default TLS model and affects inlining.
5525 PICFLAG_FOR_TARGET
=-fPIC
5528 PICFLAG_FOR_TARGET
=-fpic
5531 # PIC is the default.
5533 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5534 # All AIX code is PIC.
5537 # Some targets support both -fPIC and -fpic, but prefer the latter.
5539 i
[34567]86-*-* | x86_64-
*-*)
5540 PICFLAG_FOR_TARGET
=-fpic
5542 # FIXME: Override -fPIC default in libgcc only?
5543 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5544 PICFLAG_FOR_TARGET
=-fpic
5547 PICFLAG_FOR_TARGET
=-fpic
5549 # Default to -fPIC unless specified otherwise.
5551 PICFLAG_FOR_TARGET
=-fPIC
5555 # If the user explicitly uses -fpic/-fPIC, keep that.
5556 case "${CFLAGS_FOR_TARGET}" in
5558 PICFLAG_FOR_TARGET
=-fpic
5561 PICFLAG_FOR_TARGET
=-fPIC
5567 # -------------------------
5568 # Check C compiler features
5569 # -------------------------
5573 ac_cpp
='$CXXCPP $CPPFLAGS'
5574 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5579 if test -z "$CXXCPP"; then
5580 if ${ac_cv_prog_CXXCPP+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5583 # Double quotes because CXXCPP needs to be expanded
5584 for CXXCPP
in "$CXX -E" "/lib/cpp"
5587 for ac_cxx_preproc_warn_flag
in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5598 # include <limits.h>
5600 # include <assert.h>
5604 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5607 # Broken: fails on valid input.
5610 rm -f conftest.err conftest.i conftest.
$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5618 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5619 # Broken: success on invalid input.
5622 # Passes both tests.
5626 rm -f conftest.err conftest.i conftest.
$ac_ext
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.i conftest.err conftest.
$ac_ext
5631 if $ac_preproc_ok; then :
5636 ac_cv_prog_CXXCPP
=$CXXCPP
5639 CXXCPP
=$ac_cv_prog_CXXCPP
5641 ac_cv_prog_CXXCPP
=$CXXCPP
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5644 $as_echo "$CXXCPP" >&6; }
5646 for ac_cxx_preproc_warn_flag
in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5657 # include <limits.h>
5659 # include <assert.h>
5663 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5666 # Broken: fails on valid input.
5669 rm -f conftest.err conftest.i conftest.
$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5677 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5678 # Broken: success on invalid input.
5681 # Passes both tests.
5685 rm -f conftest.err conftest.i conftest.
$ac_ext
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.i conftest.err conftest.
$ac_ext
5690 if $ac_preproc_ok; then :
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5696 See \`config.log' for more details" "$LINENO" 5; }
5700 ac_cpp
='$CXXCPP $CPPFLAGS'
5701 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5708 if ${ac_cv_path_GREP+:} false
; then :
5709 $as_echo_n "(cached) " >&6
5711 if test -z "$GREP"; then
5712 ac_path_GREP_found
=false
5713 # Loop through the user's path and test for each of PROGNAME-LIST
5714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5715 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5718 test -z "$as_dir" && as_dir
=.
5719 for ac_prog
in grep ggrep
; do
5720 for ac_exec_ext
in '' $ac_executable_extensions; do
5721 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5722 as_fn_executable_p
"$ac_path_GREP" ||
continue
5723 # Check for GNU ac_path_GREP and select it if it is found.
5724 # Check for GNU $ac_path_GREP
5725 case `"$ac_path_GREP" --version 2>&1` in
5727 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5730 $as_echo_n 0123456789 >"conftest.in"
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 $as_echo 'GREP' >> "conftest.nl"
5737 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5738 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5739 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5740 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_GREP
="$ac_path_GREP"
5743 ac_path_GREP_max
=$ac_count
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5748 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5751 $ac_path_GREP_found && break 3
5756 if test -z "$ac_cv_path_GREP"; then
5757 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5760 ac_cv_path_GREP
=$GREP
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5765 $as_echo "$ac_cv_path_GREP" >&6; }
5766 GREP
="$ac_cv_path_GREP"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5770 $as_echo_n "checking for egrep... " >&6; }
5771 if ${ac_cv_path_EGREP+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5775 then ac_cv_path_EGREP
="$GREP -E"
5777 if test -z "$EGREP"; then
5778 ac_path_EGREP_found
=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5781 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5784 test -z "$as_dir" && as_dir
=.
5785 for ac_prog
in egrep; do
5786 for ac_exec_ext
in '' $ac_executable_extensions; do
5787 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5788 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5789 # Check for GNU ac_path_EGREP and select it if it is found.
5790 # Check for GNU $ac_path_EGREP
5791 case `"$ac_path_EGREP" --version 2>&1` in
5793 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5796 $as_echo_n 0123456789 >"conftest.in"
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'EGREP' >> "conftest.nl"
5803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5804 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5805 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_EGREP
="$ac_path_EGREP"
5809 ac_path_EGREP_max
=$ac_count
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5814 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5817 $ac_path_EGREP_found && break 3
5822 if test -z "$ac_cv_path_EGREP"; then
5823 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5826 ac_cv_path_EGREP
=$EGREP
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5832 $as_echo "$ac_cv_path_EGREP" >&6; }
5833 EGREP
="$ac_cv_path_EGREP"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5837 $as_echo_n "checking for ANSI C header files... " >&6; }
5838 if ${ac_cv_header_stdc+:} false
; then :
5839 $as_echo_n "(cached) " >&6
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5856 if ac_fn_cxx_try_compile
"$LINENO"; then :
5857 ac_cv_header_stdc
=yes
5859 ac_cv_header_stdc
=no
5861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 $EGREP "memchr" >/dev
/null
2>&1; then :
5874 ac_cv_header_stdc
=no
5880 if test $ac_cv_header_stdc = yes; then
5881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev
/null
2>&1; then :
5891 ac_cv_header_stdc
=no
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then :
5902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 if ac_fn_cxx_try_run
"$LINENO"; then :
5932 ac_cv_header_stdc
=no
5934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5941 $as_echo "$ac_cv_header_stdc" >&6; }
5942 if test $ac_cv_header_stdc = yes; then
5944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5949 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5950 inttypes.h stdint.h unistd.h
5952 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5955 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5956 cat >>confdefs.h
<<_ACEOF
5957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5966 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5967 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5974 if test "$MINIX" = yes; then
5976 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5979 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5982 $as_echo "#define _MINIX 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5988 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5989 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5990 $as_echo_n "(cached) " >&6
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 # define __EXTENSIONS__ 1
5996 $ac_includes_default
6005 if ac_fn_cxx_try_compile
"$LINENO"; then :
6006 ac_cv_safe_to_define___extensions__
=yes
6008 ac_cv_safe_to_define___extensions__
=no
6010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6013 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6014 test $ac_cv_safe_to_define___extensions__ = yes &&
6015 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6017 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6021 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6023 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6028 ac_cpp
='$CPP $CPPFLAGS'
6029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6034 # On Suns, sometimes $CPP names a directory.
6035 if test -n "$CPP" && test -d "$CPP"; then
6038 if test -z "$CPP"; then
6039 if ${ac_cv_prog_CPP+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 # Double quotes because CPP needs to be expanded
6043 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6046 for ac_c_preproc_warn_flag
in '' yes
6048 # Use a header file that comes with gcc, so configuring glibc
6049 # with a fresh cross-compiler works.
6050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051 # <limits.h> exists even on freestanding compilers.
6052 # On the NeXT, cc -E runs the code through the compiler's parser,
6053 # not just through cpp. "Syntax error" is here to catch this case.
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6057 # include <limits.h>
6059 # include <assert.h>
6063 if ac_fn_c_try_cpp
"$LINENO"; then :
6066 # Broken: fails on valid input.
6069 rm -f conftest.err conftest.i conftest.
$ac_ext
6071 # OK, works on sane cases. Now check whether nonexistent headers
6072 # can be detected and how.
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <ac_nonexistent.h>
6077 if ac_fn_c_try_cpp
"$LINENO"; then :
6078 # Broken: success on invalid input.
6081 # Passes both tests.
6085 rm -f conftest.err conftest.i conftest.
$ac_ext
6088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6089 rm -f conftest.i conftest.err conftest.
$ac_ext
6090 if $ac_preproc_ok; then :
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6103 $as_echo "$CPP" >&6; }
6105 for ac_c_preproc_warn_flag
in '' yes
6107 # Use a header file that comes with gcc, so configuring glibc
6108 # with a fresh cross-compiler works.
6109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110 # <limits.h> exists even on freestanding compilers.
6111 # On the NeXT, cc -E runs the code through the compiler's parser,
6112 # not just through cpp. "Syntax error" is here to catch this case.
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6116 # include <limits.h>
6118 # include <assert.h>
6122 if ac_fn_c_try_cpp
"$LINENO"; then :
6125 # Broken: fails on valid input.
6128 rm -f conftest.err conftest.i conftest.
$ac_ext
6130 # OK, works on sane cases. Now check whether nonexistent headers
6131 # can be detected and how.
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <ac_nonexistent.h>
6136 if ac_fn_c_try_cpp
"$LINENO"; then :
6137 # Broken: success on invalid input.
6140 # Passes both tests.
6144 rm -f conftest.err conftest.i conftest.
$ac_ext
6147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6148 rm -f conftest.i conftest.err conftest.
$ac_ext
6149 if $ac_preproc_ok; then :
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6155 See \`config.log' for more details" "$LINENO" 5; }
6159 ac_cpp
='$CXXCPP $CPPFLAGS'
6160 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6165 $as_echo_n "checking for inline... " >&6; }
6166 if ${ac_cv_c_inline+:} false
; then :
6167 $as_echo_n "(cached) " >&6
6170 for ac_kw
in inline __inline__ __inline
; do
6171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6175 static $ac_kw foo_t static_foo () {return 0; }
6176 $ac_kw foo_t foo () {return 0; }
6180 if ac_fn_cxx_try_compile
"$LINENO"; then :
6181 ac_cv_c_inline
=$ac_kw
6183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6184 test "$ac_cv_c_inline" != no
&& break
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6189 $as_echo "$ac_cv_c_inline" >&6; }
6191 case $ac_cv_c_inline in
6194 case $ac_cv_c_inline in
6196 *) ac_val
=$ac_cv_c_inline;;
6198 cat >>confdefs.h
<<_ACEOF
6200 #define inline $ac_val
6207 # Check whether --enable-largefile was given.
6208 if test "${enable_largefile+set}" = set; then :
6209 enableval
=$enable_largefile;
6212 if test "$enable_largefile" != no
; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6215 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6216 if ${ac_cv_sys_largefile_CC+:} false
; then :
6217 $as_echo_n "(cached) " >&6
6219 ac_cv_sys_largefile_CC
=no
6220 if test "$GCC" != yes; then
6223 # IRIX 6.2 and later do not support large files by default,
6224 # so use the C compiler's -n32 option if that helps.
6225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 #include <sys/types.h>
6228 /* Check that off_t can represent 2**63 - 1 correctly.
6229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6230 since some C++ compilers masquerading as C compilers
6231 incorrectly reject 9223372036854775807. */
6232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6234 && LARGE_OFF_T % 2147483647 == 1)
6244 if ac_fn_cxx_try_compile
"$LINENO"; then :
6247 rm -f core conftest.err conftest.
$ac_objext
6249 if ac_fn_cxx_try_compile
"$LINENO"; then :
6250 ac_cv_sys_largefile_CC
=' -n32'; break
6252 rm -f core conftest.err conftest.
$ac_objext
6256 rm -f conftest.
$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6260 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6261 if test "$ac_cv_sys_largefile_CC" != no
; then
6262 CC
=$CC$ac_cv_sys_largefile_CC
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6266 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6267 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6268 $as_echo_n "(cached) " >&6
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <sys/types.h>
6274 /* Check that off_t can represent 2**63 - 1 correctly.
6275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6276 since some C++ compilers masquerading as C compilers
6277 incorrectly reject 9223372036854775807. */
6278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6280 && LARGE_OFF_T % 2147483647 == 1)
6290 if ac_fn_cxx_try_compile
"$LINENO"; then :
6291 ac_cv_sys_file_offset_bits
=no
; break
6293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #define _FILE_OFFSET_BITS 64
6297 #include <sys/types.h>
6298 /* Check that off_t can represent 2**63 - 1 correctly.
6299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6300 since some C++ compilers masquerading as C compilers
6301 incorrectly reject 9223372036854775807. */
6302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6304 && LARGE_OFF_T % 2147483647 == 1)
6314 if ac_fn_cxx_try_compile
"$LINENO"; then :
6315 ac_cv_sys_file_offset_bits
=64; break
6317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6318 ac_cv_sys_file_offset_bits
=unknown
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6323 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6324 case $ac_cv_sys_file_offset_bits in #(
6327 cat >>confdefs.h
<<_ACEOF
6328 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6333 if test $ac_cv_sys_file_offset_bits = unknown
; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6335 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6336 if ${ac_cv_sys_large_files+:} false
; then :
6337 $as_echo_n "(cached) " >&6
6340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <sys/types.h>
6343 /* Check that off_t can represent 2**63 - 1 correctly.
6344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6345 since some C++ compilers masquerading as C compilers
6346 incorrectly reject 9223372036854775807. */
6347 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6349 && LARGE_OFF_T % 2147483647 == 1)
6359 if ac_fn_cxx_try_compile
"$LINENO"; then :
6360 ac_cv_sys_large_files
=no
; break
6362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #define _LARGE_FILES 1
6366 #include <sys/types.h>
6367 /* Check that off_t can represent 2**63 - 1 correctly.
6368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6369 since some C++ compilers masquerading as C compilers
6370 incorrectly reject 9223372036854775807. */
6371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6373 && LARGE_OFF_T % 2147483647 == 1)
6383 if ac_fn_cxx_try_compile
"$LINENO"; then :
6384 ac_cv_sys_large_files
=1; break
6386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6387 ac_cv_sys_large_files
=unknown
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6392 $as_echo "$ac_cv_sys_large_files" >&6; }
6393 case $ac_cv_sys_large_files in #(
6396 cat >>confdefs.h
<<_ACEOF
6397 #define _LARGE_FILES $ac_cv_sys_large_files
6407 # The cast to long int works around a bug in the HP C Compiler
6408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410 # This bug is HP SR number 8606223364.
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6412 $as_echo_n "checking size of ino_t... " >&6; }
6413 if ${ac_cv_sizeof_ino_t+:} false
; then :
6414 $as_echo_n "(cached) " >&6
6416 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6419 if test "$ac_cv_type_ino_t" = yes; then
6420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 as_fn_error
77 "cannot compute sizeof (ino_t)
6423 See \`config.log' for more details" "$LINENO" 5; }
6425 ac_cv_sizeof_ino_t
=0
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6431 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6435 cat >>confdefs.h
<<_ACEOF
6436 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6440 # The cast to long int works around a bug in the HP C Compiler
6441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6443 # This bug is HP SR number 8606223364.
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6445 $as_echo_n "checking size of dev_t... " >&6; }
6446 if ${ac_cv_sizeof_dev_t+:} false
; then :
6447 $as_echo_n "(cached) " >&6
6449 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6452 if test "$ac_cv_type_dev_t" = yes; then
6453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455 as_fn_error
77 "cannot compute sizeof (dev_t)
6456 See \`config.log' for more details" "$LINENO" 5; }
6458 ac_cv_sizeof_dev_t
=0
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6464 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6468 cat >>confdefs.h
<<_ACEOF
6469 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6474 # Select the right stat being able to handle 64bit inodes, if needed.
6475 if test "$enable_largefile" != no
; then
6476 case "$host, $build" in
6477 *-*-aix*,*|
*,*-*-aix*)
6478 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6480 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6487 # sizeof(char) is 1 by definition.
6488 # The cast to long int works around a bug in the HP C Compiler
6489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6491 # This bug is HP SR number 8606223364.
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6493 $as_echo_n "checking size of void *... " >&6; }
6494 if ${ac_cv_sizeof_void_p+:} false
; then :
6495 $as_echo_n "(cached) " >&6
6497 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6500 if test "$ac_cv_type_void_p" = yes; then
6501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503 as_fn_error
77 "cannot compute sizeof (void *)
6504 See \`config.log' for more details" "$LINENO" 5; }
6506 ac_cv_sizeof_void_p
=0
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6512 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6516 cat >>confdefs.h
<<_ACEOF
6517 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6521 # The cast to long int works around a bug in the HP C Compiler
6522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6524 # This bug is HP SR number 8606223364.
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6526 $as_echo_n "checking size of short... " >&6; }
6527 if ${ac_cv_sizeof_short+:} false
; then :
6528 $as_echo_n "(cached) " >&6
6530 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6533 if test "$ac_cv_type_short" = yes; then
6534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6536 as_fn_error
77 "cannot compute sizeof (short)
6537 See \`config.log' for more details" "$LINENO" 5; }
6539 ac_cv_sizeof_short
=0
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6545 $as_echo "$ac_cv_sizeof_short" >&6; }
6549 cat >>confdefs.h
<<_ACEOF
6550 #define SIZEOF_SHORT $ac_cv_sizeof_short
6554 # The cast to long int works around a bug in the HP C Compiler
6555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6557 # This bug is HP SR number 8606223364.
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6559 $as_echo_n "checking size of int... " >&6; }
6560 if ${ac_cv_sizeof_int+:} false
; then :
6561 $as_echo_n "(cached) " >&6
6563 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6566 if test "$ac_cv_type_int" = yes; then
6567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6569 as_fn_error
77 "cannot compute sizeof (int)
6570 See \`config.log' for more details" "$LINENO" 5; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6578 $as_echo "$ac_cv_sizeof_int" >&6; }
6582 cat >>confdefs.h
<<_ACEOF
6583 #define SIZEOF_INT $ac_cv_sizeof_int
6587 # The cast to long int works around a bug in the HP C Compiler
6588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6590 # This bug is HP SR number 8606223364.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6592 $as_echo_n "checking size of long... " >&6; }
6593 if ${ac_cv_sizeof_long+:} false
; then :
6594 $as_echo_n "(cached) " >&6
6596 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6599 if test "$ac_cv_type_long" = yes; then
6600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6602 as_fn_error
77 "cannot compute sizeof (long)
6603 See \`config.log' for more details" "$LINENO" 5; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6611 $as_echo "$ac_cv_sizeof_long" >&6; }
6615 cat >>confdefs.h
<<_ACEOF
6616 #define SIZEOF_LONG $ac_cv_sizeof_long
6620 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6621 if test "x$ac_cv_type_long_long" = xyes
; then :
6623 cat >>confdefs.h
<<_ACEOF
6624 #define HAVE_LONG_LONG 1
6627 # The cast to long int works around a bug in the HP C Compiler
6628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6630 # This bug is HP SR number 8606223364.
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6632 $as_echo_n "checking size of long long... " >&6; }
6633 if ${ac_cv_sizeof_long_long+:} false
; then :
6634 $as_echo_n "(cached) " >&6
6636 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6639 if test "$ac_cv_type_long_long" = yes; then
6640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6642 as_fn_error
77 "cannot compute sizeof (long long)
6643 See \`config.log' for more details" "$LINENO" 5; }
6645 ac_cv_sizeof_long_long
=0
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6651 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6655 cat >>confdefs.h
<<_ACEOF
6656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6662 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6663 case $ac_cv_c_int8_t in #(
6667 cat >>confdefs.h
<<_ACEOF
6668 #define int8_t $ac_cv_c_int8_t
6673 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6674 case $ac_cv_c_int16_t in #(
6678 cat >>confdefs.h
<<_ACEOF
6679 #define int16_t $ac_cv_c_int16_t
6684 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6685 case $ac_cv_c_int32_t in #(
6689 cat >>confdefs.h
<<_ACEOF
6690 #define int32_t $ac_cv_c_int32_t
6695 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6696 case $ac_cv_c_int64_t in #(
6700 cat >>confdefs.h
<<_ACEOF
6701 #define int64_t $ac_cv_c_int64_t
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6708 $as_echo_n "checking for unsigned long long int... " >&6; }
6709 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6710 $as_echo_n "(cached) " >&6
6712 ac_cv_type_unsigned_long_long_int
=yes
6713 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 /* For now, do not test the preprocessor; as of 2007 there are too many
6718 implementations with broken preprocessors. Perhaps this can
6719 be revisited in 2012. In the meantime, code should not expect
6720 #if to work with literals wider than 32 bits. */
6721 /* Test literals. */
6722 long long int ll = 9223372036854775807ll;
6723 long long int nll = -9223372036854775807LL;
6724 unsigned long long int ull = 18446744073709551615ULL;
6725 /* Test constant expressions. */
6726 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6728 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6734 /* Test availability of runtime routines for shift and division. */
6735 long long int llmax = 9223372036854775807ll;
6736 unsigned long long int ullmax = 18446744073709551615ull;
6737 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6738 | (llmax / ll) | (llmax % ll)
6739 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6740 | (ullmax / ull) | (ullmax % ull));
6746 if ac_fn_cxx_try_link
"$LINENO"; then :
6749 ac_cv_type_unsigned_long_long_int
=no
6751 rm -f core conftest.err conftest.
$ac_objext \
6752 conftest
$ac_exeext conftest.
$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6756 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6757 if test $ac_cv_type_unsigned_long_long_int = yes; then
6759 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6766 $as_echo_n "checking for long long int... " >&6; }
6767 if ${ac_cv_type_long_long_int+:} false
; then :
6768 $as_echo_n "(cached) " >&6
6770 ac_cv_type_long_long_int
=yes
6771 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6772 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6773 if test $ac_cv_type_long_long_int = yes; then
6774 if test "$cross_compiling" = yes; then :
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6782 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6783 # define LLONG_MAX (HALF - 1 + HALF)
6788 long long int n = 1;
6792 long long int m = n << i;
6795 if (LLONG_MAX / 2 < m)
6803 if ac_fn_cxx_try_run
"$LINENO"; then :
6806 ac_cv_type_long_long_int
=no
6808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6816 $as_echo "$ac_cv_type_long_long_int" >&6; }
6817 if test $ac_cv_type_long_long_int = yes; then
6819 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6825 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6828 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6831 test $ac_cv_type_long_long_int = yes \
6832 && ac_type
='long long int' \
6833 || ac_type
='long int'
6835 cat >>confdefs.h
<<_ACEOF
6836 #define intmax_t $ac_type
6843 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6844 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6846 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6849 for ac_type
in 'int' 'long int' 'long long int'; do
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 $ac_includes_default
6856 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6858 return test_array [0];
6864 if ac_fn_cxx_try_compile
"$LINENO"; then :
6866 cat >>confdefs.h
<<_ACEOF
6867 #define intptr_t $ac_type
6872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 test -z "$ac_type" && break
6878 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6879 case $ac_cv_c_uint8_t in #(
6883 $as_echo "#define _UINT8_T 1" >>confdefs.h
6886 cat >>confdefs.h
<<_ACEOF
6887 #define uint8_t $ac_cv_c_uint8_t
6892 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6893 case $ac_cv_c_uint16_t in #(
6898 cat >>confdefs.h
<<_ACEOF
6899 #define uint16_t $ac_cv_c_uint16_t
6904 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6905 case $ac_cv_c_uint32_t in #(
6909 $as_echo "#define _UINT32_T 1" >>confdefs.h
6912 cat >>confdefs.h
<<_ACEOF
6913 #define uint32_t $ac_cv_c_uint32_t
6918 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6919 case $ac_cv_c_uint64_t in #(
6923 $as_echo "#define _UINT64_T 1" >>confdefs.h
6926 cat >>confdefs.h
<<_ACEOF
6927 #define uint64_t $ac_cv_c_uint64_t
6934 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6935 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6937 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6940 test $ac_cv_type_unsigned_long_long_int = yes \
6941 && ac_type
='unsigned long long int' \
6942 || ac_type
='unsigned long int'
6944 cat >>confdefs.h
<<_ACEOF
6945 #define uintmax_t $ac_type
6952 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6953 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6955 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6958 for ac_type
in 'unsigned int' 'unsigned long int' \
6959 'unsigned long long int'; do
6960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 $ac_includes_default
6966 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6968 return test_array [0];
6974 if ac_fn_cxx_try_compile
"$LINENO"; then :
6976 cat >>confdefs.h
<<_ACEOF
6977 #define uintptr_t $ac_type
6982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 test -z "$ac_type" && break
7000 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
7001 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
7004 # check what underlying integer type int64_t uses
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7006 $as_echo_n "checking for int64_t underlying type... " >&6; }
7007 if ${ac_cv_int64_t_type+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 #ifdef HAVE_STDINT_H
7017 template <typename T> struct X { };
7019 struct X<long> { typedef long t; };
7029 if ac_fn_cxx_try_compile
"$LINENO"; then :
7030 ac_cv_int64_t_type
=long
7032 ac_cv_int64_t_type
="long long"
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7037 $as_echo "$ac_cv_int64_t_type" >&6; }
7038 if test "$ac_cv_int64_t_type" = "long"; then
7040 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #ifdef HAVE_STDINT_H
7049 template <typename T> struct X { };
7051 struct X<long long> { typedef long long t; };
7061 if ac_fn_cxx_try_compile
"$LINENO"; then :
7064 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7070 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7071 if ${ac_cv_std_swap_in_utility+:} false
; then :
7072 $as_echo_n "(cached) " >&6
7075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7083 int a, b; std::swap(a,b);
7088 if ac_fn_cxx_try_compile
"$LINENO"; then :
7089 ac_cv_std_swap_in_utility
=yes
7091 ac_cv_std_swap_in_utility
=no
7093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7096 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7097 if test $ac_cv_std_swap_in_utility = yes; then
7099 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7103 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7104 # If the host compiler is affected by the bug, and we build with optimization
7105 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7106 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7107 # Since there is no reliable feature check for the presence of this bug,
7108 # we simply use a GCC version number check. (This should never trigger for
7109 # stages 2 or 3 of a native bootstrap.)
7111 if test "$GCC" = yes; then
7112 saved_CXXFLAGS
="$CXXFLAGS"
7114 # The following test compilation will succeed if and only if $CXX accepts
7115 # -fno-strict-aliasing *and* is older than GCC 4.3.
7116 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7118 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7122 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7123 #error compiler not affected by placement new aliasing bug
7127 if ac_fn_cxx_try_compile
"$LINENO"; then :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7129 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7136 CXXFLAGS
="$saved_CXXFLAGS"
7142 # ---------------------
7143 # Warnings and checking
7144 # ---------------------
7146 # Check $CC warning features (if it's GCC).
7147 # We want to use -pedantic, but we don't want warnings about
7150 # * overlong strings
7151 # * C++11 narrowing conversions in { }
7152 # So, we only use -pedantic if we can disable those warnings.
7154 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7155 # Check whether --enable-build-format-warnings was given.
7156 if test "${enable_build_format_warnings+set}" = set; then :
7157 enableval
=$enable_build_format_warnings;
7159 enable_build_format_warnings
=yes
7162 if test $enable_build_format_warnings = no
; then :
7168 ac_cpp
='$CXXCPP $CPPFLAGS'
7169 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7174 save_CXXFLAGS
="$CXXFLAGS"
7175 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7176 # Do the check with the no- prefix removed since gcc silently
7177 # accepts any -Wno-* option on purpose
7178 case $real_option in
7179 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7180 *) option
=$real_option ;;
7182 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7185 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7186 if eval \
${$as_acx_Woption+:} false
; then :
7187 $as_echo_n "(cached) " >&6
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7201 if ac_fn_cxx_try_compile
"$LINENO"; then :
7202 eval "$as_acx_Woption=yes"
7204 eval "$as_acx_Woption=no"
7206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7209 eval ac_res
=\$
$as_acx_Woption
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7213 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7216 CXXFLAGS
="$save_CXXFLAGS"
7218 ac_cpp
='$CXXCPP $CPPFLAGS'
7219 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7226 ac_cpp
='$CPP $CPPFLAGS'
7227 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7232 save_CFLAGS
="$CFLAGS"
7233 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7234 # Do the check with the no- prefix removed since gcc silently
7235 # accepts any -Wno-* option on purpose
7236 case $real_option in
7237 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7238 *) option
=$real_option ;;
7240 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7243 $as_echo_n "checking whether $CC supports $option... " >&6; }
7244 if eval \
${$as_acx_Woption+:} false
; then :
7245 $as_echo_n "(cached) " >&6
7248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7259 if ac_fn_c_try_compile
"$LINENO"; then :
7260 eval "$as_acx_Woption=yes"
7262 eval "$as_acx_Woption=no"
7264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7267 eval ac_res
=\$
$as_acx_Woption
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7269 $as_echo "$ac_res" >&6; }
7270 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7271 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7274 CFLAGS
="$save_CFLAGS"
7276 ac_cpp
='$CXXCPP $CPPFLAGS'
7277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7283 ac_cpp
='$CXXCPP $CPPFLAGS'
7284 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7289 save_CXXFLAGS
="$CXXFLAGS"
7290 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7291 # Do the check with the no- prefix removed since gcc silently
7292 # accepts any -Wno-* option on purpose
7293 case $real_option in
7294 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7295 *) option
=$real_option ;;
7297 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7300 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7301 if eval \
${$as_acx_Woption+:} false
; then :
7302 $as_echo_n "(cached) " >&6
7305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7316 if ac_fn_cxx_try_compile
"$LINENO"; then :
7317 eval "$as_acx_Woption=yes"
7319 eval "$as_acx_Woption=no"
7321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 eval ac_res
=\$
$as_acx_Woption
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7328 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7331 CXXFLAGS
="$save_CXXFLAGS"
7333 ac_cpp
='$CXXCPP $CPPFLAGS'
7334 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7340 ac_cpp
='$CPP $CPPFLAGS'
7341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7346 save_CFLAGS
="$CFLAGS"
7347 for real_option
in -Wold-style-definition -Wc++-compat; do
7348 # Do the check with the no- prefix removed since gcc silently
7349 # accepts any -Wno-* option on purpose
7350 case $real_option in
7351 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7352 *) option
=$real_option ;;
7354 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7357 $as_echo_n "checking whether $CC supports $option... " >&6; }
7358 if eval \
${$as_acx_Woption+:} false
; then :
7359 $as_echo_n "(cached) " >&6
7362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7373 if ac_fn_c_try_compile
"$LINENO"; then :
7374 eval "$as_acx_Woption=yes"
7376 eval "$as_acx_Woption=no"
7378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7381 eval ac_res
=\$
$as_acx_Woption
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7383 $as_echo "$ac_res" >&6; }
7384 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7385 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7388 CFLAGS
="$save_CFLAGS"
7390 ac_cpp
='$CXXCPP $CPPFLAGS'
7391 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7397 ac_cpp
='$CXXCPP $CPPFLAGS'
7398 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7402 # Do the check with the no- prefix removed from the warning options
7403 # since gcc silently accepts any -Wno-* option on purpose
7404 if test "$GXX" = yes; then :
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7406 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7407 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7408 $as_echo_n "(cached) " >&6
7410 save_CXXFLAGS
="$CXXFLAGS"
7411 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7423 if ac_fn_cxx_try_compile
"$LINENO"; then :
7424 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7426 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7429 CXXFLAGS
="$save_CXXFLAGS"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7432 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7433 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7434 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7439 ac_cpp
='$CXXCPP $CPPFLAGS'
7440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7446 ac_cpp
='$CXXCPP $CPPFLAGS'
7447 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7451 # Check whether --enable-werror-always was given.
7452 if test "${enable_werror_always+set}" = set; then :
7453 enableval
=$enable_werror_always;
7455 enable_werror_always
=no
7458 if test $enable_werror_always = yes; then :
7459 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7463 ac_cpp
='$CXXCPP $CPPFLAGS'
7464 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7470 # The above macros do nothing if the compiler is not GCC. However, the
7471 # Makefile has more goo to add other flags, so these variables are used
7472 # to enable warnings only for GCC.
7475 if test "x$GCC" = "xyes"; then
7476 warn_cflags
='$(GCC_WARN_CFLAGS)'
7477 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7482 # Disable exceptions and RTTI if building with g++
7484 ac_cpp
='$CPP $CPPFLAGS'
7485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7490 save_CFLAGS
="$CFLAGS"
7491 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7492 # Do the check with the no- prefix removed since gcc silently
7493 # accepts any -Wno-* option on purpose
7494 case $real_option in
7495 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7496 *) option
=$real_option ;;
7498 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7501 $as_echo_n "checking whether $CC supports $option... " >&6; }
7502 if eval \
${$as_acx_Woption+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7517 if ac_fn_c_try_compile
"$LINENO"; then :
7518 eval "$as_acx_Woption=yes"
7520 eval "$as_acx_Woption=no"
7522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 eval ac_res
=\$
$as_acx_Woption
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7527 $as_echo "$ac_res" >&6; }
7528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7529 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7532 CFLAGS
="$save_CFLAGS"
7534 ac_cpp
='$CXXCPP $CPPFLAGS'
7535 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7541 # Enable expensive internal checks
7543 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7547 # Check whether --enable-checking was given.
7548 if test "${enable_checking+set}" = set; then :
7549 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7552 # Determine the default checks.
7553 if test x
$is_release = x
; then
7554 ac_checking_flags
=yes,extra
7556 ac_checking_flags
=release
7560 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7561 for check
in release
$ac_checking_flags
7564 # these set all the flags to specific states
7565 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7566 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7567 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7568 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7569 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7570 ac_types_checking
=1 ;;
7571 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7572 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7573 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7574 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7575 ac_tree_checking
= ; ac_valgrind_checking
= ;
7576 ac_types_checking
= ;;
7577 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7578 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7579 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7580 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7581 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7582 ac_types_checking
=1 ;;
7583 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7584 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7585 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7586 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7587 ac_tree_checking
= ; ac_valgrind_checking
= ;
7588 ac_types_checking
= ;;
7589 # these enable particular checks
7590 assert
) ac_assert_checking
=1 ;;
7591 df
) ac_df_checking
=1 ;;
7592 extra
) ac_extra_checking
=1 ;;
7593 fold) ac_fold_checking
=1 ;;
7594 gc
) ac_gc_checking
=1 ;;
7595 gcac
) ac_gc_always_collect
=1 ;;
7596 gimple
) ac_gimple_checking
=1 ;;
7597 misc
) ac_checking
=1 ;;
7598 rtl
) ac_rtl_checking
=1 ;;
7599 rtlflag
) ac_rtlflag_checking
=1 ;;
7600 runtime
) ac_runtime_checking
=1 ;;
7601 tree
) ac_tree_checking
=1 ;;
7602 types
) ac_types_checking
=1 ;;
7603 valgrind
) ac_valgrind_checking
=1 ;;
7604 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7610 if test x
$ac_checking != x
; then
7612 $as_echo "#define CHECKING_P 1" >>confdefs.h
7614 nocommon_flag
=-fno-common
7616 $as_echo "#define CHECKING_P 0" >>confdefs.h
7620 if test x
$ac_extra_checking != x
; then
7622 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7625 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7628 if test x
$ac_df_checking != x
; then
7630 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7633 if test x
$ac_assert_checking != x
; then
7635 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7638 if test x
$ac_gimple_checking != x
; then
7640 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7644 if test x
$ac_runtime_checking != x
; then
7646 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7649 if test x
$ac_tree_checking != x
; then
7651 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7655 if test x
$ac_types_checking != x
; then
7657 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7661 if test x
$ac_rtl_checking != x
; then
7663 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7666 if test x
$ac_rtlflag_checking != x
; then
7668 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7671 if test x
$ac_gc_checking != x
; then
7673 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7676 if test x
$ac_gc_always_collect != x
; then
7678 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7681 if test x
$ac_fold_checking != x
; then
7683 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7686 valgrind_path_defines
=
7689 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7690 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7698 # It is certainly possible that there's valgrind but no valgrind.h.
7699 # GCC relies on making annotations so we must have both.
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7701 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <valgrind/memcheck.h>
7705 #ifndef VALGRIND_DISCARD
7706 #error VALGRIND_DISCARD not defined
7709 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7710 gcc_cv_header_valgrind_memcheck_h
=yes
7712 gcc_cv_header_valgrind_memcheck_h
=no
7714 rm -f conftest.err conftest.i conftest.
$ac_ext
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7716 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7718 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <memcheck.h>
7722 #ifndef VALGRIND_DISCARD
7723 #error VALGRIND_DISCARD not defined
7726 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7727 gcc_cv_header_memcheck_h
=yes
7729 gcc_cv_header_memcheck_h
=no
7731 rm -f conftest.err conftest.i conftest.
$ac_ext
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7733 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7734 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7736 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7739 if test $gcc_cv_header_memcheck_h = yes; then
7741 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7745 if test x
$ac_valgrind_checking != x
; then
7747 # Prepare PATH_SEPARATOR.
7748 # The user is always right.
7749 if test "${PATH_SEPARATOR+set}" != set; then
7750 echo "#! /bin/sh" >conf$$.sh
7751 echo "exit 0" >>conf$$.sh
7753 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7761 # Find out how to test for executable files. Don't use a zero-byte file,
7762 # as systems may use methods other than mode bits to determine executability.
7763 cat >conf$$.
file <<_ASEOF
7767 chmod +x conf$$.
file
7768 if test -x conf$$.
file >/dev
/null
2>&1; then
7769 ac_executable_p
="test -x"
7771 ac_executable_p
="test -f"
7775 # Extract the first word of "valgrind", so it can be a program name with args.
7776 set dummy valgrind
; ac_word
=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_path_valgrind_path+:} false
; then :
7780 $as_echo_n "(cached) " >&6
7782 case "$valgrind_path" in
7784 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7787 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7788 for ac_dir
in $PATH; do
7790 test -z "$ac_dir" && ac_dir
=.
7791 for ac_exec_ext
in '' $ac_executable_extensions; do
7792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7793 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7794 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7804 valgrind_path
="$ac_cv_path_valgrind_path"
7805 if test -n "$valgrind_path"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7807 $as_echo "$valgrind_path" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7813 if test "x$valgrind_path" = "x" \
7814 ||
(test $have_valgrind_h = no \
7815 && test $gcc_cv_header_memcheck_h = no \
7816 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7817 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7819 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7820 valgrind_command
="$valgrind_path -q"
7822 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7828 # Enable code coverage collection
7829 # Check whether --enable-coverage was given.
7830 if test "${enable_coverage+set}" = set; then :
7831 enableval
=$enable_coverage; case "${enableval}" in
7833 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7836 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7839 # a.k.a. --disable-coverage
7843 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7852 # Check whether --enable-gather-detailed-mem-stats was given.
7853 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7854 enableval
=$enable_gather_detailed_mem_stats;
7856 enable_gather_detailed_mem_stats
=no
7859 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7861 cat >>confdefs.h
<<_ACEOF
7862 #define GATHER_STATISTICS $gather_stats
7866 # Check whether --enable-valgrind-annotations was given.
7867 if test "${enable_valgrind_annotations+set}" = set; then :
7868 enableval
=$enable_valgrind_annotations;
7870 enable_valgrind_annotations
=no
7873 if test x
$enable_valgrind_annotations != xno \
7874 ||
test x
$ac_valgrind_checking != x
; then
7875 if (test $have_valgrind_h = no \
7876 && test $gcc_cv_header_memcheck_h = no \
7877 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7878 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7881 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7885 # -------------------------------
7886 # Miscenalleous configure options
7887 # -------------------------------
7889 # Determine whether or not multilibs are enabled.
7890 # Check whether --enable-multilib was given.
7891 if test "${enable_multilib+set}" = set; then :
7892 enableval
=$enable_multilib;
7899 # Determine whether or not multiarch is enabled.
7900 # Check whether --enable-multiarch was given.
7901 if test "${enable_multiarch+set}" = set; then :
7902 enableval
=$enable_multiarch; case "${enableval}" in
7903 yes|no|auto
) enable_multiarch
=$enableval;;
7904 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7907 enable_multiarch
=auto
7910 if test x
${enable_multiarch} = xauto
; then
7911 if test x
${with_native_system_header_dir} != x
; then
7912 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7915 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7916 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7920 if test x
${enable_multiarch} = xyes
; then
7922 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7926 $as_echo_n "checking for multiarch configuration... " >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7929 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7931 # needed for setting the multiarch name for soft-float/hard-float ABIs
7935 # default stack clash protection guard size as power of twos in bytes.
7936 # Please keep these in sync with params.def.
7940 # Keep the default value when the option is not used to 0, this allows us to
7941 # distinguish between the cases where the user specifially set a value via
7942 # configure and when the normal default value is used.
7944 # Check whether --with-stack-clash-protection-guard-size was given.
7945 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7946 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7948 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7951 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7952 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7953 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7954 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
7958 cat >>confdefs.h
<<_ACEOF
7959 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7963 # Specify the number of splits of match.pd to generate.
7965 # Check whether --with-matchpd-partitions was given.
7966 if test "${with_matchpd_partitions+set}" = set; then :
7967 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7969 DEFAULT_MATCHPD_PARTITIONS
=10
7972 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7973 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7978 # Specify the number of splits of insn-emit.cc to generate.
7980 # Check whether --with-insnemit-partitions was given.
7981 if test "${with_insnemit_partitions+set}" = set; then :
7982 withval
=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS
="$with_insnemit_partitions"
7984 DEFAULT_INSNEMIT_PARTITIONS
=10
7987 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7988 as_fn_error $?
"Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7993 # Enable __cxa_atexit for C++.
7994 # Check whether --enable-__cxa_atexit was given.
7995 if test "${enable___cxa_atexit+set}" = set; then :
7996 enableval
=$enable___cxa_atexit;
8000 # Enable C extension for decimal float if target supports it.
8002 # Check whether --enable-decimal-float was given.
8003 if test "${enable_decimal_float+set}" = set; then :
8004 enableval
=$enable_decimal_float;
8005 case $enable_decimal_float in
8006 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
8007 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
8008 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
8015 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
8016 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
8017 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
8018 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
8019 enable_decimal_float
=yes
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8023 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8024 enable_decimal_float
=no
8031 # x86's use BID format instead of DPD
8032 case x
$enable_decimal_float in
8035 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
8036 enable_decimal_float
=bid
8039 enable_decimal_float
=dpd
8042 default_decimal_float
=$enable_decimal_float
8045 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8046 # dependency on libdecnumber.
8047 default_decimal_float
=dpd
8054 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8056 cat >>confdefs.h
<<_ACEOF
8057 #define ENABLE_DECIMAL_FLOAT $dfp
8061 # Use default_decimal_float for dependency.
8062 enable_decimal_float
=$default_decimal_float
8064 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8066 cat >>confdefs.h
<<_ACEOF
8067 #define ENABLE_DECIMAL_BID_FORMAT $bid
8071 # Enable C extension for fixed-point arithmetic.
8072 # Check whether --enable-fixed-point was given.
8073 if test "${enable_fixed_point+set}" = set; then :
8074 enableval
=$enable_fixed_point;
8079 enable_fixed_point
=yes
8083 enable_fixed_point
=yes
8086 enable_fixed_point
=yes
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8090 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8091 enable_fixed_point
=no
8099 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8101 cat >>confdefs.h
<<_ACEOF
8102 #define ENABLE_FIXED_POINT $fixedpoint
8107 # Pass with no value to take the default
8108 # Pass with a value to specify a thread package
8109 # Check whether --enable-threads was given.
8110 if test "${enable_threads+set}" = set; then :
8111 enableval
=$enable_threads;
8117 # Check whether --enable-tls was given.
8118 if test "${enable_tls+set}" = set; then :
8119 enableval
=$enable_tls;
8122 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8123 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8131 # Check whether --enable-vtable-verify was given.
8132 if test "${enable_vtable_verify+set}" = set; then :
8133 enableval
=$enable_vtable_verify;
8135 enable_vtable_verify
=no
8138 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8140 cat >>confdefs.h
<<_ACEOF
8141 #define ENABLE_VTABLE_VERIFY $vtable_verify
8145 # Check whether --enable-analyzer was given.
8146 if test "${enable_analyzer+set}" = set; then :
8147 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8157 cat >>confdefs.h
<<_ACEOF
8158 #define ENABLE_ANALYZER $analyzer
8162 # Check whether --enable-objc-gc was given.
8163 if test "${enable_objc_gc+set}" = set; then :
8164 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8175 # Check whether --with-dwarf2 was given.
8176 if test "${with_dwarf2+set}" = set; then :
8177 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8183 # Check whether --enable-shared was given.
8184 if test "${enable_shared+set}" = set; then :
8185 enableval
=$enable_shared;
8186 case $enable_shared in
8190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8191 for pkg
in $enableval; do
8192 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8206 # Check whether --enable-gcov was given.
8207 if test "${enable_gcov+set}" = set; then :
8208 enableval
=$enable_gcov;
8224 # Check whether --with-specs was given.
8225 if test "${with_specs+set}" = set; then :
8226 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8236 # Check whether --with-pkgversion was given.
8237 if test "${with_pkgversion+set}" = set; then :
8238 withval
=$with_pkgversion; case "$withval" in
8239 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8241 *) PKGVERSION
="($withval) " ;;
8252 # Check whether --with-bugurl was given.
8253 if test "${with_bugurl+set}" = set; then :
8254 withval
=$with_bugurl; case "$withval" in
8255 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8258 *) BUGURL
="$withval"
8262 BUGURL
="https://gcc.gnu.org/bugs/"
8272 REPORT_BUGS_TO
="<$BUGURL>"
8273 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8280 # Allow overriding the default URL for documentation
8282 # Check whether --with-documentation-root-url was given.
8283 if test "${with_documentation_root_url+set}" = set; then :
8284 withval
=$with_documentation_root_url; case "$withval" in
8285 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8286 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8287 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8288 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8291 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8296 cat >>confdefs.h
<<_ACEOF
8297 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8301 # Allow overriding the default URL for GCC changes
8303 # Check whether --with-changes-root-url was given.
8304 if test "${with_changes_root_url+set}" = set; then :
8305 withval
=$with_changes_root_url; case "$withval" in
8306 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8307 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8308 */) CHANGES_ROOT_URL
="$withval" ;;
8309 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8312 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8317 cat >>confdefs.h
<<_ACEOF
8318 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8322 # Sanity check enable_languages in case someone does not run the toplevel
8323 # configure # script.
8324 # Check whether --enable-languages was given.
8325 if test "${enable_languages+set}" = set; then :
8326 enableval
=$enable_languages; case ,${enable_languages}, in
8328 # go safe -- we cannot be much sure without the toplevel
8330 # analysis of which target libs are present and usable
8334 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8339 enable_languages
=c
,${enable_languages}
8347 # If top-level libada has been disabled, then wire in install-gnatlib
8348 # invocation with `make install', so that one can build and install
8349 # the library manually with `make -C gcc all gnatlib gnattools install'.
8350 if test x
"$enable_libada" = xno
; then
8351 gnat_install_lib
=gnat-install-lib
8357 if test x
"$enable_as_accelerator_for" != x
; then
8359 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8361 enable_as_accelerator
=yes
8362 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8363 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8364 accel_dir_suffix
=/accel
/${target_noncanonical}
8365 real_target_noncanonical
=${enable_as_accelerator_for}
8371 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8372 tgt
=`echo $tgt | sed 's/=.*//'`
8377 omp_device_property
=omp-device-properties-gcn
8378 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8381 omp_device_property
=omp-device-properties-nvptx
8382 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8385 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8388 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8389 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8391 if test x
"$offload_targets" = x
; then
8392 offload_targets
=$tgt
8394 offload_targets
="$offload_targets,$tgt"
8401 cat >>confdefs.h
<<_ACEOF
8402 #define OFFLOAD_TARGETS "$offload_targets"
8405 if test x
"$enable_offloading" != x
; then
8407 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8411 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8415 if test "x$enable_offload_defaulted" = xyes
; then
8417 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8422 # Check whether --with-multilib-list was given.
8423 if test "${with_multilib_list+set}" = set; then :
8424 withval
=$with_multilib_list; :
8426 with_multilib_list
=default
8431 # Check whether --with-multilib-generator was given.
8432 if test "${with_multilib_generator+set}" = set; then :
8433 withval
=$with_multilib_generator; :
8435 with_multilib_generator
=default
8439 # -------------------------
8440 # Checks for other programs
8441 # -------------------------
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8444 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8446 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8447 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8448 $as_echo_n "(cached) " >&6
8450 cat >conftest.
make <<\_ACEOF
8453 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8455 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8458 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8460 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8464 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8466 $as_echo "yes" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 SET_MAKE
="MAKE=${MAKE-make}"
8475 # Find some useful tools
8476 for ac_prog
in gawk mawk nawk
awk
8478 # Extract the first word of "$ac_prog", so it can be a program name with args.
8479 set dummy
$ac_prog; ac_word
=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_AWK+:} false
; then :
8483 $as_echo_n "(cached) " >&6
8485 if test -n "$AWK"; then
8486 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir
=.
8493 for ac_exec_ext
in '' $ac_executable_extensions; do
8494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_AWK
="$ac_prog"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 if test -n "$AWK"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8508 $as_echo "$AWK" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8515 test -n "$AWK" && break
8518 # We need awk to create options.cc and options.h.
8519 # Bail out if it's missing.
8521 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8525 $as_echo_n "checking whether ln -s works... " >&6; }
8526 if ${gcc_cv_prog_LN_S+:} false
; then :
8527 $as_echo_n "(cached) " >&6
8529 rm -f conftestdata_t
8530 echo >conftestdata_f
8531 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8533 gcc_cv_prog_LN_S
="ln -s"
8535 if ln conftestdata_f conftestdata_t
2>/dev
/null
8539 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8541 gcc_cv_prog_LN_S
="cp -p"
8547 rm -f conftestdata_f conftestdata_t
8550 LN_S
="$gcc_cv_prog_LN_S"
8551 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8553 $as_echo "yes" >&6; }
8555 if test "$gcc_cv_prog_LN_S" = "ln"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8557 $as_echo "no, using ln" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8560 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8565 $as_echo_n "checking whether ln works... " >&6; }
8566 if ${acx_cv_prog_LN+:} false
; then :
8567 $as_echo_n "(cached) " >&6
8569 rm -f conftestdata_t
8570 echo >conftestdata_f
8571 if ln conftestdata_f conftestdata_t
2>/dev
/null
8577 rm -f conftestdata_f conftestdata_t
8580 if test $acx_cv_prog_LN = no
; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8583 $as_echo "no, using $LN" >&6; }
8585 LN
="$acx_cv_prog_LN"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8590 if test -n "$ac_tool_prefix"; then
8591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8592 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_RANLIB+:} false
; then :
8596 $as_echo_n "(cached) " >&6
8598 if test -n "$RANLIB"; then
8599 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8605 test -z "$as_dir" && as_dir
=.
8606 for ac_exec_ext
in '' $ac_executable_extensions; do
8607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 RANLIB
=$ac_cv_prog_RANLIB
8619 if test -n "$RANLIB"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8621 $as_echo "$RANLIB" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8629 if test -z "$ac_cv_prog_RANLIB"; then
8630 ac_ct_RANLIB
=$RANLIB
8631 # Extract the first word of "ranlib", so it can be a program name with args.
8632 set dummy ranlib
; ac_word
=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8636 $as_echo_n "(cached) " >&6
8638 if test -n "$ac_ct_RANLIB"; then
8639 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8645 test -z "$as_dir" && as_dir
=.
8646 for ac_exec_ext
in '' $ac_executable_extensions; do
8647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8659 if test -n "$ac_ct_RANLIB"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8661 $as_echo "$ac_ct_RANLIB" >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8667 if test "x$ac_ct_RANLIB" = x
; then
8670 case $cross_compiling:$ac_tool_warned in
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674 ac_tool_warned
=yes ;;
8676 RANLIB
=$ac_ct_RANLIB
8679 RANLIB
="$ac_cv_prog_RANLIB"
8685 # Find a good install program. We prefer a C program (faster),
8686 # so one script is as good as another. But avoid the broken or
8687 # incompatible versions:
8688 # SysV /etc/install, /usr/sbin/install
8689 # SunOS /usr/etc/install
8690 # IRIX /sbin/install
8692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8694 # ./install, which can be erroneously created by make from ./install.sh.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8696 $as_echo_n "checking for a BSD compatible install... " >&6; }
8697 if test -z "$INSTALL"; then
8698 if ${ac_cv_path_install+:} false
; then :
8699 $as_echo_n "(cached) " >&6
8701 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8702 for ac_dir
in $PATH; do
8703 # Account for people who put trailing slashes in PATH elements.
8705 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8707 # OSF1 and SCO ODT 3.0 have their own names for install.
8708 for ac_prog
in ginstall scoinst
install; do
8709 if test -f $ac_dir/$ac_prog; then
8710 if test $ac_prog = install &&
8711 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8712 # AIX install. It has an incompatible calling convention.
8713 # OSF/1 installbsd also uses dspmsg, but is usable.
8716 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8727 if test "${ac_cv_path_install+set}" = set; then
8728 INSTALL
="$ac_cv_path_install"
8730 # As a last resort, use the slow shell script. We don't cache a
8731 # path for INSTALL within a source directory, because that will
8732 # break other packages using the cache if that directory is
8733 # removed, or if the path is relative.
8734 INSTALL
="$ac_install_sh"
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8738 $as_echo "$INSTALL" >&6; }
8740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8741 # It thinks the first close brace ends the variable substitution.
8742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8744 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8747 # See if cmp has --ignore-initial.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8749 $as_echo_n "checking for cmp's capabilities... " >&6; }
8750 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8755 gcc_cv_prog_cmp_skip
=slowcompare
8756 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8757 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8760 gcc_cv_prog_cmp_skip
=gnucompare
8763 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8764 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8765 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8768 gcc_cv_prog_cmp_skip
=fastcompare
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8776 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8777 make_compare_target
=$gcc_cv_prog_cmp_skip
8781 # See if we have the mktemp command.
8782 # Extract the first word of "mktemp", so it can be a program name with args.
8783 set dummy mktemp
; 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_have_mktemp_command+:} false
; then :
8787 $as_echo_n "(cached) " >&6
8789 if test -n "$have_mktemp_command"; then
8790 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # 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_have_mktemp_command
="yes"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8810 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8811 if test -n "$have_mktemp_command"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8813 $as_echo "$have_mktemp_command" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8821 # See if makeinfo has been installed and is modern enough
8822 # that we can use it.
8824 # Extract the first word of "makeinfo", so it can be a program name with args.
8825 set dummy makeinfo
; ac_word
=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8829 $as_echo_n "(cached) " >&6
8831 if test -n "$MAKEINFO"; then
8832 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8838 test -z "$as_dir" && as_dir
=.
8839 for ac_exec_ext
in '' $ac_executable_extensions; do
8840 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_MAKEINFO
="makeinfo"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 MAKEINFO
=$ac_cv_prog_MAKEINFO
8852 if test -n "$MAKEINFO"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8854 $as_echo "$MAKEINFO" >&6; }
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8861 if test -n "$MAKEINFO"; then
8862 # Found it, now check the version.
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8864 $as_echo_n "checking for modern makeinfo... " >&6; }
8865 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8866 $as_echo_n "(cached) " >&6
8868 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8869 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8871 case $ac_prog_version in
8872 '') gcc_cv_prog_makeinfo_modern
=no
;;
8873 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8874 *) gcc_cv_prog_makeinfo_modern
=no
;;
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8879 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8881 gcc_cv_prog_makeinfo_modern
=no
8883 if test $gcc_cv_prog_makeinfo_modern = no
; then
8884 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8887 if test $gcc_cv_prog_makeinfo_modern = no
; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8889 *** Makeinfo is missing or too old.
8890 *** Info documentation will not be built." >&5
8891 $as_echo "$as_me: WARNING:
8892 *** Makeinfo is missing or too old.
8893 *** Info documentation will not be built." >&2;}
8900 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8901 # If it does, we want to pass it to makeinfo in order to restore the old
8902 # behavior of @{summary,}contents placement.
8903 MAKEINFO_TOC_INLINE_FLAG
=
8904 if test x
"$MAKEINFO" != x
; then :
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8907 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8908 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8909 $as_echo_n "(cached) " >&6
8912 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8913 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8914 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8915 gcc_cv_texi_add_toc_inline_flags
=no
8917 gcc_cv_texi_add_toc_inline_flags
=yes
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8922 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8923 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8924 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8930 # Is pod2man recent enough to regenerate manpages?
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8932 $as_echo_n "checking for recent Pod::Man... " >&6; }
8933 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8935 $as_echo "yes" >&6; }
8936 GENERATED_MANPAGES
=generated-manpages
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8944 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8949 # Extract the first word of "$ac_prog", so it can be a program name with args.
8950 set dummy
$ac_prog; ac_word
=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_prog_FLEX+:} false
; then :
8954 $as_echo_n "(cached) " >&6
8956 if test -n "$FLEX"; then
8957 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8963 test -z "$as_dir" && as_dir
=.
8964 for ac_exec_ext
in '' $ac_executable_extensions; do
8965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_FLEX
="$ac_prog"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 FLEX
=$ac_cv_prog_FLEX
8977 if test -n "$FLEX"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8979 $as_echo "$FLEX" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8986 test -n "$FLEX" && break
8988 test -n "$FLEX" || FLEX
="$MISSING flex"
8992 for ac_prog
in bison
8994 # Extract the first word of "$ac_prog", so it can be a program name with args.
8995 set dummy
$ac_prog; ac_word
=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_BISON+:} false
; then :
8999 $as_echo_n "(cached) " >&6
9001 if test -n "$BISON"; then
9002 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
9004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir
=.
9009 for ac_exec_ext
in '' $ac_executable_extensions; do
9010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_BISON
="$ac_prog"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 BISON
=$ac_cv_prog_BISON
9022 if test -n "$BISON"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9024 $as_echo "$BISON" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9031 test -n "$BISON" && break
9033 test -n "$BISON" || BISON
="$MISSING bison"
9038 # Extract the first word of "python3", so it can be a program name with args.
9039 set dummy python3
; ac_word
=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_prog_PYTHON+:} false
; then :
9043 $as_echo_n "(cached) " >&6
9045 if test -n "$PYTHON"; then
9046 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
9048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9052 test -z "$as_dir" && as_dir
=.
9053 for ac_exec_ext
in '' $ac_executable_extensions; do
9054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_PYTHON
="python3"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 PYTHON
=$ac_cv_prog_PYTHON
9066 if test -n "$PYTHON"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9068 $as_echo "$PYTHON" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9075 if test -n "$PYTHON"; then
9076 # Found it, now check the version.
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9078 $as_echo_n "checking for modern python3... " >&6; }
9079 if ${gcc_cv_prog_python3_modern+:} false
; then :
9080 $as_echo_n "(cached) " >&6
9082 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9083 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9085 case $ac_prog_version in
9086 '') gcc_cv_prog_python3_modern
=no
;;
9087 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9088 *) gcc_cv_prog_python3_modern
=no
;;
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9093 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9095 gcc_cv_prog_python3_modern
=no
9097 if test $gcc_cv_prog_python3_modern = no
; then
9098 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9101 if test $gcc_cv_prog_python3_modern = no
; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9103 *** Python3 is missing.
9104 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9105 $as_echo "$as_me: WARNING:
9106 *** Python3 is missing.
9107 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9114 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9115 # check for build == host before using them.
9118 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9119 && test -d ..
/binutils
; then
9120 NM
='${objdir}/../binutils/nm-new'
9122 # Extract the first word of "nm", so it can be a program name with args.
9123 set dummy nm
; ac_word
=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_NM+:} false
; then :
9127 $as_echo_n "(cached) " >&6
9129 if test -n "$NM"; then
9130 ac_cv_prog_NM
="$NM" # Let the user override the test.
9132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9136 test -z "$as_dir" && as_dir
=.
9137 for ac_exec_ext
in '' $ac_executable_extensions; do
9138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9151 if test -n "$NM"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9153 $as_echo "$NM" >&6; }
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9163 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9164 && test -d ..
/binutils
; then
9165 AR
='${objdir}/../binutils/ar'
9167 # Extract the first word of "ar", so it can be a program name with args.
9168 set dummy
ar; ac_word
=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_prog_AR+:} false
; then :
9172 $as_echo_n "(cached) " >&6
9174 if test -n "$AR"; then
9175 ac_cv_prog_AR
="$AR" # Let the user override the test.
9177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9181 test -z "$as_dir" && as_dir
=.
9182 for ac_exec_ext
in '' $ac_executable_extensions; do
9183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9196 if test -n "$AR"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9198 $as_echo "$AR" >&6; }
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 # The jit documentation looks better if built with sphinx, but can be
9208 # built with texinfo if sphinx is not available.
9209 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9210 # Extract the first word of "sphinx-build", so it can be a program name with args.
9211 set dummy sphinx-build
; ac_word
=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9215 $as_echo_n "(cached) " >&6
9217 if test -n "$doc_build_sys"; then
9218 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9224 test -z "$as_dir" && as_dir
=.
9225 for ac_exec_ext
in '' $ac_executable_extensions; do
9226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_doc_build_sys
="sphinx"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9238 doc_build_sys
=$ac_cv_prog_doc_build_sys
9239 if test -n "$doc_build_sys"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9241 $as_echo "$doc_build_sys" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9249 # --------------------
9250 # Checks for C headers
9251 # --------------------
9253 # Need to reject headers which give warnings, so that the -Werror bootstrap
9254 # works later. *sigh* This needs to come before all header checks.
9256 ac_c_preproc_warn_flag
=yes
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9259 $as_echo_n "checking for ANSI C header files... " >&6; }
9260 if ${ac_cv_header_stdc+:} false
; then :
9261 $as_echo_n "(cached) " >&6
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9278 if ac_fn_cxx_try_compile
"$LINENO"; then :
9279 ac_cv_header_stdc
=yes
9281 ac_cv_header_stdc
=no
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 if test $ac_cv_header_stdc = yes; then
9286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9293 $EGREP "memchr" >/dev
/null
2>&1; then :
9296 ac_cv_header_stdc
=no
9302 if test $ac_cv_header_stdc = yes; then
9303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 $EGREP "free" >/dev
/null
2>&1; then :
9313 ac_cv_header_stdc
=no
9319 if test $ac_cv_header_stdc = yes; then
9320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9321 if test "$cross_compiling" = yes; then :
9324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9328 #if ((' ' & 0x0FF) == 0x020)
9329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9332 # define ISLOWER(c) \
9333 (('a' <= (c) && (c) <= 'i') \
9334 || ('j' <= (c) && (c) <= 'r') \
9335 || ('s' <= (c) && (c) <= 'z'))
9336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9344 for (i = 0; i < 256; i++)
9345 if (XOR (islower (i), ISLOWER (i))
9346 || toupper (i) != TOUPPER (i))
9351 if ac_fn_cxx_try_run
"$LINENO"; then :
9354 ac_cv_header_stdc
=no
9356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9363 $as_echo "$ac_cv_header_stdc" >&6; }
9364 if test $ac_cv_header_stdc = yes; then
9366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9372 if ${ac_cv_header_time+:} false
; then :
9373 $as_echo_n "(cached) " >&6
9375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 #include <sys/types.h>
9378 #include <sys/time.h>
9384 if ((struct tm *) 0)
9390 if ac_fn_cxx_try_compile
"$LINENO"; then :
9391 ac_cv_header_time
=yes
9393 ac_cv_header_time
=no
9395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9398 $as_echo "$ac_cv_header_time" >&6; }
9399 if test $ac_cv_header_time = yes; then
9401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9406 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9407 if ${gcc_cv_header_string+:} false
; then :
9408 $as_echo_n "(cached) " >&6
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9413 #include <strings.h>
9422 if ac_fn_cxx_try_compile
"$LINENO"; then :
9423 gcc_cv_header_string
=yes
9425 gcc_cv_header_string
=no
9427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9430 $as_echo "$gcc_cv_header_string" >&6; }
9431 if test $gcc_cv_header_string = yes; then
9433 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9438 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9439 if ${ac_cv_header_sys_wait_h+:} false
; then :
9440 $as_echo_n "(cached) " >&6
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <sys/types.h>
9445 #include <sys/wait.h>
9447 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9463 if ac_fn_cxx_try_compile
"$LINENO"; then :
9464 ac_cv_header_sys_wait_h
=yes
9466 ac_cv_header_sys_wait_h
=no
9468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9471 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9472 if test $ac_cv_header_sys_wait_h = yes; then
9474 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9479 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9480 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9481 $as_echo_n "(cached) " >&6
9483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9486 #include <termios.h>
9492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9493 $EGREP "yes" >/dev
/null
2>&1; then :
9494 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9496 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9502 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9504 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9506 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9507 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9508 $as_echo_n "(cached) " >&6
9510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 #include <sys/types.h>
9513 #include <sys/ioctl.h>
9519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9520 $EGREP "yes" >/dev
/null
2>&1; then :
9521 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9523 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9529 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9531 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9533 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9538 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9539 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9540 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9541 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9543 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9545 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9546 cat >>confdefs.h
<<_ACEOF
9547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554 # Check for thread headers.
9555 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9556 if test "x$ac_cv_header_thread_h" = xyes
; then :
9562 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9563 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9570 # These tests can't be done till we know if we have limits.h.
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9572 $as_echo_n "checking for CHAR_BIT... " >&6; }
9573 if ${gcc_cv_decl_char_bit+:} false
; then :
9574 $as_echo_n "(cached) " >&6
9576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 #ifdef HAVE_LIMITS_H
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "found" >/dev
/null
2>&1; then :
9587 gcc_cv_decl_char_bit
=yes
9589 gcc_cv_decl_char_bit
=no
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9596 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9597 if test $gcc_cv_decl_char_bit = no
; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9599 $as_echo_n "checking number of bits in a byte... " >&6; }
9600 if ${gcc_cv_c_nbby+:} false
; then :
9601 $as_echo_n "(cached) " >&6
9605 while test $i -lt 65; do
9606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9613 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9614 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9620 if ac_fn_cxx_try_compile
"$LINENO"; then :
9621 gcc_cv_c_nbby
=$i; break
9623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9626 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9630 $as_echo "$gcc_cv_c_nbby" >&6; }
9631 if test $gcc_cv_c_nbby = failed
; then
9632 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9635 cat >>confdefs.h
<<_ACEOF
9636 #define CHAR_BIT $gcc_cv_c_nbby
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9643 if ${ac_cv_c_bigendian+:} false
; then :
9644 $as_echo_n "(cached) " >&6
9646 ac_cv_c_bigendian
=unknown
9647 # See if we're dealing with a universal compiler.
9648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #ifndef __APPLE_CC__
9651 not a universal capable compiler
9656 if ac_fn_cxx_try_compile
"$LINENO"; then :
9658 # Check for potential -arch flags. It is not universal unless
9659 # there are at least two -arch flags with different values.
9662 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9663 if test -n "$ac_prev"; then
9665 i?
86 | x86_64 | ppc | ppc64
)
9666 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9669 ac_cv_c_bigendian
=universal
9675 elif test "x$ac_word" = "x-arch"; then
9680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9681 if test $ac_cv_c_bigendian = unknown
; then
9682 # See if sys/param.h defines the BYTE_ORDER macro.
9683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include <sys/types.h>
9686 #include <sys/param.h>
9691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9692 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9701 if ac_fn_cxx_try_compile
"$LINENO"; then :
9702 # It does; now see whether it defined to BIG_ENDIAN or not.
9703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <sys/types.h>
9706 #include <sys/param.h>
9711 #if BYTE_ORDER != BIG_ENDIAN
9719 if ac_fn_cxx_try_compile
"$LINENO"; then :
9720 ac_cv_c_bigendian
=yes
9722 ac_cv_c_bigendian
=no
9724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9728 if test $ac_cv_c_bigendian = unknown
; then
9729 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9745 if ac_fn_cxx_try_compile
"$LINENO"; then :
9746 # It does; now see whether it defined to _BIG_ENDIAN or not.
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9762 if ac_fn_cxx_try_compile
"$LINENO"; then :
9763 ac_cv_c_bigendian
=yes
9765 ac_cv_c_bigendian
=no
9767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9771 if test $ac_cv_c_bigendian = unknown
; then
9772 # Compile a test program.
9773 if test "$cross_compiling" = yes; then :
9774 # Try to guess by grepping values from an object file.
9775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 short int ascii_mm[] =
9778 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9779 short int ascii_ii[] =
9780 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9781 int use_ascii (int i) {
9782 return ascii_mm[i] + ascii_ii[i];
9784 short int ebcdic_ii[] =
9785 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9786 short int ebcdic_mm[] =
9787 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9788 int use_ebcdic (int i) {
9789 return ebcdic_mm[i] + ebcdic_ii[i];
9796 return use_ascii (foo) == use_ebcdic (foo);
9801 if ac_fn_cxx_try_compile
"$LINENO"; then :
9802 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9803 ac_cv_c_bigendian
=yes
9805 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9806 if test "$ac_cv_c_bigendian" = unknown
; then
9807 ac_cv_c_bigendian
=no
9809 # finding both strings is unlikely to happen, but who knows?
9810 ac_cv_c_bigendian
=unknown
9814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 $ac_includes_default
9823 /* Are we little or big endian? From Harbison&Steele. */
9827 char c[sizeof (long int)];
9830 return u.c[sizeof (long int) - 1] == 1;
9836 if ac_fn_cxx_try_run
"$LINENO"; then :
9837 ac_cv_c_bigendian
=no
9839 ac_cv_c_bigendian
=yes
9841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9848 $as_echo "$ac_cv_c_bigendian" >&6; }
9849 case $ac_cv_c_bigendian in #(
9851 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9861 as_fn_error $?
"unknown endianness
9862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9866 # ----------------------
9867 # Checks for C++ headers
9868 # ----------------------
9871 ac_cpp
='$CXXCPP $CPPFLAGS'
9872 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9876 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9877 if test -z "$CXXCPP"; then
9878 if ${ac_cv_prog_CXXCPP+:} false
; then :
9879 $as_echo_n "(cached) " >&6
9881 # Double quotes because CXXCPP needs to be expanded
9882 for CXXCPP
in "$CXX -E" "/lib/cpp"
9885 for ac_cxx_preproc_warn_flag
in '' yes
9887 # Use a header file that comes with gcc, so configuring glibc
9888 # with a fresh cross-compiler works.
9889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 # <limits.h> exists even on freestanding compilers.
9891 # On the NeXT, cc -E runs the code through the compiler's parser,
9892 # not just through cpp. "Syntax error" is here to catch this case.
9893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9896 # include <limits.h>
9898 # include <assert.h>
9902 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9905 # Broken: fails on valid input.
9908 rm -f conftest.err conftest.i conftest.
$ac_ext
9910 # OK, works on sane cases. Now check whether nonexistent headers
9911 # can be detected and how.
9912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 #include <ac_nonexistent.h>
9916 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9917 # Broken: success on invalid input.
9920 # Passes both tests.
9924 rm -f conftest.err conftest.i conftest.
$ac_ext
9927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9928 rm -f conftest.i conftest.err conftest.
$ac_ext
9929 if $ac_preproc_ok; then :
9934 ac_cv_prog_CXXCPP
=$CXXCPP
9937 CXXCPP
=$ac_cv_prog_CXXCPP
9939 ac_cv_prog_CXXCPP
=$CXXCPP
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9942 $as_echo "$CXXCPP" >&6; }
9944 for ac_cxx_preproc_warn_flag
in '' yes
9946 # Use a header file that comes with gcc, so configuring glibc
9947 # with a fresh cross-compiler works.
9948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949 # <limits.h> exists even on freestanding compilers.
9950 # On the NeXT, cc -E runs the code through the compiler's parser,
9951 # not just through cpp. "Syntax error" is here to catch this case.
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 # include <limits.h>
9957 # include <assert.h>
9961 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9964 # Broken: fails on valid input.
9967 rm -f conftest.err conftest.i conftest.
$ac_ext
9969 # OK, works on sane cases. Now check whether nonexistent headers
9970 # can be detected and how.
9971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <ac_nonexistent.h>
9975 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9976 # Broken: success on invalid input.
9979 # Passes both tests.
9983 rm -f conftest.err conftest.i conftest.
$ac_ext
9986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9987 rm -f conftest.i conftest.err conftest.
$ac_ext
9988 if $ac_preproc_ok; then :
9991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9994 See \`config.log' for more details" >&5
9995 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9996 See \`config.log' for more details" >&2;}; }
10000 ac_cpp
='$CXXCPP $CPPFLAGS'
10001 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10006 for ac_header
in unordered_map
10008 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10009 if test "x$ac_cv_header_unordered_map" = xyes
; then :
10010 cat >>confdefs.h
<<_ACEOF
10011 #define HAVE_UNORDERED_MAP 1
10017 for ac_header
in tr1/unordered_map
10019 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10020 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
10021 cat >>confdefs.h
<<_ACEOF
10022 #define HAVE_TR1_UNORDERED_MAP 1
10028 for ac_header
in ext
/hash_map
10030 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10031 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
10032 cat >>confdefs.h
<<_ACEOF
10033 #define HAVE_EXT_HASH_MAP 1
10041 # Dependency checking.
10044 rm -rf .tst
2>/dev
/null
10045 mkdir .tst
2>/dev
/null
10046 if test -d .tst
; then
10051 rmdir .tst
2>/dev
/null
10053 DEPDIR
="${am__leading_dot}deps"
10055 ac_config_commands
="$ac_config_commands depdir"
10058 ac_config_commands
="$ac_config_commands gccdepdir"
10061 depcc
="$CXX" am_compiler_list
=
10063 am_depcomp
=$ac_aux_dir/depcomp
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10065 $as_echo_n "checking dependency style of $depcc... " >&6; }
10066 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10067 $as_echo_n "(cached) " >&6
10069 if test -f "$am_depcomp"; then
10070 # We make a subdir and do the tests there. Otherwise we can end up
10071 # making bogus files that we don't know about and never remove. For
10072 # instance it was reported that on HP-UX the gcc test will end up
10073 # making a dummy file named `D' -- because `-MD' means `put the output
10076 # Copy depcomp to subdir because otherwise we won't find it if we're
10077 # using a relative directory.
10078 cp "$am_depcomp" conftest.dir
10080 # We will build objects and dependencies in a subdirectory because
10081 # it helps to detect inapplicable dependency modes. For instance
10082 # both Tru64's cc and ICC support -MD to output dependencies as a
10083 # side effect of compilation, but ICC will put the dependencies in
10084 # the current directory while Tru64 will put them in the object
10088 am_cv_CXX_dependencies_compiler_type
=none
10089 if test "$am_compiler_list" = ""; then
10090 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10092 for depmode
in $am_compiler_list; do
10093 if test $depmode = none
; then break; fi
10095 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10096 # Setup a source with many dependencies, because some compilers
10097 # like to wrap large dependency lists on column 80 (with \), and
10098 # we should not choose a depcomp mode which is confused by this.
10100 # We need to recreate these files for each test, as the compiler may
10101 # overwrite some of them when testing with obscure command lines.
10102 # This happens at least with the AIX C compiler.
10104 for i
in 1 2 3 4 5 6; do
10105 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10107 # Solaris 8's {/usr,}/bin/sh.
10108 touch sub
/conftst
$i.h
10110 echo "include sub/conftest.Po" > confmf
10112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10113 # mode. It turns out that the SunPro C++ compiler does not properly
10114 # handle `-M -o', and we need to detect this.
10115 depcmd
="depmode=$depmode \
10116 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10118 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10119 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10120 if env
$depcmd > conftest.err
2>&1 &&
10121 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10122 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10123 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10124 # icc doesn't choke on unknown options, it will just issue warnings
10125 # or remarks (even with -Werror). So we grep stderr for any message
10126 # that says an option was ignored or not supported.
10127 # When given -MP, icc 7.0 and 7.1 complain thusly:
10128 # icc: Command line warning: ignoring option '-M'; no argument required
10129 # The diagnosis changed in icc 8.0:
10130 # icc: Command line remark: option '-MP' not supported
10131 if (grep 'ignoring option' conftest.err ||
10132 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10133 am_cv_CXX_dependencies_compiler_type
=$depmode
10134 $as_echo "$as_me:$LINENO: success" >&5
10138 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10139 sed -e 's/^/| /' < conftest.err
>&5
10143 rm -rf conftest.dir
10145 am_cv_CXX_dependencies_compiler_type
=none
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10150 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10151 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10152 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10153 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10163 # These libraries may be used by collect2.
10164 # We may need a special search path to get them linked.
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10166 $as_echo_n "checking for collect2 libraries... " >&6; }
10167 if ${gcc_cv_collect2_libs+:} false
; then :
10168 $as_echo_n "(cached) " >&6
10171 for libs
in '' -lld -lmld \
10172 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10173 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10194 if ac_fn_cxx_try_link
"$LINENO"; then :
10195 gcc_cv_collect2_libs
="$libs"; break
10197 rm -f core conftest.err conftest.
$ac_objext \
10198 conftest
$ac_exeext conftest.
$ac_ext
10201 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10204 $as_echo "$gcc_cv_collect2_libs" >&6; }
10205 case $gcc_cv_collect2_libs in
10206 "none required") ;;
10207 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10211 # When building Ada code on Alpha, we need exc_resume which is usually in
10212 # -lexc. So test for it.
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10216 $as_echo_n "checking for library containing exc_resume... " >&6; }
10217 if ${ac_cv_search_exc_resume+:} false
; then :
10218 $as_echo_n "(cached) " >&6
10220 ac_func_search_save_LIBS
=$LIBS
10221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10224 /* Override any GCC internal prototype to avoid an error.
10225 Use char because int might match the return type of a GCC
10226 builtin and then its argument prototype would still apply. */
10230 char exc_resume ();
10234 return exc_resume ();
10239 for ac_lib
in '' exc
; do
10240 if test -z "$ac_lib"; then
10241 ac_res
="none required"
10244 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10246 if ac_fn_cxx_try_link
"$LINENO"; then :
10247 ac_cv_search_exc_resume
=$ac_res
10249 rm -f core conftest.err conftest.
$ac_objext \
10251 if ${ac_cv_search_exc_resume+:} false
; then :
10255 if ${ac_cv_search_exc_resume+:} false
; then :
10258 ac_cv_search_exc_resume
=no
10260 rm conftest.
$ac_ext
10261 LIBS
=$ac_func_search_save_LIBS
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10264 $as_echo "$ac_cv_search_exc_resume" >&6; }
10265 ac_res
=$ac_cv_search_exc_resume
10266 if test "$ac_res" != no
; then :
10267 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10271 GNAT_LIBEXC
="$LIBS"
10275 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10279 $as_echo_n "checking for library containing kstat_open... " >&6; }
10280 if ${ac_cv_search_kstat_open+:} false
; then :
10281 $as_echo_n "(cached) " >&6
10283 ac_func_search_save_LIBS
=$LIBS
10284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10293 char kstat_open ();
10297 return kstat_open ();
10302 for ac_lib
in '' kstat
; do
10303 if test -z "$ac_lib"; then
10304 ac_res
="none required"
10307 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10309 if ac_fn_cxx_try_link
"$LINENO"; then :
10310 ac_cv_search_kstat_open
=$ac_res
10312 rm -f core conftest.err conftest.
$ac_objext \
10314 if ${ac_cv_search_kstat_open+:} false
; then :
10318 if ${ac_cv_search_kstat_open+:} false
; then :
10321 ac_cv_search_kstat_open
=no
10323 rm conftest.
$ac_ext
10324 LIBS
=$ac_func_search_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10327 $as_echo "$ac_cv_search_kstat_open" >&6; }
10328 ac_res
=$ac_cv_search_kstat_open
10329 if test "$ac_res" != no
; then :
10330 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10334 EXTRA_GCC_LIBS
="$LIBS"
10338 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10339 # C++ needs those for libcody.
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10344 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10345 if ${ac_cv_search_gethostbyname+:} false
; then :
10346 $as_echo_n "(cached) " >&6
10348 ac_func_search_save_LIBS
=$LIBS
10349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10358 char gethostbyname ();
10362 return gethostbyname ();
10367 for ac_lib
in '' nsl
; do
10368 if test -z "$ac_lib"; then
10369 ac_res
="none required"
10372 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10374 if ac_fn_cxx_try_link
"$LINENO"; then :
10375 ac_cv_search_gethostbyname
=$ac_res
10377 rm -f core conftest.err conftest.
$ac_objext \
10379 if ${ac_cv_search_gethostbyname+:} false
; then :
10383 if ${ac_cv_search_gethostbyname+:} false
; then :
10386 ac_cv_search_gethostbyname
=no
10388 rm conftest.
$ac_ext
10389 LIBS
=$ac_func_search_save_LIBS
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10392 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10393 ac_res
=$ac_cv_search_gethostbyname
10394 if test "$ac_res" != no
; then :
10395 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10400 $as_echo_n "checking for library containing socket... " >&6; }
10401 if ${ac_cv_search_socket+:} false
; then :
10402 $as_echo_n "(cached) " >&6
10404 ac_func_search_save_LIBS
=$LIBS
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10423 for ac_lib
in '' socket
; do
10424 if test -z "$ac_lib"; then
10425 ac_res
="none required"
10428 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10430 if ac_fn_cxx_try_link
"$LINENO"; then :
10431 ac_cv_search_socket
=$ac_res
10433 rm -f core conftest.err conftest.
$ac_objext \
10435 if ${ac_cv_search_socket+:} false
; then :
10439 if ${ac_cv_search_socket+:} false
; then :
10442 ac_cv_search_socket
=no
10444 rm conftest.
$ac_ext
10445 LIBS
=$ac_func_search_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10448 $as_echo "$ac_cv_search_socket" >&6; }
10449 ac_res
=$ac_cv_search_socket
10450 if test "$ac_res" != no
; then :
10451 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10456 $as_echo_n "checking for socket in -lsocket... " >&6; }
10457 if ${ac_cv_lib_socket_socket+:} false
; then :
10458 $as_echo_n "(cached) " >&6
10460 ac_check_lib_save_LIBS
=$LIBS
10461 LIBS
="-lsocket -lnsl $LIBS"
10462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10480 if ac_fn_cxx_try_link
"$LINENO"; then :
10481 ac_cv_lib_socket_socket
=yes
10483 ac_cv_lib_socket_socket
=no
10485 rm -f core conftest.err conftest.
$ac_objext \
10486 conftest
$ac_exeext conftest.
$ac_ext
10487 LIBS
=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10490 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10491 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10492 LIBS
="-lsocket -lnsl $LIBS"
10502 # Some systems put ldexp and frexp in libm instead of libc; assume
10503 # they're both in the same place. jcf-dump needs them.
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10507 $as_echo_n "checking for library containing ldexp... " >&6; }
10508 if ${ac_cv_search_ldexp+:} false
; then :
10509 $as_echo_n "(cached) " >&6
10511 ac_func_search_save_LIBS
=$LIBS
10512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10530 for ac_lib
in '' m
; do
10531 if test -z "$ac_lib"; then
10532 ac_res
="none required"
10535 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10537 if ac_fn_cxx_try_link
"$LINENO"; then :
10538 ac_cv_search_ldexp
=$ac_res
10540 rm -f core conftest.err conftest.
$ac_objext \
10542 if ${ac_cv_search_ldexp+:} false
; then :
10546 if ${ac_cv_search_ldexp+:} false
; then :
10549 ac_cv_search_ldexp
=no
10551 rm conftest.
$ac_ext
10552 LIBS
=$ac_func_search_save_LIBS
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10555 $as_echo "$ac_cv_search_ldexp" >&6; }
10556 ac_res
=$ac_cv_search_ldexp
10557 if test "$ac_res" != no
; then :
10558 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10566 # Some systems need dlopen
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10570 $as_echo_n "checking for library containing dlopen... " >&6; }
10571 if ${ac_cv_search_dlopen+:} false
; then :
10572 $as_echo_n "(cached) " >&6
10574 ac_func_search_save_LIBS
=$LIBS
10575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10593 for ac_lib
in '' dl
; do
10594 if test -z "$ac_lib"; then
10595 ac_res
="none required"
10598 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10600 if ac_fn_cxx_try_link
"$LINENO"; then :
10601 ac_cv_search_dlopen
=$ac_res
10603 rm -f core conftest.err conftest.
$ac_objext \
10605 if ${ac_cv_search_dlopen+:} false
; then :
10609 if ${ac_cv_search_dlopen+:} false
; then :
10612 ac_cv_search_dlopen
=no
10614 rm conftest.
$ac_ext
10615 LIBS
=$ac_func_search_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10618 $as_echo "$ac_cv_search_dlopen" >&6; }
10619 ac_res
=$ac_cv_search_dlopen
10620 if test "$ac_res" != no
; then :
10621 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10629 # Use <inttypes.h> only if it exists,
10630 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10633 $as_echo_n "checking for inttypes.h... " >&6; }
10634 if ${gcc_cv_header_inttypes_h+:} false
; then :
10635 $as_echo_n "(cached) " >&6
10637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10639 #define __STDC_FORMAT_MACROS
10640 #include <sys/types.h>
10641 #include <inttypes.h>
10653 if ac_fn_cxx_try_compile
"$LINENO"; then :
10654 gcc_cv_header_inttypes_h
=yes
10656 gcc_cv_header_inttypes_h
=no
10658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10662 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10663 if test $gcc_cv_header_inttypes_h = yes; then
10665 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10669 # Look for the ZSTD package.
10679 # Check whether --with-zstd was given.
10680 if test "${with_zstd+set}" = set; then :
10681 withval
=$with_zstd;
10685 # Check whether --with-zstd-include was given.
10686 if test "${with_zstd_include+set}" = set; then :
10687 withval
=$with_zstd_include;
10691 # Check whether --with-zstd-lib was given.
10692 if test "${with_zstd_lib+set}" = set; then :
10693 withval
=$with_zstd_lib;
10696 case "x$with_zstd" in
10702 *) ZSTD_INCLUDE
=$with_zstd/include
10703 ZSTD_LIB
=$with_zstd/lib
10707 if test "x$with_zstd" != xno
; then
10708 if test "x$with_zstd_include" != x
; then
10709 ZSTD_INCLUDE
=$with_zstd_include
10711 if test "x$with_zstd_lib" != x
; then
10712 ZSTD_LIB
=$with_zstd_lib
10714 if test "x$ZSTD_INCLUDE" != x \
10715 && test "x$ZSTD_INCLUDE" != xno
; then
10716 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10718 if test "x$ZSTD_LIB" != x \
10719 && test "x$ZSTD_LIB" != xno
; then
10720 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10723 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10724 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10726 # LTO can use zstd compression algorithm
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10730 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10731 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10732 $as_echo_n "(cached) " >&6
10734 ac_func_search_save_LIBS
=$LIBS
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10744 char ZSTD_compress ();
10748 return ZSTD_compress ();
10753 for ac_lib
in '' zstd
; do
10754 if test -z "$ac_lib"; then
10755 ac_res
="none required"
10758 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10760 if ac_fn_cxx_try_link
"$LINENO"; then :
10761 ac_cv_search_ZSTD_compress
=$ac_res
10763 rm -f core conftest.err conftest.
$ac_objext \
10765 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10769 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10772 ac_cv_search_ZSTD_compress
=no
10774 rm conftest.
$ac_ext
10775 LIBS
=$ac_func_search_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10778 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10779 ac_res
=$ac_cv_search_ZSTD_compress
10780 if test "$ac_res" != no
; then :
10781 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10784 gcc_cv_header_zstd_h
=no
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10792 $as_echo_n "checking for zstd.h... " >&6; }
10793 if ${gcc_cv_header_zstd_h+:} false
; then :
10794 $as_echo_n "(cached) " >&6
10796 # We require version 1.3.0 or later. This is the first version that has
10797 # ZSTD_getFrameContentSize.
10798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10801 #if ZSTD_VERSION_NUMBER < 10300
10802 #error "need zstd 1.3.0 or better"
10812 if ac_fn_cxx_try_compile
"$LINENO"; then :
10813 gcc_cv_header_zstd_h
=yes
10815 gcc_cv_header_zstd_h
=no
10817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10821 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10822 if test $gcc_cv_header_zstd_h = yes; then
10824 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10826 elif test "x$with_zstd" != x
; then
10827 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10833 for ac_func
in times clock kill getrlimit setrlimit atoq \
10834 popen sysconf strsignal getrusage nl_langinfo \
10835 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10836 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
10838 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10840 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10841 cat >>confdefs.h
<<_ACEOF
10842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10849 if test x
$ac_cv_func_mbstowcs = xyes
; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10851 $as_echo_n "checking whether mbstowcs works... " >&6; }
10852 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10853 $as_echo_n "(cached) " >&6
10855 if test "$cross_compiling" = yes; then :
10856 gcc_cv_func_mbstowcs_works
=yes
10858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <stdlib.h>
10863 mbstowcs(0, "", 0);
10867 if ac_fn_cxx_try_run
"$LINENO"; then :
10868 gcc_cv_func_mbstowcs_works
=yes
10870 gcc_cv_func_mbstowcs_works
=no
10872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10878 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10879 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10881 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10886 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10887 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10891 cat >>confdefs.h
<<_ACEOF
10892 #define ssize_t int
10897 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10898 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10902 cat >>confdefs.h
<<_ACEOF
10903 #define caddr_t char *
10908 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10910 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10912 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10918 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10919 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10920 gcc_header_sys_mman_h
=yes
10922 gcc_header_sys_mman_h
=no
10925 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10926 if test "x$ac_cv_func_mmap" = xyes
; then :
10932 if test "$gcc_header_sys_mman_h" != yes \
10933 ||
test "$gcc_func_mmap" != yes; then
10934 gcc_cv_func_mmap_file
=no
10935 gcc_cv_func_mmap_dev_zero
=no
10936 gcc_cv_func_mmap_anon
=no
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10939 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10940 if ${gcc_cv_func_mmap_file+:} false
; then :
10941 $as_echo_n "(cached) " >&6
10943 # Add a system to this blacklist if
10944 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10945 # memory area containing the same data that you'd get if you applied
10946 # read() to the same fd. The only system known to have a problem here
10947 # is VMS, where text files have record structure.
10950 gcc_cv_func_mmap_file
=no
;;
10952 gcc_cv_func_mmap_file
=yes;;
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10956 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10958 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10959 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10960 $as_echo_n "(cached) " >&6
10962 # Add a system to this blacklist if it has mmap() but /dev/zero
10963 # does not exist, or if mmapping /dev/zero does not give anonymous
10964 # zeroed pages with both the following properties:
10965 # 1. If you map N consecutive pages in with one call, and then
10966 # unmap any subset of those pages, the pages that were not
10967 # explicitly unmapped remain accessible.
10968 # 2. If you map two adjacent blocks of memory and then unmap them
10969 # both at once, they must both go away.
10970 # Systems known to be in this category are Windows (all variants),
10973 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10974 gcc_cv_func_mmap_dev_zero
=no
;;
10976 gcc_cv_func_mmap_dev_zero
=yes;;
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10980 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10982 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10984 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10985 if ${gcc_cv_decl_map_anon+:} false
; then :
10986 $as_echo_n "(cached) " >&6
10988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #include <sys/types.h>
10991 #include <sys/mman.h>
10992 #include <unistd.h>
10994 #ifndef MAP_ANONYMOUS
10995 #define MAP_ANONYMOUS MAP_ANON
11001 int n = MAP_ANONYMOUS;
11006 if ac_fn_cxx_try_compile
"$LINENO"; then :
11007 gcc_cv_decl_map_anon
=yes
11009 gcc_cv_decl_map_anon
=no
11011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
11014 $as_echo "$gcc_cv_decl_map_anon" >&6; }
11016 if test $gcc_cv_decl_map_anon = no
; then
11017 gcc_cv_func_mmap_anon
=no
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11020 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11021 if ${gcc_cv_func_mmap_anon+:} false
; then :
11022 $as_echo_n "(cached) " >&6
11024 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11025 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11026 # doesn't give anonymous zeroed pages with the same properties listed
11027 # above for use of /dev/zero.
11028 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11030 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
11031 gcc_cv_func_mmap_anon
=no
;;
11033 gcc_cv_func_mmap_anon
=yes;;
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11037 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11041 if test $gcc_cv_func_mmap_file = yes; then
11043 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11046 if test $gcc_cv_func_mmap_dev_zero = yes; then
11048 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11051 if test $gcc_cv_func_mmap_anon = yes; then
11053 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11060 # Under VMS, vfork works very differently than on Unix. The standard test
11061 # won't work, and it isn't easily adaptable. It makes more sense to
11063 ac_cv_func_vfork_works
=yes
11066 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11067 if test "x$ac_cv_type_pid_t" = xyes
; then :
11071 cat >>confdefs.h
<<_ACEOF
11077 for ac_header
in vfork.h
11079 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11080 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11081 cat >>confdefs.h
<<_ACEOF
11082 #define HAVE_VFORK_H 1
11088 for ac_func
in fork vfork
11090 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11092 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11093 cat >>confdefs.h
<<_ACEOF
11094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 if test "x$ac_cv_func_fork" = xyes
; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11102 $as_echo_n "checking for working fork... " >&6; }
11103 if ${ac_cv_func_fork_works+:} false
; then :
11104 $as_echo_n "(cached) " >&6
11106 if test "$cross_compiling" = yes; then :
11107 ac_cv_func_fork_works
=cross
11109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 $ac_includes_default
11116 /* By Ruediger Kuhlmann. */
11117 return fork () < 0;
11123 if ac_fn_cxx_try_run
"$LINENO"; then :
11124 ac_cv_func_fork_works
=yes
11126 ac_cv_func_fork_works
=no
11128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11129 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11134 $as_echo "$ac_cv_func_fork_works" >&6; }
11137 ac_cv_func_fork_works
=$ac_cv_func_fork
11139 if test "x$ac_cv_func_fork_works" = xcross
; then
11141 *-*-amigaos* |
*-*-msdosdjgpp*)
11142 # Override, as these systems have only a dummy fork() stub
11143 ac_cv_func_fork_works
=no
11146 ac_cv_func_fork_works
=yes
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11150 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11152 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11153 if test "x$ac_cv_func_vfork" = xyes
; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11155 $as_echo_n "checking for working vfork... " >&6; }
11156 if ${ac_cv_func_vfork_works+:} false
; then :
11157 $as_echo_n "(cached) " >&6
11159 if test "$cross_compiling" = yes; then :
11160 ac_cv_func_vfork_works
=cross
11162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 /* Thanks to Paul Eggert for this test. */
11165 $ac_includes_default
11166 #include <sys/wait.h>
11167 #ifdef HAVE_VFORK_H
11168 # include <vfork.h>
11170 /* On some sparc systems, changes by the child to local and incoming
11171 argument registers are propagated back to the parent. The compiler
11172 is told about this with #include <vfork.h>, but some compilers
11173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11174 static variable whose address is put into a register that is
11175 clobbered by the vfork. */
11178 sparc_address_test (int arg)
11180 sparc_address_test (arg) int arg;
11183 static pid_t child;
11201 pid_t parent = getpid ();
11204 sparc_address_test (0);
11209 /* Here is another test for sparc vfork register problems. This
11210 test uses lots of local variables, at least as many local
11211 variables as main has allocated so far including compiler
11212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11214 reuse the register of parent for one of the local variables,
11215 since it will think that parent can't possibly be used any more
11216 in this routine. Assigning to the local variable will thus
11217 munge parent in the parent process. */
11219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11221 /* Convince the compiler that p..p7 are live; otherwise, it might
11222 use the same hardware register for all 8 local variables. */
11223 if (p != p1 || p != p2 || p != p3 || p != p4
11224 || p != p5 || p != p6 || p != p7)
11227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11228 from child file descriptors. If the child closes a descriptor
11229 before it execs or exits, this munges the parent's descriptor
11230 as well. Test for this by closing stdout in the child. */
11231 _exit(close(fileno(stdout)) != 0);
11236 while (wait(&status) != child)
11239 /* Was there some problem with vforking? */
11242 /* Did the child fail? (This shouldn't happen.) */
11245 /* Did the vfork/compiler bug occur? */
11246 || parent != getpid()
11248 /* Did the file descriptor bug occur? */
11249 || fstat(fileno(stdout), &st) != 0
11254 if ac_fn_cxx_try_run
"$LINENO"; then :
11255 ac_cv_func_vfork_works
=yes
11257 ac_cv_func_vfork_works
=no
11259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11265 $as_echo "$ac_cv_func_vfork_works" >&6; }
11268 if test "x$ac_cv_func_fork_works" = xcross
; then
11269 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11271 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11274 if test "x$ac_cv_func_vfork_works" = xyes
; then
11276 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11280 $as_echo "#define vfork fork" >>confdefs.h
11283 if test "x$ac_cv_func_fork_works" = xyes
; then
11285 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11291 if test "X$prefix" = "XNONE"; then
11292 acl_final_prefix
="$ac_default_prefix"
11294 acl_final_prefix
="$prefix"
11296 if test "X$exec_prefix" = "XNONE"; then
11297 acl_final_exec_prefix
='${prefix}'
11299 acl_final_exec_prefix
="$exec_prefix"
11301 acl_save_prefix
="$prefix"
11302 prefix
="$acl_final_prefix"
11303 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11304 prefix
="$acl_save_prefix"
11307 # Check whether --with-gnu-ld was given.
11308 if test "${with_gnu_ld+set}" = set; then :
11309 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11314 # Prepare PATH_SEPARATOR.
11315 # The user is always right.
11316 if test "${PATH_SEPARATOR+set}" != set; then
11317 echo "#! /bin/sh" >conf$$.sh
11318 echo "exit 0" >>conf$$.sh
11320 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11328 if test "$GCC" = yes; then
11329 # Check if gcc -print-prog-name=ld gives a path.
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11331 $as_echo_n "checking for ld used by GCC... " >&6; }
11334 # gcc leaves a trailing carriage return which upsets mingw
11335 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11337 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11340 # Accept absolute paths.
11341 [\\/]* |
[A-Za-z
]:[\\/]*)
11342 re_direlt
='/[^/][^/]*/\.\./'
11343 # Canonicalize the path of ld
11344 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11345 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11346 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11348 test -z "$LD" && LD
="$ac_prog"
11351 # If it fails, then pretend we aren't using GCC.
11355 # If it is relative, then search for the first ld in PATH.
11356 with_gnu_ld
=unknown
11359 elif test "$with_gnu_ld" = yes; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11361 $as_echo_n "checking for GNU ld... " >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11364 $as_echo_n "checking for non-GNU ld... " >&6; }
11366 if ${acl_cv_path_LD+:} false
; then :
11367 $as_echo_n "(cached) " >&6
11369 if test -z "$LD"; then
11370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11371 for ac_dir
in $PATH; do
11372 test -z "$ac_dir" && ac_dir
=.
11373 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11374 acl_cv_path_LD
="$ac_dir/$ac_prog"
11375 # Check to see if the program is GNU ld. I'd rather use --version,
11376 # but apparently some GNU ld's only accept -v.
11377 # Break only if it was the GNU/non-GNU ld that we prefer.
11378 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11379 test "$with_gnu_ld" != no
&& break
11381 test "$with_gnu_ld" != yes && break
11387 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11391 LD
="$acl_cv_path_LD"
11392 if test -n "$LD"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11394 $as_echo "$LD" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11399 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11402 if ${acl_cv_prog_gnu_ld+:} false
; then :
11403 $as_echo_n "(cached) " >&6
11405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11406 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11407 acl_cv_prog_gnu_ld
=yes
11409 acl_cv_prog_gnu_ld
=no
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11413 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11414 with_gnu_ld
=$acl_cv_prog_gnu_ld
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11419 $as_echo_n "checking for shared library run path origin... " >&6; }
11420 if ${acl_cv_rpath+:} false
; then :
11421 $as_echo_n "(cached) " >&6
11424 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11427 rm -f .
/conftest.sh
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11432 $as_echo "$acl_cv_rpath" >&6; }
11434 libext
="$acl_cv_libext"
11435 shlibext
="$acl_cv_shlibext"
11436 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11437 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11438 hardcode_direct
="$acl_cv_hardcode_direct"
11439 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11440 # Check whether --enable-rpath was given.
11441 if test "${enable_rpath+set}" = set; then :
11442 enableval
=$enable_rpath; :
11456 acl_save_prefix
="$prefix"
11457 prefix
="$acl_final_prefix"
11458 acl_save_exec_prefix
="$exec_prefix"
11459 exec_prefix
="$acl_final_exec_prefix"
11461 eval additional_includedir
=\"$includedir\"
11462 eval additional_libdir
=\"$libdir\"
11464 exec_prefix
="$acl_save_exec_prefix"
11465 prefix
="$acl_save_prefix"
11468 # Check whether --with-libiconv-prefix was given.
11469 if test "${with_libiconv_prefix+set}" = set; then :
11470 withval
=$with_libiconv_prefix;
11471 if test "X$withval" = "Xno"; then
11474 if test "X$withval" = "X"; then
11476 acl_save_prefix
="$prefix"
11477 prefix
="$acl_final_prefix"
11478 acl_save_exec_prefix
="$exec_prefix"
11479 exec_prefix
="$acl_final_exec_prefix"
11481 eval additional_includedir
=\"$includedir\"
11482 eval additional_libdir
=\"$libdir\"
11484 exec_prefix
="$acl_save_exec_prefix"
11485 prefix
="$acl_save_prefix"
11488 additional_includedir
="$withval/include"
11489 additional_libdir
="$withval/lib"
11496 # Check whether --with-libiconv-type was given.
11497 if test "${with_libiconv_type+set}" = set; then :
11498 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11500 with_libiconv_type
=auto
11503 lib_type
=`eval echo \$with_libiconv_type`
11510 names_already_handled
=
11511 names_next_round
='iconv '
11512 while test -n "$names_next_round"; do
11513 names_this_round
="$names_next_round"
11515 for name
in $names_this_round; do
11517 for n
in $names_already_handled; do
11518 if test "$n" = "$name"; then
11519 already_handled
=yes
11523 if test -z "$already_handled"; then
11524 names_already_handled
="$names_already_handled $name"
11525 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11526 eval value
=\"\
$HAVE_LIB$uppername\"
11527 if test -n "$value"; then
11528 if test "$value" = yes; then
11529 eval value
=\"\
$LIB$uppername\"
11530 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11531 eval value
=\"\
$LTLIB$uppername\"
11532 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11541 if test $use_additional = yes; then
11542 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11543 found_dir
="$additional_libdir"
11544 found_so
="$additional_libdir/lib$name.$shlibext"
11545 if test -f "$additional_libdir/lib$name.la"; then
11546 found_la
="$additional_libdir/lib$name.la"
11548 elif test x
$lib_type != xshared
; then
11549 if test -f "$additional_libdir/lib$name.$libext"; then
11550 found_dir
="$additional_libdir"
11551 found_a
="$additional_libdir/lib$name.$libext"
11552 if test -f "$additional_libdir/lib$name.la"; then
11553 found_la
="$additional_libdir/lib$name.la"
11558 if test "X$found_dir" = "X"; then
11559 for x
in $LDFLAGS $LTLIBICONV; do
11561 acl_save_prefix
="$prefix"
11562 prefix
="$acl_final_prefix"
11563 acl_save_exec_prefix
="$exec_prefix"
11564 exec_prefix
="$acl_final_exec_prefix"
11566 exec_prefix
="$acl_save_exec_prefix"
11567 prefix
="$acl_save_prefix"
11571 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11572 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11574 found_so
="$dir/lib$name.$shlibext"
11575 if test -f "$dir/lib$name.la"; then
11576 found_la
="$dir/lib$name.la"
11578 elif test x
$lib_type != xshared
; then
11579 if test -f "$dir/lib$name.$libext"; then
11581 found_a
="$dir/lib$name.$libext"
11582 if test -f "$dir/lib$name.la"; then
11583 found_la
="$dir/lib$name.la"
11589 if test "X$found_dir" != "X"; then
11594 if test "X$found_dir" != "X"; then
11595 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11596 if test "X$found_so" != "X"; then
11597 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11598 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11601 for x
in $ltrpathdirs; do
11602 if test "X$x" = "X$found_dir"; then
11607 if test -z "$haveit"; then
11608 ltrpathdirs
="$ltrpathdirs $found_dir"
11610 if test "$hardcode_direct" = yes; then
11611 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11613 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11614 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11616 for x
in $rpathdirs; do
11617 if test "X$x" = "X$found_dir"; then
11622 if test -z "$haveit"; then
11623 rpathdirs
="$rpathdirs $found_dir"
11627 for x
in $LDFLAGS $LIBICONV; do
11629 acl_save_prefix
="$prefix"
11630 prefix
="$acl_final_prefix"
11631 acl_save_exec_prefix
="$exec_prefix"
11632 exec_prefix
="$acl_final_exec_prefix"
11634 exec_prefix
="$acl_save_exec_prefix"
11635 prefix
="$acl_save_prefix"
11637 if test "X$x" = "X-L$found_dir"; then
11642 if test -z "$haveit"; then
11643 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11645 if test "$hardcode_minus_L" != no
; then
11646 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11648 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11654 if test "X$found_a" != "X"; then
11655 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11657 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11660 additional_includedir
=
11661 case "$found_dir" in
11663 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11664 additional_includedir
="$basedir/include"
11667 if test "X$additional_includedir" != "X"; then
11668 if test "X$additional_includedir" != "X/usr/include"; then
11670 if test "X$additional_includedir" = "X/usr/local/include"; then
11671 if test -n "$GCC"; then
11673 linux
*) haveit
=yes;;
11677 if test -z "$haveit"; then
11678 for x
in $CPPFLAGS $INCICONV; do
11680 acl_save_prefix
="$prefix"
11681 prefix
="$acl_final_prefix"
11682 acl_save_exec_prefix
="$exec_prefix"
11683 exec_prefix
="$acl_final_exec_prefix"
11685 exec_prefix
="$acl_save_exec_prefix"
11686 prefix
="$acl_save_prefix"
11688 if test "X$x" = "X-I$additional_includedir"; then
11693 if test -z "$haveit"; then
11694 if test -d "$additional_includedir"; then
11695 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11701 if test -n "$found_la"; then
11702 save_libdir
="$libdir"
11703 case "$found_la" in
11704 */* |
*\\*) .
"$found_la" ;;
11705 *) .
"./$found_la" ;;
11707 libdir
="$save_libdir"
11708 for dep
in $dependency_libs; do
11711 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11712 if test "X$additional_libdir" != "X/usr/lib"; then
11714 if test "X$additional_libdir" = "X/usr/local/lib"; then
11715 if test -n "$GCC"; then
11717 linux
*) haveit
=yes;;
11721 if test -z "$haveit"; then
11723 for x
in $LDFLAGS $LIBICONV; do
11725 acl_save_prefix
="$prefix"
11726 prefix
="$acl_final_prefix"
11727 acl_save_exec_prefix
="$exec_prefix"
11728 exec_prefix
="$acl_final_exec_prefix"
11730 exec_prefix
="$acl_save_exec_prefix"
11731 prefix
="$acl_save_prefix"
11733 if test "X$x" = "X-L$additional_libdir"; then
11738 if test -z "$haveit"; then
11739 if test -d "$additional_libdir"; then
11740 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11744 for x
in $LDFLAGS $LTLIBICONV; do
11746 acl_save_prefix
="$prefix"
11747 prefix
="$acl_final_prefix"
11748 acl_save_exec_prefix
="$exec_prefix"
11749 exec_prefix
="$acl_final_exec_prefix"
11751 exec_prefix
="$acl_save_exec_prefix"
11752 prefix
="$acl_save_prefix"
11754 if test "X$x" = "X-L$additional_libdir"; then
11759 if test -z "$haveit"; then
11760 if test -d "$additional_libdir"; then
11761 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11768 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11769 if test "$enable_rpath" != no
; then
11771 for x
in $rpathdirs; do
11772 if test "X$x" = "X$dir"; then
11777 if test -z "$haveit"; then
11778 rpathdirs
="$rpathdirs $dir"
11781 for x
in $ltrpathdirs; do
11782 if test "X$x" = "X$dir"; then
11787 if test -z "$haveit"; then
11788 ltrpathdirs
="$ltrpathdirs $dir"
11793 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11796 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11799 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11800 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11806 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11807 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11808 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11810 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11811 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11818 if test "X$rpathdirs" != "X"; then
11819 if test -n "$hardcode_libdir_separator"; then
11821 for found_dir
in $rpathdirs; do
11822 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11824 acl_save_libdir
="$libdir"
11826 eval flag
=\"$hardcode_libdir_flag_spec\"
11827 libdir
="$acl_save_libdir"
11828 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11830 for found_dir
in $rpathdirs; do
11831 acl_save_libdir
="$libdir"
11832 libdir
="$found_dir"
11833 eval flag
=\"$hardcode_libdir_flag_spec\"
11834 libdir
="$acl_save_libdir"
11835 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11839 if test "X$ltrpathdirs" != "X"; then
11840 for found_dir
in $ltrpathdirs; do
11841 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11851 am_save_CPPFLAGS
="$CPPFLAGS"
11853 for element
in $INCICONV; do
11855 for x
in $CPPFLAGS; do
11857 acl_save_prefix
="$prefix"
11858 prefix
="$acl_final_prefix"
11859 acl_save_exec_prefix
="$exec_prefix"
11860 exec_prefix
="$acl_final_exec_prefix"
11862 exec_prefix
="$acl_save_exec_prefix"
11863 prefix
="$acl_save_prefix"
11865 if test "X$x" = "X$element"; then
11870 if test -z "$haveit"; then
11871 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11877 $as_echo_n "checking for iconv... " >&6; }
11878 if ${am_cv_func_iconv+:} false
; then :
11879 $as_echo_n "(cached) " >&6
11882 am_cv_func_iconv
="no, consider installing GNU libiconv"
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <stdlib.h>
11893 iconv_t cd = iconv_open("","");
11894 iconv(cd,NULL,NULL,NULL,NULL);
11900 if ac_fn_cxx_try_link
"$LINENO"; then :
11901 am_cv_func_iconv
=yes
11903 rm -f core conftest.err conftest.
$ac_objext \
11904 conftest
$ac_exeext conftest.
$ac_ext
11905 if test "$am_cv_func_iconv" != yes; then
11906 am_save_LIBS
="$LIBS"
11907 LIBS
="$LIBS $LIBICONV"
11908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11911 #include <stdlib.h>
11917 iconv_t cd = iconv_open("","");
11918 iconv(cd,NULL,NULL,NULL,NULL);
11924 if ac_fn_cxx_try_link
"$LINENO"; then :
11925 am_cv_lib_iconv
=yes
11926 am_cv_func_iconv
=yes
11928 rm -f core conftest.err conftest.
$ac_objext \
11929 conftest
$ac_exeext conftest.
$ac_ext
11930 LIBS
="$am_save_LIBS"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11935 $as_echo "$am_cv_func_iconv" >&6; }
11936 if test "$am_cv_func_iconv" = yes; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11938 $as_echo_n "checking for working iconv... " >&6; }
11939 if ${am_cv_func_iconv_works+:} false
; then :
11940 $as_echo_n "(cached) " >&6
11943 am_save_LIBS
="$LIBS"
11944 if test $am_cv_lib_iconv = yes; then
11945 LIBS
="$LIBS $LIBICONV"
11947 am_cv_func_iconv_works
=no
11948 for ac_iconv_const
in '' 'const'; do
11949 if test "$cross_compiling" = yes; then :
11951 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
11952 *) am_cv_func_iconv_works
="guessing yes" ;;
11955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11959 #include <string.h>
11961 #ifndef ICONV_CONST
11962 # define ICONV_CONST $ac_iconv_const
11969 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11970 successful returns. This is even documented in
11971 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11973 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11974 if (cd_utf8_to_88591 != (iconv_t)(-1))
11976 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11978 ICONV_CONST char *inptr = input;
11979 size_t inbytesleft = strlen (input);
11980 char *outptr = buf;
11981 size_t outbytesleft = sizeof (buf);
11982 size_t res = iconv (cd_utf8_to_88591,
11983 &inptr, &inbytesleft,
11984 &outptr, &outbytesleft);
11987 iconv_close (cd_utf8_to_88591);
11990 /* Test against Solaris 10 bug: Failures are not distinguishable from
11991 successful returns. */
11993 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11994 if (cd_ascii_to_88591 != (iconv_t)(-1))
11996 static ICONV_CONST char input[] = "\263";
11998 ICONV_CONST char *inptr = input;
11999 size_t inbytesleft = strlen (input);
12000 char *outptr = buf;
12001 size_t outbytesleft = sizeof (buf);
12002 size_t res = iconv (cd_ascii_to_88591,
12003 &inptr, &inbytesleft,
12004 &outptr, &outbytesleft);
12007 iconv_close (cd_ascii_to_88591);
12010 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12012 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12013 if (cd_88591_to_utf8 != (iconv_t)(-1))
12015 static ICONV_CONST char input[] = "\304";
12016 static char buf[2] = { (char)0xDE, (char)0xAD };
12017 ICONV_CONST char *inptr = input;
12018 size_t inbytesleft = 1;
12019 char *outptr = buf;
12020 size_t outbytesleft = 1;
12021 size_t res = iconv (cd_88591_to_utf8,
12022 &inptr, &inbytesleft,
12023 &outptr, &outbytesleft);
12024 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12026 iconv_close (cd_88591_to_utf8);
12029 #if 0 /* This bug could be worked around by the caller. */
12030 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12032 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12033 if (cd_88591_to_utf8 != (iconv_t)(-1))
12035 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12037 ICONV_CONST char *inptr = input;
12038 size_t inbytesleft = strlen (input);
12039 char *outptr = buf;
12040 size_t outbytesleft = sizeof (buf);
12041 size_t res = iconv (cd_88591_to_utf8,
12042 &inptr, &inbytesleft,
12043 &outptr, &outbytesleft);
12046 iconv_close (cd_88591_to_utf8);
12050 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12053 /* Try standardized names. */
12054 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12055 /* Try IRIX, OSF/1 names. */
12056 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12057 /* Try AIX names. */
12058 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12059 /* Try HP-UX names. */
12060 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12061 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12062 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12064 if (cd1 != (iconv_t)(-1))
12066 if (cd2 != (iconv_t)(-1))
12068 if (cd3 != (iconv_t)(-1))
12070 if (cd4 != (iconv_t)(-1))
12079 if ac_fn_cxx_try_run
"$LINENO"; then :
12080 am_cv_func_iconv_works
=yes
12082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12086 test "$am_cv_func_iconv_works" = no ||
break
12088 LIBS
="$am_save_LIBS"
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12092 $as_echo "$am_cv_func_iconv_works" >&6; }
12093 case "$am_cv_func_iconv_works" in
12094 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
12095 *) am_func_iconv
=yes ;;
12098 am_func_iconv
=no am_cv_lib_iconv
=no
12100 if test "$am_func_iconv" = yes; then
12102 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12105 if test "$am_cv_lib_iconv" = yes; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12107 $as_echo_n "checking how to link with libiconv... " >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12109 $as_echo "$LIBICONV" >&6; }
12111 CPPFLAGS
="$am_save_CPPFLAGS"
12118 if test "$am_cv_func_iconv" = yes; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12120 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12121 if ${gl_cv_iconv_nonconst+:} false
; then :
12122 $as_echo_n "(cached) " >&6
12124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12127 #include <stdlib.h>
12133 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12143 if ac_fn_cxx_try_compile
"$LINENO"; then :
12144 gl_cv_iconv_nonconst
=yes
12146 gl_cv_iconv_nonconst
=no
12148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12152 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12154 gl_cv_iconv_nonconst
=yes
12156 if test $gl_cv_iconv_nonconst = yes; then
12162 cat >>confdefs.h
<<_ACEOF
12163 #define ICONV_CONST $iconv_arg1
12168 if test "$am_func_iconv" = yes; then
12169 if test -n "$LIBICONV"; then
12170 am_cv_func_iconv_summary
='yes, in libiconv'
12172 am_cv_func_iconv_summary
='yes, in libc'
12175 if test "$am_cv_func_iconv" = yes; then
12176 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
12178 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
12183 # Until we have in-tree GNU iconv:
12185 if test -f "$LTLIBICONV"; then
12186 LIBICONV_DEP
=$LTLIBICONV
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12192 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12193 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12194 $as_echo_n "(cached) " >&6
12196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #include <locale.h>
12207 if ac_fn_cxx_try_link
"$LINENO"; then :
12208 am_cv_val_LC_MESSAGES
=yes
12210 am_cv_val_LC_MESSAGES
=no
12212 rm -f core conftest.err conftest.
$ac_objext \
12213 conftest
$ac_exeext conftest.
$ac_ext
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12216 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12217 if test $am_cv_val_LC_MESSAGES = yes; then
12219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12226 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12227 if ${am_cv_langinfo_codeset+:} false
; then :
12228 $as_echo_n "(cached) " >&6
12230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #include <langinfo.h>
12236 char* cs = nl_langinfo(CODESET);
12241 if ac_fn_cxx_try_link
"$LINENO"; then :
12242 am_cv_langinfo_codeset
=yes
12244 am_cv_langinfo_codeset
=no
12246 rm -f core conftest.err conftest.
$ac_objext \
12247 conftest
$ac_exeext conftest.
$ac_ext
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12251 $as_echo "$am_cv_langinfo_codeset" >&6; }
12252 if test $am_cv_langinfo_codeset = yes; then
12254 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12259 # We will need to find libiberty.h and ansidecl.h
12260 saved_CFLAGS
="$CFLAGS"
12261 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12262 saved_CXXFLAGS
="$CXXFLAGS"
12263 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12265 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12266 # normal autoconf function for these. But force definition of
12267 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12268 # basename handling in libiberty.h.
12269 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12270 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12271 #undef HAVE_DECL_BASENAME
12272 #define HAVE_DECL_BASENAME 1
12273 #include \"ansidecl.h\"
12274 #include \"system.h\"
12276 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12282 cat >>confdefs.h
<<_ACEOF
12283 #define HAVE_DECL_BASENAME $ac_have_decl
12285 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12286 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12287 #undef HAVE_DECL_BASENAME
12288 #define HAVE_DECL_BASENAME 1
12289 #include \"ansidecl.h\"
12290 #include \"system.h\"
12292 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12298 cat >>confdefs.h
<<_ACEOF
12299 #define HAVE_DECL_STRSTR $ac_have_decl
12303 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12304 madvise stpcpy strnlen strsignal strverscmp \
12305 strtol strtoul strtoll strtoull setenv unsetenv \
12306 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12307 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
12309 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12311 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12312 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12313 $as_echo_n "(cached) " >&6
12315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 #define $ac_tr_decl 1
12320 #include "ansidecl.h"
12321 #include "system.h"
12327 char *(*pfn) = (char *(*)) $ac_func ;
12333 if ac_fn_cxx_try_compile
"$LINENO"; then :
12334 eval "gcc_cv_have_decl_$ac_func=yes"
12336 eval "gcc_cv_have_decl_$ac_func=no"
12338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12341 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12344 #define $ac_tr_decl 1
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12350 #define $ac_tr_decl 0
12358 for ac_func
in getrlimit setrlimit getrusage
12360 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12362 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12363 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12364 $as_echo_n "(cached) " >&6
12366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 #define $ac_tr_decl 1
12371 #include "ansidecl.h"
12372 #include "system.h"
12373 #ifdef HAVE_SYS_RESOURCE_H
12374 #include <sys/resource.h>
12382 char *(*pfn) = (char *(*)) $ac_func ;
12388 if ac_fn_cxx_try_compile
"$LINENO"; then :
12389 eval "gcc_cv_have_decl_$ac_func=yes"
12391 eval "gcc_cv_have_decl_$ac_func=no"
12393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12399 #define $ac_tr_decl 1
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12405 #define $ac_tr_decl 0
12413 for ac_func
in mallinfo mallinfo2
12415 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12418 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12419 $as_echo_n "(cached) " >&6
12421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 #define $ac_tr_decl 1
12426 #include "ansidecl.h"
12427 #include "system.h"
12428 #ifdef HAVE_MALLOC_H
12429 #include <malloc.h>
12437 char *(*pfn) = (char *(*)) $ac_func ;
12443 if ac_fn_cxx_try_compile
"$LINENO"; then :
12444 eval "gcc_cv_have_decl_$ac_func=yes"
12446 eval "gcc_cv_have_decl_$ac_func=no"
12448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12453 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12454 #define $ac_tr_decl 1
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12460 #define $ac_tr_decl 0
12468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12471 #include "ansidecl.h"
12472 #include "system.h"
12473 #ifdef HAVE_SYS_RESOURCE_H
12474 #include <sys/resource.h>
12485 if ac_fn_cxx_try_compile
"$LINENO"; then :
12489 $as_echo "#define rlim_t long" >>confdefs.h
12492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12496 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12498 for ac_func
in ldgetname
12500 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12503 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12504 $as_echo_n "(cached) " >&6
12506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12509 #define $ac_tr_decl 1
12511 #include "ansidecl.h"
12512 #include "system.h"
12513 #ifdef HAVE_LDFCN_H
12524 char *(*pfn) = (char *(*)) $ac_func ;
12530 if ac_fn_cxx_try_compile
"$LINENO"; then :
12531 eval "gcc_cv_have_decl_$ac_func=yes"
12533 eval "gcc_cv_have_decl_$ac_func=no"
12535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12541 #define $ac_tr_decl 1
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12547 #define $ac_tr_decl 0
12555 for ac_func
in times
12557 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12560 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12561 $as_echo_n "(cached) " >&6
12563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12566 #define $ac_tr_decl 1
12568 #include "ansidecl.h"
12569 #include "system.h"
12570 #ifdef HAVE_SYS_TIMES_H
12571 #include <sys/times.h>
12579 char *(*pfn) = (char *(*)) $ac_func ;
12585 if ac_fn_cxx_try_compile
"$LINENO"; then :
12586 eval "gcc_cv_have_decl_$ac_func=yes"
12588 eval "gcc_cv_have_decl_$ac_func=no"
12590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12596 #define $ac_tr_decl 1
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12602 #define $ac_tr_decl 0
12610 for ac_func
in sigaltstack
12612 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12615 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12616 $as_echo_n "(cached) " >&6
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 #define $ac_tr_decl 1
12623 #include "ansidecl.h"
12624 #include "system.h"
12625 #include <signal.h>
12632 char *(*pfn) = (char *(*)) $ac_func ;
12638 if ac_fn_cxx_try_compile
"$LINENO"; then :
12639 eval "gcc_cv_have_decl_$ac_func=yes"
12641 eval "gcc_cv_have_decl_$ac_func=no"
12643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12649 #define $ac_tr_decl 1
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12655 #define $ac_tr_decl 0
12663 # More time-related stuff.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12665 $as_echo_n "checking for struct tms... " >&6; }
12666 if ${ac_cv_struct_tms+:} false
; then :
12667 $as_echo_n "(cached) " >&6
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include "ansidecl.h"
12674 #include "system.h"
12675 #ifdef HAVE_SYS_TIMES_H
12676 #include <sys/times.h>
12687 if ac_fn_cxx_try_compile
"$LINENO"; then :
12688 ac_cv_struct_tms
=yes
12690 ac_cv_struct_tms
=no
12692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12695 $as_echo "$ac_cv_struct_tms" >&6; }
12696 if test $ac_cv_struct_tms = yes; then
12698 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12702 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12703 # revisit after autoconf 2.50.
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12705 $as_echo_n "checking for clock_t... " >&6; }
12706 if ${gcc_cv_type_clock_t+:} false
; then :
12707 $as_echo_n "(cached) " >&6
12710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 #include "ansidecl.h"
12714 #include "system.h"
12724 if ac_fn_cxx_try_compile
"$LINENO"; then :
12725 gcc_cv_type_clock_t
=yes
12727 gcc_cv_type_clock_t
=no
12729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12732 $as_echo "$gcc_cv_type_clock_t" >&6; }
12733 if test $gcc_cv_type_clock_t = yes; then
12735 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12739 # Check if F_SETLKW is supported by fcntl.
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12741 $as_echo_n "checking for F_SETLKW... " >&6; }
12742 if ${ac_cv_f_setlkw+:} false
; then :
12743 $as_echo_n "(cached) " >&6
12746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12759 return fcntl (1, F_SETLKW, &fl);
12764 if ac_fn_cxx_try_compile
"$LINENO"; then :
12769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12772 $as_echo "$ac_cv_f_setlkw" >&6; }
12773 if test $ac_cv_f_setlkw = yes; then
12775 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12779 # Check if O_CLOEXEC is defined by fcntl
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12781 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12782 if ${ac_cv_o_cloexec+:} false
; then :
12783 $as_echo_n "(cached) " >&6
12786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12794 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12799 if ac_fn_cxx_try_compile
"$LINENO"; then :
12800 ac_cv_o_cloexec
=yes
12804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12807 $as_echo "$ac_cv_o_cloexec" >&6; }
12808 if test $ac_cv_o_cloexec = yes; then
12810 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12814 # Check if O_NONBLOCK is defined by fcntl
12815 for ac_header
in fcntl.h
12817 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12818 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12819 cat >>confdefs.h
<<_ACEOF
12820 #define HAVE_FCNTL_H 1
12826 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12828 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12832 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12834 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12839 # C++ Modules would like some networking features to provide the mapping
12840 # server. You can still use modules without them though.
12841 # The following network-related checks could probably do with some
12842 # Windows and other non-linux defenses and checking.
12844 # Local socket connectivity wants AF_UNIX networking
12845 # Check for AF_UNIX networking
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12847 $as_echo_n "checking for AF_UNIX... " >&6; }
12848 if ${ac_cv_af_unix+:} false
; then :
12849 $as_echo_n "(cached) " >&6
12852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12855 #include <sys/types.h>
12856 #include <sys/socket.h>
12857 #include <sys/un.h>
12858 #include <netinet/in.h>
12864 un.sun_family = AF_UNSPEC;
12865 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12866 connect (fd, (sockaddr *)&un, sizeof (un));
12871 if ac_fn_cxx_try_compile
"$LINENO"; then :
12876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12879 $as_echo "$ac_cv_af_unix" >&6; }
12880 if test $ac_cv_af_unix = yes; then
12882 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12886 # Remote socket connectivity wants AF_INET6 networking
12887 # Check for AF_INET6 networking
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12889 $as_echo_n "checking for AF_INET6... " >&6; }
12890 if ${ac_cv_af_inet6+:} false
; then :
12891 $as_echo_n "(cached) " >&6
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 #include <sys/types.h>
12898 #include <sys/socket.h>
12899 #include <netinet/in.h>
12906 in6.sin6_family = AF_UNSPEC;
12907 struct addrinfo *addrs = 0;
12908 struct addrinfo hints;
12909 hints.ai_flags = 0;
12910 hints.ai_family = AF_INET6;
12911 hints.ai_socktype = SOCK_STREAM;
12912 hints.ai_protocol = 0;
12913 hints.ai_canonname = 0;
12916 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12917 const char *str = gai_strerror (e);
12918 freeaddrinfo (addrs);
12919 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12920 connect (fd, (sockaddr *)&in6, sizeof (in6));
12925 if ac_fn_cxx_try_compile
"$LINENO"; then :
12930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12933 $as_echo "$ac_cv_af_inet6" >&6; }
12934 if test $ac_cv_af_inet6 = yes; then
12936 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12940 # Check if _LK_LOCK is supported by _locking
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12942 $as_echo_n "checking for _LK_LOCK... " >&6; }
12943 if ${ac_cv_lk_lock+:} false
; then :
12944 $as_echo_n "(cached) " >&6
12947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12951 #include <sys/locking.h>
12957 return _locking (fd, _LK_LOCK, 0);
12962 if ac_fn_cxx_try_compile
"$LINENO"; then :
12967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12970 $as_echo "$ac_cv_lk_lock" >&6; }
12971 if test $ac_cv_lk_lock = yes; then
12973 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12977 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12978 CFLAGS
="$saved_CFLAGS"
12979 CXXFLAGS
="$saved_CXXFLAGS"
12981 # mkdir takes a single argument on some systems.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12983 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12984 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12985 $as_echo_n "(cached) " >&6
12987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 #include <sys/types.h>
12991 #ifdef HAVE_SYS_STAT_H
12992 # include <sys/stat.h>
12994 #ifdef HAVE_UNISTD_H
12995 # include <unistd.h>
12997 #ifdef HAVE_DIRECT_H
12998 # include <direct.h>
13008 if ac_fn_cxx_try_compile
"$LINENO"; then :
13009 gcc_cv_mkdir_takes_one_arg
=no
13011 gcc_cv_mkdir_takes_one_arg
=yes
13013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
13016 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
13017 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13019 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
13030 # With Setjmp/Longjmp based exception handling.
13031 # Check whether --enable-sjlj-exceptions was given.
13032 if test "${enable_sjlj_exceptions+set}" = set; then :
13033 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
13037 force_sjlj_exceptions
=yes
13041 force_sjlj_exceptions
=no
13046 if test $force_sjlj_exceptions = yes; then
13047 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13049 cat >>confdefs.h
<<_ACEOF
13050 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13055 # Windows32 UTF-8 manifest support for running the driver and compiler
13056 # executables with the UTF-8 active code page on mingw hosts.
13057 # Non-mingw hosts ignore this option.
13058 # The shell variables this sets are picked up from the mingw branches
13059 # of config.host so they have to be set before it gets sourced.
13060 # Check whether --enable-win32-utf8-manifest was given.
13061 if test "${enable_win32_utf8_manifest+set}" = set; then :
13062 enableval
=$enable_win32_utf8_manifest;
13066 if test "x$enable_win32_utf8_manifest" != xno
; then
13067 host_xmake_mingw
=i386
/x-mingw32-utf8
13068 host_extra_gcc_objs_mingw
=utf8rc-mingw32.o
13069 host_extra_objs_mingw
=utf8-mingw32.o
13072 # --------------------------------------------------------
13073 # Build, host, and target specific configuration fragments
13074 # --------------------------------------------------------
13076 # Collect build-machine-specific information.
13077 .
${srcdir}/config.build ||
exit 1
13079 # Collect host-machine-specific information.
13080 .
${srcdir}/config.
host ||
exit 1
13084 # Collect target-machine-specific information.
13085 .
${srcdir}/config.gcc ||
exit 1
13087 extra_objs
="${host_extra_objs} ${extra_objs}"
13088 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13090 # Default the target-machine variables that were not explicitly set.
13091 if test x
"$tm_file" = x
13092 then tm_file
=$cpu_type/$cpu_type.h
; fi
13094 if test x
"$extra_headers" = x
13095 then extra_headers
=; fi
13097 if test x
$md_file = x
13098 then md_file
=$cpu_type/$cpu_type.md
; fi
13100 if test x
$out_file = x
13101 then out_file
=$cpu_type/$cpu_type.cc
; fi
13103 if test x
"$tmake_file" = x
13104 then tmake_file
=$cpu_type/t-
$cpu_type
13107 # Support --enable-initfini-array.
13108 if test x
$enable_initfini_array != xno
; then
13109 tm_file
="${tm_file} initfini-array.h"
13112 if test x
"$dwarf2" = xyes
13113 then tm_file
="$tm_file tm-dwarf2.h"
13116 # Say what files are being used for the output code and MD file.
13117 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13118 echo "Using \`$srcdir/config/$md_file' as machine description file."
13120 # If any of the xm_file variables contain nonexistent files, warn
13121 # about them and drop them.
13124 for x
in $build_xm_file; do
13125 if test -f $srcdir/config
/$x
13127 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13128 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13131 build_xm_file
="$bx"
13134 for x
in $host_xm_file; do
13135 if test -f $srcdir/config
/$x
13137 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13138 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13144 for x
in $xm_file; do
13145 if test -f $srcdir/config
/$x
13147 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13148 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13154 for f
in $tm_file; do
13157 if test $count = ax
; then
13158 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13160 echo "Using the following target machine macro files:"
13161 for f
in $tm_file; do
13162 echo " $srcdir/config/$f"
13166 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13168 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13172 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13174 cat >>confdefs.h
<<_ACEOF
13175 #define HAVE_GNU_LD $gnu_ld_bool
13179 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13181 cat >>confdefs.h
<<_ACEOF
13182 #define HAVE_GNU_AS $gnu_as_bool
13187 for f
in $host_xm_file; do
13190 if test $count = a
; then
13192 elif test $count = ax
; then
13193 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13195 echo "Using the following host machine macro files:"
13196 for f
in $host_xm_file; do
13197 echo " $srcdir/config/$f"
13200 echo "Using ${out_host_hook_obj} for host machine hooks."
13202 if test "$host_xm_file" != "$build_xm_file"; then
13204 for f
in $build_xm_file; do
13207 if test $count = a
; then
13209 elif test $count = ax
; then
13210 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13212 echo "Using the following build machine macro files:"
13213 for f
in $build_xm_file; do
13214 echo " $srcdir/config/$f"
13219 if test -n "$configured_native_system_header_dir"; then
13220 native_system_header_dir
=$configured_native_system_header_dir
13222 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13226 powerpc
*-*-darwin*)
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13228 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13229 if ${gcc_cv_mcontext_underscores+:} false
; then :
13230 $as_echo_n "(cached) " >&6
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 #include <sys/cdefs.h>
13236 #include <sys/signal.h>
13237 #include <ucontext.h>
13238 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13241 if ac_fn_cxx_try_compile
"$LINENO"; then :
13242 gcc_cv_mcontext_underscores
=no
13244 gcc_cv_mcontext_underscores
=yes
13246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13249 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13250 if test $gcc_cv_mcontext_underscores = yes; then
13252 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13262 # Check if a valid thread package
13263 case ${enable_threads} in
13266 target_thread_file
='single'
13270 target_thread_file
='single'
13272 aix | dce | lynx | mipssde | posix | rtems | \
13273 single | tpf | vxworks | win32 | mcf
)
13274 target_thread_file
=${enable_threads}
13277 echo "${enable_threads} is an unknown thread package" 1>&2
13282 if test x
${thread_file} = x
; then
13283 # No thread file set by target-specific clauses in config.gcc,
13284 # so use file chosen by default logic above
13285 thread_file
=${target_thread_file}
13293 if test x
$enable___cxa_atexit = xyes || \
13294 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13295 if test x
$host = x
$target; then
13297 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13298 # keyed to flag_use_cxa_atexit
13306 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13307 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13310 echo "__cxa_atexit can't be enabled on this target"
13316 # We can't check for __cxa_atexit when building a cross, so assume
13320 if test x
$use_cxa_atexit = xyes
; then
13322 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13327 # Look for a file containing extra machine modes.
13328 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13329 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13332 cat >>confdefs.h
<<_ACEOF
13333 #define EXTRA_MODES_FILE "config/$extra_modes"
13338 # Convert extra_options into a form suitable for Makefile use.
13341 for f
in $extra_options; do
13342 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13343 all_opt_files
="$all_opt_files $srcdir/config/$f"
13347 # auto-host.h is the file containing items generated by autoconf and is
13348 # the first file included by config.h.
13349 # If host=build, it is correct to have bconfig include auto-host.h
13350 # as well. If host!=build, we are in error and need to do more
13351 # work to find out the build config parameters.
13352 if test x
$host = x
$build
13354 build_auto
=auto-host.h
13355 HAVE_AUTO_BUILD
='# '
13357 # We create a subdir, then run autoconf in the subdir.
13358 # To prevent recursion we set host and build for the new
13359 # invocation of configure to the build for this invocation
13366 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13367 *) realsrcdir
=..
/${srcdir};;
13369 # Clearing GMPINC is necessary to prevent host headers being
13370 # used by the build compiler. Defining GENERATOR_FILE stops
13371 # system.h from including gmp.h.
13372 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13373 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13374 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13375 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13376 ${realsrcdir}/configure \
13377 --enable-languages=${enable_languages-all} \
13378 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13379 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13380 --target=$target_alias --host=$build_alias \
13381 --build=$build_alias ||
exit # retaining $tempdir
13383 # We just finished tests for the build machine, so rename
13384 # the file auto-build.h in the gcc directory.
13385 mv auto-host.h ..
/auto-build.h
13388 build_auto
=auto-build.h
13394 tm_file
="${tm_file} defaults.h"
13395 tm_p_file
="${tm_p_file} tm-preds.h"
13396 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13397 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13398 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13399 # put this back in temporarily.
13400 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13406 # Compile in configure arguments.
13407 if test -f configargs.h
; then
13408 # Being re-configured.
13409 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13410 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13411 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13412 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13415 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13418 # Double all backslashes and backslash all quotes to turn
13419 # gcc_config_arguments into a C string.
13420 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13421 $gcc_config_arguments
13423 gcc_config_arguments_str
=`cat conftest.out`
13426 cat > configargs.h
<<EOF
13427 /* Generated automatically. */
13428 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13429 static const char thread_model[] = "$thread_file";
13431 static const struct {
13432 const char *name, *value;
13433 } configure_default_options[] = $configure_default_options;
13436 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13437 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13438 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13439 if test -f $srcdir/REVISION
; then
13440 gcc_REVISION
=`cat $srcdir/REVISION`
13444 cat > plugin-version.h
<<EOF
13445 #include "configargs.h"
13447 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13448 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13449 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13450 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13452 static char basever[] = "$gcc_BASEVER";
13453 static char datestamp[] = "$gcc_DATESTAMP";
13454 static char devphase[] = "$gcc_DEVPHASE";
13455 static char revision[] = "$gcc_REVISION";
13457 /* FIXME plugins: We should make the version information more precise.
13458 One way to do is to add a checksum. */
13460 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13461 devphase, revision,
13462 configuration_arguments};
13465 # Determine what GCC version number to use in filesystem paths.
13467 get_gcc_base_ver
="cat"
13469 # Check whether --with-gcc-major-version-only was given.
13470 if test "${with_gcc_major_version_only+set}" = set; then :
13471 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13472 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13480 # Internationalization
13481 # Find a good install program. We prefer a C program (faster),
13482 # so one script is as good as another. But avoid the broken or
13483 # incompatible versions:
13484 # SysV /etc/install, /usr/sbin/install
13485 # SunOS /usr/etc/install
13486 # IRIX /sbin/install
13488 # AmigaOS /C/install, which installs bootblocks on floppy discs
13489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13492 # OS/2's system install, which has a completely different semantic
13493 # ./install, which can be erroneously created by make from ./install.sh.
13494 # Reject install programs that cannot install multiple files.
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13496 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13497 if test -z "$INSTALL"; then
13498 if ${ac_cv_path_install+:} false
; then :
13499 $as_echo_n "(cached) " >&6
13501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13502 for as_dir
in $PATH
13505 test -z "$as_dir" && as_dir
=.
13506 # Account for people who put trailing slashes in PATH elements.
13507 case $as_dir/ in #((
13508 .
/ | .
// |
/[cC
]/* | \
13509 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13510 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
13513 # OSF1 and SCO ODT 3.0 have their own names for install.
13514 # Don't use installbsd from OSF since it installs stuff as root
13516 for ac_prog
in ginstall scoinst
install; do
13517 for ac_exec_ext
in '' $ac_executable_extensions; do
13518 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
13519 if test $ac_prog = install &&
13520 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13521 # AIX install. It has an incompatible calling convention.
13523 elif test $ac_prog = install &&
13524 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13525 # program-specific install script used by HP pwplus--don't use.
13528 rm -rf conftest.one conftest.two conftest.dir
13529 echo one
> conftest.one
13530 echo two
> conftest.two
13532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
13533 test -s conftest.one
&& test -s conftest.two
&&
13534 test -s conftest.dir
/conftest.one
&&
13535 test -s conftest.dir
/conftest.two
13537 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13550 rm -rf conftest.one conftest.two conftest.dir
13553 if test "${ac_cv_path_install+set}" = set; then
13554 INSTALL
=$ac_cv_path_install
13556 # As a last resort, use the slow shell script. Don't cache a
13557 # value for INSTALL within a source directory, because that will
13558 # break other packages using the cache if that directory is
13559 # removed, or if the value is a relative name.
13560 INSTALL
=$ac_install_sh
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13564 $as_echo "$INSTALL" >&6; }
13566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13567 # It thinks the first close brace ends the variable substitution.
13568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13572 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13576 if test -n "$ac_aux_dir"; then
13577 case "$ac_aux_dir" in
13578 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
13579 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13582 if test -z "$MKINSTALLDIRS"; then
13583 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13589 $as_echo_n "checking whether NLS is requested... " >&6; }
13590 # Check whether --enable-nls was given.
13591 if test "${enable_nls+set}" = set; then :
13592 enableval
=$enable_nls; USE_NLS
=$enableval
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13598 $as_echo "$USE_NLS" >&6; }
13605 # Prepare PATH_SEPARATOR.
13606 # The user is always right.
13607 if test "${PATH_SEPARATOR+set}" != set; then
13608 echo "#! /bin/sh" >conf$$.sh
13609 echo "exit 0" >>conf$$.sh
13611 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13619 # Find out how to test for executable files. Don't use a zero-byte file,
13620 # as systems may use methods other than mode bits to determine executability.
13621 cat >conf$$.
file <<_ASEOF
13625 chmod +x conf$$.
file
13626 if test -x conf$$.
file >/dev
/null
2>&1; then
13627 ac_executable_p
="test -x"
13629 ac_executable_p
="test -f"
13633 # Extract the first word of "msgfmt", so it can be a program name with args.
13634 set dummy msgfmt
; ac_word
=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if ${ac_cv_path_MSGFMT+:} false
; then :
13638 $as_echo_n "(cached) " >&6
13642 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13645 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13646 for ac_dir
in $PATH; do
13648 test -z "$ac_dir" && ac_dir
=.
13649 for ac_exec_ext
in '' $ac_executable_extensions; do
13650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13651 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
13652 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13653 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
13660 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
13664 MSGFMT
="$ac_cv_path_MSGFMT"
13665 if test "$MSGFMT" != ":"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13667 $as_echo "$MSGFMT" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13673 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13674 set dummy gmsgfmt
; ac_word
=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_path_GMSGFMT+:} false
; then :
13678 $as_echo_n "(cached) " >&6
13682 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13686 for as_dir
in $PATH
13689 test -z "$as_dir" && as_dir
=.
13690 for ac_exec_ext
in '' $ac_executable_extensions; do
13691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13692 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
13693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13704 GMSGFMT
=$ac_cv_path_GMSGFMT
13705 if test -n "$GMSGFMT"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13707 $as_echo "$GMSGFMT" >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13716 # Prepare PATH_SEPARATOR.
13717 # The user is always right.
13718 if test "${PATH_SEPARATOR+set}" != set; then
13719 echo "#! /bin/sh" >conf$$.sh
13720 echo "exit 0" >>conf$$.sh
13722 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13730 # Find out how to test for executable files. Don't use a zero-byte file,
13731 # as systems may use methods other than mode bits to determine executability.
13732 cat >conf$$.
file <<_ASEOF
13736 chmod +x conf$$.
file
13737 if test -x conf$$.
file >/dev
/null
2>&1; then
13738 ac_executable_p
="test -x"
13740 ac_executable_p
="test -f"
13744 # Extract the first word of "xgettext", so it can be a program name with args.
13745 set dummy xgettext
; ac_word
=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if ${ac_cv_path_XGETTEXT+:} false
; then :
13749 $as_echo_n "(cached) " >&6
13751 case "$XGETTEXT" in
13753 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13756 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13757 for ac_dir
in $PATH; do
13759 test -z "$ac_dir" && ac_dir
=.
13760 for ac_exec_ext
in '' $ac_executable_extensions; do
13761 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13762 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13763 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13764 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
13771 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13775 XGETTEXT
="$ac_cv_path_XGETTEXT"
13776 if test "$XGETTEXT" != ":"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13778 $as_echo "$XGETTEXT" >&6; }
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13787 # Prepare PATH_SEPARATOR.
13788 # The user is always right.
13789 if test "${PATH_SEPARATOR+set}" != set; then
13790 echo "#! /bin/sh" >conf$$.sh
13791 echo "exit 0" >>conf$$.sh
13793 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13801 # Find out how to test for executable files. Don't use a zero-byte file,
13802 # as systems may use methods other than mode bits to determine executability.
13803 cat >conf$$.
file <<_ASEOF
13807 chmod +x conf$$.
file
13808 if test -x conf$$.
file >/dev
/null
2>&1; then
13809 ac_executable_p
="test -x"
13811 ac_executable_p
="test -f"
13815 # Extract the first word of "msgmerge", so it can be a program name with args.
13816 set dummy msgmerge
; ac_word
=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_MSGMERGE+:} false
; then :
13820 $as_echo_n "(cached) " >&6
13822 case "$MSGMERGE" in
13824 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
13827 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13828 for ac_dir
in $PATH; do
13830 test -z "$ac_dir" && ac_dir
=.
13831 for ac_exec_ext
in '' $ac_executable_extensions; do
13832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13833 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
13834 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
13841 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
13845 MSGMERGE
="$ac_cv_path_MSGMERGE"
13846 if test "$MSGMERGE" != ":"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13848 $as_echo "$MSGMERGE" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13855 if test "$GMSGFMT" != ":"; then
13856 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
13857 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13860 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13862 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13867 if test "$XGETTEXT" != ":"; then
13868 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13869 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13873 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13879 ac_config_commands
="$ac_config_commands default-1"
13885 if test -f ..
/gettext
/uninstalled-config.sh
; then
13886 relative_builddir
='$(top_builddir)/../gettext'
13887 . ..
/gettext
/uninstalled-config.sh
13889 # The sister gettext directory doesn't exist and won't collect information on
13890 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13915 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13916 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
13917 $as_echo_n "(cached) " >&6
13919 gt_save_LIBS
="$LIBS"
13920 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 #include <CoreFoundation/CFPreferences.h>
13927 CFPreferencesCopyAppValue(NULL, NULL)
13932 if ac_fn_cxx_try_link
"$LINENO"; then :
13933 gt_cv_func_CFPreferencesCopyAppValue
=yes
13935 gt_cv_func_CFPreferencesCopyAppValue
=no
13937 rm -f core conftest.err conftest.
$ac_objext \
13938 conftest
$ac_exeext conftest.
$ac_ext
13939 LIBS
="$gt_save_LIBS"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13942 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13943 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13945 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13949 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13950 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
13951 $as_echo_n "(cached) " >&6
13953 gt_save_LIBS
="$LIBS"
13954 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <CoreFoundation/CFLocale.h>
13961 CFLocaleCopyPreferredLanguages();
13966 if ac_fn_cxx_try_link
"$LINENO"; then :
13967 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
13969 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
13971 rm -f core conftest.err conftest.
$ac_objext \
13972 conftest
$ac_exeext conftest.
$ac_ext
13973 LIBS
="$gt_save_LIBS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13976 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13977 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13979 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13983 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13984 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13985 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13997 case " $gt_needs " in
13998 *" need-formatstring-macros "*) gt_api_version
=3 ;;
13999 *" need-ngettext "*) gt_api_version
=2 ;;
14000 *) gt_api_version
=1 ;;
14002 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
14003 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
14005 if test "$USE_NLS" = "yes"; then
14006 gt_use_preinstalled_gnugettext
=no
14009 if test $gt_api_version -ge 3; then
14010 gt_revision_test_code
='
14011 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14012 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14014 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14017 gt_revision_test_code
=
14019 if test $gt_api_version -ge 2; then
14020 gt_expression_test_code
=' + * ngettext ("", "", 0)'
14022 gt_expression_test_code
=
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14026 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14027 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
14028 $as_echo_n "(cached) " >&6
14030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #include <libintl.h>
14034 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14035 extern int _nl_msg_cat_cntr;
14036 extern int *_nl_domain_bindings;
14037 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14039 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14041 $gt_revision_test_code
14047 bindtextdomain ("", "");
14048 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14054 if ac_fn_cxx_try_link
"$LINENO"; then :
14055 eval "$gt_func_gnugettext_libc=yes"
14057 eval "$gt_func_gnugettext_libc=no"
14059 rm -f core conftest.err conftest.
$ac_objext \
14060 conftest
$ac_exeext conftest.
$ac_ext
14062 eval ac_res
=\$
$gt_func_gnugettext_libc
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14064 $as_echo "$ac_res" >&6; }
14066 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14072 am_save_CPPFLAGS
="$CPPFLAGS"
14074 for element
in $INCICONV; do
14076 for x
in $CPPFLAGS; do
14078 acl_save_prefix
="$prefix"
14079 prefix
="$acl_final_prefix"
14080 acl_save_exec_prefix
="$exec_prefix"
14081 exec_prefix
="$acl_final_exec_prefix"
14083 exec_prefix
="$acl_save_exec_prefix"
14084 prefix
="$acl_save_prefix"
14086 if test "X$x" = "X$element"; then
14091 if test -z "$haveit"; then
14092 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14098 $as_echo_n "checking for iconv... " >&6; }
14099 if ${am_cv_func_iconv+:} false
; then :
14100 $as_echo_n "(cached) " >&6
14103 am_cv_func_iconv
="no, consider installing GNU libiconv"
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 #include <stdlib.h>
14114 iconv_t cd = iconv_open("","");
14115 iconv(cd,NULL,NULL,NULL,NULL);
14121 if ac_fn_cxx_try_link
"$LINENO"; then :
14122 am_cv_func_iconv
=yes
14124 rm -f core conftest.err conftest.
$ac_objext \
14125 conftest
$ac_exeext conftest.
$ac_ext
14126 if test "$am_cv_func_iconv" != yes; then
14127 am_save_LIBS
="$LIBS"
14128 LIBS
="$LIBS $LIBICONV"
14129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14132 #include <stdlib.h>
14138 iconv_t cd = iconv_open("","");
14139 iconv(cd,NULL,NULL,NULL,NULL);
14145 if ac_fn_cxx_try_link
"$LINENO"; then :
14146 am_cv_lib_iconv
=yes
14147 am_cv_func_iconv
=yes
14149 rm -f core conftest.err conftest.
$ac_objext \
14150 conftest
$ac_exeext conftest.
$ac_ext
14151 LIBS
="$am_save_LIBS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14156 $as_echo "$am_cv_func_iconv" >&6; }
14157 if test "$am_cv_func_iconv" = yes; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14159 $as_echo_n "checking for working iconv... " >&6; }
14160 if ${am_cv_func_iconv_works+:} false
; then :
14161 $as_echo_n "(cached) " >&6
14164 am_save_LIBS
="$LIBS"
14165 if test $am_cv_lib_iconv = yes; then
14166 LIBS
="$LIBS $LIBICONV"
14168 am_cv_func_iconv_works
=no
14169 for ac_iconv_const
in '' 'const'; do
14170 if test "$cross_compiling" = yes; then :
14172 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
14173 *) am_cv_func_iconv_works
="guessing yes" ;;
14176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14180 #include <string.h>
14182 #ifndef ICONV_CONST
14183 # define ICONV_CONST $ac_iconv_const
14190 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14191 successful returns. This is even documented in
14192 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14194 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14195 if (cd_utf8_to_88591 != (iconv_t)(-1))
14197 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14199 ICONV_CONST char *inptr = input;
14200 size_t inbytesleft = strlen (input);
14201 char *outptr = buf;
14202 size_t outbytesleft = sizeof (buf);
14203 size_t res = iconv (cd_utf8_to_88591,
14204 &inptr, &inbytesleft,
14205 &outptr, &outbytesleft);
14208 iconv_close (cd_utf8_to_88591);
14211 /* Test against Solaris 10 bug: Failures are not distinguishable from
14212 successful returns. */
14214 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14215 if (cd_ascii_to_88591 != (iconv_t)(-1))
14217 static ICONV_CONST char input[] = "\263";
14219 ICONV_CONST char *inptr = input;
14220 size_t inbytesleft = strlen (input);
14221 char *outptr = buf;
14222 size_t outbytesleft = sizeof (buf);
14223 size_t res = iconv (cd_ascii_to_88591,
14224 &inptr, &inbytesleft,
14225 &outptr, &outbytesleft);
14228 iconv_close (cd_ascii_to_88591);
14231 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14233 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14234 if (cd_88591_to_utf8 != (iconv_t)(-1))
14236 static ICONV_CONST char input[] = "\304";
14237 static char buf[2] = { (char)0xDE, (char)0xAD };
14238 ICONV_CONST char *inptr = input;
14239 size_t inbytesleft = 1;
14240 char *outptr = buf;
14241 size_t outbytesleft = 1;
14242 size_t res = iconv (cd_88591_to_utf8,
14243 &inptr, &inbytesleft,
14244 &outptr, &outbytesleft);
14245 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14247 iconv_close (cd_88591_to_utf8);
14250 #if 0 /* This bug could be worked around by the caller. */
14251 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14253 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14254 if (cd_88591_to_utf8 != (iconv_t)(-1))
14256 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14258 ICONV_CONST char *inptr = input;
14259 size_t inbytesleft = strlen (input);
14260 char *outptr = buf;
14261 size_t outbytesleft = sizeof (buf);
14262 size_t res = iconv (cd_88591_to_utf8,
14263 &inptr, &inbytesleft,
14264 &outptr, &outbytesleft);
14267 iconv_close (cd_88591_to_utf8);
14271 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14274 /* Try standardized names. */
14275 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14276 /* Try IRIX, OSF/1 names. */
14277 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14278 /* Try AIX names. */
14279 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14280 /* Try HP-UX names. */
14281 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14282 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14283 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14285 if (cd1 != (iconv_t)(-1))
14287 if (cd2 != (iconv_t)(-1))
14289 if (cd3 != (iconv_t)(-1))
14291 if (cd4 != (iconv_t)(-1))
14300 if ac_fn_cxx_try_run
"$LINENO"; then :
14301 am_cv_func_iconv_works
=yes
14303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14304 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14307 test "$am_cv_func_iconv_works" = no ||
break
14309 LIBS
="$am_save_LIBS"
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14313 $as_echo "$am_cv_func_iconv_works" >&6; }
14314 case "$am_cv_func_iconv_works" in
14315 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
14316 *) am_func_iconv
=yes ;;
14319 am_func_iconv
=no am_cv_lib_iconv
=no
14321 if test "$am_func_iconv" = yes; then
14323 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14326 if test "$am_cv_lib_iconv" = yes; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14328 $as_echo_n "checking how to link with libiconv... " >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14330 $as_echo "$LIBICONV" >&6; }
14332 CPPFLAGS
="$am_save_CPPFLAGS"
14344 acl_save_prefix
="$prefix"
14345 prefix
="$acl_final_prefix"
14346 acl_save_exec_prefix
="$exec_prefix"
14347 exec_prefix
="$acl_final_exec_prefix"
14349 eval additional_includedir
=\"$includedir\"
14350 eval additional_libdir
=\"$libdir\"
14352 exec_prefix
="$acl_save_exec_prefix"
14353 prefix
="$acl_save_prefix"
14356 # Check whether --with-libintl-prefix was given.
14357 if test "${with_libintl_prefix+set}" = set; then :
14358 withval
=$with_libintl_prefix;
14359 if test "X$withval" = "Xno"; then
14362 if test "X$withval" = "X"; then
14364 acl_save_prefix
="$prefix"
14365 prefix
="$acl_final_prefix"
14366 acl_save_exec_prefix
="$exec_prefix"
14367 exec_prefix
="$acl_final_exec_prefix"
14369 eval additional_includedir
=\"$includedir\"
14370 eval additional_libdir
=\"$libdir\"
14372 exec_prefix
="$acl_save_exec_prefix"
14373 prefix
="$acl_save_prefix"
14376 additional_includedir
="$withval/include"
14377 additional_libdir
="$withval/lib"
14384 # Check whether --with-libintl-type was given.
14385 if test "${with_libintl_type+set}" = set; then :
14386 withval
=$with_libintl_type; with_libintl_type
=$withval
14388 with_libintl_type
=auto
14391 lib_type
=`eval echo \$with_libintl_type`
14398 names_already_handled
=
14399 names_next_round
='intl '
14400 while test -n "$names_next_round"; do
14401 names_this_round
="$names_next_round"
14403 for name
in $names_this_round; do
14405 for n
in $names_already_handled; do
14406 if test "$n" = "$name"; then
14407 already_handled
=yes
14411 if test -z "$already_handled"; then
14412 names_already_handled
="$names_already_handled $name"
14413 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14414 eval value
=\"\
$HAVE_LIB$uppername\"
14415 if test -n "$value"; then
14416 if test "$value" = yes; then
14417 eval value
=\"\
$LIB$uppername\"
14418 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14419 eval value
=\"\
$LTLIB$uppername\"
14420 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14429 if test $use_additional = yes; then
14430 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14431 found_dir
="$additional_libdir"
14432 found_so
="$additional_libdir/lib$name.$shlibext"
14433 if test -f "$additional_libdir/lib$name.la"; then
14434 found_la
="$additional_libdir/lib$name.la"
14436 elif test x
$lib_type != xshared
; then
14437 if test -f "$additional_libdir/lib$name.$libext"; then
14438 found_dir
="$additional_libdir"
14439 found_a
="$additional_libdir/lib$name.$libext"
14440 if test -f "$additional_libdir/lib$name.la"; then
14441 found_la
="$additional_libdir/lib$name.la"
14446 if test "X$found_dir" = "X"; then
14447 for x
in $LDFLAGS $LTLIBINTL; do
14449 acl_save_prefix
="$prefix"
14450 prefix
="$acl_final_prefix"
14451 acl_save_exec_prefix
="$exec_prefix"
14452 exec_prefix
="$acl_final_exec_prefix"
14454 exec_prefix
="$acl_save_exec_prefix"
14455 prefix
="$acl_save_prefix"
14459 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14460 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14462 found_so
="$dir/lib$name.$shlibext"
14463 if test -f "$dir/lib$name.la"; then
14464 found_la
="$dir/lib$name.la"
14466 elif test x
$lib_type != xshared
; then
14467 if test -f "$dir/lib$name.$libext"; then
14469 found_a
="$dir/lib$name.$libext"
14470 if test -f "$dir/lib$name.la"; then
14471 found_la
="$dir/lib$name.la"
14477 if test "X$found_dir" != "X"; then
14482 if test "X$found_dir" != "X"; then
14483 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14484 if test "X$found_so" != "X"; then
14485 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14486 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14489 for x
in $ltrpathdirs; do
14490 if test "X$x" = "X$found_dir"; then
14495 if test -z "$haveit"; then
14496 ltrpathdirs
="$ltrpathdirs $found_dir"
14498 if test "$hardcode_direct" = yes; then
14499 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14501 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14502 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14504 for x
in $rpathdirs; do
14505 if test "X$x" = "X$found_dir"; then
14510 if test -z "$haveit"; then
14511 rpathdirs
="$rpathdirs $found_dir"
14515 for x
in $LDFLAGS $LIBINTL; do
14517 acl_save_prefix
="$prefix"
14518 prefix
="$acl_final_prefix"
14519 acl_save_exec_prefix
="$exec_prefix"
14520 exec_prefix
="$acl_final_exec_prefix"
14522 exec_prefix
="$acl_save_exec_prefix"
14523 prefix
="$acl_save_prefix"
14525 if test "X$x" = "X-L$found_dir"; then
14530 if test -z "$haveit"; then
14531 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14533 if test "$hardcode_minus_L" != no
; then
14534 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14536 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14542 if test "X$found_a" != "X"; then
14543 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14545 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14548 additional_includedir
=
14549 case "$found_dir" in
14551 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14552 additional_includedir
="$basedir/include"
14555 if test "X$additional_includedir" != "X"; then
14556 if test "X$additional_includedir" != "X/usr/include"; then
14558 if test "X$additional_includedir" = "X/usr/local/include"; then
14559 if test -n "$GCC"; then
14561 linux
*) haveit
=yes;;
14565 if test -z "$haveit"; then
14566 for x
in $CPPFLAGS $INCINTL; do
14568 acl_save_prefix
="$prefix"
14569 prefix
="$acl_final_prefix"
14570 acl_save_exec_prefix
="$exec_prefix"
14571 exec_prefix
="$acl_final_exec_prefix"
14573 exec_prefix
="$acl_save_exec_prefix"
14574 prefix
="$acl_save_prefix"
14576 if test "X$x" = "X-I$additional_includedir"; then
14581 if test -z "$haveit"; then
14582 if test -d "$additional_includedir"; then
14583 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14589 if test -n "$found_la"; then
14590 save_libdir
="$libdir"
14591 case "$found_la" in
14592 */* |
*\\*) .
"$found_la" ;;
14593 *) .
"./$found_la" ;;
14595 libdir
="$save_libdir"
14596 for dep
in $dependency_libs; do
14599 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14600 if test "X$additional_libdir" != "X/usr/lib"; then
14602 if test "X$additional_libdir" = "X/usr/local/lib"; then
14603 if test -n "$GCC"; then
14605 linux
*) haveit
=yes;;
14609 if test -z "$haveit"; then
14611 for x
in $LDFLAGS $LIBINTL; do
14613 acl_save_prefix
="$prefix"
14614 prefix
="$acl_final_prefix"
14615 acl_save_exec_prefix
="$exec_prefix"
14616 exec_prefix
="$acl_final_exec_prefix"
14618 exec_prefix
="$acl_save_exec_prefix"
14619 prefix
="$acl_save_prefix"
14621 if test "X$x" = "X-L$additional_libdir"; then
14626 if test -z "$haveit"; then
14627 if test -d "$additional_libdir"; then
14628 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14632 for x
in $LDFLAGS $LTLIBINTL; do
14634 acl_save_prefix
="$prefix"
14635 prefix
="$acl_final_prefix"
14636 acl_save_exec_prefix
="$exec_prefix"
14637 exec_prefix
="$acl_final_exec_prefix"
14639 exec_prefix
="$acl_save_exec_prefix"
14640 prefix
="$acl_save_prefix"
14642 if test "X$x" = "X-L$additional_libdir"; then
14647 if test -z "$haveit"; then
14648 if test -d "$additional_libdir"; then
14649 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14656 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14657 if test "$enable_rpath" != no
; then
14659 for x
in $rpathdirs; do
14660 if test "X$x" = "X$dir"; then
14665 if test -z "$haveit"; then
14666 rpathdirs
="$rpathdirs $dir"
14669 for x
in $ltrpathdirs; do
14670 if test "X$x" = "X$dir"; then
14675 if test -z "$haveit"; then
14676 ltrpathdirs
="$ltrpathdirs $dir"
14681 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14684 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14687 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14688 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14694 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14695 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14696 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14698 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14699 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14706 if test "X$rpathdirs" != "X"; then
14707 if test -n "$hardcode_libdir_separator"; then
14709 for found_dir
in $rpathdirs; do
14710 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14712 acl_save_libdir
="$libdir"
14714 eval flag
=\"$hardcode_libdir_flag_spec\"
14715 libdir
="$acl_save_libdir"
14716 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14718 for found_dir
in $rpathdirs; do
14719 acl_save_libdir
="$libdir"
14720 libdir
="$found_dir"
14721 eval flag
=\"$hardcode_libdir_flag_spec\"
14722 libdir
="$acl_save_libdir"
14723 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14727 if test "X$ltrpathdirs" != "X"; then
14728 for found_dir
in $ltrpathdirs; do
14729 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14734 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14735 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
14736 $as_echo_n "(cached) " >&6
14738 gt_save_CPPFLAGS
="$CPPFLAGS"
14739 CPPFLAGS
="$CPPFLAGS $INCINTL"
14740 gt_save_LIBS
="$LIBS"
14741 LIBS
="$LIBS $LIBINTL"
14742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14745 #include <libintl.h>
14746 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14747 extern int _nl_msg_cat_cntr;
14752 const char *_nl_expand_alias (const char *);
14753 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14755 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14757 $gt_revision_test_code
14763 bindtextdomain ("", "");
14764 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14770 if ac_fn_cxx_try_link
"$LINENO"; then :
14771 eval "$gt_func_gnugettext_libintl=yes"
14773 eval "$gt_func_gnugettext_libintl=no"
14775 rm -f core conftest.err conftest.
$ac_objext \
14776 conftest
$ac_exeext conftest.
$ac_ext
14777 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14778 LIBS
="$LIBS $LIBICONV"
14779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 #include <libintl.h>
14783 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14784 extern int _nl_msg_cat_cntr;
14789 const char *_nl_expand_alias (const char *);
14790 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14792 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14794 $gt_revision_test_code
14800 bindtextdomain ("", "");
14801 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14807 if ac_fn_cxx_try_link
"$LINENO"; then :
14808 LIBINTL
="$LIBINTL $LIBICONV"
14809 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14810 eval "$gt_func_gnugettext_libintl=yes"
14813 rm -f core conftest.err conftest.
$ac_objext \
14814 conftest
$ac_exeext conftest.
$ac_ext
14816 CPPFLAGS
="$gt_save_CPPFLAGS"
14817 LIBS
="$gt_save_LIBS"
14819 eval ac_res
=\$
$gt_func_gnugettext_libintl
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14821 $as_echo "$ac_res" >&6; }
14824 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14825 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14826 && test "$PACKAGE" != gettext-runtime \
14827 && test "$PACKAGE" != gettext-tools
; }; then
14828 gt_use_preinstalled_gnugettext
=yes
14837 if test -n "$INTL_MACOSX_LIBS"; then
14838 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14839 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14840 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
14841 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
14845 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14846 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14848 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14856 $as_echo_n "checking whether to use NLS... " >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14858 $as_echo "$USE_NLS" >&6; }
14859 if test "$USE_NLS" = "yes"; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14861 $as_echo_n "checking where the gettext function comes from... " >&6; }
14862 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14863 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14864 gt_source
="external libintl"
14869 gt_source
="included intl directory"
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14872 $as_echo "$gt_source" >&6; }
14875 if test "$USE_NLS" = "yes"; then
14877 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14878 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14880 $as_echo_n "checking how to link with libintl... " >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14882 $as_echo "$LIBINTL" >&6; }
14884 for element
in $INCINTL; do
14886 for x
in $CPPFLAGS; do
14888 acl_save_prefix
="$prefix"
14889 prefix
="$acl_final_prefix"
14890 acl_save_exec_prefix
="$exec_prefix"
14891 exec_prefix
="$acl_final_exec_prefix"
14893 exec_prefix
="$acl_save_exec_prefix"
14894 prefix
="$acl_save_prefix"
14896 if test "X$x" = "X$element"; then
14901 if test -z "$haveit"; then
14902 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14909 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14912 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14921 INTLLIBS
="$LIBINTL"
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14941 $as_echo_n "checking whether NLS is requested... " >&6; }
14942 if test x
"$USE_NLS" != xyes
; then
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14947 $as_echo "yes" >&6; }
14949 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14953 $as_echo_n "checking for catalogs to be installed... " >&6; }
14954 # Look for .po and .gmo files in the source directory.
14957 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
14958 # If there aren't any .gmo files the shell will give us the
14959 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14961 case "$cat" in *\
**)
14964 # The quadruple backslash is collapsed to a double backslash
14965 # by the backticks, then collapsed again by the double quotes,
14966 # leaving us with one backslash in the sed expression (right
14967 # before the dot that mustn't act as a wildcard).
14968 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14969 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
14970 # The user is allowed to set LINGUAS to a list of languages to
14971 # install catalogs for. If it's empty that means "all of them."
14972 if test "x$LINGUAS" = x
; then
14973 CATALOGS
="$CATALOGS $cat"
14974 XLINGUAS
="$XLINGUAS $lang"
14976 case "$LINGUAS" in *$lang*)
14977 CATALOGS
="$CATALOGS $cat"
14978 XLINGUAS
="$XLINGUAS $lang"
14983 LINGUAS
="$XLINGUAS"
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14985 $as_echo "$LINGUAS" >&6; }
14998 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14999 # -liconv on the link line twice.
15000 case "$LIBINTL" in *$LIBICONV*)
15004 # Check whether --enable-secureplt was given.
15005 if test "${enable_secureplt+set}" = set; then :
15006 enableval
=$enable_secureplt;
15010 # Check whether --enable-mingw-wildcard was given.
15011 if test "${enable_mingw_wildcard+set}" = set; then :
15012 enableval
=$enable_mingw_wildcard;
15014 enable_mingw_wildcard
=platform
15017 if test x
"$enable_mingw_wildcard" != xplatform
; then :
15019 cat >>confdefs.h
<<_ACEOF
15020 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
15025 # Check whether --enable-large-address-aware was given.
15026 if test "${enable_large_address_aware+set}" = set; then :
15027 enableval
=$enable_large_address_aware;
15030 if test x
"$enable_large_address_aware" = xyes
; then :
15032 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
15036 # Check whether --enable-leading-mingw64-underscores was given.
15037 if test "${enable_leading_mingw64_underscores+set}" = set; then :
15038 enableval
=$enable_leading_mingw64_underscores;
15041 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
15043 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
15047 # Check whether --enable-cld was given.
15048 if test "${enable_cld+set}" = set; then :
15049 enableval
=$enable_cld;
15055 # Check whether --enable-frame-pointer was given.
15056 if test "${enable_frame_pointer+set}" = set; then :
15057 enableval
=$enable_frame_pointer;
15061 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
15062 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15063 enable_frame_pointer
=no
15066 enable_frame_pointer
=yes
15074 i
[34567]86-*-* | x86_64-
*-*)
15075 if test "x$enable_cld" = xyes
; then
15076 tm_defines
="${tm_defines} USE_IX86_CLD=1"
15078 if test "x$enable_frame_pointer" = xyes
; then
15079 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
15084 # Windows32 Registry support for specifying GCC installation paths.
15085 # Check whether --enable-win32-registry was given.
15086 if test "${enable_win32_registry+set}" = set; then :
15087 enableval
=$enable_win32_registry;
15092 win32 | pe | cygwin
* | mingw32
*)
15093 if test "x$enable_win32_registry" != xno
; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15095 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15096 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15097 $as_echo_n "(cached) " >&6
15099 ac_func_search_save_LIBS
=$LIBS
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15109 char RegOpenKeyExA ();
15113 return RegOpenKeyExA ();
15118 for ac_lib
in '' advapi32
; do
15119 if test -z "$ac_lib"; then
15120 ac_res
="none required"
15123 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15125 if ac_fn_cxx_try_link
"$LINENO"; then :
15126 ac_cv_search_RegOpenKeyExA
=$ac_res
15128 rm -f core conftest.err conftest.
$ac_objext \
15130 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15134 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15137 ac_cv_search_RegOpenKeyExA
=no
15139 rm conftest.
$ac_ext
15140 LIBS
=$ac_func_search_save_LIBS
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15143 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15144 ac_res
=$ac_cv_search_RegOpenKeyExA
15145 if test "$ac_res" != no
; then :
15146 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15149 enable_win32_registry
=no
15154 if test "x$enable_win32_registry" != xno
; then
15156 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15159 if test "x$enable_win32_registry" != xyes \
15160 && test "x$enable_win32_registry" != x
; then
15162 cat >>confdefs.h
<<_ACEOF
15163 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15171 # Get an absolute path to the GCC top-level source directory
15172 holddir
=`${PWDCMD-pwd}`
15174 topdir
=`${PWDCMD-pwd}`
15177 # Conditionalize the makefile for this host machine.
15179 for f
in ${host_xmake_file}
15181 if test -f ${srcdir}/config
/$f
15183 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
15187 # Conditionalize the makefile for this target machine.
15189 for f
in ${tmake_file}
15191 if test -f ${srcdir}/config
/$f
15193 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
15196 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
15198 out_object_file
=`basename $out_file .cc`.o
15199 common_out_object_file
=`basename $common_out_file .cc`.o
15201 tm_file_list
="options.h"
15202 tm_include_list
="options.h insn-constants.h"
15203 for f
in $tm_file; do
15206 f
=`echo $f | sed 's/^..//'`
15207 tm_file_list
="${tm_file_list} $f"
15208 tm_include_list
="${tm_include_list} $f"
15211 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
15212 tm_include_list
="${tm_include_list} $f"
15215 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
15216 tm_include_list
="${tm_include_list} config/$f"
15223 for f
in $tm_p_file; do
15226 tm_p_file_list
="${tm_p_file_list} $f"
15227 tm_p_include_list
="${tm_p_include_list} $f"
15230 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
15231 tm_p_include_list
="${tm_p_include_list} config/$f"
15237 for f
in $tm_d_file; do
15240 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
15241 tm_d_include_list
="${tm_d_include_list} config/$f"
15247 tm_rust_include_list
=
15248 for f
in $tm_rust_file; do
15251 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
15252 tm_rust_include_list
="${tm_rust_include_list} config/$f"
15259 for f
in $xm_file; do
15262 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
15263 xm_include_list
="${xm_include_list} $f"
15266 xm_file_list
="${xm_file_list} $f"
15267 xm_include_list
="${xm_include_list} $f"
15270 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
15271 xm_include_list
="${xm_include_list} config/$f"
15277 host_xm_include_list
=
15278 for f
in $host_xm_file; do
15281 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
15282 host_xm_include_list
="${host_xm_include_list} $f"
15285 host_xm_file_list
="${host_xm_file_list} $f"
15286 host_xm_include_list
="${host_xm_include_list} $f"
15289 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
15290 host_xm_include_list
="${host_xm_include_list} config/$f"
15295 build_xm_file_list
=
15296 for f
in $build_xm_file; do
15299 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
15300 build_xm_include_list
="${build_xm_include_list} $f"
15302 auto-build.h | auto-host.h
)
15303 build_xm_file_list
="${build_xm_file_list} $f"
15304 build_xm_include_list
="${build_xm_include_list} $f"
15307 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
15308 build_xm_include_list
="${build_xm_include_list} config/$f"
15313 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15314 # cross-compiler which does not use the native headers and libraries.
15315 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15318 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15319 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
15321 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
15322 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
15323 if test "x$with_build_sysroot" != x
; then
15324 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15326 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15329 if test x
$host != x
$target
15331 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
15333 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
15334 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
15335 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15338 if test "x$with_build_sysroot" != "x"; then
15339 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
15340 elif test "x$with_sysroot" = x
; then
15341 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
15342 elif test "x$with_sysroot" = xyes
; then
15343 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15345 target_header_dir
="${with_sysroot}${native_system_header_dir}"
15348 target_header_dir
=${native_system_header_dir}
15351 # If this is a cross-compiler that does not
15352 # have its own set of headers then define
15355 # If this is using newlib, without having the headers available now,
15356 # then define inhibit_libc in LIBGCC2_CFLAGS.
15357 # This prevents libgcc2 from containing any code which requires libc
15359 : ${inhibit_libc=false}
15360 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
15361 test x
$with_newlib = xyes
; } &&
15362 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
15367 # When building gcc with a cross-compiler, we need to adjust things so
15368 # that the generator programs are still built with the native compiler.
15369 # Also, we cannot run fixincludes.
15371 # These are the normal (build=host) settings:
15372 CC_FOR_BUILD
='$(CC)'
15373 CXX_FOR_BUILD
='$(CXX)'
15374 BUILD_CFLAGS
='$(ALL_CFLAGS)'
15375 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
15376 BUILD_LDFLAGS
='$(LDFLAGS)'
15377 STMP_FIXINC
=stmp-fixinc
15379 # And these apply if build != host, or we are generating coverage data
15380 if test x
$build != x
$host ||
test "x$coverage_flags" != x
15382 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15383 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15384 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
15388 if test x
$enable_fixincludes = xno
;
15393 # Expand extra_headers to include complete path.
15394 # This substitutes for lots of t-* files.
15395 extra_headers_list
=
15396 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15397 for file in ${extra_headers} ; do
15398 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15401 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15402 if test x
"$use_gcc_tgmath" = xyes
15403 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15406 # Define collect2 in Makefile.
15407 case $host_can_use_collect2 in
15409 *) collect2
='collect2$(exeext)' ;;
15413 # Add a definition of USE_COLLECT2 if system wants one.
15414 case $use_collect2 in
15415 no
) use_collect2
= ;;
15418 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
15419 xm_defines
="${xm_defines} USE_COLLECT2"
15420 case $host_can_use_collect2 in
15422 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
15429 cat >>confdefs.h
<<_ACEOF
15430 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15434 # ---------------------------
15435 # Assembler & linker features
15436 # ---------------------------
15438 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15439 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15440 # However when ld-new is first executed from the build tree, libtool will
15441 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15442 # to the build tree. While doing this we need to use the previous-stage
15443 # linker, or we have an infinite loop. The presence of a shell script as
15444 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15445 # the gcc/collect-ld script. So we need to know how libtool works, or
15446 # exec-tool will fail.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15452 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15457 macro_version
='2.2.7a'
15458 macro_revision
='1.3134'
15472 ltmain
="$ac_aux_dir/ltmain.sh"
15474 # Backslashify metacharacters that are still active within
15475 # double-quoted strings.
15476 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
15478 # Same as above, but do not quote variable references.
15479 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
15481 # Sed substitution to delay expansion of an escaped shell variable in a
15482 # double_quote_subst'ed string.
15483 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15485 # Sed substitution to delay expansion of an escaped single quote.
15486 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15488 # Sed substitution to avoid accidental globbing in evaled expressions
15489 no_glob_subst
='s/\*/\\\*/g'
15491 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15496 $as_echo_n "checking how to print strings... " >&6; }
15497 # Test print first, because it will be a builtin if present.
15498 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15504 # Use this function as a fallback that always works.
15505 func_fallback_echo ()
15507 eval 'cat <<_LTECHO_EOF
15511 ECHO='func_fallback_echo
'
15514 # func_echo_all arg...
15515 # Invoke $ECHO with all args, space-separated.
15522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15523 $as_echo "printf" >&6; } ;;
15524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15525 $as_echo "print -r" >&6; } ;;
15526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15527 $as_echo "cat" >&6; } ;;
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15545 if ${ac_cv_path_SED+:} false; then :
15546 $as_echo_n "(cached) " >&6
15548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15549 for ac_i in 1 2 3 4 5 6 7; do
15550 ac_script="$ac_script$as_nl$ac_script"
15552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15553 { ac_script=; unset ac_script;}
15554 if test -z "$SED"; then
15555 ac_path_SED_found=false
15556 # Loop through the user's path and
test for each of PROGNAME-LIST
15557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15558 for as_dir
in $PATH
15561 test -z "$as_dir" && as_dir
=.
15562 for ac_prog
in sed gsed
; do
15563 for ac_exec_ext
in '' $ac_executable_extensions; do
15564 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
15565 as_fn_executable_p
"$ac_path_SED" ||
continue
15566 # Check for GNU ac_path_SED and select it if it is found.
15567 # Check for GNU $ac_path_SED
15568 case `"$ac_path_SED" --version 2>&1` in
15570 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
15573 $as_echo_n 0123456789 >"conftest.in"
15576 cat "conftest.in" "conftest.in" >"conftest.tmp"
15577 mv "conftest.tmp" "conftest.in"
15578 cp "conftest.in" "conftest.nl"
15579 $as_echo '' >> "conftest.nl"
15580 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15583 if test $ac_count -gt ${ac_path_SED_max-0}; then
15584 # Best one so far, save it but keep looking for a better one
15585 ac_cv_path_SED
="$ac_path_SED"
15586 ac_path_SED_max
=$ac_count
15588 # 10*(2^10) chars as input seems more than enough
15589 test $ac_count -gt 10 && break
15591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15594 $ac_path_SED_found && break 3
15599 if test -z "$ac_cv_path_SED"; then
15600 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
15603 ac_cv_path_SED
=$SED
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15608 $as_echo "$ac_cv_path_SED" >&6; }
15609 SED
="$ac_cv_path_SED"
15612 test -z "$SED" && SED
=sed
15613 Xsed
="$SED -e 1s/^X//"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15626 $as_echo_n "checking for fgrep... " >&6; }
15627 if ${ac_cv_path_FGREP+:} false
; then :
15628 $as_echo_n "(cached) " >&6
15630 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
15631 then ac_cv_path_FGREP
="$GREP -F"
15633 if test -z "$FGREP"; then
15634 ac_path_FGREP_found
=false
15635 # Loop through the user's path and test for each of PROGNAME-LIST
15636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15637 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
15640 test -z "$as_dir" && as_dir
=.
15641 for ac_prog
in fgrep
; do
15642 for ac_exec_ext
in '' $ac_executable_extensions; do
15643 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
15644 as_fn_executable_p
"$ac_path_FGREP" ||
continue
15645 # Check for GNU ac_path_FGREP and select it if it is found.
15646 # Check for GNU $ac_path_FGREP
15647 case `"$ac_path_FGREP" --version 2>&1` in
15649 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
15652 $as_echo_n 0123456789 >"conftest.in"
15655 cat "conftest.in" "conftest.in" >"conftest.tmp"
15656 mv "conftest.tmp" "conftest.in"
15657 cp "conftest.in" "conftest.nl"
15658 $as_echo 'FGREP' >> "conftest.nl"
15659 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15660 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15661 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15663 # Best one so far, save it but keep looking for a better one
15664 ac_cv_path_FGREP
="$ac_path_FGREP"
15665 ac_path_FGREP_max
=$ac_count
15667 # 10*(2^10) chars as input seems more than enough
15668 test $ac_count -gt 10 && break
15670 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15673 $ac_path_FGREP_found && break 3
15678 if test -z "$ac_cv_path_FGREP"; then
15679 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15682 ac_cv_path_FGREP
=$FGREP
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15688 $as_echo "$ac_cv_path_FGREP" >&6; }
15689 FGREP
="$ac_cv_path_FGREP"
15692 test -z "$GREP" && GREP
=grep
15712 # Check whether --with-gnu-ld was given.
15713 if test "${with_gnu_ld+set}" = set; then :
15714 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15720 if test "$GCC" = yes; then
15721 # Check if gcc -print-prog-name=ld gives a path.
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15723 $as_echo_n "checking for ld used by $CC... " >&6; }
15726 # gcc leaves a trailing carriage return which upsets mingw
15727 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15729 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15732 # Accept absolute paths.
15734 re_direlt
='/[^/][^/]*/\.\./'
15735 # Canonicalize the pathname of ld
15736 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15737 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15738 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15740 test -z "$LD" && LD
="$ac_prog"
15743 # If it fails, then pretend we aren't using GCC.
15747 # If it is relative, then search for the first ld in PATH.
15748 with_gnu_ld
=unknown
15751 elif test "$with_gnu_ld" = yes; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15753 $as_echo_n "checking for GNU ld... " >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15756 $as_echo_n "checking for non-GNU ld... " >&6; }
15758 if ${lt_cv_path_LD+:} false
; then :
15759 $as_echo_n "(cached) " >&6
15761 if test -z "$LD"; then
15762 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15763 for ac_dir
in $PATH; do
15765 test -z "$ac_dir" && ac_dir
=.
15766 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15767 lt_cv_path_LD
="$ac_dir/$ac_prog"
15768 # Check to see if the program is GNU ld. I'd rather use --version,
15769 # but apparently some variants of GNU ld only accept -v.
15770 # Break only if it was the GNU/non-GNU ld that we prefer.
15771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15772 *GNU
* |
*'with BFD'*)
15773 test "$with_gnu_ld" != no
&& break
15776 test "$with_gnu_ld" != yes && break
15783 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15787 LD
="$lt_cv_path_LD"
15788 if test -n "$LD"; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15790 $as_echo "$LD" >&6; }
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15795 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15798 if ${lt_cv_prog_gnu_ld+:} false
; then :
15799 $as_echo_n "(cached) " >&6
15801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15802 case `$LD -v 2>&1 </dev/null` in
15803 *GNU
* |
*'with BFD'*)
15804 lt_cv_prog_gnu_ld
=yes
15807 lt_cv_prog_gnu_ld
=no
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15813 with_gnu_ld
=$lt_cv_prog_gnu_ld
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15825 if ${lt_cv_path_NM+:} false
; then :
15826 $as_echo_n "(cached) " >&6
15828 if test -n "$NM"; then
15829 # Let the user override the nm to test.
15830 lt_nm_to_check
="$NM"
15832 lt_nm_to_check
="${ac_tool_prefix}nm"
15833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15834 lt_nm_to_check
="$lt_nm_to_check nm"
15837 for lt_tmp_nm
in "$lt_nm_to_check"; do
15838 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15839 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
15841 test -z "$ac_dir" && ac_dir
=.
15842 # Strip out any user-provided options from the nm to test twice,
15843 # the first time to test to see if nm (rather than its options) has
15844 # an explicit path, the second time to yield a file which can be
15846 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15847 case "$tmp_nm_path" in
15848 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
15849 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
15851 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15852 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
15853 # Check to see if the nm accepts a BSD-compat flag.
15854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15855 # nm: unknown option "B" ignored
15856 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15857 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
15861 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15863 lt_cv_path_NM
="$tmp_nm -p"
15867 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15868 continue # so that we can try to find one that supports BSD flags
15877 : ${lt_cv_path_NM=no}
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15880 $as_echo "$lt_cv_path_NM" >&6; }
15881 if test "$lt_cv_path_NM" != "no"; then
15882 NM
="$lt_cv_path_NM"
15884 # Didn't find any BSD compatible name lister, look for dumpbin.
15885 if test -n "$DUMPBIN"; then :
15886 # Let the user override the test.
15888 if test -n "$ac_tool_prefix"; then
15889 for ac_prog
in dumpbin
"link -dump"
15891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15892 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15894 $as_echo_n "checking for $ac_word... " >&6; }
15895 if ${ac_cv_prog_DUMPBIN+:} false
; then :
15896 $as_echo_n "(cached) " >&6
15898 if test -n "$DUMPBIN"; then
15899 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
15901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15902 for as_dir
in $PATH
15905 test -z "$as_dir" && as_dir
=.
15906 for ac_exec_ext
in '' $ac_executable_extensions; do
15907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15908 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
15909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15918 DUMPBIN
=$ac_cv_prog_DUMPBIN
15919 if test -n "$DUMPBIN"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15921 $as_echo "$DUMPBIN" >&6; }
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15928 test -n "$DUMPBIN" && break
15931 if test -z "$DUMPBIN"; then
15932 ac_ct_DUMPBIN
=$DUMPBIN
15933 for ac_prog
in dumpbin
"link -dump"
15935 # Extract the first word of "$ac_prog", so it can be a program name with args.
15936 set dummy
$ac_prog; ac_word
=$2
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15938 $as_echo_n "checking for $ac_word... " >&6; }
15939 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
15940 $as_echo_n "(cached) " >&6
15942 if test -n "$ac_ct_DUMPBIN"; then
15943 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
15945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15946 for as_dir
in $PATH
15949 test -z "$as_dir" && as_dir
=.
15950 for ac_exec_ext
in '' $ac_executable_extensions; do
15951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15962 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
15963 if test -n "$ac_ct_DUMPBIN"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15965 $as_echo "$ac_ct_DUMPBIN" >&6; }
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15972 test -n "$ac_ct_DUMPBIN" && break
15975 if test "x$ac_ct_DUMPBIN" = x
; then
15978 case $cross_compiling:$ac_tool_warned in
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15982 ac_tool_warned
=yes ;;
15984 DUMPBIN
=$ac_ct_DUMPBIN
15988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15990 DUMPBIN
="$DUMPBIN -symbols"
15998 if test "$DUMPBIN" != ":"; then
16002 test -z "$NM" && NM
=nm
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
16010 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
16011 if ${lt_cv_nm_interface+:} false
; then :
16012 $as_echo_n "(cached) " >&6
16014 lt_cv_nm_interface
="BSD nm"
16015 echo "int some_variable = 0;" > conftest.
$ac_ext
16016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
16017 (eval "$ac_compile" 2>conftest.err
)
16018 cat conftest.err
>&5
16019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
16020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
16021 cat conftest.err
>&5
16022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16023 cat conftest.out
>&5
16024 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
16025 lt_cv_nm_interface
="MS dumpbin"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16030 $as_echo "$lt_cv_nm_interface" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16033 $as_echo_n "checking whether ln -s works... " >&6; }
16035 if test "$LN_S" = "ln -s"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16037 $as_echo "yes" >&6; }
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16040 $as_echo "no, using $LN_S" >&6; }
16043 # find the maximum length of command line arguments
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16045 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16046 if ${lt_cv_sys_max_cmd_len+:} false
; then :
16047 $as_echo_n "(cached) " >&6
16054 # On DJGPP, this test can blow up pretty badly due to problems in libc
16055 # (any single argument exceeding 2000 bytes causes a buffer overrun
16056 # during glob expansion). Even if it were fixed, the result of this
16057 # check would be larger than it should be.
16058 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
16062 # Under GNU Hurd, this test is not required because there is
16063 # no limit to the length of command line arguments.
16064 # Libtool will interpret -1 as no limit whatsoever
16065 lt_cv_sys_max_cmd_len
=-1;
16068 cygwin
* | mingw
* | cegcc
*)
16069 # On Win9x/ME, this test blows up -- it succeeds, but takes
16070 # about 5 minutes as the teststring grows exponentially.
16071 # Worse, since 9x/ME are not pre-emptively multitasking,
16072 # you end up with a "frozen" computer, even though with patience
16073 # the test eventually succeeds (with a max line length of 256k).
16074 # Instead, let's just punt: use the minimum linelength reported by
16075 # all of the supported platforms: 8192 (on NT/2K/XP).
16076 lt_cv_sys_max_cmd_len
=8192;
16080 # On MiNT this can take a long time and run out of memory.
16081 lt_cv_sys_max_cmd_len
=8192;
16085 # On AmigaOS with pdksh, this test takes hours, literally.
16086 # So we just punt and use a minimum line length of 8192.
16087 lt_cv_sys_max_cmd_len
=8192;
16090 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
16091 # This has been around since 386BSD, at least. Likely further.
16092 if test -x /sbin
/sysctl
; then
16093 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
16094 elif test -x /usr
/sbin
/sysctl
; then
16095 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
16097 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
16099 # And add a safety zone
16100 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
16101 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
16105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16106 lt_cv_sys_max_cmd_len
=196608
16110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16112 # nice to cause kernel panics so lets avoid the loop below.
16113 # First set a reasonable default.
16114 lt_cv_sys_max_cmd_len
=16384
16116 if test -x /sbin
/sysconfig
; then
16117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16118 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
16123 lt_cv_sys_max_cmd_len
=102400
16125 sysv5
* | sco5v6
* | sysv4.2uw2
*)
16126 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16127 if test -n "$kargmax"; then
16128 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
16130 lt_cv_sys_max_cmd_len
=32768
16134 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
16135 if test -n "$lt_cv_sys_max_cmd_len"; then
16136 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
16137 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
16139 # Make teststring a little bigger before we do anything with it.
16140 # a 1K string should be a reasonable start.
16141 for i
in 1 2 3 4 5 6 7 8 ; do
16142 teststring
=$teststring$teststring
16144 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
16145 # If test is not a shell built-in, we'll probably end up computing a
16146 # maximum length that is only half of the actual maximum length, but
16148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16149 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
16150 test $i != 17 # 1/2 MB should be enough
16153 teststring
=$teststring$teststring
16155 # Only check the string length outside the loop.
16156 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
16158 # Add a significant safety factor because C++ compilers can tack on
16159 # massive amounts of additional arguments before passing them to the
16160 # linker. It appears as though 1/2 is a usable value.
16161 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
16168 if test -n $lt_cv_sys_max_cmd_len ; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16173 $as_echo "none" >&6; }
16175 max_cmd_len
=$lt_cv_sys_max_cmd_len
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16187 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16188 # Try some XSI features
16190 ( _lt_dummy
="a/b/c"
16191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16193 && eval 'test $(( 1 + 1 )) -eq 2 \
16194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
16197 $as_echo "$xsi_shell" >&6; }
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
16201 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
16203 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
16205 && lt_shell_append=yes
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
16207 $as_echo "$lt_shell_append" >&6; }
16210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16220 # test EBCDIC or ASCII
16221 case `echo X|tr X '\101'` in
16222 A) # ASCII based system
16223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16224 lt_SP2NL='tr \040 \012'
16225 lt_NL2SP='tr \015\012 \040\040'
16227 *) # EBCDIC based system
16228 lt_SP2NL='tr \100 \n'
16229 lt_NL2SP='tr \r\n \100\100'
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
16242 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
16243 if ${lt_cv_ld_reload_flag+:} false; then :
16244 $as_echo_n "(cached
) " >&6
16246 lt_cv_ld_reload_flag='-r'
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
16249 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16250 reload_flag=$lt_cv_ld_reload_flag
16251 case $reload_flag in
16253 *) reload_flag=" $reload_flag" ;;
16255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16258 if test "$GCC" = yes; then
16259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16274 if test -n "$ac_tool_prefix"; then
16275 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
16276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16278 $as_echo_n "checking
for $ac_word...
" >&6; }
16279 if ${ac_cv_prog_OBJDUMP+:} false; then :
16280 $as_echo_n "(cached
) " >&6
16282 if test -n "$OBJDUMP"; then
16283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
16293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16302 OBJDUMP=$ac_cv_prog_OBJDUMP
16303 if test -n "$OBJDUMP"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
16305 $as_echo "$OBJDUMP" >&6; }
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16308 $as_echo "no
" >&6; }
16313 if test -z "$ac_cv_prog_OBJDUMP"; then
16314 ac_ct_OBJDUMP=$OBJDUMP
16315 # Extract the first word of "objdump
", so it can be a program name with args.
16316 set dummy objdump; ac_word=$2
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16318 $as_echo_n "checking
for $ac_word...
" >&6; }
16319 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16320 $as_echo_n "(cached
) " >&6
16322 if test -n "$ac_ct_OBJDUMP"; then
16323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16329 test -z "$as_dir" && as_dir=.
16330 for ac_exec_ext in '' $ac_executable_extensions; do
16331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
16333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16343 if test -n "$ac_ct_OBJDUMP"; then
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
16345 $as_echo "$ac_ct_OBJDUMP" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16348 $as_echo "no
" >&6; }
16351 if test "x
$ac_ct_OBJDUMP" = x; then
16354 case $cross_compiling:$ac_tool_warned in
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16357 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16358 ac_tool_warned=yes ;;
16360 OBJDUMP=$ac_ct_OBJDUMP
16363 OBJDUMP="$ac_cv_prog_OBJDUMP"
16366 test -z "$OBJDUMP" && OBJDUMP=objdump
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
16377 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
16378 if ${lt_cv_deplibs_check_method+:} false; then :
16379 $as_echo_n "(cached
) " >&6
16381 lt_cv_file_magic_cmd='$MAGIC_CMD'
16382 lt_cv_file_magic_test_file=
16383 lt_cv_deplibs_check_method='unknown'
16384 # Need to set the preceding variable on all platforms that support
16385 # interlibrary dependencies.
16386 # 'none' -- dependencies not supported.
16387 # `unknown' -- same as none, but documents that we really don't know.
16388 # 'pass_all' -- all dependencies passed with no checks.
16389 # 'test_compile' -- check by making test program.
16390 # 'file_magic [[regex]]' -- check by looking for files in library path
16391 # which responds to the $file_magic_cmd with a given extended regex.
16392 # If you have `file' or equivalent on your system and you're not sure
16393 # whether `pass_all' will *always* work, you probably want this one.
16397 lt_cv_deplibs_check_method=pass_all
16401 lt_cv_deplibs_check_method=pass_all
16405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16406 lt_cv_file_magic_cmd='/usr/bin/file -L'
16407 lt_cv_file_magic_test_file=/shlib/libc.so
16411 # func_win32_libid is a shell function defined in ltmain.sh
16412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16413 lt_cv_file_magic_cmd='func_win32_libid'
16417 # Base MSYS/MinGW do not provide the 'file' command needed by
16418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16419 # unless we find 'file', for example because we are cross-compiling.
16420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16421 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
16422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16423 lt_cv_file_magic_cmd='func_win32_libid'
16425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16426 lt_cv_file_magic_cmd='$OBJDUMP -f'
16431 # use the weaker test based on 'objdump'. See mingw*.
16432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16433 lt_cv_file_magic_cmd='$OBJDUMP -f'
16436 darwin* | rhapsody*)
16437 lt_cv_deplibs_check_method=pass_all
16440 freebsd* | dragonfly*)
16441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16444 # Not sure whether the presence of OpenBSD here was a mistake.
16445 # Let's accept both of them until this is cleared up.
16446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16447 lt_cv_file_magic_cmd=/usr/bin/file
16448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16452 lt_cv_deplibs_check_method=pass_all
16457 lt_cv_deplibs_check_method=pass_all
16461 lt_cv_deplibs_check_method=pass_all
16464 hpux10.20* | hpux11*)
16465 lt_cv_file_magic_cmd=/usr/bin/file
16468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16472 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]'
16473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16487 irix5* | irix6* | nonstopux*)
16489 *-32|*"-32 ") libmagic=32-bit;;
16490 *-n32|*"-n32 ") libmagic=N32;;
16491 *-64|*"-64 ") libmagic=64-bit;;
16492 *) libmagic=never-match;;
16494 lt_cv_deplibs_check_method=pass_all
16497 # This must be Linux ELF.
16498 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16499 lt_cv_deplibs_check_method=pass_all
16503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16512 lt_cv_file_magic_cmd=/usr/bin/file
16513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16517 lt_cv_deplibs_check_method=pass_all
16521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
16522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16528 osf3* | osf4* | osf5*)
16529 lt_cv_deplibs_check_method=pass_all
16533 lt_cv_deplibs_check_method=pass_all
16537 lt_cv_deplibs_check_method=pass_all
16540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16541 lt_cv_deplibs_check_method=pass_all
16545 case $host_vendor in
16547 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]'
16548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16551 lt_cv_deplibs_check_method=pass_all
16554 lt_cv_file_magic_cmd='/bin/file'
16555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16558 lt_cv_file_magic_cmd='/bin/file'
16559 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
16560 lt_cv_file_magic_test_file=/lib/libc.so
16563 lt_cv_deplibs_check_method=pass_all
16566 lt_cv_deplibs_check_method=pass_all
16572 lt_cv_deplibs_check_method=pass_all
16575 # Assume VxWorks cross toolchains are built on Linux, possibly
16576 # as canadian for Windows hosts.
16577 lt_cv_deplibs_check_method=pass_all
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
16583 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16584 file_magic_cmd=$lt_cv_file_magic_cmd
16585 deplibs_check_method=$lt_cv_deplibs_check_method
16586 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16600 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
16601 for plugin in $plugin_names; do
16602 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16603 if test x$plugin_so = x$plugin; then
16604 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16606 if test x$plugin_so != x$plugin; then
16607 plugin_option="--plugin $plugin_so"
16612 if test -n "$ac_tool_prefix"; then
16613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16614 set dummy ${ac_tool_prefix}ar; ac_word=$2
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16616 $as_echo_n "checking
for $ac_word...
" >&6; }
16617 if ${ac_cv_prog_AR+:} false; then :
16618 $as_echo_n "(cached
) " >&6
16620 if test -n "$AR"; then
16621 ac_cv_prog_AR="$AR" # Let the user override the test.
16623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16627 test -z "$as_dir" && as_dir=.
16628 for ac_exec_ext in '' $ac_executable_extensions; do
16629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16630 ac_cv_prog_AR="${ac_tool_prefix}ar"
16631 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16641 if test -n "$AR"; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
16643 $as_echo "$AR" >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16646 $as_echo "no
" >&6; }
16651 if test -z "$ac_cv_prog_AR"; then
16653 # Extract the first word of "ar", so it can be a program name with args.
16654 set dummy ar; ac_word=$2
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16656 $as_echo_n "checking
for $ac_word...
" >&6; }
16657 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16658 $as_echo_n "(cached
) " >&6
16660 if test -n "$ac_ct_AR"; then
16661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16664 for as_dir in $PATH
16667 test -z "$as_dir" && as_dir=.
16668 for ac_exec_ext in '' $ac_executable_extensions; do
16669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16670 ac_cv_prog_ac_ct_AR="ar"
16671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16681 if test -n "$ac_ct_AR"; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
16683 $as_echo "$ac_ct_AR" >&6; }
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16686 $as_echo "no
" >&6; }
16689 if test "x
$ac_ct_AR" = x; then
16692 case $cross_compiling:$ac_tool_warned in
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16695 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16696 ac_tool_warned=yes ;;
16701 AR="$ac_cv_prog_AR"
16704 test -z "$AR" && AR=ar
16705 if test -n "$plugin_option"; then
16706 if $AR --help 2>&1 | grep -q "\
--plugin"; then
16708 $AR $plugin_option rc conftest.a conftest.c
16709 if test "$?
" != 0; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
16711 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
16713 AR="$AR $plugin_option"
16718 test -z "$AR_FLAGS" && AR_FLAGS=cru
16730 if test -n "$ac_tool_prefix"; then
16731 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
16732 set dummy ${ac_tool_prefix}strip; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16734 $as_echo_n "checking
for $ac_word...
" >&6; }
16735 if ${ac_cv_prog_STRIP+:} false; then :
16736 $as_echo_n "(cached
) " >&6
16738 if test -n "$STRIP"; then
16739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16758 STRIP=$ac_cv_prog_STRIP
16759 if test -n "$STRIP"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
16761 $as_echo "$STRIP" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16764 $as_echo "no
" >&6; }
16769 if test -z "$ac_cv_prog_STRIP"; then
16771 # Extract the first word of "strip
", so it can be a program name with args.
16772 set dummy strip; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16774 $as_echo_n "checking
for $ac_word...
" >&6; }
16775 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16776 $as_echo_n "(cached
) " >&6
16778 if test -n "$ac_ct_STRIP"; then
16779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788 ac_cv_prog_ac_ct_STRIP="strip
"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16799 if test -n "$ac_ct_STRIP"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
16801 $as_echo "$ac_ct_STRIP" >&6; }
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16804 $as_echo "no
" >&6; }
16807 if test "x
$ac_ct_STRIP" = x; then
16810 case $cross_compiling:$ac_tool_warned in
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16813 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16814 ac_tool_warned=yes ;;
16819 STRIP="$ac_cv_prog_STRIP"
16822 test -z "$STRIP" && STRIP=:
16829 if test -n "$ac_tool_prefix"; then
16830 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
16831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16833 $as_echo_n "checking
for $ac_word...
" >&6; }
16834 if ${ac_cv_prog_RANLIB+:} false; then :
16835 $as_echo_n "(cached
) " >&6
16837 if test -n "$RANLIB"; then
16838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in $PATH
16844 test -z "$as_dir" && as_dir=.
16845 for ac_exec_ext in '' $ac_executable_extensions; do
16846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
16848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16857 RANLIB=$ac_cv_prog_RANLIB
16858 if test -n "$RANLIB"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
16860 $as_echo "$RANLIB" >&6; }
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16863 $as_echo "no
" >&6; }
16868 if test -z "$ac_cv_prog_RANLIB"; then
16869 ac_ct_RANLIB=$RANLIB
16870 # Extract the first word of "ranlib
", so it can be a program name with args.
16871 set dummy ranlib; ac_word=$2
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16873 $as_echo_n "checking
for $ac_word...
" >&6; }
16874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16875 $as_echo_n "(cached
) " >&6
16877 if test -n "$ac_ct_RANLIB"; then
16878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16881 for as_dir in $PATH
16884 test -z "$as_dir" && as_dir=.
16885 for ac_exec_ext in '' $ac_executable_extensions; do
16886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16887 ac_cv_prog_ac_ct_RANLIB="ranlib
"
16888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16898 if test -n "$ac_ct_RANLIB"; then
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
16900 $as_echo "$ac_ct_RANLIB" >&6; }
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16903 $as_echo "no
" >&6; }
16906 if test "x
$ac_ct_RANLIB" = x; then
16909 case $cross_compiling:$ac_tool_warned in
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16912 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16913 ac_tool_warned=yes ;;
16915 RANLIB=$ac_ct_RANLIB
16918 RANLIB="$ac_cv_prog_RANLIB"
16921 test -z "$RANLIB" && RANLIB=:
16922 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16923 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
16924 RANLIB="$RANLIB $plugin_option"
16933 # Determine commands to create old-style static archives.
16934 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16935 old_postinstall_cmds='chmod 644 $oldlib'
16936 old_postuninstall_cmds=
16938 if test -n "$RANLIB"; then
16941 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
16944 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
16947 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
16952 lock_old_archive_extraction=yes ;;
16954 lock_old_archive_extraction=no ;;
16995 # If no C compiler was specified, use CC.
16998 # If no C compiler flags were specified, use CFLAGS.
16999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17001 # Allow CC to be a program name with arguments.
17005 # Check for command to grab the raw symbol name followed by C symbol from nm.
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
17007 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
17008 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17009 $as_echo_n "(cached
) " >&6
17012 # These are sane defaults that work on at least a few old systems.
17013 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17015 # Character class describing NM global symbol codes.
17016 symcode='[BCDEGRST]'
17018 # Regexp to match symbols that can be accessed directly from C.
17019 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17021 # Define system-specific variables.
17026 cygwin* | mingw* | pw32* | cegcc*)
17027 symcode='[ABCDGISTW]'
17030 if test "$host_cpu" = ia64; then
17031 symcode='[ABCDEGRST]'
17034 irix* | nonstopux*)
17035 symcode='[BCDEGRST]'
17038 symcode='[BCDEGQRST]'
17049 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17057 # If we're using GNU nm, then use its standard symbol codes.
17058 case `$NM -V 2>&1` in
17059 *GNU* | *'with BFD'*)
17060 symcode='[ABCDGIRSTW]' ;;
17063 # Transform an extracted symbol line into a proper C declaration.
17064 # Some systems (esp. on ia64) link data and code symbols differently,
17065 # so use this general approach.
17066 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17068 # Transform an extracted symbol line into symbol name and symbol address
17069 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17070 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'"
17072 # Handle CRLF in mingw tool chain
17076 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17080 # Try without a prefix underscore, then with it.
17081 for ac_symprfx in "" "_
"; do
17083 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17084 symxfrm="\\1 $ac_symprfx\\2 \\2"
17086 # Write the raw and C identifiers.
17087 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
17088 # Fake it for dumpbin and say T for any non-static function
17089 # and D for any global variable.
17090 # Also find C++ and __fastcall symbols from MSVC++,
17091 # which start with @ or ?.
17092 lt_cv_sys_global_symbol_pipe="$AWK '"\
17093 " {last_section=section; section=\$ 3};"\
17094 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17095 " \$ 0!~/External *\|/{next};"\
17096 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17097 " {if(hide[section]) next};"\
17098 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17099 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17100 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17101 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17102 " ' prfx
=^
$ac_symprfx"
17104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17107 # Check to see that the pipe works correctly.
17111 cat > conftest.$ac_ext <<_LT_EOF
17116 void nm_test_func(void);
17117 void nm_test_func(void){}
17121 int main(){nm_test_var='a';nm_test_func();return(0);}
17124 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17125 (eval $ac_compile) 2>&5
17127 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17128 test $ac_status = 0; }; then
17129 # Now try to grab the symbols.
17131 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
17132 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17134 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17135 test $ac_status = 0; } && test -s "$nlist"; then
17136 # Try sorting and uniquifying the output.
17137 if sort "$nlist" | uniq > "$nlist"T; then
17138 mv -f "$nlist"T "$nlist"
17143 # Make sure that we snagged all the symbols we need.
17144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17146 cat <<_LT_EOF > conftest.$ac_ext
17152 # Now generate the symbol file.
17153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17155 cat <<_LT_EOF >> conftest.$ac_ext
17157 /* The mapping between symbol names and symbols. */
17162 lt__PROGRAM__LTX_preloaded_symbols[] =
17164 { "@PROGRAM@
", (void *) 0 },
17166 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17167 cat <<\_LT_EOF >> conftest.$ac_ext
17171 /* This works around a problem in FreeBSD linker */
17172 #ifdef FREEBSD_WORKAROUND
17173 static const void *lt_preloaded_setup() {
17174 return lt__PROGRAM__LTX_preloaded_symbols;
17182 # Now try linking the two files.
17183 mv conftest.$ac_objext conftstm.$ac_objext
17184 lt_save_LIBS="$LIBS"
17185 lt_save_CFLAGS="$CFLAGS"
17186 LIBS="conftstm.
$ac_objext"
17187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17188 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17189 (eval $ac_link) 2>&5
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17192 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17195 LIBS="$lt_save_LIBS"
17196 CFLAGS="$lt_save_CFLAGS"
17198 echo "cannot
find nm_test_func
in $nlist" >&5
17201 echo "cannot
find nm_test_var
in $nlist" >&5
17204 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
17207 echo "$progname: failed program was
:" >&5
17208 cat conftest.$ac_ext >&5
17210 rm -rf conftest* conftst*
17212 # Do not use the global_symbol_pipe unless it works.
17213 if test "$pipe_works" = yes; then
17216 lt_cv_sys_global_symbol_pipe=
17222 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17223 lt_cv_sys_global_symbol_to_cdecl=
17225 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
17227 $as_echo "failed
" >&6; }
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
17230 $as_echo "ok
" >&6; }
17254 # Check whether --enable-libtool-lock was given.
17255 if test "${enable_libtool_lock+set}" = set; then :
17256 enableval=$enable_libtool_lock;
17259 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
17261 # Some flags need to be propagated to the compiler or linker for good
17265 # Find out which ABI we are using.
17266 echo 'int i;' > conftest.$ac_ext
17267 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17268 (eval $ac_compile) 2>&5
17270 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17271 test $ac_status = 0; }; then
17272 case `/usr/bin/file conftest.$ac_objext` in
17274 HPUX_IA64_MODE="32"
17277 HPUX_IA64_MODE="64"
17284 # Find out which ABI we are using.
17285 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
17286 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17287 (eval $ac_compile) 2>&5
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17290 test $ac_status = 0; }; then
17291 if test "$lt_cv_prog_gnu_ld" = yes; then
17292 case `/usr/bin/file conftest.$ac_objext` in
17294 LD="${LD-ld} -melf32bsmip"
17297 LD="${LD-ld} -melf32bmipn32"
17300 LD="${LD-ld} -melf64bmip"
17304 case `/usr/bin/file conftest.$ac_objext` in
17320 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17321 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17322 # Find out which ABI we are using.
17323 echo 'int i;' > conftest.$ac_ext
17324 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17325 (eval $ac_compile) 2>&5
17327 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17328 test $ac_status = 0; }; then
17329 case `/usr/bin/file conftest.o` in
17332 x86_64-*kfreebsd*-gnu)
17333 LD="${LD-ld} -m elf_i386_fbsd
"
17336 case `/usr/bin/file conftest.o` in
17338 LD="${LD-ld} -m elf32_x86_64
"
17341 LD="${LD-ld} -m elf_i386
"
17345 powerpc64le-*linux*)
17346 LD="${LD-ld} -m elf32lppclinux
"
17349 LD="${LD-ld} -m elf32ppclinux
"
17352 LD="${LD-ld} -m elf_s390
"
17355 LD="${LD-ld} -m elf32_sparc
"
17361 x86_64-*kfreebsd*-gnu)
17362 LD="${LD-ld} -m elf_x86_64_fbsd
"
17365 LD="${LD-ld} -m elf_x86_64
"
17368 LD="${LD-ld} -m elf64lppc
"
17371 LD="${LD-ld} -m elf64ppc
"
17373 s390*-*linux*|s390*-*tpf*)
17374 LD="${LD-ld} -m elf64_s390
"
17377 LD="${LD-ld} -m elf64_sparc
"
17387 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17388 SAVE_CFLAGS="$CFLAGS"
17389 CFLAGS="$CFLAGS -belf"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
17391 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
17392 if ${lt_cv_cc_needs_belf+:} false; then :
17393 $as_echo_n "(cached
) " >&6
17396 ac_cpp='$CPP $CPPFLAGS'
17397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 lt_cv_cc_needs_belf=yes
17415 lt_cv_cc_needs_belf=no
17417 rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
17427 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17430 CFLAGS="$SAVE_CFLAGS"
17434 # Find out which ABI we are using.
17435 echo 'int i;' > conftest.$ac_ext
17436 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17437 (eval $ac_compile) 2>&5
17439 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17440 test $ac_status = 0; }; then
17441 case `/usr/bin/file conftest.o` in
17443 case $lt_cv_prog_gnu_ld in
17444 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
17446 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17458 need_locks="$enable_libtool_lock"
17462 rhapsody* | darwin*)
17463 if test -n "$ac_tool_prefix"; then
17464 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
17465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17467 $as_echo_n "checking
for $ac_word...
" >&6; }
17468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17469 $as_echo_n "(cached
) " >&6
17471 if test -n "$DSYMUTIL"; then
17472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17475 for as_dir in $PATH
17478 test -z "$as_dir" && as_dir=.
17479 for ac_exec_ext in '' $ac_executable_extensions; do
17480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
17482 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17492 if test -n "$DSYMUTIL"; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
17494 $as_echo "$DSYMUTIL" >&6; }
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17497 $as_echo "no
" >&6; }
17502 if test -z "$ac_cv_prog_DSYMUTIL"; then
17503 ac_ct_DSYMUTIL=$DSYMUTIL
17504 # Extract the first word of "dsymutil
", so it can be a program name with args.
17505 set dummy dsymutil; ac_word=$2
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17507 $as_echo_n "checking
for $ac_word...
" >&6; }
17508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17509 $as_echo_n "(cached
) " >&6
17511 if test -n "$ac_ct_DSYMUTIL"; then
17512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17515 for as_dir in $PATH
17518 test -z "$as_dir" && as_dir=.
17519 for ac_exec_ext in '' $ac_executable_extensions; do
17520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
17522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17532 if test -n "$ac_ct_DSYMUTIL"; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
17534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17537 $as_echo "no
" >&6; }
17540 if test "x
$ac_ct_DSYMUTIL" = x; then
17543 case $cross_compiling:$ac_tool_warned in
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17546 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17547 ac_tool_warned=yes ;;
17549 DSYMUTIL=$ac_ct_DSYMUTIL
17552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17555 if test -n "$ac_tool_prefix"; then
17556 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
17557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17559 $as_echo_n "checking
for $ac_word...
" >&6; }
17560 if ${ac_cv_prog_NMEDIT+:} false; then :
17561 $as_echo_n "(cached
) " >&6
17563 if test -n "$NMEDIT"; then
17564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17567 for as_dir in $PATH
17570 test -z "$as_dir" && as_dir=.
17571 for ac_exec_ext in '' $ac_executable_extensions; do
17572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
17574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17583 NMEDIT=$ac_cv_prog_NMEDIT
17584 if test -n "$NMEDIT"; then
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
17586 $as_echo "$NMEDIT" >&6; }
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17589 $as_echo "no
" >&6; }
17594 if test -z "$ac_cv_prog_NMEDIT"; then
17595 ac_ct_NMEDIT=$NMEDIT
17596 # Extract the first word of "nmedit
", so it can be a program name with args.
17597 set dummy nmedit; ac_word=$2
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17599 $as_echo_n "checking
for $ac_word...
" >&6; }
17600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17601 $as_echo_n "(cached
) " >&6
17603 if test -n "$ac_ct_NMEDIT"; then
17604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17607 for as_dir in $PATH
17610 test -z "$as_dir" && as_dir=.
17611 for ac_exec_ext in '' $ac_executable_extensions; do
17612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17613 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
17614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17624 if test -n "$ac_ct_NMEDIT"; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
17626 $as_echo "$ac_ct_NMEDIT" >&6; }
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17629 $as_echo "no
" >&6; }
17632 if test "x
$ac_ct_NMEDIT" = x; then
17635 case $cross_compiling:$ac_tool_warned in
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17638 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17639 ac_tool_warned=yes ;;
17641 NMEDIT=$ac_ct_NMEDIT
17644 NMEDIT="$ac_cv_prog_NMEDIT"
17647 if test -n "$ac_tool_prefix"; then
17648 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
17649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17651 $as_echo_n "checking
for $ac_word...
" >&6; }
17652 if ${ac_cv_prog_LIPO+:} false; then :
17653 $as_echo_n "(cached
) " >&6
17655 if test -n "$LIPO"; then
17656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17662 test -z "$as_dir" && as_dir=.
17663 for ac_exec_ext in '' $ac_executable_extensions; do
17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
17666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17675 LIPO=$ac_cv_prog_LIPO
17676 if test -n "$LIPO"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
17678 $as_echo "$LIPO" >&6; }
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17681 $as_echo "no
" >&6; }
17686 if test -z "$ac_cv_prog_LIPO"; then
17688 # Extract the first word of "lipo
", so it can be a program name with args.
17689 set dummy lipo; ac_word=$2
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17691 $as_echo_n "checking
for $ac_word...
" >&6; }
17692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17693 $as_echo_n "(cached
) " >&6
17695 if test -n "$ac_ct_LIPO"; then
17696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17699 for as_dir in $PATH
17702 test -z "$as_dir" && as_dir=.
17703 for ac_exec_ext in '' $ac_executable_extensions; do
17704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17705 ac_cv_prog_ac_ct_LIPO="lipo
"
17706 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17716 if test -n "$ac_ct_LIPO"; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
17718 $as_echo "$ac_ct_LIPO" >&6; }
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17721 $as_echo "no
" >&6; }
17724 if test "x
$ac_ct_LIPO" = x; then
17727 case $cross_compiling:$ac_tool_warned in
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17730 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17731 ac_tool_warned=yes ;;
17736 LIPO="$ac_cv_prog_LIPO"
17739 if test -n "$ac_tool_prefix"; then
17740 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
17741 set dummy ${ac_tool_prefix}otool; ac_word=$2
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17743 $as_echo_n "checking
for $ac_word...
" >&6; }
17744 if ${ac_cv_prog_OTOOL+:} false; then :
17745 $as_echo_n "(cached
) " >&6
17747 if test -n "$OTOOL"; then
17748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17751 for as_dir in $PATH
17754 test -z "$as_dir" && as_dir=.
17755 for ac_exec_ext in '' $ac_executable_extensions; do
17756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
17758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17767 OTOOL=$ac_cv_prog_OTOOL
17768 if test -n "$OTOOL"; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
17770 $as_echo "$OTOOL" >&6; }
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17773 $as_echo "no
" >&6; }
17778 if test -z "$ac_cv_prog_OTOOL"; then
17780 # Extract the first word of "otool
", so it can be a program name with args.
17781 set dummy otool; ac_word=$2
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17783 $as_echo_n "checking
for $ac_word...
" >&6; }
17784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17785 $as_echo_n "(cached
) " >&6
17787 if test -n "$ac_ct_OTOOL"; then
17788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17794 test -z "$as_dir" && as_dir=.
17795 for ac_exec_ext in '' $ac_executable_extensions; do
17796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797 ac_cv_prog_ac_ct_OTOOL="otool
"
17798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17808 if test -n "$ac_ct_OTOOL"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
17810 $as_echo "$ac_ct_OTOOL" >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17813 $as_echo "no
" >&6; }
17816 if test "x
$ac_ct_OTOOL" = x; then
17819 case $cross_compiling:$ac_tool_warned in
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17822 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17823 ac_tool_warned=yes ;;
17828 OTOOL="$ac_cv_prog_OTOOL"
17831 if test -n "$ac_tool_prefix"; then
17832 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
17833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17835 $as_echo_n "checking
for $ac_word...
" >&6; }
17836 if ${ac_cv_prog_OTOOL64+:} false; then :
17837 $as_echo_n "(cached
) " >&6
17839 if test -n "$OTOOL64"; then
17840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17843 for as_dir in $PATH
17846 test -z "$as_dir" && as_dir=.
17847 for ac_exec_ext in '' $ac_executable_extensions; do
17848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
17850 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17859 OTOOL64=$ac_cv_prog_OTOOL64
17860 if test -n "$OTOOL64"; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
17862 $as_echo "$OTOOL64" >&6; }
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17865 $as_echo "no
" >&6; }
17870 if test -z "$ac_cv_prog_OTOOL64"; then
17871 ac_ct_OTOOL64=$OTOOL64
17872 # Extract the first word of "otool64
", so it can be a program name with args.
17873 set dummy otool64; ac_word=$2
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17875 $as_echo_n "checking
for $ac_word...
" >&6; }
17876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17877 $as_echo_n "(cached
) " >&6
17879 if test -n "$ac_ct_OTOOL64"; then
17880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17886 test -z "$as_dir" && as_dir=.
17887 for ac_exec_ext in '' $ac_executable_extensions; do
17888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889 ac_cv_prog_ac_ct_OTOOL64="otool64
"
17890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17900 if test -n "$ac_ct_OTOOL64"; then
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
17902 $as_echo "$ac_ct_OTOOL64" >&6; }
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17905 $as_echo "no
" >&6; }
17908 if test "x
$ac_ct_OTOOL64" = x; then
17911 case $cross_compiling:$ac_tool_warned in
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17914 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17915 ac_tool_warned=yes ;;
17917 OTOOL64=$ac_ct_OTOOL64
17920 OTOOL64="$ac_cv_prog_OTOOL64"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
17950 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
17951 if ${lt_cv_apple_cc_single_mod+:} false; then :
17952 $as_echo_n "(cached
) " >&6
17954 lt_cv_apple_cc_single_mod=no
17955 if test -z "${LT_MULTI_MODULE}"; then
17956 # By default we will add the -single_module flag. You can override
17957 # by either setting the environment variable LT_MULTI_MODULE
17958 # non-empty at configure time, or by adding -multi_module to the
17960 rm -rf libconftest.dylib*
17961 echo "int foo
(void
){return 1;}" > conftest.c
17962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17963 -dynamiclib -Wl,-single_module conftest.c
" >&5
17964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17967 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17968 lt_cv_apple_cc_single_mod=yes
17970 cat conftest.err >&5
17972 rm -rf libconftest.dylib*
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
17977 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
17979 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
17980 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17981 $as_echo_n "(cached
) " >&6
17983 lt_cv_ld_exported_symbols_list=no
17984 save_LDFLAGS=$LDFLAGS
17985 echo "_main
" > conftest.sym
17986 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17998 if ac_fn_c_try_link "$LINENO"; then :
17999 lt_cv_ld_exported_symbols_list=yes
18001 lt_cv_ld_exported_symbols_list=no
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 LDFLAGS="$save_LDFLAGS"
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
18009 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
18011 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
18012 if ${lt_cv_ld_force_load+:} false; then :
18013 $as_echo_n "(cached
) " >&6
18015 lt_cv_ld_force_load=no
18016 cat > conftest.c << _LT_EOF
18017 int forced_loaded() { return 2;}
18019 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
18020 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18021 echo "$AR cru libconftest.a conftest.o
" >&5
18022 $AR cru libconftest.a conftest.o 2>&5
18023 cat > conftest.c << _LT_EOF
18024 int main() { return 0;}
18026 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
18027 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18029 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
18030 lt_cv_ld_force_load=yes
18032 cat conftest.err >&5
18034 rm -f conftest.err libconftest.a conftest conftest.c
18035 rm -rf conftest.dSYM
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
18039 $as_echo "$lt_cv_ld_force_load" >&6; }
18040 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
18041 # build without first building modern cctools / linker.
18042 case $host_cpu-$host_os in
18043 *-rhapsody* | *-darwin1.[012])
18044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
18046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
18048 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
18049 # deployment target is forced to an earlier version.
18050 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
18051 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
18054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18062 _lt_dar_single_mod='$single_module'
18064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
18070 _lt_dsymutil='~$DSYMUTIL $lib || :'
18078 for ac_header in dlfcn.h
18080 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
18081 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
18082 cat >>confdefs.h <<_ACEOF
18083 #define HAVE_DLFCN_H 1
18100 enable_win32_dll=no
18103 # Check whether --enable-shared was given.
18104 if test "${enable_shared+set}" = set; then :
18105 enableval=$enable_shared; p=${PACKAGE-default}
18107 yes) enable_shared=yes ;;
18108 no) enable_shared=no ;;
18111 # Look at the argument we got. We use all the common list separators.
18112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18113 for pkg in $enableval; do
18115 if test "X
$pkg" = "X
$p"; then
18134 # Check whether --enable-static was given.
18135 if test "${enable_static+set}" = set; then :
18136 enableval=$enable_static; p=${PACKAGE-default}
18138 yes) enable_static=yes ;;
18139 no) enable_static=no ;;
18142 # Look at the argument we got. We use all the common list separators.
18143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18144 for pkg in $enableval; do
18146 if test "X
$pkg" = "X
$p"; then
18166 # Check whether --with-pic was given.
18167 if test "${with_pic+set}" = set; then :
18168 withval=$with_pic; pic_mode="$withval"
18174 test -z "$pic_mode" && pic_mode=default
18182 # Check whether --enable-fast-install was given.
18183 if test "${enable_fast_install+set}" = set; then :
18184 enableval=$enable_fast_install; p=${PACKAGE-default}
18186 yes) enable_fast_install=yes ;;
18187 no) enable_fast_install=no ;;
18189 enable_fast_install=no
18190 # Look at the argument we got. We use all the common list separators.
18191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18192 for pkg in $enableval; do
18194 if test "X
$pkg" = "X
$p"; then
18195 enable_fast_install=yes
18202 enable_fast_install=yes
18215 # This can be used to rebuild libtool when needed
18216 LIBTOOL_DEPS="$ltmain"
18218 # Always use our own libtool.
18219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18246 test -z "$LN_S" && LN_S="ln -s"
18261 if test -n "${ZSH_VERSION+set}" ; then
18262 setopt NO_GLOB_SUBST
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
18266 $as_echo_n "checking
for objdir...
" >&6; }
18267 if ${lt_cv_objdir+:} false; then :
18268 $as_echo_n "(cached
) " >&6
18270 rm -f .libs 2>/dev/null
18271 mkdir .libs 2>/dev/null
18272 if test -d .libs; then
18275 # MS-DOS does not allow filenames that begin with a dot.
18278 rmdir .libs 2>/dev/null
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
18281 $as_echo "$lt_cv_objdir" >&6; }
18282 objdir=$lt_cv_objdir
18288 cat >>confdefs.h <<_ACEOF
18289 #define LT_OBJDIR "$lt_cv_objdir/"
18297 # AIX sometimes has problems with the GCC collect2 program. For some
18298 # reason, if we set the COLLECT_NAMES environment variable, the problems
18299 # vanish in a puff of smoke.
18300 if test "X
${COLLECT_NAMES+set}" != Xset; then
18302 export COLLECT_NAMES
18307 # Global variables:
18309 can_build_shared=yes
18311 # All known linkers require a `.a' archive for static linking (except MSVC,
18312 # which needs '.lib').
18315 with_gnu_ld="$lt_cv_prog_gnu_ld"
18318 old_CFLAGS="$CFLAGS"
18320 # Set sane defaults for various variables
18321 test -z "$CC" && CC=cc
18322 test -z "$LTCC" && LTCC=$CC
18323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18324 test -z "$LD" && LD=ld
18325 test -z "$ac_objext" && ac_objext=o
18327 for cc_temp in $compiler""; do
18329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18335 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
18338 # Only perform the check for file, if the check method requires it
18339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18340 case $deplibs_check_method in
18342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
18344 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
18345 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18346 $as_echo_n "(cached
) " >&6
18350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18353 lt_save_MAGIC_CMD="$MAGIC_CMD"
18354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18355 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18356 for ac_dir in $ac_dummy; do
18358 test -z "$ac_dir" && ac_dir=.
18359 if test -f $ac_dir/${ac_tool_prefix}file; then
18360 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18361 if test -n "$file_magic_test_file"; then
18362 case $deplibs_check_method in
18364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18367 $EGREP "$file_magic_regex" > /dev/null; then
18372 *** Warning: the command libtool uses to detect shared libraries,
18373 *** $file_magic_cmd, produces output that libtool cannot recognize.
18374 *** The result is that libtool may fail to recognize shared libraries
18375 *** as such. This will affect the creation of libtool libraries that
18376 *** depend on shared libraries, but programs linked with such libtool
18377 *** libraries will work regardless of this problem. Nevertheless, you
18378 *** may want to report the problem to your system manager and/or to
18379 *** bug-libtool@gnu.org
18389 MAGIC_CMD="$lt_save_MAGIC_CMD"
18394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18395 if test -n "$MAGIC_CMD"; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18397 $as_echo "$MAGIC_CMD" >&6; }
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18400 $as_echo "no
" >&6; }
18407 if test -z "$lt_cv_path_MAGIC_CMD"; then
18408 if test -n "$ac_tool_prefix"; then
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
18410 $as_echo_n "checking
for file...
" >&6; }
18411 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18412 $as_echo_n "(cached
) " >&6
18416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18419 lt_save_MAGIC_CMD="$MAGIC_CMD"
18420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18421 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18422 for ac_dir in $ac_dummy; do
18424 test -z "$ac_dir" && ac_dir=.
18425 if test -f $ac_dir/file; then
18426 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18427 if test -n "$file_magic_test_file"; then
18428 case $deplibs_check_method in
18430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18433 $EGREP "$file_magic_regex" > /dev/null; then
18438 *** Warning: the command libtool uses to detect shared libraries,
18439 *** $file_magic_cmd, produces output that libtool cannot recognize.
18440 *** The result is that libtool may fail to recognize shared libraries
18441 *** as such. This will affect the creation of libtool libraries that
18442 *** depend on shared libraries, but programs linked with such libtool
18443 *** libraries will work regardless of this problem. Nevertheless, you
18444 *** may want to report the problem to your system manager and/or to
18445 *** bug-libtool@gnu.org
18455 MAGIC_CMD="$lt_save_MAGIC_CMD"
18460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18461 if test -n "$MAGIC_CMD"; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18463 $as_echo "$MAGIC_CMD" >&6; }
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18466 $as_echo "no
" >&6; }
18479 # Use C for the default configuration in the libtool script
18483 ac_cpp='$CPP $CPPFLAGS'
18484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 # Source file extension for C test sources.
18492 # Object file extension for compiled C test sources.
18496 # Code to be used in simple compile tests
18497 lt_simple_compile_test_code="int some_variable
= 0;"
18499 # Code to be used in simple link tests
18500 lt_simple_link_test_code='int main(){return(0);}'
18508 # If no C compiler was specified, use CC.
18511 # If no C compiler flags were specified, use CFLAGS.
18512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18514 # Allow CC to be a program name with arguments.
18517 # Save the default compiler, since it gets overwritten when the other
18518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18519 compiler_DEFAULT=$CC
18521 # save warnings/boilerplate of simple test code
18522 ac_outfile=conftest.$ac_objext
18523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18525 _lt_compiler_boilerplate=`cat conftest.err`
18528 ac_outfile=conftest.$ac_objext
18529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18531 _lt_linker_boilerplate=`cat conftest.err`
18536 ## There is no encapsulation within the following macros, do not change
18537 ## the running order or otherwise move them around unless you know exactly
18538 ## what you are doing...
18539 if test -n "$compiler"; then
18541 lt_prog_compiler_no_builtin_flag=
18543 if test "$GCC" = yes; then
18544 case $cc_basename in
18546 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
18552 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
18553 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18554 $as_echo_n "(cached
) " >&6
18556 lt_cv_prog_compiler_rtti_exceptions=no
18557 ac_outfile=conftest.$ac_objext
18558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18559 lt_compiler_flag="-fno-rtti -fno-exceptions"
18560 # Insert the option either (1) after the last *FLAGS variable, or
18561 # (2) before a word containing "conftest.
", or (3) at the end.
18562 # Note that $ac_compile itself does not contain backslashes and begins
18563 # with a dollar sign (not a hyphen), so the echo should work correctly.
18564 # The option is referenced via a variable to avoid confusing sed.
18565 lt_compile=`echo "$ac_compile" | $SED \
18566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18568 -e 's:$: $lt_compiler_flag:'`
18569 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18570 (eval "$lt_compile" 2>conftest.err)
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18574 if (exit $ac_status) && test -s "$ac_outfile"; then
18575 # The compiler can only warn and ignore the option if not recognized
18576 # So say no if there are warnings other than the usual output.
18577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18580 lt_cv_prog_compiler_rtti_exceptions=yes
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
18587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18602 lt_prog_compiler_wl=
18603 lt_prog_compiler_pic=
18604 lt_prog_compiler_static=
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
18607 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
18609 if test "$GCC" = yes; then
18610 lt_prog_compiler_wl='-Wl,'
18611 lt_prog_compiler_static='-static'
18615 # All AIX code is PIC.
18616 if test "$host_cpu" = ia64; then
18617 # AIX 5 now supports IA64 processor
18618 lt_prog_compiler_static='-Bstatic'
18620 lt_prog_compiler_pic='-fPIC'
18626 # see comment about AmigaOS4 .so support
18627 lt_prog_compiler_pic='-fPIC'
18630 # FIXME: we need at least 68020 code to build shared libraries, but
18631 # adding the `-m68020' flag to GCC prevents building anything better,
18633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18639 # PIC is the default for these OSes.
18642 mingw* | cygwin* | pw32* | os2* | cegcc*)
18643 # This hack is so that the source file can tell whether it is being
18644 # built for inclusion in a dll (and should export symbols for example).
18645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18646 # (--disable-auto-import) libraries
18647 lt_prog_compiler_pic='-DDLL_EXPORT'
18650 darwin* | rhapsody*)
18651 # PIC is the default on this platform
18652 # Common symbols not allowed in MH_DYLIB files
18653 lt_prog_compiler_pic='-fno-common'
18657 # PIC is the default for Haiku.
18658 # The "-static" flag exists, but is broken.
18659 lt_prog_compiler_static=
18663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18665 # sets the default TLS model and affects inlining.
18671 lt_prog_compiler_pic='-fPIC'
18677 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18678 # Instead, we relocate shared libraries at runtime.
18682 # Just because we use GCC doesn't mean we suddenly get shared libraries
18683 # on systems that don't support them.
18684 lt_prog_compiler_can_build_shared=no
18689 # QNX uses GNU C++, but need to define -shared option too, otherwise
18690 # it will coredump.
18691 lt_prog_compiler_pic='-fPIC -shared'
18695 if test -d /usr/nec; then
18696 lt_prog_compiler_pic=-Kconform_pic
18701 lt_prog_compiler_pic='-fPIC'
18705 case $cc_basename in
18706 nvcc*) # Cuda Compiler Driver 2.2
18707 lt_prog_compiler_wl='-Xlinker '
18708 lt_prog_compiler_pic='-Xcompiler -fPIC'
18712 # PORTME Check for flag to pass linker flags through the system compiler.
18715 lt_prog_compiler_wl='-Wl,'
18716 if test "$host_cpu" = ia64; then
18717 # AIX 5 now supports IA64 processor
18718 lt_prog_compiler_static='-Bstatic'
18720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18724 mingw* | cygwin* | pw32* | os2* | cegcc*)
18725 # This hack is so that the source file can tell whether it is being
18726 # built for inclusion in a dll (and should export symbols for example).
18727 lt_prog_compiler_pic='-DDLL_EXPORT'
18730 hpux9* | hpux10* | hpux11*)
18731 lt_prog_compiler_wl='-Wl,'
18732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18733 # not for PA HP-UX.
18739 lt_prog_compiler_pic='+Z'
18742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18743 lt_prog_compiler_static='${wl}-a ${wl}archive'
18746 irix5* | irix6* | nonstopux*)
18747 lt_prog_compiler_wl='-Wl,'
18748 # PIC (with -KPIC) is the default.
18749 lt_prog_compiler_static='-non_shared'
18752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18753 case $cc_basename in
18754 # old Intel for x86_64 which still supported -KPIC.
18756 lt_prog_compiler_wl='-Wl,'
18757 lt_prog_compiler_pic='-KPIC'
18758 lt_prog_compiler_static='-static'
18760 # icc used to be incompatible with GCC.
18761 # ICC 10 doesn't accept -KPIC any more.
18763 lt_prog_compiler_wl='-Wl,'
18764 lt_prog_compiler_pic='-fPIC'
18765 lt_prog_compiler_static='-static'
18767 # Lahey Fortran 8.1.
18769 lt_prog_compiler_wl='-Wl,'
18770 lt_prog_compiler_pic='--shared'
18771 lt_prog_compiler_static='--static'
18773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18774 # Portland Group compilers (*not* the Pentium gcc compiler,
18775 # which looks to be a dead project)
18776 lt_prog_compiler_wl='-Wl,'
18777 lt_prog_compiler_pic='-fpic'
18778 lt_prog_compiler_static='-Bstatic'
18781 lt_prog_compiler_wl='-Wl,'
18782 # All Alpha code is PIC.
18783 lt_prog_compiler_static='-non_shared'
18785 xl* | bgxl* | bgf* | mpixl*)
18786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18787 lt_prog_compiler_wl='-Wl,'
18788 lt_prog_compiler_pic='-qpic'
18789 lt_prog_compiler_static='-qstaticlink'
18792 case `$CC -V 2>&1 | sed 5q` in
18793 *Sun\ F* | *Sun*Fortran*)
18794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18795 lt_prog_compiler_pic='-KPIC'
18796 lt_prog_compiler_static='-Bstatic'
18797 lt_prog_compiler_wl=''
18801 lt_prog_compiler_pic='-KPIC'
18802 lt_prog_compiler_static='-Bstatic'
18803 lt_prog_compiler_wl='-Wl,'
18811 lt_prog_compiler_pic='-KPIC'
18812 lt_prog_compiler_static='-Bstatic'
18816 # QNX uses GNU C++, but need to define -shared option too, otherwise
18817 # it will coredump.
18818 lt_prog_compiler_pic='-fPIC -shared'
18821 osf3* | osf4* | osf5*)
18822 lt_prog_compiler_wl='-Wl,'
18823 # All OSF/1 code is PIC.
18824 lt_prog_compiler_static='-non_shared'
18828 lt_prog_compiler_static='-non_shared'
18832 lt_prog_compiler_pic='-KPIC'
18833 lt_prog_compiler_static='-Bstatic'
18834 case $cc_basename in
18835 f77* | f90* | f95*)
18836 lt_prog_compiler_wl='-Qoption ld ';;
18838 lt_prog_compiler_wl='-Wl,';;
18843 lt_prog_compiler_wl='-Qoption ld '
18844 lt_prog_compiler_pic='-PIC'
18845 lt_prog_compiler_static='-Bstatic'
18848 sysv4 | sysv4.2uw2* | sysv4.3*)
18849 lt_prog_compiler_wl='-Wl,'
18850 lt_prog_compiler_pic='-KPIC'
18851 lt_prog_compiler_static='-Bstatic'
18855 if test -d /usr/nec ;then
18856 lt_prog_compiler_pic='-Kconform_pic'
18857 lt_prog_compiler_static='-Bstatic'
18861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18862 lt_prog_compiler_wl='-Wl,'
18863 lt_prog_compiler_pic='-KPIC'
18864 lt_prog_compiler_static='-Bstatic'
18868 lt_prog_compiler_wl='-Wl,'
18869 lt_prog_compiler_can_build_shared=no
18873 lt_prog_compiler_pic='-pic'
18874 lt_prog_compiler_static='-Bstatic'
18878 lt_prog_compiler_can_build_shared=no
18884 # For platforms which do not support PIC, -DPIC is meaningless:
18886 lt_prog_compiler_pic=
18889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
18893 $as_echo "$lt_prog_compiler_pic" >&6; }
18901 # Check to make sure the PIC flag actually works.
18903 if test -n "$lt_prog_compiler_pic"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
18905 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
18906 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18907 $as_echo_n "(cached
) " >&6
18909 lt_cv_prog_compiler_pic_works=no
18910 ac_outfile=conftest.$ac_objext
18911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.
", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 # The option is referenced via a variable to avoid confusing sed.
18918 lt_compile=`echo "$ac_compile" | $SED \
18919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18921 -e 's:$: $lt_compiler_flag:'`
18922 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18923 (eval "$lt_compile" 2>conftest.err)
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 if (exit $ac_status) && test -s "$ac_outfile"; then
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings other than the usual output.
18930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18933 lt_cv_prog_compiler_pic_works=yes
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
18940 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18942 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18943 case $lt_prog_compiler_pic in
18945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18948 lt_prog_compiler_pic=
18949 lt_prog_compiler_can_build_shared=no
18960 # Check to make sure the static flag actually works.
18962 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
18964 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
18965 if ${lt_cv_prog_compiler_static_works+:} false; then :
18966 $as_echo_n "(cached
) " >&6
18968 lt_cv_prog_compiler_static_works=no
18969 save_LDFLAGS="$LDFLAGS"
18970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18973 # The linker can only warn and ignore the option if not recognized
18974 # So say no if there are warnings
18975 if test -s conftest.err; then
18976 # Append any errors to the config.log.
18977 cat conftest.err 1>&5
18978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18980 if diff conftest.exp conftest.er2 >/dev/null; then
18981 lt_cv_prog_compiler_static_works=yes
18984 lt_cv_prog_compiler_static_works=yes
18988 LDFLAGS="$save_LDFLAGS"
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
18992 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18994 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18997 lt_prog_compiler_static=
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
19007 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
19008 if ${lt_cv_prog_compiler_c_o+:} false; then :
19009 $as_echo_n "(cached
) " >&6
19011 lt_cv_prog_compiler_c_o=no
19012 $RM -r conftest 2>/dev/null
19016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19018 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
19019 # Insert the option either (1) after the last *FLAGS variable, or
19020 # (2) before a word containing "conftest.
", or (3) at the end.
19021 # Note that $ac_compile itself does not contain backslashes and begins
19022 # with a dollar sign (not a hyphen), so the echo should work correctly.
19023 lt_compile=`echo "$ac_compile" | $SED \
19024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19026 -e 's:$: $lt_compiler_flag:'`
19027 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
19028 (eval "$lt_compile" 2>out/conftest.err)
19030 cat out/conftest.err >&5
19031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19034 # The compiler can only warn and ignore the option if not recognized
19035 # So say no if there are warnings
19036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19039 lt_cv_prog_compiler_c_o=yes
19044 # SGI C++ compiler will create directory out/ii_files/ for
19045 # template instantiation
19046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19047 $RM out/* && rmdir out
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
19054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
19062 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
19063 if ${lt_cv_prog_compiler_c_o+:} false; then :
19064 $as_echo_n "(cached
) " >&6
19066 lt_cv_prog_compiler_c_o=no
19067 $RM -r conftest 2>/dev/null
19071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19073 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
19074 # Insert the option either (1) after the last *FLAGS variable, or
19075 # (2) before a word containing "conftest.
", or (3) at the end.
19076 # Note that $ac_compile itself does not contain backslashes and begins
19077 # with a dollar sign (not a hyphen), so the echo should work correctly.
19078 lt_compile=`echo "$ac_compile" | $SED \
19079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19081 -e 's:$: $lt_compiler_flag:'`
19082 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
19083 (eval "$lt_compile" 2>out/conftest.err)
19085 cat out/conftest.err >&5
19086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19089 # The compiler can only warn and ignore the option if not recognized
19090 # So say no if there are warnings
19091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19094 lt_cv_prog_compiler_c_o=yes
19099 # SGI C++ compiler will create directory out/ii_files/ for
19100 # template instantiation
19101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19102 $RM out/* && rmdir out
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
19109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19114 hard_links="nottested
"
19115 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19116 # do not overwrite the value of need_locks provided by the user
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
19118 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
19121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19123 ln conftest.a conftest.b 2>&5 || hard_links=no
19124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
19126 $as_echo "$hard_links" >&6; }
19127 if test "$hard_links" = no; then
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
19129 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
19142 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
19145 allow_undefined_flag=
19146 always_export_symbols=no
19148 archive_expsym_cmds=
19149 compiler_needs_object=no
19150 enable_shared_with_static_runtimes=no
19151 export_dynamic_flag_spec=
19152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19153 hardcode_automatic=no
19155 hardcode_direct_absolute=no
19156 hardcode_libdir_flag_spec=
19157 hardcode_libdir_flag_spec_ld=
19158 hardcode_libdir_separator=
19159 hardcode_minus_L=no
19160 hardcode_shlibpath_var=unsupported
19162 link_all_deplibs=unknown
19164 module_expsym_cmds=
19165 old_archive_from_new_cmds=
19166 old_archive_from_expsyms_cmds=
19167 thread_safe_flag_spec=
19168 whole_archive_flag_spec=
19169 # include_expsyms should be a list of space-separated symbols to be *always*
19170 # included in the symbol list
19172 # exclude_expsyms can be an extended regexp of symbols to exclude
19173 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19174 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19175 # as well as any symbol that contains `d'.
19176 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19178 # platforms (ab)use it in PIC code, but their linkers get confused if
19179 # the symbol is explicitly referenced. Since portable code cannot
19180 # rely on this symbol name, it's probably fine to never include it in
19181 # preloaded symbol tables.
19182 # Exclude shared library initialization/finalization symbols.
19183 extract_expsyms_cmds=
19186 cygwin* | mingw* | pw32* | cegcc*)
19187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19188 # When not using gcc, we currently assume that we are using
19189 # Microsoft Visual C++.
19190 if test "$GCC" != yes; then
19195 # we just hope/assume this is gcc and not c89 (= MSVC++)
19205 # On some targets, GNU ld is compatible enough with the native linker
19206 # that we're better off using the native interface for both.
19207 lt_use_gnu_ld_interface=no
19208 if test "$with_gnu_ld" = yes; then
19211 # The AIX port of GNU ld has always aspired to compatibility
19212 # with the native linker. However, as the warning in the GNU ld
19213 # block says, versions before 2.19.5* couldn't really create working
19214 # shared libraries, regardless of the interface used.
19215 case `$LD -v 2>&1` in
19216 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19217 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19218 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19220 lt_use_gnu_ld_interface=yes
19225 lt_use_gnu_ld_interface=yes
19230 if test "$lt_use_gnu_ld_interface" = yes; then
19231 # If archive_cmds runs LD, not CC, wlarc should be empty
19234 # Set some defaults for GNU ld with shared library support. These
19235 # are reset later if shared libraries are not supported. Putting them
19236 # here allows them to be overridden if necessary.
19237 runpath_var=LD_RUN_PATH
19238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19239 export_dynamic_flag_spec='${wl}--export-dynamic'
19240 # ancient GNU ld didn't support --whole-archive et. al.
19241 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19242 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19244 whole_archive_flag_spec=
19246 supports_anon_versioning=no
19247 case `$LD -v 2>&1` in
19248 *GNU\ gold*) supports_anon_versioning=yes ;;
19249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19252 *\ 2.11.*) ;; # other 2.11 versions
19253 *) supports_anon_versioning=yes ;;
19256 # See if GNU ld supports shared libraries.
19259 # On AIX/PPC, the GNU linker is very broken
19260 if test "$host_cpu" != ia64; then
19264 *** Warning: the GNU linker, at least up to release 2.19, is reported
19265 *** to be unable to reliably create shared libraries on AIX.
19266 *** Therefore, libtool is disabling shared libraries support. If you
19267 *** really care for shared libraries, you may want to install binutils
19268 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19269 *** You will then need to restart the configuration process.
19278 # see comment about AmigaOS4 .so support
19279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19280 archive_expsym_cmds=''
19283 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)'
19284 hardcode_libdir_flag_spec
='-L$libdir'
19285 hardcode_minus_L
=yes
19291 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19292 allow_undefined_flag
=unsupported
19293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19294 # support --undefined. This deserves some investigation. FIXME
19295 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19301 cygwin
* | mingw
* | pw32
* | cegcc
*)
19302 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19303 # as there is no search path for DLLs.
19304 hardcode_libdir_flag_spec
='-L$libdir'
19305 export_dynamic_flag_spec
='${wl}--export-all-symbols'
19306 allow_undefined_flag
=unsupported
19307 always_export_symbols
=no
19308 enable_shared_with_static_runtimes
=yes
19309 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19311 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19312 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19313 # If the export-symbols file already is a .def file (1st line
19314 # is EXPORTS), use it as is; otherwise, prepend...
19315 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19316 cp $export_symbols $output_objdir/$soname.def;
19318 echo EXPORTS > $output_objdir/$soname.def;
19319 cat $export_symbols >> $output_objdir/$soname.def;
19321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19328 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 link_all_deplibs
=yes
19334 hardcode_shlibpath_var
=no
19335 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec
='${wl}-E'
19337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19338 # Instead, shared libraries are loaded at an image base (0x10000000 by
19339 # default) and relocated if they conflict, which is a slow very memory
19340 # consuming and fragmenting process. To avoid this, we pick a random,
19341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19343 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19344 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'
19347 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
19349 if test "$host_os" = linux-dietlibc
; then
19350 case $cc_basename in
19351 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
19354 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
19355 && test "$tmp_diet" = no
19357 tmp_addflag
=' $pic_flag'
19358 tmp_sharedflag
='-shared'
19359 case $cc_basename,$host_cpu in
19360 pgcc
*) # Portland Group C compiler
19361 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'
19362 tmp_addflag
=' $pic_flag'
19364 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
19365 # Portland Group f77 and f90 compilers
19366 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'
19367 tmp_addflag
=' $pic_flag -Mnomain' ;;
19368 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
19369 tmp_addflag
=' -i_dynamic' ;;
19370 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
19371 tmp_addflag
=' -i_dynamic -nofor_main' ;;
19372 ifc
* | ifort
*) # Intel Fortran compiler
19373 tmp_addflag
=' -nofor_main' ;;
19374 lf95
*) # Lahey Fortran 8.1
19375 whole_archive_flag_spec
=
19376 tmp_sharedflag
='--shared' ;;
19377 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19378 tmp_sharedflag
='-qmkshrobj'
19380 nvcc
*) # Cuda Compiler Driver 2.2
19381 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'
19382 compiler_needs_object
=yes
19385 case `$CC -V 2>&1 | sed 5q` in
19386 *Sun\ C
*) # Sun C 5.9
19387 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'
19388 compiler_needs_object
=yes
19389 tmp_sharedflag
='-G' ;;
19390 *Sun\ F
*) # Sun Fortran 8.3
19391 tmp_sharedflag
='-G' ;;
19393 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395 if test "x$supports_anon_versioning" = xyes
; then
19396 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19398 echo "local: *; };" >> $output_objdir/$libname.ver~
19399 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402 case $cc_basename in
19403 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
19404 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19405 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
19406 hardcode_libdir_flag_spec
=
19407 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
19408 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19409 if test "x$supports_anon_versioning" = xyes
; then
19410 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19412 echo "local: *; };" >> $output_objdir/$libname.ver~
19413 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19423 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19424 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19427 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19428 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19433 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
19437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19438 *** create shared libraries on Solaris systems. Therefore, libtool
19439 *** is disabling shared libraries support. We urge you to upgrade GNU
19440 *** binutils to release 2.9.1 or newer. Another option is to modify
19441 *** your PATH or compiler configuration so that the native linker is
19442 *** used, and then restart.
19445 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19446 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19447 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19453 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19454 case `$LD -v 2>&1` in
19455 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
19459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19460 *** reliably create shared libraries on SCO systems. Therefore, libtool
19461 *** is disabling shared libraries support. We urge you to upgrade GNU
19462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19463 *** your PATH or compiler configuration so that the native linker is
19464 *** used, and then restart.
19469 # For security reasons, it is highly recommended that you always
19470 # use absolute paths for naming shared libraries, and exclude the
19471 # DT_RUNPATH tag from executables and libraries. But doing so
19472 # requires that you compile everything twice, which is a pain.
19473 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19474 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19475 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19476 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19485 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19487 hardcode_direct
=yes
19488 hardcode_shlibpath_var
=no
19492 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19493 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19494 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19501 if test "$ld_shlibs" = no
; then
19503 hardcode_libdir_flag_spec
=
19504 export_dynamic_flag_spec
=
19505 whole_archive_flag_spec
=
19508 # PORTME fill in a description of your system's linker (not GNU ld)
19511 allow_undefined_flag
=unsupported
19512 always_export_symbols
=yes
19513 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'
19514 # Note: this linker hardcodes the directories in LIBPATH if there
19515 # are no directories specified by -L.
19516 hardcode_minus_L
=yes
19517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19518 # Neither direct hardcoding nor static linking is supported with a
19520 hardcode_direct
=unsupported
19525 if test "$host_cpu" = ia64
; then
19526 # On IA64, the linker does run time linking by default, so we don't
19527 # have to do anything special.
19528 aix_use_runtimelinking
=no
19529 exp_sym_flag
='-Bexport'
19532 # If we're using GNU nm, then we don't want the "-C" option.
19533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19534 # Also, AIX nm treats weak defined symbols like other global
19535 # defined symbols, whereas GNU nm marks them as "W".
19536 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19537 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'
19539 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'
19541 aix_use_runtimelinking
=no
19543 # Test if we are trying to use run time linking or normal
19544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19545 # need to do runtime linking.
19546 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19547 for ld_flag
in $LDFLAGS; do
19548 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
19549 aix_use_runtimelinking
=yes
19556 exp_sym_flag
='-bexport'
19557 no_entry_flag
='-bnoentry'
19560 # When large executables or shared objects are built, AIX ld can
19561 # have problems creating the table of contents. If linking a library
19562 # or program results in "error TOC overflow" add -mminimal-toc to
19563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19567 hardcode_direct
=yes
19568 hardcode_direct_absolute
=yes
19569 hardcode_libdir_separator
=':'
19570 link_all_deplibs
=yes
19571 file_list_spec
='${wl}-f,'
19573 if test "$GCC" = yes; then
19574 case $host_os in aix4.
[012]|aix4.
[012].
*)
19575 # We only want to do this on AIX 4.2 and lower, the check
19576 # below for broken collect2 doesn't work under 4.3+
19577 collect2name
=`${CC} -print-prog-name=collect2`
19578 if test -f "$collect2name" &&
19579 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19581 # We have reworked collect2
19584 # We have old collect2
19585 hardcode_direct
=unsupported
19586 # It fails to find uninstalled libraries when the uninstalled
19587 # path is not listed in the libpath. Setting hardcode_minus_L
19588 # to unsupported forces relinking
19589 hardcode_minus_L
=yes
19590 hardcode_libdir_flag_spec
='-L$libdir'
19591 hardcode_libdir_separator
=
19595 shared_flag
='-shared'
19596 if test "$aix_use_runtimelinking" = yes; then
19597 shared_flag
="$shared_flag "'${wl}-G'
19601 if test "$host_cpu" = ia64
; then
19602 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19603 # chokes on -Wl,-G. The following line is correct:
19606 if test "$aix_use_runtimelinking" = yes; then
19607 shared_flag
='${wl}-G'
19609 shared_flag
='${wl}-bM:SRE'
19614 export_dynamic_flag_spec
='${wl}-bexpall'
19615 # It seems that -bexpall does not export symbols beginning with
19616 # underscore (_), so it is better to generate a list of symbols to export.
19617 always_export_symbols
=yes
19618 if test "$aix_use_runtimelinking" = yes; then
19619 # Warning - without using the other runtime loading flags (-brtl),
19620 # -berok will link without error, but may produce a broken library.
19621 allow_undefined_flag
='-berok'
19622 # Determine the default libpath from the value encoded in an
19623 # empty executable.
19624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19635 if ac_fn_c_try_link
"$LINENO"; then :
19637 lt_aix_libpath_sed
='
19638 /Import File Strings/,/^$/ {
19644 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19645 # Check for a 64-bit object if we didn't find anything.
19646 if test -z "$aix_libpath"; then
19647 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19650 rm -f core conftest.err conftest.
$ac_objext \
19651 conftest
$ac_exeext conftest.
$ac_ext
19652 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19654 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19655 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"
19657 if test "$host_cpu" = ia64
; then
19658 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
19659 allow_undefined_flag
="-z nodefs"
19660 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"
19662 # Determine the default libpath from the value encoded in an
19663 # empty executable.
19664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19675 if ac_fn_c_try_link
"$LINENO"; then :
19677 lt_aix_libpath_sed
='
19678 /Import File Strings/,/^$/ {
19684 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19685 # Check for a 64-bit object if we didn't find anything.
19686 if test -z "$aix_libpath"; then
19687 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19690 rm -f core conftest.err conftest.
$ac_objext \
19691 conftest
$ac_exeext conftest.
$ac_ext
19692 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19694 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19695 # Warning - without using the other run time loading flags,
19696 # -berok will link without error, but may produce a broken library.
19697 no_undefined_flag
=' ${wl}-bernotok'
19698 allow_undefined_flag
=' ${wl}-berok'
19699 if test "$with_gnu_ld" = yes; then
19700 # We only use this code for GNU lds that support --whole-archive.
19701 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19703 # Exported symbols can be pulled into shared objects from archives
19704 whole_archive_flag_spec
='$convenience'
19706 archive_cmds_need_lc
=yes
19707 # This is similar to how AIX traditionally builds its shared libraries.
19708 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'
19716 # see comment about AmigaOS4 .so support
19717 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19718 archive_expsym_cmds
=''
19721 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)'
19722 hardcode_libdir_flag_spec
='-L$libdir'
19723 hardcode_minus_L
=yes
19729 export_dynamic_flag_spec
=-rdynamic
19732 cygwin
* | mingw
* | pw32
* | cegcc
*)
19733 # When not using gcc, we currently assume that we are using
19734 # Microsoft Visual C++.
19735 # hardcode_libdir_flag_spec is actually meaningless, as there is
19736 # no search path for DLLs.
19737 hardcode_libdir_flag_spec
=' '
19738 allow_undefined_flag
=unsupported
19739 # Tell ltmain to make .lib files, not .a files.
19741 # Tell ltmain to make .dll files, not .so files.
19743 # FIXME: Setting linknames here is a bad hack.
19744 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19745 # The linker will automatically build a .lib file if we build a DLL.
19746 old_archive_from_new_cmds
='true'
19747 # FIXME: Should let the user specify the lib program.
19748 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19749 fix_srcfile_path
='`cygpath -w "$srcfile"`'
19750 enable_shared_with_static_runtimes
=yes
19753 darwin
* | rhapsody
*)
19757 # Publish an arg to allow the user to select that Darwin host (and target)
19758 # libraries should be given install-names like @rpath/libfoo.dylib. This
19759 # requires that the user of the library then adds an 'rpath' to the DSO that
19761 # NOTE: there are defaults below, for systems that support rpaths. The person
19762 # configuring can override the defaults for any system version that supports
19763 # them - they are, however, forced off for system versions without support.
19764 # Check whether --enable-darwin-at-rpath was given.
19765 if test "${enable_darwin_at_rpath+set}" = set; then :
19766 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19767 # This is not supported before macOS 10.5 / Darwin9.
19768 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19769 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19771 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19772 enable_darwin_at_rpath
=no
19777 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19778 # As above, before 10.5 / Darwin9 this does not work.
19779 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19780 enable_darwin_at_rpath
=no
19783 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19784 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19785 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19786 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19788 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19789 enable_darwin_at_rpath
=yes
19791 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19792 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19799 archive_cmds_need_lc
=no
19801 hardcode_automatic
=yes
19802 hardcode_shlibpath_var
=unsupported
19803 if test "$lt_cv_ld_force_load" = "yes"; then
19804 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\"`'
19806 whole_archive_flag_spec
=''
19808 link_all_deplibs
=yes
19809 allow_undefined_flag
="$_lt_dar_allow_undefined"
19810 case $cc_basename in
19811 ifort
*) _lt_dar_can_shared
=yes ;;
19812 *) _lt_dar_can_shared
=$GCC ;;
19814 if test "$_lt_dar_can_shared" = "yes"; then
19815 output_verbose_link_cmd
=func_echo_all
19816 _lt_install_name
='\$rpath/\$soname'
19817 if test "x$enable_darwin_at_rpath" = "xyes"; then
19818 _lt_install_name
='@rpath/\$soname'
19820 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19821 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19822 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}"
19823 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}"
19832 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_libdir_flag_spec
='-L$libdir'
19834 hardcode_shlibpath_var
=no
19837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19838 # support. Future versions do this automatically, but an explicit c++rt0.o
19839 # does not break anything, and helps significantly (at the cost of a little
19842 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19843 hardcode_libdir_flag_spec
='-R$libdir'
19844 hardcode_direct
=yes
19845 hardcode_shlibpath_var
=no
19848 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19850 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19851 hardcode_direct
=yes
19852 hardcode_minus_L
=yes
19853 hardcode_shlibpath_var
=no
19856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19857 freebsd
* | dragonfly
*)
19858 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19859 hardcode_libdir_flag_spec
='-R$libdir'
19860 hardcode_direct
=yes
19861 hardcode_shlibpath_var
=no
19865 if test "$GCC" = yes; then
19866 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'
19868 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'
19870 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19871 hardcode_libdir_separator
=:
19872 hardcode_direct
=yes
19874 # hardcode_minus_L: Not really in the search PATH,
19875 # but as the default location of the library.
19876 hardcode_minus_L
=yes
19877 export_dynamic_flag_spec
='${wl}-E'
19881 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19882 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19884 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19886 if test "$with_gnu_ld" = no
; then
19887 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19888 hardcode_libdir_flag_spec_ld
='+b $libdir'
19889 hardcode_libdir_separator
=:
19890 hardcode_direct
=yes
19891 hardcode_direct_absolute
=yes
19892 export_dynamic_flag_spec
='${wl}-E'
19893 # hardcode_minus_L: Not really in the search PATH,
19894 # but as the default location of the library.
19895 hardcode_minus_L
=yes
19900 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19903 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19906 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19909 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19915 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19918 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19922 # Older versions of the 11.00 compiler do not understand -b yet
19923 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19925 $as_echo_n "checking if $CC understands -b... " >&6; }
19926 if ${lt_cv_prog_compiler__b+:} false
; then :
19927 $as_echo_n "(cached) " >&6
19929 lt_cv_prog_compiler__b
=no
19930 save_LDFLAGS
="$LDFLAGS"
19931 LDFLAGS
="$LDFLAGS -b"
19932 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19933 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19934 # The linker can only warn and ignore the option if not recognized
19935 # So say no if there are warnings
19936 if test -s conftest.err
; then
19937 # Append any errors to the config.log.
19938 cat conftest.err
1>&5
19939 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19940 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19941 if diff conftest.exp conftest.er2
>/dev
/null
; then
19942 lt_cv_prog_compiler__b
=yes
19945 lt_cv_prog_compiler__b
=yes
19949 LDFLAGS
="$save_LDFLAGS"
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19953 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19955 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
19956 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19958 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19964 if test "$with_gnu_ld" = no
; then
19965 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19966 hardcode_libdir_separator
=:
19971 hardcode_shlibpath_var
=no
19974 hardcode_direct
=yes
19975 hardcode_direct_absolute
=yes
19976 export_dynamic_flag_spec
='${wl}-E'
19978 # hardcode_minus_L: Not really in the search PATH,
19979 # but as the default location of the library.
19980 hardcode_minus_L
=yes
19986 irix5
* | irix6
* | nonstopux
*)
19987 if test "$GCC" = yes; then
19988 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'
19989 # Try to use the -exported_symbol ld option, if it does not
19990 # work, assume that -exports_file does not work either and
19991 # implicitly export all symbols.
19992 save_LDFLAGS
="$LDFLAGS"
19993 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19998 if ac_fn_c_try_link
"$LINENO"; then :
19999 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'
20002 rm -f core conftest.err conftest.
$ac_objext \
20003 conftest
$ac_exeext conftest.
$ac_ext
20004 LDFLAGS
="$save_LDFLAGS"
20006 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'
20007 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'
20009 archive_cmds_need_lc
='no'
20010 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20011 hardcode_libdir_separator
=:
20013 link_all_deplibs
=yes
20017 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20018 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20020 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20022 hardcode_libdir_flag_spec
='-R$libdir'
20023 hardcode_direct
=yes
20024 hardcode_shlibpath_var
=no
20028 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20029 hardcode_direct
=yes
20030 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20031 hardcode_libdir_separator
=:
20032 hardcode_shlibpath_var
=no
20039 if test -f /usr
/libexec
/ld.so
; then
20040 hardcode_direct
=yes
20041 hardcode_shlibpath_var
=no
20042 hardcode_direct_absolute
=yes
20043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20044 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20046 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
20047 export_dynamic_flag_spec
='${wl}-E'
20050 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
20051 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20052 hardcode_libdir_flag_spec
='-R$libdir'
20055 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20056 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
20066 hardcode_libdir_flag_spec
='-L$libdir'
20067 hardcode_minus_L
=yes
20068 allow_undefined_flag
=unsupported
20069 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'
20070 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20074 if test "$GCC" = yes; then
20075 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
20076 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'
20078 allow_undefined_flag
=' -expect_unresolved \*'
20079 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'
20081 archive_cmds_need_lc
='no'
20082 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20083 hardcode_libdir_separator
=:
20086 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
20087 if test "$GCC" = yes; then
20088 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
20089 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'
20090 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20092 allow_undefined_flag
=' -expect_unresolved \*'
20093 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'
20094 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~
20095 $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'
20097 # Both c and cxx compiler support -rpath directly
20098 hardcode_libdir_flag_spec
='-rpath $libdir'
20100 archive_cmds_need_lc
='no'
20101 hardcode_libdir_separator
=:
20105 no_undefined_flag
=' -z defs'
20106 if test "$GCC" = yes; then
20108 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20110 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20112 case `$CC -V 2>&1` in
20115 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20116 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20121 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20122 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20123 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20127 hardcode_libdir_flag_spec
='-R$libdir'
20128 hardcode_shlibpath_var
=no
20130 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20132 # The compiler driver will combine and reorder linker options,
20133 # but understands `-z linker_flag'. GCC discards it without `$wl',
20134 # but is careful enough not to reorder.
20135 # Supported since Solaris 2.6 (maybe 2.5.1?)
20136 if test "$GCC" = yes; then
20137 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20139 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
20143 link_all_deplibs
=yes
20147 if test "x$host_vendor" = xsequent
; then
20148 # Use $CC to link under sequent, because it throws in some extra .o
20149 # files that make .init and .fini sections work.
20150 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20152 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20154 hardcode_libdir_flag_spec
='-L$libdir'
20155 hardcode_direct
=yes
20156 hardcode_minus_L
=yes
20157 hardcode_shlibpath_var
=no
20161 case $host_vendor in
20163 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20164 hardcode_direct
=yes # is this really true???
20167 ## LD is ld it makes a PLAMLIB
20168 ## CC just makes a GrossModule.
20169 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20170 reload_cmds
='$CC -r -o $output$reload_objs'
20174 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20175 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
20178 runpath_var
='LD_RUN_PATH'
20179 hardcode_shlibpath_var
=no
20183 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20184 hardcode_shlibpath_var
=no
20185 export_dynamic_flag_spec
='-Bexport'
20189 if test -d /usr
/nec
; then
20190 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20191 hardcode_shlibpath_var
=no
20192 runpath_var
=LD_RUN_PATH
20193 hardcode_runpath_var
=yes
20198 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20199 no_undefined_flag
='${wl}-z,text'
20200 archive_cmds_need_lc
=no
20201 hardcode_shlibpath_var
=no
20202 runpath_var
='LD_RUN_PATH'
20204 if test "$GCC" = yes; then
20205 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20206 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20208 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20209 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20213 sysv5
* | sco3.2v5
* | sco5v6
*)
20214 # Note: We can NOT use -z defs as we might desire, because we do not
20215 # link with -lc, and that would cause any symbols used from libc to
20216 # always be unresolved, which means just about no library would
20217 # ever link correctly. If we're not using GNU ld we use -z text
20218 # though, which does catch some bad symbols but isn't as heavy-handed
20220 no_undefined_flag
='${wl}-z,text'
20221 allow_undefined_flag
='${wl}-z,nodefs'
20222 archive_cmds_need_lc
=no
20223 hardcode_shlibpath_var
=no
20224 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
20225 hardcode_libdir_separator
=':'
20226 link_all_deplibs
=yes
20227 export_dynamic_flag_spec
='${wl}-Bexport'
20228 runpath_var
='LD_RUN_PATH'
20230 if test "$GCC" = yes; then
20231 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20232 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20234 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20235 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20240 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20241 hardcode_libdir_flag_spec
='-L$libdir'
20242 hardcode_shlibpath_var
=no
20250 if test x
$host_vendor = xsni
; then
20252 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
20253 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20260 $as_echo "$ld_shlibs" >&6; }
20261 test "$ld_shlibs" = no
&& can_build_shared
=no
20263 with_gnu_ld
=$with_gnu_ld
20280 # Do we need to explicitly link libc?
20282 case "x$archive_cmds_need_lc" in
20284 # Assume -lc should be added
20285 archive_cmds_need_lc
=yes
20287 if test "$enable_shared" = yes && test "$GCC" = yes; then
20288 case $archive_cmds in
20290 # FIXME: we may have to deal with multi-command sequences.
20293 # Test whether the compiler implicitly links with -lc since on some
20294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20295 # to ld, don't add -lc before -lgcc.
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20298 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
20299 $as_echo_n "(cached) " >&6
20302 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20305 (eval $ac_compile) 2>&5
20307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20308 test $ac_status = 0; } 2>conftest.err
; then
20311 libobjs
=conftest.
$ac_objext
20313 wl
=$lt_prog_compiler_wl
20314 pic_flag
=$lt_prog_compiler_pic
20320 lt_save_allow_undefined_flag
=$allow_undefined_flag
20321 allow_undefined_flag
=
20322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20323 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }
20328 lt_cv_archive_cmds_need_lc
=no
20330 lt_cv_archive_cmds_need_lc
=yes
20332 allow_undefined_flag
=$lt_save_allow_undefined_flag
20334 cat conftest.err
1>&5
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20340 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20341 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20507 if test "$GCC" = yes; then
20509 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
20510 *) lt_awk_arg
="/^libraries:/" ;;
20513 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
20514 *) lt_sed_strip_eq
="s,=/,/,g" ;;
20516 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20517 case $lt_search_path_spec in
20519 # if the path contains ";" then we assume it to be the separator
20520 # otherwise default to the standard path separator (i.e. ":") - it is
20521 # assumed that no part of a normal pathname contains ";" but that should
20522 # okay in the real world where ";" in dirpaths is itself problematic.
20523 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20526 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20529 # Ok, now we have the path, separated by spaces, we can step through it
20530 # and add multilib dir if necessary.
20531 lt_tmp_lt_search_path_spec
=
20532 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20533 for lt_sys_path
in $lt_search_path_spec; do
20534 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20535 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20537 test -d "$lt_sys_path" && \
20538 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
20541 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20542 BEGIN {RS=" "; FS="/|\n";} {
20545 for (lt_i = NF; lt_i > 0; lt_i--) {
20546 if ($lt_i != "" && $lt_i != ".") {
20547 if ($lt_i == "..") {
20550 if (lt_count == 0) {
20551 lt_foo="/" $lt_i lt_foo;
20558 if (lt_foo != "") { lt_freq[lt_foo]++; }
20559 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20561 # AWK program above erroneously prepends '/' to C:/dos/paths
20564 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
20565 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20567 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20569 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20571 library_names_spec
=
20572 libname_spec
='lib$name'
20576 postuninstall_cmds
=
20580 shlibpath_overrides_runpath
=unknown
20582 dynamic_linker
="$host_os ld.so"
20583 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20584 need_lib_prefix
=unknown
20585 hardcode_into_libs
=no
20587 # when you set need_version to no, make sure it does not cause -set_version
20588 # flags to be left without arguments
20589 need_version
=unknown
20594 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20595 shlibpath_var
=LIBPATH
20597 # AIX 3 has no versioning support, so we append a major version to the name.
20598 soname_spec
='${libname}${release}${shared_ext}$major'
20605 hardcode_into_libs
=yes
20606 if test "$host_cpu" = ia64
; then
20607 # AIX 5 supports IA64
20608 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20609 shlibpath_var
=LD_LIBRARY_PATH
20611 # With GCC up to 2.95.x, collect2 would create an import file
20612 # for dependence libraries. The import file would start with
20613 # the line `#! .'. This would cause the generated library to
20614 # depend on `.', always an invalid library. This was fixed in
20615 # development snapshots of GCC prior to 3.0.
20617 aix4 | aix4.
[01] | aix4.
[01].
*)
20618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20620 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20623 can_build_shared
=no
20627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20628 # soname into executable. Probably we can add versioning support to
20629 # collect2, so additional links can be useful in future.
20630 if test "$aix_use_runtimelinking" = yes; then
20631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20632 # instead of lib<name>.a to let people know that these are not
20633 # typical AIX shared libraries.
20634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 # We preserve .a as extension for shared libraries through AIX4.2
20637 # and later when we are not doing run time linking.
20638 library_names_spec
='${libname}${release}.a $libname.a'
20639 soname_spec
='${libname}${release}${shared_ext}$major'
20641 shlibpath_var
=LIBPATH
20648 # Since July 2007 AmigaOS4 officially supports .so libraries.
20649 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20653 library_names_spec
='$libname.ixlibrary $libname.a'
20654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20655 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'
20661 library_names_spec
='${libname}${shared_ext}'
20662 dynamic_linker
="$host_os ld.so"
20663 shlibpath_var
=LIBRARY_PATH
20669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec
='${libname}${release}${shared_ext}$major'
20671 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20672 shlibpath_var
=LD_LIBRARY_PATH
20673 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20674 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20675 # the default ld.so.conf also contains /usr/contrib/lib and
20676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20677 # libtool to hard-code these into programs
20680 cygwin
* | mingw
* | pw32
* | cegcc
*)
20681 version_type
=windows
20686 case $GCC,$host_os in
20687 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20688 library_names_spec
='$libname.dll.a'
20689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20690 postinstall_cmds
='base_file=`basename \${file}`~
20691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20692 dldir=$destdir/`dirname \$dlpath`~
20693 test -d \$dldir || mkdir -p \$dldir~
20694 $install_prog $dir/$dlname \$dldir/$dlname~
20695 chmod a+x \$dldir/$dlname~
20696 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20697 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20699 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20700 dlpath=$dir/\$dldll~
20702 shlibpath_overrides_runpath
=yes
20706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20707 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20709 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
20712 # MinGW DLLs use traditional 'lib' prefix
20713 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20716 # pw32 DLLs use 'pw' prefix rather than 'lib'
20717 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20723 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20726 dynamic_linker
='Win32 ld.exe'
20727 # FIXME: first we should search . and the directory the executable is in
20731 darwin
* | rhapsody
*)
20732 dynamic_linker
="$host_os dyld"
20733 version_type
=darwin
20736 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20737 soname_spec
='${libname}${release}${major}$shared_ext'
20738 shlibpath_overrides_runpath
=yes
20739 shlibpath_var
=DYLD_LIBRARY_PATH
20740 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20742 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
20743 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20751 soname_spec
='${libname}${release}${shared_ext}$major'
20752 shlibpath_var
=LD_LIBRARY_PATH
20755 freebsd
* | dragonfly
*)
20756 # DragonFly does not have aout. When/if they implement a new
20757 # versioning mechanism, adjust this.
20758 if test -x /usr
/bin
/objformat
; then
20759 objformat
=`/usr/bin/objformat`
20762 freebsd
[23].
*) objformat
=aout
;;
20763 *) objformat
=elf
;;
20766 version_type
=freebsd-
$objformat
20767 case $version_type in
20769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20774 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20778 shlibpath_var
=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath
=yes
20783 freebsd3.
[01]* | freebsdelf3.
[01]*)
20784 shlibpath_overrides_runpath
=yes
20785 hardcode_into_libs
=yes
20787 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20788 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20789 shlibpath_overrides_runpath
=no
20790 hardcode_into_libs
=yes
20792 *) # from 4.6 on, and DragonFly
20793 shlibpath_overrides_runpath
=yes
20794 hardcode_into_libs
=yes
20803 dynamic_linker
="$host_os runtime_loader"
20804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20805 soname_spec
='${libname}${release}${shared_ext}$major'
20806 shlibpath_var
=LIBRARY_PATH
20807 shlibpath_overrides_runpath
=yes
20808 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20809 hardcode_into_libs
=yes
20812 hpux9
* | hpux10
* | hpux11
*)
20813 # Give a soname corresponding to the major version so that dld.sl refuses to
20814 # link against other versions.
20821 hardcode_into_libs
=yes
20822 dynamic_linker
="$host_os dld.so"
20823 shlibpath_var
=LD_LIBRARY_PATH
20824 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20826 soname_spec
='${libname}${release}${shared_ext}$major'
20827 if test "X$HPUX_IA64_MODE" = X32
; then
20828 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20830 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20832 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20836 hardcode_into_libs
=yes
20837 dynamic_linker
="$host_os dld.sl"
20838 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20839 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841 soname_spec
='${libname}${release}${shared_ext}$major'
20842 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20843 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20847 dynamic_linker
="$host_os dld.sl"
20848 shlibpath_var
=SHLIB_PATH
20849 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec
='${libname}${release}${shared_ext}$major'
20854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20855 postinstall_cmds
='chmod 555 $lib'
20856 # or fails outright, so override atomically:
20857 install_override_mode
=555
20864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20865 soname_spec
='${libname}${release}${shared_ext}$major'
20866 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20867 shlibpath_var
=LD_LIBRARY_PATH
20868 shlibpath_overrides_runpath
=no
20869 hardcode_into_libs
=yes
20872 irix5
* | irix6
* | nonstopux
*)
20874 nonstopux
*) version_type
=nonstopux
;;
20876 if test "$lt_cv_prog_gnu_ld" = yes; then
20884 soname_spec
='${libname}${release}${shared_ext}$major'
20885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20887 irix5
* | nonstopux
*)
20888 libsuff
= shlibsuff
=
20891 case $LD in # libtool.m4 will add one of these switches to LD
20892 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20893 libsuff
= shlibsuff
= libmagic
=32-bit;;
20894 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20895 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20896 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20897 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20898 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20902 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20903 shlibpath_overrides_runpath
=no
20904 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20905 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20906 hardcode_into_libs
=yes
20909 # No shared lib support for Linux oldld, aout, or coff.
20910 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20914 # This must be Linux ELF.
20916 # uclinux* changes (here and below) have been submitted to the libtool
20917 # project, but have not yet been accepted: they are GCC-local changes
20918 # for the time being. (See
20919 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20920 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
20924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925 soname_spec
='${libname}${release}${shared_ext}$major'
20926 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20927 shlibpath_var
=LD_LIBRARY_PATH
20928 shlibpath_overrides_runpath
=no
20930 # Some binutils ld are patched to set DT_RUNPATH
20931 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
20932 $as_echo_n "(cached) " >&6
20934 lt_cv_shlibpath_overrides_runpath
=no
20935 save_LDFLAGS
=$LDFLAGS
20936 save_libdir
=$libdir
20937 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20938 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20950 if ac_fn_c_try_link
"$LINENO"; then :
20951 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20952 lt_cv_shlibpath_overrides_runpath
=yes
20955 rm -f core conftest.err conftest.
$ac_objext \
20956 conftest
$ac_exeext conftest.
$ac_ext
20957 LDFLAGS
=$save_LDFLAGS
20958 libdir
=$save_libdir
20962 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20964 # This implies no fast_install, which is unacceptable.
20965 # Some rework will be needed to allow for fast_install
20966 # before this can be enabled.
20967 hardcode_into_libs
=yes
20969 # Append ld.so.conf contents to the search path
20970 if test -f /etc
/ld.so.conf
; then
20971 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' ' '`
20972 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20975 # We used to test for /lib/ld.so.1 and disable shared libraries on
20976 # powerpc, because MkLinux only supported shared libraries with the
20977 # GNU dynamic linker. Since this was broken with cross compilers,
20978 # most powerpc-linux boxes support dynamic linking these days and
20979 # people can always --disable-shared, the test was removed, and we
20980 # assume the GNU/Linux dynamic linker is in use.
20981 dynamic_linker
='GNU/Linux ld.so'
20988 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20990 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20991 dynamic_linker
='NetBSD (a.out) ld.so'
20993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20994 soname_spec
='${libname}${release}${shared_ext}$major'
20995 dynamic_linker
='NetBSD ld.elf_so'
20997 shlibpath_var
=LD_LIBRARY_PATH
20998 shlibpath_overrides_runpath
=yes
20999 hardcode_into_libs
=yes
21004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 shlibpath_var
=LD_LIBRARY_PATH
21006 shlibpath_overrides_runpath
=yes
21013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 shlibpath_var
=LD_LIBRARY_PATH
21016 shlibpath_overrides_runpath
=no
21017 hardcode_into_libs
=yes
21018 dynamic_linker
='ldqnx.so'
21023 sys_lib_dlsearch_path_spec
="/usr/lib"
21025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21027 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21028 *) need_version
=no
;;
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21032 shlibpath_var
=LD_LIBRARY_PATH
21033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21035 openbsd2.
[89] | openbsd2.
[89].
*)
21036 shlibpath_overrides_runpath
=no
21039 shlibpath_overrides_runpath
=yes
21043 shlibpath_overrides_runpath
=yes
21048 libname_spec
='$name'
21051 library_names_spec
='$libname${shared_ext} $libname.a'
21052 dynamic_linker
='OS/2 ld.exe'
21053 shlibpath_var
=LIBPATH
21056 osf3
* | osf4
* | osf5
*)
21060 soname_spec
='${libname}${release}${shared_ext}$major'
21061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 shlibpath_var
=LD_LIBRARY_PATH
21063 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21064 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 soname_spec
='${libname}${release}${shared_ext}$major'
21077 shlibpath_var
=LD_LIBRARY_PATH
21078 shlibpath_overrides_runpath
=yes
21079 hardcode_into_libs
=yes
21080 # ldd complains unless libraries are executable
21081 postinstall_cmds
='chmod +x $lib'
21086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21087 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21088 shlibpath_var
=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath
=yes
21090 if test "$with_gnu_ld" = yes; then
21098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21099 soname_spec
='${libname}${release}${shared_ext}$major'
21100 shlibpath_var
=LD_LIBRARY_PATH
21101 case $host_vendor in
21103 shlibpath_overrides_runpath
=no
21105 runpath_var
=LD_RUN_PATH
21113 shlibpath_overrides_runpath
=no
21114 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21120 if test -d /usr
/nec
;then
21122 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21123 soname_spec
='$libname${shared_ext}.$major'
21124 shlibpath_var
=LD_LIBRARY_PATH
21128 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21129 version_type
=freebsd-elf
21132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21133 soname_spec
='${libname}${release}${shared_ext}$major'
21134 shlibpath_var
=LD_LIBRARY_PATH
21135 shlibpath_overrides_runpath
=yes
21136 hardcode_into_libs
=yes
21137 if test "$with_gnu_ld" = yes; then
21138 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21140 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21143 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21147 sys_lib_dlsearch_path_spec
='/usr/lib'
21151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21156 shlibpath_var
=LD_LIBRARY_PATH
21157 shlibpath_overrides_runpath
=no
21158 hardcode_into_libs
=yes
21163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164 soname_spec
='${libname}${release}${shared_ext}$major'
21165 shlibpath_var
=LD_LIBRARY_PATH
21168 # Shared libraries for VwWorks, >= 7 only at this stage
21169 # and (fpic) still incompatible with "large" code models
21170 # in a few configurations. Only for RTP mode in any case,
21171 # and upon explicit request at configure time.
21174 case ${with_multisubdir}-${enable_shared} in
21181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 soname_spec
='${libname}${release}${shared_ext}$major'
21183 dynamic_linker
="$host_os module_loader"
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21192 $as_echo "$dynamic_linker" >&6; }
21193 test "$dynamic_linker" = no
&& can_build_shared
=no
21195 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21196 if test "$GCC" = yes; then
21197 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21200 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21201 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21203 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21204 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21301 if test -n "$hardcode_libdir_flag_spec" ||
21302 test -n "$runpath_var" ||
21303 test "X$hardcode_automatic" = "Xyes" ; then
21305 # We can hardcode non-existent directories.
21306 if test "$hardcode_direct" != no
&&
21307 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21308 # have to relink, otherwise we might link with an installed library
21309 # when we should be linking with a yet-to-be-installed one
21310 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21311 test "$hardcode_minus_L" != no
; then
21312 # Linking always hardcodes the temporary library directory.
21313 hardcode_action
=relink
21315 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21316 hardcode_action
=immediate
21319 # We cannot hardcode anything, or else we can only hardcode existing
21321 hardcode_action
=unsupported
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21324 $as_echo "$hardcode_action" >&6; }
21326 if test "$hardcode_action" = relink ||
21327 test "$inherit_rpath" = yes; then
21328 # Fast installation is not supported
21329 enable_fast_install
=no
21330 elif test "$shlibpath_overrides_runpath" = yes ||
21331 test "$enable_shared" = no
; then
21332 # Fast installation is not necessary
21333 enable_fast_install
=needless
21341 if test "x$enable_dlopen" != xyes
; then
21342 enable_dlopen
=unknown
21343 enable_dlopen_self
=unknown
21344 enable_dlopen_self_static
=unknown
21351 lt_cv_dlopen
="load_add_on"
21353 lt_cv_dlopen_self
=yes
21356 mingw
* | pw32
* | cegcc
*)
21357 lt_cv_dlopen
="LoadLibrary"
21362 lt_cv_dlopen
="dlopen"
21367 # if libdl is installed we need to link against it
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21370 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21371 $as_echo_n "(cached) " >&6
21373 ac_check_lib_save_LIBS
=$LIBS
21375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380 builtin and then its argument prototype would still apply. */
21393 if ac_fn_c_try_link
"$LINENO"; then :
21394 ac_cv_lib_dl_dlopen
=yes
21396 ac_cv_lib_dl_dlopen
=no
21398 rm -f core conftest.err conftest.
$ac_objext \
21399 conftest
$ac_exeext conftest.
$ac_ext
21400 LIBS
=$ac_check_lib_save_LIBS
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21404 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21405 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21408 lt_cv_dlopen
="dyld"
21410 lt_cv_dlopen_self
=yes
21417 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
21418 if test "x$ac_cv_func_shl_load" = xyes
; then :
21419 lt_cv_dlopen
="shl_load"
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21422 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21423 if ${ac_cv_lib_dld_shl_load+:} false
; then :
21424 $as_echo_n "(cached) " >&6
21426 ac_check_lib_save_LIBS
=$LIBS
21428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21429 /* end confdefs.h. */
21431 /* Override any GCC internal prototype to avoid an error.
21432 Use char because int might match the return type of a GCC
21433 builtin and then its argument prototype would still apply. */
21441 return shl_load ();
21446 if ac_fn_c_try_link
"$LINENO"; then :
21447 ac_cv_lib_dld_shl_load
=yes
21449 ac_cv_lib_dld_shl_load
=no
21451 rm -f core conftest.err conftest.
$ac_objext \
21452 conftest
$ac_exeext conftest.
$ac_ext
21453 LIBS
=$ac_check_lib_save_LIBS
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21456 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21457 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
21458 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
21460 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
21461 if test "x$ac_cv_func_dlopen" = xyes
; then :
21462 lt_cv_dlopen
="dlopen"
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21466 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21467 $as_echo_n "(cached) " >&6
21469 ac_check_lib_save_LIBS
=$LIBS
21471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21474 /* Override any GCC internal prototype to avoid an error.
21475 Use char because int might match the return type of a GCC
21476 builtin and then its argument prototype would still apply. */
21489 if ac_fn_c_try_link
"$LINENO"; then :
21490 ac_cv_lib_dl_dlopen
=yes
21492 ac_cv_lib_dl_dlopen
=no
21494 rm -f core conftest.err conftest.
$ac_objext \
21495 conftest
$ac_exeext conftest.
$ac_ext
21496 LIBS
=$ac_check_lib_save_LIBS
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21500 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21501 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21504 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21505 if ${ac_cv_lib_svld_dlopen+:} false
; then :
21506 $as_echo_n "(cached) " >&6
21508 ac_check_lib_save_LIBS
=$LIBS
21509 LIBS
="-lsvld $LIBS"
21510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21513 /* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply. */
21528 if ac_fn_c_try_link
"$LINENO"; then :
21529 ac_cv_lib_svld_dlopen
=yes
21531 ac_cv_lib_svld_dlopen
=no
21533 rm -f core conftest.err conftest.
$ac_objext \
21534 conftest
$ac_exeext conftest.
$ac_ext
21535 LIBS
=$ac_check_lib_save_LIBS
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21538 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21539 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
21540 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21543 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21544 if ${ac_cv_lib_dld_dld_link+:} false
; then :
21545 $as_echo_n "(cached) " >&6
21547 ac_check_lib_save_LIBS
=$LIBS
21549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21552 /* Override any GCC internal prototype to avoid an error.
21553 Use char because int might match the return type of a GCC
21554 builtin and then its argument prototype would still apply. */
21562 return dld_link ();
21567 if ac_fn_c_try_link
"$LINENO"; then :
21568 ac_cv_lib_dld_dld_link
=yes
21570 ac_cv_lib_dld_dld_link
=no
21572 rm -f core conftest.err conftest.
$ac_objext \
21573 conftest
$ac_exeext conftest.
$ac_ext
21574 LIBS
=$ac_check_lib_save_LIBS
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21577 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21578 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
21579 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
21600 if test "x$lt_cv_dlopen" != xno
; then
21606 case $lt_cv_dlopen in
21608 save_CPPFLAGS
="$CPPFLAGS"
21609 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
21611 save_LDFLAGS
="$LDFLAGS"
21612 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
21615 LIBS
="$lt_cv_dlopen_libs $LIBS"
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21618 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21619 if ${lt_cv_dlopen_self+:} false
; then :
21620 $as_echo_n "(cached) " >&6
21622 if test "$cross_compiling" = yes; then :
21623 lt_cv_dlopen_self
=cross
21625 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21626 lt_status
=$lt_dlunknown
21627 cat > conftest.
$ac_ext <<_LT_EOF
21628 #line 21628 "configure"
21629 #include "confdefs.h"
21638 # define LT_DLGLOBAL RTLD_GLOBAL
21641 # define LT_DLGLOBAL DL_GLOBAL
21643 # define LT_DLGLOBAL 0
21647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21648 find out it does not work in some platform. */
21649 #ifndef LT_DLLAZY_OR_NOW
21651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21654 # define LT_DLLAZY_OR_NOW DL_LAZY
21657 # define LT_DLLAZY_OR_NOW RTLD_NOW
21660 # define LT_DLLAZY_OR_NOW DL_NOW
21662 # define LT_DLLAZY_OR_NOW 0
21669 /* When -fvisbility=hidden is used, assume the code has been annotated
21670 correspondingly for the symbols needed. */
21671 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21672 void fnord () __attribute__((visibility("default")));
21675 void fnord () { int i=42; }
21678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21679 int status = $lt_dlunknown;
21683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21687 else puts (dlerror ());
21689 /* dlclose (self); */
21697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21698 (eval $ac_link) 2>&5
21700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21701 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21702 (.
/conftest
; exit; ) >&5 2>/dev
/null
21704 case x
$lt_status in
21705 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
21706 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
21707 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
21710 # compilation failed
21711 lt_cv_dlopen_self
=no
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21719 $as_echo "$lt_cv_dlopen_self" >&6; }
21721 if test "x$lt_cv_dlopen_self" = xyes
; then
21722 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21724 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21725 if ${lt_cv_dlopen_self_static+:} false
; then :
21726 $as_echo_n "(cached) " >&6
21728 if test "$cross_compiling" = yes; then :
21729 lt_cv_dlopen_self_static
=cross
21731 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21732 lt_status
=$lt_dlunknown
21733 cat > conftest.
$ac_ext <<_LT_EOF
21734 #line 21734 "configure"
21735 #include "confdefs.h"
21744 # define LT_DLGLOBAL RTLD_GLOBAL
21747 # define LT_DLGLOBAL DL_GLOBAL
21749 # define LT_DLGLOBAL 0
21753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21754 find out it does not work in some platform. */
21755 #ifndef LT_DLLAZY_OR_NOW
21757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21760 # define LT_DLLAZY_OR_NOW DL_LAZY
21763 # define LT_DLLAZY_OR_NOW RTLD_NOW
21766 # define LT_DLLAZY_OR_NOW DL_NOW
21768 # define LT_DLLAZY_OR_NOW 0
21775 /* When -fvisbility=hidden is used, assume the code has been annotated
21776 correspondingly for the symbols needed. */
21777 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21778 void fnord () __attribute__((visibility("default")));
21781 void fnord () { int i=42; }
21784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21785 int status = $lt_dlunknown;
21789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21792 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21793 else puts (dlerror ());
21795 /* dlclose (self); */
21803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21804 (eval $ac_link) 2>&5
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21808 (.
/conftest
; exit; ) >&5 2>/dev
/null
21810 case x
$lt_status in
21811 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
21812 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
21813 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
21816 # compilation failed
21817 lt_cv_dlopen_self_static
=no
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21825 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21828 CPPFLAGS
="$save_CPPFLAGS"
21829 LDFLAGS
="$save_LDFLAGS"
21834 case $lt_cv_dlopen_self in
21835 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
21836 *) enable_dlopen_self
=unknown
;;
21839 case $lt_cv_dlopen_self_static in
21840 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
21841 *) enable_dlopen_self_static
=unknown
;;
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21864 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21865 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
21866 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
21867 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21869 $as_echo "yes" >&6; }
21871 # FIXME - insert some real tests, host_os isn't really good enough
21874 if test -n "$STRIP" ; then
21875 striplib
="$STRIP -x"
21876 old_striplib
="$STRIP -S"
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21878 $as_echo "yes" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21902 # Report which library types will actually be built
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21904 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21906 $as_echo "$can_build_shared" >&6; }
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21909 $as_echo_n "checking whether to build shared libraries... " >&6; }
21910 test "$can_build_shared" = "no" && enable_shared
=no
21912 # On AIX, shared libraries and static libraries use the same namespace, and
21913 # are all built from PIC.
21916 test "$enable_shared" = yes && enable_static
=no
21917 if test -n "$RANLIB"; then
21918 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21919 postinstall_cmds
='$RANLIB $lib'
21924 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21925 test "$enable_shared" = yes && enable_static
=no
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21930 $as_echo "$enable_shared" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21933 $as_echo_n "checking whether to build static libraries... " >&6; }
21934 # Make sure either enable_shared or enable_static is yes.
21935 test "$enable_shared" = yes || enable_static
=yes
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21937 $as_echo "$enable_static" >&6; }
21944 ac_cpp
='$CXXCPP $CPPFLAGS'
21945 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21951 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21952 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21953 (test "X$CXX" != "Xg++"))) ; then
21955 ac_cpp
='$CXXCPP $CPPFLAGS'
21956 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21961 if test -z "$CXXCPP"; then
21962 if ${ac_cv_prog_CXXCPP+:} false
; then :
21963 $as_echo_n "(cached) " >&6
21965 # Double quotes because CXXCPP needs to be expanded
21966 for CXXCPP
in "$CXX -E" "/lib/cpp"
21968 ac_preproc_ok
=false
21969 for ac_cxx_preproc_warn_flag
in '' yes
21971 # Use a header file that comes with gcc, so configuring glibc
21972 # with a fresh cross-compiler works.
21973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21974 # <limits.h> exists even on freestanding compilers.
21975 # On the NeXT, cc -E runs the code through the compiler's parser,
21976 # not just through cpp. "Syntax error" is here to catch this case.
21977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21980 # include <limits.h>
21982 # include <assert.h>
21986 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21989 # Broken: fails on valid input.
21992 rm -f conftest.err conftest.i conftest.
$ac_ext
21994 # OK, works on sane cases. Now check whether nonexistent headers
21995 # can be detected and how.
21996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21998 #include <ac_nonexistent.h>
22000 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22001 # Broken: success on invalid input.
22004 # Passes both tests.
22008 rm -f conftest.err conftest.i conftest.
$ac_ext
22011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22012 rm -f conftest.i conftest.err conftest.
$ac_ext
22013 if $ac_preproc_ok; then :
22018 ac_cv_prog_CXXCPP
=$CXXCPP
22021 CXXCPP
=$ac_cv_prog_CXXCPP
22023 ac_cv_prog_CXXCPP
=$CXXCPP
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22026 $as_echo "$CXXCPP" >&6; }
22027 ac_preproc_ok
=false
22028 for ac_cxx_preproc_warn_flag
in '' yes
22030 # Use a header file that comes with gcc, so configuring glibc
22031 # with a fresh cross-compiler works.
22032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22033 # <limits.h> exists even on freestanding compilers.
22034 # On the NeXT, cc -E runs the code through the compiler's parser,
22035 # not just through cpp. "Syntax error" is here to catch this case.
22036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22037 /* end confdefs.h. */
22039 # include <limits.h>
22041 # include <assert.h>
22045 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22048 # Broken: fails on valid input.
22051 rm -f conftest.err conftest.i conftest.
$ac_ext
22053 # OK, works on sane cases. Now check whether nonexistent headers
22054 # can be detected and how.
22055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22056 /* end confdefs.h. */
22057 #include <ac_nonexistent.h>
22059 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22060 # Broken: success on invalid input.
22063 # Passes both tests.
22067 rm -f conftest.err conftest.i conftest.
$ac_ext
22070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22071 rm -f conftest.i conftest.err conftest.
$ac_ext
22072 if $ac_preproc_ok; then :
22075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22077 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
22078 See \`config.log' for more details" "$LINENO" 5; }
22082 ac_cpp
='$CXXCPP $CPPFLAGS'
22083 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22084 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22085 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22088 _lt_caught_CXX_error
=yes
22092 ac_cpp
='$CXXCPP $CPPFLAGS'
22093 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22094 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22095 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22097 archive_cmds_need_lc_CXX
=no
22098 allow_undefined_flag_CXX
=
22099 always_export_symbols_CXX
=no
22100 archive_expsym_cmds_CXX
=
22101 compiler_needs_object_CXX
=no
22102 export_dynamic_flag_spec_CXX
=
22103 hardcode_direct_CXX
=no
22104 hardcode_direct_absolute_CXX
=no
22105 hardcode_libdir_flag_spec_CXX
=
22106 hardcode_libdir_flag_spec_ld_CXX
=
22107 hardcode_libdir_separator_CXX
=
22108 hardcode_minus_L_CXX
=no
22109 hardcode_shlibpath_var_CXX
=unsupported
22110 hardcode_automatic_CXX
=no
22111 inherit_rpath_CXX
=no
22113 module_expsym_cmds_CXX
=
22114 link_all_deplibs_CXX
=unknown
22115 old_archive_cmds_CXX
=$old_archive_cmds
22116 reload_flag_CXX
=$reload_flag
22117 reload_cmds_CXX
=$reload_cmds
22118 no_undefined_flag_CXX
=
22119 whole_archive_flag_spec_CXX
=
22120 enable_shared_with_static_runtimes_CXX
=no
22122 # Source file extension for C++ test sources.
22125 # Object file extension for compiled C++ test sources.
22129 # No sense in running all these tests if we already determined that
22130 # the CXX compiler isn't working. Some variables (like enable_shared)
22131 # are currently assumed to apply to all compilers on this platform,
22132 # and will be corrupted by setting them based on a non-working compiler.
22133 if test "$_lt_caught_CXX_error" != yes; then
22134 # Code to be used in simple compile tests
22135 lt_simple_compile_test_code
="int some_variable = 0;"
22137 # Code to be used in simple link tests
22138 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
22140 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22147 # If no C compiler was specified, use CC.
22150 # If no C compiler flags were specified, use CFLAGS.
22151 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
22153 # Allow CC to be a program name with arguments.
22157 # save warnings/boilerplate of simple test code
22158 ac_outfile
=conftest.
$ac_objext
22159 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
22160 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22161 _lt_compiler_boilerplate
=`cat conftest.err`
22164 ac_outfile
=conftest.
$ac_objext
22165 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
22166 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22167 _lt_linker_boilerplate
=`cat conftest.err`
22171 # Allow CC to be a program name with arguments.
22176 lt_save_with_gnu_ld
=$with_gnu_ld
22177 lt_save_path_LD
=$lt_cv_path_LD
22178 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22179 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
22181 $as_unset lt_cv_prog_gnu_ld
22183 if test -n "${lt_cv_path_LDCXX+set}"; then
22184 lt_cv_path_LD
=$lt_cv_path_LDCXX
22186 $as_unset lt_cv_path_LD
22188 test -z "${LDCXX+set}" || LD
=$LDCXX
22192 for cc_temp
in $compiler""; do
22194 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22195 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22200 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22203 if test -n "$compiler"; then
22204 # We don't want -fno-exception when compiling C++ code, so set the
22205 # no_builtin_flag separately
22206 if test "$GXX" = yes; then
22207 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
22209 lt_prog_compiler_no_builtin_flag_CXX
=
22212 if test "$GXX" = yes; then
22213 # Set up default GNU C++ configuration
22217 # Check whether --with-gnu-ld was given.
22218 if test "${with_gnu_ld+set}" = set; then :
22219 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
22225 if test "$GCC" = yes; then
22226 # Check if gcc -print-prog-name=ld gives a path.
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22228 $as_echo_n "checking for ld used by $CC... " >&6; }
22231 # gcc leaves a trailing carriage return which upsets mingw
22232 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22234 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
22237 # Accept absolute paths.
22239 re_direlt
='/[^/][^/]*/\.\./'
22240 # Canonicalize the pathname of ld
22241 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22242 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
22243 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22245 test -z "$LD" && LD
="$ac_prog"
22248 # If it fails, then pretend we aren't using GCC.
22252 # If it is relative, then search for the first ld in PATH.
22253 with_gnu_ld
=unknown
22256 elif test "$with_gnu_ld" = yes; then
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22258 $as_echo_n "checking for GNU ld... " >&6; }
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22261 $as_echo_n "checking for non-GNU ld... " >&6; }
22263 if ${lt_cv_path_LD+:} false
; then :
22264 $as_echo_n "(cached) " >&6
22266 if test -z "$LD"; then
22267 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
22268 for ac_dir
in $PATH; do
22270 test -z "$ac_dir" && ac_dir
=.
22271 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
22272 lt_cv_path_LD
="$ac_dir/$ac_prog"
22273 # Check to see if the program is GNU ld. I'd rather use --version,
22274 # but apparently some variants of GNU ld only accept -v.
22275 # Break only if it was the GNU/non-GNU ld that we prefer.
22276 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22277 *GNU
* |
*'with BFD'*)
22278 test "$with_gnu_ld" != no
&& break
22281 test "$with_gnu_ld" != yes && break
22288 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
22292 LD
="$lt_cv_path_LD"
22293 if test -n "$LD"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22295 $as_echo "$LD" >&6; }
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22300 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22303 if ${lt_cv_prog_gnu_ld+:} false
; then :
22304 $as_echo_n "(cached) " >&6
22306 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22307 case `$LD -v 2>&1 </dev/null` in
22308 *GNU
* |
*'with BFD'*)
22309 lt_cv_prog_gnu_ld
=yes
22312 lt_cv_prog_gnu_ld
=no
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22318 with_gnu_ld
=$lt_cv_prog_gnu_ld
22326 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22327 # archiving commands below assume that GNU ld is being used.
22328 if test "$with_gnu_ld" = yes; then
22329 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22330 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'
22332 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22333 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22335 # If archive_cmds runs LD, not CC, wlarc should be empty
22336 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22337 # investigate it a little bit more. (MM)
22340 # ancient GNU ld didn't support --whole-archive et. al.
22341 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22342 $GREP 'no-whole-archive' > /dev
/null
; then
22343 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22345 whole_archive_flag_spec_CXX
=
22351 # A generic and very simple default shared library creation
22352 # command for GNU C++ for the case where it uses the native
22353 # linker, instead of GNU ld. If possible, this setting should
22354 # overridden to take advantage of the native linker features on
22355 # the platform it is being used on.
22356 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22359 # Commands to make compiler produce verbose output that lists
22360 # what "hidden" libraries, object files and flags are used when
22361 # linking a shared library.
22362 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22370 # PORTME: fill in a description of your system's C++ link characteristics
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22376 # FIXME: insert proper C++ library support
22380 if test "$host_cpu" = ia64
; then
22381 # On IA64, the linker does run time linking by default, so we don't
22382 # have to do anything special.
22383 aix_use_runtimelinking
=no
22384 exp_sym_flag
='-Bexport'
22387 aix_use_runtimelinking
=no
22389 # Test if we are trying to use run time linking or normal
22390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22391 # need to do runtime linking.
22392 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
22393 for ld_flag
in $LDFLAGS; do
22396 aix_use_runtimelinking
=yes
22404 exp_sym_flag
='-bexport'
22405 no_entry_flag
='-bnoentry'
22408 # When large executables or shared objects are built, AIX ld can
22409 # have problems creating the table of contents. If linking a library
22410 # or program results in "error TOC overflow" add -mminimal-toc to
22411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22414 archive_cmds_CXX
=''
22415 hardcode_direct_CXX
=yes
22416 hardcode_direct_absolute_CXX
=yes
22417 hardcode_libdir_separator_CXX
=':'
22418 link_all_deplibs_CXX
=yes
22419 file_list_spec_CXX
='${wl}-f,'
22421 if test "$GXX" = yes; then
22422 case $host_os in aix4.
[012]|aix4.
[012].
*)
22423 # We only want to do this on AIX 4.2 and lower, the check
22424 # below for broken collect2 doesn't work under 4.3+
22425 collect2name
=`${CC} -print-prog-name=collect2`
22426 if test -f "$collect2name" &&
22427 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
22429 # We have reworked collect2
22432 # We have old collect2
22433 hardcode_direct_CXX
=unsupported
22434 # It fails to find uninstalled libraries when the uninstalled
22435 # path is not listed in the libpath. Setting hardcode_minus_L
22436 # to unsupported forces relinking
22437 hardcode_minus_L_CXX
=yes
22438 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22439 hardcode_libdir_separator_CXX
=
22442 shared_flag
='-shared'
22443 if test "$aix_use_runtimelinking" = yes; then
22444 shared_flag
="$shared_flag "'${wl}-G'
22448 if test "$host_cpu" = ia64
; then
22449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22450 # chokes on -Wl,-G. The following line is correct:
22453 if test "$aix_use_runtimelinking" = yes; then
22454 shared_flag
='${wl}-G'
22456 shared_flag
='${wl}-bM:SRE'
22461 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
22462 # It seems that -bexpall does not export symbols beginning with
22463 # underscore (_), so it is better to generate a list of symbols to
22465 always_export_symbols_CXX
=yes
22466 if test "$aix_use_runtimelinking" = yes; then
22467 # Warning - without using the other runtime loading flags (-brtl),
22468 # -berok will link without error, but may produce a broken library.
22469 allow_undefined_flag_CXX
='-berok'
22470 # Determine the default libpath from the value encoded in an empty
22472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22483 if ac_fn_cxx_try_link
"$LINENO"; then :
22485 lt_aix_libpath_sed
='
22486 /Import File Strings/,/^$/ {
22492 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22493 # Check for a 64-bit object if we didn't find anything.
22494 if test -z "$aix_libpath"; then
22495 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22498 rm -f core conftest.err conftest.
$ac_objext \
22499 conftest
$ac_exeext conftest.
$ac_ext
22500 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22502 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22504 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"
22506 if test "$host_cpu" = ia64
; then
22507 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
22508 allow_undefined_flag_CXX
="-z nodefs"
22509 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"
22511 # Determine the default libpath from the value encoded in an
22512 # empty executable.
22513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22524 if ac_fn_cxx_try_link
"$LINENO"; then :
22526 lt_aix_libpath_sed
='
22527 /Import File Strings/,/^$/ {
22533 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22534 # Check for a 64-bit object if we didn't find anything.
22535 if test -z "$aix_libpath"; then
22536 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22539 rm -f core conftest.err conftest.
$ac_objext \
22540 conftest
$ac_exeext conftest.
$ac_ext
22541 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22543 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22544 # Warning - without using the other run time loading flags,
22545 # -berok will link without error, but may produce a broken library.
22546 no_undefined_flag_CXX
=' ${wl}-bernotok'
22547 allow_undefined_flag_CXX
=' ${wl}-berok'
22548 if test "$with_gnu_ld" = yes; then
22549 # We only use this code for GNU lds that support --whole-archive.
22550 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22552 # Exported symbols can be pulled into shared objects from archives
22553 whole_archive_flag_spec_CXX
='$convenience'
22555 archive_cmds_need_lc_CXX
=yes
22556 # This is similar to how AIX traditionally builds its shared
22558 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'
22564 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
22565 allow_undefined_flag_CXX
=unsupported
22566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22567 # support --undefined. This deserves some investigation. FIXME
22568 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22575 case $cc_basename in
22577 # FIXME: insert proper C++ library support
22583 cygwin
* | mingw
* | pw32
* | cegcc
*)
22584 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22585 # as there is no search path for DLLs.
22586 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22587 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
22588 allow_undefined_flag_CXX
=unsupported
22589 always_export_symbols_CXX
=no
22590 enable_shared_with_static_runtimes_CXX
=yes
22592 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
22593 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'
22594 # If the export-symbols file already is a .def file (1st line
22595 # is EXPORTS), use it as is; otherwise, prepend...
22596 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22597 cp $export_symbols $output_objdir/$soname.def;
22599 echo EXPORTS > $output_objdir/$soname.def;
22600 cat $export_symbols >> $output_objdir/$soname.def;
22602 $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'
22607 darwin
* | rhapsody
*)
22611 # Publish an arg to allow the user to select that Darwin host (and target)
22612 # libraries should be given install-names like @rpath/libfoo.dylib. This
22613 # requires that the user of the library then adds an 'rpath' to the DSO that
22615 # NOTE: there are defaults below, for systems that support rpaths. The person
22616 # configuring can override the defaults for any system version that supports
22617 # them - they are, however, forced off for system versions without support.
22618 # Check whether --enable-darwin-at-rpath was given.
22619 if test "${enable_darwin_at_rpath+set}" = set; then :
22620 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22621 # This is not supported before macOS 10.5 / Darwin9.
22622 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22623 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22625 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22626 enable_darwin_at_rpath
=no
22631 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22632 # As above, before 10.5 / Darwin9 this does not work.
22633 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22634 enable_darwin_at_rpath
=no
22637 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22638 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22639 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22640 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22642 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22643 enable_darwin_at_rpath
=yes
22645 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22646 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22653 archive_cmds_need_lc_CXX
=no
22654 hardcode_direct_CXX
=no
22655 hardcode_automatic_CXX
=yes
22656 hardcode_shlibpath_var_CXX
=unsupported
22657 if test "$lt_cv_ld_force_load" = "yes"; then
22658 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\"`'
22660 whole_archive_flag_spec_CXX
=''
22662 link_all_deplibs_CXX
=yes
22663 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
22664 case $cc_basename in
22665 ifort
*) _lt_dar_can_shared
=yes ;;
22666 *) _lt_dar_can_shared
=$GCC ;;
22668 if test "$_lt_dar_can_shared" = "yes"; then
22669 output_verbose_link_cmd
=func_echo_all
22670 _lt_install_name
='\$rpath/\$soname'
22671 if test "x$enable_darwin_at_rpath" = "xyes"; then
22672 _lt_install_name
='@rpath/\$soname'
22674 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22675 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22676 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}"
22677 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}"
22678 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22679 _lt_install_name
='\$rpath/\$soname'
22680 if test "x$enable_darwin_at_rpath" = "xyes"; then
22681 _lt_install_name
='@rpath/\$soname'
22683 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}"
22684 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}"
22694 case $cc_basename in
22696 # FIXME: insert proper C++ library support
22700 # Green Hills C++ Compiler
22701 # FIXME: insert proper C++ library support
22705 # FIXME: insert proper C++ library support
22712 # C++ shared libraries reported to be fairly broken before
22718 archive_cmds_need_lc_CXX
=no
22721 freebsd
* | dragonfly
*)
22722 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22731 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22732 link_all_deplibs_CXX
=yes
22736 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22737 hardcode_libdir_separator_CXX
=:
22738 export_dynamic_flag_spec_CXX
='${wl}-E'
22739 hardcode_direct_CXX
=yes
22740 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22741 # but as the default
22742 # location of the library.
22744 case $cc_basename in
22746 # FIXME: insert proper C++ library support
22750 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'
22751 # Commands to make compiler produce verbose output that lists
22752 # what "hidden" libraries, object files and flags are used when
22753 # linking a shared library.
22755 # There doesn't appear to be a way to prevent this compiler from
22756 # explicitly linking system object files so we need to strip them
22757 # from the output so that they don't get included in the library
22759 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"'
22762 if test "$GXX" = yes; then
22763 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'
22765 # FIXME: insert proper C++ library support
22773 if test $with_gnu_ld = no
; then
22774 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22775 hardcode_libdir_separator_CXX
=:
22781 export_dynamic_flag_spec_CXX
='${wl}-E'
22787 hardcode_direct_CXX
=no
22788 hardcode_shlibpath_var_CXX
=no
22791 hardcode_direct_CXX
=yes
22792 hardcode_direct_absolute_CXX
=yes
22793 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22794 # but as the default
22795 # location of the library.
22799 case $cc_basename in
22801 # FIXME: insert proper C++ library support
22807 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22810 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22813 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22816 # Commands to make compiler produce verbose output that lists
22817 # what "hidden" libraries, object files and flags are used when
22818 # linking a shared library.
22820 # There doesn't appear to be a way to prevent this compiler from
22821 # explicitly linking system object files so we need to strip them
22822 # from the output so that they don't get included in the library
22824 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"'
22827 if test "$GXX" = yes; then
22828 if test $with_gnu_ld = no
; then
22831 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22834 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22837 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'
22842 # FIXME: insert proper C++ library support
22850 hardcode_direct_CXX
=no
22851 hardcode_shlibpath_var_CXX
=no
22852 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22853 export_dynamic_flag_spec_CXX
='${wl}-E'
22854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22855 # Instead, shared libraries are loaded at an image base (0x10000000 by
22856 # default) and relocated if they conflict, which is a slow very memory
22857 # consuming and fragmenting process. To avoid this, we pick a random,
22858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22860 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'
22861 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'
22864 case $cc_basename in
22867 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'
22869 # Archives containing C++ object files must be created using
22870 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22871 # necessary to make sure instantiated templates are included
22873 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
22876 if test "$GXX" = yes; then
22877 if test "$with_gnu_ld" = no
; then
22878 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'
22880 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'
22883 link_all_deplibs_CXX
=yes
22886 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22887 hardcode_libdir_separator_CXX
=:
22888 inherit_rpath_CXX
=yes
22891 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22892 case $cc_basename in
22894 # Kuck and Associates, Inc. (KAI) C++ Compiler
22896 # KCC will only create a shared library if the output file
22897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22898 # to its proper name (with version) after linking.
22899 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'
22900 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'
22901 # Commands to make compiler produce verbose output that lists
22902 # what "hidden" libraries, object files and flags are used when
22903 # linking a shared library.
22905 # There doesn't appear to be a way to prevent this compiler from
22906 # explicitly linking system object files so we need to strip them
22907 # from the output so that they don't get included in the library
22909 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"'
22911 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22912 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22914 # Archives containing C++ object files must be created using
22915 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22916 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
22921 # version 8.0 and above of icpc choke on multiply defined symbols
22922 # if we add $predep_objects and $postdep_objects, however 7.1 and
22923 # earlier do not add the objects themselves.
22924 case `$CC -V 2>&1` in
22926 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22927 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'
22929 *) # Version 8.0 or newer
22932 ia64
*) tmp_idyn
=' -i_dynamic';;
22934 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22935 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'
22938 archive_cmds_need_lc_CXX
=no
22939 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22940 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22941 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22944 # Portland Group C++ compiler
22946 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
22947 prelink_cmds_CXX
='tpldir=Template.dir~
22949 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22950 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22951 old_archive_cmds_CXX
='tpldir=Template.dir~
22953 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22954 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22956 archive_cmds_CXX
='tpldir=Template.dir~
22958 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22959 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22960 archive_expsym_cmds_CXX
='tpldir=Template.dir~
22962 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22963 $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'
22965 *) # Version 6 and above use weak symbols
22966 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22967 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'
22971 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
22972 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22973 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'
22977 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22978 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'
22980 runpath_var
=LD_RUN_PATH
22981 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22982 hardcode_libdir_separator_CXX
=:
22984 # Commands to make compiler produce verbose output that lists
22985 # what "hidden" libraries, object files and flags are used when
22986 # linking a shared library.
22988 # There doesn't appear to be a way to prevent this compiler from
22989 # explicitly linking system object files so we need to strip them
22990 # from the output so that they don't get included in the library
22992 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'
22994 xl
* | mpixl
* | bgxl
*)
22995 # IBM XL 8.0 on PPC, with GNU ld
22996 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22997 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22998 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22999 if test "x$supports_anon_versioning" = xyes
; then
23000 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
23001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23002 echo "local: *; };" >> $output_objdir/$libname.ver~
23003 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23007 case `$CC -V 2>&1 | sed 5q` in
23010 no_undefined_flag_CXX
=' -zdefs'
23011 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23012 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'
23013 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23014 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'
23015 compiler_needs_object_CXX
=yes
23017 # Not sure whether something based on
23018 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
23020 output_verbose_link_cmd
='func_echo_all'
23022 # Archives containing C++ object files must be created using
23023 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23024 # necessary to make sure instantiated templates are included
23026 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
23034 # FIXME: insert proper C++ library support
23039 # FIXME: insert proper C++ library support
23044 case $cc_basename in
23046 # FIXME: insert proper C++ library support
23050 # FIXME: insert proper C++ library support
23057 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
23058 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23060 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23061 hardcode_direct_CXX
=yes
23062 hardcode_shlibpath_var_CXX
=no
23064 # Workaround some broken pre-1.5 toolchains
23065 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23073 # C++ shared libraries are fairly broken
23078 if test -f /usr
/libexec
/ld.so
; then
23079 hardcode_direct_CXX
=yes
23080 hardcode_shlibpath_var_CXX
=no
23081 hardcode_direct_absolute_CXX
=yes
23082 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23083 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
23084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23085 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23086 export_dynamic_flag_spec_CXX
='${wl}-E'
23087 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23089 output_verbose_link_cmd
=func_echo_all
23095 osf3
* | osf4
* | osf5
*)
23096 case $cc_basename in
23098 # Kuck and Associates, Inc. (KAI) C++ Compiler
23100 # KCC will only create a shared library if the output file
23101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23102 # to its proper name (with version) after linking.
23103 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'
23105 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
23106 hardcode_libdir_separator_CXX
=:
23108 # Archives containing C++ object files must be created using
23109 # the KAI C++ compiler.
23111 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
23112 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
23116 # Rational C++ 2.4.1
23117 # FIXME: insert proper C++ library support
23123 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
23124 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'
23125 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
23128 allow_undefined_flag_CXX
=' -expect_unresolved \*'
23129 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'
23130 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23131 echo "-hidden">> $lib.exp~
23132 $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~
23134 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
23138 hardcode_libdir_separator_CXX
=:
23140 # Commands to make compiler produce verbose output that lists
23141 # what "hidden" libraries, object files and flags are used when
23142 # linking a shared library.
23144 # There doesn't appear to be a way to prevent this compiler from
23145 # explicitly linking system object files so we need to strip them
23146 # from the output so that they don't get included in the library
23148 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"'
23151 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23152 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
23155 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'
23158 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'
23162 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
23163 hardcode_libdir_separator_CXX
=:
23165 # Commands to make compiler produce verbose output that lists
23166 # what "hidden" libraries, object files and flags are used when
23167 # linking a shared library.
23168 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23171 # FIXME: insert proper C++ library support
23179 # FIXME: insert proper C++ library support
23184 case $cc_basename in
23187 # FIXME: insert proper C++ library support
23192 # FIXME: insert proper C++ library support
23196 # FIXME: insert proper C++ library support
23203 case $cc_basename in
23205 # Sun C++ 4.2, 5.x and Centerline C++
23206 archive_cmds_need_lc_CXX
=yes
23207 no_undefined_flag_CXX
=' -zdefs'
23208 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23209 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23210 $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'
23212 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23213 hardcode_shlibpath_var_CXX
=no
23215 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23217 # The compiler driver will combine and reorder linker options,
23218 # but understands `-z linker_flag'.
23219 # Supported since Solaris 2.6 (maybe 2.5.1?)
23220 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
23223 link_all_deplibs_CXX
=yes
23225 output_verbose_link_cmd
='func_echo_all'
23227 # Archives containing C++ object files must be created using
23228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23229 # necessary to make sure instantiated templates are included
23231 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
23234 # Green Hills C++ Compiler
23235 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23237 # The C++ compiler must be used to create the archive.
23238 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23241 # GNU C++ compiler with Solaris linker
23242 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23243 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
23244 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
23245 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23246 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23247 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23249 # Commands to make compiler produce verbose output that lists
23250 # what "hidden" libraries, object files and flags are used when
23251 # linking a shared library.
23252 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23254 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23256 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23257 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23258 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23260 # Commands to make compiler produce verbose output that lists
23261 # what "hidden" libraries, object files and flags are used when
23262 # linking a shared library.
23263 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23266 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
23268 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23270 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23278 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
23279 no_undefined_flag_CXX
='${wl}-z,text'
23280 archive_cmds_need_lc_CXX
=no
23281 hardcode_shlibpath_var_CXX
=no
23282 runpath_var
='LD_RUN_PATH'
23284 case $cc_basename in
23286 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23287 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23290 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23291 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23296 sysv5
* | sco3.2v5
* | sco5v6
*)
23297 # Note: We can NOT use -z defs as we might desire, because we do not
23298 # link with -lc, and that would cause any symbols used from libc to
23299 # always be unresolved, which means just about no library would
23300 # ever link correctly. If we're not using GNU ld we use -z text
23301 # though, which does catch some bad symbols but isn't as heavy-handed
23303 no_undefined_flag_CXX
='${wl}-z,text'
23304 allow_undefined_flag_CXX
='${wl}-z,nodefs'
23305 archive_cmds_need_lc_CXX
=no
23306 hardcode_shlibpath_var_CXX
=no
23307 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
23308 hardcode_libdir_separator_CXX
=':'
23309 link_all_deplibs_CXX
=yes
23310 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
23311 runpath_var
='LD_RUN_PATH'
23313 case $cc_basename in
23315 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23316 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23317 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
23318 '"$old_archive_cmds_CXX"
23319 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
23320 '"$reload_cmds_CXX"
23323 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23324 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23330 case $cc_basename in
23332 # NonStop-UX NCC 3.20
23333 # FIXME: insert proper C++ library support
23337 # FIXME: insert proper C++ library support
23344 # For VxWorks ports, we assume the use of a GNU linker with
23345 # standard elf conventions.
23350 # FIXME: insert proper C++ library support
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23356 $as_echo "$ld_shlibs_CXX" >&6; }
23357 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23363 ## There is no encapsulation within the following macros, do not change
23364 ## the running order or otherwise move them around unless you know exactly
23365 ## what you are doing...
23366 # Dependencies to place before and after the object being linked:
23367 predep_objects_CXX
=
23368 postdep_objects_CXX
=
23371 compiler_lib_search_path_CXX
=
23373 cat > conftest.
$ac_ext <<_LT_EOF
23377 Foo (void) { a = 0; }
23383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23384 (eval $ac_compile) 2>&5
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; then
23388 # Parse the compiler output and extract the necessary
23389 # objects, libraries and library flags.
23391 # Sentinel used to keep track of whether or not we are before
23392 # the conftest object file.
23393 pre_test_object_deps_done
=no
23395 for p
in `eval "$output_verbose_link_cmd"`; do
23399 # Some compilers place space between "-{L,R}" and the path.
23400 # Remove the space.
23401 if test $p = "-L" ||
23402 test $p = "-R"; then
23409 if test "$pre_test_object_deps_done" = no
; then
23412 # Internal compiler library paths should come after those
23413 # provided the user. The postdeps already come after the
23414 # user supplied libs so there is no need to process them.
23415 if test -z "$compiler_lib_search_path_CXX"; then
23416 compiler_lib_search_path_CXX
="${prev}${p}"
23418 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
23421 # The "-l" case would never come before the object being
23422 # linked, so don't bother handling this case.
23425 if test -z "$postdeps_CXX"; then
23426 postdeps_CXX
="${prev}${p}"
23428 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
23434 # This assumes that the test object file only shows up
23435 # once in the compiler output.
23436 if test "$p" = "conftest.$objext"; then
23437 pre_test_object_deps_done
=yes
23441 if test "$pre_test_object_deps_done" = no
; then
23442 if test -z "$predep_objects_CXX"; then
23443 predep_objects_CXX
="$p"
23445 predep_objects_CXX
="$predep_objects_CXX $p"
23448 if test -z "$postdep_objects_CXX"; then
23449 postdep_objects_CXX
="$p"
23451 postdep_objects_CXX
="$postdep_objects_CXX $p"
23456 *) ;; # Ignore the rest.
23464 echo "libtool.m4: error: problem compiling CXX test program"
23467 $RM -f confest.
$objext
23469 # PORTME: override above test on systems where it is broken
23472 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23473 # hack all around it, let's just trust "g++" to DTRT.
23474 predep_objects_CXX
=
23475 postdep_objects_CXX
=
23480 case `$CC -V 2>&1 | sed 5q` in
23484 # The more standards-conforming stlport4 library is
23485 # incompatible with the Cstd library. Avoid specifying
23486 # it if it's in CXXFLAGS. Ignore libCrun as
23487 # -library=stlport4 depends on it.
23488 case " $CXX $CXXFLAGS " in
23489 *" -library=stlport4 "*)
23490 solaris_use_stlport4
=yes
23494 if test "$solaris_use_stlport4" != yes; then
23495 postdeps_CXX
='-library=Cstd -library=Crun'
23502 case $cc_basename in
23504 # The more standards-conforming stlport4 library is
23505 # incompatible with the Cstd library. Avoid specifying
23506 # it if it's in CXXFLAGS. Ignore libCrun as
23507 # -library=stlport4 depends on it.
23508 case " $CXX $CXXFLAGS " in
23509 *" -library=stlport4 "*)
23510 solaris_use_stlport4
=yes
23514 # Adding this requires a known-good setup of shared libraries for
23515 # Sun compiler versions before 5.6, else PIC objects from an old
23516 # archive will be linked into the output, leading to subtle bugs.
23517 if test "$solaris_use_stlport4" != yes; then
23518 postdeps_CXX
='-library=Cstd -library=Crun'
23526 case " $postdeps_CXX " in
23527 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
23529 compiler_lib_search_dirs_CXX
=
23530 if test -n "${compiler_lib_search_path_CXX}"; then
23531 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23564 lt_prog_compiler_wl_CXX
=
23565 lt_prog_compiler_pic_CXX
=
23566 lt_prog_compiler_static_CXX
=
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23569 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23571 # C++ specific cases for pic, static, wl, etc.
23572 if test "$GXX" = yes; then
23573 lt_prog_compiler_wl_CXX
='-Wl,'
23574 lt_prog_compiler_static_CXX
='-static'
23578 # All AIX code is PIC.
23579 if test "$host_cpu" = ia64
; then
23580 # AIX 5 now supports IA64 processor
23581 lt_prog_compiler_static_CXX
='-Bstatic'
23583 lt_prog_compiler_pic_CXX
='-fPIC'
23589 # see comment about AmigaOS4 .so support
23590 lt_prog_compiler_pic_CXX
='-fPIC'
23593 # FIXME: we need at least 68020 code to build shared libraries, but
23594 # adding the `-m68020' flag to GCC prevents building anything better,
23596 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
23601 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23602 # PIC is the default for these OSes.
23604 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
23605 # This hack is so that the source file can tell whether it is being
23606 # built for inclusion in a dll (and should export symbols for example).
23607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23608 # (--disable-auto-import) libraries
23609 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
23611 darwin
* | rhapsody
*)
23612 # PIC is the default on this platform
23613 # Common symbols not allowed in MH_DYLIB files
23614 lt_prog_compiler_pic_CXX
='-fno-common'
23617 # DJGPP does not support shared libraries at all
23618 lt_prog_compiler_pic_CXX
=
23621 # PIC is the default for Haiku.
23622 # The "-static" flag exists, but is broken.
23623 lt_prog_compiler_static_CXX
=
23626 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23627 # Instead, we relocate shared libraries at runtime.
23630 if test -d /usr
/nec
; then
23631 lt_prog_compiler_pic_CXX
=-Kconform_pic
23635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23637 # sets the default TLS model and affects inlining.
23642 lt_prog_compiler_pic_CXX
='-fPIC'
23647 # QNX uses GNU C++, but need to define -shared option too, otherwise
23648 # it will coredump.
23649 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23652 lt_prog_compiler_pic_CXX
='-fPIC'
23658 # All AIX code is PIC.
23659 if test "$host_cpu" = ia64
; then
23660 # AIX 5 now supports IA64 processor
23661 lt_prog_compiler_static_CXX
='-Bstatic'
23663 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
23667 case $cc_basename in
23669 # Green Hills C++ Compiler
23670 # _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"
23675 case $cc_basename in
23677 lt_prog_compiler_pic_CXX
='-KPIC'
23680 # Green Hills C++ Compiler
23681 lt_prog_compiler_pic_CXX
='-pic'
23687 freebsd
* | dragonfly
*)
23688 # FreeBSD uses GNU C++
23690 hpux9
* | hpux10
* | hpux11
*)
23691 case $cc_basename in
23693 lt_prog_compiler_wl_CXX
='-Wl,'
23694 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23695 if test "$host_cpu" != ia64
; then
23696 lt_prog_compiler_pic_CXX
='+Z'
23700 lt_prog_compiler_wl_CXX
='-Wl,'
23701 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23707 lt_prog_compiler_pic_CXX
='+Z'
23716 # This is c89, which is MS Visual C++ (no shared libs)
23717 # Anyone wants to do a port?
23719 irix5
* | irix6
* | nonstopux
*)
23720 case $cc_basename in
23722 lt_prog_compiler_wl_CXX
='-Wl,'
23723 lt_prog_compiler_static_CXX
='-non_shared'
23724 # CC pic flag -KPIC is the default.
23730 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
23731 case $cc_basename in
23734 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23735 lt_prog_compiler_pic_CXX
='-fPIC'
23738 # old Intel C++ for x86_64 which still supported -KPIC.
23739 lt_prog_compiler_wl_CXX
='-Wl,'
23740 lt_prog_compiler_pic_CXX
='-KPIC'
23741 lt_prog_compiler_static_CXX
='-static'
23744 # Intel C++, used to be incompatible with GCC.
23745 # ICC 10 doesn't accept -KPIC any more.
23746 lt_prog_compiler_wl_CXX
='-Wl,'
23747 lt_prog_compiler_pic_CXX
='-fPIC'
23748 lt_prog_compiler_static_CXX
='-static'
23751 # Portland Group C++ compiler
23752 lt_prog_compiler_wl_CXX
='-Wl,'
23753 lt_prog_compiler_pic_CXX
='-fpic'
23754 lt_prog_compiler_static_CXX
='-Bstatic'
23758 # Make sure the PIC flag is empty. It appears that all Alpha
23759 # Linux and Compaq Tru64 Unix objects are PIC.
23760 lt_prog_compiler_pic_CXX
=
23761 lt_prog_compiler_static_CXX
='-non_shared'
23763 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
23764 # IBM XL 8.0, 9.0 on PPC and BlueGene
23765 lt_prog_compiler_wl_CXX
='-Wl,'
23766 lt_prog_compiler_pic_CXX
='-qpic'
23767 lt_prog_compiler_static_CXX
='-qstaticlink'
23770 case `$CC -V 2>&1 | sed 5q` in
23773 lt_prog_compiler_pic_CXX
='-KPIC'
23774 lt_prog_compiler_static_CXX
='-Bstatic'
23775 lt_prog_compiler_wl_CXX
='-Qoption ld '
23786 case $cc_basename in
23788 lt_prog_compiler_pic_CXX
='-W c,exportall'
23797 # QNX uses GNU C++, but need to define -shared option too, otherwise
23798 # it will coredump.
23799 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23801 osf3
* | osf4
* | osf5
*)
23802 case $cc_basename in
23804 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23807 # Rational C++ 2.4.1
23808 lt_prog_compiler_pic_CXX
='-pic'
23811 # Digital/Compaq C++
23812 lt_prog_compiler_wl_CXX
='-Wl,'
23813 # Make sure the PIC flag is empty. It appears that all Alpha
23814 # Linux and Compaq Tru64 Unix objects are PIC.
23815 lt_prog_compiler_pic_CXX
=
23816 lt_prog_compiler_static_CXX
='-non_shared'
23825 case $cc_basename in
23827 # Sun C++ 4.2, 5.x and Centerline C++
23828 lt_prog_compiler_pic_CXX
='-KPIC'
23829 lt_prog_compiler_static_CXX
='-Bstatic'
23830 lt_prog_compiler_wl_CXX
='-Qoption ld '
23833 # Green Hills C++ Compiler
23834 lt_prog_compiler_pic_CXX
='-PIC'
23841 case $cc_basename in
23844 lt_prog_compiler_pic_CXX
='-pic'
23845 lt_prog_compiler_static_CXX
='-Bstatic'
23849 lt_prog_compiler_pic_CXX
='-pic'
23855 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23856 case $cc_basename in
23858 lt_prog_compiler_wl_CXX
='-Wl,'
23859 lt_prog_compiler_pic_CXX
='-KPIC'
23860 lt_prog_compiler_static_CXX
='-Bstatic'
23865 case $cc_basename in
23867 # NonStop-UX NCC 3.20
23868 lt_prog_compiler_pic_CXX
='-KPIC'
23877 lt_prog_compiler_can_build_shared_CXX
=no
23883 # For platforms which do not support PIC, -DPIC is meaningless:
23885 lt_prog_compiler_pic_CXX
=
23888 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23892 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23897 # Check to make sure the PIC flag actually works.
23899 if test -n "$lt_prog_compiler_pic_CXX"; then
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23902 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
23903 $as_echo_n "(cached) " >&6
23905 lt_cv_prog_compiler_pic_works_CXX
=no
23906 ac_outfile
=conftest.
$ac_objext
23907 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23908 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
23909 # Insert the option either (1) after the last *FLAGS variable, or
23910 # (2) before a word containing "conftest.", or (3) at the end.
23911 # Note that $ac_compile itself does not contain backslashes and begins
23912 # with a dollar sign (not a hyphen), so the echo should work correctly.
23913 # The option is referenced via a variable to avoid confusing sed.
23914 lt_compile
=`echo "$ac_compile" | $SED \
23915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23917 -e 's:$: $lt_compiler_flag:'`
23918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23919 (eval "$lt_compile" 2>conftest.err
)
23921 cat conftest.err
>&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 if (exit $ac_status) && test -s "$ac_outfile"; then
23924 # The compiler can only warn and ignore the option if not recognized
23925 # So say no if there are warnings other than the usual output.
23926 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
23927 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23928 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23929 lt_cv_prog_compiler_pic_works_CXX
=yes
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23936 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23938 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
23939 case $lt_prog_compiler_pic_CXX in
23941 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
23944 lt_prog_compiler_pic_CXX
=
23945 lt_prog_compiler_can_build_shared_CXX
=no
23953 # Check to make sure the static flag actually works.
23955 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23957 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23958 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
23959 $as_echo_n "(cached) " >&6
23961 lt_cv_prog_compiler_static_works_CXX
=no
23962 save_LDFLAGS
="$LDFLAGS"
23963 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23964 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
23965 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23966 # The linker can only warn and ignore the option if not recognized
23967 # So say no if there are warnings
23968 if test -s conftest.err
; then
23969 # Append any errors to the config.log.
23970 cat conftest.err
1>&5
23971 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
23972 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23973 if diff conftest.exp conftest.er2
>/dev
/null
; then
23974 lt_cv_prog_compiler_static_works_CXX
=yes
23977 lt_cv_prog_compiler_static_works_CXX
=yes
23981 LDFLAGS
="$save_LDFLAGS"
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23985 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23987 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
23990 lt_prog_compiler_static_CXX
=
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23998 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23999 $as_echo_n "(cached) " >&6
24001 lt_cv_prog_compiler_c_o_CXX
=no
24002 $RM -r conftest
2>/dev
/null
24006 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24008 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24009 # Insert the option either (1) after the last *FLAGS variable, or
24010 # (2) before a word containing "conftest.", or (3) at the end.
24011 # Note that $ac_compile itself does not contain backslashes and begins
24012 # with a dollar sign (not a hyphen), so the echo should work correctly.
24013 lt_compile
=`echo "$ac_compile" | $SED \
24014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24016 -e 's:$: $lt_compiler_flag:'`
24017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24018 (eval "$lt_compile" 2>out
/conftest.err
)
24020 cat out
/conftest.err
>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24024 # The compiler can only warn and ignore the option if not recognized
24025 # So say no if there are warnings
24026 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
24027 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24028 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24029 lt_cv_prog_compiler_c_o_CXX
=yes
24034 # SGI C++ compiler will create directory out/ii_files/ for
24035 # template instantiation
24036 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
24037 $RM out
/* && rmdir out
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24044 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24050 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
24051 $as_echo_n "(cached) " >&6
24053 lt_cv_prog_compiler_c_o_CXX
=no
24054 $RM -r conftest
2>/dev
/null
24058 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24060 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24061 # Insert the option either (1) after the last *FLAGS variable, or
24062 # (2) before a word containing "conftest.", or (3) at the end.
24063 # Note that $ac_compile itself does not contain backslashes and begins
24064 # with a dollar sign (not a hyphen), so the echo should work correctly.
24065 lt_compile
=`echo "$ac_compile" | $SED \
24066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24068 -e 's:$: $lt_compiler_flag:'`
24069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24070 (eval "$lt_compile" 2>out
/conftest.err
)
24072 cat out
/conftest.err
>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24076 # The compiler can only warn and ignore the option if not recognized
24077 # So say no if there are warnings
24078 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
24079 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24080 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24081 lt_cv_prog_compiler_c_o_CXX
=yes
24086 # SGI C++ compiler will create directory out/ii_files/ for
24087 # template instantiation
24088 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
24089 $RM out
/* && rmdir out
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24096 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24101 hard_links
="nottested"
24102 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
24103 # do not overwrite the value of need_locks provided by the user
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24105 $as_echo_n "checking if we can lock with hard links... " >&6; }
24108 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24110 ln conftest.a conftest.b
2>&5 || hard_links
=no
24111 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24113 $as_echo "$hard_links" >&6; }
24114 if test "$hard_links" = no
; then
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24116 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24128 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24131 # If we're using GNU nm, then we don't want the "-C" option.
24132 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24133 # Also, AIX nm treats weak defined symbols like other global defined
24134 # symbols, whereas GNU nm marks them as "W".
24135 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
24136 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'
24138 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'
24142 export_symbols_cmds_CXX
="$ltdll_cmds"
24144 cygwin
* | mingw
* | cegcc
*)
24145 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'
24148 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24151 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24154 $as_echo "$ld_shlibs_CXX" >&6; }
24155 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
24157 with_gnu_ld_CXX
=$with_gnu_ld
24165 # Do we need to explicitly link libc?
24167 case "x$archive_cmds_need_lc_CXX" in
24169 # Assume -lc should be added
24170 archive_cmds_need_lc_CXX
=yes
24172 if test "$enable_shared" = yes && test "$GCC" = yes; then
24173 case $archive_cmds_CXX in
24175 # FIXME: we may have to deal with multi-command sequences.
24178 # Test whether the compiler implicitly links with -lc since on some
24179 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24180 # to ld, don't add -lc before -lgcc.
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24182 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24183 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
24184 $as_echo_n "(cached) " >&6
24187 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24190 (eval $ac_compile) 2>&5
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; } 2>conftest.err
; then
24196 libobjs
=conftest.
$ac_objext
24198 wl
=$lt_prog_compiler_wl_CXX
24199 pic_flag
=$lt_prog_compiler_pic_CXX
24205 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
24206 allow_undefined_flag_CXX
=
24207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24208 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }
24213 lt_cv_archive_cmds_need_lc_CXX
=no
24215 lt_cv_archive_cmds_need_lc_CXX
=yes
24217 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
24219 cat conftest.err
1>&5
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24225 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24226 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24297 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24299 library_names_spec
=
24300 libname_spec
='lib$name'
24304 postuninstall_cmds
=
24308 shlibpath_overrides_runpath
=unknown
24310 dynamic_linker
="$host_os ld.so"
24311 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24312 need_lib_prefix
=unknown
24313 hardcode_into_libs
=no
24315 # when you set need_version to no, make sure it does not cause -set_version
24316 # flags to be left without arguments
24317 need_version
=unknown
24322 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24323 shlibpath_var
=LIBPATH
24325 # AIX 3 has no versioning support, so we append a major version to the name.
24326 soname_spec
='${libname}${release}${shared_ext}$major'
24333 hardcode_into_libs
=yes
24334 if test "$host_cpu" = ia64
; then
24335 # AIX 5 supports IA64
24336 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24337 shlibpath_var
=LD_LIBRARY_PATH
24339 # With GCC up to 2.95.x, collect2 would create an import file
24340 # for dependence libraries. The import file would start with
24341 # the line `#! .'. This would cause the generated library to
24342 # depend on `.', always an invalid library. This was fixed in
24343 # development snapshots of GCC prior to 3.0.
24345 aix4 | aix4.
[01] | aix4.
[01].
*)
24346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24348 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
24351 can_build_shared
=no
24355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24356 # soname into executable. Probably we can add versioning support to
24357 # collect2, so additional links can be useful in future.
24358 if test "$aix_use_runtimelinking" = yes; then
24359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24360 # instead of lib<name>.a to let people know that these are not
24361 # typical AIX shared libraries.
24362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24364 # We preserve .a as extension for shared libraries through AIX4.2
24365 # and later when we are not doing run time linking.
24366 library_names_spec
='${libname}${release}.a $libname.a'
24367 soname_spec
='${libname}${release}${shared_ext}$major'
24369 shlibpath_var
=LIBPATH
24376 # Since July 2007 AmigaOS4 officially supports .so libraries.
24377 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24381 library_names_spec
='$libname.ixlibrary $libname.a'
24382 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24383 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'
24389 library_names_spec
='${libname}${shared_ext}'
24390 dynamic_linker
="$host_os ld.so"
24391 shlibpath_var
=LIBRARY_PATH
24397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24398 soname_spec
='${libname}${release}${shared_ext}$major'
24399 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
24400 shlibpath_var
=LD_LIBRARY_PATH
24401 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24402 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
24403 # the default ld.so.conf also contains /usr/contrib/lib and
24404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24405 # libtool to hard-code these into programs
24408 cygwin
* | mingw
* | pw32
* | cegcc
*)
24409 version_type
=windows
24414 case $GCC,$host_os in
24415 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
24416 library_names_spec
='$libname.dll.a'
24417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24418 postinstall_cmds
='base_file=`basename \${file}`~
24419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24420 dldir=$destdir/`dirname \$dlpath`~
24421 test -d \$dldir || mkdir -p \$dldir~
24422 $install_prog $dir/$dlname \$dldir/$dlname~
24423 chmod a+x \$dldir/$dlname~
24424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24427 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24428 dlpath=$dir/\$dldll~
24430 shlibpath_overrides_runpath
=yes
24434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24435 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24439 # MinGW DLLs use traditional 'lib' prefix
24440 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24443 # pw32 DLLs use 'pw' prefix rather than 'lib'
24444 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24450 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24453 dynamic_linker
='Win32 ld.exe'
24454 # FIXME: first we should search . and the directory the executable is in
24458 darwin
* | rhapsody
*)
24459 dynamic_linker
="$host_os dyld"
24460 version_type
=darwin
24463 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24464 soname_spec
='${libname}${release}${major}$shared_ext'
24465 shlibpath_overrides_runpath
=yes
24466 shlibpath_var
=DYLD_LIBRARY_PATH
24467 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
24469 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
24476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24477 soname_spec
='${libname}${release}${shared_ext}$major'
24478 shlibpath_var
=LD_LIBRARY_PATH
24481 freebsd
* | dragonfly
*)
24482 # DragonFly does not have aout. When/if they implement a new
24483 # versioning mechanism, adjust this.
24484 if test -x /usr
/bin
/objformat
; then
24485 objformat
=`/usr/bin/objformat`
24488 freebsd
[23].
*) objformat
=aout
;;
24489 *) objformat
=elf
;;
24492 version_type
=freebsd-
$objformat
24493 case $version_type in
24495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24500 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24504 shlibpath_var
=LD_LIBRARY_PATH
24507 shlibpath_overrides_runpath
=yes
24509 freebsd3.
[01]* | freebsdelf3.
[01]*)
24510 shlibpath_overrides_runpath
=yes
24511 hardcode_into_libs
=yes
24513 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
24514 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
24515 shlibpath_overrides_runpath
=no
24516 hardcode_into_libs
=yes
24518 *) # from 4.6 on, and DragonFly
24519 shlibpath_overrides_runpath
=yes
24520 hardcode_into_libs
=yes
24529 dynamic_linker
="$host_os runtime_loader"
24530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24531 soname_spec
='${libname}${release}${shared_ext}$major'
24532 shlibpath_var
=LIBRARY_PATH
24533 shlibpath_overrides_runpath
=yes
24534 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24535 hardcode_into_libs
=yes
24538 hpux9
* | hpux10
* | hpux11
*)
24539 # Give a soname corresponding to the major version so that dld.sl refuses to
24540 # link against other versions.
24547 hardcode_into_libs
=yes
24548 dynamic_linker
="$host_os dld.so"
24549 shlibpath_var
=LD_LIBRARY_PATH
24550 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24552 soname_spec
='${libname}${release}${shared_ext}$major'
24553 if test "X$HPUX_IA64_MODE" = X32
; then
24554 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24556 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24558 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24562 hardcode_into_libs
=yes
24563 dynamic_linker
="$host_os dld.sl"
24564 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24565 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24567 soname_spec
='${libname}${release}${shared_ext}$major'
24568 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24569 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24573 dynamic_linker
="$host_os dld.sl"
24574 shlibpath_var
=SHLIB_PATH
24575 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24577 soname_spec
='${libname}${release}${shared_ext}$major'
24580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24581 postinstall_cmds
='chmod 555 $lib'
24582 # or fails outright, so override atomically:
24583 install_override_mode
=555
24590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24591 soname_spec
='${libname}${release}${shared_ext}$major'
24592 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24593 shlibpath_var
=LD_LIBRARY_PATH
24594 shlibpath_overrides_runpath
=no
24595 hardcode_into_libs
=yes
24598 irix5
* | irix6
* | nonstopux
*)
24600 nonstopux
*) version_type
=nonstopux
;;
24602 if test "$lt_cv_prog_gnu_ld" = yes; then
24610 soname_spec
='${libname}${release}${shared_ext}$major'
24611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24613 irix5
* | nonstopux
*)
24614 libsuff
= shlibsuff
=
24617 case $LD in # libtool.m4 will add one of these switches to LD
24618 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24619 libsuff
= shlibsuff
= libmagic
=32-bit;;
24620 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24621 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24622 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24623 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24624 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24628 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24629 shlibpath_overrides_runpath
=no
24630 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24631 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24632 hardcode_into_libs
=yes
24635 # No shared lib support for Linux oldld, aout, or coff.
24636 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24640 # This must be Linux ELF.
24642 # uclinux* changes (here and below) have been submitted to the libtool
24643 # project, but have not yet been accepted: they are GCC-local changes
24644 # for the time being. (See
24645 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24646 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
24650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24651 soname_spec
='${libname}${release}${shared_ext}$major'
24652 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24653 shlibpath_var
=LD_LIBRARY_PATH
24654 shlibpath_overrides_runpath
=no
24656 # Some binutils ld are patched to set DT_RUNPATH
24657 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
24658 $as_echo_n "(cached) " >&6
24660 lt_cv_shlibpath_overrides_runpath
=no
24661 save_LDFLAGS
=$LDFLAGS
24662 save_libdir
=$libdir
24663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24666 /* end confdefs.h. */
24676 if ac_fn_cxx_try_link
"$LINENO"; then :
24677 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
24678 lt_cv_shlibpath_overrides_runpath
=yes
24681 rm -f core conftest.err conftest.
$ac_objext \
24682 conftest
$ac_exeext conftest.
$ac_ext
24683 LDFLAGS
=$save_LDFLAGS
24684 libdir
=$save_libdir
24688 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
24690 # This implies no fast_install, which is unacceptable.
24691 # Some rework will be needed to allow for fast_install
24692 # before this can be enabled.
24693 hardcode_into_libs
=yes
24695 # Append ld.so.conf contents to the search path
24696 if test -f /etc
/ld.so.conf
; then
24697 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' ' '`
24698 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24701 # We used to test for /lib/ld.so.1 and disable shared libraries on
24702 # powerpc, because MkLinux only supported shared libraries with the
24703 # GNU dynamic linker. Since this was broken with cross compilers,
24704 # most powerpc-linux boxes support dynamic linking these days and
24705 # people can always --disable-shared, the test was removed, and we
24706 # assume the GNU/Linux dynamic linker is in use.
24707 dynamic_linker
='GNU/Linux ld.so'
24714 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
24715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24716 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24717 dynamic_linker
='NetBSD (a.out) ld.so'
24719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24720 soname_spec
='${libname}${release}${shared_ext}$major'
24721 dynamic_linker
='NetBSD ld.elf_so'
24723 shlibpath_var
=LD_LIBRARY_PATH
24724 shlibpath_overrides_runpath
=yes
24725 hardcode_into_libs
=yes
24730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24731 shlibpath_var
=LD_LIBRARY_PATH
24732 shlibpath_overrides_runpath
=yes
24739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24740 soname_spec
='${libname}${release}${shared_ext}$major'
24741 shlibpath_var
=LD_LIBRARY_PATH
24742 shlibpath_overrides_runpath
=no
24743 hardcode_into_libs
=yes
24744 dynamic_linker
='ldqnx.so'
24749 sys_lib_dlsearch_path_spec
="/usr/lib"
24751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24753 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24754 *) need_version
=no
;;
24756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24757 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24758 shlibpath_var
=LD_LIBRARY_PATH
24759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24761 openbsd2.
[89] | openbsd2.
[89].
*)
24762 shlibpath_overrides_runpath
=no
24765 shlibpath_overrides_runpath
=yes
24769 shlibpath_overrides_runpath
=yes
24774 libname_spec
='$name'
24777 library_names_spec
='$libname${shared_ext} $libname.a'
24778 dynamic_linker
='OS/2 ld.exe'
24779 shlibpath_var
=LIBPATH
24782 osf3
* | osf4
* | osf5
*)
24786 soname_spec
='${libname}${release}${shared_ext}$major'
24787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24788 shlibpath_var
=LD_LIBRARY_PATH
24789 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24790 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24802 soname_spec
='${libname}${release}${shared_ext}$major'
24803 shlibpath_var
=LD_LIBRARY_PATH
24804 shlibpath_overrides_runpath
=yes
24805 hardcode_into_libs
=yes
24806 # ldd complains unless libraries are executable
24807 postinstall_cmds
='chmod +x $lib'
24812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24813 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24814 shlibpath_var
=LD_LIBRARY_PATH
24815 shlibpath_overrides_runpath
=yes
24816 if test "$with_gnu_ld" = yes; then
24824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24825 soname_spec
='${libname}${release}${shared_ext}$major'
24826 shlibpath_var
=LD_LIBRARY_PATH
24827 case $host_vendor in
24829 shlibpath_overrides_runpath
=no
24831 runpath_var
=LD_RUN_PATH
24839 shlibpath_overrides_runpath
=no
24840 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24846 if test -d /usr
/nec
;then
24848 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24849 soname_spec
='$libname${shared_ext}.$major'
24850 shlibpath_var
=LD_LIBRARY_PATH
24854 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24855 version_type
=freebsd-elf
24858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24859 soname_spec
='${libname}${release}${shared_ext}$major'
24860 shlibpath_var
=LD_LIBRARY_PATH
24861 shlibpath_overrides_runpath
=yes
24862 hardcode_into_libs
=yes
24863 if test "$with_gnu_ld" = yes; then
24864 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24866 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24869 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24873 sys_lib_dlsearch_path_spec
='/usr/lib'
24877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24882 shlibpath_var
=LD_LIBRARY_PATH
24883 shlibpath_overrides_runpath
=no
24884 hardcode_into_libs
=yes
24889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24890 soname_spec
='${libname}${release}${shared_ext}$major'
24891 shlibpath_var
=LD_LIBRARY_PATH
24894 # Shared libraries for VwWorks, >= 7 only at this stage
24895 # and (fpic) still incompatible with "large" code models
24896 # in a few configurations. Only for RTP mode in any case,
24897 # and upon explicit request at configure time.
24900 case ${with_multisubdir}-${enable_shared} in
24907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24908 soname_spec
='${libname}${release}${shared_ext}$major'
24909 dynamic_linker
="$host_os module_loader"
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24918 $as_echo "$dynamic_linker" >&6; }
24919 test "$dynamic_linker" = no
&& can_build_shared
=no
24921 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24922 if test "$GCC" = yes; then
24923 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24926 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24927 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
24929 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24930 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24972 hardcode_action_CXX
=
24973 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24974 test -n "$runpath_var_CXX" ||
24975 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24977 # We can hardcode non-existent directories.
24978 if test "$hardcode_direct_CXX" != no
&&
24979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24980 # have to relink, otherwise we might link with an installed library
24981 # when we should be linking with a yet-to-be-installed one
24982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24983 test "$hardcode_minus_L_CXX" != no
; then
24984 # Linking always hardcodes the temporary library directory.
24985 hardcode_action_CXX
=relink
24987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24988 hardcode_action_CXX
=immediate
24991 # We cannot hardcode anything, or else we can only hardcode existing
24993 hardcode_action_CXX
=unsupported
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24996 $as_echo "$hardcode_action_CXX" >&6; }
24998 if test "$hardcode_action_CXX" = relink ||
24999 test "$inherit_rpath_CXX" = yes; then
25000 # Fast installation is not supported
25001 enable_fast_install
=no
25002 elif test "$shlibpath_overrides_runpath" = yes ||
25003 test "$enable_shared" = no
; then
25004 # Fast installation is not necessary
25005 enable_fast_install
=needless
25014 fi # test -n "$compiler"
25020 with_gnu_ld
=$lt_save_with_gnu_ld
25021 lt_cv_path_LDCXX
=$lt_cv_path_LD
25022 lt_cv_path_LD
=$lt_save_path_LD
25023 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
25024 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
25025 fi # test "$_lt_caught_CXX_error" != yes
25028 ac_cpp
='$CXXCPP $CPPFLAGS'
25029 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25030 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25031 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25048 # Only expand once:
25054 if test x
$enable_darwin_at_rpath = xyes
; then
25055 ENABLE_DARWIN_AT_RPATH_TRUE
=
25056 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
25058 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
25059 ENABLE_DARWIN_AT_RPATH_FALSE
=
25062 DARWIN_DO_EXTRA_RPATH
=0
25064 # Check whether --with-darwin-extra-rpath was given.
25065 if test "${with_darwin_extra_rpath+set}" = set; then :
25066 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
25067 DARWIN_ADD_RPATH
="$withval"
25068 DARWIN_DO_EXTRA_RPATH
=1
25073 cat >>confdefs.h
<<_ACEOF
25074 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25078 cat >>confdefs.h
<<_ACEOF
25079 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25083 # Identify the assembler which will work hand-in-glove with the newly
25084 # built GCC, so that we can examine its features. This is the assembler
25085 # which will be driven by the driver program.
25087 # If build != host, and we aren't building gas in-tree, we identify a
25088 # build->target assembler and hope that it will have the same features
25089 # as the host->target assembler we'll be using.
25090 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25092 if ${gcc_cv_as+:} false
; then :
25096 if test -x "$DEFAULT_ASSEMBLER"; then
25097 gcc_cv_as
="$DEFAULT_ASSEMBLER"
25098 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25099 && test -f ..
/gas
/Makefile \
25100 && test x
$build = x
$host; then
25101 gcc_cv_as
=..
/gas
/as-new
$build_exeext
25102 elif test -x as
$build_exeext; then
25103 # Build using assembler in the current directory.
25104 gcc_cv_as
=.
/as
$build_exeext
25105 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
25106 gcc_cv_as
="$AS_FOR_TARGET"
25108 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25109 set dummy
$AS_FOR_TARGET; ac_word
=$2
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25111 $as_echo_n "checking for $ac_word... " >&6; }
25112 if ${ac_cv_path_gcc_cv_as+:} false
; then :
25113 $as_echo_n "(cached) " >&6
25117 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
25120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25121 for as_dir
in $PATH
25124 test -z "$as_dir" && as_dir
=.
25125 for ac_exec_ext
in '' $ac_executable_extensions; do
25126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25127 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
25128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25138 gcc_cv_as
=$ac_cv_path_gcc_cv_as
25139 if test -n "$gcc_cv_as"; then
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25141 $as_echo "$gcc_cv_as" >&6; }
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25144 $as_echo "no" >&6; }
25151 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
25153 case "$ORIGINAL_AS_FOR_TARGET" in
25154 .
/as | .
/as
$build_exeext) ;;
25155 *) ac_config_files
="$ac_config_files as:exec-tool.in"
25160 # Check whether --enable-ld was given.
25161 if test "${enable_ld+set}" = set; then :
25162 enableval
=$enable_ld; case "${enableval}" in
25170 install_gold_as_default
=no
25171 # Check whether --enable-gold was given.
25172 if test "${enable_gold+set}" = set; then :
25173 enableval
=$enable_gold; case "${enableval}" in
25175 install_gold_as_default
=yes
25178 if test x
${default_ld} != x
; then
25179 install_gold_as_default
=yes
25185 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
25191 # Identify the linker which will work hand-in-glove with the newly
25192 # built GCC, so that we can examine its features. This is the linker
25193 # which will be driven by the driver program.
25195 # If build != host, and we aren't building gas in-tree, we identify a
25196 # build->target linker and hope that it will have the same features
25197 # as the host->target linker we'll be using.
25198 gcc_cv_gld_major_version
=
25199 gcc_cv_gld_minor_version
=
25200 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25201 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25202 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25204 if ${gcc_cv_ld+:} false
; then :
25208 if test -x "$DEFAULT_LINKER"; then
25209 gcc_cv_ld
="$DEFAULT_LINKER"
25210 elif test $install_gold_as_default = yes \
25211 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25212 && test -f ..
/gold
/Makefile \
25213 && test x
$build = x
$host; then
25214 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
25215 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25216 && test -f ..
/ld
/Makefile \
25217 && test x
$build = x
$host; then
25218 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
25219 elif test -x collect-ld
$build_exeext; then
25220 # Build using linker in the current directory.
25221 gcc_cv_ld
=.
/collect-ld
$build_exeext
25222 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
25223 gcc_cv_ld
="$LD_FOR_TARGET"
25225 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25226 set dummy
$LD_FOR_TARGET; ac_word
=$2
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25228 $as_echo_n "checking for $ac_word... " >&6; }
25229 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
25230 $as_echo_n "(cached) " >&6
25234 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
25237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25238 for as_dir
in $PATH
25241 test -z "$as_dir" && as_dir
=.
25242 for ac_exec_ext
in '' $ac_executable_extensions; do
25243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25244 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
25245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25255 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
25256 if test -n "$gcc_cv_ld"; then
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25258 $as_echo "$gcc_cv_ld" >&6; }
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25261 $as_echo "no" >&6; }
25268 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
25269 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25270 # if the PLUGIN_LD is set ld-new, just have it as ld
25271 # as that is the installed named.
25272 if test x
$PLUGIN_LD_SUFFIX = xld-new \
25273 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
25274 PLUGIN_LD_SUFFIX
=ld
25277 # Check whether --with-plugin-ld was given.
25278 if test "${with_plugin_ld+set}" = set; then :
25279 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
25280 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
25281 PLUGIN_LD_SUFFIX
="$withval"
25287 cat >>confdefs.h
<<_ACEOF
25288 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25292 # Check to see if we are using gold instead of ld
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25294 $as_echo_n "checking whether we are using gold... " >&6; }
25296 if test x
$gcc_cv_ld != x
; then
25297 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25298 |
grep "GNU gold" > /dev
/null
; then
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25303 $as_echo "$ld_is_gold" >&6; }
25305 # Check to see if we are using mold instead of ld
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25307 $as_echo_n "checking whether we are using mold... " >&6; }
25309 if test x
$gcc_cv_ld != x
; then
25310 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25311 |
grep "mold" > /dev
/null
; then
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25316 $as_echo "$ld_is_mold" >&6; }
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25320 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25321 # Check to see if default ld is not gold, but gold is
25322 # available and has support for split stack. If gcc was configured
25323 # with gold then no checking is done.
25325 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
25327 # For platforms other than powerpc64*, enable as appropriate.
25329 gold_non_default
=no
25330 ld_gold
=`which ${gcc_cv_ld}.gold`
25331 # Make sure this gold has minimal split stack support
25332 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
25333 ld_vers
=`$ld_gold --version | sed 1q`
25334 gold_vers
=`echo $ld_vers | sed -n \
25335 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25337 # check that the gold version contains the complete split stack support
25338 # on powerpc64 big and little endian
25340 case "$gold_vers" in
25341 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
25343 *) gold_non_default
=no
25349 if test $gold_non_default = yes; then
25351 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25356 $as_echo "$gold_non_default" >&6; }
25358 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
25360 case "$ORIGINAL_LD_FOR_TARGET" in
25361 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
25362 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25367 $as_echo_n "checking what linker to use... " >&6; }
25368 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
25369 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
25370 # Single tree build which includes ld. We want to prefer it
25371 # over whatever linker top-level may have detected, since
25372 # we'll use what we're building after installation anyway.
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25374 $as_echo "newly built ld" >&6; }
25376 in_tree_ld_is_elf
=no
25377 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
25378 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
25379 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
25380 in_tree_ld_is_elf
=yes
25381 elif test "$ld_is_gold" = yes; then
25382 in_tree_ld_is_elf
=yes
25384 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
25386 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25387 if test x
$gcc_cv_gld_version != x
; then
25391 case $gcc_cv_gld_version in
25393 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
25395 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25396 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25397 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
25398 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25401 $as_echo "$gcc_cv_ld" >&6; }
25403 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25404 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
25405 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
25411 # Figure out what nm we will be using.
25412 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25413 if ${gcc_cv_nm+:} false
; then :
25417 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25418 && test -f ..
/binutils
/Makefile \
25419 && test x
$build = x
$host; then
25420 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
25421 elif test -x nm
$build_exeext; then
25422 gcc_cv_nm
=.
/nm
$build_exeext
25423 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
25424 gcc_cv_nm
="$NM_FOR_TARGET"
25426 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25427 set dummy
$NM_FOR_TARGET; ac_word
=$2
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25429 $as_echo_n "checking for $ac_word... " >&6; }
25430 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
25431 $as_echo_n "(cached) " >&6
25435 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
25438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25439 for as_dir
in $PATH
25442 test -z "$as_dir" && as_dir
=.
25443 for ac_exec_ext
in '' $ac_executable_extensions; do
25444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25445 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
25446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25456 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
25457 if test -n "$gcc_cv_nm"; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25459 $as_echo "$gcc_cv_nm" >&6; }
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25462 $as_echo "no" >&6; }
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25470 $as_echo_n "checking what nm to use... " >&6; }
25471 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
25472 # Single tree build which includes binutils.
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25474 $as_echo "newly built nm" >&6; }
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25478 $as_echo "$gcc_cv_nm" >&6; }
25482 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
25484 case "$ORIGINAL_NM_FOR_TARGET" in
25485 .
/nm | .
/nm
$build_exeext) ;;
25486 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
25491 # Figure out what objdump we will be using.
25492 if ${gcc_cv_objdump+:} false
; then :
25496 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25497 && test -f ..
/binutils
/Makefile \
25498 && test x
$build = x
$host; then
25499 # Single tree build which includes binutils.
25500 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
25501 elif test -x objdump
$build_exeext; then
25502 gcc_cv_objdump
=.
/objdump
$build_exeext
25503 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
25504 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
25506 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25507 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25509 $as_echo_n "checking for $ac_word... " >&6; }
25510 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
25511 $as_echo_n "(cached) " >&6
25513 case $gcc_cv_objdump in
25515 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
25518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25519 for as_dir
in $PATH
25522 test -z "$as_dir" && as_dir
=.
25523 for ac_exec_ext
in '' $ac_executable_extensions; do
25524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25525 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
25526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25536 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
25537 if test -n "$gcc_cv_objdump"; then
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25539 $as_echo "$gcc_cv_objdump" >&6; }
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25542 $as_echo "no" >&6; }
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25550 $as_echo_n "checking what objdump to use... " >&6; }
25551 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
25552 # Single tree build which includes binutils.
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25554 $as_echo "newly built objdump" >&6; }
25555 elif test x
$gcc_cv_objdump = x
; then
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25557 $as_echo "not found" >&6; }
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25560 $as_echo "$gcc_cv_objdump" >&6; }
25563 # Figure out what readelf we will be using.
25564 if ${gcc_cv_readelf+:} false
; then :
25568 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25569 && test -f ..
/binutils
/Makefile \
25570 && test x
$build = x
$host; then
25571 # Single tree build which includes binutils.
25572 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
25573 elif test -x readelf
$build_exeext; then
25574 gcc_cv_readelf
=.
/readelf
$build_exeext
25575 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
25576 gcc_cv_readelf
="$READELF_FOR_TARGET"
25578 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25579 set dummy
$READELF_FOR_TARGET; ac_word
=$2
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25581 $as_echo_n "checking for $ac_word... " >&6; }
25582 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
25583 $as_echo_n "(cached) " >&6
25585 case $gcc_cv_readelf in
25587 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
25590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25591 for as_dir
in $PATH
25594 test -z "$as_dir" && as_dir
=.
25595 for ac_exec_ext
in '' $ac_executable_extensions; do
25596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25597 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
25598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25608 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
25609 if test -n "$gcc_cv_readelf"; then
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25611 $as_echo "$gcc_cv_readelf" >&6; }
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25614 $as_echo "no" >&6; }
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25622 $as_echo_n "checking what readelf to use... " >&6; }
25623 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
25624 # Single tree build which includes binutils.
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25626 $as_echo "newly built readelf" >&6; }
25627 elif test x
$gcc_cv_readelf = x
; then
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25629 $as_echo "not found" >&6; }
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25632 $as_echo "$gcc_cv_readelf" >&6; }
25635 # Figure out what otool we will be using.
25636 if ${gcc_cv_otool+:} false
; then :
25640 if test -x otool
$build_exeext; then
25641 gcc_cv_otool
=.
/otool
$build_exeext
25642 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
25643 gcc_cv_otool
="$OTOOL_FOR_TARGET"
25645 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25646 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25648 $as_echo_n "checking for $ac_word... " >&6; }
25649 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
25650 $as_echo_n "(cached) " >&6
25652 case $gcc_cv_otool in
25654 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
25657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25658 for as_dir
in $PATH
25661 test -z "$as_dir" && as_dir
=.
25662 for ac_exec_ext
in '' $ac_executable_extensions; do
25663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25664 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
25665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25675 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
25676 if test -n "$gcc_cv_otool"; then
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25678 $as_echo "$gcc_cv_otool" >&6; }
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25681 $as_echo "no" >&6; }
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25689 $as_echo_n "checking what otool to use... " >&6; }
25690 if test x
$gcc_cv_otool = x
; then
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25692 $as_echo "not found" >&6; }
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25695 $as_echo "$gcc_cv_otool" >&6; }
25698 # Figure out the dsymutil we will use.
25699 if ${gcc_cv_dsymutil+:} false
; then :
25703 if test -x "$DEFAULT_DSYMUTIL"; then
25704 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
25705 elif test -x dsymutil
$build_exeext; then
25706 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
25707 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
25708 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
25709 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
25710 gcc_cv_dsymutil
=$DSYMUTIL
25712 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25713 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25715 $as_echo_n "checking for $ac_word... " >&6; }
25716 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
25717 $as_echo_n "(cached) " >&6
25719 case $gcc_cv_dsymutil in
25721 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
25724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25725 for as_dir
in $PATH
25728 test -z "$as_dir" && as_dir
=.
25729 for ac_exec_ext
in '' $ac_executable_extensions; do
25730 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25731 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
25732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25742 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
25743 if test -n "$gcc_cv_dsymutil"; then
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25745 $as_echo "$gcc_cv_dsymutil" >&6; }
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25748 $as_echo "no" >&6; }
25755 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
25757 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25758 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
25759 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
25763 # Figure out what assembler alignment features are present.
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25765 $as_echo_n "checking assembler flags... " >&6; }
25766 if ${gcc_cv_as_flags+:} false
; then :
25767 $as_echo_n "(cached) " >&6
25770 i
[34567]86-*-linux*)
25771 gcc_cv_as_flags
=--32
25773 x86_64-
*-linux-gnux32)
25774 gcc_cv_as_flags
=--x32
25777 gcc_cv_as_flags
=--64
25779 powerpc
*-*-darwin*)
25780 gcc_cv_as_flags
="-arch ppc"
25783 gcc_cv_as_flags
=" "
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25788 $as_echo "$gcc_cv_as_flags" >&6; }
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25791 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25792 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
25793 $as_echo_n "(cached) " >&6
25795 gcc_cv_as_balign_and_p2align
=no
25796 if test x
$gcc_cv_as != x
; then
25797 $as_echo '.balign 4
25798 .p2align 2' > conftest.s
25799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }
25806 gcc_cv_as_balign_and_p2align
=yes
25808 echo "configure: failed program was" >&5
25811 rm -f conftest.o conftest.s
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25815 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25816 if test $gcc_cv_as_balign_and_p2align = yes; then
25818 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25824 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25825 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_max_skip_p2align
=no
25829 if test x
$gcc_cv_as != x
; then
25830 $as_echo '.p2align 4,,7' > conftest.s
25831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25838 gcc_cv_as_max_skip_p2align
=yes
25840 echo "configure: failed program was" >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25847 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25848 if test $gcc_cv_as_max_skip_p2align = yes; then
25850 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25856 $as_echo_n "checking assembler for .literal16... " >&6; }
25857 if ${gcc_cv_as_literal16+:} false
; then :
25858 $as_echo_n "(cached) " >&6
25860 gcc_cv_as_literal16
=no
25861 if test x
$gcc_cv_as != x
; then
25862 $as_echo '.literal16' > conftest.s
25863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25870 gcc_cv_as_literal16
=yes
25872 echo "configure: failed program was" >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25879 $as_echo "$gcc_cv_as_literal16" >&6; }
25880 if test $gcc_cv_as_literal16 = yes; then
25882 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25888 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25889 if ${gcc_cv_as_subsection_m1+:} false
; then :
25890 $as_echo_n "(cached) " >&6
25892 gcc_cv_as_subsection_m1
=no
25893 if test x
$gcc_cv_as != x
; then
25894 $as_echo 'conftest_label1: .word 0
25896 conftest_label2: .word 0
25897 .previous' > conftest.s
25898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25905 if test x
$gcc_cv_nm != x
; then
25906 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
25907 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
25908 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
25910 else gcc_cv_as_subsection_m1
=yes
25912 rm -f conftest.nm1 conftest.nm2
25915 echo "configure: failed program was" >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25922 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25923 if test $gcc_cv_as_subsection_m1 = yes; then
25925 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25931 $as_echo_n "checking assembler for .weak... " >&6; }
25932 if ${gcc_cv_as_weak+:} false
; then :
25933 $as_echo_n "(cached) " >&6
25936 if test x
$gcc_cv_as != x
; then
25937 $as_echo ' .weak foobar' > conftest.s
25938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25947 echo "configure: failed program was" >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25954 $as_echo "$gcc_cv_as_weak" >&6; }
25955 if test $gcc_cv_as_weak = yes; then
25957 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25963 $as_echo_n "checking assembler for .weakref... " >&6; }
25964 if ${gcc_cv_as_weakref+:} false
; then :
25965 $as_echo_n "(cached) " >&6
25967 gcc_cv_as_weakref
=no
25968 if test x
$gcc_cv_as != x
; then
25969 $as_echo ' .weakref foobar, barfnot' > conftest.s
25970 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25972 (eval $ac_try) 2>&5
25974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25975 test $ac_status = 0; }; }
25977 gcc_cv_as_weakref
=yes
25979 echo "configure: failed program was" >&5
25982 rm -f conftest.o conftest.s
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25986 $as_echo "$gcc_cv_as_weakref" >&6; }
25987 if test $gcc_cv_as_weakref = yes; then
25989 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25995 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25996 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
25997 $as_echo_n "(cached) " >&6
25999 gcc_cv_as_nsubspa_comdat
=no
26000 if test x
$gcc_cv_as != x
; then
26001 $as_echo ' .SPACE $TEXT$
26002 .NSUBSPA $CODE$,COMDAT' > conftest.s
26003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }
26010 gcc_cv_as_nsubspa_comdat
=yes
26012 echo "configure: failed program was" >&5
26015 rm -f conftest.o conftest.s
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
26019 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
26020 if test $gcc_cv_as_nsubspa_comdat = yes; then
26022 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
26027 # .hidden needs to be supported in both the assembler and the linker,
26028 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
26029 # This is irritatingly difficult to feature test for; we have to check the
26030 # date string after the version number. If we've got an in-tree
26031 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
26033 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
26034 case "${target}" in
26036 conftest_s
=' .globl foobar,hidden'
26039 conftest_s
=' .hidden foobar
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
26044 $as_echo_n "checking assembler for .hidden... " >&6; }
26045 if ${gcc_cv_as_hidden+:} false
; then :
26046 $as_echo_n "(cached) " >&6
26048 gcc_cv_as_hidden
=no
26049 if test x
$gcc_cv_as != x
; then
26050 $as_echo "$conftest_s" > conftest.s
26051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }
26058 gcc_cv_as_hidden
=yes
26060 echo "configure: failed program was" >&5
26063 rm -f conftest.o conftest.s
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26067 $as_echo "$gcc_cv_as_hidden" >&6; }
26070 case "${target}" in
26072 # Darwin as has some visibility support, though with a different syntax.
26073 gcc_cv_as_hidden
=yes
26077 # gnu_indirect_function type is an extension proposed at
26078 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26079 # selection of function implementation
26080 # Check whether --enable-gnu-indirect-function was given.
26081 if test "${enable_gnu_indirect_function+set}" = set; then :
26082 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26084 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26085 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26088 enable_gnu_indirect_function
="$default_gnu_indirect_function"
26092 case "${target}" in
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26095 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26096 cat > conftest.s
<<EOF
26098 .type foo_resolver, @function
26101 .size foo_resolver, .-foo_resolver
26104 .type foo, %gnu_indirect_function
26105 .set foo, foo_resolver
26108 .type bar, @function
26114 if test x
$gcc_cv_as != x \
26115 && test x
$gcc_cv_ld != x \
26116 && test x
$gcc_cv_readelf != x \
26117 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26118 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26119 && $gcc_cv_readelf --relocs --wide conftest \
26120 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
26121 enable_gnu_indirect_function
=yes
26123 rm -f conftest conftest.o conftest.s
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26125 $as_echo "$enable_gnu_indirect_function" >&6; }
26129 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26131 cat >>confdefs.h
<<_ACEOF
26132 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26137 if test $in_tree_ld != yes ; then
26138 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26139 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26140 if test x
"$ld_is_gold" = xyes
; then
26141 # GNU gold --version looks like this:
26143 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26145 # We extract the binutils version which is more familiar and specific
26146 # than the gold version.
26147 ld_vers
=`echo $ld_ver | sed -n \
26148 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26150 # GNU ld --version looks like this:
26152 # GNU ld (GNU Binutils) 2.21.51.20110225
26153 ld_vers
=`echo $ld_ver | sed -n \
26154 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26156 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'`
26157 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26158 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26159 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26161 case "${target}" in
26163 # Solaris 2 ld -V output looks like this for a regular version:
26165 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26167 # but test versions add stuff at the end:
26169 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26171 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26172 # numbers can be used in ld.so.1 feature checks even if a different
26173 # linker is configured.
26174 ld_ver
=`$gcc_cv_ld -V 2>&1`
26175 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
26176 ld_vers
=`echo $ld_ver | sed -n \
26177 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26178 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26179 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26187 $as_echo_n "checking linker for .hidden support... " >&6; }
26188 if ${gcc_cv_ld_hidden+:} false
; then :
26189 $as_echo_n "(cached) " >&6
26191 if test $in_tree_ld = yes ; then
26192 gcc_cv_ld_hidden
=no
26193 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 \
26194 && test $in_tree_ld_is_elf = yes; then
26195 gcc_cv_ld_hidden
=yes
26198 gcc_cv_ld_hidden
=yes
26199 if test x
"$ld_is_gold" = xyes
; then
26201 elif test x
"$ld_is_mold" = xyes
; then
26203 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26204 if test 0"$ld_date" -lt 20020404; then
26205 if test -n "$ld_date"; then
26206 # If there was date string, but was earlier than 2002-04-04, fail
26207 gcc_cv_ld_hidden
=no
26208 elif test -z "$ld_vers"; then
26209 # If there was no date string nor ld version number, something is wrong
26210 gcc_cv_ld_hidden
=no
26212 test -z "$ld_vers_patch" && ld_vers_patch
=0
26213 if test "$ld_vers_major" -lt 2; then
26214 gcc_cv_ld_hidden
=no
26215 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26216 gcc_cv_ld_hidden
="no"
26217 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26218 gcc_cv_ld_hidden
=no
26223 case "${target}" in
26225 gcc_cv_ld_hidden
=yes
26228 # Darwin ld has some visibility support.
26229 gcc_cv_ld_hidden
=yes
26231 hppa64
*-*-hpux* | ia64
*-*-hpux*)
26232 gcc_cv_ld_hidden
=yes
26235 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26236 # .symbolic was only added in Solaris 9 12/02.
26237 gcc_cv_ld_hidden
=yes
26240 gcc_cv_ld_hidden
=no
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26247 $as_echo "$gcc_cv_ld_hidden" >&6; }
26248 libgcc_visibility
=no
26251 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26252 libgcc_visibility
=yes
26254 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26259 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26260 gcc_cv_ld_ro_rw_mix
=unknown
26261 if test $in_tree_ld = yes ; then
26262 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 \
26263 && test $in_tree_ld_is_elf = yes; then
26264 gcc_cv_ld_ro_rw_mix
=read-write
26266 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26267 echo '.section myfoosect, "a"' > conftest1.s
26268 echo '.section myfoosect, "aw"' > conftest2.s
26269 echo '.byte 1' >> conftest2.s
26270 echo '.section myfoosect, "a"' > conftest3.s
26271 echo '.byte 0' >> conftest3.s
26272 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26273 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26274 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
26275 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26276 conftest2.o conftest3.o
> /dev
/null
2>&1 \
26277 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
26278 conftest2.o conftest3.o
> /dev
/null
2>&1; then
26279 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
26280 | sed -e '/myfoosect/!d' -e N`
26281 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
26282 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
26283 gcc_cv_ld_ro_rw_mix
=read-only
26285 gcc_cv_ld_ro_rw_mix
=read-write
26290 rm -f conftest.
* conftest
[123].
*
26292 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
26294 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26298 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26300 # Check whether --enable-initfini-array was given.
26301 if test "${enable_initfini_array+set}" = set; then :
26302 enableval
=$enable_initfini_array;
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26306 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26307 if ${gcc_cv_initfini_array+:} false
; then :
26308 $as_echo_n "(cached) " >&6
26310 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26311 case "${target}" in
26313 if test "$cross_compiling" = yes; then :
26314 gcc_cv_initfini_array
=no
26316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26317 /* end confdefs.h. */
26320 #error Not an ELF OS
26322 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26323 if it can be used. */
26325 int main (void) { return x; }
26326 int foo (void) { x = 0; }
26327 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26330 if ac_fn_cxx_try_run
"$LINENO"; then :
26331 gcc_cv_initfini_array
=yes
26333 gcc_cv_initfini_array
=no
26335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26340 gcc_cv_initfini_array
=no
26341 if test $in_tree_ld = yes ; then
26342 if test "$gcc_cv_gld_major_version" -eq 2 \
26343 -a "$gcc_cv_gld_minor_version" -ge 22 \
26344 -o "$gcc_cv_gld_major_version" -gt 2 \
26345 && test $in_tree_ld_is_elf = yes; then
26346 gcc_cv_initfini_array
=yes
26348 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26349 case $target:$gas in
26352 sh_type
='%progbits'
26354 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
26356 sh_type
='@progbits'
26358 sparc
*-*-solaris2*:no
)
26360 sh_type
='#progbits'
26364 case "$target:$gnu_ld" in
26366 cat > conftest.s
<<EOF
26367 .section .dtors,$sh_flags,$sh_type
26369 .byte 'A', 'A', 'A', 'A'
26370 .section .ctors,$sh_flags,$sh_type
26372 .byte 'B', 'B', 'B', 'B'
26373 .section .fini_array.65530,$sh_flags,$sh_type
26375 .byte 'C', 'C', 'C', 'C'
26376 .section .init_array.65530,$sh_flags,$sh_type
26378 .byte 'D', 'D', 'D', 'D'
26379 .section .dtors.64528,$sh_flags,$sh_type
26381 .byte 'E', 'E', 'E', 'E'
26382 .section .ctors.64528,$sh_flags,$sh_type
26384 .byte 'F', 'F', 'F', 'F'
26385 .section .fini_array.01005,$sh_flags,$sh_type
26387 .byte 'G', 'G', 'G', 'G'
26388 .section .init_array.01005,$sh_flags,$sh_type
26390 .byte 'H', 'H', 'H', 'H'
26395 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26396 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26397 && $gcc_cv_objdump -s -j .init_array conftest \
26398 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
26399 && $gcc_cv_objdump -s -j .fini_array conftest \
26400 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
26401 gcc_cv_initfini_array
=yes
26405 # When Solaris ld added constructor priority support, it was
26406 # decided to only handle .init_array.N/.fini_array.N since
26407 # there was no need for backwards compatibility with
26408 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26409 # sections with correct execution order resp. to
26410 # .init_array/.fini_array, while gld merges them into
26411 # .init_array/.fini_array.
26412 cat > conftest.s
<<EOF
26413 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26415 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26416 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26418 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26419 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26421 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26422 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26424 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26429 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26430 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26431 && $gcc_cv_objdump -s -j .init_array conftest \
26432 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
26433 && $gcc_cv_objdump -s -j .fini_array conftest \
26434 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
26435 gcc_cv_initfini_array
=yes
26439 rm -f conftest conftest.
*
26441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26442 /* end confdefs.h. */
26445 # error Not an ELF OS
26447 #include <stdlib.h>
26448 #if defined __GLIBC_PREREQ
26449 # if __GLIBC_PREREQ (2, 4)
26451 # error GLIBC 2.4 required
26454 # if defined __sun__ && defined __svr4__
26455 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26457 # error The C library not known to support .init_array/.fini_array
26462 if ac_fn_cxx_try_cpp
"$LINENO"; then :
26465 gcc_cv_initfini_array
=no
26467 rm -f conftest.err conftest.i conftest.
$ac_ext;;
26470 case "${target}" in
26471 aarch64
*-linux-gnu*)
26472 # AArch64 postdates glibc support for .init_array/.fini_array,
26473 # so we don't need the preprocessor test above.
26474 gcc_cv_initfini_array
=yes
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26479 $as_echo_n "checking cross compile... guessing... " >&6; }
26480 gcc_cv_initfini_array
=no
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26486 $as_echo "$gcc_cv_initfini_array" >&6; }
26487 enable_initfini_array
=$gcc_cv_initfini_array
26492 cat >>confdefs.h
<<_ACEOF
26493 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26498 # Some assemblers (GNU as for LoongArch) generates relocations for
26499 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26500 # probing leb128 support then.
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26504 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26505 if ${gcc_cv_as_mno_relax+:} false
; then :
26506 $as_echo_n "(cached) " >&6
26508 gcc_cv_as_mno_relax
=no
26509 if test x
$gcc_cv_as != x
; then
26510 $as_echo '.text' > conftest.s
26511 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }
26518 gcc_cv_as_mno_relax
=yes
26520 echo "configure: failed program was" >&5
26523 rm -f conftest.o conftest.s
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26527 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26528 if test $gcc_cv_as_mno_relax = yes; then
26529 check_leb128_asflags
=-mno-relax
26534 check_leb128_asflags
=
26538 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26539 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26540 # these directives, even when they appear to accept them.
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26542 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26543 if ${gcc_cv_as_leb128+:} false
; then :
26544 $as_echo_n "(cached) " >&6
26546 gcc_cv_as_leb128
=no
26547 if test x
$gcc_cv_as != x
; then
26554 .uleb128 0x8000000000000000
26556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26564 if test "x$gcc_cv_objdump" != x
; then
26565 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
26566 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
26567 gcc_cv_as_leb128
=yes
26569 elif test "x$gcc_cv_otool" != x
; then
26570 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
26571 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
26572 gcc_cv_as_leb128
=yes
26575 # play safe, assume the assembler is broken.
26580 echo "configure: failed program was" >&5
26583 rm -f conftest.o conftest.s
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26587 $as_echo "$gcc_cv_as_leb128" >&6; }
26588 if test $gcc_cv_as_leb128 = yes; then
26590 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26593 if test $gcc_cv_as_leb128 != yes; then
26595 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26599 # Determine if an .eh_frame section is read-only.
26600 gcc_fn_eh_frame_ro
() {
26601 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
26602 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
26603 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
26606 # Check if we have assembler support for unwind directives.
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26608 $as_echo_n "checking assembler for cfi directives... " >&6; }
26609 if ${gcc_cv_as_cfi_directive+:} false
; then :
26610 $as_echo_n "(cached) " >&6
26612 gcc_cv_as_cfi_directive
=no
26613 if test x
$gcc_cv_as != x
; then
26619 .cfi_escape 1, 2, 3, 4, 5
26620 .cfi_endproc' > conftest.s
26621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26630 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26631 # read-only and read-write sections, we need to make sure that the
26632 # assembler used emits read-write .eh_frame sections.
26633 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
26634 gcc_cv_as_cfi_directive
=yes
26635 elif test "x$gcc_cv_objdump" = x
; then
26636 # No objdump, err on the side of caution.
26637 gcc_cv_as_cfi_directive
=no
26639 if test x
$gas = xyes
; then
26647 sparc
*-*-solaris2.
*)
26648 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26649 if gcc_fn_eh_frame_ro
$as_32_opt \
26650 || gcc_fn_eh_frame_ro
$as_64_opt; then
26651 gcc_cv_as_cfi_directive
=no
26653 gcc_cv_as_cfi_directive
=yes
26656 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
26657 # On Solaris/x86, make sure that GCC and assembler agree on using
26658 # read-only .eh_frame sections for 64-bit.
26659 if gcc_fn_eh_frame_ro
$as_32_opt; then
26660 gcc_cv_as_cfi_directive
=no
26661 elif gcc_fn_eh_frame_ro
$as_64_opt; then
26662 gcc_cv_as_cfi_directive
=yes
26664 gcc_cv_as_cfi_directive
=no
26671 gcc_cv_as_cfi_directive
=yes
26675 echo "configure: failed program was" >&5
26678 rm -f conftest.o conftest.s
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26682 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26685 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26687 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26688 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
26689 $as_echo_n "(cached) " >&6
26691 gcc_cv_as_cfi_advance_working
=no
26692 if test x
$gcc_cv_as != x
; then
26695 .cfi_adjust_cfa_offset 64
26697 .cfi_adjust_cfa_offset 128
26698 .cfi_endproc' > conftest.s
26699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26701 (eval $ac_try) 2>&5
26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26704 test $ac_status = 0; }; }
26707 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
26708 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
26709 gcc_cv_as_cfi_advance_working
=yes
26713 echo "configure: failed program was" >&5
26716 rm -f conftest.o conftest.s
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26720 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26724 # no objdump, err on the side of caution
26725 gcc_cv_as_cfi_advance_working
=no
26729 cat >>confdefs.h
<<_ACEOF
26730 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26731 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26737 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26738 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
26739 $as_echo_n "(cached) " >&6
26741 gcc_cv_as_cfi_personality_directive
=no
26742 if test x
$gcc_cv_as != x
; then
26745 .cfi_personality 0, symbol
26746 .cfi_endproc' > conftest.s
26747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26754 gcc_cv_as_cfi_personality_directive
=yes
26756 echo "configure: failed program was" >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26763 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26767 cat >>confdefs.h
<<_ACEOF
26768 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26773 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26774 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
26775 $as_echo_n "(cached) " >&6
26777 gcc_cv_as_cfi_sections_directive
=no
26778 if test x
$gcc_cv_as != x
; then
26780 .cfi_sections .debug_frame, .eh_frame
26782 .cfi_endproc' > conftest.s
26783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26791 win32 | pe | cygwin
* | mingw32
*)
26792 # Need to check that we generated the correct relocation for the
26793 # .debug_frame section. This was fixed for binutils 2.21.
26794 gcc_cv_as_cfi_sections_directive
=no
26795 if test "x$gcc_cv_objdump" != x
; then
26796 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
26797 grep -i secrel
> /dev
/null
; then
26798 gcc_cv_as_cfi_sections_directive
=yes
26803 gcc_cv_as_cfi_sections_directive
=yes
26807 echo "configure: failed program was" >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26814 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26819 cat >>confdefs.h
<<_ACEOF
26820 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26824 # GAS versions up to and including 2.11.0 may mis-optimize
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26827 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26828 if ${gcc_cv_as_eh_frame+:} false
; then :
26829 $as_echo_n "(cached) " >&6
26831 gcc_cv_as_eh_frame
=no
26832 if test x
$gcc_cv_as != x
; then
26839 .section .eh_frame,"aw",@progbits
26841 .4byte .LECIE1-.LSCIE1
26855 .4byte .LEFDE1-.LASFDE1
26857 .4byte .LASFDE1-__FRAME_BEGIN__
26864 .LEFDE1:' > conftest.s
26865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26872 cat > conftest.lit
<<EOF
26873 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26874 0010 01000000 12000000 18000000 00000000 ................
26875 0020 08000000 04080000 0044 .........D
26877 cat > conftest.big
<<EOF
26878 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26879 0010 00000001 00000012 00000018 00000000 ................
26880 0020 00000008 04000000 0844 .........D
26882 # If the assembler didn't choke, and we can objdump,
26883 # and we got the correct data, then succeed.
26884 # The text in the here-document typically retains its unix-style line
26885 # endings, while the output of objdump will use host line endings.
26886 # Therefore, use diff -b for the comparisons.
26887 if test x
$gcc_cv_objdump != x \
26888 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
26889 |
tail -3 > conftest.got \
26890 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
26891 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
26893 gcc_cv_as_eh_frame
=yes
26894 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
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; }; }; then
26900 gcc_cv_as_eh_frame
=buggy
26902 # Uh oh, what do we do now?
26903 gcc_cv_as_eh_frame
=no
26906 echo "configure: failed program was" >&5
26909 rm -f conftest.o conftest.s
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26913 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26917 if test $gcc_cv_as_eh_frame = buggy
; then
26919 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26923 # Test if the assembler supports the section flag 'e' or #exclude for
26924 # specifying an excluded section.
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26926 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26927 if ${gcc_cv_as_section_exclude_e+:} false
; then :
26928 $as_echo_n "(cached) " >&6
26930 gcc_cv_as_section_exclude_e
=no
26931 if test x
$gcc_cv_as != x
; then
26932 $as_echo '.section foo1,"e"
26933 .byte 0,0,0,0' > conftest.s
26934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26936 (eval $ac_try) 2>&5
26938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26939 test $ac_status = 0; }; }
26941 gcc_cv_as_section_exclude_e
=yes
26943 echo "configure: failed program was" >&5
26946 rm -f conftest.o conftest.s
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26950 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26953 if test $gcc_cv_as_section_exclude_e = no
; then
26954 case "${target}" in
26955 # Solaris as uses #exclude instead.
26957 case "${target}" in
26958 sparc
*-*-solaris2*)
26959 conftest_s
='.section "foo1", #exclude'
26961 i?
86-*-solaris2* | x86_64-
*-solaris2*)
26962 conftest_s
='.section foo1, #exclude'
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26968 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26969 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
26970 $as_echo_n "(cached) " >&6
26972 gcc_cv_as_section_exclude_hash
=no
26973 if test x
$gcc_cv_as != x
; then
26974 $as_echo "$conftest_s
26975 .byte 0,0,0,0" > conftest.s
26976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; }
26983 gcc_cv_as_section_exclude_hash
=yes
26985 echo "configure: failed program was" >&5
26988 rm -f conftest.o conftest.s
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26992 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26997 cat >>confdefs.h
<<_ACEOF
26998 #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`
27002 # Test if the assembler supports the section flag 'R' for specifying
27003 # section with SHF_GNU_RETAIN.
27004 case "${target}" in
27005 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27006 # assembler supports the section flag 'R', it doesn't mean that
27007 # Solairs ld supports it.
27009 gcc_cv_as_shf_gnu_retain
=no
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
27013 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
27014 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
27015 $as_echo_n "(cached) " >&6
27017 gcc_cv_as_shf_gnu_retain
=no
27018 if test x
$gcc_cv_as != x
; then
27019 $as_echo '.section .foo,"awR",%progbits
27020 .byte 0' > conftest.s
27021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27028 gcc_cv_as_shf_gnu_retain
=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_shf_gnu_retain" >&5
27037 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
27043 cat >>confdefs.h
<<_ACEOF
27044 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
27048 # Test if the assembler supports the section flag 'o' for specifying
27049 # section with link-order.
27050 case "${target}" in
27051 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27052 # assembler supports the section flag 'o', it doesn't mean that
27053 # Solairs ld supports it.
27055 gcc_cv_as_section_link_order
=no
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27059 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27060 if ${gcc_cv_as_section_link_order+:} false
; then :
27061 $as_echo_n "(cached) " >&6
27063 gcc_cv_as_section_link_order
=no
27064 if test x
$gcc_cv_as != x
; then
27065 $as_echo '.section .foo,"a"
27067 .section __patchable_function_entries,"awo",%progbits,.foo
27068 .byte 0' > conftest.s
27069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071 (eval $ac_try) 2>&5
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; }
27076 gcc_cv_as_section_link_order
=yes
27078 echo "configure: failed program was" >&5
27081 rm -f conftest.o conftest.s
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27085 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27091 cat >>confdefs.h
<<_ACEOF
27092 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27097 $as_echo_n "checking assembler for section merging support... " >&6; }
27098 if ${gcc_cv_as_shf_merge+:} false
; then :
27099 $as_echo_n "(cached) " >&6
27101 gcc_cv_as_shf_merge
=no
27102 if test x
$gcc_cv_as != x
; then
27103 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27106 (eval $ac_try) 2>&5
27108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27109 test $ac_status = 0; }; }
27111 gcc_cv_as_shf_merge
=yes
27113 echo "configure: failed program was" >&5
27116 rm -f conftest.o conftest.s
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27120 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27123 if test $gcc_cv_as_shf_merge = no
; then
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27125 $as_echo_n "checking assembler for section merging support... " >&6; }
27126 if ${gcc_cv_as_shf_merge+:} false
; then :
27127 $as_echo_n "(cached) " >&6
27129 gcc_cv_as_shf_merge
=no
27130 if test x
$gcc_cv_as != x
; then
27131 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27134 (eval $ac_try) 2>&5
27136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27137 test $ac_status = 0; }; }
27139 gcc_cv_as_shf_merge
=yes
27141 echo "configure: failed program was" >&5
27144 rm -f conftest.o conftest.s
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27148 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27153 cat >>confdefs.h
<<_ACEOF
27154 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27158 gcc_cv_ld_aligned_shf_merge
=yes
27160 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27162 sparc
*-*-solaris2.11
*)
27163 if test x
"$gnu_ld" = xno \
27164 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27165 gcc_cv_ld_aligned_shf_merge
=no
27170 cat >>confdefs.h
<<_ACEOF
27171 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27176 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27177 if ${gcc_cv_as_comdat_group+:} false
; then :
27178 $as_echo_n "(cached) " >&6
27180 gcc_cv_as_comdat_group
=no
27181 if test x
$gcc_cv_as != x
; then
27182 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27185 (eval $ac_try) 2>&5
27187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27188 test $ac_status = 0; }; }
27190 gcc_cv_as_comdat_group
=yes
27192 echo "configure: failed program was" >&5
27195 rm -f conftest.o conftest.s
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27199 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27202 if test $gcc_cv_as_comdat_group = yes; then
27203 gcc_cv_as_comdat_group_percent
=no
27204 gcc_cv_as_comdat_group_group
=no
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27207 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27208 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
27209 $as_echo_n "(cached) " >&6
27211 gcc_cv_as_comdat_group_percent
=no
27212 if test x
$gcc_cv_as != x
; then
27213 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27216 (eval $ac_try) 2>&5
27218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27219 test $ac_status = 0; }; }
27221 gcc_cv_as_comdat_group_percent
=yes
27223 echo "configure: failed program was" >&5
27226 rm -f conftest.o conftest.s
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27230 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27233 if test $gcc_cv_as_comdat_group_percent = yes; then
27234 gcc_cv_as_comdat_group_group
=no
27236 case "${target}" in
27237 # Sun as uses a completely different syntax.
27239 case "${target}" in
27240 sparc
*-*-solaris2*)
27242 .group foo,".text%foo",#comdat
27243 .section ".text%foo", #alloc,#execinstr,#progbits
27248 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27250 .group foo,.text%foo,#comdat
27251 .section .text%foo, "ax", @progbits
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27258 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27259 if ${gcc_cv_as_comdat_group_group+:} false
; then :
27260 $as_echo_n "(cached) " >&6
27262 gcc_cv_as_comdat_group_group
=no
27263 if test x
$gcc_cv_as != x
; then
27264 $as_echo "$conftest_s" > conftest.s
27265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27272 gcc_cv_as_comdat_group_group
=yes
27274 echo "configure: failed program was" >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27281 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27286 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27287 gcc_cv_as_comdat_group_group
=no
27291 if test x
"$ld_is_gold" = xyes
; then
27293 elif test x
"$ld_is_mold" = xyes
; then
27295 elif test $in_tree_ld = yes ; then
27297 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 \
27298 && test $in_tree_ld_is_elf = yes; then
27301 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27303 if test 0"$ld_date" -lt 20050308; then
27304 if test -n "$ld_date"; then
27305 # If there was date string, but was earlier than 2005-03-08, fail
27307 elif test "$ld_vers_major" -lt 2; then
27309 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27314 case "${target}" in
27315 *-*-solaris2.1
[1-9]*)
27317 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27318 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27321 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27322 # least ld version 1.2267.
27323 if test "$ld_vers_major" -gt 1; then
27325 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
27327 elif test "$ld_vers_minor" -ge 2267; then
27332 # Assume linkers other than GNU ld don't support COMDAT group.
27337 # Allow overriding the automatic COMDAT group tests above.
27338 # Check whether --enable-comdat was given.
27339 if test "${enable_comdat+set}" = set; then :
27340 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
27343 if test $comdat_group = no
; then
27344 gcc_cv_as_comdat_group
=no
27345 gcc_cv_as_comdat_group_percent
=no
27346 gcc_cv_as_comdat_group_group
=no
27349 cat >>confdefs.h
<<_ACEOF
27350 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27351 || test $gcc_cv_as_comdat_group_percent = yes \
27352 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27356 # Restrict this test to Solaris/x86: other targets define this statically.
27357 case "${target}" in
27358 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27360 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27361 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27362 hidden_linkonce
=yes
27364 case "${target}" in
27365 # Full support for hidden thunks in linkonce sections only appeared in
27366 # Solaris 11/OpenSolaris.
27367 *-*-solaris2.1
[1-9]*)
27368 hidden_linkonce
=yes
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27376 $as_echo "$hidden_linkonce" >&6; }
27378 cat >>confdefs.h
<<_ACEOF
27379 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27386 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27387 if ${gcc_cv_as_is_stmt+:} false
; then :
27388 $as_echo_n "(cached) " >&6
27390 gcc_cv_as_is_stmt
=no
27391 if test x
$gcc_cv_as != x
; then
27394 .loc 1 1 0 is_stmt 1' > conftest.s
27395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27402 gcc_cv_as_is_stmt
=yes
27404 echo "configure: failed program was" >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27411 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27412 if test $gcc_cv_as_is_stmt = yes; then
27414 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27420 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27421 if ${gcc_cv_as_discriminator+:} false
; then :
27422 $as_echo_n "(cached) " >&6
27424 gcc_cv_as_discriminator
=no
27425 if test x
$gcc_cv_as != x
; then
27428 .loc 1 1 0 discriminator 1' > conftest.s
27429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27431 (eval $ac_try) 2>&5
27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27434 test $ac_status = 0; }; }
27436 gcc_cv_as_discriminator
=yes
27438 echo "configure: failed program was" >&5
27441 rm -f conftest.o conftest.s
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27445 $as_echo "$gcc_cv_as_discriminator" >&6; }
27446 if test $gcc_cv_as_discriminator = yes; then
27448 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27453 # Catch the newlib flag of the same name so we can gate GCC features on it.
27454 # Check whether --enable-newlib-nano-formatted-io was given.
27455 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27456 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
27460 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27466 # Thread-local storage - the check is heavily parameterized.
27472 .section ".tdata","awT",@progbits
27475 ldq $27,__tls_get_addr($29) !literal!1
27476 lda $16,foo($29) !tlsgd!1
27477 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27478 ldq $27,__tls_get_addr($29) !literal!2
27479 lda $16,foo($29) !tlsldm!2
27480 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27481 ldq $1,foo($29) !gotdtprel
27482 ldah $2,foo($29) !dtprelhi
27483 lda $3,foo($2) !dtprello
27484 lda $4,foo($29) !dtprel
27485 ldq $1,foo($29) !gottprel
27486 ldah $2,foo($29) !tprelhi
27487 lda $3,foo($2) !tprello
27488 lda $4,foo($29) !tprel'
27489 tls_as_opt
=--fatal-warnings
27493 add_s r0,r0, @foo@tpoff'
27495 cris-
*-*|crisv32-
*-*)
27497 .section ".tdata","awT",@progbits
27502 tls_as_opt
=--fatal-warnings
27506 .section ".tdata","awT",@progbits
27509 call #gettlsoff(x)'
27516 .section ".tdata","awT",@progbits
27520 addil LT%foo-$tls_gdidx$,gp
27521 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27524 addil LT%foo-$tls_ldidx$,gp
27526 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27527 addil LR%foo-$tls_dtpoff$,%ret0
27528 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27530 addil LT%foo-$tls_ieoff$,gp
27531 ldw RT%foo-$tls_ieoff$(%r1),%t2
27534 addil LR%foo-$tls_leoff$,%t1
27535 ldo RR%foo-$tls_leoff$(%r1),%t2'
27536 tls_as_opt
=--fatal-warnings
27540 .section ".tdata","awT",%progbits
27543 .word foo(gottpoff)
27549 i
[34567]86-*-* | x86_64-
*-*)
27551 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
27558 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27560 .section .tdata,"awt",@progbits'
27563 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27567 .section ".tdata","awT",@progbits'
27569 tls_as_opt
="--fatal-warnings"
27573 if test x
$on_solaris = xyes
; then
27575 yes) tls_as_opt
="$tls_as_opt --32" ;;
27578 conftest_s
="$conftest_s
27582 leal foo@tlsgd(,%ebx,1), %eax
27583 leal foo@tlsldm(%ebx), %eax
27584 leal foo@dtpoff(%eax), %edx
27585 movl foo@gottpoff(%ebx), %eax
27586 subl foo@gottpoff(%ebx), %eax
27587 addl foo@gotntpoff(%ebx), %eax
27588 movl foo@indntpoff, %eax
27589 movl \$foo@tpoff, %eax
27590 subl \$foo@tpoff, %eax
27591 leal foo@ntpoff(%ecx), %eax"
27594 if test x
$on_solaris = xyes
; then
27596 yes) tls_as_opt
="$tls_as_opt --64" ;;
27597 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
27600 conftest_s
="$conftest_s
27604 leaq foo@tlsgd(%rip), %rdi
27605 leaq foo@tlsld(%rip), %rdi
27606 leaq foo@dtpoff(%rax), %rdx
27607 movq foo@gottpoff(%rip), %rax
27608 movq \$foo@tpoff, %rax"
27614 .section ".tdata","awT",@progbits
27617 addl r16 = @ltoff(@dtpmod(foo#)), gp
27618 addl r17 = @ltoff(@dtprel(foo#)), gp
27619 addl r18 = @ltoff(@tprel(foo#)), gp
27620 addl r19 = @dtprel(foo#), gp
27621 adds r21 = @dtprel(foo#), r13
27622 movl r23 = @dtprel(foo#)
27623 addl r20 = @tprel(foo#), gp
27624 adds r22 = @tprel(foo#), r13
27625 movl r24 = @tprel(foo#)'
27626 tls_as_opt
=--fatal-warnings
27630 .section .tdata,"awT",@progbits
27637 tls_as_opt
='--fatal-warnings'
27641 .section .tdata,"awT",@progbits
27645 addik r5,r20,x@TLSGD
27646 addik r5,r20,x@TLSLDM'
27647 tls_as_opt
='--fatal-warnings'
27651 .section .tdata,"awT",@progbits
27655 addiu $4, $28, %tlsgd(x)
27656 addiu $4, $28, %tlsldm(x)
27657 lui $4, %dtprel_hi(x)
27658 addiu $4, $4, %dtprel_lo(x)
27659 lw $4, %gottprel(x)($28)
27660 lui $4, %tprel_hi(x)
27661 addiu $4, $4, %tprel_lo(x)'
27662 tls_as_opt
='-32 --fatal-warnings'
27666 .section .tdata,"awT",@progbits
27671 move.l x@TLSGD(%a5),%a0
27672 move.l x@TLSLDM(%a5),%a0
27673 move.l x@TLSLDO(%a5),%a0
27674 move.l x@TLSIE(%a5),%a0
27675 move.l x@TLSLE(%a5),%a0'
27676 tls_as_opt
='--fatal-warnings'
27680 .section ".tdata","awT",@progbits'
27681 tls_as_opt
="--fatal-warnings"
27685 .section ".tdata","awT",%progbits
27689 add x0, x0, #:tlsgd_lo12:x
27692 tls_as_opt
='--fatal-warnings'
27696 .section ".tdata","awT",@progbits
27699 l.movhi r3, tpoffha(foo)
27701 l.lwz r4, tpofflo(foo)(r3)'
27702 tls_as_opt
=--fatal-warnings
27706 .extern __get_tpointer
27722 .section ".tdata","awT",@progbits
27730 addi 3,2,ld0@got@tlsgd
27736 addi 3,2,x1@got@tlsld
27742 addis 9,3,x2@dtprel@ha
27743 addi 9,9,x2@dtprel@l
27746 ld 9,x3@got@dtprel(2)
27750 tls_as_opt
="-a64 --fatal-warnings"
27754 .section ".tdata","awT",@progbits
27762 addi 3,31,ld0@got@tlsgd
27764 addi 3,31,x1@got@tlsld
27767 addis 9,3,x2@dtprel@ha
27768 addi 9,9,x2@dtprel@l
27769 lwz 9,x3@got@tprel(31)
27772 addis 9,2,x2@tprel@ha
27773 addi 9,9,x2@tprel@l'
27774 tls_as_opt
="-a32 --fatal-warnings"
27778 .section .tdata,"awT",@progbits
27782 call __tls_get_addr'
27783 tls_as_opt
='--fatal-warnings'
27787 .section ".tdata","awT",@progbits
27794 .long foo@GOTNTPOFF
27795 .long foo@INDNTPOFF
27796 l %r1,foo@GOTNTPOFF(%r12)
27797 l %r1,0(%r1):tls_load:foo
27798 bas %r14,0(%r1,%r13):tls_gdcall:foo
27799 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27800 tls_as_opt
="-m31 --fatal-warnings"
27804 .section ".tdata","awT",@progbits
27811 .quad foo@GOTNTPOFF
27812 lg %r1,foo@GOTNTPOFF(%r12)
27813 larl %r1,foo@INDNTPOFF
27814 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27815 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27816 tls_as_opt
="-m64 -Aesame --fatal-warnings"
27818 sh-
*-* | sh
[123456789lbe
]*-*-*)
27820 .section ".tdata","awT",@progbits
27828 tls_as_opt
=--fatal-warnings
27832 sparc
*-sun-solaris2.
*)
27839 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27841 .section ".tdata",#alloc,#write,#tls'
27844 .section ".tdata","awT",@progbits'
27845 tls_as_opt
="-32 --fatal-warnings"
27847 conftest_s
="$conftest_s
27850 sethi %tgd_hi22(foo), %o0
27851 add %o0, %tgd_lo10(foo), %o1
27852 add %l7, %o1, %o0, %tgd_add(foo)
27853 call __tls_get_addr, %tgd_call(foo)
27854 sethi %tldm_hi22(foo), %l1
27855 add %l1, %tldm_lo10(foo), %l2
27856 add %l7, %l2, %o0, %tldm_add(foo)
27857 call __tls_get_addr, %tldm_call(foo)
27858 sethi %tldo_hix22(foo), %l3
27859 xor %l3, %tldo_lox10(foo), %l4
27860 add %o0, %l4, %l5, %tldo_add(foo)
27861 sethi %tie_hi22(foo), %o3
27862 add %o3, %tie_lo10(foo), %o3
27863 ld [%l7 + %o3], %o2, %tie_ld(foo)
27864 add %g7, %o2, %o4, %tie_add(foo)
27865 sethi %tle_hix22(foo), %l1
27866 xor %l1, %tle_lox10(foo), %o5
27867 ld [%g7 + %o5], %o1"
27871 .section ".tdata","awT",@progbits
27874 movi a8, foo@TLSFUNC
27875 movi a10, foo@TLSARG
27876 callx8.tls a8, foo@TLSCALL'
27880 if test "x$enable_tls" = xno
; then
27881 : # TLS explicitly disabled.
27882 elif test "x$enable_tls" = xyes
; then
27883 set_have_as_tls
=yes # TLS explicitly enabled.
27884 elif test -z "$conftest_s"; then
27885 : # If we don't have a check, assume no support.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27888 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27889 if ${gcc_cv_as_tls+:} false
; then :
27890 $as_echo_n "(cached) " >&6
27893 if test x
$gcc_cv_as != x
; then
27894 $as_echo "$conftest_s" > conftest.s
27895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27897 (eval $ac_try) 2>&5
27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27900 test $ac_status = 0; }; }
27904 echo "configure: failed program was" >&5
27907 rm -f conftest.o conftest.s
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27911 $as_echo "$gcc_cv_as_tls" >&6; }
27912 if test $gcc_cv_as_tls = yes; then
27913 set_have_as_tls
=yes
27917 if test $set_have_as_tls = yes ; then
27919 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27923 # Target-specific assembler checks.
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27926 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27927 gcc_cv_ld_static_dynamic
=no
27928 gcc_cv_ld_static_option
='-Bstatic'
27929 gcc_cv_ld_dynamic_option
='-Bdynamic'
27930 if test $in_tree_ld = yes ; then
27931 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
27932 gcc_cv_ld_static_dynamic
=yes
27934 elif test x
$gcc_cv_ld != x
; then
27935 # Check if linker supports -Bstatic/-Bdynamic option
27936 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
27937 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
27938 gcc_cv_ld_static_dynamic
=yes
27941 # AIX ld uses -b flags
27942 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
27943 gcc_cv_ld_static_dynamic
=yes
27944 gcc_cv_ld_static_option
="-bstatic"
27945 gcc_cv_ld_dynamic_option
="-bdynamic"
27947 # HP-UX ld uses -a flags to select between shared and archive.
27949 if test x
"$gnu_ld" = xno
; then
27950 gcc_cv_ld_static_dynamic
=yes
27951 gcc_cv_ld_static_option
="-aarchive_shared"
27952 gcc_cv_ld_dynamic_option
="-adefault"
27955 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27957 gcc_cv_ld_static_dynamic
=yes
27962 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
27964 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27967 cat >>confdefs.h
<<_ACEOF
27968 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27972 cat >>confdefs.h
<<_ACEOF
27973 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27978 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27981 $as_echo_n "checking linker --version-script option... " >&6; }
27982 gcc_cv_ld_version_script
=no
27983 ld_version_script_option
=''
27984 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27985 gcc_cv_ld_version_script
=yes
27986 ld_version_script_option
='--version-script'
27987 elif test x
$gcc_cv_ld != x
; then
27989 # Solaris 2 ld always supports -M. It also supports a subset of
27990 # --version-script since Solaris 11.4, but requires
27991 # -z gnu-version-script-compat to activate.
27993 gcc_cv_ld_version_script
=yes
27994 ld_version_script_option
='-M'
27998 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
28000 $as_echo "$gcc_cv_ld_version_script" >&6; }
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
28004 $as_echo_n "checking linker soname option... " >&6; }
28005 gcc_cv_ld_soname
=no
28006 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
28007 gcc_cv_ld_soname
=yes
28008 ld_soname_option
='-soname'
28009 elif test x
$gcc_cv_ld != x
; then
28012 gcc_cv_ld_soname
=yes
28013 ld_soname_option
='-install_name'
28015 # Solaris 2 ld always supports -h. It also supports --soname for GNU
28016 # ld compatiblity since some Solaris 10 update.
28018 gcc_cv_ld_soname
=yes
28019 ld_soname_option
='-h'
28023 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
28025 $as_echo "$gcc_cv_ld_soname" >&6; }
28028 if test x
"$demangler_in_ld" = xyes
; then
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
28030 $as_echo_n "checking linker --demangle support... " >&6; }
28031 gcc_cv_ld_demangle
=no
28032 if test $in_tree_ld = yes; then
28033 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 \
28034 gcc_cv_ld_demangle
=yes
28036 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
28037 # Check if the GNU linker supports --demangle option
28038 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
28039 gcc_cv_ld_demangle
=yes
28042 if test x
"$gcc_cv_ld_demangle" = xyes
; then
28044 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
28048 $as_echo "$gcc_cv_ld_demangle" >&6; }
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
28052 $as_echo_n "checking linker plugin support... " >&6; }
28053 gcc_cv_lto_plugin
=0
28054 if test -f liblto_plugin.la
; then
28055 save_ld_ver
="$ld_ver"
28056 save_ld_vers_major
="$ld_vers_major"
28057 save_ld_vers_minor
="$ld_vers_minor"
28058 save_ld_is_gold
="$ld_is_gold"
28062 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
28064 # FIXME: ld_is_gold?
28065 ld_vers_major
="$gcc_cv_gld_major_version"
28066 ld_vers_minor
="$gcc_cv_gld_minor_version"
28068 # Determine plugin linker version.
28069 # FIXME: Partial duplicate from above, generalize.
28070 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28071 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28072 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
28074 ld_vers
=`echo $ld_ver | sed -n \
28075 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28077 ld_vers
=`echo $ld_ver | sed -n \
28078 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28080 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
28081 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28085 # Determine plugin support.
28086 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28087 # Require GNU ld or gold 2.21+ for plugin support by default.
28088 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28089 gcc_cv_lto_plugin
=2
28090 elif test "$ld_is_mold" = yes; then
28091 gcc_cv_lto_plugin
=2
28092 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28093 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28094 gcc_cv_lto_plugin
=1
28098 ld_ver
="$save_ld_ver"
28099 ld_vers_major
="$save_ld_vers_major"
28100 ld_vers_minor
="$save_ld_vers_minor"
28101 ld_is_gold
="$save_ld_is_gold"
28104 cat >>confdefs.h
<<_ACEOF
28105 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28109 $as_echo "$gcc_cv_lto_plugin" >&6; }
28111 # Target OS-specific assembler checks.
28113 case "$target_os" in
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28116 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28117 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
28118 $as_echo_n "(cached) " >&6
28120 gcc_cv_as_mmacosx_version_min
=no
28121 if test x
$gcc_cv_as != x
; then
28122 $as_echo '.text' > conftest.s
28123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28130 gcc_cv_as_mmacosx_version_min
=yes
28132 echo "configure: failed program was" >&5
28135 rm -f conftest.o conftest.s
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28139 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28140 if test $gcc_cv_as_mmacosx_version_min = yes; then
28142 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28146 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28148 $as_echo_n "checking assembler for .build_version... " >&6; }
28149 if ${gcc_cv_as_darwin_build_version+:} false
; then :
28150 $as_echo_n "(cached) " >&6
28152 gcc_cv_as_darwin_build_version
=no
28153 if test x
$gcc_cv_as != x
; then
28154 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28157 (eval $ac_try) 2>&5
28159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160 test $ac_status = 0; }; }
28162 gcc_cv_as_darwin_build_version
=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_darwin_build_version" >&5
28171 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28172 if test $gcc_cv_as_darwin_build_version = yes; then
28174 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28182 # Target CPU-specific assembler checks.
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28187 $as_echo_n "checking assembler for -mabi option... " >&6; }
28188 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
28189 $as_echo_n "(cached) " >&6
28191 gcc_cv_as_aarch64_mabi
=no
28192 if test x
$gcc_cv_as != x
; then
28193 $as_echo '.text' > conftest.s
28194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28196 (eval $ac_try) 2>&5
28198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28199 test $ac_status = 0; }; }
28201 gcc_cv_as_aarch64_mabi
=yes
28203 echo "configure: failed program was" >&5
28206 rm -f conftest.o conftest.s
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28210 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28213 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
28215 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28218 if test x
$with_abi = xilp32
; then
28219 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28220 Upgrade the Assembler." "$LINENO" 5
28222 if test x
"$with_multilib_list" = xdefault
; then
28223 TM_MULTILIB_CONFIG
=lp64
28225 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
28226 for aarch64_multilib
in ${aarch64_multilibs}; do
28227 case ${aarch64_multilib} in
28229 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28230 Upgrade the Assembler." "$LINENO" 5
28238 # Check if we have binutils support for relocations types needed by -fpic
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28240 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28241 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
28242 $as_echo_n "(cached) " >&6
28244 gcc_cv_as_aarch64_picreloc
=no
28245 if test x
$gcc_cv_as != x
; then
28248 ldr x0, [x2, #:gotpage_lo15:globalsym]
28250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28252 (eval $ac_try) 2>&5
28254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28255 test $ac_status = 0; }; }
28257 gcc_cv_as_aarch64_picreloc
=yes
28259 echo "configure: failed program was" >&5
28262 rm -f conftest.o conftest.s
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28266 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28267 if test $gcc_cv_as_aarch64_picreloc = yes; then
28269 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28273 # Enable Branch Target Identification Mechanism and Return Address
28274 # Signing by default.
28275 # Check whether --enable-standard-branch-protection was given.
28276 if test "${enable_standard_branch_protection+set}" = set; then :
28277 enableval
=$enable_standard_branch_protection;
28280 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28285 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
28286 Valid choices are 'yes' and 'no'." "$LINENO" 5
28292 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28293 # Check whether --enable-fix-cortex-a53-835769 was given.
28294 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28295 enableval
=$enable_fix_cortex_a53_835769;
28298 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28303 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28304 Valid choices are 'yes' and 'no'." "$LINENO" 5
28311 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28312 # Check whether --enable-fix-cortex-a53-843419 was given.
28313 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28314 enableval
=$enable_fix_cortex_a53_843419;
28317 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28322 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28323 Valid choices are 'yes' and 'no'." "$LINENO" 5
28332 # All TARGET_ABI_OSF targets.
28333 alpha
*-*-linux* | alpha
*-*-*bsd
*)
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28335 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28336 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
28337 $as_echo_n "(cached) " >&6
28339 gcc_cv_as_alpha_explicit_relocs
=no
28340 if test x
$gcc_cv_as != x
; then
28341 $as_echo ' .set nomacro
28343 extbl $3, $2, $3 !lituse_bytoff!1
28344 ldq $2, a($29) !literal!1
28345 ldq $4, b($29) !literal!2
28346 ldq_u $3, 0($2) !lituse_base!1
28347 ldq $27, f($29) !literal!5
28348 jsr $26, ($27), f !lituse_jsr!5
28349 ldah $29, 0($26) !gpdisp!3
28350 lda $0, c($29) !gprel
28351 ldah $1, d($29) !gprelhigh
28352 lda $1, d($1) !gprellow
28353 lda $29, 0($29) !gpdisp!3' > conftest.s
28354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28356 (eval $ac_try) 2>&5
28358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28359 test $ac_status = 0; }; }
28361 gcc_cv_as_alpha_explicit_relocs
=yes
28363 echo "configure: failed program was" >&5
28366 rm -f conftest.o conftest.s
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28370 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28371 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28373 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28378 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28379 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
28380 $as_echo_n "(cached) " >&6
28382 gcc_cv_as_alpha_jsrdirect_relocs
=no
28383 if test x
$gcc_cv_as != x
; then
28384 $as_echo ' .set nomacro
28386 ldq $27, a($29) !literal!1
28387 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28388 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28390 (eval $ac_try) 2>&5
28392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28393 test $ac_status = 0; }; }
28395 gcc_cv_as_alpha_jsrdirect_relocs
=yes
28397 echo "configure: failed program was" >&5
28400 rm -f conftest.o conftest.s
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28404 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28405 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28407 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28415 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28416 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
28417 $as_echo_n "(cached) " >&6
28419 gcc_cv_as_avr_mlink_relax
=no
28420 if test x
$gcc_cv_as != x
; then
28421 $as_echo '.text' > conftest.s
28422 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28424 (eval $ac_try) 2>&5
28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; }
28429 gcc_cv_as_avr_mlink_relax
=yes
28431 echo "configure: failed program was" >&5
28434 rm -f conftest.o conftest.s
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28438 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28439 if test $gcc_cv_as_avr_mlink_relax = yes; then
28441 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28447 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28448 if ${gcc_cv_as_avr_mrmw+:} false
; then :
28449 $as_echo_n "(cached) " >&6
28451 gcc_cv_as_avr_mrmw
=no
28452 if test x
$gcc_cv_as != x
; then
28453 $as_echo '.text' > conftest.s
28454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28456 (eval $ac_try) 2>&5
28458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28459 test $ac_status = 0; }; }
28461 gcc_cv_as_avr_mrmw
=yes
28463 echo "configure: failed program was" >&5
28466 rm -f conftest.o conftest.s
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28470 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28471 if test $gcc_cv_as_avr_mrmw = yes; then
28473 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28479 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28480 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
28481 $as_echo_n "(cached) " >&6
28483 gcc_cv_as_avr_mgccisr
=no
28484 if test x
$gcc_cv_as != x
; then
28490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28497 gcc_cv_as_avr_mgccisr
=yes
28499 echo "configure: failed program was" >&5
28502 rm -f conftest.o conftest.s
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28506 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28507 if test $gcc_cv_as_avr_mgccisr = yes; then
28509 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28514 # Check how default linker description file implements .rodata for
28515 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28516 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28518 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28519 cat > conftest.s
<<EOF
28520 .section .rodata,"a",@progbits
28522 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28527 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28529 (eval $ac_try) 2>&5
28531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; }
28533 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28535 (eval $ac_try) 2>&5
28537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28538 test $ac_status = 0; }; }
28539 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
28540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28541 (eval $ac_try) 2>&5
28543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28544 test $ac_status = 0; }; }
28545 if test -s conftest.nm
28547 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28549 $as_echo "yes" >&6; }
28551 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28555 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28556 echo "$as_me: nm output was" >&5
28557 cat conftest.nm
>&5
28558 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28559 { $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
28560 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28564 $as_echo "test failed" >&6; }
28565 echo "$as_me: failed program was" >&5
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28568 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28570 rm -f conftest.s conftest.o conftest.elf conftest.nm
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28575 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28576 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
28577 $as_echo_n "(cached) " >&6
28579 gcc_cv_as_cris_no_mul_bug
=no
28580 if test x
$gcc_cv_as != x
; then
28581 $as_echo '.text' > conftest.s
28582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28584 (eval $ac_try) 2>&5
28586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28587 test $ac_status = 0; }; }
28589 gcc_cv_as_cris_no_mul_bug
=yes
28591 echo "configure: failed program was" >&5
28594 rm -f conftest.o conftest.s
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28598 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28599 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28601 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28609 $as_echo_n "checking assembler for -relax option... " >&6; }
28610 if ${gcc_cv_as_sparc_relax+:} false
; then :
28611 $as_echo_n "(cached) " >&6
28613 gcc_cv_as_sparc_relax
=no
28614 if test x
$gcc_cv_as != x
; then
28615 $as_echo '.text' > conftest.s
28616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28618 (eval $ac_try) 2>&5
28620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28621 test $ac_status = 0; }; }
28623 gcc_cv_as_sparc_relax
=yes
28625 echo "configure: failed program was" >&5
28628 rm -f conftest.o conftest.s
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28632 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28633 if test $gcc_cv_as_sparc_relax = yes; then
28635 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28641 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28642 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
28643 $as_echo_n "(cached) " >&6
28645 gcc_cv_as_sparc_gotdata_op
=no
28646 if test x
$gcc_cv_as != x
; then
28652 sethi %gdop_hix22(foo), %g1
28653 xor %g1, %gdop_lox10(foo), %g1
28654 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28657 (eval $ac_try) 2>&5
28659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28660 test $ac_status = 0; }; }
28662 if test x
$gcc_cv_ld != x \
28663 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28664 if test x
$gcc_cv_objdump != x
; then
28665 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
28666 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
28667 gcc_cv_as_sparc_gotdata_op
=no
28669 gcc_cv_as_sparc_gotdata_op
=yes
28675 echo "configure: failed program was" >&5
28678 rm -f conftest.o conftest.s
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28682 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28683 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28685 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28691 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28692 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
28693 $as_echo_n "(cached) " >&6
28695 gcc_cv_as_sparc_ua_pcrel
=no
28696 if test x
$gcc_cv_as != x
; then
28703 .uaword %r_disp32(foo)' > conftest.s
28704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28706 (eval $ac_try) 2>&5
28708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28709 test $ac_status = 0; }; }
28711 if test x
$gcc_cv_ld != x \
28712 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28713 gcc_cv_as_sparc_ua_pcrel
=yes
28717 echo "configure: failed program was" >&5
28720 rm -f conftest.o conftest.s
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28724 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28725 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28727 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28731 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28732 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
28733 $as_echo_n "(cached) " >&6
28735 gcc_cv_as_sparc_ua_pcrel_hidden
=no
28736 if test x
$gcc_cv_as != x
; then
28740 .uaword %r_disp32(foo)
28741 .byte 0x32, 0x33, 0x34
28745 .skip 4' > conftest.s
28746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28753 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28754 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
28755 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
28756 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
28757 if $gcc_cv_objdump -R conftest
2> /dev
/null \
28758 |
grep 'DISP32' > /dev
/null
2>&1; then
28761 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
28766 echo "configure: failed program was" >&5
28769 rm -f conftest.o conftest.s
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28773 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28774 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28776 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28782 # unaligned pcrel relocs
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28785 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28786 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
28787 $as_echo_n "(cached) " >&6
28789 gcc_cv_as_sparc_offsetable_lo10
=no
28790 if test x
$gcc_cv_as != x
; then
28792 or %g1, %lo(ab) + 12, %g1
28793 or %g1, %lo(ab + 12), %g1' > conftest.s
28794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28796 (eval $ac_try) 2>&5
28798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28799 test $ac_status = 0; }; }
28801 if test x
$gcc_cv_objdump != x \
28802 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
28803 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
28804 gcc_cv_as_sparc_offsetable_lo10
=yes
28807 echo "configure: failed program was" >&5
28810 rm -f conftest.o conftest.s
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28814 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28815 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28817 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28823 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28824 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
28825 $as_echo_n "(cached) " >&6
28827 gcc_cv_as_sparc_fmaf
=no
28828 if test x
$gcc_cv_as != x
; then
28830 .register %g2, #scratch
28831 .register %g3, #scratch
28833 fmaddd %f0, %f2, %f4, %f6
28834 addxccc %g1, %g2, %g3
28835 fsrl32 %f2, %f4, %f8
28836 fnaddd %f10, %f12, %f14' > conftest.s
28837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28839 (eval $ac_try) 2>&5
28841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28842 test $ac_status = 0; }; }
28844 gcc_cv_as_sparc_fmaf
=yes
28846 echo "configure: failed program was" >&5
28849 rm -f conftest.o conftest.s
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28853 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28854 if test $gcc_cv_as_sparc_fmaf = yes; then
28856 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28862 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28863 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
28864 $as_echo_n "(cached) " >&6
28866 gcc_cv_as_sparc_sparc4
=no
28867 if test x
$gcc_cv_as != x
; then
28869 .register %g2, #scratch
28870 .register %g3, #scratch
28873 1: cwbneg %g2, %g3, 1f
28876 aes_kexpand0 %f4, %f6, %f8
28877 des_round %f38, %f40, %f42, %f44
28878 camellia_f %f54, %f56, %f58, %f60
28879 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28882 (eval $ac_try) 2>&5
28884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28885 test $ac_status = 0; }; }
28887 gcc_cv_as_sparc_sparc4
=yes
28889 echo "configure: failed program was" >&5
28892 rm -f conftest.o conftest.s
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28896 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28897 if test $gcc_cv_as_sparc_sparc4 = yes; then
28899 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28905 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28906 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
28907 $as_echo_n "(cached) " >&6
28909 gcc_cv_as_sparc_sparc5
=no
28910 if test x
$gcc_cv_as != x
; then
28912 .register %g2, #scratch
28913 .register %g3, #scratch
28915 subxc %g1, %g2, %g3
28916 fpadd8 %f0, %f2, %f4' > conftest.s
28917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28919 (eval $ac_try) 2>&5
28921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28922 test $ac_status = 0; }; }
28924 gcc_cv_as_sparc_sparc5
=yes
28926 echo "configure: failed program was" >&5
28929 rm -f conftest.o conftest.s
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28933 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28934 if test $gcc_cv_as_sparc_sparc5 = yes; then
28936 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28942 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28943 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
28944 $as_echo_n "(cached) " >&6
28946 gcc_cv_as_sparc_sparc6
=no
28947 if test x
$gcc_cv_as != x
; then
28949 .register %g2, #scratch
28950 .register %g3, #scratch
28953 fpsll64x %f0, %f2, %f4' > conftest.s
28954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28956 (eval $ac_try) 2>&5
28958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28959 test $ac_status = 0; }; }
28961 gcc_cv_as_sparc_sparc6
=yes
28963 echo "configure: failed program was" >&5
28966 rm -f conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28970 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28971 if test $gcc_cv_as_sparc_sparc6 = yes; then
28973 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28979 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28980 if ${gcc_cv_as_sparc_leon+:} false
; then :
28981 $as_echo_n "(cached) " >&6
28983 gcc_cv_as_sparc_leon
=no
28984 if test x
$gcc_cv_as != x
; then
28986 .register %g2, #scratch
28987 .register %g3, #scratch
28991 casa [%g2] 0xb, %g3, %g1' > conftest.s
28992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28994 (eval $ac_try) 2>&5
28996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28997 test $ac_status = 0; }; }
28999 gcc_cv_as_sparc_leon
=yes
29001 echo "configure: failed program was" >&5
29004 rm -f conftest.o conftest.s
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29008 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29009 if test $gcc_cv_as_sparc_leon = yes; then
29011 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29017 i
[34567]86-*-* | x86_64-
*-*)
29020 # Full C++ conformance when using a shared libstdc++-v3 requires some
29021 # support from the Cygwin DLL, which in more recent versions exports
29022 # wrappers to aid in interposing and redirecting operators new, delete,
29023 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29024 # are configuring for a version of Cygwin that exports the wrappers.
29025 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
29026 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29027 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
29028 gcc_ac_cygwin_dll_wrappers
=yes
29030 gcc_ac_cygwin_dll_wrappers
=no
29034 # Can't check presence of libc functions during cross-compile, so
29035 # we just have to assume we're building for an up-to-date target.
29036 gcc_ac_cygwin_dll_wrappers
=yes
29039 cat >>confdefs.h
<<_ACEOF
29040 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29045 cygwin
* | pe | mingw32
*)
29046 # Recent binutils allows the three-operand form of ".comm" on PE. This
29047 # definition is used unconditionally to initialise the default state of
29048 # the target option variable that governs usage of the feature.
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29050 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29051 if ${gcc_cv_as_comm_has_align+:} false
; then :
29052 $as_echo_n "(cached) " >&6
29054 gcc_cv_as_comm_has_align
=no
29055 if test x
$gcc_cv_as != x
; then
29056 $as_echo '.comm foo,1,32' > conftest.s
29057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29059 (eval $ac_try) 2>&5
29061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29062 test $ac_status = 0; }; }
29064 gcc_cv_as_comm_has_align
=yes
29066 echo "configure: failed program was" >&5
29069 rm -f conftest.o conftest.s
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29073 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29077 cat >>confdefs.h
<<_ACEOF
29078 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29081 # Used for DWARF 2 in PE
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29083 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29084 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
29085 $as_echo_n "(cached) " >&6
29087 gcc_cv_as_ix86_pe_secrel32
=no
29088 if test x
$gcc_cv_as != x
; then
29092 .secrel32 foo' > conftest.s
29093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29095 (eval $ac_try) 2>&5
29097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098 test $ac_status = 0; }; }
29100 if test x
$gcc_cv_ld != x \
29101 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
29102 gcc_cv_as_ix86_pe_secrel32
=yes
29106 echo "configure: failed program was" >&5
29109 rm -f conftest.o conftest.s
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29113 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29114 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29116 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29120 # Test if the assembler supports the extended form of the .section
29121 # directive that specifies section alignment. LTO support uses this,
29122 # but normally only after installation, so we warn but don't fail the
29123 # configure if LTO is enabled but the assembler does not support it.
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29125 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29126 if ${gcc_cv_as_section_has_align+:} false
; then :
29127 $as_echo_n "(cached) " >&6
29129 gcc_cv_as_section_has_align
=no
29130 if test x
$gcc_cv_as != x
; then
29131 $as_echo '.section lto_test,"dr0"' > conftest.s
29132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29134 (eval $ac_try) 2>&5
29136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29137 test $ac_status = 0; }; }
29139 gcc_cv_as_section_has_align
=yes
29141 echo "configure: failed program was" >&5
29144 rm -f conftest.o conftest.s
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29148 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29151 if test x
$gcc_cv_as_section_has_align != xyes
; then
29152 case ",$enable_languages," in
29154 { $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
29155 $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;}
29162 darwin2
* | darwin19
*)
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29164 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29165 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
29166 $as_echo_n "(cached) " >&6
29168 gcc_cv_as_mllvm_x86_pad_for_align
=no
29169 if test x
$gcc_cv_as != x
; then
29170 $as_echo '.text' > conftest.s
29171 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29173 (eval $ac_try) 2>&5
29175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29176 test $ac_status = 0; }; }
29178 gcc_cv_as_mllvm_x86_pad_for_align
=yes
29180 echo "configure: failed program was" >&5
29183 rm -f conftest.o conftest.s
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29187 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29188 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29190 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29198 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29199 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
29200 $as_echo_n "(cached) " >&6
29202 gcc_cv_as_ix86_xbrace_comment
=no
29203 if test x
$gcc_cv_as != x
; then
29204 $as_echo '.text' > conftest.s
29205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29207 (eval $ac_try) 2>&5
29209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29210 test $ac_status = 0; }; }
29212 gcc_cv_as_ix86_xbrace_comment
=yes
29214 echo "configure: failed program was" >&5
29217 rm -f conftest.o conftest.s
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29221 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29222 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29224 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29230 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29231 if ${gcc_cv_as_ix86_filds+:} false
; then :
29232 $as_echo_n "(cached) " >&6
29234 gcc_cv_as_ix86_filds
=no
29235 if test x
$gcc_cv_as != x
; then
29236 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29239 (eval $ac_try) 2>&5
29241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29242 test $ac_status = 0; }; }
29244 gcc_cv_as_ix86_filds
=yes
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_ix86_filds" >&5
29253 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29254 if test $gcc_cv_as_ix86_filds = yes; then
29256 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29262 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29263 if ${gcc_cv_as_ix86_fildq+:} false
; then :
29264 $as_echo_n "(cached) " >&6
29266 gcc_cv_as_ix86_fildq
=no
29267 if test x
$gcc_cv_as != x
; then
29268 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29271 (eval $ac_try) 2>&5
29273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29274 test $ac_status = 0; }; }
29276 gcc_cv_as_ix86_fildq
=yes
29278 echo "configure: failed program was" >&5
29281 rm -f conftest.o conftest.s
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29285 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29286 if test $gcc_cv_as_ix86_fildq = yes; then
29288 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29294 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29295 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
29296 $as_echo_n "(cached) " >&6
29298 gcc_cv_as_ix86_cmov_sun_syntax
=no
29299 if test x
$gcc_cv_as != x
; then
29300 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29303 (eval $ac_try) 2>&5
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; }
29308 gcc_cv_as_ix86_cmov_sun_syntax
=yes
29310 echo "configure: failed program was" >&5
29313 rm -f conftest.o conftest.s
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29317 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29318 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29320 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29326 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29327 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
29328 $as_echo_n "(cached) " >&6
29330 gcc_cv_as_ix86_ffreep
=no
29331 if test x
$gcc_cv_as != x
; then
29332 $as_echo 'ffreep %st(1)' > conftest.s
29333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_ix86_ffreep
=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_ix86_ffreep" >&5
29349 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29350 if test $gcc_cv_as_ix86_ffreep = yes; then
29352 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29358 $as_echo_n "checking assembler for .quad directive... " >&6; }
29359 if ${gcc_cv_as_ix86_quad+:} false
; then :
29360 $as_echo_n "(cached) " >&6
29362 gcc_cv_as_ix86_quad
=no
29363 if test x
$gcc_cv_as != x
; then
29364 $as_echo '.quad 0' > conftest.s
29365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29367 (eval $ac_try) 2>&5
29369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29370 test $ac_status = 0; }; }
29372 gcc_cv_as_ix86_quad
=yes
29374 echo "configure: failed program was" >&5
29377 rm -f conftest.o conftest.s
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29381 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29382 if test $gcc_cv_as_ix86_quad = yes; then
29384 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29390 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29391 if ${gcc_cv_as_ix86_sahf+:} false
; then :
29392 $as_echo_n "(cached) " >&6
29394 gcc_cv_as_ix86_sahf
=no
29395 if test x
$gcc_cv_as != x
; then
29398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29400 (eval $ac_try) 2>&5
29402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29403 test $ac_status = 0; }; }
29405 gcc_cv_as_ix86_sahf
=yes
29407 echo "configure: failed program was" >&5
29410 rm -f conftest.o conftest.s
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29414 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29415 if test $gcc_cv_as_ix86_sahf = yes; then
29417 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29423 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29424 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
29425 $as_echo_n "(cached) " >&6
29427 gcc_cv_as_ix86_interunit_movq
=no
29428 if test x
$gcc_cv_as != x
; then
29431 movq %rax, %xmm0' > conftest.s
29432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29434 (eval $ac_try) 2>&5
29436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29437 test $ac_status = 0; }; }
29439 gcc_cv_as_ix86_interunit_movq
=yes
29441 echo "configure: failed program was" >&5
29444 rm -f conftest.o conftest.s
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29448 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29452 cat >>confdefs.h
<<_ACEOF
29453 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29458 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29459 if ${gcc_cv_as_ix86_hle+:} false
; then :
29460 $as_echo_n "(cached) " >&6
29462 gcc_cv_as_ix86_hle
=no
29463 if test x
$gcc_cv_as != x
; then
29464 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29467 (eval $ac_try) 2>&5
29469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29470 test $ac_status = 0; }; }
29472 gcc_cv_as_ix86_hle
=yes
29474 echo "configure: failed program was" >&5
29477 rm -f conftest.o conftest.s
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29481 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29482 if test $gcc_cv_as_ix86_hle = yes; then
29484 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29490 $as_echo_n "checking assembler for swap suffix... " >&6; }
29491 if ${gcc_cv_as_ix86_swap+:} false
; then :
29492 $as_echo_n "(cached) " >&6
29494 gcc_cv_as_ix86_swap
=no
29495 if test x
$gcc_cv_as != x
; then
29496 $as_echo 'movl.s %esp, %ebp' > conftest.s
29497 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29499 (eval $ac_try) 2>&5
29501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29502 test $ac_status = 0; }; }
29504 gcc_cv_as_ix86_swap
=yes
29506 echo "configure: failed program was" >&5
29509 rm -f conftest.o conftest.s
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29513 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29514 if test $gcc_cv_as_ix86_swap = yes; then
29516 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29522 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29523 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
29524 $as_echo_n "(cached) " >&6
29526 gcc_cv_as_ix86_diff_sect_delta
=no
29527 if test x
$gcc_cv_as != x
; then
29528 $as_echo '.section .rodata
29534 .L2: nop' > conftest.s
29535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29537 (eval $ac_try) 2>&5
29539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29540 test $ac_status = 0; }; }
29542 gcc_cv_as_ix86_diff_sect_delta
=yes
29544 echo "configure: failed program was" >&5
29547 rm -f conftest.o conftest.s
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29551 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29552 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29554 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29560 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29561 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
29562 $as_echo_n "(cached) " >&6
29564 gcc_cv_as_ix86_rep_lock_prefix
=no
29565 if test x
$gcc_cv_as != x
; then
29566 $as_echo 'rep movsl
29571 lock addl %edi, (%eax,%esi)
29572 lock orl $0, (%esp)' > conftest.s
29573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29575 (eval $ac_try) 2>&5
29577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29578 test $ac_status = 0; }; }
29580 gcc_cv_as_ix86_rep_lock_prefix
=yes
29582 echo "configure: failed program was" >&5
29585 rm -f conftest.o conftest.s
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29589 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29590 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29592 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29598 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29599 if ${gcc_cv_as_ix86_ud2+:} false
; then :
29600 $as_echo_n "(cached) " >&6
29602 gcc_cv_as_ix86_ud2
=no
29603 if test x
$gcc_cv_as != x
; then
29604 $as_echo 'ud2' > conftest.s
29605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29607 (eval $ac_try) 2>&5
29609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29610 test $ac_status = 0; }; }
29612 gcc_cv_as_ix86_ud2
=yes
29614 echo "configure: failed program was" >&5
29617 rm -f conftest.o conftest.s
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29621 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29622 if test $gcc_cv_as_ix86_ud2 = yes; then
29624 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29629 # Enforce 32-bit output with gas and gld.
29630 if test x
$gas = xyes
; then
29631 as_ix86_gas_32_opt
="--32"
29633 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29634 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
29635 ld_ix86_gld_32_opt
="-melf_i386_sol2"
29637 ld_ix86_gld_32_opt
="-melf_i386"
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29642 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29643 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
29644 $as_echo_n "(cached) " >&6
29646 gcc_cv_as_ix86_tlsgdplt
=no
29647 if test x
$gcc_cv_as != x
; then
29648 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29651 (eval $ac_try) 2>&5
29653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29654 test $ac_status = 0; }; }
29656 if test x
$gcc_cv_ld != x \
29657 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29658 gcc_cv_as_ix86_tlsgdplt
=yes
29662 echo "configure: failed program was" >&5
29665 rm -f conftest.o conftest.s
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29669 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29670 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29672 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29678 .section .tdata,"aw'$tls_section_flag'",@progbits
29680 .section .text,"ax",@progbits
29681 call tls_ld@tlsldmplt'
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29684 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29685 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
29686 $as_echo_n "(cached) " >&6
29688 gcc_cv_as_ix86_tlsldmplt
=no
29689 if test x
$gcc_cv_as != x
; then
29690 $as_echo "$conftest_s" > conftest.s
29691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29693 (eval $ac_try) 2>&5
29695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29696 test $ac_status = 0; }; }
29698 if test x
$gcc_cv_ld != x \
29699 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29700 gcc_cv_as_ix86_tlsldmplt
=yes
29704 echo "configure: failed program was" >&5
29707 rm -f conftest.o conftest.s
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29711 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29715 cat >>confdefs.h
<<_ACEOF
29716 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29721 .section .text,"ax",@progbits
29723 .type _start, @function
29725 leal value@tlsldm(%ebx), %eax
29726 call ___tls_get_addr@plt
29728 .section .tdata,"aw'$tls_section_flag'",@progbits
29729 .type value, @object
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29732 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29733 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
29734 $as_echo_n "(cached) " >&6
29736 gcc_cv_as_ix86_tlsldm
=no
29737 if test x
$gcc_cv_as != x
; then
29738 $as_echo "$conftest_s" > conftest.s
29739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29741 (eval $ac_try) 2>&5
29743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29744 test $ac_status = 0; }; }
29746 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29747 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
29748 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
29749 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
29750 gcc_cv_as_ix86_tlsldm
=yes
29755 echo "configure: failed program was" >&5
29758 rm -f conftest.o conftest.s
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29762 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29766 cat >>confdefs.h
<<_ACEOF
29767 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29781 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29782 if ${gcc_cv_as_ix86_got32x+:} false
; then :
29783 $as_echo_n "(cached) " >&6
29785 gcc_cv_as_ix86_got32x
=no
29786 if test x
$gcc_cv_as != x
; then
29787 $as_echo "$conftest_s" > conftest.s
29788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; }
29795 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29796 && test x
$gcc_cv_readelf != x \
29797 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29798 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
29799 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29800 if $gcc_cv_objdump -dw conftest
2>&1 \
29801 |
grep 0xffffff > /dev
/null
2>&1; then
29802 gcc_cv_as_ix86_got32x
=no
29804 gcc_cv_as_ix86_got32x
=yes
29809 echo "configure: failed program was" >&5
29812 rm -f conftest.o conftest.s
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29816 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29820 cat >>confdefs.h
<<_ACEOF
29821 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29826 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29827 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
29828 $as_echo_n "(cached) " >&6
29830 gcc_cv_as_ix86_gotoff_in_data
=no
29831 if test x
$gcc_cv_as != x
; then
29836 .long .L0@GOTOFF' > conftest.s
29837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29839 (eval $ac_try) 2>&5
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; }
29844 gcc_cv_as_ix86_gotoff_in_data
=yes
29846 echo "configure: failed program was" >&5
29849 rm -f conftest.o conftest.s
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29853 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29857 cat >>confdefs.h
<<_ACEOF
29858 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29863 .section .text,"ax",@progbits
29865 .type _start, @function
29867 leal ld@tlsldm(%ecx), %eax
29868 call *___tls_get_addr@GOT(%ecx)
29869 leal gd@tlsgd(%ecx), %eax
29870 call *___tls_get_addr@GOT(%ecx)
29872 .section .tdata,"aw'$tls_section_flag'",@progbits
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29881 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29882 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
29883 $as_echo_n "(cached) " >&6
29885 gcc_cv_as_ix86_tls_get_addr_via_got
=no
29886 if test x
$gcc_cv_as != x
; then
29887 $as_echo "$conftest_s" > conftest.s
29888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29890 (eval $ac_try) 2>&5
29892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29893 test $ac_status = 0; }; }
29895 if test x
$gcc_cv_ld != x \
29896 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29897 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
29901 echo "configure: failed program was" >&5
29904 rm -f conftest.o conftest.s
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29908 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29912 cat >>confdefs.h
<<_ACEOF
29913 #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`
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29920 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29921 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
29922 $as_echo_n "(cached) " >&6
29924 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
29925 if test x
$gcc_cv_as != x
; then
29927 addl r15 = @ltoffx(x#), gp
29929 ld8.mov r16 = [r15], x#
29931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29933 (eval $ac_try) 2>&5
29935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936 test $ac_status = 0; }; }
29938 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
29940 echo "configure: failed program was" >&5
29943 rm -f conftest.o conftest.s
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29947 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29948 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29950 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29962 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29963 if ${gcc_cv_as_machine_directive+:} false
; then :
29964 $as_echo_n "(cached) " >&6
29966 gcc_cv_as_machine_directive
=no
29967 if test x
$gcc_cv_as != x
; then
29968 $as_echo ' .machine ppc7400' > conftest.s
29969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29971 (eval $ac_try) 2>&5
29973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29974 test $ac_status = 0; }; }
29976 gcc_cv_as_machine_directive
=yes
29978 echo "configure: failed program was" >&5
29981 rm -f conftest.o conftest.s
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29985 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29988 if test x
$gcc_cv_as_machine_directive != xyes
; then
29989 echo "*** This target requires an assembler supporting \".machine\"" >&2
29990 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
29991 test x
$build = x
$target && exit 1
29997 *-*-aix*) conftest_s
=' .machine "pwr5"
30000 *-*-darwin*) conftest_s
=' .text
30002 *) conftest_s
=' .machine power4
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30008 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30009 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
30010 $as_echo_n "(cached) " >&6
30012 gcc_cv_as_powerpc_mfcrf
=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_powerpc_mfcrf
=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_powerpc_mfcrf" >&5
30031 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30032 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30034 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30040 *-*-aix*) conftest_s
=' .machine "pwr10"
30043 *-*-darwin*) conftest_s
=' .text
30045 *) conftest_s
=' .machine power10
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30051 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30052 if ${gcc_cv_as_power10_htm+:} false
; then :
30053 $as_echo_n "(cached) " >&6
30055 gcc_cv_as_power10_htm
=no
30056 if test x
$gcc_cv_as != x
; then
30057 $as_echo "$conftest_s" > conftest.s
30058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30060 (eval $ac_try) 2>&5
30062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30063 test $ac_status = 0; }; }
30065 gcc_cv_as_power10_htm
=yes
30067 echo "configure: failed program was" >&5
30070 rm -f conftest.o conftest.s
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30074 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30075 if test $gcc_cv_as_power10_htm = yes; then
30077 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30083 *-*-aix*) conftest_s
=' .csect .text[PR]
30085 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30089 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30090 *) conftest_s
=' .text
30092 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30096 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30097 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
30098 $as_echo_n "(cached) " >&6
30100 gcc_cv_as_powerpc_rel16
=no
30101 if test x
$gcc_cv_as != x
; then
30102 $as_echo "$conftest_s" > conftest.s
30103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30105 (eval $ac_try) 2>&5
30107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30108 test $ac_status = 0; }; }
30110 gcc_cv_as_powerpc_rel16
=yes
30112 echo "configure: failed program was" >&5
30115 rm -f conftest.o conftest.s
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30119 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30120 if test $gcc_cv_as_powerpc_rel16 = yes; then
30122 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30128 *-*-aix*) conftest_s
=' .machine "pwr7"
30131 *) conftest_s
=' .machine power7
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30137 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30138 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
30139 $as_echo_n "(cached) " >&6
30141 gcc_cv_as_powerpc_vsx
=no
30142 if test x
$gcc_cv_as != x
; then
30143 $as_echo "$conftest_s" > conftest.s
30144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30146 (eval $ac_try) 2>&5
30148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149 test $ac_status = 0; }; }
30151 gcc_cv_as_powerpc_vsx
=yes
30153 echo "configure: failed program was" >&5
30156 rm -f conftest.o conftest.s
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30160 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30161 if test $gcc_cv_as_powerpc_vsx = yes; then
30163 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30169 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30170 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
30171 $as_echo_n "(cached) " >&6
30173 gcc_cv_as_powerpc_gnu_attribute
=no
30174 if test x
$gcc_cv_as != x
; then
30175 $as_echo '.gnu_attribute 4,1' > conftest.s
30176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30178 (eval $ac_try) 2>&5
30180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30181 test $ac_status = 0; }; }
30183 gcc_cv_as_powerpc_gnu_attribute
=yes
30185 echo "configure: failed program was" >&5
30188 rm -f conftest.o conftest.s
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30192 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30193 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30195 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30201 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30202 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
30203 $as_echo_n "(cached) " >&6
30205 gcc_cv_as_powerpc_entry_markers
=no
30206 if test x
$gcc_cv_as != x
; then
30207 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30210 (eval $ac_try) 2>&5
30212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30213 test $ac_status = 0; }; }
30215 gcc_cv_as_powerpc_entry_markers
=yes
30217 echo "configure: failed program was" >&5
30220 rm -f conftest.o conftest.s
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30224 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30225 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30227 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30233 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30234 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
30235 $as_echo_n "(cached) " >&6
30237 gcc_cv_as_powerpc_pltseq_markers
=no
30238 if test x
$gcc_cv_as != x
; then
30239 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30242 (eval $ac_try) 2>&5
30244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30245 test $ac_status = 0; }; }
30247 gcc_cv_as_powerpc_pltseq_markers
=yes
30249 echo "configure: failed program was" >&5
30252 rm -f conftest.o conftest.s
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30256 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30257 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30259 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30267 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30268 if ${gcc_cv_as_aix_ref+:} false
; then :
30269 $as_echo_n "(cached) " >&6
30271 gcc_cv_as_aix_ref
=no
30272 if test x
$gcc_cv_as != x
; then
30273 $as_echo ' .csect stuff[rw]
30279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30281 (eval $ac_try) 2>&5
30283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30284 test $ac_status = 0; }; }
30286 gcc_cv_as_aix_ref
=yes
30288 echo "configure: failed program was" >&5
30291 rm -f conftest.o conftest.s
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30295 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30296 if test $gcc_cv_as_aix_ref = yes; then
30298 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30304 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30305 if ${gcc_cv_as_aix_dwloc+:} false
; then :
30306 $as_echo_n "(cached) " >&6
30308 gcc_cv_as_aix_dwloc
=no
30309 if test x
$gcc_cv_as != x
; then
30310 $as_echo ' .dwsect 0xA0000
30314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30316 (eval $ac_try) 2>&5
30318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30319 test $ac_status = 0; }; }
30321 gcc_cv_as_aix_dwloc
=yes
30323 echo "configure: failed program was" >&5
30326 rm -f conftest.o conftest.s
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30330 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30331 if test $gcc_cv_as_aix_dwloc = yes; then
30333 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30343 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30344 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
30345 $as_echo_n "(cached) " >&6
30347 gcc_cv_as_mips_explicit_relocs
=no
30348 if test x
$gcc_cv_as != x
; then
30349 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30352 (eval $ac_try) 2>&5
30354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30355 test $ac_status = 0; }; }
30357 gcc_cv_as_mips_explicit_relocs
=yes
30359 echo "configure: failed program was" >&5
30362 rm -f conftest.o conftest.s
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30366 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30367 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30368 if test x
$target_cpu_default = x
30369 then target_cpu_default
=MASK_EXPLICIT_RELOCS
30370 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30376 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30377 if ${gcc_cv_as_mips_no_shared+:} false
; then :
30378 $as_echo_n "(cached) " >&6
30380 gcc_cv_as_mips_no_shared
=no
30381 if test x
$gcc_cv_as != x
; then
30382 $as_echo 'nop' > conftest.s
30383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30385 (eval $ac_try) 2>&5
30387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30388 test $ac_status = 0; }; }
30390 gcc_cv_as_mips_no_shared
=yes
30392 echo "configure: failed program was" >&5
30395 rm -f conftest.o conftest.s
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30399 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30400 if test $gcc_cv_as_mips_no_shared = yes; then
30402 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30408 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30409 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
30410 $as_echo_n "(cached) " >&6
30412 gcc_cv_as_mips_gnu_attribute
=no
30413 if test x
$gcc_cv_as != x
; then
30414 $as_echo '.gnu_attribute 4,1' > conftest.s
30415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30417 (eval $ac_try) 2>&5
30419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30420 test $ac_status = 0; }; }
30422 gcc_cv_as_mips_gnu_attribute
=yes
30424 echo "configure: failed program was" >&5
30427 rm -f conftest.o conftest.s
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30431 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30432 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30434 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30440 $as_echo_n "checking assembler for .module support... " >&6; }
30441 if ${gcc_cv_as_mips_dot_module+:} false
; then :
30442 $as_echo_n "(cached) " >&6
30444 gcc_cv_as_mips_dot_module
=no
30445 if test x
$gcc_cv_as != x
; then
30446 $as_echo '.module mips2
30447 .module fp=xx' > conftest.s
30448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30450 (eval $ac_try) 2>&5
30452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30453 test $ac_status = 0; }; }
30455 gcc_cv_as_mips_dot_module
=yes
30457 echo "configure: failed program was" >&5
30460 rm -f conftest.o conftest.s
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30464 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30465 if test $gcc_cv_as_mips_dot_module = yes; then
30467 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30471 if test x
$gcc_cv_as_mips_dot_module = xno \
30472 && test x
$with_fp_32 != x
; then
30473 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30477 $as_echo_n "checking assembler for .micromips support... " >&6; }
30478 if ${gcc_cv_as_micromips_support+:} false
; then :
30479 $as_echo_n "(cached) " >&6
30481 gcc_cv_as_micromips_support
=no
30482 if test x
$gcc_cv_as != x
; then
30483 $as_echo '.set micromips' > conftest.s
30484 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30486 (eval $ac_try) 2>&5
30488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30489 test $ac_status = 0; }; }
30491 gcc_cv_as_micromips_support
=yes
30493 echo "configure: failed program was" >&5
30496 rm -f conftest.o conftest.s
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30500 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30501 if test $gcc_cv_as_micromips_support = yes; then
30503 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30509 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30510 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
30511 $as_echo_n "(cached) " >&6
30513 gcc_cv_as_mips_dtprelword
=no
30514 if test x
$gcc_cv_as != x
; then
30515 $as_echo '.section .tdata,"awT",@progbits
30519 .dtprelword x+0x8000' > conftest.s
30520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30522 (eval $ac_try) 2>&5
30524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30525 test $ac_status = 0; }; }
30527 gcc_cv_as_mips_dtprelword
=yes
30529 echo "configure: failed program was" >&5
30532 rm -f conftest.o conftest.s
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30536 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30537 if test $gcc_cv_as_mips_dtprelword = yes; then
30539 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30545 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30546 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
30547 $as_echo_n "(cached) " >&6
30549 gcc_cv_as_mips_dspr1_mult
=no
30550 if test x
$gcc_cv_as != x
; then
30551 $as_echo ' .set mips32r2
30559 multu $ac3,$4,$5' > conftest.s
30560 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30562 (eval $ac_try) 2>&5
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; }
30567 gcc_cv_as_mips_dspr1_mult
=yes
30569 echo "configure: failed program was" >&5
30572 rm -f conftest.o conftest.s
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30576 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30577 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30579 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30585 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30586 gcc_cv_as_ld_jalr_reloc
=no
30587 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30588 if test $in_tree_ld = yes ; then
30589 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 \
30590 && test $in_tree_ld_is_elf = yes; then
30591 gcc_cv_as_ld_jalr_reloc
=yes
30593 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30594 echo ' .ent x' > conftest.s
30595 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30596 echo ' lw $25,%call16(y)($28)' >> conftest.s
30597 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30598 echo '1: jalr $25' >> conftest.s
30599 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30600 echo '1: jalr $25' >> conftest.s
30601 echo ' .end x' >> conftest.s
30602 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
30603 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
30604 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
30605 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
30606 gcc_cv_as_ld_jalr_reloc
=yes
30612 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30613 if test x
$target_cpu_default = x
; then
30614 target_cpu_default
=MASK_RELAX_PIC_CALLS
30616 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30620 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30623 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30624 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
30625 $as_echo_n "(cached) " >&6
30627 gcc_cv_ld_mips_personality_relaxation
=no
30628 if test $in_tree_ld = yes ; then
30629 if test "$gcc_cv_gld_major_version" -eq 2 \
30630 -a "$gcc_cv_gld_minor_version" -ge 21 \
30631 -o "$gcc_cv_gld_major_version" -gt 2; then
30632 gcc_cv_ld_mips_personality_relaxation
=yes
30634 elif test x
$gcc_cv_as != x \
30635 -a x
$gcc_cv_ld != x \
30636 -a x
$gcc_cv_readelf != x
; then
30637 cat > conftest.s
<<EOF
30639 .cfi_personality 0x80,indirect_ptr
30646 .section .data,"aw",@progbits
30650 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
30651 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
30652 if $gcc_cv_readelf -d conftest
2>&1 \
30653 |
grep TEXTREL
> /dev
/null
2>&1; then
30655 elif $gcc_cv_readelf --relocs conftest
2>&1 \
30656 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
30659 gcc_cv_ld_mips_personality_relaxation
=yes
30663 rm -f conftest.s conftest.o conftest
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30666 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30667 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
30669 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30674 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30675 if ${gcc_cv_as_mips_nan+:} false
; then :
30676 $as_echo_n "(cached) " >&6
30678 gcc_cv_as_mips_nan
=no
30679 if test x
$gcc_cv_as != x
; then
30680 $as_echo '' > conftest.s
30681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30683 (eval $ac_try) 2>&5
30685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30686 test $ac_status = 0; }; }
30688 gcc_cv_as_mips_nan
=yes
30690 echo "configure: failed program was" >&5
30693 rm -f conftest.o conftest.s
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30697 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30698 if test $gcc_cv_as_mips_nan = yes; then
30700 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30704 if test x
$gcc_cv_as_mips_nan = xno \
30705 && test x
$with_nan != x
; then
30706 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30710 # Earlier GAS versions generically support .gnu_attribute, but the
30711 # msp430 assembler will not do anything with it.
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30713 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30714 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
30715 $as_echo_n "(cached) " >&6
30717 gcc_cv_as_msp430_gnu_attribute
=no
30718 if test x
$gcc_cv_as != x
; then
30719 $as_echo '.gnu_attribute 4,1' > conftest.s
30720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30722 (eval $ac_try) 2>&5
30724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30725 test $ac_status = 0; }; }
30727 gcc_cv_as_msp430_gnu_attribute
=yes
30729 echo "configure: failed program was" >&5
30732 rm -f conftest.o conftest.s
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30736 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30737 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30739 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30744 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30745 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
30746 $as_echo_n "(cached) " >&6
30748 gcc_cv_as_msp430_mspabi_attribute
=no
30749 if test x
$gcc_cv_as != x
; then
30750 $as_echo '.mspabi_attribute 4,2' > conftest.s
30751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30753 (eval $ac_try) 2>&5
30755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30756 test $ac_status = 0; }; }
30758 gcc_cv_as_msp430_mspabi_attribute
=yes
30760 echo "configure: failed program was" >&5
30763 rm -f conftest.o conftest.s
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30767 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30768 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30770 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30774 if test x
$enable_newlib_nano_formatted_io = xyes
; then
30776 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30781 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30782 # syntax that is documented in the ABI specification.
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30784 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30785 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
30786 $as_echo_n "(cached) " >&6
30788 gcc_cv_as_nios2_gotoff_relocation
=no
30789 if test x
$gcc_cv_as != x
; then
30790 $as_echo ' .extern foo
30792 .long %gotoff(foo)' > conftest.s
30793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30795 (eval $ac_try) 2>&5
30797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30798 test $ac_status = 0; }; }
30800 gcc_cv_as_nios2_gotoff_relocation
=yes
30802 echo "configure: failed program was" >&5
30805 rm -f conftest.o conftest.s
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30809 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30810 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30812 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30819 $as_echo_n "checking assembler for .attribute support... " >&6; }
30820 if ${gcc_cv_as_riscv_attribute+:} false
; then :
30821 $as_echo_n "(cached) " >&6
30823 gcc_cv_as_riscv_attribute
=no
30824 if test x
$gcc_cv_as != x
; then
30825 $as_echo '.attribute stack_align,4' > conftest.s
30826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30828 (eval $ac_try) 2>&5
30830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30831 test $ac_status = 0; }; }
30833 gcc_cv_as_riscv_attribute
=yes
30835 echo "configure: failed program was" >&5
30838 rm -f conftest.o conftest.s
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30842 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30843 if test $gcc_cv_as_riscv_attribute = yes; then
30845 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30850 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30851 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
30852 $as_echo_n "(cached) " >&6
30854 gcc_cv_as_riscv_isa_spec
=no
30855 if test x
$gcc_cv_as != x
; then
30856 $as_echo '' > conftest.s
30857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30859 (eval $ac_try) 2>&5
30861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30862 test $ac_status = 0; }; }
30864 gcc_cv_as_riscv_isa_spec
=yes
30866 echo "configure: failed program was" >&5
30869 rm -f conftest.o conftest.s
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30873 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30874 if test $gcc_cv_as_riscv_isa_spec = yes; then
30876 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30881 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30882 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
30883 $as_echo_n "(cached) " >&6
30885 gcc_cv_as_riscv_march_zifencei
=no
30886 if test x
$gcc_cv_as != x
; then
30887 $as_echo '' > conftest.s
30888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30890 (eval $ac_try) 2>&5
30892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30893 test $ac_status = 0; }; }
30895 gcc_cv_as_riscv_march_zifencei
=yes
30897 echo "configure: failed program was" >&5
30900 rm -f conftest.o conftest.s
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30904 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30905 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30907 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30914 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30915 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
30916 $as_echo_n "(cached) " >&6
30918 gcc_cv_as_loongarch_dtprelword
=no
30919 if test x
$gcc_cv_as != x
; then
30920 $as_echo '' > conftest.s
30921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30923 (eval $ac_try) 2>&5
30925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30926 test $ac_status = 0; }; }
30928 .section .tdata
,"awT",@progbits
30932 .dtprelword x
+0x8000
30934 echo "configure: failed program was" >&5
30937 rm -f conftest.o conftest.s
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30941 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30943 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30945 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30949 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30950 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
30951 $as_echo_n "(cached) " >&6
30953 gcc_cv_as_loongarch_explicit_relocs
=no
30954 if test x
$gcc_cv_as != x
; then
30955 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30956 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30958 (eval $ac_try) 2>&5
30960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30961 test $ac_status = 0; }; }
30963 gcc_cv_as_loongarch_explicit_relocs
=yes
30965 echo "configure: failed program was" >&5
30968 rm -f conftest.o conftest.s
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30972 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30973 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30975 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30980 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30981 if ${gcc_cv_as_loongarch_call36+:} false
; then :
30982 $as_echo_n "(cached) " >&6
30984 gcc_cv_as_loongarch_call36
=no
30985 if test x
$gcc_cv_as != x
; then
30986 $as_echo 'pcaddu18i $r1, %call36(a)
30987 jirl $r1, $r1, 0' > conftest.s
30988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30990 (eval $ac_try) 2>&5
30992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30993 test $ac_status = 0; }; }
30995 gcc_cv_as_loongarch_call36
=yes
30997 echo "configure: failed program was" >&5
31000 rm -f conftest.o conftest.s
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31004 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31005 if test $gcc_cv_as_loongarch_call36 = yes; then
31007 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31012 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31013 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
31014 $as_echo_n "(cached) " >&6
31016 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
31017 if test x
$gcc_cv_as != x
; then
31018 $as_echo '.cfi_startproc
31019 .cfi_personality 0x9b,a
31021 .cfi_endproc' > conftest.s
31022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31024 (eval $ac_try) 2>&5
31026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31027 test $ac_status = 0; }; }
31029 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
31031 echo "configure: failed program was" >&5
31034 rm -f conftest.o conftest.s
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31038 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31039 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31041 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31046 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31047 if ${gcc_cv_as_loongarch_relax+:} false
; then :
31048 $as_echo_n "(cached) " >&6
31050 gcc_cv_as_loongarch_relax
=no
31051 if test x
$gcc_cv_as != x
; then
31052 $as_echo '.text' > conftest.s
31053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31055 (eval $ac_try) 2>&5
31057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31058 test $ac_status = 0; }; }
31060 gcc_cv_as_loongarch_relax
=yes
31062 echo "configure: failed program was" >&5
31065 rm -f conftest.o conftest.s
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31069 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31070 if test $gcc_cv_as_loongarch_relax = yes; then
31072 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31077 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31078 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false
; then :
31079 $as_echo_n "(cached) " >&6
31081 gcc_cv_as_loongarch_cond_branch_relax
=no
31082 if test x
$gcc_cv_as != x
; then
31087 beq $a0,$a1,a' > conftest.s
31088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31090 (eval $ac_try) 2>&5
31092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31093 test $ac_status = 0; }; }
31095 gcc_cv_as_loongarch_cond_branch_relax
=yes
31097 echo "configure: failed program was" >&5
31100 rm -f conftest.o conftest.s
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31104 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31105 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31107 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31114 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31115 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
31116 $as_echo_n "(cached) " >&6
31118 gcc_cv_as_s390_gnu_attribute
=no
31119 if test x
$gcc_cv_as != x
; then
31120 $as_echo '.gnu_attribute 8,1' > conftest.s
31121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31123 (eval $ac_try) 2>&5
31125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31126 test $ac_status = 0; }; }
31128 gcc_cv_as_s390_gnu_attribute
=yes
31130 echo "configure: failed program was" >&5
31133 rm -f conftest.o conftest.s
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31137 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31138 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31140 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31145 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31146 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
31147 $as_echo_n "(cached) " >&6
31149 gcc_cv_as_s390_machine_machinemode
=no
31150 if test x
$gcc_cv_as != x
; then
31151 $as_echo ' .machinemode push
31154 .machine pop' > conftest.s
31155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31157 (eval $ac_try) 2>&5
31159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31160 test $ac_status = 0; }; }
31162 gcc_cv_as_s390_machine_machinemode
=yes
31164 echo "configure: failed program was" >&5
31167 rm -f conftest.o conftest.s
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31171 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31172 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31174 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31179 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31180 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
31181 $as_echo_n "(cached) " >&6
31183 gcc_cv_as_s390_architecture_modifiers
=no
31184 if test x
$gcc_cv_as != x
; then
31185 $as_echo ' .machine z13+vx ' > conftest.s
31186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31188 (eval $ac_try) 2>&5
31190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31191 test $ac_status = 0; }; }
31193 gcc_cv_as_s390_architecture_modifiers
=yes
31195 echo "configure: failed program was" >&5
31198 rm -f conftest.o conftest.s
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31202 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31203 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31205 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31210 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31211 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
31212 $as_echo_n "(cached) " >&6
31214 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
31215 if test x
$gcc_cv_as != x
; then
31216 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31219 (eval $ac_try) 2>&5
31221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31222 test $ac_status = 0; }; }
31224 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
31226 echo "configure: failed program was" >&5
31229 rm -f conftest.o conftest.s
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31233 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31234 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31236 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31241 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31242 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
31243 $as_echo_n "(cached) " >&6
31245 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
31246 if test x
$gcc_cv_as != x
; then
31247 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31250 (eval $ac_try) 2>&5
31252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31253 test $ac_status = 0; }; }
31255 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
31257 echo "configure: failed program was" >&5
31260 rm -f conftest.o conftest.s
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31264 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31265 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31267 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31275 # Mips, LoongArch and HP-UX need the GNU assembler.
31276 # Linux on IA64 might be able to use the Intel assembler.
31279 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
31280 if test x
$gas_flag = xyes \
31281 ||
test x
"$host" != x
"$build" \
31282 ||
test ! -x "$gcc_cv_as" \
31283 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
31286 echo "*** This configuration requires the GNU assembler" >&2
31292 # AMD GCN needs the LLVM assembler and linker.
31293 # Test that LLVM is at least 13.0.1.
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31297 $as_echo_n "checking llvm assembler version... " >&6; }
31298 gcc_cv_as_version
="unknown"
31299 if test x
$gcc_cv_as != x
; then
31300 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31301 case "$gcc_cv_as_version" in
31302 13.0.
[1-9]*) ;; # 13.0.1+
31303 13.
[1-9]*) ;; # 13.1+
31304 1[4-9]*) ;; # 14..19
31305 [2-9][0-9]*) ;; # 20..99
31306 [1-9][0-9][0-9]*) ;; # 100+
31307 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
31308 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31312 $as_echo "$gcc_cv_as_version, ok" >&6; }
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31319 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31320 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
31321 $as_echo_n "(cached) " >&6
31323 gcc_cv_as_arm_option_extensions
=no
31324 if test x
$gcc_cv_as != x
; then
31328 vmov.f32 s0, s1' > conftest.s
31329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31331 (eval $ac_try) 2>&5
31333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31334 test $ac_status = 0; }; }
31336 gcc_cv_as_arm_option_extensions
=yes
31338 echo "configure: failed program was" >&5
31341 rm -f conftest.o conftest.s
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31345 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31346 if test $gcc_cv_as_arm_option_extensions = yes; then
31348 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31354 # ??? Not all targets support dwarf2 debug_line, even within a version
31355 # of gas. Moreover, we need to emit a valid instruction to trigger any
31356 # info to the output file. So, as supported targets are added to gas 2.11,
31357 # add some instruction here to (also) show we expect this might work.
31358 # ??? Once 2.11 is released, probably need to add first known working
31359 # version to the per-target configury.
31360 case "$cpu_type" in
31361 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31362 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31363 | visium | xstormy16 | xtensa
)
31373 if test x
"$insn" != x
; then
31375 .file 1 \"conftest.s\"
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31379 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31380 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
31381 $as_echo_n "(cached) " >&6
31383 gcc_cv_as_dwarf2_debug_line
=no
31384 if test x
$gcc_cv_as != x
; then
31385 $as_echo "$conftest_s" > conftest.s
31386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31388 (eval $ac_try) 2>&5
31390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31391 test $ac_status = 0; }; }
31393 if test x
$gcc_cv_objdump != x \
31394 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
31395 |
grep debug_line
> /dev
/null
2>&1; then
31396 gcc_cv_as_dwarf2_debug_line
=yes
31397 elif test x
$gcc_cv_otool != x \
31398 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
31399 |
grep debug_line
> /dev
/null
2>&1; then
31400 gcc_cv_as_dwarf2_debug_line
=yes
31403 echo "configure: failed program was" >&5
31406 rm -f conftest.o conftest.s
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31410 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31414 # The .debug_line file table must be in the exact order that
31415 # we specified the files, since these indices are also used
31416 # by DW_AT_decl_file. Approximate this test by testing if
31417 # the assembler bitches if the same index is assigned twice.
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31419 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31420 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
31421 $as_echo_n "(cached) " >&6
31423 gcc_cv_as_dwarf2_file_buggy
=no
31424 if test x
$gcc_cv_as != x
; then
31425 $as_echo ' .file 1 "foo.s"
31426 .file 1 "bar.s"' > conftest.s
31427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31429 (eval $ac_try) 2>&5
31431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31432 test $ac_status = 0; }; }
31434 gcc_cv_as_dwarf2_file_buggy
=yes
31436 echo "configure: failed program was" >&5
31439 rm -f conftest.o conftest.s
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31443 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31447 if test $gcc_cv_as_dwarf2_debug_line = yes \
31448 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
31450 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31453 if test $gcc_cv_as_leb128 = yes; then
31455 .file 1 \"conftest.s\"
31456 .loc 1 3 0 view .LVU1
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31463 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31464 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
31465 $as_echo_n "(cached) " >&6
31467 gcc_cv_as_dwarf2_debug_view
=no
31468 if test x
$gcc_cv_as != x
; then
31469 $as_echo "$conftest_s" > conftest.s
31470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31472 (eval $ac_try) 2>&5
31474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31475 test $ac_status = 0; }; }
31477 gcc_cv_as_dwarf2_debug_view
=yes
31479 echo "configure: failed program was" >&5
31482 rm -f conftest.o conftest.s
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31486 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31487 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31489 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31497 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31498 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
31499 $as_echo_n "(cached) " >&6
31501 gcc_cv_as_gdwarf2_flag
=no
31502 if test x
$gcc_cv_as != x
; then
31503 $as_echo "$insn" > conftest.s
31504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31506 (eval $ac_try) 2>&5
31508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31509 test $ac_status = 0; }; }
31511 gcc_cv_as_gdwarf2_flag
=yes
31513 echo "configure: failed program was" >&5
31516 rm -f conftest.o conftest.s
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31520 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31521 if test $gcc_cv_as_gdwarf2_flag = yes; then
31523 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31529 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31530 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
31531 $as_echo_n "(cached) " >&6
31533 gcc_cv_as_gdwarf_5_flag
=no
31534 if test x
$gcc_cv_as != x
; then
31535 $as_echo "$insn" > conftest.s
31536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31538 (eval $ac_try) 2>&5
31540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31541 test $ac_status = 0; }; }
31543 if test x
$gcc_cv_objdump != x \
31544 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
31545 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
31546 gcc_cv_as_gdwarf_5_flag
=yes;
31549 echo "configure: failed program was" >&5
31552 rm -f conftest.o conftest.s
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31556 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31557 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31559 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31565 win32 | pe | cygwin
* | mingw32
*)
31566 section_flags
=\"dr
\"
31567 function_type
=".def foo; .scl 2; .type 32; .endef"
31570 section_flags
=\"\",%progbits
31571 function_type
=".type foo, %function"
31572 function_size
=".size foo, .-foo";;
31574 dwarf4_debug_info_size
=0x46
31575 dwarf4_high_pc_form
=7
31576 dwarf4_debug_aranges_size
=0x2c
31578 for dwarf4_addr_size
in 8 4; do
31594 .section .debug_info,$section_flags
31596 .4byte $dwarf4_debug_info_size
31598 .4byte .Ldebug_abbrev0
31599 .byte 0x$dwarf4_addr_size
31601 .ascii \"GNU C17\\0\"
31605 .${dwarf4_addr_size}byte .Ltext0
31606 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31607 .4byte .Ldebug_line0
31613 .${dwarf4_addr_size}byte .LFB0
31614 .${dwarf4_addr_size}byte .LFE0-.LFB0
31618 .section .debug_abbrev,$section_flags
31634 .byte 0x$dwarf4_high_pc_form
31655 .byte 0x$dwarf4_high_pc_form
31661 .section .debug_aranges,$section_flags
31662 .4byte $dwarf4_debug_aranges_size
31664 .4byte .Ldebug_info0
31669 .${dwarf4_addr_size}byte .Ltext0
31670 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31671 .${dwarf4_addr_size}byte 0
31672 .${dwarf4_addr_size}byte 0
31673 .section .debug_line,$section_flags
31675 .4byte .LELT0-.LSLT0
31678 .4byte .LELTP0-.LASLTP0
31706 .byte 0x$dwarf4_line_sz
31708 .${dwarf4_addr_size}byte .LM1
31713 .byte 0x$dwarf4_line_sz
31715 .${dwarf4_addr_size}byte .LM2
31720 .byte 0x$dwarf4_line_sz
31722 .${dwarf4_addr_size}byte .Letext0
31727 .section .debug_str,$section_flags
31731 if test $dwarf4_addr_size = 4; then
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31733 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31734 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
31735 $as_echo_n "(cached) " >&6
31737 gcc_cv_as_debug_line_32_flag
=no
31738 if test x
$gcc_cv_as != x
; then
31739 $as_echo "$conftest_s" > conftest.s
31740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31742 (eval $ac_try) 2>&5
31744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31745 test $ac_status = 0; }; }
31747 gcc_cv_as_debug_line_32_flag
=yes
31749 echo "configure: failed program was" >&5
31752 rm -f conftest.o conftest.s
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31756 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31757 if test $gcc_cv_as_debug_line_32_flag = yes; then
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31763 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31764 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
31765 $as_echo_n "(cached) " >&6
31767 gcc_cv_as_debug_line_64_flag
=no
31768 if test x
$gcc_cv_as != x
; then
31769 $as_echo "$conftest_s" > conftest.s
31770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31772 (eval $ac_try) 2>&5
31774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775 test $ac_status = 0; }; }
31777 gcc_cv_as_debug_line_64_flag
=yes
31779 echo "configure: failed program was" >&5
31782 rm -f conftest.o conftest.s
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31786 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31787 if test $gcc_cv_as_debug_line_64_flag = yes; then
31792 if test $dwarf4_success = yes; then
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31795 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31796 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
31797 $as_echo_n "(cached) " >&6
31799 gcc_cv_as_dwarf_4_debug_line_flag
=no
31800 if test x
$gcc_cv_as != x
; then
31801 $as_echo "$conftest_s" > conftest.s
31802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31804 (eval $ac_try) 2>&5
31806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31807 test $ac_status = 0; }; }
31809 gcc_cv_as_dwarf_4_debug_line_flag
=yes
31811 echo "configure: failed program was" >&5
31814 rm -f conftest.o conftest.s
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31818 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31819 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31825 dwarf4_debug_info_size
=0x36
31826 dwarf4_high_pc_form
=6
31827 dwarf4_debug_aranges_size
=0x1c
31831 if test $dwarf4_success = yes; then
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31850 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31851 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
31852 $as_echo_n "(cached) " >&6
31854 gcc_cv_as_dwarf_4_app_flag
=no
31855 if test x
$gcc_cv_as != x
; then
31856 $as_echo "$conftest_s" > conftest.s
31857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31859 (eval $ac_try) 2>&5
31861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31862 test $ac_status = 0; }; }
31864 gcc_cv_as_dwarf_4_app_flag
=yes
31866 echo "configure: failed program was" >&5
31869 rm -f conftest.o conftest.s
31872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31873 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31874 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31880 if test $dwarf4_success = yes; then
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31891 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31892 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
31893 $as_echo_n "(cached) " >&6
31895 gcc_cv_as_working_gdwarf_n_flag
=no
31896 if test x
$gcc_cv_as != x
; then
31897 $as_echo "$conftest_s" > conftest.s
31898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31900 (eval $ac_try) 2>&5
31902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31903 test $ac_status = 0; }; }
31905 if test x
$gcc_cv_objdump != x \
31906 && $gcc_cv_objdump -W conftest.o
2>&1 \
31907 |
grep conftest.s
> /dev
/null
2>&1; then
31908 gcc_cv_as_working_gdwarf_n_flag
=no
31910 gcc_cv_as_working_gdwarf_n_flag
=yes
31913 echo "configure: failed program was" >&5
31916 rm -f conftest.o conftest.s
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31920 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31923 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31925 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31931 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31932 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
31933 $as_echo_n "(cached) " >&6
31935 gcc_cv_as_debug_prefix_map_flag
=no
31936 if test x
$gcc_cv_as != x
; then
31937 $as_echo "$insn" > conftest.s
31938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31940 (eval $ac_try) 2>&5
31942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31943 test $ac_status = 0; }; }
31945 gcc_cv_as_debug_prefix_map_flag
=yes
31947 echo "configure: failed program was" >&5
31950 rm -f conftest.o conftest.s
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31954 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31955 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31957 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
31964 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
31965 if ${gcc_cv_as_compress_debug+:} false
; then :
31966 $as_echo_n "(cached) " >&6
31968 gcc_cv_as_compress_debug
=no
31969 if test x
$gcc_cv_as != x
; then
31970 $as_echo '' > conftest.s
31971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31973 (eval $ac_try) 2>&5
31975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31976 test $ac_status = 0; }; }
31978 # gas compiled without zlib cannot compress debug sections and warns
31979 # about it, but still exits successfully. So check for this, too.
31980 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
31982 gcc_cv_as_compress_debug
=0
31983 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
31985 gcc_cv_as_compress_debug
=1
31986 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
31987 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
31988 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
31989 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
31991 gcc_cv_as_compress_debug
=2
31994 gcc_cv_as_compress_debug
=0
31997 echo "configure: failed program was" >&5
32000 rm -f conftest.o conftest.s
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32004 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32008 cat >>confdefs.h
<<_ACEOF
32009 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32013 cat >>confdefs.h
<<_ACEOF
32014 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32018 cat >>confdefs.h
<<_ACEOF
32019 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32024 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32025 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
32026 $as_echo_n "(cached) " >&6
32028 gcc_cv_as_lcomm_with_alignment
=no
32029 if test x
$gcc_cv_as != x
; then
32030 $as_echo '.lcomm bar,4,16' > conftest.s
32031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32033 (eval $ac_try) 2>&5
32035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32036 test $ac_status = 0; }; }
32038 gcc_cv_as_lcomm_with_alignment
=yes
32040 echo "configure: failed program was" >&5
32043 rm -f conftest.o conftest.s
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32047 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32048 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32050 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32055 if test x
$with_sysroot = x
&& test x
$host = x
$target \
32056 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32057 && test "$prefix" != "NONE"; then
32059 cat >>confdefs.h
<<_ACEOF
32060 #define PREFIX_INCLUDE_DIR "$prefix/include"
32065 # Determine the version of glibc, if any, used on the target.
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32067 $as_echo_n "checking for target glibc version... " >&6; }
32069 # Check whether --with-glibc-version was given.
32070 if test "${with_glibc_version+set}" = set; then :
32071 withval
=$with_glibc_version;
32072 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32073 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32074 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32076 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
32080 glibc_version_major
=0
32081 glibc_version_minor
=0
32082 if test -f $target_header_dir/features.h \
32083 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32084 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32085 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32086 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32091 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32093 cat >>confdefs.h
<<_ACEOF
32094 #define TARGET_GLIBC_MAJOR $glibc_version_major
32098 cat >>confdefs.h
<<_ACEOF
32099 #define TARGET_GLIBC_MINOR $glibc_version_minor
32103 # Check whether --enable-gnu-unique-object was given.
32104 if test "${enable_gnu_unique_object+set}" = set; then :
32105 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32107 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32108 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32112 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32113 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
32114 $as_echo_n "(cached) " >&6
32116 gcc_cv_as_gnu_unique_object
=no
32117 if test x
$gcc_cv_as != x
; then
32118 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32121 (eval $ac_try) 2>&5
32123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32124 test $ac_status = 0; }; }
32126 gcc_cv_as_gnu_unique_object
=yes
32128 echo "configure: failed program was" >&5
32131 rm -f conftest.o conftest.s
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32135 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32136 if test $gcc_cv_as_gnu_unique_object = yes; then
32137 # We need to unquote above to to use the definition from config.gcc.
32138 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32140 if test $glibc_version_major -gt 2 \
32141 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32142 enable_gnu_unique_object
=yes
32149 if test x
$enable_gnu_unique_object = xyes
; then
32151 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32156 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32157 if ${gcc_cv_as_line_zero+:} false
; then :
32158 $as_echo_n "(cached) " >&6
32160 gcc_cv_as_line_zero
=no
32161 if test "x$gcc_cv_as" != x
; then
32162 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32163 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32165 (eval $ac_try) 2>&5
32167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32168 test $ac_status = 0; }; } &&
32169 test "x`cat conftest.out`" = x
32171 gcc_cv_as_line_zero
=yes
32173 echo "configure: failed program was" >&5
32175 echo "configure: error output was" >&5
32176 cat conftest.out
>&5
32178 rm -f conftest.o conftest.s conftest.out
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32182 $as_echo "$gcc_cv_as_line_zero" >&6; }
32183 if test "x$gcc_cv_as_line_zero" = xyes
; then
32185 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32190 $as_echo_n "checking support for thin archives... " >&6; }
32191 thin_archive_support
=no
32192 echo 'int main (void) { return 0; }' > conftest.c
32193 if ($AR --version |
sed 1q |
grep "GNU ar" \
32194 && $CC $CFLAGS -c conftest.c \
32195 && $AR rcT conftest.a conftest.o \
32196 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
32197 thin_archive_support
=yes
32199 rm -f conftest.c conftest.o conftest.a conftest
32200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32201 $as_echo "$thin_archive_support" >&6; }
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32205 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32206 gcc_cv_ld_eh_frame_hdr
=no
32207 if test $in_tree_ld = yes ; then
32208 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 \
32209 && test $in_tree_ld_is_elf = yes; then
32210 gcc_cv_ld_eh_frame_hdr
=yes
32212 elif test x
$gcc_cv_ld != x
; then
32213 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32214 # Check if linker supports --eh-frame-hdr option
32215 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
32216 gcc_cv_ld_eh_frame_hdr
=yes
32221 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32222 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
32223 gcc_cv_ld_eh_frame_hdr
=yes
32230 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
32232 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32236 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32239 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32240 gcc_cv_ld_eh_frame_ciev3
=no
32241 if test $in_tree_ld = yes ; then
32242 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 \
32243 && test $in_tree_ld_is_elf = yes; then
32244 gcc_cv_ld_eh_frame_ciev3
=yes
32246 elif test x
$gcc_cv_ld != x
; then
32247 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32248 gcc_cv_ld_eh_frame_ciev3
=yes
32249 if test 0"$ld_date" -lt 20040513; then
32250 if test -n "$ld_date"; then
32251 # If there was date string, but was earlier than 2004-05-13, fail
32252 gcc_cv_ld_eh_frame_ciev3
=no
32253 elif test "$ld_vers_major" -lt 2; then
32254 gcc_cv_ld_eh_frame_ciev3
=no
32255 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32256 gcc_cv_ld_eh_frame_ciev3
=no
32262 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32263 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
32264 gcc_cv_ld_eh_frame_ciev3
=yes
32271 cat >>confdefs.h
<<_ACEOF
32272 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32276 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32279 $as_echo_n "checking linker position independent executable support... " >&6; }
32281 if test $in_tree_ld = yes ; then
32283 # Full PIE support on Solaris was only introduced in gld 2.26.
32284 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
32285 *) gcc_gld_pie_min_version
=15 ;;
32287 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 \
32288 && test $in_tree_ld_is_elf = yes; then
32291 elif test x
$gcc_cv_ld != x
; then
32292 # Check if linker supports -pie option
32293 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
32297 if echo "$ld_ver" |
grep GNU
> /dev
/null \
32298 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32305 *-*-solaris2.1
[1-9]*)
32306 # Solaris 11.3 added PIE support.
32307 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
32314 if test x
"$gcc_cv_ld_pie" = xyes
; then
32316 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32320 $as_echo "$gcc_cv_ld_pie" >&6; }
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32323 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32324 gcc_cv_ld_pie_copyreloc
=no
32325 if test $gcc_cv_ld_pie = yes ; then
32326 if test $in_tree_ld = yes ; then
32327 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
32328 gcc_cv_ld_pie_copyreloc
=yes
32330 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32331 # Check if linker supports -pie option with copy reloc
32333 i?
86-*-linux* | x86_64-
*-linux*)
32334 cat > conftest1.s
<<EOF
32337 .type a_glob, @object
32342 cat > conftest2.s
<<EOF
32345 .type main, @function
32347 movl %eax, a_glob(%rip)
32350 .section .data.rel,"aw",@progbits
32355 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32356 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
32357 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32358 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
32359 gcc_cv_ld_pie_copyreloc
=yes
32361 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32367 cat >>confdefs.h
<<_ACEOF
32368 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32372 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32375 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32376 gcc_cv_ld_eh_gc_sections
=no
32377 if test $in_tree_ld = yes ; then
32378 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 \
32379 && test $in_tree_ld_is_elf = yes; then
32380 gcc_cv_ld_eh_gc_sections
=yes
32382 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
32383 cat > conftest.s
<<EOF
32386 .type _start, @function
32389 .size _start, .-_start
32390 .section .text.foo,"ax",@progbits
32391 .type foo, @function
32395 .section .gcc_except_table.foo,"a",@progbits
32398 .section .eh_frame,"a",@progbits
32401 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32402 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32403 |
grep "gc-sections option ignored" > /dev
/null
; then
32404 gcc_cv_ld_eh_gc_sections
=no
32405 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32406 |
grep gcc_except_table
> /dev
/null
; then
32407 gcc_cv_ld_eh_gc_sections
=yes
32408 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32409 if test x
$gcc_cv_as_comdat_group != xyes
; then
32410 gcc_cv_ld_eh_gc_sections
=no
32411 cat > conftest.s
<<EOF
32414 .type _start, @function
32417 .size _start, .-_start
32418 .section .gnu.linkonce.t.foo,"ax",@progbits
32419 .type foo, @function
32423 .section .gcc_except_table.foo,"a",@progbits
32426 .section .eh_frame,"a",@progbits
32429 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32430 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32431 |
grep "gc-sections option ignored" > /dev
/null
; then
32432 gcc_cv_ld_eh_gc_sections
=no
32433 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32434 |
grep gcc_except_table
> /dev
/null
; then
32435 gcc_cv_ld_eh_gc_sections
=yes
32441 rm -f conftest.s conftest.o conftest
32445 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32446 gcc_cv_ld_eh_gc_sections
=no
32449 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
32451 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32455 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32458 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32459 gcc_cv_ld_eh_gc_sections_bug
=no
32460 if test $in_tree_ld = yes ; then
32461 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 \
32462 && test $in_tree_ld_is_elf = yes; then
32463 gcc_cv_ld_eh_gc_sections_bug
=yes
32465 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
32466 gcc_cv_ld_eh_gc_sections_bug
=yes
32467 cat > conftest.s
<<EOF
32470 .type _start, @function
32473 .size _start, .-_start
32474 .section .text.startup.foo,"ax",@progbits
32475 .type foo, @function
32479 .section .gcc_except_table.foo,"a",@progbits
32482 .section .eh_frame,"a",@progbits
32485 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32486 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32487 |
grep "gc-sections option ignored" > /dev
/null
; then
32489 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32490 |
grep gcc_except_table
> /dev
/null
; then
32491 gcc_cv_ld_eh_gc_sections_bug
=no
32494 rm -f conftest.s conftest.o conftest
32496 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
32498 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32502 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32505 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32506 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32507 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
32508 gcc_cv_ld_compress_debug
=1
32509 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
32510 # Detect zstd debug section compression support
32511 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
32512 gcc_cv_ld_compress_debug
=2
32515 case "${target}" in
32517 # Introduced in Solaris 11.2.
32518 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
32519 gcc_cv_ld_compress_debug
=1
32520 gcc_cv_ld_compress_debug_option
="-z compress-sections"
32522 gcc_cv_ld_compress_debug
=0
32526 # Assume linkers other than GNU ld don't support compessed debug
32528 gcc_cv_ld_compress_debug
=0
32533 cat >>confdefs.h
<<_ACEOF
32534 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32538 cat >>confdefs.h
<<_ACEOF
32539 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32543 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32545 if test x
"$ld64_flag" = x
"yes"; then
32547 # Set defaults for possibly untestable items.
32548 gcc_cv_ld64_export_dynamic
=0
32549 gcc_cv_ld64_platform_version
=0
32550 gcc_cv_ld64_demangle
=0
32552 if test "$build" = "$host"; then
32558 # On Darwin, because of FAT library support, it is often possible to execute
32559 # exes from compatible archs even when the host differs from the build system.
32560 case "$build","$host" in
32561 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
32562 darwin_try_test
=1;;
32566 # If the configurer specified a minimum ld64 version to be supported, then use
32567 # that to determine feature support.
32568 if test x
"${gcc_cv_ld64_version}" != x
; then
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32570 $as_echo_n "checking ld64 specified version... " >&6; }
32571 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32573 $as_echo "$gcc_cv_ld64_major" >&6; }
32574 if test "$gcc_cv_ld64_major" -ge 97; then
32575 gcc_cv_ld64_demangle
=1
32577 if test "$gcc_cv_ld64_major" -ge 236; then
32578 gcc_cv_ld64_export_dynamic
=1
32580 if test "$gcc_cv_ld64_major" -ge 512; then
32581 gcc_cv_ld64_platform_version
=1
32583 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32584 # If the version was not specified, try to find it.
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32586 $as_echo_n "checking linker version... " >&6; }
32587 if test x
"${gcc_cv_ld64_version}" = x
; then
32588 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32589 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32592 $as_echo "$gcc_cv_ld64_version" >&6; }
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32595 $as_echo_n "checking linker for -demangle support... " >&6; }
32596 gcc_cv_ld64_demangle
=1
32597 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32598 gcc_cv_ld64_demangle
=0
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32601 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32604 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32605 gcc_cv_ld64_export_dynamic
=1
32606 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32607 gcc_cv_ld64_export_dynamic
=0
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32610 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32613 $as_echo_n "checking linker for -platform_version support... " >&6; }
32614 gcc_cv_ld64_platform_version
=1
32615 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32616 gcc_cv_ld64_platform_version
=0
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32619 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32622 if test x
"${gcc_cv_ld64_version}" != x
; then
32624 cat >>confdefs.h
<<_ACEOF
32625 #define LD64_VERSION "${gcc_cv_ld64_version}"
32631 cat >>confdefs.h
<<_ACEOF
32632 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32637 cat >>confdefs.h
<<_ACEOF
32638 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32643 cat >>confdefs.h
<<_ACEOF
32644 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32649 if test x
"$dsymutil_flag" = x
"yes"; then
32651 # If the user specified a dsymutil path, then we will already have the
32652 # version string, otherwise, pick it up.
32653 if test x
"$gcc_cv_dsymutil" = x
; then
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32655 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32656 dsymutil_vers
="tool unspecified"
32657 elif test x
"$dsymutil_vers" = x
; then
32658 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32661 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32663 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32664 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
32665 dsymutil_kind
=DWARFUTILS
32666 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32667 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
32668 dsymutil_kind
=CLANG
32669 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32670 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
32672 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32674 dsymutil_kind
=DET_UNKNOWN
32675 dsymutil_vers
="0.0"
32677 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32678 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32679 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32680 if test x
"${dsymutil_minor}" = x
; then
32683 if test x
"${dsymutil_tiny}" = x
; then
32687 cat >>confdefs.h
<<_ACEOF
32688 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32692 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32696 win32 | pe | cygwin* | mingw32*)
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
32698 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
32699 gcc_cv_ld_broken_pe_dwarf5=yes
32700 if test $in_tree_ld = yes ; then
32701 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32702 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32703 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32704 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32705 gcc_cv_ld_broken_pe_dwarf5=no
32708 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32709 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32710 gcc_cv_ld_broken_pe_dwarf5=no
32713 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32715 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32719 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32722 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32723 gcc_cv_ld_disable_dynamicbase
=no
32724 if test $in_tree_ld = yes; then
32725 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 \
32726 gcc_cv_ld_disable_dynamicbase
=yes
32729 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
32730 gcc_cv_ld_disable_dynamicbase
=yes
32733 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
32735 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32739 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32748 $as_echo_n "checking linker --as-needed support... " >&6; }
32749 if ${gcc_cv_ld_as_needed+:} false
; then :
32750 $as_echo_n "(cached) " >&6
32752 gcc_cv_ld_as_needed
=no
32753 gcc_cv_ld_as_needed_option
='--as-needed'
32754 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
32755 if test $in_tree_ld = yes ; then
32756 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 \
32757 && test $in_tree_ld_is_elf = yes; then
32758 gcc_cv_ld_as_needed
=yes
32759 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32760 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32761 gcc_cv_ld_no_as_needed_option
='--pop-state'
32764 elif test x
$gcc_cv_ld != x
; then
32765 # Check if linker supports --as-needed and --no-as-needed options
32766 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
32767 gcc_cv_ld_as_needed
=yes
32768 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
32769 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
32770 && echo "$ld_ver" |
grep GNU
> /dev
/null \
32771 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32772 # Use these options only when both ld.bfd and ld.gold support
32773 # --push-state/--pop-state, which unfortunately wasn't added
32774 # at the same time.
32775 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32776 gcc_cv_ld_no_as_needed_option
='--pop-state'
32779 case "$target:$gnu_ld" in
32781 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32783 gcc_cv_ld_as_needed
=yes
32784 gcc_cv_ld_as_needed_option
="-z ignore"
32785 gcc_cv_ld_no_as_needed_option
="-z record"
32789 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32790 # dl_iterate_phdr, i.e. since Solaris 11.
32792 *-*-solaris2.1
[1-9]*)
32794 i?
86-*-* | x86_64-
*-*)
32795 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32796 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32797 gcc_cv_ld_as_needed
=no
32803 gcc_cv_ld_as_needed
=no
32808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32809 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32810 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
32812 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32815 cat >>confdefs.h
<<_ACEOF
32816 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32820 cat >>confdefs.h
<<_ACEOF
32821 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32827 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32828 saved_LDFLAGS
="$LDFLAGS"
32829 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
32830 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32832 /* end confdefs.h. */
32833 int main(void) {return 0;}
32835 if ac_fn_cxx_try_link
"$LINENO"; then :
32836 gcc_cv_ld_clearcap
=yes; break
32838 gcc_cv_ld_clearcap
=no
32840 rm -f core conftest.err conftest.
$ac_objext \
32841 conftest
$ac_exeext conftest.
$ac_ext
32843 LDFLAGS
="$saved_LDFLAGS"
32844 if test "x$gcc_cv_ld_clearcap" = xyes
; then
32846 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32848 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32852 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32858 emul_name
="-melf32lppc"
32861 emul_name
="-melf32ppc"
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32865 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32866 if ${gcc_cv_ld_ppc_attr+:} false
; then :
32867 $as_echo_n "(cached) " >&6
32869 gcc_cv_ld_ppc_attr
=no
32870 if test x
"$ld_is_gold" = xyes
; then
32871 gcc_cv_ld_ppc_attr
=yes
32872 elif test $in_tree_ld = yes ; then
32873 if test "$gcc_cv_gld_major_version" -eq 2 \
32874 -a "$gcc_cv_gld_minor_version" -ge 28 \
32875 -o "$gcc_cv_gld_major_version" -gt 2; then
32876 gcc_cv_ld_ppc_attr
=yes
32878 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32879 # check that merging the long double .gnu_attribute doesn't warn
32880 cat > conftest1.s
<<EOF
32883 cat > conftest2.s
<<EOF
32886 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32887 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32888 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
32889 && test ! -s conftest.err
; then
32890 gcc_cv_ld_ppc_attr
=yes
32892 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32897 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32898 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
32900 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32906 case "$target:$tm_file" in
32907 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
32910 emul_name
="-melf64lppc"
32913 emul_name
="-melf64ppc"
32916 emul_name
="-melf64lppc_fbsd"
32919 emul_name
="-melf64ppc_fbsd"
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32923 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32924 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
32925 $as_echo_n "(cached) " >&6
32927 gcc_cv_ld_no_dot_syms
=no
32928 if test x
"$ld_is_gold" = xyes
; then
32929 gcc_cv_ld_no_dot_syms
=yes
32930 elif test $in_tree_ld = yes ; then
32931 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
32932 gcc_cv_ld_no_dot_syms
=yes
32934 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32935 cat > conftest1.s
<<EOF
32939 cat > conftest2.s
<<EOF
32940 .section ".opd","aw"
32943 .type foo,@function
32945 .quad .LEfoo,.TOC.@tocbase,0
32951 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32952 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32953 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
32954 gcc_cv_ld_no_dot_syms
=yes
32956 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32961 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32962 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
32964 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32969 $as_echo_n "checking linker large toc support... " >&6; }
32970 if ${gcc_cv_ld_large_toc+:} false
; then :
32971 $as_echo_n "(cached) " >&6
32973 gcc_cv_ld_large_toc
=no
32974 if test x
"$ld_is_gold" = xyes
; then
32975 gcc_cv_ld_large_toc
=yes
32976 elif test $in_tree_ld = yes ; then
32977 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
32978 gcc_cv_ld_large_toc
=yes
32980 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32981 cat > conftest.s
<<EOF
32982 .section ".tbss","awT",@nobits
32988 addis 9,13,ie0@got@tprel@ha
32989 ld 9,ie0@got@tprel@l(9)
32991 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
32992 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
32993 gcc_cv_ld_large_toc
=yes
32995 rm -f conftest conftest.o conftest.s
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33000 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33001 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33003 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33008 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33009 if ${gcc_cv_ld_toc_align+:} false
; then :
33010 $as_echo_n "(cached) " >&6
33012 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
33013 cat > conftest.s
<<EOF
33018 .section .data.rel.ro,"aw",@progbits
33023 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
33024 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
33025 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)) }'`
33027 rm -f conftest conftest.o conftest.s
33031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33032 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33033 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33035 cat >>confdefs.h
<<_ACEOF
33036 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33046 $as_echo_n "checking linker large toc support... " >&6; }
33047 if ${gcc_cv_ld_large_toc+:} false
; then :
33048 $as_echo_n "(cached) " >&6
33050 gcc_cv_ld_large_toc
=no
33051 if test x
$gcc_cv_as != x
; then
33052 cat > conftest.s
<<EOF
33062 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
33063 gcc_cv_ld_large_toc
=yes
33065 rm -f conftest conftest.o conftest.s
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33070 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33071 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33073 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33080 $as_echo_n "checking linker --build-id support... " >&6; }
33081 if ${gcc_cv_ld_buildid+:} false
; then :
33082 $as_echo_n "(cached) " >&6
33084 gcc_cv_ld_buildid
=no
33085 if test $in_tree_ld = yes ; then
33086 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33087 "$gcc_cv_gld_minor_version" -ge 18 -o \
33088 "$gcc_cv_gld_major_version" -gt 2 \
33089 && test $in_tree_ld_is_elf = yes; then
33090 gcc_cv_ld_buildid
=yes
33092 elif test x
$gcc_cv_ld != x
; then
33093 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
33094 gcc_cv_ld_buildid
=yes
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33099 $as_echo "$gcc_cv_ld_buildid" >&6; }
33100 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33102 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33106 # Check whether --enable-linker-build-id was given.
33107 if test "${enable_linker_build_id+set}" = set; then :
33108 enableval
=$enable_linker_build_id;
33110 enable_linker_build_id
=no
33114 if test x
"$enable_linker_build_id" = xyes
; then
33115 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33117 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33121 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33125 # In binutils 2.21, GNU ld gained support for new emulations fully
33126 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33128 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33129 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
33130 $as_echo_n "(cached) " >&6
33132 gcc_cv_ld_sol2_emulation
=no
33133 if test $in_tree_ld = yes ; then
33134 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33135 "$gcc_cv_gld_minor_version" -ge 21 -o \
33136 "$gcc_cv_gld_major_version" -gt 2 \
33137 && test $in_tree_ld_is_elf = yes; then
33138 gcc_cv_ld_sol2_emulation
=yes
33140 elif test x
$gcc_cv_ld != x
; then
33141 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
33142 grep _sol2
> /dev
/null
; then
33143 gcc_cv_ld_sol2_emulation
=yes
33147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33148 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33149 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
33151 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33156 $as_echo_n "checking linker --sysroot support... " >&6; }
33157 if ${gcc_cv_ld_sysroot+:} false
; then :
33158 $as_echo_n "(cached) " >&6
33160 gcc_cv_ld_sysroot
=no
33161 if test $in_tree_ld = yes ; then
33162 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
33163 gcc_cv_ld_sysroot
=yes
33165 elif test x
$gcc_cv_ld != x
; then
33166 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
33167 gcc_cv_ld_sysroot
=yes
33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33172 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33173 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
33175 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33181 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33183 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33184 if ${gcc_cv_solaris_crts+:} false
; then :
33185 $as_echo_n "(cached) " >&6
33187 gcc_cv_solaris_crts
=no
33188 if test x
$host != x
$target; then
33189 if test "x$with_sysroot" = xyes
; then
33190 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
33192 target_sysroot
="${with_sysroot}"
33195 target_libdir
="$target_sysroot/usr/lib"
33196 # At the time they were added, gcrt1.o became a symlink for backwards
33197 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33199 i?
86-*-solaris2* | x86_64-
*-solaris2*)
33200 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
33202 sparc
*-*-solaris2*)
33203 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33208 $as_echo "$gcc_cv_solaris_crts" >&6; }
33211 if test x
$gcc_cv_solaris_crts = xyes
; then
33213 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33217 # Check whether --enable-libssp was given.
33218 if test "${enable_libssp+set}" = set; then :
33219 enableval
=$enable_libssp; case "${enableval}" in
33223 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
33229 # Test for stack protector support in target C library.
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33231 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33232 if ${gcc_cv_libc_provides_ssp+:} false
; then :
33233 $as_echo_n "(cached) " >&6
33235 gcc_cv_libc_provides_ssp
=no
33236 if test "x$enable_libssp" = "xno"; then
33237 gcc_cv_libc_provides_ssp
=yes
33238 elif test "x$enable_libssp" = "xyes"; then
33239 gcc_cv_libc_provides_ssp
=no
33243 # All versions of musl provide stack protector
33244 gcc_cv_libc_provides_ssp
=yes;;
33245 *-*-linux* |
*-*-kfreebsd*-gnu)
33246 # glibc 2.4 and later provides __stack_chk_fail and
33247 # either __stack_chk_guard, or TLS access to stack guard canary.
33249 if test $glibc_version_major -gt 2 \
33250 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33251 gcc_cv_libc_provides_ssp
=yes
33254 if test -f $target_header_dir/features.h \
33255 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33256 $target_header_dir/features.h
> /dev
/null
; then
33257 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33258 $target_header_dir/features.h
> /dev
/null
&& \
33259 test -f $target_header_dir/bits
/uClibc_config.h
&& \
33260 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33261 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
33262 gcc_cv_libc_provides_ssp
=yes
33264 # all versions of Bionic support stack protector
33265 elif test -f $target_header_dir/sys
/cdefs.h \
33266 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33267 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
33268 gcc_cv_libc_provides_ssp
=yes
33273 # Avoid complicated tests (see
33274 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33275 # simply assert that glibc does provide this, which is true for all
33276 # realistically usable GNU/Hurd configurations.
33277 # All supported versions of musl provide it as well
33278 gcc_cv_libc_provides_ssp
=yes;;
33279 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
33280 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33281 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
33282 gcc_cv_libc_provides_ssp
=yes
33284 echo "no __stack_chk_fail on this target"
33288 *) gcc_cv_libc_provides_ssp
=no
;;
33292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33293 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33295 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33297 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33301 # Check whether --enable-default-ssp was given.
33302 # Check whether --enable-default-ssp was given.
33303 if test "${enable_default_ssp+set}" = set; then :
33304 enableval
=$enable_default_ssp;
33305 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33307 ia64
*-*-*) enable_default_ssp
=no
;;
33308 *) enable_default_ssp
=$enableval ;;
33311 enable_default_ssp
=no
33314 enable_default_ssp
=no
33317 if test x
$enable_default_ssp = xyes
; then
33319 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33324 # Test for <sys/sdt.h> on the target.
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33327 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33328 if ${gcc_cv_sys_sdt_h+:} false
; then :
33329 $as_echo_n "(cached) " >&6
33332 gcc_cv_sys_sdt_h
=no
33333 if test -f $target_header_dir/sys
/sdt.h
; then
33334 gcc_cv_sys_sdt_h
=yes
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33339 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33340 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
33343 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33348 # Check if TFmode long double should be used by default or not.
33349 # Some glibc targets used DFmode long double, but with glibc 2.4
33350 # and later they can use TFmode.
33352 powerpc
*-*-linux* | \
33353 sparc
*-*-linux* | \
33357 # Check whether --with-long-double-128 was given.
33358 if test "${with_long_double_128+set}" = set; then :
33359 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
33363 s390
*-*-linux-musl*)
33364 gcc_cv_target_ldbl128
=yes
33366 powerpc
*-*-linux-musl*)
33367 gcc_cv_target_ldbl128
=no
33371 if test $glibc_version_major -gt 2 \
33372 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33373 gcc_cv_target_ldbl128
=yes
33376 gcc_cv_target_ldbl128
=no
33377 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33378 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
33379 && gcc_cv_target_ldbl128
=yes
33390 if test x
$gcc_cv_target_ldbl128 = xyes
; then
33392 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33396 # Check if TFmode long double target should use the IBM extended double or IEEE
33397 # 128-bit floating point formats if long doubles are 128-bits long. The long
33398 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33399 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33402 # Check whether --with-long-double-format was given.
33403 if test "${with_long_double_format+set}" = set; then :
33404 withval
=$with_long_double_format;
33405 case "$target:$with_long_double_format" in
33406 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
33409 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
33410 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33411 case "$with_cpu" in
33412 power7 | power8 | power9 | power1
*)
33416 as_fn_error $?
"Configuration option --with-long-double-format is only \
33417 supported if the default cpu is power7 or newer" "$LINENO" 5
33418 with_long_double_format
=""
33422 powerpc64
*-*-linux*:*)
33423 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33424 with_long_double_format
=""
33427 as_fn_error $?
"Configure option --with-long-double-format is only supported \
33428 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33429 with_long_double_format
=""
33435 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33436 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33437 gcc_cv_libc_provides_hwcap_in_tcb
=no
33441 if test $glibc_version_major -gt 2 \
33442 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33443 gcc_cv_libc_provides_hwcap_in_tcb
=yes
33447 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
33449 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33453 # Check if the target LIBC handles PT_GNU_STACK.
33454 gcc_cv_libc_gnustack
=unknown
33456 mips
*-*-linux-musl*)
33457 gcc_cv_libc_gnustack
=yes
33461 if test $glibc_version_major -gt 2 \
33462 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33463 gcc_cv_libc_gnustack
=yes
33467 if test x
$gcc_cv_libc_gnustack = xyes
; then
33469 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33474 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33475 gcc_cv_target_dl_iterate_phdr
=unknown
33478 # <link.h> needs both a dl_iterate_phdr declaration and support for
33479 # compilation with largefile support.
33480 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
33481 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
33482 gcc_cv_target_dl_iterate_phdr
=yes
33484 gcc_cv_target_dl_iterate_phdr
=no
33487 *-*-dragonfly* |
*-*-freebsd*)
33488 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
33489 gcc_cv_target_dl_iterate_phdr
=yes
33491 gcc_cv_target_dl_iterate_phdr
=no
33495 gcc_cv_target_dl_iterate_phdr
=yes
33499 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
33501 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33505 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33507 # We no longer support different GC mechanisms. Emit an error if
33508 # the user configures with --with-gc.
33510 # Check whether --with-gc was given.
33511 if test "${with_gc+set}" = set; then :
33512 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33516 # Libraries to use on the host. This will normally be set by the top
33517 # level Makefile. Here we simply capture the value for our Makefile.
33518 if test -z "${HOST_LIBS+set}"; then
33523 # Use the system's zlib library.
33525 # Use the system's zlib library.
33526 zlibdir
="-L\$(top_builddir)/../zlib"
33527 zlibinc
="-I\$(top_srcdir)/../zlib"
33529 # Check whether --with-system-zlib was given.
33530 if test "${with_system_zlib+set}" = set; then :
33531 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33545 # Check whether --enable-maintainer-mode was given.
33546 if test "${enable_maintainer_mode+set}" = set; then :
33547 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33554 $as_echo "$maintainer_mode" >&6; }
33556 if test "$maintainer_mode" = "yes"; then
33562 if test -z "$CTAGS"; then
33566 if test -z "$ETAGS"; then
33570 if test -z "$CSCOPE"; then
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33577 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33578 # Check whether --enable-link-mutex was given.
33579 if test "${enable_link_mutex+set}" = set; then :
33580 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33586 $as_echo "$do_link_mutex" >&6; }
33588 if test "$do_link_mutex" = "yes"; then
33590 { $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
33591 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33593 DO_LINK_MUTEX
=false
33598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33599 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33600 # Check whether --enable-link-serialization was given.
33601 if test "${enable_link_serialization+set}" = set; then :
33602 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
33604 do_link_serialization
=no
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33608 $as_echo "$do_link_serialization" >&6; }
33610 case "$do_link_serialization" in
33612 DO_LINK_SERIALIZATION
=1;;
33613 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
33614 DO_LINK_SERIALIZATION
=$do_link_serialization;;
33616 DO_LINK_SERIALIZATION
=;;
33618 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33626 # Make empty files to contain the specs and options for each language.
33627 # Then add #include lines to for a compiler that has specs and/or options.
33633 # These (without "all_") are set in each config-lang.in.
33634 # `language' must be a single word so is spelled singularly.
33637 all_outputs
='Makefile'
33638 # List of language configure and makefile fragments.
33639 all_lang_configurefrags
=
33640 all_lang_makefrags
=
33641 # Additional files for gengtype
33642 all_gtfiles
="$target_gtfiles"
33644 # These are the languages that are set in --enable-languages,
33645 # and are available in the GCC tree.
33646 all_selected_languages
=
33648 # Add the language fragments.
33649 # Languages are added via two mechanisms. Some information must be
33650 # recorded in makefile variables, these are defined in config-lang.in.
33651 # We accumulate them and plug them into the main Makefile.
33652 # The other mechanism is a set of hooks for each of the main targets
33653 # like `clean', `install', etc.
33655 language_hooks
="Make-hooks"
33657 for lang
in ${srcdir}/*/config-lang.
in
33659 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33661 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33662 if test "x$lang_alias" = x
33664 echo "$lang doesn't set \$language." 1>&2
33667 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33668 subdirs
="$subdirs $subdir"
33670 # $gcc_subdir is where the gcc integration files are to be found
33671 # for a language, both for internal compiler purposes (compiler
33672 # sources implementing front-end to GCC tree converters), and for
33673 # build infrastructure purposes (Make-lang.in, etc.)
33675 # This will be <subdir> (relative to $srcdir) if a line like
33676 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33677 # is found in <langdir>/config-lang.in, and will remain <langdir>
33680 # Except for the language alias (fetched above), the regular
33681 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33682 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33683 # only this and the language alias.
33685 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33686 if [ "$gcc_subdir" = "" ]; then
33687 gcc_subdir
="$subdir"
33690 case ",$enable_languages," in
33692 all_selected_languages
="$all_selected_languages $lang_alias"
33693 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
33694 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33705 .
${srcdir}/$gcc_subdir/config-lang.
in
33706 if test "x$language" = x
33708 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33713 case ",$enable_languages," in
33714 *,$lang_alias,*) ;;
33716 for i
in $subdir_requires; do
33717 test -f "${srcdir}/$i/config-lang.in" && continue
33725 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33726 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
33727 # Put c/Make-lang.in fragment first to match serialization languages order.
33728 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33730 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33732 if test -f $srcdir/$gcc_subdir/lang.opt
; then
33733 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33734 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33736 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
33737 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33739 all_languages
="$all_languages $language"
33740 all_compilers
="$all_compilers $compilers"
33741 all_outputs
="$all_outputs $outputs"
33742 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
33743 case ",$enable_languages," in
33746 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33756 for language
in $all_selected_languages
33758 check_languages
="$check_languages check-$language"
33761 selftest_languages
=
33762 for language
in $all_selected_languages
33764 selftest_languages
="$selftest_languages selftest-$language"
33767 # We link each language in with a set of hooks, reached indirectly via
33768 # lang.${target}. Only do so for selected languages.
33772 target_list
="all.cross start.encap rest.encap tags \
33773 install-common install-man install-info install-dvi install-pdf \
33774 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33775 mostlyclean clean distclean maintainer-clean install-plugin"
33777 for t
in $target_list
33780 for lang
in $all_selected_languages
33784 echo "lang.$t: $x" >> Make-hooks
33787 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33788 echo "SERIAL_LIST =" >> Make-hooks
33789 echo else >> Make-hooks
33793 serialization_languages
=c
33794 for lang
in $all_selected_languages
33796 test $lang = c
&& continue
33797 if test $lang = lto
; then
33798 serialization_languages
="$serialization_languages lto1 lto2"
33800 serialization_languages
="$serialization_languages $lang"
33803 for lang
in $serialization_languages
33805 test $lang = c
&& continue
33806 lang_cnt
=`expr $lang_cnt + 1`
33807 lang_list
=" $prev$lang_list"
33810 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33811 echo endif
>> Make-hooks
33812 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33813 echo "INDEX.c = 0" >> Make-hooks
33815 for lang
in $serialization_languages
33817 test $lang = c
&& continue
33818 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33819 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33820 lang_cnt
=`expr $lang_cnt - 1`
33821 lang_idx
=`expr $lang_idx + 1`
33825 # Option include files
33828 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
33829 option_includes
="option-includes.mk"
33838 echo "dir ." > .gdbinit
33839 echo "dir ${srcdir}" >> .gdbinit
33840 if test x
$gdb_needs_out_file_path = xyes
33842 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33844 if test "x$subdirs" != x
; then
33847 echo "dir ${srcdir}/$s" >> .gdbinit
33850 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33851 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33853 # Put a breakpoint on __asan_report_error to help with debugging buffer
33856 *-fsanitize=address
*)
33857 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33861 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33865 # Find a directory in which to install a shared libgcc.
33867 # Check whether --enable-version-specific-runtime-libs was given.
33868 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33869 enableval
=$enable_version_specific_runtime_libs;
33873 # Substitute configuration variables
33947 if test x
${build} = x
${host} ; then
33948 if test x
${host} = x
${target} ; then
33949 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33951 echo "Links are now set up to build a cross-compiler" 1>&2
33952 echo " from ${host} to ${target}." 1>&2
33955 if test x
${host} = x
${target} ; then
33956 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33957 echo " for ${target}." 1>&2
33959 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33960 echo " from ${host} to ${target}." 1>&2
33969 if test "x${ISLLIBS}" != "x" ; then
33971 $as_echo "#define HAVE_isl 1" >>confdefs.h
33975 # Check for plugin support
33976 # Check whether --enable-plugin was given.
33977 if test "${enable_plugin+set}" = set; then :
33978 enableval
=$enable_plugin; enable_plugin
=$enableval
33980 enable_plugin
=yes; default_plugin
=yes
33989 # Since plugin support under MinGW is not as straightforward as on
33990 # other platforms (e.g., we have to link import library, etc), we
33991 # only enable it if explicitly requested.
33992 if test x
"$default_plugin" = x
"yes"; then
33994 elif test x
"$enable_plugin" = x
"yes"; then
33995 # Use make's target variable to derive import library name.
33996 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34001 if test x
$build = x
$host; then
34002 export_sym_check
="nm${exeext} -g"
34003 elif test x
$host = x
$target; then
34004 export_sym_check
="$gcc_cv_nm -g"
34010 if test x
$build = x
$host; then
34011 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34012 elif test x
$host = x
$target; then
34013 export_sym_check
="$gcc_cv_objdump -T"
34015 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34020 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34023 $as_echo_n "checking for exported symbols... " >&6; }
34024 if test "x$export_sym_check" != x
; then
34025 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34026 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34027 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34028 : # No need to use a flag
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34033 $as_echo "yes" >&6; }
34034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34035 $as_echo_n "checking for -rdynamic... " >&6; }
34036 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34037 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34038 plugin_rdynamic
=yes
34039 pluginlibs
="-rdynamic"
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34045 $as_echo "$plugin_rdynamic" >&6; }
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34049 $as_echo "unable to check" >&6; }
34054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34055 $as_echo_n "checking for library containing dlopen... " >&6; }
34056 if ${ac_cv_search_dlopen+:} false
; then :
34057 $as_echo_n "(cached) " >&6
34059 ac_func_search_save_LIBS
=$LIBS
34060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34061 /* end confdefs.h. */
34063 /* Override any GCC internal prototype to avoid an error.
34064 Use char because int might match the return type of a GCC
34065 builtin and then its argument prototype would still apply. */
34078 for ac_lib
in '' dl
; do
34079 if test -z "$ac_lib"; then
34080 ac_res
="none required"
34083 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
34085 if ac_fn_cxx_try_link
"$LINENO"; then :
34086 ac_cv_search_dlopen
=$ac_res
34088 rm -f core conftest.err conftest.
$ac_objext \
34090 if ${ac_cv_search_dlopen+:} false
; then :
34094 if ${ac_cv_search_dlopen+:} false
; then :
34097 ac_cv_search_dlopen
=no
34099 rm conftest.
$ac_ext
34100 LIBS
=$ac_func_search_save_LIBS
34102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34103 $as_echo "$ac_cv_search_dlopen" >&6; }
34104 ac_res
=$ac_cv_search_dlopen
34105 if test "$ac_res" != no
; then :
34106 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
34110 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
34111 pluginlibs
="$pluginlibs -ldl"
34115 # Check that we can build shared objects with -fPIC -shared
34116 saved_LDFLAGS
="$LDFLAGS"
34117 saved_CFLAGS
="$CFLAGS"
34118 saved_CXXFLAGS
="$CXXFLAGS"
34121 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34122 CFLAGS
="$CFLAGS -fPIC"
34123 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34124 CXXFLAGS
="$CXXFLAGS -fPIC"
34125 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
34128 CFLAGS
="$CFLAGS -fPIC"
34129 CXXFLAGS
="$CXXFLAGS -fPIC"
34130 LDFLAGS
="$LDFLAGS -fPIC -shared"
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34134 $as_echo_n "checking for -fPIC -shared... " >&6; }
34135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34136 /* end confdefs.h. */
34146 if ac_fn_cxx_try_link
"$LINENO"; then :
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34148 $as_echo "yes" >&6; }; have_pic_shared
=yes
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34151 $as_echo "no" >&6; }; have_pic_shared
=no
34153 rm -f core conftest.err conftest.
$ac_objext \
34154 conftest
$ac_exeext conftest.
$ac_ext
34155 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
34159 LDFLAGS
="$saved_LDFLAGS"
34160 CFLAGS
="$saved_CFLAGS"
34161 CXXFLAGS
="$saved_CXXFLAGS"
34163 # If plugin support had been requested but not available, fail.
34164 if test x
"$enable_plugin" = x
"no" ; then
34165 if test x
"$default_plugin" != x
"yes"; then
34167 Building GCC with plugin support requires a host that supports
34168 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34175 if test x
"$enable_plugin" = x
"yes"; then
34177 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34182 # Enable --enable-host-shared
34183 # Check whether --enable-host-shared was given.
34184 if test "${enable_host_shared+set}" = set; then :
34185 enableval
=$enable_host_shared;
34190 # Enable --enable-host-pie
34191 # Check whether --enable-host-pie was given.
34192 if test "${enable_host_pie+set}" = set; then :
34193 enableval
=$enable_host_pie;
34198 # Enable --enable-host-bind-now
34199 # Check whether --enable-host-bind-now was given.
34200 if test "${enable_host_bind_now+set}" = set; then :
34201 enableval
=$enable_host_bind_now;
34206 # Check whether --enable-libquadmath-support was given.
34207 if test "${enable_libquadmath_support+set}" = set; then :
34208 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
34210 ENABLE_LIBQUADMATH_SUPPORT
=yes
34213 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34215 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34220 # Specify what hash style to use by default.
34222 # Check whether --with-linker-hash-style was given.
34223 if test "${with_linker_hash_style+set}" = set; then :
34224 withval
=$with_linker_hash_style; case x
"$withval" in
34226 LINKER_HASH_STYLE
=sysv
34229 LINKER_HASH_STYLE
=gnu
34232 LINKER_HASH_STYLE
=both
34235 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34239 LINKER_HASH_STYLE
=''
34242 if test x
"${LINKER_HASH_STYLE}" != x
; then
34244 cat >>confdefs.h
<<_ACEOF
34245 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34250 # Specify what should be the default of -fdiagnostics-color option.
34252 # Check whether --with-diagnostics-color was given.
34253 if test "${with_diagnostics_color+set}" = set; then :
34254 withval
=$with_diagnostics_color; case x
"$withval" in
34256 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
34259 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34262 DIAGNOSTICS_COLOR_DEFAULT
=-1
34265 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
34268 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34272 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34276 cat >>confdefs.h
<<_ACEOF
34277 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34281 # Specify what should be the default of -fdiagnostics-urls option.
34283 # Check whether --with-diagnostics-urls was given.
34284 if test "${with_diagnostics_urls+set}" = set; then :
34285 withval
=$with_diagnostics_urls; case x
"$withval" in
34287 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
34290 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34293 DIAGNOSTICS_URLS_DEFAULT
=-1
34296 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
34299 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34303 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34307 cat >>confdefs.h
<<_ACEOF
34308 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34312 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34313 # of jit/jit-playback.cc.
34314 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34315 echo "gcc_driver_version: ${gcc_driver_version}"
34316 cat > gcc-driver-name.h
<<EOF
34317 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34320 # Check whether --enable-default-pie was given.
34321 # Check whether --enable-default-pie was given.
34322 if test "${enable_default_pie+set}" = set; then :
34323 enableval
=$enable_default_pie; enable_default_pie
=$enableval
34325 enable_default_pie
=no
34328 if test x
$enable_default_pie = xyes
; then
34330 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34335 # Check if -fno-PIE works.
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34337 $as_echo_n "checking for -fno-PIE option... " >&6; }
34338 if ${gcc_cv_c_no_fpie+:} false
; then :
34339 $as_echo_n "(cached) " >&6
34341 saved_CXXFLAGS
="$CXXFLAGS"
34342 CXXFLAGS
="$CXXFLAGS -fno-PIE"
34343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34344 /* end confdefs.h. */
34345 int main(void) {return 0;}
34347 if ac_fn_cxx_try_compile
"$LINENO"; then :
34348 gcc_cv_c_no_fpie
=yes
34350 gcc_cv_c_no_fpie
=no
34352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34353 CXXFLAGS
="$saved_CXXFLAGS"
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34356 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34358 # Check if -no-pie works.
34359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34360 $as_echo_n "checking for -no-pie option... " >&6; }
34361 if ${gcc_cv_no_pie+:} false
; then :
34362 $as_echo_n "(cached) " >&6
34364 saved_LDFLAGS
="$LDFLAGS"
34365 LDFLAGS
="$LDFLAGS -no-pie"
34366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34367 /* end confdefs.h. */
34368 int main(void) {return 0;}
34370 if ac_fn_cxx_try_link
"$LINENO"; then :
34375 rm -f core conftest.err conftest.
$ac_objext \
34376 conftest
$ac_exeext conftest.
$ac_ext
34377 LDFLAGS
="$saved_LDFLAGS"
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34380 $as_echo "$gcc_cv_no_pie" >&6; }
34382 if test x
$enable_host_shared = xyes
; then
34384 elif test x
$enable_host_pie = xyes
; then
34386 elif test x
$gcc_cv_c_no_fpie = xyes
; then
34394 if test x
$enable_host_pie = xyes
; then
34396 elif test x
$gcc_cv_no_pie = xyes
; then
34402 if test x
$enable_host_bind_now = xyes
; then
34403 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
34408 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34409 # Check whether --enable-cet was given.
34410 if test "${enable_cet+set}" = set; then :
34411 enableval
=$enable_cet;
34412 case "$enableval" in
34414 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34423 $as_echo_n "checking for CET support... " >&6; }
34426 i
[34567]86-*-linux* | x86_64-
*-linux*)
34428 cet_save_CFLAGS
="$CFLAGS"
34429 CFLAGS
="$CFLAGS -fcf-protection"
34430 case "$enable_cet" in
34432 # Check if target supports multi-byte NOPs
34433 # and if compiler and assembler support CET.
34434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34435 /* end confdefs.h. */
34441 #if !defined(__SSE2__)
34442 #error target does not support multi-byte NOPs
34451 if ac_fn_cxx_try_compile
"$LINENO"; then :
34456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34459 # Check if compiler and assembler support CET.
34460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34461 /* end confdefs.h. */
34471 if ac_fn_cxx_try_compile
"$LINENO"; then :
34476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34477 if test $support_cet = "no"; then
34478 if test x
$enable_bootstrap != xno \
34479 && test -z "${with_build_subdir}" \
34480 && (test ! -f ..
/stage_current \
34481 ||
test `cat ../stage_current` != "stage1"); then
34482 # Require CET support only for the final GCC build.
34483 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34485 # Don't enable CET without CET support for non-bootstrap
34486 # build, in stage1 nor for build support.
34492 CFLAGS
="$cet_save_CFLAGS"
34500 cet_save_CFLAGS
="$CFLAGS"
34501 CFLAGS
="$CFLAGS -fcf-protection=none"
34502 cet_save_LDFLAGS
="$LDFLAGS"
34503 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34504 if test x
$may_have_cet = xyes
; then
34505 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34507 /* end confdefs.h. */
34517 if ac_fn_cxx_try_link
"$LINENO"; then :
34522 rm -f core conftest.err conftest.
$ac_objext \
34523 conftest
$ac_exeext conftest.
$ac_ext
34526 if test x
$may_have_cet = xyes
; then
34527 if test x
$cross_compiling = xno
; then
34528 if test "$cross_compiling" = yes; then :
34529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34531 as_fn_error $?
"cannot run test program while cross compiling
34532 See \`config.log' for more details" "$LINENO" 5; }
34534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34535 /* end confdefs.h. */
34545 if ac_fn_cxx_try_run
"$LINENO"; then :
34546 have_multi_byte_nop
=yes
34548 have_multi_byte_nop
=no
34550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34555 if test x
$have_multi_byte_nop = xyes
; then
34556 if test "$cross_compiling" = yes; then :
34557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34559 as_fn_error $?
"cannot run test program while cross compiling
34560 See \`config.log' for more details" "$LINENO" 5; }
34562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34563 /* end confdefs.h. */
34571 __attribute__ ((noinline, noclone))
34572 xxx (void (*f) (void))
34578 __attribute__ ((noinline, noclone))
34592 if ac_fn_cxx_try_run
"$LINENO"; then :
34597 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34598 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34602 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
34603 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34607 # Enable CET in cross compiler if possible so that it will run on both
34608 # CET and non-CET hosts.
34611 if test x
$enable_cet = xyes
; then
34612 CET_HOST_FLAGS
="-fcf-protection"
34613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34614 $as_echo "yes" >&6; }
34616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34617 $as_echo "no" >&6; }
34619 CFLAGS
="$cet_save_CFLAGS"
34620 LDFLAGS
="$cet_save_LDFLAGS"
34622 case x
$enable_languages in
34631 # Check linker supports '-z bndplt'
34632 ld_bndplt_support
=no
34633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34634 $as_echo_n "checking linker -z bndplt option... " >&6; }
34635 if test x
"$ld_is_gold" = xno
; then
34636 if test $in_tree_ld = yes ; then
34637 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
34638 ld_bndplt_support
=yes
34640 elif test x
$gcc_cv_ld != x
; then
34641 # Check if linker supports -z bndplt option
34642 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
34643 ld_bndplt_support
=yes
34647 if test x
"$ld_bndplt_support" = xyes
; then
34649 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34653 $as_echo "$ld_bndplt_support" >&6; }
34655 # Check linker supports '--push-state'/'--pop-state'
34656 ld_pushpopstate_support
=no
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34658 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34659 if test x
"$ld_is_gold" = xno
; then
34660 if test $in_tree_ld = yes ; then
34661 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
34662 ld_pushpopstate_support
=yes
34664 elif test x
$gcc_cv_ld != x
; then
34665 # Check if linker supports --push-state/--pop-state options
34666 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
34667 ld_pushpopstate_support
=yes
34671 if test x
"$ld_pushpopstate_support" = xyes
; then
34673 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34677 $as_echo "$ld_pushpopstate_support" >&6; }
34679 # On s390, float_t has historically been statically defined as double for no
34680 # good reason. To comply with the C standard in the light of this definition,
34681 # gcc has evaluated float expressions in double precision when in
34682 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34683 # a smooth transition towards the new model used by most architectures, where
34684 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34685 # float_t from that, this behavior can be configured with
34686 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34687 # the old model. When omitted, native builds and cross compiles that have target
34688 # libc headers will detect whether libc clamps float_t to double and in that
34689 # case maintain the old model. Otherwise, they will default to the new model.
34690 # Check whether --enable-s390-excess-float-precision was given.
34691 if test "${enable_s390_excess_float_precision+set}" = set; then :
34692 enableval
=$enable_s390_excess_float_precision;
34694 enable_s390_excess_float_precision
=auto
34700 if test x
"$enable_s390_excess_float_precision" = xauto
; then
34701 # Can we autodetect the behavior of the target libc?
34702 if test "$target" = "$host" -a "$host" = "$build"; then
34703 enable_s390_excess_float_precision
=autodetect
34704 elif test "x$with_headers" != xno
; then
34705 # cross build. are target headers available?
34706 # carefully coerce the build-system compiler to use target headers
34707 saved_CXXFLAGS
="$CXXFLAGS"
34708 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34709 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34710 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34712 /* end confdefs.h. */
34717 if ac_fn_cxx_try_compile
"$LINENO"; then :
34718 enable_s390_excess_float_precision
=autodetect
34720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34721 CXXFLAGS
="$saved_CXXFLAGS"
34724 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
34725 saved_CXXFLAGS
="$CXXFLAGS"
34726 if ! test "$target" = "$host" -a "$host" = "$build"; then
34727 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34728 unset CROSS_TEST_CXXFLAGS
34730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34731 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34732 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
34733 $as_echo_n "(cached) " >&6
34736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34737 /* end confdefs.h. */
34739 #define __FLT_EVAL_METHOD__ 0
34741 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34744 if ac_fn_cxx_try_compile
"$LINENO"; then :
34745 gcc_cv_float_t_clamped_to_double
=yes
34747 gcc_cv_float_t_clamped_to_double
=no
34749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34752 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34753 CXXFLAGS
="$saved_CXXFLAGS"
34754 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
34756 # no way to detect behavior of target libc, default to new model
34757 enable_s390_excess_float_precision
=no
34762 if test x
"$enable_s390_excess_float_precision" = xyes
; then
34764 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34770 # Check if the linker supports '-z now'
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34773 $as_echo_n "checking linker -z now option... " >&6; }
34774 if test x
"$ld_is_gold" = xyes
; then
34776 elif test $in_tree_ld = yes ; then
34777 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
34780 elif test x
$gcc_cv_ld != x
; then
34781 # Check if linker supports -z now
34782 if $gcc_cv_ld --help 2>&1 |
grep -- '-z now' > /dev
/null
; then
34787 cat >>confdefs.h
<<_ACEOF
34788 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34792 $as_echo "$ld_now_support" >&6; }
34794 # Check if the linker supports '-z relro'
34795 ld_relro_support
=no
34796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34797 $as_echo_n "checking linker -z relro option... " >&6; }
34798 if test x
"$ld_is_gold" = xyes
; then
34799 ld_relro_support
=yes
34800 elif test $in_tree_ld = yes ; then
34801 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34802 ld_relro_support
=yes
34804 elif test x
$gcc_cv_ld != x
; then
34805 # Check if linker supports -z relro
34806 if $gcc_cv_ld --help 2>&1 |
grep -- '-z relro' > /dev
/null
; then
34807 ld_relro_support
=yes
34811 cat >>confdefs.h
<<_ACEOF
34812 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34816 $as_echo "$ld_relro_support" >&6; }
34820 # -fhardened is only supported on GNU/Linux.
34821 fhardened_support
=yes
34824 fhardened_support
=no
34829 cat >>confdefs.h
<<_ACEOF
34830 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34834 $as_echo "$fhardened_support" >&6; }
34836 # Configure the subdirectories
34837 # AC_CONFIG_SUBDIRS($subdirs)
34839 # Create the Makefile
34840 # and configure language subdirectories
34841 ac_config_files
="$ac_config_files $all_outputs"
34844 ac_config_commands
="$ac_config_commands default"
34846 cat >confcache
<<\_ACEOF
34847 # This file is a shell script that caches the results of configure
34848 # tests run on this system so they can be shared between configure
34849 # scripts and configure runs, see configure's option --config-cache.
34850 # It is not useful on other systems. If it contains results you don't
34851 # want to keep, you may remove or edit it.
34853 # config.status only pays attention to the cache file if you give it
34854 # the --recheck option to rerun configure.
34856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34858 # following values.
34862 # The following way of writing the cache mishandles newlines in values,
34863 # but we know of no workaround that is simple, portable, and efficient.
34864 # So, we kill variables containing newlines.
34865 # Ultrix sh set writes to stderr and can't be redirected directly,
34866 # and sets the high bit in the cache file unless we assign to the vars.
34868 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34869 eval ac_val
=\$
$ac_var
34873 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34877 _ | IFS | as_nl
) ;; #(
34878 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
34879 *) { eval $ac_var=; unset $ac_var;} ;;
34885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34886 *${as_nl}ac_space
=\
*)
34887 # `set' does not quote correctly, so add quotes: double-quote
34888 # substitution turns \\\\ into \\, and sed turns \\ into \.
34891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34894 # `set' quotes correctly as required by POSIX, so do not add quotes.
34895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34908 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34909 if test -w "$cache_file"; then
34910 if test "x$cache_file" != "x/dev/null"; then
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34912 $as_echo "$as_me: updating cache $cache_file" >&6;}
34913 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
34914 cat confcache
>"$cache_file"
34916 case $cache_file in #(
34918 mv -f confcache
"$cache_file"$$
&&
34919 mv -f "$cache_file"$$
"$cache_file" ;; #(
34921 mv -f confcache
"$cache_file" ;;
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34927 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34932 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
34933 # Let make expand exec_prefix.
34934 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
34936 DEFS
=-DHAVE_CONFIG_H
34941 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
34942 # 1. Remove the extension, and $U if already installed.
34943 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
34944 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
34945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34946 # will be set to the directory where LIBOBJS objects are built.
34947 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34948 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
34950 LIBOBJS
=$ac_libobjs
34952 LTLIBOBJS
=$ac_ltlibobjs
34956 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34957 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34961 : "${CONFIG_STATUS=./config.status}"
34963 ac_clean_files_save
=$ac_clean_files
34964 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
34965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34966 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34968 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34970 # Generated by $as_me.
34971 # Run this file to recreate the current configuration.
34972 # Compiler output produced by configure, useful for debugging
34973 # configure, is in config.log if it exists.
34976 ac_cs_recheck=false
34979 SHELL=\${CONFIG_SHELL-$SHELL}
34982 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
34983 ## -------------------- ##
34984 ## M4sh Initialization. ##
34985 ## -------------------- ##
34987 # Be more Bourne compatible
34988 DUALCASE
=1; export DUALCASE
# for MKS sh
34989 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
34992 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34993 # is contrary to our usage. Disable this feature.
34994 alias -g '${1+"$@"}'='"$@"'
34995 setopt NO_GLOB_SUBST
34997 case `(set -o) 2>/dev/null` in #(
35009 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35010 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35013 # Prefer a ksh shell builtin over an external printf program on Solaris,
35014 # but without wasting forks for bash or zsh.
35015 if test -z "$BASH_VERSION$ZSH_VERSION" \
35016 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35017 as_echo='print
-r --'
35018 as_echo_n='print
-rn --'
35019 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35020 as_echo='printf %s
\n'
35021 as_echo_n='printf %s
'
35023 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35024 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
35025 as_echo_n='/usr
/ucb
/echo -n'
35027 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35028 as_echo_n_body='eval
35032 expr "X$arg" : "X\\(.*\\)$as_nl";
35033 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35035 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
35037 export as_echo_n_body
35038 as_echo_n='sh
-c $as_echo_n_body as_echo
'
35040 export as_echo_body
35041 as_echo='sh
-c $as_echo_body as_echo
'
35044 # The user is always right.
35045 if test "${PATH_SEPARATOR+set}" != set; then
35047 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35048 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35055 # We need space, tab and new line, in precisely that order. Quoting is
35056 # there to prevent editors from complaining about space-tab.
35057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35058 # splitting by setting IFS to empty value.)
35061 # Find who we are. Look in the path if we contain no directory separator.
35064 *[\\/]* ) as_myself=$0 ;;
35065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35066 for as_dir in $PATH
35069 test -z "$as_dir" && as_dir=.
35070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35076 # We did not find ourselves, most probably we were run as `sh COMMAND'
35077 # in which case we are not to be found in the path.
35078 if test "x$as_myself" = x
; then
35081 if test ! -f "$as_myself"; then
35082 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35086 # Unset variables that we do not need and which cause bugs (e.g. in
35087 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35088 # suppresses any "Segmentation fault" message there. '((' could
35089 # trigger a bug in pdksh 5.2.14.
35090 for as_var
in BASH_ENV ENV MAIL MAILPATH
35091 do eval test x\
${$as_var+set} = xset \
35092 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
35105 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
35108 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35109 # ----------------------------------------
35110 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35111 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35112 # script with STATUS, using 1 if that was 0.
35115 as_status
=$1; test $as_status -eq 0 && as_status
=1
35117 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
35118 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35120 $as_echo "$as_me: error: $2" >&2
35121 as_fn_exit
$as_status
35125 # as_fn_set_status STATUS
35126 # -----------------------
35127 # Set $? to STATUS, without forking.
35128 as_fn_set_status
()
35131 } # as_fn_set_status
35133 # as_fn_exit STATUS
35134 # -----------------
35135 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35139 as_fn_set_status
$1
35145 # Portably unset VAR.
35148 { eval $1=; unset $1;}
35150 as_unset
=as_fn_unset
35151 # as_fn_append VAR VALUE
35152 # ----------------------
35153 # Append the text in VALUE to the end of the definition contained in VAR. Take
35154 # advantage of any shell optimizations that allow amortized linear growth over
35155 # repeated appends, instead of the typical quadratic growth present in naive
35157 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
35158 eval 'as_fn_append ()
35169 # as_fn_arith ARG...
35170 # ------------------
35171 # Perform arithmetic evaluation on the ARGs, and store the result in the
35172 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35173 # must be portable across $(()) and expr.
35174 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
35175 eval 'as_fn_arith ()
35182 as_val
=`expr "$@" || test $? -eq 1`
35187 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35188 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35194 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35195 as_basename
=basename
35200 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35206 as_me
=`$as_basename -- "$0" ||
35207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35208 X"$0" : 'X\(//\)$' \| \
35209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35211 sed '/^.*\/\([^/][^/]*\)\/*$/{
35225 # Avoid depending upon Character Ranges.
35226 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35227 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35228 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35229 as_cr_digits
='0123456789'
35230 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35232 ECHO_C
= ECHO_N
= ECHO_T
=
35233 case `echo -n x` in #(((((
35235 case `echo 'xy\c'` in
35236 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35238 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
35245 rm -f conf$$ conf$$.exe conf$$.
file
35246 if test -d conf$$.dir
; then
35247 rm -f conf$$.dir
/conf$$.
file
35250 mkdir conf$$.dir
2>/dev
/null
35252 if (echo >conf$$.
file) 2>/dev
/null
; then
35253 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35255 # ... but there are two gotchas:
35256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35258 # In both cases, we have to default to `cp -pR'.
35259 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35261 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35269 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35270 rmdir conf$$.dir
2>/dev
/null
35275 # Create "$as_dir" as a directory, including parents if necessary.
35280 -*) as_dir
=.
/$as_dir;;
35282 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
35286 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35287 *) as_qdir
=$as_dir;;
35289 as_dirs
="'$as_qdir' $as_dirs"
35290 as_dir
=`$as_dirname -- "$as_dir" ||
35291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35292 X"$as_dir" : 'X\(//\)[^/]' \| \
35293 X"$as_dir" : 'X\(//\)$' \| \
35294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35295 $as_echo X"$as_dir" |
35296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35300 /^X\(\/\/\)[^/].*/{
35313 test -d "$as_dir" && break
35315 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35316 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
35320 if mkdir
-p .
2>/dev
/null
; then
35321 as_mkdir_p
='mkdir -p "$as_dir"'
35323 test -d .
/-p && rmdir .
/-p
35328 # as_fn_executable_p FILE
35329 # -----------------------
35330 # Test if FILE is an executable regular file.
35331 as_fn_executable_p
()
35333 test -f "$1" && test -x "$1"
35334 } # as_fn_executable_p
35335 as_test_x
='test -x'
35336 as_executable_p
=as_fn_executable_p
35338 # Sed expression to map a string onto a valid CPP name.
35339 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35341 # Sed expression to map a string onto a valid variable name.
35342 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35346 ## ----------------------------------- ##
35347 ## Main body of $CONFIG_STATUS script. ##
35348 ## ----------------------------------- ##
35350 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
35352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35353 # Save the log message, to keep $0 and so on meaningful, and to
35354 # report actual input values of CONFIG_FILES etc. instead of their
35355 # values after options handling.
35357 This file was extended by $as_me, which was
35358 generated by GNU Autoconf 2.69. Invocation command line was
35360 CONFIG_FILES = $CONFIG_FILES
35361 CONFIG_HEADERS = $CONFIG_HEADERS
35362 CONFIG_LINKS = $CONFIG_LINKS
35363 CONFIG_COMMANDS = $CONFIG_COMMANDS
35366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35371 case $ac_config_files in *"
35372 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
35375 case $ac_config_headers in *"
35376 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
35380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35381 # Files that config.status was made for.
35382 config_files="$ac_config_files"
35383 config_headers="$ac_config_headers"
35384 config_links="$ac_config_links"
35385 config_commands="$ac_config_commands"
35389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35391 \`$as_me' instantiates files and other configuration actions
35392 from templates according to the current configuration. Unless the files
35393 and actions are specified as TAGs, all are instantiated by default.
35395 Usage: $0 [OPTION]... [TAG]...
35397 -h, --help print this help, then exit
35398 -V, --version print version number and configuration settings, then exit
35399 --config print configuration, then exit
35400 -q, --quiet, --silent
35401 do not print progress messages
35402 -d, --debug don't remove temporary files
35403 --recheck update $as_me by reconfiguring in the same conditions
35404 --file=FILE[:TEMPLATE]
35405 instantiate the configuration file FILE
35406 --header=FILE[:TEMPLATE]
35407 instantiate the configuration header FILE
35409 Configuration files:
35412 Configuration headers:
35415 Configuration links:
35418 Configuration commands:
35421 Report bugs to the package provider."
35424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35425 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35428 configured by $0, generated by GNU Autoconf 2.69,
35429 with options \\"\$ac_cs_config\\"
35431 Copyright (C) 2012 Free Software Foundation, Inc.
35432 This config.status script is free software; the Free Software Foundation
35433 gives unlimited permission to copy, distribute and modify it."
35439 test -n "\$AWK" || AWK=awk
35442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35443 # The default lists apply if the user does not specify any file.
35449 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35450 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35454 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35466 # Handling of the options.
35467 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35469 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35470 $as_echo "$ac_cs_version"; exit ;;
35471 --config |
--confi |
--conf |
--con |
--co |
--c )
35472 $as_echo "$ac_cs_config"; exit ;;
35473 --debug |
--debu |
--deb |
--de |
--d |
-d )
35475 --file |
--fil |
--fi |
--f )
35478 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35479 '') as_fn_error $?
"missing file argument" ;;
35481 as_fn_append CONFIG_FILES
" '$ac_optarg'"
35482 ac_need_defaults
=false
;;
35483 --header |
--heade |
--head |
--hea )
35486 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35488 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
35489 ac_need_defaults
=false
;;
35491 # Conflict between --help and --header
35492 as_fn_error $?
"ambiguous option: \`$1'
35493 Try \`$0 --help' for more information.";;
35494 --help |
--hel |
-h )
35495 $as_echo "$ac_cs_usage"; exit ;;
35496 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35497 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35500 # This is an error.
35501 -*) as_fn_error $?
"unrecognized option: \`$1'
35502 Try \`$0 --help' for more information." ;;
35504 *) as_fn_append ac_config_targets
" $1"
35505 ac_need_defaults
=false
;;
35511 ac_configure_extra_args
=
35513 if $ac_cs_silent; then
35515 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35520 if \$ac_cs_recheck; then
35521 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35524 CONFIG_SHELL='$SHELL'
35525 export CONFIG_SHELL
35530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35535 ## Running $as_me. ##
35541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35545 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35546 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35547 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35548 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35550 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35551 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35552 LINGUAS="${LINGUAS-%UNSET%}"
35558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35560 # Handling of arguments.
35561 for ac_config_target
in $ac_config_targets
35563 case $ac_config_target in
35564 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
35565 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
35566 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
35567 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
35568 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
35569 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35570 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
35571 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35572 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35573 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
35574 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
35576 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35581 # If the user did not use the arguments to specify the items to instantiate,
35582 # then the envvar interface is used. Set only those that are not.
35583 # We use the long form for the default assignment because of an extremely
35584 # bizarre bug on SunOS 4.1.3.
35585 if $ac_need_defaults; then
35586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35588 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
35589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35592 # Have a temporary directory for convenience. Make it in the build tree
35593 # simply because there is no reason against having it here, and in addition,
35594 # creating and moving files from /tmp can sometimes cause problems.
35595 # Hook for its removal unless debugging.
35596 # Note that there is a small window in which the directory will not be cleaned:
35597 # after its creation but before its name has been assigned to `$tmp'.
35601 trap 'exit_status=$?
35602 : "${ac_tmp:=$tmp}"
35603 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35605 trap 'as_fn_exit 1' 1 2 13 15
35607 # Create a (secure) tmp directory for tmp files.
35610 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35614 tmp
=.
/conf$$
-$RANDOM
35615 (umask 077 && mkdir
"$tmp")
35616 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
35619 # Set up the scripts for CONFIG_FILES section.
35620 # No need to generate them if there are no CONFIG_FILES.
35621 # This happens for instance with `./config.status config.h'.
35622 if test -n "$CONFIG_FILES"; then
35624 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
35625 ac_cs_awk_getline
=:
35626 ac_cs_awk_pipe_init
=
35627 ac_cs_awk_read_file
='
35628 while ((getline aline < (F[key])) > 0)
35631 ac_cs_awk_pipe_fini
=
35633 ac_cs_awk_getline
=false
35634 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
35635 ac_cs_awk_read_file
='
35637 print "cat " F[key] " &&"
35638 '$ac_cs_awk_pipe_init
35639 # The final `:' finishes the AND list.
35640 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
35642 ac_cr
=`echo X | tr X '\015'`
35643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35644 # But we know of no other shell where ac_cr would be empty at this
35645 # point, so we can use a bashism as a fallback.
35646 if test "x$ac_cr" = x
; then
35647 eval ac_cr
=\$
\'\\r
\'
35649 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35653 ac_cs_awk_cr
=$ac_cr
35656 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35659 # Create commands to substitute file output variables.
35661 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35662 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35663 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
35666 } >conf$
$files.sh
&&
35667 . .
/conf$
$files.sh ||
35668 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
35669 rm -f conf$
$files.sh
35672 echo "cat >conf$$subs.awk <<_ACEOF" &&
35673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35675 } >conf$$subs.sh ||
35676 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35679 for ac_last_try in false false false false false :; do
35680 . ./conf$$subs.sh ||
35681 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35683 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
35684 if test $ac_delim_n = $ac_delim_num; then
35686 elif $ac_last_try; then
35687 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35689 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35692 rm -f conf$$subs.sh
35694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35695 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35699 s/^/S["/; s
/!.
*/"]=/
35709 s/\(.\{148\}\)..*/\1/
35711 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35716 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35723 s/\(.\{148\}\)..*/\1/
35725 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35729 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35734 ' <conf$$subs.awk | sed '
35739 ' >>$CONFIG_STATUS || ac_write_fail=1
35740 rm -f conf$$subs.awk
35741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35743 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35744 for (key in S) S_is_set[key] = 1
35746 \$ac_cs_awk_pipe_init
35750 nfields = split(line, field, "@
")
35752 len = length(field[1])
35753 for (i = 2; i < nfields; i++) {
35755 keylen = length(key)
35756 if (S_is_set[key]) {
35758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35759 len += length(value) + length(field[++i])
35764 if (nfields == 3 && !substed) {
35766 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35767 \$ac_cs_awk_read_file
35773 \$ac_cs_awk_pipe_fini
35776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35777 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35778 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35781 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35782 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35787 # trailing colons and then remove the whole line if VPATH becomes empty
35788 # (actually we leave an empty line to preserve line numbers).
35789 if test "x
$srcdir" = x.; then
35790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35809 fi # test -n "$CONFIG_FILES"
35811 # Set up the scripts for CONFIG_HEADERS section.
35812 # No need to generate them if there are no CONFIG_HEADERS.
35813 # This happens for instance with `./config.status Makefile'.
35814 if test -n "$CONFIG_HEADERS"; then
35815 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35819 # Transform confdefs.h into an awk script `defines.awk', embedded as
35820 # here-document in config.status, that substitutes the proper values into
35821 # config.h.in to produce config.h.
35823 # Create a delimiter string that does not exist in confdefs.h, to ease
35824 # handling of long lines.
35826 for ac_last_try in false false :; do
35827 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35828 if test -z "$ac_tt"; then
35830 elif $ac_last_try; then
35831 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35833 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35837 # For the awk script, D is an array of macro values keyed by name,
35838 # likewise P contains macro parameters if any. Preserve backslash
35839 # newline sequences.
35841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35843 s/.\{148\}/&'"$ac_delim"'/g
35846 s/^[ ]*#[ ]*define[ ][ ]*/ /
35853 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35855 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35860 D["\
1"]=" \
3\\\\\\n
"\\/p
35862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35867 s/.\{148\}/&'"$ac_delim"'/g
35872 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35875 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35877 ' <confdefs.h | sed '
35878 s/'"$ac_delim"'/"\\\
35879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35882 for (key in D) D_is_set[key] = 1
35885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35887 split(line, arg, " ")
35888 if (arg[1] == "#") {
35892 defundef
= substr
(arg
[1], 2)
35895 split(mac1
, mac2
, "(") #)
35897 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35898 if (D_is_set
[macro
]) {
35899 # Preserve the white space surrounding the "#".
35900 print prefix
"define", macro P
[macro
] D
[macro
]
35903 # Replace #undef with comments. This is necessary, for example,
35904 # in the case of _POSIX_SOURCE, which is predefined and required
35905 # on some systems where configure will not decide to define it.
35906 if (defundef
== "undef") {
35907 print
"/*", prefix defundef
, macro
, "*/"
35915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35916 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35917 fi # test -n "$CONFIG_HEADERS"
35920 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35925 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35927 case $ac_mode$ac_tag in
35929 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35930 :[FH
]-) ac_tag
=-:-;;
35931 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35948 -) ac_f
="$ac_tmp/stdin";;
35949 *) # Look for the file first in the build tree, then in the source tree
35950 # (if the path is not absolute). The absolute path cannot be DOS-style,
35951 # because $ac_f cannot contain `:'.
35955 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35957 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35959 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35960 as_fn_append ac_file_inputs
" '$ac_f'"
35963 # Let's still pretend it is `configure' which instantiates (i.e., don't
35964 # use $as_me), people would be surprised to read:
35965 # /* config.h. Generated by config.status. */
35966 configure_input
='Generated from '`
35967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35969 if test x
"$ac_file" != x-
; then
35970 configure_input
="$ac_file. $configure_input"
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35972 $as_echo "$as_me: creating $ac_file" >&6;}
35974 # Neutralize special characters interpreted by sed in replacement strings.
35975 case $configure_input in #(
35976 *\
&* |
*\|
* |
*\\* )
35977 ac_sed_conf_input
=`$as_echo "$configure_input" |
35978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35979 *) ac_sed_conf_input
=$configure_input;;
35983 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
35984 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
35989 ac_dir
=`$as_dirname -- "$ac_file" ||
35990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35991 X"$ac_file" : 'X\(//\)[^/]' \| \
35992 X"$ac_file" : 'X\(//\)$' \| \
35993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35994 $as_echo X"$ac_file" |
35995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35999 /^X\(\/\/\)[^/].*/{
36012 as_dir
="$ac_dir"; as_fn_mkdir_p
36016 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36018 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36019 # A ".." for each directory in $ac_dir_suffix.
36020 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36021 case $ac_top_builddir_sub in
36022 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36023 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36026 ac_abs_top_builddir
=$ac_pwd
36027 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36028 # for backward compatibility:
36029 ac_top_builddir
=$ac_top_build_prefix
36032 .
) # We are building in place.
36034 ac_top_srcdir
=$ac_top_builddir_sub
36035 ac_abs_top_srcdir
=$ac_pwd ;;
36036 [\\/]* | ?
:[\\/]* ) # Absolute name.
36037 ac_srcdir
=$srcdir$ac_dir_suffix;
36038 ac_top_srcdir
=$srcdir
36039 ac_abs_top_srcdir
=$srcdir ;;
36040 *) # Relative name.
36041 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36042 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36043 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36045 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36055 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36056 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36061 # If the template does not know about datarootdir, expand it.
36062 # FIXME: This hack should be removed a few years after 2.60.
36063 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36074 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36075 *datarootdir
*) ac_datarootdir_seen
=yes;;
36076 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36078 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36081 ac_datarootdir_hack='
36082 s&@datadir@&$datadir&g
36083 s&@docdir@&$docdir&g
36084 s&@infodir@&$infodir&g
36085 s&@localedir@&$localedir&g
36086 s&@mandir@&$mandir&g
36087 s&\\\${datarootdir}&$datarootdir&g' ;;
36091 # Neutralize VPATH when `$srcdir' = `.'.
36092 # Shell code in configure.ac might set extrasub.
36093 # FIXME: do we really want to maintain this feature?
36094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36095 ac_sed_extra="$ac_vpsub
36098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36100 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36101 s|@configure_input@|
$ac_sed_conf_input|
;t t
36102 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36103 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
36104 s
&@srcdir@
&$ac_srcdir&;t t
36105 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36106 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36107 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36108 s
&@builddir@
&$ac_builddir&;t t
36109 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36110 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36111 s
&@INSTALL@
&$ac_INSTALL&;t t
36112 $ac_datarootdir_hack
36114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36115 if $ac_cs_awk_getline; then
36116 $AWK -f "$ac_tmp/subs.
awk"
36118 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
36120 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
36122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
36124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36125 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
36126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36127 which seems to be undefined. Please make sure it is defined" >&5
36128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36129 which seems to be undefined. Please make sure it is defined" >&2;}
36131 rm -f "$ac_tmp/stdin"
36133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36142 if test x"$ac_file" != x-; then
36144 $as_echo "/* $configure_input */" \
36145 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36146 } >"$ac_tmp/config.h" \
36147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36148 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36149 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36150 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36153 mv "$ac_tmp/config.h" "$ac_file" \
36154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36157 $as_echo "/* $configure_input */" \
36158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36159 || as_fn_error $? "could not create -" "$LINENO" 5
36167 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
36170 # Prefer the file from the source tree if names are identical.
36171 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36172 ac_source=$srcdir/$ac_source
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36176 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36178 if test ! -r "$ac_source"; then
36179 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36183 # Try a relative symlink, then a hard link, then a copy.
36185 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36186 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36188 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36189 ln "$ac_source" "$ac_file" 2>/dev/null ||
36190 cp -p "$ac_source" "$ac_file" ||
36191 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36194 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36195 $as_echo "$as_me: executing $ac_file commands" >&6;}
36200 case $ac_file$ac_mode in
36201 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36203 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36204 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36206 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36209 for ac_file in $CONFIG_FILES; do
36210 # Support "outfile[:infile[:infile...]]"
36212 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
36214 # PO directories have a Makefile.in generated from Makefile.in.in.
36215 case "$ac_file" in */Makefile.in)
36216 # Adjust a relative srcdir.
36217 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
36218 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
36219 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
36220 # In autoconf-2.13 it is called $ac_given_srcdir.
36221 # In autoconf-2.50 it is called $srcdir.
36222 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36223 case "$ac_given_srcdir" in
36224 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
36225 /*) top_srcdir="$ac_given_srcdir" ;;
36226 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36228 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36229 rm -f "$ac_dir/POTFILES"
36230 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36231 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36232 POMAKEFILEDEPS="POTFILES.in"
36233 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36234 # on $ac_dir but don't depend on user-specified configuration
36236 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36237 # The LINGUAS file contains the set of available languages.
36238 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36239 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36241 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36242 # Hide the ALL_LINGUAS assigment from automake.
36243 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36244 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36246 # The set of available languages was given in configure.ac.
36247 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36249 case "$ac_given_srcdir" in
36251 *) srcdirpre
='$(srcdir)/' ;;
36257 for lang
in $ALL_LINGUAS; do
36258 POFILES
="$POFILES $srcdirpre$lang.po"
36259 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36260 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36261 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36263 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36264 # environment variable.
36266 if test -n "$ALL_LINGUAS"; then
36267 for presentlang
in $ALL_LINGUAS; do
36269 if test "%UNSET%" != "$LINGUAS"; then
36270 desiredlanguages
="$LINGUAS"
36272 desiredlanguages
="$ALL_LINGUAS"
36274 for desiredlang
in $desiredlanguages; do
36275 # Use the presentlang catalog if desiredlang is
36276 # a. equal to presentlang, or
36277 # b. a variant of presentlang (because in this case,
36278 # presentlang can be used as a fallback for messages
36279 # which are not translated in the desiredlang catalog).
36280 case "$desiredlang" in
36281 "$presentlang"*) useit
=yes;;
36284 if test $useit = yes; then
36285 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36290 if test -n "$INST_LINGUAS"; then
36291 for lang
in $INST_LINGUAS; do
36292 CATALOGS
="$CATALOGS $lang.gmo"
36295 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36296 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36297 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36298 if test -f "$f"; then
36300 *.orig |
*.bak |
*~
) ;;
36301 *) cat "$f" >> "$ac_dir/Makefile" ;;
36309 "as":F
) chmod +x as
;;
36310 "collect-ld":F
) chmod +x collect-ld
;;
36311 "nm":F
) chmod +x nm
;;
36312 "dsymutil":F
) chmod +x dsymutil
;;
36314 case ${CONFIG_HEADERS} in
36315 *auto-host.h
:config.
in*)
36318 # Make sure all the subdirs exist.
36319 for d
in $subdirs doc build common c-family
36321 test -d $d || mkdir
$d
36331 ac_clean_files
=$ac_clean_files_save
36333 test $ac_write_fail = 0 ||
36334 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36337 # configure is writing to config.log, and then calls config.status.
36338 # config.status does its own redirection, appending to config.log.
36339 # Unfortunately, on DOS this fails, as config.log is still kept open
36340 # by configure, so config.status won't be able to write to it; its
36341 # output is simply discarded. So we exec the FD to /dev/null,
36342 # effectively closing config.log, so it can be properly (re)opened and
36343 # appended to by config.status. When coming back to configure, we
36344 # need to make the FD available again.
36345 if test "$no_create" != yes; then
36347 ac_config_status_args
=
36348 test "$silent" = yes &&
36349 ac_config_status_args
="$ac_config_status_args --quiet"
36351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36354 # would make configure fail if this is the last instruction.
36355 $ac_cs_success || as_fn_exit
1
36357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}