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
=
7688 if test x
$ac_valgrind_checking != x
; then
7690 # Prepare PATH_SEPARATOR.
7691 # The user is always right.
7692 if test "${PATH_SEPARATOR+set}" != set; then
7693 echo "#! /bin/sh" >conf$$.sh
7694 echo "exit 0" >>conf$$.sh
7696 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7704 # Find out how to test for executable files. Don't use a zero-byte file,
7705 # as systems may use methods other than mode bits to determine executability.
7706 cat >conf$$.
file <<_ASEOF
7710 chmod +x conf$$.
file
7711 if test -x conf$$.
file >/dev
/null
2>&1; then
7712 ac_executable_p
="test -x"
7714 ac_executable_p
="test -f"
7718 # Extract the first word of "valgrind", so it can be a program name with args.
7719 set dummy valgrind
; ac_word
=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_path_valgrind_path+:} false
; then :
7723 $as_echo_n "(cached) " >&6
7725 case "$valgrind_path" in
7727 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7730 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7731 for ac_dir
in $PATH; do
7733 test -z "$ac_dir" && ac_dir
=.
7734 for ac_exec_ext
in '' $ac_executable_extensions; do
7735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7736 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7737 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7747 valgrind_path
="$ac_cv_path_valgrind_path"
7748 if test -n "$valgrind_path"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7750 $as_echo "$valgrind_path" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7756 if test "x$valgrind_path" = "x"; then
7757 as_fn_error $?
"*** Cannot find valgrind" "$LINENO" 5
7759 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7760 valgrind_command
="$valgrind_path -q"
7762 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7768 # Enable code coverage collection
7769 # Check whether --enable-coverage was given.
7770 if test "${enable_coverage+set}" = set; then :
7771 enableval
=$enable_coverage; case "${enableval}" in
7773 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7776 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7779 # a.k.a. --disable-coverage
7783 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7792 # Check whether --enable-gather-detailed-mem-stats was given.
7793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7794 enableval
=$enable_gather_detailed_mem_stats;
7796 enable_gather_detailed_mem_stats
=no
7799 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7801 cat >>confdefs.h
<<_ACEOF
7802 #define GATHER_STATISTICS $gather_stats
7806 # Check whether --enable-valgrind-annotations was given.
7807 if test "${enable_valgrind_annotations+set}" = set; then :
7808 enableval
=$enable_valgrind_annotations;
7810 enable_valgrind_annotations
=no
7813 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7814 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
7819 if test x
$enable_valgrind_annotations != xno \
7820 ||
test x
$ac_valgrind_checking != x
; then
7821 if test $ac_cv_header_valgrind_memcheck_h = no
; then
7822 as_fn_error $?
"*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7825 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7829 # -------------------------------
7830 # Miscenalleous configure options
7831 # -------------------------------
7833 # Determine whether or not multilibs are enabled.
7834 # Check whether --enable-multilib was given.
7835 if test "${enable_multilib+set}" = set; then :
7836 enableval
=$enable_multilib;
7843 # Determine whether or not multiarch is enabled.
7844 # Check whether --enable-multiarch was given.
7845 if test "${enable_multiarch+set}" = set; then :
7846 enableval
=$enable_multiarch; case "${enableval}" in
7847 yes|no|auto
) enable_multiarch
=$enableval;;
7848 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7851 enable_multiarch
=auto
7854 if test x
${enable_multiarch} = xauto
; then
7855 if test x
${with_native_system_header_dir} != x
; then
7856 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7859 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7860 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7864 if test x
${enable_multiarch} = xyes
; then
7866 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7870 $as_echo_n "checking for multiarch configuration... " >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7873 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7875 # needed for setting the multiarch name for soft-float/hard-float ABIs
7879 # default stack clash protection guard size as power of twos in bytes.
7880 # Please keep these in sync with params.def.
7884 # Keep the default value when the option is not used to 0, this allows us to
7885 # distinguish between the cases where the user specifially set a value via
7886 # configure and when the normal default value is used.
7888 # Check whether --with-stack-clash-protection-guard-size was given.
7889 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7890 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7892 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7895 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7896 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7897 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7898 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
7902 cat >>confdefs.h
<<_ACEOF
7903 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7907 # Specify the number of splits of match.pd to generate.
7909 # Check whether --with-matchpd-partitions was given.
7910 if test "${with_matchpd_partitions+set}" = set; then :
7911 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7913 DEFAULT_MATCHPD_PARTITIONS
=10
7916 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7917 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7922 # Specify the number of splits of insn-emit.cc to generate.
7924 # Check whether --with-insnemit-partitions was given.
7925 if test "${with_insnemit_partitions+set}" = set; then :
7926 withval
=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS
="$with_insnemit_partitions"
7928 DEFAULT_INSNEMIT_PARTITIONS
=10
7931 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7932 as_fn_error $?
"Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7937 # Enable __cxa_atexit for C++.
7938 # Check whether --enable-__cxa_atexit was given.
7939 if test "${enable___cxa_atexit+set}" = set; then :
7940 enableval
=$enable___cxa_atexit;
7944 # Enable C extension for decimal float if target supports it.
7946 # Check whether --enable-decimal-float was given.
7947 if test "${enable_decimal_float+set}" = set; then :
7948 enableval
=$enable_decimal_float;
7949 case $enable_decimal_float in
7950 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7951 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7952 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7959 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7960 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7961 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7962 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7963 enable_decimal_float
=yes
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7967 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7968 enable_decimal_float
=no
7975 # x86's use BID format instead of DPD
7976 case x
$enable_decimal_float in
7979 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7980 enable_decimal_float
=bid
7983 enable_decimal_float
=dpd
7986 default_decimal_float
=$enable_decimal_float
7989 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7990 # dependency on libdecnumber.
7991 default_decimal_float
=dpd
7998 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h
<<_ACEOF
8001 #define ENABLE_DECIMAL_FLOAT $dfp
8005 # Use default_decimal_float for dependency.
8006 enable_decimal_float
=$default_decimal_float
8008 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8010 cat >>confdefs.h
<<_ACEOF
8011 #define ENABLE_DECIMAL_BID_FORMAT $bid
8015 # Enable C extension for fixed-point arithmetic.
8016 # Check whether --enable-fixed-point was given.
8017 if test "${enable_fixed_point+set}" = set; then :
8018 enableval
=$enable_fixed_point;
8023 enable_fixed_point
=yes
8027 enable_fixed_point
=yes
8030 enable_fixed_point
=yes
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8034 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8035 enable_fixed_point
=no
8043 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8045 cat >>confdefs.h
<<_ACEOF
8046 #define ENABLE_FIXED_POINT $fixedpoint
8051 # Pass with no value to take the default
8052 # Pass with a value to specify a thread package
8053 # Check whether --enable-threads was given.
8054 if test "${enable_threads+set}" = set; then :
8055 enableval
=$enable_threads;
8061 # Check whether --enable-tls was given.
8062 if test "${enable_tls+set}" = set; then :
8063 enableval
=$enable_tls;
8066 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8067 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8075 # Check whether --enable-vtable-verify was given.
8076 if test "${enable_vtable_verify+set}" = set; then :
8077 enableval
=$enable_vtable_verify;
8079 enable_vtable_verify
=no
8082 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8084 cat >>confdefs.h
<<_ACEOF
8085 #define ENABLE_VTABLE_VERIFY $vtable_verify
8089 # Check whether --enable-analyzer was given.
8090 if test "${enable_analyzer+set}" = set; then :
8091 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8101 cat >>confdefs.h
<<_ACEOF
8102 #define ENABLE_ANALYZER $analyzer
8106 # Check whether --enable-objc-gc was given.
8107 if test "${enable_objc_gc+set}" = set; then :
8108 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8119 # Check whether --with-dwarf2 was given.
8120 if test "${with_dwarf2+set}" = set; then :
8121 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8127 # Check whether --enable-shared was given.
8128 if test "${enable_shared+set}" = set; then :
8129 enableval
=$enable_shared;
8130 case $enable_shared in
8134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8135 for pkg
in $enableval; do
8136 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8150 # Check whether --enable-gcov was given.
8151 if test "${enable_gcov+set}" = set; then :
8152 enableval
=$enable_gcov;
8168 # Check whether --with-specs was given.
8169 if test "${with_specs+set}" = set; then :
8170 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8180 # Check whether --with-pkgversion was given.
8181 if test "${with_pkgversion+set}" = set; then :
8182 withval
=$with_pkgversion; case "$withval" in
8183 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8185 *) PKGVERSION
="($withval) " ;;
8196 # Check whether --with-bugurl was given.
8197 if test "${with_bugurl+set}" = set; then :
8198 withval
=$with_bugurl; case "$withval" in
8199 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8202 *) BUGURL
="$withval"
8206 BUGURL
="https://gcc.gnu.org/bugs/"
8216 REPORT_BUGS_TO
="<$BUGURL>"
8217 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8224 # Allow overriding the default URL for documentation
8226 # Check whether --with-documentation-root-url was given.
8227 if test "${with_documentation_root_url+set}" = set; then :
8228 withval
=$with_documentation_root_url; case "$withval" in
8229 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8230 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8231 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8232 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8235 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8240 cat >>confdefs.h
<<_ACEOF
8241 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8245 # Allow overriding the default URL for GCC changes
8247 # Check whether --with-changes-root-url was given.
8248 if test "${with_changes_root_url+set}" = set; then :
8249 withval
=$with_changes_root_url; case "$withval" in
8250 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8251 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8252 */) CHANGES_ROOT_URL
="$withval" ;;
8253 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8256 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8261 cat >>confdefs.h
<<_ACEOF
8262 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8266 # Sanity check enable_languages in case someone does not run the toplevel
8267 # configure # script.
8268 # Check whether --enable-languages was given.
8269 if test "${enable_languages+set}" = set; then :
8270 enableval
=$enable_languages; case ,${enable_languages}, in
8272 # go safe -- we cannot be much sure without the toplevel
8274 # analysis of which target libs are present and usable
8278 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8283 enable_languages
=c
,${enable_languages}
8291 # If top-level libada has been disabled, then wire in install-gnatlib
8292 # invocation with `make install', so that one can build and install
8293 # the library manually with `make -C gcc all gnatlib gnattools install'.
8294 if test x
"$enable_libada" = xno
; then
8295 gnat_install_lib
=gnat-install-lib
8301 if test x
"$enable_as_accelerator_for" != x
; then
8303 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8305 enable_as_accelerator
=yes
8306 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8307 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8308 accel_dir_suffix
=/accel
/${target_noncanonical}
8309 real_target_noncanonical
=${enable_as_accelerator_for}
8315 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8316 tgt
=`echo $tgt | sed 's/=.*//'`
8321 omp_device_property
=omp-device-properties-gcn
8322 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8325 omp_device_property
=omp-device-properties-nvptx
8326 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8329 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8332 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8333 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8335 if test x
"$offload_targets" = x
; then
8336 offload_targets
=$tgt
8338 offload_targets
="$offload_targets,$tgt"
8345 cat >>confdefs.h
<<_ACEOF
8346 #define OFFLOAD_TARGETS "$offload_targets"
8349 if test x
"$enable_offloading" != x
; then
8351 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8355 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8359 if test "x$enable_offload_defaulted" = xyes
; then
8361 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8366 # Check whether --with-multilib-list was given.
8367 if test "${with_multilib_list+set}" = set; then :
8368 withval
=$with_multilib_list; :
8370 with_multilib_list
=default
8375 # Check whether --with-multilib-generator was given.
8376 if test "${with_multilib_generator+set}" = set; then :
8377 withval
=$with_multilib_generator; :
8379 with_multilib_generator
=default
8383 # -------------------------
8384 # Checks for other programs
8385 # -------------------------
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8390 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8391 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8392 $as_echo_n "(cached) " >&6
8394 cat >conftest.
make <<\_ACEOF
8397 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8402 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8404 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8408 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8415 SET_MAKE
="MAKE=${MAKE-make}"
8419 # Find some useful tools
8420 for ac_prog
in gawk mawk nawk
awk
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy
$ac_prog; ac_word
=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_AWK+:} false
; then :
8427 $as_echo_n "(cached) " >&6
8429 if test -n "$AWK"; then
8430 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8436 test -z "$as_dir" && as_dir
=.
8437 for ac_exec_ext
in '' $ac_executable_extensions; do
8438 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_AWK
="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 if test -n "$AWK"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8452 $as_echo "$AWK" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8459 test -n "$AWK" && break
8462 # We need awk to create options.cc and options.h.
8463 # Bail out if it's missing.
8465 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8469 $as_echo_n "checking whether ln -s works... " >&6; }
8470 if ${gcc_cv_prog_LN_S+:} false
; then :
8471 $as_echo_n "(cached) " >&6
8473 rm -f conftestdata_t
8474 echo >conftestdata_f
8475 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8477 gcc_cv_prog_LN_S
="ln -s"
8479 if ln conftestdata_f conftestdata_t
2>/dev
/null
8483 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8485 gcc_cv_prog_LN_S
="cp -p"
8491 rm -f conftestdata_f conftestdata_t
8494 LN_S
="$gcc_cv_prog_LN_S"
8495 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8497 $as_echo "yes" >&6; }
8499 if test "$gcc_cv_prog_LN_S" = "ln"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8501 $as_echo "no, using ln" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8504 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8509 $as_echo_n "checking whether ln works... " >&6; }
8510 if ${acx_cv_prog_LN+:} false
; then :
8511 $as_echo_n "(cached) " >&6
8513 rm -f conftestdata_t
8514 echo >conftestdata_f
8515 if ln conftestdata_f conftestdata_t
2>/dev
/null
8521 rm -f conftestdata_f conftestdata_t
8524 if test $acx_cv_prog_LN = no
; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8527 $as_echo "no, using $LN" >&6; }
8529 LN
="$acx_cv_prog_LN"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531 $as_echo "yes" >&6; }
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8536 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_RANLIB+:} false
; then :
8540 $as_echo_n "(cached) " >&6
8542 if test -n "$RANLIB"; then
8543 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir
=.
8550 for ac_exec_ext
in '' $ac_executable_extensions; do
8551 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 RANLIB
=$ac_cv_prog_RANLIB
8563 if test -n "$RANLIB"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8565 $as_echo "$RANLIB" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 if test -z "$ac_cv_prog_RANLIB"; then
8574 ac_ct_RANLIB
=$RANLIB
8575 # Extract the first word of "ranlib", so it can be a program name with args.
8576 set dummy ranlib
; ac_word
=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8580 $as_echo_n "(cached) " >&6
8582 if test -n "$ac_ct_RANLIB"; then
8583 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir
=.
8590 for ac_exec_ext
in '' $ac_executable_extensions; do
8591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8603 if test -n "$ac_ct_RANLIB"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8605 $as_echo "$ac_ct_RANLIB" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8611 if test "x$ac_ct_RANLIB" = x
; then
8614 case $cross_compiling:$ac_tool_warned in
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned
=yes ;;
8620 RANLIB
=$ac_ct_RANLIB
8623 RANLIB
="$ac_cv_prog_RANLIB"
8629 # Find a good install program. We prefer a C program (faster),
8630 # so one script is as good as another. But avoid the broken or
8631 # incompatible versions:
8632 # SysV /etc/install, /usr/sbin/install
8633 # SunOS /usr/etc/install
8634 # IRIX /sbin/install
8636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8638 # ./install, which can be erroneously created by make from ./install.sh.
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8640 $as_echo_n "checking for a BSD compatible install... " >&6; }
8641 if test -z "$INSTALL"; then
8642 if ${ac_cv_path_install+:} false
; then :
8643 $as_echo_n "(cached) " >&6
8645 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8646 for ac_dir
in $PATH; do
8647 # Account for people who put trailing slashes in PATH elements.
8649 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8651 # OSF1 and SCO ODT 3.0 have their own names for install.
8652 for ac_prog
in ginstall scoinst
install; do
8653 if test -f $ac_dir/$ac_prog; then
8654 if test $ac_prog = install &&
8655 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8656 # AIX install. It has an incompatible calling convention.
8657 # OSF/1 installbsd also uses dspmsg, but is usable.
8660 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8671 if test "${ac_cv_path_install+set}" = set; then
8672 INSTALL
="$ac_cv_path_install"
8674 # As a last resort, use the slow shell script. We don't cache a
8675 # path for INSTALL within a source directory, because that will
8676 # break other packages using the cache if that directory is
8677 # removed, or if the path is relative.
8678 INSTALL
="$ac_install_sh"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8682 $as_echo "$INSTALL" >&6; }
8684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8685 # It thinks the first close brace ends the variable substitution.
8686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8688 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8691 # See if cmp has --ignore-initial.
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8693 $as_echo_n "checking for cmp's capabilities... " >&6; }
8694 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8695 $as_echo_n "(cached) " >&6
8699 gcc_cv_prog_cmp_skip
=slowcompare
8700 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8701 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8704 gcc_cv_prog_cmp_skip
=gnucompare
8707 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8708 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8709 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8712 gcc_cv_prog_cmp_skip
=fastcompare
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8720 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8721 make_compare_target
=$gcc_cv_prog_cmp_skip
8725 # See if we have the mktemp command.
8726 # Extract the first word of "mktemp", so it can be a program name with args.
8727 set dummy mktemp
; ac_word
=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$have_mktemp_command"; then
8734 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir
=.
8741 for ac_exec_ext
in '' $ac_executable_extensions; do
8742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_have_mktemp_command
="yes"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8754 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8755 if test -n "$have_mktemp_command"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8757 $as_echo "$have_mktemp_command" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 # See if makeinfo has been installed and is modern enough
8766 # that we can use it.
8768 # Extract the first word of "makeinfo", so it can be a program name with args.
8769 set dummy makeinfo
; ac_word
=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8773 $as_echo_n "(cached) " >&6
8775 if test -n "$MAKEINFO"; then
8776 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir
=.
8783 for ac_exec_ext
in '' $ac_executable_extensions; do
8784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_MAKEINFO
="makeinfo"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 MAKEINFO
=$ac_cv_prog_MAKEINFO
8796 if test -n "$MAKEINFO"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8798 $as_echo "$MAKEINFO" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8805 if test -n "$MAKEINFO"; then
8806 # Found it, now check the version.
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8808 $as_echo_n "checking for modern makeinfo... " >&6; }
8809 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8810 $as_echo_n "(cached) " >&6
8812 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8813 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8815 case $ac_prog_version in
8816 '') gcc_cv_prog_makeinfo_modern
=no
;;
8817 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8818 *) gcc_cv_prog_makeinfo_modern
=no
;;
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8823 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8825 gcc_cv_prog_makeinfo_modern
=no
8827 if test $gcc_cv_prog_makeinfo_modern = no
; then
8828 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8831 if test $gcc_cv_prog_makeinfo_modern = no
; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8833 *** Makeinfo is missing or too old.
8834 *** Info documentation will not be built." >&5
8835 $as_echo "$as_me: WARNING:
8836 *** Makeinfo is missing or too old.
8837 *** Info documentation will not be built." >&2;}
8844 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8845 # If it does, we want to pass it to makeinfo in order to restore the old
8846 # behavior of @{summary,}contents placement.
8847 MAKEINFO_TOC_INLINE_FLAG
=
8848 if test x
"$MAKEINFO" != x
; then :
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8851 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8852 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8853 $as_echo_n "(cached) " >&6
8856 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8857 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8858 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8859 gcc_cv_texi_add_toc_inline_flags
=no
8861 gcc_cv_texi_add_toc_inline_flags
=yes
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8866 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8867 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8868 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8874 # Is pod2man recent enough to regenerate manpages?
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8876 $as_echo_n "checking for recent Pod::Man... " >&6; }
8877 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8879 $as_echo "yes" >&6; }
8880 GENERATED_MANPAGES
=generated-manpages
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8888 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy
$ac_prog; ac_word
=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_FLEX+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8900 if test -n "$FLEX"; then
8901 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8907 test -z "$as_dir" && as_dir
=.
8908 for ac_exec_ext
in '' $ac_executable_extensions; do
8909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_FLEX
="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 FLEX
=$ac_cv_prog_FLEX
8921 if test -n "$FLEX"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8923 $as_echo "$FLEX" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$FLEX" && break
8932 test -n "$FLEX" || FLEX
="$MISSING flex"
8936 for ac_prog
in bison
8938 # Extract the first word of "$ac_prog", so it can be a program name with args.
8939 set dummy
$ac_prog; ac_word
=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_BISON+:} false
; then :
8943 $as_echo_n "(cached) " >&6
8945 if test -n "$BISON"; then
8946 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir
=.
8953 for ac_exec_ext
in '' $ac_executable_extensions; do
8954 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_BISON
="$ac_prog"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 BISON
=$ac_cv_prog_BISON
8966 if test -n "$BISON"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8968 $as_echo "$BISON" >&6; }
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 test -n "$BISON" && break
8977 test -n "$BISON" || BISON
="$MISSING bison"
8982 # Extract the first word of "python3", so it can be a program name with args.
8983 set dummy python3
; ac_word
=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if ${ac_cv_prog_PYTHON+:} false
; then :
8987 $as_echo_n "(cached) " >&6
8989 if test -n "$PYTHON"; then
8990 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8996 test -z "$as_dir" && as_dir
=.
8997 for ac_exec_ext
in '' $ac_executable_extensions; do
8998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8999 ac_cv_prog_PYTHON
="python3"
9000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 PYTHON
=$ac_cv_prog_PYTHON
9010 if test -n "$PYTHON"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9012 $as_echo "$PYTHON" >&6; }
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9019 if test -n "$PYTHON"; then
9020 # Found it, now check the version.
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9022 $as_echo_n "checking for modern python3... " >&6; }
9023 if ${gcc_cv_prog_python3_modern+:} false
; then :
9024 $as_echo_n "(cached) " >&6
9026 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9027 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9029 case $ac_prog_version in
9030 '') gcc_cv_prog_python3_modern
=no
;;
9031 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9032 *) gcc_cv_prog_python3_modern
=no
;;
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9037 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9039 gcc_cv_prog_python3_modern
=no
9041 if test $gcc_cv_prog_python3_modern = no
; then
9042 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9045 if test $gcc_cv_prog_python3_modern = no
; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9047 *** Python3 is missing.
9048 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9049 $as_echo "$as_me: WARNING:
9050 *** Python3 is missing.
9051 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9058 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9059 # check for build == host before using them.
9062 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9063 && test -d ..
/binutils
; then
9064 NM
='${objdir}/../binutils/nm-new'
9066 # Extract the first word of "nm", so it can be a program name with args.
9067 set dummy nm
; ac_word
=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_prog_NM+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 if test -n "$NM"; then
9074 ac_cv_prog_NM
="$NM" # Let the user override the test.
9076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9080 test -z "$as_dir" && as_dir
=.
9081 for ac_exec_ext
in '' $ac_executable_extensions; do
9082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9095 if test -n "$NM"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9097 $as_echo "$NM" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9107 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9108 && test -d ..
/binutils
; then
9109 AR
='${objdir}/../binutils/ar'
9111 # Extract the first word of "ar", so it can be a program name with args.
9112 set dummy
ar; ac_word
=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_prog_AR+:} false
; then :
9116 $as_echo_n "(cached) " >&6
9118 if test -n "$AR"; then
9119 ac_cv_prog_AR
="$AR" # Let the user override the test.
9121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9125 test -z "$as_dir" && as_dir
=.
9126 for ac_exec_ext
in '' $ac_executable_extensions; do
9127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9140 if test -n "$AR"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9142 $as_echo "$AR" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9151 # The jit documentation looks better if built with sphinx, but can be
9152 # built with texinfo if sphinx is not available.
9153 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9154 # Extract the first word of "sphinx-build", so it can be a program name with args.
9155 set dummy sphinx-build
; ac_word
=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9159 $as_echo_n "(cached) " >&6
9161 if test -n "$doc_build_sys"; then
9162 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9168 test -z "$as_dir" && as_dir
=.
9169 for ac_exec_ext
in '' $ac_executable_extensions; do
9170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_doc_build_sys
="sphinx"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9182 doc_build_sys
=$ac_cv_prog_doc_build_sys
9183 if test -n "$doc_build_sys"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9185 $as_echo "$doc_build_sys" >&6; }
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9193 # --------------------
9194 # Checks for C headers
9195 # --------------------
9197 # Need to reject headers which give warnings, so that the -Werror bootstrap
9198 # works later. *sigh* This needs to come before all header checks.
9200 ac_c_preproc_warn_flag
=yes
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9203 $as_echo_n "checking for ANSI C header files... " >&6; }
9204 if ${ac_cv_header_stdc+:} false
; then :
9205 $as_echo_n "(cached) " >&6
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9222 if ac_fn_cxx_try_compile
"$LINENO"; then :
9223 ac_cv_header_stdc
=yes
9225 ac_cv_header_stdc
=no
9227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9237 $EGREP "memchr" >/dev
/null
2>&1; then :
9240 ac_cv_header_stdc
=no
9246 if test $ac_cv_header_stdc = yes; then
9247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9254 $EGREP "free" >/dev
/null
2>&1; then :
9257 ac_cv_header_stdc
=no
9263 if test $ac_cv_header_stdc = yes; then
9264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9265 if test "$cross_compiling" = yes; then :
9268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9272 #if ((' ' & 0x0FF) == 0x020)
9273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9276 # define ISLOWER(c) \
9277 (('a' <= (c) && (c) <= 'i') \
9278 || ('j' <= (c) && (c) <= 'r') \
9279 || ('s' <= (c) && (c) <= 'z'))
9280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9288 for (i = 0; i < 256; i++)
9289 if (XOR (islower (i), ISLOWER (i))
9290 || toupper (i) != TOUPPER (i))
9295 if ac_fn_cxx_try_run
"$LINENO"; then :
9298 ac_cv_header_stdc
=no
9300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9307 $as_echo "$ac_cv_header_stdc" >&6; }
9308 if test $ac_cv_header_stdc = yes; then
9310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9315 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9316 if ${ac_cv_header_time+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #include <sys/types.h>
9322 #include <sys/time.h>
9328 if ((struct tm *) 0)
9334 if ac_fn_cxx_try_compile
"$LINENO"; then :
9335 ac_cv_header_time
=yes
9337 ac_cv_header_time
=no
9339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9342 $as_echo "$ac_cv_header_time" >&6; }
9343 if test $ac_cv_header_time = yes; then
9345 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9350 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9351 if ${gcc_cv_header_string+:} false
; then :
9352 $as_echo_n "(cached) " >&6
9354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 #include <strings.h>
9366 if ac_fn_cxx_try_compile
"$LINENO"; then :
9367 gcc_cv_header_string
=yes
9369 gcc_cv_header_string
=no
9371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9374 $as_echo "$gcc_cv_header_string" >&6; }
9375 if test $gcc_cv_header_string = yes; then
9377 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9382 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9383 if ${ac_cv_header_sys_wait_h+:} false
; then :
9384 $as_echo_n "(cached) " >&6
9386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/wait.h>
9391 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9394 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9407 if ac_fn_cxx_try_compile
"$LINENO"; then :
9408 ac_cv_header_sys_wait_h
=yes
9410 ac_cv_header_sys_wait_h
=no
9412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9415 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9416 if test $ac_cv_header_sys_wait_h = yes; then
9418 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9423 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9424 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9425 $as_echo_n "(cached) " >&6
9427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <sys/types.h>
9430 #include <termios.h>
9436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9437 $EGREP "yes" >/dev
/null
2>&1; then :
9438 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9440 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9446 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9448 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9450 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9451 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9452 $as_echo_n "(cached) " >&6
9454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 #include <sys/types.h>
9457 #include <sys/ioctl.h>
9463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "yes" >/dev
/null
2>&1; then :
9465 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9467 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9473 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9475 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9477 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9482 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9483 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9484 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9485 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9487 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9489 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9490 cat >>confdefs.h
<<_ACEOF
9491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 # Check for thread headers.
9499 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9500 if test "x$ac_cv_header_thread_h" = xyes
; then :
9506 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9507 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9514 # These tests can't be done till we know if we have limits.h.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9516 $as_echo_n "checking for CHAR_BIT... " >&6; }
9517 if ${gcc_cv_decl_char_bit+:} false
; then :
9518 $as_echo_n "(cached) " >&6
9520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #ifdef HAVE_LIMITS_H
9529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9530 $EGREP "found" >/dev
/null
2>&1; then :
9531 gcc_cv_decl_char_bit
=yes
9533 gcc_cv_decl_char_bit
=no
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9540 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9541 if test $gcc_cv_decl_char_bit = no
; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9543 $as_echo_n "checking number of bits in a byte... " >&6; }
9544 if ${gcc_cv_c_nbby+:} false
; then :
9545 $as_echo_n "(cached) " >&6
9549 while test $i -lt 65; do
9550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9557 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9558 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9564 if ac_fn_cxx_try_compile
"$LINENO"; then :
9565 gcc_cv_c_nbby
=$i; break
9567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9570 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9574 $as_echo "$gcc_cv_c_nbby" >&6; }
9575 if test $gcc_cv_c_nbby = failed
; then
9576 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9579 cat >>confdefs.h
<<_ACEOF
9580 #define CHAR_BIT $gcc_cv_c_nbby
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9587 if ${ac_cv_c_bigendian+:} false
; then :
9588 $as_echo_n "(cached) " >&6
9590 ac_cv_c_bigendian
=unknown
9591 # See if we're dealing with a universal compiler.
9592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #ifndef __APPLE_CC__
9595 not a universal capable compiler
9600 if ac_fn_cxx_try_compile
"$LINENO"; then :
9602 # Check for potential -arch flags. It is not universal unless
9603 # there are at least two -arch flags with different values.
9606 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9607 if test -n "$ac_prev"; then
9609 i?
86 | x86_64 | ppc | ppc64
)
9610 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9613 ac_cv_c_bigendian
=universal
9619 elif test "x$ac_word" = "x-arch"; then
9624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9625 if test $ac_cv_c_bigendian = unknown
; then
9626 # See if sys/param.h defines the BYTE_ORDER macro.
9627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/param.h>
9635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9645 if ac_fn_cxx_try_compile
"$LINENO"; then :
9646 # It does; now see whether it defined to BIG_ENDIAN or not.
9647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649 #include <sys/types.h>
9650 #include <sys/param.h>
9655 #if BYTE_ORDER != BIG_ENDIAN
9663 if ac_fn_cxx_try_compile
"$LINENO"; then :
9664 ac_cv_c_bigendian
=yes
9666 ac_cv_c_bigendian
=no
9668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9672 if test $ac_cv_c_bigendian = unknown
; then
9673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9689 if ac_fn_cxx_try_compile
"$LINENO"; then :
9690 # It does; now see whether it defined to _BIG_ENDIAN or not.
9691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9706 if ac_fn_cxx_try_compile
"$LINENO"; then :
9707 ac_cv_c_bigendian
=yes
9709 ac_cv_c_bigendian
=no
9711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9715 if test $ac_cv_c_bigendian = unknown
; then
9716 # Compile a test program.
9717 if test "$cross_compiling" = yes; then :
9718 # Try to guess by grepping values from an object file.
9719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 short int ascii_mm[] =
9722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9723 short int ascii_ii[] =
9724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9725 int use_ascii (int i) {
9726 return ascii_mm[i] + ascii_ii[i];
9728 short int ebcdic_ii[] =
9729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9730 short int ebcdic_mm[] =
9731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9732 int use_ebcdic (int i) {
9733 return ebcdic_mm[i] + ebcdic_ii[i];
9740 return use_ascii (foo) == use_ebcdic (foo);
9745 if ac_fn_cxx_try_compile
"$LINENO"; then :
9746 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9747 ac_cv_c_bigendian
=yes
9749 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9750 if test "$ac_cv_c_bigendian" = unknown
; then
9751 ac_cv_c_bigendian
=no
9753 # finding both strings is unlikely to happen, but who knows?
9754 ac_cv_c_bigendian
=unknown
9758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 $ac_includes_default
9767 /* Are we little or big endian? From Harbison&Steele. */
9771 char c[sizeof (long int)];
9774 return u.c[sizeof (long int) - 1] == 1;
9780 if ac_fn_cxx_try_run
"$LINENO"; then :
9781 ac_cv_c_bigendian
=no
9783 ac_cv_c_bigendian
=yes
9785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9792 $as_echo "$ac_cv_c_bigendian" >&6; }
9793 case $ac_cv_c_bigendian in #(
9795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9805 as_fn_error $?
"unknown endianness
9806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9810 # ----------------------
9811 # Checks for C++ headers
9812 # ----------------------
9815 ac_cpp
='$CXXCPP $CPPFLAGS'
9816 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9820 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9821 if test -z "$CXXCPP"; then
9822 if ${ac_cv_prog_CXXCPP+:} false
; then :
9823 $as_echo_n "(cached) " >&6
9825 # Double quotes because CXXCPP needs to be expanded
9826 for CXXCPP
in "$CXX -E" "/lib/cpp"
9829 for ac_cxx_preproc_warn_flag
in '' yes
9831 # Use a header file that comes with gcc, so configuring glibc
9832 # with a fresh cross-compiler works.
9833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834 # <limits.h> exists even on freestanding compilers.
9835 # On the NeXT, cc -E runs the code through the compiler's parser,
9836 # not just through cpp. "Syntax error" is here to catch this case.
9837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 # include <limits.h>
9842 # include <assert.h>
9846 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9849 # Broken: fails on valid input.
9852 rm -f conftest.err conftest.i conftest.
$ac_ext
9854 # OK, works on sane cases. Now check whether nonexistent headers
9855 # can be detected and how.
9856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include <ac_nonexistent.h>
9860 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9861 # Broken: success on invalid input.
9864 # Passes both tests.
9868 rm -f conftest.err conftest.i conftest.
$ac_ext
9871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9872 rm -f conftest.i conftest.err conftest.
$ac_ext
9873 if $ac_preproc_ok; then :
9878 ac_cv_prog_CXXCPP
=$CXXCPP
9881 CXXCPP
=$ac_cv_prog_CXXCPP
9883 ac_cv_prog_CXXCPP
=$CXXCPP
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9886 $as_echo "$CXXCPP" >&6; }
9888 for ac_cxx_preproc_warn_flag
in '' yes
9890 # Use a header file that comes with gcc, so configuring glibc
9891 # with a fresh cross-compiler works.
9892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 # <limits.h> exists even on freestanding compilers.
9894 # On the NeXT, cc -E runs the code through the compiler's parser,
9895 # not just through cpp. "Syntax error" is here to catch this case.
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 # include <limits.h>
9901 # include <assert.h>
9905 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9908 # Broken: fails on valid input.
9911 rm -f conftest.err conftest.i conftest.
$ac_ext
9913 # OK, works on sane cases. Now check whether nonexistent headers
9914 # can be detected and how.
9915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <ac_nonexistent.h>
9919 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9920 # Broken: success on invalid input.
9923 # Passes both tests.
9927 rm -f conftest.err conftest.i conftest.
$ac_ext
9930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9931 rm -f conftest.i conftest.err conftest.
$ac_ext
9932 if $ac_preproc_ok; then :
9935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9938 See \`config.log' for more details" >&5
9939 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9940 See \`config.log' for more details" >&2;}; }
9944 ac_cpp
='$CXXCPP $CPPFLAGS'
9945 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9950 for ac_header
in unordered_map
9952 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9953 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9954 cat >>confdefs.h
<<_ACEOF
9955 #define HAVE_UNORDERED_MAP 1
9961 for ac_header
in tr1/unordered_map
9963 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9964 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9965 cat >>confdefs.h
<<_ACEOF
9966 #define HAVE_TR1_UNORDERED_MAP 1
9972 for ac_header
in ext
/hash_map
9974 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9975 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9976 cat >>confdefs.h
<<_ACEOF
9977 #define HAVE_EXT_HASH_MAP 1
9985 # Dependency checking.
9988 rm -rf .tst
2>/dev
/null
9989 mkdir .tst
2>/dev
/null
9990 if test -d .tst
; then
9995 rmdir .tst
2>/dev
/null
9997 DEPDIR
="${am__leading_dot}deps"
9999 ac_config_commands
="$ac_config_commands depdir"
10002 ac_config_commands
="$ac_config_commands gccdepdir"
10005 depcc
="$CXX" am_compiler_list
=
10007 am_depcomp
=$ac_aux_dir/depcomp
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10009 $as_echo_n "checking dependency style of $depcc... " >&6; }
10010 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10011 $as_echo_n "(cached) " >&6
10013 if test -f "$am_depcomp"; then
10014 # We make a subdir and do the tests there. Otherwise we can end up
10015 # making bogus files that we don't know about and never remove. For
10016 # instance it was reported that on HP-UX the gcc test will end up
10017 # making a dummy file named `D' -- because `-MD' means `put the output
10020 # Copy depcomp to subdir because otherwise we won't find it if we're
10021 # using a relative directory.
10022 cp "$am_depcomp" conftest.dir
10024 # We will build objects and dependencies in a subdirectory because
10025 # it helps to detect inapplicable dependency modes. For instance
10026 # both Tru64's cc and ICC support -MD to output dependencies as a
10027 # side effect of compilation, but ICC will put the dependencies in
10028 # the current directory while Tru64 will put them in the object
10032 am_cv_CXX_dependencies_compiler_type
=none
10033 if test "$am_compiler_list" = ""; then
10034 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10036 for depmode
in $am_compiler_list; do
10037 if test $depmode = none
; then break; fi
10039 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10040 # Setup a source with many dependencies, because some compilers
10041 # like to wrap large dependency lists on column 80 (with \), and
10042 # we should not choose a depcomp mode which is confused by this.
10044 # We need to recreate these files for each test, as the compiler may
10045 # overwrite some of them when testing with obscure command lines.
10046 # This happens at least with the AIX C compiler.
10048 for i
in 1 2 3 4 5 6; do
10049 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10051 # Solaris 8's {/usr,}/bin/sh.
10052 touch sub
/conftst
$i.h
10054 echo "include sub/conftest.Po" > confmf
10056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10057 # mode. It turns out that the SunPro C++ compiler does not properly
10058 # handle `-M -o', and we need to detect this.
10059 depcmd
="depmode=$depmode \
10060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10063 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10064 if env
$depcmd > conftest.err
2>&1 &&
10065 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10066 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10067 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10068 # icc doesn't choke on unknown options, it will just issue warnings
10069 # or remarks (even with -Werror). So we grep stderr for any message
10070 # that says an option was ignored or not supported.
10071 # When given -MP, icc 7.0 and 7.1 complain thusly:
10072 # icc: Command line warning: ignoring option '-M'; no argument required
10073 # The diagnosis changed in icc 8.0:
10074 # icc: Command line remark: option '-MP' not supported
10075 if (grep 'ignoring option' conftest.err ||
10076 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10077 am_cv_CXX_dependencies_compiler_type
=$depmode
10078 $as_echo "$as_me:$LINENO: success" >&5
10082 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10083 sed -e 's/^/| /' < conftest.err
>&5
10087 rm -rf conftest.dir
10089 am_cv_CXX_dependencies_compiler_type
=none
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10094 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10095 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10096 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10097 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10107 # These libraries may be used by collect2.
10108 # We may need a special search path to get them linked.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10110 $as_echo_n "checking for collect2 libraries... " >&6; }
10111 if ${gcc_cv_collect2_libs+:} false
; then :
10112 $as_echo_n "(cached) " >&6
10115 for libs
in '' -lld -lmld \
10116 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10117 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10138 if ac_fn_cxx_try_link
"$LINENO"; then :
10139 gcc_cv_collect2_libs
="$libs"; break
10141 rm -f core conftest.err conftest.
$ac_objext \
10142 conftest
$ac_exeext conftest.
$ac_ext
10145 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10148 $as_echo "$gcc_cv_collect2_libs" >&6; }
10149 case $gcc_cv_collect2_libs in
10150 "none required") ;;
10151 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10155 # When building Ada code on Alpha, we need exc_resume which is usually in
10156 # -lexc. So test for it.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10160 $as_echo_n "checking for library containing exc_resume... " >&6; }
10161 if ${ac_cv_search_exc_resume+:} false
; then :
10162 $as_echo_n "(cached) " >&6
10164 ac_func_search_save_LIBS
=$LIBS
10165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10174 char exc_resume ();
10178 return exc_resume ();
10183 for ac_lib
in '' exc
; do
10184 if test -z "$ac_lib"; then
10185 ac_res
="none required"
10188 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10190 if ac_fn_cxx_try_link
"$LINENO"; then :
10191 ac_cv_search_exc_resume
=$ac_res
10193 rm -f core conftest.err conftest.
$ac_objext \
10195 if ${ac_cv_search_exc_resume+:} false
; then :
10199 if ${ac_cv_search_exc_resume+:} false
; then :
10202 ac_cv_search_exc_resume
=no
10204 rm conftest.
$ac_ext
10205 LIBS
=$ac_func_search_save_LIBS
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10208 $as_echo "$ac_cv_search_exc_resume" >&6; }
10209 ac_res
=$ac_cv_search_exc_resume
10210 if test "$ac_res" != no
; then :
10211 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10215 GNAT_LIBEXC
="$LIBS"
10219 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10223 $as_echo_n "checking for library containing kstat_open... " >&6; }
10224 if ${ac_cv_search_kstat_open+:} false
; then :
10225 $as_echo_n "(cached) " >&6
10227 ac_func_search_save_LIBS
=$LIBS
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10237 char kstat_open ();
10241 return kstat_open ();
10246 for ac_lib
in '' kstat
; do
10247 if test -z "$ac_lib"; then
10248 ac_res
="none required"
10251 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10253 if ac_fn_cxx_try_link
"$LINENO"; then :
10254 ac_cv_search_kstat_open
=$ac_res
10256 rm -f core conftest.err conftest.
$ac_objext \
10258 if ${ac_cv_search_kstat_open+:} false
; then :
10262 if ${ac_cv_search_kstat_open+:} false
; then :
10265 ac_cv_search_kstat_open
=no
10267 rm conftest.
$ac_ext
10268 LIBS
=$ac_func_search_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10271 $as_echo "$ac_cv_search_kstat_open" >&6; }
10272 ac_res
=$ac_cv_search_kstat_open
10273 if test "$ac_res" != no
; then :
10274 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10278 EXTRA_GCC_LIBS
="$LIBS"
10282 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10283 # C++ needs those for libcody.
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10288 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10289 if ${ac_cv_search_gethostbyname+:} false
; then :
10290 $as_echo_n "(cached) " >&6
10292 ac_func_search_save_LIBS
=$LIBS
10293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10302 char gethostbyname ();
10306 return gethostbyname ();
10311 for ac_lib
in '' nsl
; do
10312 if test -z "$ac_lib"; then
10313 ac_res
="none required"
10316 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10318 if ac_fn_cxx_try_link
"$LINENO"; then :
10319 ac_cv_search_gethostbyname
=$ac_res
10321 rm -f core conftest.err conftest.
$ac_objext \
10323 if ${ac_cv_search_gethostbyname+:} false
; then :
10327 if ${ac_cv_search_gethostbyname+:} false
; then :
10330 ac_cv_search_gethostbyname
=no
10332 rm conftest.
$ac_ext
10333 LIBS
=$ac_func_search_save_LIBS
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10336 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10337 ac_res
=$ac_cv_search_gethostbyname
10338 if test "$ac_res" != no
; then :
10339 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10344 $as_echo_n "checking for library containing socket... " >&6; }
10345 if ${ac_cv_search_socket+:} 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. */
10367 for ac_lib
in '' socket
; 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_socket
=$ac_res
10377 rm -f core conftest.err conftest.
$ac_objext \
10379 if ${ac_cv_search_socket+:} false
; then :
10383 if ${ac_cv_search_socket+:} false
; then :
10386 ac_cv_search_socket
=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_socket" >&5
10392 $as_echo "$ac_cv_search_socket" >&6; }
10393 ac_res
=$ac_cv_search_socket
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 socket in -lsocket" >&5
10400 $as_echo_n "checking for socket in -lsocket... " >&6; }
10401 if ${ac_cv_lib_socket_socket+:} false
; then :
10402 $as_echo_n "(cached) " >&6
10404 ac_check_lib_save_LIBS
=$LIBS
10405 LIBS
="-lsocket -lnsl $LIBS"
10406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10424 if ac_fn_cxx_try_link
"$LINENO"; then :
10425 ac_cv_lib_socket_socket
=yes
10427 ac_cv_lib_socket_socket
=no
10429 rm -f core conftest.err conftest.
$ac_objext \
10430 conftest
$ac_exeext conftest.
$ac_ext
10431 LIBS
=$ac_check_lib_save_LIBS
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10434 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10435 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10436 LIBS
="-lsocket -lnsl $LIBS"
10446 # Some systems put ldexp and frexp in libm instead of libc; assume
10447 # they're both in the same place. jcf-dump needs them.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10451 $as_echo_n "checking for library containing ldexp... " >&6; }
10452 if ${ac_cv_search_ldexp+:} false
; then :
10453 $as_echo_n "(cached) " >&6
10455 ac_func_search_save_LIBS
=$LIBS
10456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10474 for ac_lib
in '' m
; do
10475 if test -z "$ac_lib"; then
10476 ac_res
="none required"
10479 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10481 if ac_fn_cxx_try_link
"$LINENO"; then :
10482 ac_cv_search_ldexp
=$ac_res
10484 rm -f core conftest.err conftest.
$ac_objext \
10486 if ${ac_cv_search_ldexp+:} false
; then :
10490 if ${ac_cv_search_ldexp+:} false
; then :
10493 ac_cv_search_ldexp
=no
10495 rm conftest.
$ac_ext
10496 LIBS
=$ac_func_search_save_LIBS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10499 $as_echo "$ac_cv_search_ldexp" >&6; }
10500 ac_res
=$ac_cv_search_ldexp
10501 if test "$ac_res" != no
; then :
10502 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10510 # Some systems need dlopen
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10514 $as_echo_n "checking for library containing dlopen... " >&6; }
10515 if ${ac_cv_search_dlopen+:} false
; then :
10516 $as_echo_n "(cached) " >&6
10518 ac_func_search_save_LIBS
=$LIBS
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10537 for ac_lib
in '' dl
; do
10538 if test -z "$ac_lib"; then
10539 ac_res
="none required"
10542 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10544 if ac_fn_cxx_try_link
"$LINENO"; then :
10545 ac_cv_search_dlopen
=$ac_res
10547 rm -f core conftest.err conftest.
$ac_objext \
10549 if ${ac_cv_search_dlopen+:} false
; then :
10553 if ${ac_cv_search_dlopen+:} false
; then :
10556 ac_cv_search_dlopen
=no
10558 rm conftest.
$ac_ext
10559 LIBS
=$ac_func_search_save_LIBS
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10562 $as_echo "$ac_cv_search_dlopen" >&6; }
10563 ac_res
=$ac_cv_search_dlopen
10564 if test "$ac_res" != no
; then :
10565 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10573 # Use <inttypes.h> only if it exists,
10574 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10577 $as_echo_n "checking for inttypes.h... " >&6; }
10578 if ${gcc_cv_header_inttypes_h+:} false
; then :
10579 $as_echo_n "(cached) " >&6
10581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583 #define __STDC_FORMAT_MACROS
10584 #include <sys/types.h>
10585 #include <inttypes.h>
10597 if ac_fn_cxx_try_compile
"$LINENO"; then :
10598 gcc_cv_header_inttypes_h
=yes
10600 gcc_cv_header_inttypes_h
=no
10602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10606 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10607 if test $gcc_cv_header_inttypes_h = yes; then
10609 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10613 # Look for the ZSTD package.
10623 # Check whether --with-zstd was given.
10624 if test "${with_zstd+set}" = set; then :
10625 withval
=$with_zstd;
10629 # Check whether --with-zstd-include was given.
10630 if test "${with_zstd_include+set}" = set; then :
10631 withval
=$with_zstd_include;
10635 # Check whether --with-zstd-lib was given.
10636 if test "${with_zstd_lib+set}" = set; then :
10637 withval
=$with_zstd_lib;
10640 case "x$with_zstd" in
10646 *) ZSTD_INCLUDE
=$with_zstd/include
10647 ZSTD_LIB
=$with_zstd/lib
10651 if test "x$with_zstd" != xno
; then
10652 if test "x$with_zstd_include" != x
; then
10653 ZSTD_INCLUDE
=$with_zstd_include
10655 if test "x$with_zstd_lib" != x
; then
10656 ZSTD_LIB
=$with_zstd_lib
10658 if test "x$ZSTD_INCLUDE" != x \
10659 && test "x$ZSTD_INCLUDE" != xno
; then
10660 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10662 if test "x$ZSTD_LIB" != x \
10663 && test "x$ZSTD_LIB" != xno
; then
10664 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10667 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10668 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10670 # LTO can use zstd compression algorithm
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10674 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10675 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10676 $as_echo_n "(cached) " >&6
10678 ac_func_search_save_LIBS
=$LIBS
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10688 char ZSTD_compress ();
10692 return ZSTD_compress ();
10697 for ac_lib
in '' zstd
; do
10698 if test -z "$ac_lib"; then
10699 ac_res
="none required"
10702 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10704 if ac_fn_cxx_try_link
"$LINENO"; then :
10705 ac_cv_search_ZSTD_compress
=$ac_res
10707 rm -f core conftest.err conftest.
$ac_objext \
10709 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10713 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10716 ac_cv_search_ZSTD_compress
=no
10718 rm conftest.
$ac_ext
10719 LIBS
=$ac_func_search_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10722 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10723 ac_res
=$ac_cv_search_ZSTD_compress
10724 if test "$ac_res" != no
; then :
10725 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10728 gcc_cv_header_zstd_h
=no
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10736 $as_echo_n "checking for zstd.h... " >&6; }
10737 if ${gcc_cv_header_zstd_h+:} false
; then :
10738 $as_echo_n "(cached) " >&6
10740 # We require version 1.3.0 or later. This is the first version that has
10741 # ZSTD_getFrameContentSize.
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #if ZSTD_VERSION_NUMBER < 10300
10746 #error "need zstd 1.3.0 or better"
10756 if ac_fn_cxx_try_compile
"$LINENO"; then :
10757 gcc_cv_header_zstd_h
=yes
10759 gcc_cv_header_zstd_h
=no
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10765 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10766 if test $gcc_cv_header_zstd_h = yes; then
10768 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10770 elif test "x$with_zstd" != x
; then
10771 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10777 for ac_func
in times clock kill getrlimit setrlimit atoq \
10778 popen sysconf strsignal getrusage nl_langinfo \
10779 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10780 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
10782 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10783 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10784 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10785 cat >>confdefs.h
<<_ACEOF
10786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10793 if test x
$ac_cv_func_mbstowcs = xyes
; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10795 $as_echo_n "checking whether mbstowcs works... " >&6; }
10796 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10797 $as_echo_n "(cached) " >&6
10799 if test "$cross_compiling" = yes; then :
10800 gcc_cv_func_mbstowcs_works
=yes
10802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <stdlib.h>
10807 mbstowcs(0, "", 0);
10811 if ac_fn_cxx_try_run
"$LINENO"; then :
10812 gcc_cv_func_mbstowcs_works
=yes
10814 gcc_cv_func_mbstowcs_works
=no
10816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10822 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10823 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10825 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10830 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10831 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10835 cat >>confdefs.h
<<_ACEOF
10836 #define ssize_t int
10841 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10842 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10846 cat >>confdefs.h
<<_ACEOF
10847 #define caddr_t char *
10852 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10854 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10856 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10862 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10863 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10864 gcc_header_sys_mman_h
=yes
10866 gcc_header_sys_mman_h
=no
10869 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10870 if test "x$ac_cv_func_mmap" = xyes
; then :
10876 if test "$gcc_header_sys_mman_h" != yes \
10877 ||
test "$gcc_func_mmap" != yes; then
10878 gcc_cv_func_mmap_file
=no
10879 gcc_cv_func_mmap_dev_zero
=no
10880 gcc_cv_func_mmap_anon
=no
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10883 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10884 if ${gcc_cv_func_mmap_file+:} false
; then :
10885 $as_echo_n "(cached) " >&6
10887 # Add a system to this blacklist if
10888 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10889 # memory area containing the same data that you'd get if you applied
10890 # read() to the same fd. The only system known to have a problem here
10891 # is VMS, where text files have record structure.
10894 gcc_cv_func_mmap_file
=no
;;
10896 gcc_cv_func_mmap_file
=yes;;
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10900 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10902 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10903 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10904 $as_echo_n "(cached) " >&6
10906 # Add a system to this blacklist if it has mmap() but /dev/zero
10907 # does not exist, or if mmapping /dev/zero does not give anonymous
10908 # zeroed pages with both the following properties:
10909 # 1. If you map N consecutive pages in with one call, and then
10910 # unmap any subset of those pages, the pages that were not
10911 # explicitly unmapped remain accessible.
10912 # 2. If you map two adjacent blocks of memory and then unmap them
10913 # both at once, they must both go away.
10914 # Systems known to be in this category are Windows (all variants),
10917 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10918 gcc_cv_func_mmap_dev_zero
=no
;;
10920 gcc_cv_func_mmap_dev_zero
=yes;;
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10924 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10926 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10928 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10929 if ${gcc_cv_decl_map_anon+:} false
; then :
10930 $as_echo_n "(cached) " >&6
10932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 #include <sys/types.h>
10935 #include <sys/mman.h>
10936 #include <unistd.h>
10938 #ifndef MAP_ANONYMOUS
10939 #define MAP_ANONYMOUS MAP_ANON
10945 int n = MAP_ANONYMOUS;
10950 if ac_fn_cxx_try_compile
"$LINENO"; then :
10951 gcc_cv_decl_map_anon
=yes
10953 gcc_cv_decl_map_anon
=no
10955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10958 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10960 if test $gcc_cv_decl_map_anon = no
; then
10961 gcc_cv_func_mmap_anon
=no
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10964 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10965 if ${gcc_cv_func_mmap_anon+:} false
; then :
10966 $as_echo_n "(cached) " >&6
10968 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10969 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10970 # doesn't give anonymous zeroed pages with the same properties listed
10971 # above for use of /dev/zero.
10972 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10974 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10975 gcc_cv_func_mmap_anon
=no
;;
10977 gcc_cv_func_mmap_anon
=yes;;
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10981 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10985 if test $gcc_cv_func_mmap_file = yes; then
10987 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10990 if test $gcc_cv_func_mmap_dev_zero = yes; then
10992 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10995 if test $gcc_cv_func_mmap_anon = yes; then
10997 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11004 # Under VMS, vfork works very differently than on Unix. The standard test
11005 # won't work, and it isn't easily adaptable. It makes more sense to
11007 ac_cv_func_vfork_works
=yes
11010 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11011 if test "x$ac_cv_type_pid_t" = xyes
; then :
11015 cat >>confdefs.h
<<_ACEOF
11021 for ac_header
in vfork.h
11023 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11024 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11025 cat >>confdefs.h
<<_ACEOF
11026 #define HAVE_VFORK_H 1
11032 for ac_func
in fork vfork
11034 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11036 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11037 cat >>confdefs.h
<<_ACEOF
11038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11044 if test "x$ac_cv_func_fork" = xyes
; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11046 $as_echo_n "checking for working fork... " >&6; }
11047 if ${ac_cv_func_fork_works+:} false
; then :
11048 $as_echo_n "(cached) " >&6
11050 if test "$cross_compiling" = yes; then :
11051 ac_cv_func_fork_works
=cross
11053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 $ac_includes_default
11060 /* By Ruediger Kuhlmann. */
11061 return fork () < 0;
11067 if ac_fn_cxx_try_run
"$LINENO"; then :
11068 ac_cv_func_fork_works
=yes
11070 ac_cv_func_fork_works
=no
11072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11078 $as_echo "$ac_cv_func_fork_works" >&6; }
11081 ac_cv_func_fork_works
=$ac_cv_func_fork
11083 if test "x$ac_cv_func_fork_works" = xcross
; then
11085 *-*-amigaos* |
*-*-msdosdjgpp*)
11086 # Override, as these systems have only a dummy fork() stub
11087 ac_cv_func_fork_works
=no
11090 ac_cv_func_fork_works
=yes
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11094 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11096 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11097 if test "x$ac_cv_func_vfork" = xyes
; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11099 $as_echo_n "checking for working vfork... " >&6; }
11100 if ${ac_cv_func_vfork_works+:} false
; then :
11101 $as_echo_n "(cached) " >&6
11103 if test "$cross_compiling" = yes; then :
11104 ac_cv_func_vfork_works
=cross
11106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 /* Thanks to Paul Eggert for this test. */
11109 $ac_includes_default
11110 #include <sys/wait.h>
11111 #ifdef HAVE_VFORK_H
11112 # include <vfork.h>
11114 /* On some sparc systems, changes by the child to local and incoming
11115 argument registers are propagated back to the parent. The compiler
11116 is told about this with #include <vfork.h>, but some compilers
11117 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11118 static variable whose address is put into a register that is
11119 clobbered by the vfork. */
11122 sparc_address_test (int arg)
11124 sparc_address_test (arg) int arg;
11127 static pid_t child;
11145 pid_t parent = getpid ();
11148 sparc_address_test (0);
11153 /* Here is another test for sparc vfork register problems. This
11154 test uses lots of local variables, at least as many local
11155 variables as main has allocated so far including compiler
11156 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11157 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11158 reuse the register of parent for one of the local variables,
11159 since it will think that parent can't possibly be used any more
11160 in this routine. Assigning to the local variable will thus
11161 munge parent in the parent process. */
11163 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11164 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11165 /* Convince the compiler that p..p7 are live; otherwise, it might
11166 use the same hardware register for all 8 local variables. */
11167 if (p != p1 || p != p2 || p != p3 || p != p4
11168 || p != p5 || p != p6 || p != p7)
11171 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11172 from child file descriptors. If the child closes a descriptor
11173 before it execs or exits, this munges the parent's descriptor
11174 as well. Test for this by closing stdout in the child. */
11175 _exit(close(fileno(stdout)) != 0);
11180 while (wait(&status) != child)
11183 /* Was there some problem with vforking? */
11186 /* Did the child fail? (This shouldn't happen.) */
11189 /* Did the vfork/compiler bug occur? */
11190 || parent != getpid()
11192 /* Did the file descriptor bug occur? */
11193 || fstat(fileno(stdout), &st) != 0
11198 if ac_fn_cxx_try_run
"$LINENO"; then :
11199 ac_cv_func_vfork_works
=yes
11201 ac_cv_func_vfork_works
=no
11203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11209 $as_echo "$ac_cv_func_vfork_works" >&6; }
11212 if test "x$ac_cv_func_fork_works" = xcross
; then
11213 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11215 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11218 if test "x$ac_cv_func_vfork_works" = xyes
; then
11220 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11224 $as_echo "#define vfork fork" >>confdefs.h
11227 if test "x$ac_cv_func_fork_works" = xyes
; then
11229 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11235 if test "X$prefix" = "XNONE"; then
11236 acl_final_prefix
="$ac_default_prefix"
11238 acl_final_prefix
="$prefix"
11240 if test "X$exec_prefix" = "XNONE"; then
11241 acl_final_exec_prefix
='${prefix}'
11243 acl_final_exec_prefix
="$exec_prefix"
11245 acl_save_prefix
="$prefix"
11246 prefix
="$acl_final_prefix"
11247 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11248 prefix
="$acl_save_prefix"
11251 # Check whether --with-gnu-ld was given.
11252 if test "${with_gnu_ld+set}" = set; then :
11253 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11258 # Prepare PATH_SEPARATOR.
11259 # The user is always right.
11260 if test "${PATH_SEPARATOR+set}" != set; then
11261 echo "#! /bin/sh" >conf$$.sh
11262 echo "exit 0" >>conf$$.sh
11264 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11272 if test "$GCC" = yes; then
11273 # Check if gcc -print-prog-name=ld gives a path.
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11275 $as_echo_n "checking for ld used by GCC... " >&6; }
11278 # gcc leaves a trailing carriage return which upsets mingw
11279 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11281 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11284 # Accept absolute paths.
11285 [\\/]* |
[A-Za-z
]:[\\/]*)
11286 re_direlt
='/[^/][^/]*/\.\./'
11287 # Canonicalize the path of ld
11288 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11289 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11290 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11292 test -z "$LD" && LD
="$ac_prog"
11295 # If it fails, then pretend we aren't using GCC.
11299 # If it is relative, then search for the first ld in PATH.
11300 with_gnu_ld
=unknown
11303 elif test "$with_gnu_ld" = yes; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11305 $as_echo_n "checking for GNU ld... " >&6; }
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11308 $as_echo_n "checking for non-GNU ld... " >&6; }
11310 if ${acl_cv_path_LD+:} false
; then :
11311 $as_echo_n "(cached) " >&6
11313 if test -z "$LD"; then
11314 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11315 for ac_dir
in $PATH; do
11316 test -z "$ac_dir" && ac_dir
=.
11317 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11318 acl_cv_path_LD
="$ac_dir/$ac_prog"
11319 # Check to see if the program is GNU ld. I'd rather use --version,
11320 # but apparently some GNU ld's only accept -v.
11321 # Break only if it was the GNU/non-GNU ld that we prefer.
11322 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11323 test "$with_gnu_ld" != no
&& break
11325 test "$with_gnu_ld" != yes && break
11331 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11335 LD
="$acl_cv_path_LD"
11336 if test -n "$LD"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11338 $as_echo "$LD" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11343 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11346 if ${acl_cv_prog_gnu_ld+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11350 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11351 acl_cv_prog_gnu_ld
=yes
11353 acl_cv_prog_gnu_ld
=no
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11357 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11358 with_gnu_ld
=$acl_cv_prog_gnu_ld
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11363 $as_echo_n "checking for shared library run path origin... " >&6; }
11364 if ${acl_cv_rpath+:} false
; then :
11365 $as_echo_n "(cached) " >&6
11368 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11369 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11371 rm -f .
/conftest.sh
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11376 $as_echo "$acl_cv_rpath" >&6; }
11378 libext
="$acl_cv_libext"
11379 shlibext
="$acl_cv_shlibext"
11380 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11381 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11382 hardcode_direct
="$acl_cv_hardcode_direct"
11383 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11384 # Check whether --enable-rpath was given.
11385 if test "${enable_rpath+set}" = set; then :
11386 enableval
=$enable_rpath; :
11400 acl_save_prefix
="$prefix"
11401 prefix
="$acl_final_prefix"
11402 acl_save_exec_prefix
="$exec_prefix"
11403 exec_prefix
="$acl_final_exec_prefix"
11405 eval additional_includedir
=\"$includedir\"
11406 eval additional_libdir
=\"$libdir\"
11408 exec_prefix
="$acl_save_exec_prefix"
11409 prefix
="$acl_save_prefix"
11412 # Check whether --with-libiconv-prefix was given.
11413 if test "${with_libiconv_prefix+set}" = set; then :
11414 withval
=$with_libiconv_prefix;
11415 if test "X$withval" = "Xno"; then
11418 if test "X$withval" = "X"; then
11420 acl_save_prefix
="$prefix"
11421 prefix
="$acl_final_prefix"
11422 acl_save_exec_prefix
="$exec_prefix"
11423 exec_prefix
="$acl_final_exec_prefix"
11425 eval additional_includedir
=\"$includedir\"
11426 eval additional_libdir
=\"$libdir\"
11428 exec_prefix
="$acl_save_exec_prefix"
11429 prefix
="$acl_save_prefix"
11432 additional_includedir
="$withval/include"
11433 additional_libdir
="$withval/lib"
11440 # Check whether --with-libiconv-type was given.
11441 if test "${with_libiconv_type+set}" = set; then :
11442 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11444 with_libiconv_type
=auto
11447 lib_type
=`eval echo \$with_libiconv_type`
11454 names_already_handled
=
11455 names_next_round
='iconv '
11456 while test -n "$names_next_round"; do
11457 names_this_round
="$names_next_round"
11459 for name
in $names_this_round; do
11461 for n
in $names_already_handled; do
11462 if test "$n" = "$name"; then
11463 already_handled
=yes
11467 if test -z "$already_handled"; then
11468 names_already_handled
="$names_already_handled $name"
11469 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11470 eval value
=\"\
$HAVE_LIB$uppername\"
11471 if test -n "$value"; then
11472 if test "$value" = yes; then
11473 eval value
=\"\
$LIB$uppername\"
11474 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11475 eval value
=\"\
$LTLIB$uppername\"
11476 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11485 if test $use_additional = yes; then
11486 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11487 found_dir
="$additional_libdir"
11488 found_so
="$additional_libdir/lib$name.$shlibext"
11489 if test -f "$additional_libdir/lib$name.la"; then
11490 found_la
="$additional_libdir/lib$name.la"
11492 elif test x
$lib_type != xshared
; then
11493 if test -f "$additional_libdir/lib$name.$libext"; then
11494 found_dir
="$additional_libdir"
11495 found_a
="$additional_libdir/lib$name.$libext"
11496 if test -f "$additional_libdir/lib$name.la"; then
11497 found_la
="$additional_libdir/lib$name.la"
11502 if test "X$found_dir" = "X"; then
11503 for x
in $LDFLAGS $LTLIBICONV; do
11505 acl_save_prefix
="$prefix"
11506 prefix
="$acl_final_prefix"
11507 acl_save_exec_prefix
="$exec_prefix"
11508 exec_prefix
="$acl_final_exec_prefix"
11510 exec_prefix
="$acl_save_exec_prefix"
11511 prefix
="$acl_save_prefix"
11515 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11516 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11518 found_so
="$dir/lib$name.$shlibext"
11519 if test -f "$dir/lib$name.la"; then
11520 found_la
="$dir/lib$name.la"
11522 elif test x
$lib_type != xshared
; then
11523 if test -f "$dir/lib$name.$libext"; then
11525 found_a
="$dir/lib$name.$libext"
11526 if test -f "$dir/lib$name.la"; then
11527 found_la
="$dir/lib$name.la"
11533 if test "X$found_dir" != "X"; then
11538 if test "X$found_dir" != "X"; then
11539 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11540 if test "X$found_so" != "X"; then
11541 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11542 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11545 for x
in $ltrpathdirs; do
11546 if test "X$x" = "X$found_dir"; then
11551 if test -z "$haveit"; then
11552 ltrpathdirs
="$ltrpathdirs $found_dir"
11554 if test "$hardcode_direct" = yes; then
11555 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11557 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11560 for x
in $rpathdirs; do
11561 if test "X$x" = "X$found_dir"; then
11566 if test -z "$haveit"; then
11567 rpathdirs
="$rpathdirs $found_dir"
11571 for x
in $LDFLAGS $LIBICONV; do
11573 acl_save_prefix
="$prefix"
11574 prefix
="$acl_final_prefix"
11575 acl_save_exec_prefix
="$exec_prefix"
11576 exec_prefix
="$acl_final_exec_prefix"
11578 exec_prefix
="$acl_save_exec_prefix"
11579 prefix
="$acl_save_prefix"
11581 if test "X$x" = "X-L$found_dir"; then
11586 if test -z "$haveit"; then
11587 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11589 if test "$hardcode_minus_L" != no
; then
11590 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11592 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11598 if test "X$found_a" != "X"; then
11599 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11601 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11604 additional_includedir
=
11605 case "$found_dir" in
11607 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11608 additional_includedir
="$basedir/include"
11611 if test "X$additional_includedir" != "X"; then
11612 if test "X$additional_includedir" != "X/usr/include"; then
11614 if test "X$additional_includedir" = "X/usr/local/include"; then
11615 if test -n "$GCC"; then
11617 linux
*) haveit
=yes;;
11621 if test -z "$haveit"; then
11622 for x
in $CPPFLAGS $INCICONV; do
11624 acl_save_prefix
="$prefix"
11625 prefix
="$acl_final_prefix"
11626 acl_save_exec_prefix
="$exec_prefix"
11627 exec_prefix
="$acl_final_exec_prefix"
11629 exec_prefix
="$acl_save_exec_prefix"
11630 prefix
="$acl_save_prefix"
11632 if test "X$x" = "X-I$additional_includedir"; then
11637 if test -z "$haveit"; then
11638 if test -d "$additional_includedir"; then
11639 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11645 if test -n "$found_la"; then
11646 save_libdir
="$libdir"
11647 case "$found_la" in
11648 */* |
*\\*) .
"$found_la" ;;
11649 *) .
"./$found_la" ;;
11651 libdir
="$save_libdir"
11652 for dep
in $dependency_libs; do
11655 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11656 if test "X$additional_libdir" != "X/usr/lib"; then
11658 if test "X$additional_libdir" = "X/usr/local/lib"; then
11659 if test -n "$GCC"; then
11661 linux
*) haveit
=yes;;
11665 if test -z "$haveit"; then
11667 for x
in $LDFLAGS $LIBICONV; do
11669 acl_save_prefix
="$prefix"
11670 prefix
="$acl_final_prefix"
11671 acl_save_exec_prefix
="$exec_prefix"
11672 exec_prefix
="$acl_final_exec_prefix"
11674 exec_prefix
="$acl_save_exec_prefix"
11675 prefix
="$acl_save_prefix"
11677 if test "X$x" = "X-L$additional_libdir"; then
11682 if test -z "$haveit"; then
11683 if test -d "$additional_libdir"; then
11684 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11688 for x
in $LDFLAGS $LTLIBICONV; do
11690 acl_save_prefix
="$prefix"
11691 prefix
="$acl_final_prefix"
11692 acl_save_exec_prefix
="$exec_prefix"
11693 exec_prefix
="$acl_final_exec_prefix"
11695 exec_prefix
="$acl_save_exec_prefix"
11696 prefix
="$acl_save_prefix"
11698 if test "X$x" = "X-L$additional_libdir"; then
11703 if test -z "$haveit"; then
11704 if test -d "$additional_libdir"; then
11705 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11712 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11713 if test "$enable_rpath" != no
; then
11715 for x
in $rpathdirs; do
11716 if test "X$x" = "X$dir"; then
11721 if test -z "$haveit"; then
11722 rpathdirs
="$rpathdirs $dir"
11725 for x
in $ltrpathdirs; do
11726 if test "X$x" = "X$dir"; then
11731 if test -z "$haveit"; then
11732 ltrpathdirs
="$ltrpathdirs $dir"
11737 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11740 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11743 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11744 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11750 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11751 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11752 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11754 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11755 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11762 if test "X$rpathdirs" != "X"; then
11763 if test -n "$hardcode_libdir_separator"; then
11765 for found_dir
in $rpathdirs; do
11766 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11768 acl_save_libdir
="$libdir"
11770 eval flag
=\"$hardcode_libdir_flag_spec\"
11771 libdir
="$acl_save_libdir"
11772 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11774 for found_dir
in $rpathdirs; do
11775 acl_save_libdir
="$libdir"
11776 libdir
="$found_dir"
11777 eval flag
=\"$hardcode_libdir_flag_spec\"
11778 libdir
="$acl_save_libdir"
11779 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11783 if test "X$ltrpathdirs" != "X"; then
11784 for found_dir
in $ltrpathdirs; do
11785 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11795 am_save_CPPFLAGS
="$CPPFLAGS"
11797 for element
in $INCICONV; do
11799 for x
in $CPPFLAGS; do
11801 acl_save_prefix
="$prefix"
11802 prefix
="$acl_final_prefix"
11803 acl_save_exec_prefix
="$exec_prefix"
11804 exec_prefix
="$acl_final_exec_prefix"
11806 exec_prefix
="$acl_save_exec_prefix"
11807 prefix
="$acl_save_prefix"
11809 if test "X$x" = "X$element"; then
11814 if test -z "$haveit"; then
11815 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11821 $as_echo_n "checking for iconv... " >&6; }
11822 if ${am_cv_func_iconv+:} false
; then :
11823 $as_echo_n "(cached) " >&6
11826 am_cv_func_iconv
="no, consider installing GNU libiconv"
11828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 #include <stdlib.h>
11837 iconv_t cd = iconv_open("","");
11838 iconv(cd,NULL,NULL,NULL,NULL);
11844 if ac_fn_cxx_try_link
"$LINENO"; then :
11845 am_cv_func_iconv
=yes
11847 rm -f core conftest.err conftest.
$ac_objext \
11848 conftest
$ac_exeext conftest.
$ac_ext
11849 if test "$am_cv_func_iconv" != yes; then
11850 am_save_LIBS
="$LIBS"
11851 LIBS
="$LIBS $LIBICONV"
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 #include <stdlib.h>
11861 iconv_t cd = iconv_open("","");
11862 iconv(cd,NULL,NULL,NULL,NULL);
11868 if ac_fn_cxx_try_link
"$LINENO"; then :
11869 am_cv_lib_iconv
=yes
11870 am_cv_func_iconv
=yes
11872 rm -f core conftest.err conftest.
$ac_objext \
11873 conftest
$ac_exeext conftest.
$ac_ext
11874 LIBS
="$am_save_LIBS"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11879 $as_echo "$am_cv_func_iconv" >&6; }
11880 if test "$am_cv_func_iconv" = yes; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11882 $as_echo_n "checking for working iconv... " >&6; }
11883 if ${am_cv_func_iconv_works+:} false
; then :
11884 $as_echo_n "(cached) " >&6
11887 am_save_LIBS
="$LIBS"
11888 if test $am_cv_lib_iconv = yes; then
11889 LIBS
="$LIBS $LIBICONV"
11891 am_cv_func_iconv_works
=no
11892 for ac_iconv_const
in '' 'const'; do
11893 if test "$cross_compiling" = yes; then :
11895 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
11896 *) am_cv_func_iconv_works
="guessing yes" ;;
11899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11903 #include <string.h>
11905 #ifndef ICONV_CONST
11906 # define ICONV_CONST $ac_iconv_const
11913 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11914 successful returns. This is even documented in
11915 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11917 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11918 if (cd_utf8_to_88591 != (iconv_t)(-1))
11920 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11922 ICONV_CONST char *inptr = input;
11923 size_t inbytesleft = strlen (input);
11924 char *outptr = buf;
11925 size_t outbytesleft = sizeof (buf);
11926 size_t res = iconv (cd_utf8_to_88591,
11927 &inptr, &inbytesleft,
11928 &outptr, &outbytesleft);
11931 iconv_close (cd_utf8_to_88591);
11934 /* Test against Solaris 10 bug: Failures are not distinguishable from
11935 successful returns. */
11937 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11938 if (cd_ascii_to_88591 != (iconv_t)(-1))
11940 static ICONV_CONST char input[] = "\263";
11942 ICONV_CONST char *inptr = input;
11943 size_t inbytesleft = strlen (input);
11944 char *outptr = buf;
11945 size_t outbytesleft = sizeof (buf);
11946 size_t res = iconv (cd_ascii_to_88591,
11947 &inptr, &inbytesleft,
11948 &outptr, &outbytesleft);
11951 iconv_close (cd_ascii_to_88591);
11954 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11956 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11957 if (cd_88591_to_utf8 != (iconv_t)(-1))
11959 static ICONV_CONST char input[] = "\304";
11960 static char buf[2] = { (char)0xDE, (char)0xAD };
11961 ICONV_CONST char *inptr = input;
11962 size_t inbytesleft = 1;
11963 char *outptr = buf;
11964 size_t outbytesleft = 1;
11965 size_t res = iconv (cd_88591_to_utf8,
11966 &inptr, &inbytesleft,
11967 &outptr, &outbytesleft);
11968 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11970 iconv_close (cd_88591_to_utf8);
11973 #if 0 /* This bug could be worked around by the caller. */
11974 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11976 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11977 if (cd_88591_to_utf8 != (iconv_t)(-1))
11979 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11981 ICONV_CONST char *inptr = input;
11982 size_t inbytesleft = strlen (input);
11983 char *outptr = buf;
11984 size_t outbytesleft = sizeof (buf);
11985 size_t res = iconv (cd_88591_to_utf8,
11986 &inptr, &inbytesleft,
11987 &outptr, &outbytesleft);
11990 iconv_close (cd_88591_to_utf8);
11994 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11997 /* Try standardized names. */
11998 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11999 /* Try IRIX, OSF/1 names. */
12000 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12001 /* Try AIX names. */
12002 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12003 /* Try HP-UX names. */
12004 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12005 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12006 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12008 if (cd1 != (iconv_t)(-1))
12010 if (cd2 != (iconv_t)(-1))
12012 if (cd3 != (iconv_t)(-1))
12014 if (cd4 != (iconv_t)(-1))
12023 if ac_fn_cxx_try_run
"$LINENO"; then :
12024 am_cv_func_iconv_works
=yes
12026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12030 test "$am_cv_func_iconv_works" = no ||
break
12032 LIBS
="$am_save_LIBS"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12036 $as_echo "$am_cv_func_iconv_works" >&6; }
12037 case "$am_cv_func_iconv_works" in
12038 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
12039 *) am_func_iconv
=yes ;;
12042 am_func_iconv
=no am_cv_lib_iconv
=no
12044 if test "$am_func_iconv" = yes; then
12046 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12049 if test "$am_cv_lib_iconv" = yes; then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12051 $as_echo_n "checking how to link with libiconv... " >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12053 $as_echo "$LIBICONV" >&6; }
12055 CPPFLAGS
="$am_save_CPPFLAGS"
12062 if test "$am_cv_func_iconv" = yes; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12064 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12065 if ${gl_cv_iconv_nonconst+:} false
; then :
12066 $as_echo_n "(cached) " >&6
12068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 #include <stdlib.h>
12077 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12087 if ac_fn_cxx_try_compile
"$LINENO"; then :
12088 gl_cv_iconv_nonconst
=yes
12090 gl_cv_iconv_nonconst
=no
12092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12096 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12098 gl_cv_iconv_nonconst
=yes
12100 if test $gl_cv_iconv_nonconst = yes; then
12106 cat >>confdefs.h
<<_ACEOF
12107 #define ICONV_CONST $iconv_arg1
12112 if test "$am_func_iconv" = yes; then
12113 if test -n "$LIBICONV"; then
12114 am_cv_func_iconv_summary
='yes, in libiconv'
12116 am_cv_func_iconv_summary
='yes, in libc'
12119 if test "$am_cv_func_iconv" = yes; then
12120 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
12122 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
12127 # Until we have in-tree GNU iconv:
12129 if test -f "$LTLIBICONV"; then
12130 LIBICONV_DEP
=$LTLIBICONV
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12136 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12137 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12138 $as_echo_n "(cached) " >&6
12140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 #include <locale.h>
12151 if ac_fn_cxx_try_link
"$LINENO"; then :
12152 am_cv_val_LC_MESSAGES
=yes
12154 am_cv_val_LC_MESSAGES
=no
12156 rm -f core conftest.err conftest.
$ac_objext \
12157 conftest
$ac_exeext conftest.
$ac_ext
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12160 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12161 if test $am_cv_val_LC_MESSAGES = yes; then
12163 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12170 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12171 if ${am_cv_langinfo_codeset+:} false
; then :
12172 $as_echo_n "(cached) " >&6
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include <langinfo.h>
12180 char* cs = nl_langinfo(CODESET);
12185 if ac_fn_cxx_try_link
"$LINENO"; then :
12186 am_cv_langinfo_codeset
=yes
12188 am_cv_langinfo_codeset
=no
12190 rm -f core conftest.err conftest.
$ac_objext \
12191 conftest
$ac_exeext conftest.
$ac_ext
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12195 $as_echo "$am_cv_langinfo_codeset" >&6; }
12196 if test $am_cv_langinfo_codeset = yes; then
12198 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12203 # We will need to find libiberty.h and ansidecl.h
12204 saved_CFLAGS
="$CFLAGS"
12205 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12206 saved_CXXFLAGS
="$CXXFLAGS"
12207 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12209 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12210 # normal autoconf function for these. But force definition of
12211 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12212 # basename handling in libiberty.h.
12213 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12214 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12215 #undef HAVE_DECL_BASENAME
12216 #define HAVE_DECL_BASENAME 1
12217 #include \"ansidecl.h\"
12218 #include \"system.h\"
12220 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12226 cat >>confdefs.h
<<_ACEOF
12227 #define HAVE_DECL_BASENAME $ac_have_decl
12229 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12230 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12231 #undef HAVE_DECL_BASENAME
12232 #define HAVE_DECL_BASENAME 1
12233 #include \"ansidecl.h\"
12234 #include \"system.h\"
12236 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12242 cat >>confdefs.h
<<_ACEOF
12243 #define HAVE_DECL_STRSTR $ac_have_decl
12247 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12248 madvise stpcpy strnlen strsignal strverscmp \
12249 strtol strtoul strtoll strtoull setenv unsetenv \
12250 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12251 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
12253 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12255 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12256 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12257 $as_echo_n "(cached) " >&6
12259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 #define $ac_tr_decl 1
12264 #include "ansidecl.h"
12265 #include "system.h"
12271 char *(*pfn) = (char *(*)) $ac_func ;
12277 if ac_fn_cxx_try_compile
"$LINENO"; then :
12278 eval "gcc_cv_have_decl_$ac_func=yes"
12280 eval "gcc_cv_have_decl_$ac_func=no"
12282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12285 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12288 #define $ac_tr_decl 1
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12294 #define $ac_tr_decl 0
12302 for ac_func
in getrlimit setrlimit getrusage
12304 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12306 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12307 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12308 $as_echo_n "(cached) " >&6
12310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 #define $ac_tr_decl 1
12315 #include "ansidecl.h"
12316 #include "system.h"
12317 #ifdef HAVE_SYS_RESOURCE_H
12318 #include <sys/resource.h>
12326 char *(*pfn) = (char *(*)) $ac_func ;
12332 if ac_fn_cxx_try_compile
"$LINENO"; then :
12333 eval "gcc_cv_have_decl_$ac_func=yes"
12335 eval "gcc_cv_have_decl_$ac_func=no"
12337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12343 #define $ac_tr_decl 1
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12349 #define $ac_tr_decl 0
12357 for ac_func
in mallinfo mallinfo2
12359 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12361 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12362 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12363 $as_echo_n "(cached) " >&6
12365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12368 #define $ac_tr_decl 1
12370 #include "ansidecl.h"
12371 #include "system.h"
12372 #ifdef HAVE_MALLOC_H
12373 #include <malloc.h>
12381 char *(*pfn) = (char *(*)) $ac_func ;
12387 if ac_fn_cxx_try_compile
"$LINENO"; then :
12388 eval "gcc_cv_have_decl_$ac_func=yes"
12390 eval "gcc_cv_have_decl_$ac_func=no"
12392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12397 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12398 #define $ac_tr_decl 1
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12404 #define $ac_tr_decl 0
12412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12415 #include "ansidecl.h"
12416 #include "system.h"
12417 #ifdef HAVE_SYS_RESOURCE_H
12418 #include <sys/resource.h>
12429 if ac_fn_cxx_try_compile
"$LINENO"; then :
12433 $as_echo "#define rlim_t long" >>confdefs.h
12436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12438 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12439 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12440 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12441 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12442 for ac_func
in ldgetname
12444 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12446 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12447 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12448 $as_echo_n "(cached) " >&6
12450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 #define $ac_tr_decl 1
12455 #include "ansidecl.h"
12456 #include "system.h"
12457 #ifdef HAVE_LDFCN_H
12468 char *(*pfn) = (char *(*)) $ac_func ;
12474 if ac_fn_cxx_try_compile
"$LINENO"; then :
12475 eval "gcc_cv_have_decl_$ac_func=yes"
12477 eval "gcc_cv_have_decl_$ac_func=no"
12479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12482 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12485 #define $ac_tr_decl 1
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12491 #define $ac_tr_decl 0
12499 for ac_func
in times
12501 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12503 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12504 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12505 $as_echo_n "(cached) " >&6
12507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12510 #define $ac_tr_decl 1
12512 #include "ansidecl.h"
12513 #include "system.h"
12514 #ifdef HAVE_SYS_TIMES_H
12515 #include <sys/times.h>
12523 char *(*pfn) = (char *(*)) $ac_func ;
12529 if ac_fn_cxx_try_compile
"$LINENO"; then :
12530 eval "gcc_cv_have_decl_$ac_func=yes"
12532 eval "gcc_cv_have_decl_$ac_func=no"
12534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12540 #define $ac_tr_decl 1
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12546 #define $ac_tr_decl 0
12554 for ac_func
in sigaltstack
12556 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12559 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12560 $as_echo_n "(cached) " >&6
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12565 #define $ac_tr_decl 1
12567 #include "ansidecl.h"
12568 #include "system.h"
12569 #include <signal.h>
12576 char *(*pfn) = (char *(*)) $ac_func ;
12582 if ac_fn_cxx_try_compile
"$LINENO"; then :
12583 eval "gcc_cv_have_decl_$ac_func=yes"
12585 eval "gcc_cv_have_decl_$ac_func=no"
12587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12593 #define $ac_tr_decl 1
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12599 #define $ac_tr_decl 0
12607 # More time-related stuff.
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12609 $as_echo_n "checking for struct tms... " >&6; }
12610 if ${ac_cv_struct_tms+:} false
; then :
12611 $as_echo_n "(cached) " >&6
12614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12617 #include "ansidecl.h"
12618 #include "system.h"
12619 #ifdef HAVE_SYS_TIMES_H
12620 #include <sys/times.h>
12631 if ac_fn_cxx_try_compile
"$LINENO"; then :
12632 ac_cv_struct_tms
=yes
12634 ac_cv_struct_tms
=no
12636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12639 $as_echo "$ac_cv_struct_tms" >&6; }
12640 if test $ac_cv_struct_tms = yes; then
12642 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12646 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12647 # revisit after autoconf 2.50.
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12649 $as_echo_n "checking for clock_t... " >&6; }
12650 if ${gcc_cv_type_clock_t+:} false
; then :
12651 $as_echo_n "(cached) " >&6
12654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 #include "ansidecl.h"
12658 #include "system.h"
12668 if ac_fn_cxx_try_compile
"$LINENO"; then :
12669 gcc_cv_type_clock_t
=yes
12671 gcc_cv_type_clock_t
=no
12673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12676 $as_echo "$gcc_cv_type_clock_t" >&6; }
12677 if test $gcc_cv_type_clock_t = yes; then
12679 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12683 # Check if F_SETLKW is supported by fcntl.
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12685 $as_echo_n "checking for F_SETLKW... " >&6; }
12686 if ${ac_cv_f_setlkw+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12703 return fcntl (1, F_SETLKW, &fl);
12708 if ac_fn_cxx_try_compile
"$LINENO"; then :
12713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12716 $as_echo "$ac_cv_f_setlkw" >&6; }
12717 if test $ac_cv_f_setlkw = yes; then
12719 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12723 # Check if O_CLOEXEC is defined by fcntl
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12725 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12726 if ${ac_cv_o_cloexec+:} false
; then :
12727 $as_echo_n "(cached) " >&6
12730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12738 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12743 if ac_fn_cxx_try_compile
"$LINENO"; then :
12744 ac_cv_o_cloexec
=yes
12748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12751 $as_echo "$ac_cv_o_cloexec" >&6; }
12752 if test $ac_cv_o_cloexec = yes; then
12754 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12758 # Check if O_NONBLOCK is defined by fcntl
12759 for ac_header
in fcntl.h
12761 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12762 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12763 cat >>confdefs.h
<<_ACEOF
12764 #define HAVE_FCNTL_H 1
12770 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12772 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12776 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12778 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12783 # C++ Modules would like some networking features to provide the mapping
12784 # server. You can still use modules without them though.
12785 # The following network-related checks could probably do with some
12786 # Windows and other non-linux defenses and checking.
12788 # Local socket connectivity wants AF_UNIX networking
12789 # Check for AF_UNIX networking
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12791 $as_echo_n "checking for AF_UNIX... " >&6; }
12792 if ${ac_cv_af_unix+:} false
; then :
12793 $as_echo_n "(cached) " >&6
12796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12799 #include <sys/types.h>
12800 #include <sys/socket.h>
12801 #include <sys/un.h>
12802 #include <netinet/in.h>
12808 un.sun_family = AF_UNSPEC;
12809 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12810 connect (fd, (sockaddr *)&un, sizeof (un));
12815 if ac_fn_cxx_try_compile
"$LINENO"; then :
12820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12823 $as_echo "$ac_cv_af_unix" >&6; }
12824 if test $ac_cv_af_unix = yes; then
12826 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12830 # Remote socket connectivity wants AF_INET6 networking
12831 # Check for AF_INET6 networking
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12833 $as_echo_n "checking for AF_INET6... " >&6; }
12834 if ${ac_cv_af_inet6+:} false
; then :
12835 $as_echo_n "(cached) " >&6
12838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 #include <sys/types.h>
12842 #include <sys/socket.h>
12843 #include <netinet/in.h>
12850 in6.sin6_family = AF_UNSPEC;
12851 struct addrinfo *addrs = 0;
12852 struct addrinfo hints;
12853 hints.ai_flags = 0;
12854 hints.ai_family = AF_INET6;
12855 hints.ai_socktype = SOCK_STREAM;
12856 hints.ai_protocol = 0;
12857 hints.ai_canonname = 0;
12860 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12861 const char *str = gai_strerror (e);
12862 freeaddrinfo (addrs);
12863 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12864 connect (fd, (sockaddr *)&in6, sizeof (in6));
12869 if ac_fn_cxx_try_compile
"$LINENO"; then :
12874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12877 $as_echo "$ac_cv_af_inet6" >&6; }
12878 if test $ac_cv_af_inet6 = yes; then
12880 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12884 # Check if _LK_LOCK is supported by _locking
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12886 $as_echo_n "checking for _LK_LOCK... " >&6; }
12887 if ${ac_cv_lk_lock+:} false
; then :
12888 $as_echo_n "(cached) " >&6
12891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12895 #include <sys/locking.h>
12901 return _locking (fd, _LK_LOCK, 0);
12906 if ac_fn_cxx_try_compile
"$LINENO"; then :
12911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12914 $as_echo "$ac_cv_lk_lock" >&6; }
12915 if test $ac_cv_lk_lock = yes; then
12917 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12921 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12922 CFLAGS
="$saved_CFLAGS"
12923 CXXFLAGS
="$saved_CXXFLAGS"
12925 # mkdir takes a single argument on some systems.
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12927 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12928 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12929 $as_echo_n "(cached) " >&6
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 #include <sys/types.h>
12935 #ifdef HAVE_SYS_STAT_H
12936 # include <sys/stat.h>
12938 #ifdef HAVE_UNISTD_H
12939 # include <unistd.h>
12941 #ifdef HAVE_DIRECT_H
12942 # include <direct.h>
12952 if ac_fn_cxx_try_compile
"$LINENO"; then :
12953 gcc_cv_mkdir_takes_one_arg
=no
12955 gcc_cv_mkdir_takes_one_arg
=yes
12957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12960 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12961 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12963 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12974 # With Setjmp/Longjmp based exception handling.
12975 # Check whether --enable-sjlj-exceptions was given.
12976 if test "${enable_sjlj_exceptions+set}" = set; then :
12977 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12981 force_sjlj_exceptions
=yes
12985 force_sjlj_exceptions
=no
12990 if test $force_sjlj_exceptions = yes; then
12991 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12993 cat >>confdefs.h
<<_ACEOF
12994 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12999 # Windows32 UTF-8 manifest support for running the driver and compiler
13000 # executables with the UTF-8 active code page on mingw hosts.
13001 # Non-mingw hosts ignore this option.
13002 # The shell variables this sets are picked up from the mingw branches
13003 # of config.host so they have to be set before it gets sourced.
13004 # Check whether --enable-win32-utf8-manifest was given.
13005 if test "${enable_win32_utf8_manifest+set}" = set; then :
13006 enableval
=$enable_win32_utf8_manifest;
13010 if test "x$enable_win32_utf8_manifest" != xno
; then
13011 host_xmake_mingw
=i386
/x-mingw32-utf8
13012 host_extra_gcc_objs_mingw
=utf8rc-mingw32.o
13013 host_extra_objs_mingw
=utf8-mingw32.o
13016 # --------------------------------------------------------
13017 # Build, host, and target specific configuration fragments
13018 # --------------------------------------------------------
13020 # Collect build-machine-specific information.
13021 .
${srcdir}/config.build ||
exit 1
13023 # Collect host-machine-specific information.
13024 .
${srcdir}/config.
host ||
exit 1
13028 # Collect target-machine-specific information.
13029 .
${srcdir}/config.gcc ||
exit 1
13031 extra_objs
="${host_extra_objs} ${extra_objs}"
13032 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13034 # Default the target-machine variables that were not explicitly set.
13035 if test x
"$tm_file" = x
13036 then tm_file
=$cpu_type/$cpu_type.h
; fi
13038 if test x
"$extra_headers" = x
13039 then extra_headers
=; fi
13041 if test x
$md_file = x
13042 then md_file
=$cpu_type/$cpu_type.md
; fi
13044 if test x
$out_file = x
13045 then out_file
=$cpu_type/$cpu_type.cc
; fi
13047 if test x
"$tmake_file" = x
13048 then tmake_file
=$cpu_type/t-
$cpu_type
13051 # Support --enable-initfini-array.
13052 if test x
$enable_initfini_array != xno
; then
13053 tm_file
="${tm_file} initfini-array.h"
13056 if test x
"$dwarf2" = xyes
13057 then tm_file
="$tm_file tm-dwarf2.h"
13060 # Say what files are being used for the output code and MD file.
13061 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13062 echo "Using \`$srcdir/config/$md_file' as machine description file."
13064 # If any of the xm_file variables contain nonexistent files, warn
13065 # about them and drop them.
13068 for x
in $build_xm_file; do
13069 if test -f $srcdir/config
/$x
13071 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13072 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13075 build_xm_file
="$bx"
13078 for x
in $host_xm_file; do
13079 if test -f $srcdir/config
/$x
13081 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13082 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13088 for x
in $xm_file; do
13089 if test -f $srcdir/config
/$x
13091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13098 for f
in $tm_file; do
13101 if test $count = ax
; then
13102 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13104 echo "Using the following target machine macro files:"
13105 for f
in $tm_file; do
13106 echo " $srcdir/config/$f"
13110 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13112 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13116 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13118 cat >>confdefs.h
<<_ACEOF
13119 #define HAVE_GNU_LD $gnu_ld_bool
13123 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13125 cat >>confdefs.h
<<_ACEOF
13126 #define HAVE_GNU_AS $gnu_as_bool
13131 for f
in $host_xm_file; do
13134 if test $count = a
; then
13136 elif test $count = ax
; then
13137 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13139 echo "Using the following host machine macro files:"
13140 for f
in $host_xm_file; do
13141 echo " $srcdir/config/$f"
13144 echo "Using ${out_host_hook_obj} for host machine hooks."
13146 if test "$host_xm_file" != "$build_xm_file"; then
13148 for f
in $build_xm_file; do
13151 if test $count = a
; then
13153 elif test $count = ax
; then
13154 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13156 echo "Using the following build machine macro files:"
13157 for f
in $build_xm_file; do
13158 echo " $srcdir/config/$f"
13163 if test -n "$configured_native_system_header_dir"; then
13164 native_system_header_dir
=$configured_native_system_header_dir
13166 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13170 powerpc
*-*-darwin*)
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13172 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13173 if ${gcc_cv_mcontext_underscores+:} false
; then :
13174 $as_echo_n "(cached) " >&6
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 #include <sys/cdefs.h>
13180 #include <sys/signal.h>
13181 #include <ucontext.h>
13182 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13185 if ac_fn_cxx_try_compile
"$LINENO"; then :
13186 gcc_cv_mcontext_underscores
=no
13188 gcc_cv_mcontext_underscores
=yes
13190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13193 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13194 if test $gcc_cv_mcontext_underscores = yes; then
13196 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13206 # Check if a valid thread package
13207 case ${enable_threads} in
13210 target_thread_file
='single'
13214 target_thread_file
='single'
13216 aix | dce | lynx | mipssde | posix | rtems | \
13217 single | tpf | vxworks | win32 | mcf
)
13218 target_thread_file
=${enable_threads}
13221 echo "${enable_threads} is an unknown thread package" 1>&2
13226 if test x
${thread_file} = x
; then
13227 # No thread file set by target-specific clauses in config.gcc,
13228 # so use file chosen by default logic above
13229 thread_file
=${target_thread_file}
13237 if test x
$enable___cxa_atexit = xyes || \
13238 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13239 if test x
$host = x
$target; then
13241 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13242 # keyed to flag_use_cxa_atexit
13250 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13251 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13254 echo "__cxa_atexit can't be enabled on this target"
13260 # We can't check for __cxa_atexit when building a cross, so assume
13264 if test x
$use_cxa_atexit = xyes
; then
13266 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13271 # Look for a file containing extra machine modes.
13272 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13273 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13276 cat >>confdefs.h
<<_ACEOF
13277 #define EXTRA_MODES_FILE "config/$extra_modes"
13282 # Convert extra_options into a form suitable for Makefile use.
13285 for f
in $extra_options; do
13286 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13287 all_opt_files
="$all_opt_files $srcdir/config/$f"
13291 # auto-host.h is the file containing items generated by autoconf and is
13292 # the first file included by config.h.
13293 # If host=build, it is correct to have bconfig include auto-host.h
13294 # as well. If host!=build, we are in error and need to do more
13295 # work to find out the build config parameters.
13296 if test x
$host = x
$build
13298 build_auto
=auto-host.h
13299 HAVE_AUTO_BUILD
='# '
13301 # We create a subdir, then run autoconf in the subdir.
13302 # To prevent recursion we set host and build for the new
13303 # invocation of configure to the build for this invocation
13310 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13311 *) realsrcdir
=..
/${srcdir};;
13313 # Clearing GMPINC is necessary to prevent host headers being
13314 # used by the build compiler. Defining GENERATOR_FILE stops
13315 # system.h from including gmp.h.
13316 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13317 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13318 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13319 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13320 ${realsrcdir}/configure \
13321 --enable-languages=${enable_languages-all} \
13322 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13323 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13324 --target=$target_alias --host=$build_alias \
13325 --build=$build_alias ||
exit # retaining $tempdir
13327 # We just finished tests for the build machine, so rename
13328 # the file auto-build.h in the gcc directory.
13329 mv auto-host.h ..
/auto-build.h
13332 build_auto
=auto-build.h
13338 tm_file
="${tm_file} defaults.h"
13339 tm_p_file
="${tm_p_file} tm-preds.h"
13340 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13341 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13342 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13343 # put this back in temporarily.
13344 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13350 # Compile in configure arguments.
13351 if test -f configargs.h
; then
13352 # Being re-configured.
13353 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13354 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13355 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13356 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13359 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13362 # Double all backslashes and backslash all quotes to turn
13363 # gcc_config_arguments into a C string.
13364 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13365 $gcc_config_arguments
13367 gcc_config_arguments_str
=`cat conftest.out`
13370 cat > configargs.h
<<EOF
13371 /* Generated automatically. */
13372 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13373 static const char thread_model[] = "$thread_file";
13375 static const struct {
13376 const char *name, *value;
13377 } configure_default_options[] = $configure_default_options;
13380 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13381 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13382 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13383 if test -f $srcdir/REVISION
; then
13384 gcc_REVISION
=`cat $srcdir/REVISION`
13388 cat > plugin-version.h
<<EOF
13389 #include "configargs.h"
13391 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13392 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13393 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13394 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13396 static char basever[] = "$gcc_BASEVER";
13397 static char datestamp[] = "$gcc_DATESTAMP";
13398 static char devphase[] = "$gcc_DEVPHASE";
13399 static char revision[] = "$gcc_REVISION";
13401 /* FIXME plugins: We should make the version information more precise.
13402 One way to do is to add a checksum. */
13404 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13405 devphase, revision,
13406 configuration_arguments};
13409 # Determine what GCC version number to use in filesystem paths.
13411 get_gcc_base_ver
="cat"
13413 # Check whether --with-gcc-major-version-only was given.
13414 if test "${with_gcc_major_version_only+set}" = set; then :
13415 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13416 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13424 # Internationalization
13425 # Find a good install program. We prefer a C program (faster),
13426 # so one script is as good as another. But avoid the broken or
13427 # incompatible versions:
13428 # SysV /etc/install, /usr/sbin/install
13429 # SunOS /usr/etc/install
13430 # IRIX /sbin/install
13432 # AmigaOS /C/install, which installs bootblocks on floppy discs
13433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13436 # OS/2's system install, which has a completely different semantic
13437 # ./install, which can be erroneously created by make from ./install.sh.
13438 # Reject install programs that cannot install multiple files.
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13441 if test -z "$INSTALL"; then
13442 if ${ac_cv_path_install+:} false
; then :
13443 $as_echo_n "(cached) " >&6
13445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13446 for as_dir
in $PATH
13449 test -z "$as_dir" && as_dir
=.
13450 # Account for people who put trailing slashes in PATH elements.
13451 case $as_dir/ in #((
13452 .
/ | .
// |
/[cC
]/* | \
13453 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13454 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
13457 # OSF1 and SCO ODT 3.0 have their own names for install.
13458 # Don't use installbsd from OSF since it installs stuff as root
13460 for ac_prog
in ginstall scoinst
install; do
13461 for ac_exec_ext
in '' $ac_executable_extensions; do
13462 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
13463 if test $ac_prog = install &&
13464 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13465 # AIX install. It has an incompatible calling convention.
13467 elif test $ac_prog = install &&
13468 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13469 # program-specific install script used by HP pwplus--don't use.
13472 rm -rf conftest.one conftest.two conftest.dir
13473 echo one
> conftest.one
13474 echo two
> conftest.two
13476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
13477 test -s conftest.one
&& test -s conftest.two
&&
13478 test -s conftest.dir
/conftest.one
&&
13479 test -s conftest.dir
/conftest.two
13481 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13494 rm -rf conftest.one conftest.two conftest.dir
13497 if test "${ac_cv_path_install+set}" = set; then
13498 INSTALL
=$ac_cv_path_install
13500 # As a last resort, use the slow shell script. Don't cache a
13501 # value for INSTALL within a source directory, because that will
13502 # break other packages using the cache if that directory is
13503 # removed, or if the value is a relative name.
13504 INSTALL
=$ac_install_sh
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13508 $as_echo "$INSTALL" >&6; }
13510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13511 # It thinks the first close brace ends the variable substitution.
13512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13516 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13520 if test -n "$ac_aux_dir"; then
13521 case "$ac_aux_dir" in
13522 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
13523 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13526 if test -z "$MKINSTALLDIRS"; then
13527 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13533 $as_echo_n "checking whether NLS is requested... " >&6; }
13534 # Check whether --enable-nls was given.
13535 if test "${enable_nls+set}" = set; then :
13536 enableval
=$enable_nls; USE_NLS
=$enableval
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13542 $as_echo "$USE_NLS" >&6; }
13549 # Prepare PATH_SEPARATOR.
13550 # The user is always right.
13551 if test "${PATH_SEPARATOR+set}" != set; then
13552 echo "#! /bin/sh" >conf$$.sh
13553 echo "exit 0" >>conf$$.sh
13555 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13563 # Find out how to test for executable files. Don't use a zero-byte file,
13564 # as systems may use methods other than mode bits to determine executability.
13565 cat >conf$$.
file <<_ASEOF
13569 chmod +x conf$$.
file
13570 if test -x conf$$.
file >/dev
/null
2>&1; then
13571 ac_executable_p
="test -x"
13573 ac_executable_p
="test -f"
13577 # Extract the first word of "msgfmt", so it can be a program name with args.
13578 set dummy msgfmt
; ac_word
=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_path_MSGFMT+:} false
; then :
13582 $as_echo_n "(cached) " >&6
13586 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13589 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13590 for ac_dir
in $PATH; do
13592 test -z "$ac_dir" && ac_dir
=.
13593 for ac_exec_ext
in '' $ac_executable_extensions; do
13594 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13595 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
13596 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13597 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
13604 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
13608 MSGFMT
="$ac_cv_path_MSGFMT"
13609 if test "$MSGFMT" != ":"; then
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13611 $as_echo "$MSGFMT" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13617 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13618 set dummy gmsgfmt
; ac_word
=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_path_GMSGFMT+:} false
; then :
13622 $as_echo_n "(cached) " >&6
13626 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13630 for as_dir
in $PATH
13633 test -z "$as_dir" && as_dir
=.
13634 for ac_exec_ext
in '' $ac_executable_extensions; do
13635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13648 GMSGFMT
=$ac_cv_path_GMSGFMT
13649 if test -n "$GMSGFMT"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13651 $as_echo "$GMSGFMT" >&6; }
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13660 # Prepare PATH_SEPARATOR.
13661 # The user is always right.
13662 if test "${PATH_SEPARATOR+set}" != set; then
13663 echo "#! /bin/sh" >conf$$.sh
13664 echo "exit 0" >>conf$$.sh
13666 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13674 # Find out how to test for executable files. Don't use a zero-byte file,
13675 # as systems may use methods other than mode bits to determine executability.
13676 cat >conf$$.
file <<_ASEOF
13680 chmod +x conf$$.
file
13681 if test -x conf$$.
file >/dev
/null
2>&1; then
13682 ac_executable_p
="test -x"
13684 ac_executable_p
="test -f"
13688 # Extract the first word of "xgettext", so it can be a program name with args.
13689 set dummy xgettext
; ac_word
=$2
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691 $as_echo_n "checking for $ac_word... " >&6; }
13692 if ${ac_cv_path_XGETTEXT+:} false
; then :
13693 $as_echo_n "(cached) " >&6
13695 case "$XGETTEXT" in
13697 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13700 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13701 for ac_dir
in $PATH; do
13703 test -z "$ac_dir" && ac_dir
=.
13704 for ac_exec_ext
in '' $ac_executable_extensions; do
13705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13706 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13707 (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
13708 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
13715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13719 XGETTEXT
="$ac_cv_path_XGETTEXT"
13720 if test "$XGETTEXT" != ":"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13722 $as_echo "$XGETTEXT" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13731 # Prepare PATH_SEPARATOR.
13732 # The user is always right.
13733 if test "${PATH_SEPARATOR+set}" != set; then
13734 echo "#! /bin/sh" >conf$$.sh
13735 echo "exit 0" >>conf$$.sh
13737 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13745 # Find out how to test for executable files. Don't use a zero-byte file,
13746 # as systems may use methods other than mode bits to determine executability.
13747 cat >conf$$.
file <<_ASEOF
13751 chmod +x conf$$.
file
13752 if test -x conf$$.
file >/dev
/null
2>&1; then
13753 ac_executable_p
="test -x"
13755 ac_executable_p
="test -f"
13759 # Extract the first word of "msgmerge", so it can be a program name with args.
13760 set dummy msgmerge
; ac_word
=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_path_MSGMERGE+:} false
; then :
13764 $as_echo_n "(cached) " >&6
13766 case "$MSGMERGE" in
13768 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
13771 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13772 for ac_dir
in $PATH; do
13774 test -z "$ac_dir" && ac_dir
=.
13775 for ac_exec_ext
in '' $ac_executable_extensions; do
13776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13777 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
13778 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
13785 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
13789 MSGMERGE
="$ac_cv_path_MSGMERGE"
13790 if test "$MSGMERGE" != ":"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13792 $as_echo "$MSGMERGE" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13799 if test "$GMSGFMT" != ":"; then
13800 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
13801 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13804 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13806 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13811 if test "$XGETTEXT" != ":"; then
13812 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13813 (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
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13817 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13823 ac_config_commands
="$ac_config_commands default-1"
13829 if test -f ..
/gettext
/uninstalled-config.sh
; then
13830 relative_builddir
='$(top_builddir)/../gettext'
13831 . ..
/gettext
/uninstalled-config.sh
13833 # The sister gettext directory doesn't exist and won't collect information on
13834 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13859 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13860 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
13861 $as_echo_n "(cached) " >&6
13863 gt_save_LIBS
="$LIBS"
13864 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 #include <CoreFoundation/CFPreferences.h>
13871 CFPreferencesCopyAppValue(NULL, NULL)
13876 if ac_fn_cxx_try_link
"$LINENO"; then :
13877 gt_cv_func_CFPreferencesCopyAppValue
=yes
13879 gt_cv_func_CFPreferencesCopyAppValue
=no
13881 rm -f core conftest.err conftest.
$ac_objext \
13882 conftest
$ac_exeext conftest.
$ac_ext
13883 LIBS
="$gt_save_LIBS"
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13886 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13887 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13889 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13893 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13894 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
13895 $as_echo_n "(cached) " >&6
13897 gt_save_LIBS
="$LIBS"
13898 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 #include <CoreFoundation/CFLocale.h>
13905 CFLocaleCopyPreferredLanguages();
13910 if ac_fn_cxx_try_link
"$LINENO"; then :
13911 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
13913 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
13915 rm -f core conftest.err conftest.
$ac_objext \
13916 conftest
$ac_exeext conftest.
$ac_ext
13917 LIBS
="$gt_save_LIBS"
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13920 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13921 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13923 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13927 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13928 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13929 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13941 case " $gt_needs " in
13942 *" need-formatstring-macros "*) gt_api_version
=3 ;;
13943 *" need-ngettext "*) gt_api_version
=2 ;;
13944 *) gt_api_version
=1 ;;
13946 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
13947 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
13949 if test "$USE_NLS" = "yes"; then
13950 gt_use_preinstalled_gnugettext
=no
13953 if test $gt_api_version -ge 3; then
13954 gt_revision_test_code
='
13955 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13956 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13958 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13961 gt_revision_test_code
=
13963 if test $gt_api_version -ge 2; then
13964 gt_expression_test_code
=' + * ngettext ("", "", 0)'
13966 gt_expression_test_code
=
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13970 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13971 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
13972 $as_echo_n "(cached) " >&6
13974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13977 #include <libintl.h>
13978 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13979 extern int _nl_msg_cat_cntr;
13980 extern int *_nl_domain_bindings;
13981 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13983 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13985 $gt_revision_test_code
13991 bindtextdomain ("", "");
13992 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13998 if ac_fn_cxx_try_link
"$LINENO"; then :
13999 eval "$gt_func_gnugettext_libc=yes"
14001 eval "$gt_func_gnugettext_libc=no"
14003 rm -f core conftest.err conftest.
$ac_objext \
14004 conftest
$ac_exeext conftest.
$ac_ext
14006 eval ac_res
=\$
$gt_func_gnugettext_libc
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14008 $as_echo "$ac_res" >&6; }
14010 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14016 am_save_CPPFLAGS
="$CPPFLAGS"
14018 for element
in $INCICONV; do
14020 for x
in $CPPFLAGS; do
14022 acl_save_prefix
="$prefix"
14023 prefix
="$acl_final_prefix"
14024 acl_save_exec_prefix
="$exec_prefix"
14025 exec_prefix
="$acl_final_exec_prefix"
14027 exec_prefix
="$acl_save_exec_prefix"
14028 prefix
="$acl_save_prefix"
14030 if test "X$x" = "X$element"; then
14035 if test -z "$haveit"; then
14036 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14042 $as_echo_n "checking for iconv... " >&6; }
14043 if ${am_cv_func_iconv+:} false
; then :
14044 $as_echo_n "(cached) " >&6
14047 am_cv_func_iconv
="no, consider installing GNU libiconv"
14049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 #include <stdlib.h>
14058 iconv_t cd = iconv_open("","");
14059 iconv(cd,NULL,NULL,NULL,NULL);
14065 if ac_fn_cxx_try_link
"$LINENO"; then :
14066 am_cv_func_iconv
=yes
14068 rm -f core conftest.err conftest.
$ac_objext \
14069 conftest
$ac_exeext conftest.
$ac_ext
14070 if test "$am_cv_func_iconv" != yes; then
14071 am_save_LIBS
="$LIBS"
14072 LIBS
="$LIBS $LIBICONV"
14073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14076 #include <stdlib.h>
14082 iconv_t cd = iconv_open("","");
14083 iconv(cd,NULL,NULL,NULL,NULL);
14089 if ac_fn_cxx_try_link
"$LINENO"; then :
14090 am_cv_lib_iconv
=yes
14091 am_cv_func_iconv
=yes
14093 rm -f core conftest.err conftest.
$ac_objext \
14094 conftest
$ac_exeext conftest.
$ac_ext
14095 LIBS
="$am_save_LIBS"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14100 $as_echo "$am_cv_func_iconv" >&6; }
14101 if test "$am_cv_func_iconv" = yes; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14103 $as_echo_n "checking for working iconv... " >&6; }
14104 if ${am_cv_func_iconv_works+:} false
; then :
14105 $as_echo_n "(cached) " >&6
14108 am_save_LIBS
="$LIBS"
14109 if test $am_cv_lib_iconv = yes; then
14110 LIBS
="$LIBS $LIBICONV"
14112 am_cv_func_iconv_works
=no
14113 for ac_iconv_const
in '' 'const'; do
14114 if test "$cross_compiling" = yes; then :
14116 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
14117 *) am_cv_func_iconv_works
="guessing yes" ;;
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14124 #include <string.h>
14126 #ifndef ICONV_CONST
14127 # define ICONV_CONST $ac_iconv_const
14134 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14135 successful returns. This is even documented in
14136 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14138 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14139 if (cd_utf8_to_88591 != (iconv_t)(-1))
14141 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14143 ICONV_CONST char *inptr = input;
14144 size_t inbytesleft = strlen (input);
14145 char *outptr = buf;
14146 size_t outbytesleft = sizeof (buf);
14147 size_t res = iconv (cd_utf8_to_88591,
14148 &inptr, &inbytesleft,
14149 &outptr, &outbytesleft);
14152 iconv_close (cd_utf8_to_88591);
14155 /* Test against Solaris 10 bug: Failures are not distinguishable from
14156 successful returns. */
14158 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14159 if (cd_ascii_to_88591 != (iconv_t)(-1))
14161 static ICONV_CONST char input[] = "\263";
14163 ICONV_CONST char *inptr = input;
14164 size_t inbytesleft = strlen (input);
14165 char *outptr = buf;
14166 size_t outbytesleft = sizeof (buf);
14167 size_t res = iconv (cd_ascii_to_88591,
14168 &inptr, &inbytesleft,
14169 &outptr, &outbytesleft);
14172 iconv_close (cd_ascii_to_88591);
14175 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14177 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14178 if (cd_88591_to_utf8 != (iconv_t)(-1))
14180 static ICONV_CONST char input[] = "\304";
14181 static char buf[2] = { (char)0xDE, (char)0xAD };
14182 ICONV_CONST char *inptr = input;
14183 size_t inbytesleft = 1;
14184 char *outptr = buf;
14185 size_t outbytesleft = 1;
14186 size_t res = iconv (cd_88591_to_utf8,
14187 &inptr, &inbytesleft,
14188 &outptr, &outbytesleft);
14189 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14191 iconv_close (cd_88591_to_utf8);
14194 #if 0 /* This bug could be worked around by the caller. */
14195 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14197 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14198 if (cd_88591_to_utf8 != (iconv_t)(-1))
14200 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14202 ICONV_CONST char *inptr = input;
14203 size_t inbytesleft = strlen (input);
14204 char *outptr = buf;
14205 size_t outbytesleft = sizeof (buf);
14206 size_t res = iconv (cd_88591_to_utf8,
14207 &inptr, &inbytesleft,
14208 &outptr, &outbytesleft);
14211 iconv_close (cd_88591_to_utf8);
14215 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14218 /* Try standardized names. */
14219 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14220 /* Try IRIX, OSF/1 names. */
14221 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14222 /* Try AIX names. */
14223 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14224 /* Try HP-UX names. */
14225 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14226 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14227 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14229 if (cd1 != (iconv_t)(-1))
14231 if (cd2 != (iconv_t)(-1))
14233 if (cd3 != (iconv_t)(-1))
14235 if (cd4 != (iconv_t)(-1))
14244 if ac_fn_cxx_try_run
"$LINENO"; then :
14245 am_cv_func_iconv_works
=yes
14247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14251 test "$am_cv_func_iconv_works" = no ||
break
14253 LIBS
="$am_save_LIBS"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14257 $as_echo "$am_cv_func_iconv_works" >&6; }
14258 case "$am_cv_func_iconv_works" in
14259 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
14260 *) am_func_iconv
=yes ;;
14263 am_func_iconv
=no am_cv_lib_iconv
=no
14265 if test "$am_func_iconv" = yes; then
14267 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14270 if test "$am_cv_lib_iconv" = yes; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14272 $as_echo_n "checking how to link with libiconv... " >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14274 $as_echo "$LIBICONV" >&6; }
14276 CPPFLAGS
="$am_save_CPPFLAGS"
14288 acl_save_prefix
="$prefix"
14289 prefix
="$acl_final_prefix"
14290 acl_save_exec_prefix
="$exec_prefix"
14291 exec_prefix
="$acl_final_exec_prefix"
14293 eval additional_includedir
=\"$includedir\"
14294 eval additional_libdir
=\"$libdir\"
14296 exec_prefix
="$acl_save_exec_prefix"
14297 prefix
="$acl_save_prefix"
14300 # Check whether --with-libintl-prefix was given.
14301 if test "${with_libintl_prefix+set}" = set; then :
14302 withval
=$with_libintl_prefix;
14303 if test "X$withval" = "Xno"; then
14306 if test "X$withval" = "X"; then
14308 acl_save_prefix
="$prefix"
14309 prefix
="$acl_final_prefix"
14310 acl_save_exec_prefix
="$exec_prefix"
14311 exec_prefix
="$acl_final_exec_prefix"
14313 eval additional_includedir
=\"$includedir\"
14314 eval additional_libdir
=\"$libdir\"
14316 exec_prefix
="$acl_save_exec_prefix"
14317 prefix
="$acl_save_prefix"
14320 additional_includedir
="$withval/include"
14321 additional_libdir
="$withval/lib"
14328 # Check whether --with-libintl-type was given.
14329 if test "${with_libintl_type+set}" = set; then :
14330 withval
=$with_libintl_type; with_libintl_type
=$withval
14332 with_libintl_type
=auto
14335 lib_type
=`eval echo \$with_libintl_type`
14342 names_already_handled
=
14343 names_next_round
='intl '
14344 while test -n "$names_next_round"; do
14345 names_this_round
="$names_next_round"
14347 for name
in $names_this_round; do
14349 for n
in $names_already_handled; do
14350 if test "$n" = "$name"; then
14351 already_handled
=yes
14355 if test -z "$already_handled"; then
14356 names_already_handled
="$names_already_handled $name"
14357 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14358 eval value
=\"\
$HAVE_LIB$uppername\"
14359 if test -n "$value"; then
14360 if test "$value" = yes; then
14361 eval value
=\"\
$LIB$uppername\"
14362 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14363 eval value
=\"\
$LTLIB$uppername\"
14364 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14373 if test $use_additional = yes; then
14374 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14375 found_dir
="$additional_libdir"
14376 found_so
="$additional_libdir/lib$name.$shlibext"
14377 if test -f "$additional_libdir/lib$name.la"; then
14378 found_la
="$additional_libdir/lib$name.la"
14380 elif test x
$lib_type != xshared
; then
14381 if test -f "$additional_libdir/lib$name.$libext"; then
14382 found_dir
="$additional_libdir"
14383 found_a
="$additional_libdir/lib$name.$libext"
14384 if test -f "$additional_libdir/lib$name.la"; then
14385 found_la
="$additional_libdir/lib$name.la"
14390 if test "X$found_dir" = "X"; then
14391 for x
in $LDFLAGS $LTLIBINTL; do
14393 acl_save_prefix
="$prefix"
14394 prefix
="$acl_final_prefix"
14395 acl_save_exec_prefix
="$exec_prefix"
14396 exec_prefix
="$acl_final_exec_prefix"
14398 exec_prefix
="$acl_save_exec_prefix"
14399 prefix
="$acl_save_prefix"
14403 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14404 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14406 found_so
="$dir/lib$name.$shlibext"
14407 if test -f "$dir/lib$name.la"; then
14408 found_la
="$dir/lib$name.la"
14410 elif test x
$lib_type != xshared
; then
14411 if test -f "$dir/lib$name.$libext"; then
14413 found_a
="$dir/lib$name.$libext"
14414 if test -f "$dir/lib$name.la"; then
14415 found_la
="$dir/lib$name.la"
14421 if test "X$found_dir" != "X"; then
14426 if test "X$found_dir" != "X"; then
14427 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14428 if test "X$found_so" != "X"; then
14429 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14430 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14433 for x
in $ltrpathdirs; do
14434 if test "X$x" = "X$found_dir"; then
14439 if test -z "$haveit"; then
14440 ltrpathdirs
="$ltrpathdirs $found_dir"
14442 if test "$hardcode_direct" = yes; then
14443 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14445 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14446 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14448 for x
in $rpathdirs; do
14449 if test "X$x" = "X$found_dir"; then
14454 if test -z "$haveit"; then
14455 rpathdirs
="$rpathdirs $found_dir"
14459 for x
in $LDFLAGS $LIBINTL; do
14461 acl_save_prefix
="$prefix"
14462 prefix
="$acl_final_prefix"
14463 acl_save_exec_prefix
="$exec_prefix"
14464 exec_prefix
="$acl_final_exec_prefix"
14466 exec_prefix
="$acl_save_exec_prefix"
14467 prefix
="$acl_save_prefix"
14469 if test "X$x" = "X-L$found_dir"; then
14474 if test -z "$haveit"; then
14475 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14477 if test "$hardcode_minus_L" != no
; then
14478 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14480 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14486 if test "X$found_a" != "X"; then
14487 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14489 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14492 additional_includedir
=
14493 case "$found_dir" in
14495 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14496 additional_includedir
="$basedir/include"
14499 if test "X$additional_includedir" != "X"; then
14500 if test "X$additional_includedir" != "X/usr/include"; then
14502 if test "X$additional_includedir" = "X/usr/local/include"; then
14503 if test -n "$GCC"; then
14505 linux
*) haveit
=yes;;
14509 if test -z "$haveit"; then
14510 for x
in $CPPFLAGS $INCINTL; do
14512 acl_save_prefix
="$prefix"
14513 prefix
="$acl_final_prefix"
14514 acl_save_exec_prefix
="$exec_prefix"
14515 exec_prefix
="$acl_final_exec_prefix"
14517 exec_prefix
="$acl_save_exec_prefix"
14518 prefix
="$acl_save_prefix"
14520 if test "X$x" = "X-I$additional_includedir"; then
14525 if test -z "$haveit"; then
14526 if test -d "$additional_includedir"; then
14527 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14533 if test -n "$found_la"; then
14534 save_libdir
="$libdir"
14535 case "$found_la" in
14536 */* |
*\\*) .
"$found_la" ;;
14537 *) .
"./$found_la" ;;
14539 libdir
="$save_libdir"
14540 for dep
in $dependency_libs; do
14543 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14544 if test "X$additional_libdir" != "X/usr/lib"; then
14546 if test "X$additional_libdir" = "X/usr/local/lib"; then
14547 if test -n "$GCC"; then
14549 linux
*) haveit
=yes;;
14553 if test -z "$haveit"; then
14555 for x
in $LDFLAGS $LIBINTL; do
14557 acl_save_prefix
="$prefix"
14558 prefix
="$acl_final_prefix"
14559 acl_save_exec_prefix
="$exec_prefix"
14560 exec_prefix
="$acl_final_exec_prefix"
14562 exec_prefix
="$acl_save_exec_prefix"
14563 prefix
="$acl_save_prefix"
14565 if test "X$x" = "X-L$additional_libdir"; then
14570 if test -z "$haveit"; then
14571 if test -d "$additional_libdir"; then
14572 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14576 for x
in $LDFLAGS $LTLIBINTL; do
14578 acl_save_prefix
="$prefix"
14579 prefix
="$acl_final_prefix"
14580 acl_save_exec_prefix
="$exec_prefix"
14581 exec_prefix
="$acl_final_exec_prefix"
14583 exec_prefix
="$acl_save_exec_prefix"
14584 prefix
="$acl_save_prefix"
14586 if test "X$x" = "X-L$additional_libdir"; then
14591 if test -z "$haveit"; then
14592 if test -d "$additional_libdir"; then
14593 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14600 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14601 if test "$enable_rpath" != no
; then
14603 for x
in $rpathdirs; do
14604 if test "X$x" = "X$dir"; then
14609 if test -z "$haveit"; then
14610 rpathdirs
="$rpathdirs $dir"
14613 for x
in $ltrpathdirs; do
14614 if test "X$x" = "X$dir"; then
14619 if test -z "$haveit"; then
14620 ltrpathdirs
="$ltrpathdirs $dir"
14625 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14628 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14631 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14632 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14638 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14639 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14640 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14642 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14643 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14650 if test "X$rpathdirs" != "X"; then
14651 if test -n "$hardcode_libdir_separator"; then
14653 for found_dir
in $rpathdirs; do
14654 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14656 acl_save_libdir
="$libdir"
14658 eval flag
=\"$hardcode_libdir_flag_spec\"
14659 libdir
="$acl_save_libdir"
14660 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14662 for found_dir
in $rpathdirs; do
14663 acl_save_libdir
="$libdir"
14664 libdir
="$found_dir"
14665 eval flag
=\"$hardcode_libdir_flag_spec\"
14666 libdir
="$acl_save_libdir"
14667 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14671 if test "X$ltrpathdirs" != "X"; then
14672 for found_dir
in $ltrpathdirs; do
14673 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14678 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14679 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
14680 $as_echo_n "(cached) " >&6
14682 gt_save_CPPFLAGS
="$CPPFLAGS"
14683 CPPFLAGS
="$CPPFLAGS $INCINTL"
14684 gt_save_LIBS
="$LIBS"
14685 LIBS
="$LIBS $LIBINTL"
14686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 #include <libintl.h>
14690 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14691 extern int _nl_msg_cat_cntr;
14696 const char *_nl_expand_alias (const char *);
14697 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14699 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14701 $gt_revision_test_code
14707 bindtextdomain ("", "");
14708 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14714 if ac_fn_cxx_try_link
"$LINENO"; then :
14715 eval "$gt_func_gnugettext_libintl=yes"
14717 eval "$gt_func_gnugettext_libintl=no"
14719 rm -f core conftest.err conftest.
$ac_objext \
14720 conftest
$ac_exeext conftest.
$ac_ext
14721 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14722 LIBS
="$LIBS $LIBICONV"
14723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14726 #include <libintl.h>
14727 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14728 extern int _nl_msg_cat_cntr;
14733 const char *_nl_expand_alias (const char *);
14734 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14736 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14738 $gt_revision_test_code
14744 bindtextdomain ("", "");
14745 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14751 if ac_fn_cxx_try_link
"$LINENO"; then :
14752 LIBINTL
="$LIBINTL $LIBICONV"
14753 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14754 eval "$gt_func_gnugettext_libintl=yes"
14757 rm -f core conftest.err conftest.
$ac_objext \
14758 conftest
$ac_exeext conftest.
$ac_ext
14760 CPPFLAGS
="$gt_save_CPPFLAGS"
14761 LIBS
="$gt_save_LIBS"
14763 eval ac_res
=\$
$gt_func_gnugettext_libintl
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14765 $as_echo "$ac_res" >&6; }
14768 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14769 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14770 && test "$PACKAGE" != gettext-runtime \
14771 && test "$PACKAGE" != gettext-tools
; }; then
14772 gt_use_preinstalled_gnugettext
=yes
14781 if test -n "$INTL_MACOSX_LIBS"; then
14782 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14783 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14784 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
14785 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
14789 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14790 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14792 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14800 $as_echo_n "checking whether to use NLS... " >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14802 $as_echo "$USE_NLS" >&6; }
14803 if test "$USE_NLS" = "yes"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14805 $as_echo_n "checking where the gettext function comes from... " >&6; }
14806 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14807 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14808 gt_source
="external libintl"
14813 gt_source
="included intl directory"
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14816 $as_echo "$gt_source" >&6; }
14819 if test "$USE_NLS" = "yes"; then
14821 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14822 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14824 $as_echo_n "checking how to link with libintl... " >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14826 $as_echo "$LIBINTL" >&6; }
14828 for element
in $INCINTL; do
14830 for x
in $CPPFLAGS; do
14832 acl_save_prefix
="$prefix"
14833 prefix
="$acl_final_prefix"
14834 acl_save_exec_prefix
="$exec_prefix"
14835 exec_prefix
="$acl_final_exec_prefix"
14837 exec_prefix
="$acl_save_exec_prefix"
14838 prefix
="$acl_save_prefix"
14840 if test "X$x" = "X$element"; then
14845 if test -z "$haveit"; then
14846 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14853 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14856 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14865 INTLLIBS
="$LIBINTL"
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14885 $as_echo_n "checking whether NLS is requested... " >&6; }
14886 if test x
"$USE_NLS" != xyes
; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888 $as_echo "no" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14893 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14897 $as_echo_n "checking for catalogs to be installed... " >&6; }
14898 # Look for .po and .gmo files in the source directory.
14901 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
14902 # If there aren't any .gmo files the shell will give us the
14903 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14905 case "$cat" in *\
**)
14908 # The quadruple backslash is collapsed to a double backslash
14909 # by the backticks, then collapsed again by the double quotes,
14910 # leaving us with one backslash in the sed expression (right
14911 # before the dot that mustn't act as a wildcard).
14912 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14913 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
14914 # The user is allowed to set LINGUAS to a list of languages to
14915 # install catalogs for. If it's empty that means "all of them."
14916 if test "x$LINGUAS" = x
; then
14917 CATALOGS
="$CATALOGS $cat"
14918 XLINGUAS
="$XLINGUAS $lang"
14920 case "$LINGUAS" in *$lang*)
14921 CATALOGS
="$CATALOGS $cat"
14922 XLINGUAS
="$XLINGUAS $lang"
14927 LINGUAS
="$XLINGUAS"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14929 $as_echo "$LINGUAS" >&6; }
14942 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14943 # -liconv on the link line twice.
14944 case "$LIBINTL" in *$LIBICONV*)
14948 # Check whether --enable-secureplt was given.
14949 if test "${enable_secureplt+set}" = set; then :
14950 enableval
=$enable_secureplt;
14954 # Check whether --enable-mingw-wildcard was given.
14955 if test "${enable_mingw_wildcard+set}" = set; then :
14956 enableval
=$enable_mingw_wildcard;
14958 enable_mingw_wildcard
=platform
14961 if test x
"$enable_mingw_wildcard" != xplatform
; then :
14963 cat >>confdefs.h
<<_ACEOF
14964 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14969 # Check whether --enable-large-address-aware was given.
14970 if test "${enable_large_address_aware+set}" = set; then :
14971 enableval
=$enable_large_address_aware;
14974 if test x
"$enable_large_address_aware" = xyes
; then :
14976 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14980 # Check whether --enable-leading-mingw64-underscores was given.
14981 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14982 enableval
=$enable_leading_mingw64_underscores;
14985 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
14987 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14991 # Check whether --enable-cld was given.
14992 if test "${enable_cld+set}" = set; then :
14993 enableval
=$enable_cld;
14999 # Check whether --enable-frame-pointer was given.
15000 if test "${enable_frame_pointer+set}" = set; then :
15001 enableval
=$enable_frame_pointer;
15005 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
15006 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15007 enable_frame_pointer
=no
15010 enable_frame_pointer
=yes
15018 i
[34567]86-*-* | x86_64-
*-*)
15019 if test "x$enable_cld" = xyes
; then
15020 tm_defines
="${tm_defines} USE_IX86_CLD=1"
15022 if test "x$enable_frame_pointer" = xyes
; then
15023 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
15028 # Windows32 Registry support for specifying GCC installation paths.
15029 # Check whether --enable-win32-registry was given.
15030 if test "${enable_win32_registry+set}" = set; then :
15031 enableval
=$enable_win32_registry;
15036 win32 | pe | cygwin
* | mingw32
*)
15037 if test "x$enable_win32_registry" != xno
; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15039 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15040 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15041 $as_echo_n "(cached) " >&6
15043 ac_func_search_save_LIBS
=$LIBS
15044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15045 /* end confdefs.h. */
15047 /* Override any GCC internal prototype to avoid an error.
15048 Use char because int might match the return type of a GCC
15049 builtin and then its argument prototype would still apply. */
15053 char RegOpenKeyExA ();
15057 return RegOpenKeyExA ();
15062 for ac_lib
in '' advapi32
; do
15063 if test -z "$ac_lib"; then
15064 ac_res
="none required"
15067 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15069 if ac_fn_cxx_try_link
"$LINENO"; then :
15070 ac_cv_search_RegOpenKeyExA
=$ac_res
15072 rm -f core conftest.err conftest.
$ac_objext \
15074 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15078 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
15081 ac_cv_search_RegOpenKeyExA
=no
15083 rm conftest.
$ac_ext
15084 LIBS
=$ac_func_search_save_LIBS
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15087 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15088 ac_res
=$ac_cv_search_RegOpenKeyExA
15089 if test "$ac_res" != no
; then :
15090 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15093 enable_win32_registry
=no
15098 if test "x$enable_win32_registry" != xno
; then
15100 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15103 if test "x$enable_win32_registry" != xyes \
15104 && test "x$enable_win32_registry" != x
; then
15106 cat >>confdefs.h
<<_ACEOF
15107 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15115 # Get an absolute path to the GCC top-level source directory
15116 holddir
=`${PWDCMD-pwd}`
15118 topdir
=`${PWDCMD-pwd}`
15121 # Conditionalize the makefile for this host machine.
15123 for f
in ${host_xmake_file}
15125 if test -f ${srcdir}/config
/$f
15127 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
15131 # Conditionalize the makefile for this target machine.
15133 for f
in ${tmake_file}
15135 if test -f ${srcdir}/config
/$f
15137 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
15140 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
15142 out_object_file
=`basename $out_file .cc`.o
15143 common_out_object_file
=`basename $common_out_file .cc`.o
15145 tm_file_list
="options.h"
15146 tm_include_list
="options.h insn-constants.h"
15147 for f
in $tm_file; do
15150 f
=`echo $f | sed 's/^..//'`
15151 tm_file_list
="${tm_file_list} $f"
15152 tm_include_list
="${tm_include_list} $f"
15155 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
15156 tm_include_list
="${tm_include_list} $f"
15159 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
15160 tm_include_list
="${tm_include_list} config/$f"
15167 for f
in $tm_p_file; do
15170 tm_p_file_list
="${tm_p_file_list} $f"
15171 tm_p_include_list
="${tm_p_include_list} $f"
15174 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
15175 tm_p_include_list
="${tm_p_include_list} config/$f"
15181 for f
in $tm_d_file; do
15184 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
15185 tm_d_include_list
="${tm_d_include_list} config/$f"
15191 tm_rust_include_list
=
15192 for f
in $tm_rust_file; do
15195 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
15196 tm_rust_include_list
="${tm_rust_include_list} config/$f"
15203 for f
in $xm_file; do
15206 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
15207 xm_include_list
="${xm_include_list} $f"
15210 xm_file_list
="${xm_file_list} $f"
15211 xm_include_list
="${xm_include_list} $f"
15214 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
15215 xm_include_list
="${xm_include_list} config/$f"
15221 host_xm_include_list
=
15222 for f
in $host_xm_file; do
15225 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
15226 host_xm_include_list
="${host_xm_include_list} $f"
15229 host_xm_file_list
="${host_xm_file_list} $f"
15230 host_xm_include_list
="${host_xm_include_list} $f"
15233 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
15234 host_xm_include_list
="${host_xm_include_list} config/$f"
15239 build_xm_file_list
=
15240 for f
in $build_xm_file; do
15243 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
15244 build_xm_include_list
="${build_xm_include_list} $f"
15246 auto-build.h | auto-host.h
)
15247 build_xm_file_list
="${build_xm_file_list} $f"
15248 build_xm_include_list
="${build_xm_include_list} $f"
15251 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
15252 build_xm_include_list
="${build_xm_include_list} config/$f"
15257 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15258 # cross-compiler which does not use the native headers and libraries.
15259 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15262 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15263 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
15265 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
15266 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
15267 if test "x$with_build_sysroot" != x
; then
15268 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15270 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15273 if test x
$host != x
$target
15275 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
15277 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
15278 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
15279 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15282 if test "x$with_build_sysroot" != "x"; then
15283 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
15284 elif test "x$with_sysroot" = x
; then
15285 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
15286 elif test "x$with_sysroot" = xyes
; then
15287 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15289 target_header_dir
="${with_sysroot}${native_system_header_dir}"
15292 target_header_dir
=${native_system_header_dir}
15295 # If this is a cross-compiler that does not
15296 # have its own set of headers then define
15299 # If this is using newlib, without having the headers available now,
15300 # then define inhibit_libc in LIBGCC2_CFLAGS.
15301 # This prevents libgcc2 from containing any code which requires libc
15303 : ${inhibit_libc=false}
15304 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
15305 test x
$with_newlib = xyes
; } &&
15306 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
15311 # When building gcc with a cross-compiler, we need to adjust things so
15312 # that the generator programs are still built with the native compiler.
15313 # Also, we cannot run fixincludes.
15315 # These are the normal (build=host) settings:
15316 CC_FOR_BUILD
='$(CC)'
15317 CXX_FOR_BUILD
='$(CXX)'
15318 BUILD_CFLAGS
='$(ALL_CFLAGS)'
15319 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
15320 BUILD_LDFLAGS
='$(LDFLAGS)'
15321 STMP_FIXINC
=stmp-fixinc
15323 # And these apply if build != host, or we are generating coverage data
15324 if test x
$build != x
$host ||
test "x$coverage_flags" != x
15326 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15327 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15328 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
15332 if test x
$enable_fixincludes = xno
;
15337 # Expand extra_headers to include complete path.
15338 # This substitutes for lots of t-* files.
15339 extra_headers_list
=
15340 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15341 for file in ${extra_headers} ; do
15342 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15345 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15346 if test x
"$use_gcc_tgmath" = xyes
15347 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15350 # Define collect2 in Makefile.
15351 case $host_can_use_collect2 in
15353 *) collect2
='collect2$(exeext)' ;;
15357 # Add a definition of USE_COLLECT2 if system wants one.
15358 case $use_collect2 in
15359 no
) use_collect2
= ;;
15362 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
15363 xm_defines
="${xm_defines} USE_COLLECT2"
15364 case $host_can_use_collect2 in
15366 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
15373 cat >>confdefs.h
<<_ACEOF
15374 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15378 # ---------------------------
15379 # Assembler & linker features
15380 # ---------------------------
15382 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15383 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15384 # However when ld-new is first executed from the build tree, libtool will
15385 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15386 # to the build tree. While doing this we need to use the previous-stage
15387 # linker, or we have an infinite loop. The presence of a shell script as
15388 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15389 # the gcc/collect-ld script. So we need to know how libtool works, or
15390 # exec-tool will fail.
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15396 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15401 macro_version
='2.2.7a'
15402 macro_revision
='1.3134'
15416 ltmain
="$ac_aux_dir/ltmain.sh"
15418 # Backslashify metacharacters that are still active within
15419 # double-quoted strings.
15420 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
15422 # Same as above, but do not quote variable references.
15423 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
15425 # Sed substitution to delay expansion of an escaped shell variable in a
15426 # double_quote_subst'ed string.
15427 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15429 # Sed substitution to delay expansion of an escaped single quote.
15430 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15432 # Sed substitution to avoid accidental globbing in evaled expressions
15433 no_glob_subst
='s/\*/\\\*/g'
15435 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15440 $as_echo_n "checking how to print strings... " >&6; }
15441 # Test print first, because it will be a builtin if present.
15442 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15443 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15445 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15448 # Use this function as a fallback that always works.
15449 func_fallback_echo ()
15451 eval 'cat <<_LTECHO_EOF
15455 ECHO='func_fallback_echo
'
15458 # func_echo_all arg...
15459 # Invoke $ECHO with all args, space-separated.
15466 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15467 $as_echo "printf" >&6; } ;;
15468 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15469 $as_echo "print -r" >&6; } ;;
15470 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15471 $as_echo "cat" >&6; } ;;
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15489 if ${ac_cv_path_SED+:} false; then :
15490 $as_echo_n "(cached) " >&6
15492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15493 for ac_i in 1 2 3 4 5 6 7; do
15494 ac_script="$ac_script$as_nl$ac_script"
15496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15497 { ac_script=; unset ac_script;}
15498 if test -z "$SED"; then
15499 ac_path_SED_found=false
15500 # Loop through the user's path and
test for each of PROGNAME-LIST
15501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15502 for as_dir
in $PATH
15505 test -z "$as_dir" && as_dir
=.
15506 for ac_prog
in sed gsed
; do
15507 for ac_exec_ext
in '' $ac_executable_extensions; do
15508 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
15509 as_fn_executable_p
"$ac_path_SED" ||
continue
15510 # Check for GNU ac_path_SED and select it if it is found.
15511 # Check for GNU $ac_path_SED
15512 case `"$ac_path_SED" --version 2>&1` in
15514 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
15517 $as_echo_n 0123456789 >"conftest.in"
15520 cat "conftest.in" "conftest.in" >"conftest.tmp"
15521 mv "conftest.tmp" "conftest.in"
15522 cp "conftest.in" "conftest.nl"
15523 $as_echo '' >> "conftest.nl"
15524 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15525 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15526 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15527 if test $ac_count -gt ${ac_path_SED_max-0}; then
15528 # Best one so far, save it but keep looking for a better one
15529 ac_cv_path_SED
="$ac_path_SED"
15530 ac_path_SED_max
=$ac_count
15532 # 10*(2^10) chars as input seems more than enough
15533 test $ac_count -gt 10 && break
15535 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15538 $ac_path_SED_found && break 3
15543 if test -z "$ac_cv_path_SED"; then
15544 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
15547 ac_cv_path_SED
=$SED
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15552 $as_echo "$ac_cv_path_SED" >&6; }
15553 SED
="$ac_cv_path_SED"
15556 test -z "$SED" && SED
=sed
15557 Xsed
="$SED -e 1s/^X//"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15570 $as_echo_n "checking for fgrep... " >&6; }
15571 if ${ac_cv_path_FGREP+:} false
; then :
15572 $as_echo_n "(cached) " >&6
15574 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
15575 then ac_cv_path_FGREP
="$GREP -F"
15577 if test -z "$FGREP"; then
15578 ac_path_FGREP_found
=false
15579 # Loop through the user's path and test for each of PROGNAME-LIST
15580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15581 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
15584 test -z "$as_dir" && as_dir
=.
15585 for ac_prog
in fgrep
; do
15586 for ac_exec_ext
in '' $ac_executable_extensions; do
15587 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
15588 as_fn_executable_p
"$ac_path_FGREP" ||
continue
15589 # Check for GNU ac_path_FGREP and select it if it is found.
15590 # Check for GNU $ac_path_FGREP
15591 case `"$ac_path_FGREP" --version 2>&1` in
15593 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
15596 $as_echo_n 0123456789 >"conftest.in"
15599 cat "conftest.in" "conftest.in" >"conftest.tmp"
15600 mv "conftest.tmp" "conftest.in"
15601 cp "conftest.in" "conftest.nl"
15602 $as_echo 'FGREP' >> "conftest.nl"
15603 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15604 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15605 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15606 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15607 # Best one so far, save it but keep looking for a better one
15608 ac_cv_path_FGREP
="$ac_path_FGREP"
15609 ac_path_FGREP_max
=$ac_count
15611 # 10*(2^10) chars as input seems more than enough
15612 test $ac_count -gt 10 && break
15614 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15617 $ac_path_FGREP_found && break 3
15622 if test -z "$ac_cv_path_FGREP"; then
15623 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15626 ac_cv_path_FGREP
=$FGREP
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15632 $as_echo "$ac_cv_path_FGREP" >&6; }
15633 FGREP
="$ac_cv_path_FGREP"
15636 test -z "$GREP" && GREP
=grep
15656 # Check whether --with-gnu-ld was given.
15657 if test "${with_gnu_ld+set}" = set; then :
15658 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15664 if test "$GCC" = yes; then
15665 # Check if gcc -print-prog-name=ld gives a path.
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15667 $as_echo_n "checking for ld used by $CC... " >&6; }
15670 # gcc leaves a trailing carriage return which upsets mingw
15671 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15673 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15676 # Accept absolute paths.
15678 re_direlt
='/[^/][^/]*/\.\./'
15679 # Canonicalize the pathname of ld
15680 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15681 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15682 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15684 test -z "$LD" && LD
="$ac_prog"
15687 # If it fails, then pretend we aren't using GCC.
15691 # If it is relative, then search for the first ld in PATH.
15692 with_gnu_ld
=unknown
15695 elif test "$with_gnu_ld" = yes; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15697 $as_echo_n "checking for GNU ld... " >&6; }
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15700 $as_echo_n "checking for non-GNU ld... " >&6; }
15702 if ${lt_cv_path_LD+:} false
; then :
15703 $as_echo_n "(cached) " >&6
15705 if test -z "$LD"; then
15706 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15707 for ac_dir
in $PATH; do
15709 test -z "$ac_dir" && ac_dir
=.
15710 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15711 lt_cv_path_LD
="$ac_dir/$ac_prog"
15712 # Check to see if the program is GNU ld. I'd rather use --version,
15713 # but apparently some variants of GNU ld only accept -v.
15714 # Break only if it was the GNU/non-GNU ld that we prefer.
15715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15716 *GNU
* |
*'with BFD'*)
15717 test "$with_gnu_ld" != no
&& break
15720 test "$with_gnu_ld" != yes && break
15727 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15731 LD
="$lt_cv_path_LD"
15732 if test -n "$LD"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15734 $as_echo "$LD" >&6; }
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15739 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15742 if ${lt_cv_prog_gnu_ld+:} false
; then :
15743 $as_echo_n "(cached) " >&6
15745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15746 case `$LD -v 2>&1 </dev/null` in
15747 *GNU
* |
*'with BFD'*)
15748 lt_cv_prog_gnu_ld
=yes
15751 lt_cv_prog_gnu_ld
=no
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15757 with_gnu_ld
=$lt_cv_prog_gnu_ld
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15769 if ${lt_cv_path_NM+:} false
; then :
15770 $as_echo_n "(cached) " >&6
15772 if test -n "$NM"; then
15773 # Let the user override the nm to test.
15774 lt_nm_to_check
="$NM"
15776 lt_nm_to_check
="${ac_tool_prefix}nm"
15777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15778 lt_nm_to_check
="$lt_nm_to_check nm"
15781 for lt_tmp_nm
in "$lt_nm_to_check"; do
15782 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15783 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
15785 test -z "$ac_dir" && ac_dir
=.
15786 # Strip out any user-provided options from the nm to test twice,
15787 # the first time to test to see if nm (rather than its options) has
15788 # an explicit path, the second time to yield a file which can be
15790 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15791 case "$tmp_nm_path" in
15792 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
15793 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
15795 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15796 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
15797 # Check to see if the nm accepts a BSD-compat flag.
15798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15799 # nm: unknown option "B" ignored
15800 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15801 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
15805 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15807 lt_cv_path_NM
="$tmp_nm -p"
15811 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15812 continue # so that we can try to find one that supports BSD flags
15821 : ${lt_cv_path_NM=no}
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15824 $as_echo "$lt_cv_path_NM" >&6; }
15825 if test "$lt_cv_path_NM" != "no"; then
15826 NM
="$lt_cv_path_NM"
15828 # Didn't find any BSD compatible name lister, look for dumpbin.
15829 if test -n "$DUMPBIN"; then :
15830 # Let the user override the test.
15832 if test -n "$ac_tool_prefix"; then
15833 for ac_prog
in dumpbin
"link -dump"
15835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15836 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if ${ac_cv_prog_DUMPBIN+:} false
; then :
15840 $as_echo_n "(cached) " >&6
15842 if test -n "$DUMPBIN"; then
15843 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
15845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15846 for as_dir
in $PATH
15849 test -z "$as_dir" && as_dir
=.
15850 for ac_exec_ext
in '' $ac_executable_extensions; do
15851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15852 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
15853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15862 DUMPBIN
=$ac_cv_prog_DUMPBIN
15863 if test -n "$DUMPBIN"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15865 $as_echo "$DUMPBIN" >&6; }
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15872 test -n "$DUMPBIN" && break
15875 if test -z "$DUMPBIN"; then
15876 ac_ct_DUMPBIN
=$DUMPBIN
15877 for ac_prog
in dumpbin
"link -dump"
15879 # Extract the first word of "$ac_prog", so it can be a program name with args.
15880 set dummy
$ac_prog; ac_word
=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
15884 $as_echo_n "(cached) " >&6
15886 if test -n "$ac_ct_DUMPBIN"; then
15887 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
15889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15890 for as_dir
in $PATH
15893 test -z "$as_dir" && as_dir
=.
15894 for ac_exec_ext
in '' $ac_executable_extensions; do
15895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15906 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
15907 if test -n "$ac_ct_DUMPBIN"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15909 $as_echo "$ac_ct_DUMPBIN" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15916 test -n "$ac_ct_DUMPBIN" && break
15919 if test "x$ac_ct_DUMPBIN" = x
; then
15922 case $cross_compiling:$ac_tool_warned in
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15926 ac_tool_warned
=yes ;;
15928 DUMPBIN
=$ac_ct_DUMPBIN
15932 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15934 DUMPBIN
="$DUMPBIN -symbols"
15942 if test "$DUMPBIN" != ":"; then
15946 test -z "$NM" && NM
=nm
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15954 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15955 if ${lt_cv_nm_interface+:} false
; then :
15956 $as_echo_n "(cached) " >&6
15958 lt_cv_nm_interface
="BSD nm"
15959 echo "int some_variable = 0;" > conftest.
$ac_ext
15960 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15961 (eval "$ac_compile" 2>conftest.err
)
15962 cat conftest.err
>&5
15963 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15964 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
15965 cat conftest.err
>&5
15966 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15967 cat conftest.out
>&5
15968 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
15969 lt_cv_nm_interface
="MS dumpbin"
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15974 $as_echo "$lt_cv_nm_interface" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15977 $as_echo_n "checking whether ln -s works... " >&6; }
15979 if test "$LN_S" = "ln -s"; then
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15981 $as_echo "yes" >&6; }
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15984 $as_echo "no, using $LN_S" >&6; }
15987 # find the maximum length of command line arguments
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15989 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15990 if ${lt_cv_sys_max_cmd_len+:} false
; then :
15991 $as_echo_n "(cached) " >&6
15998 # On DJGPP, this test can blow up pretty badly due to problems in libc
15999 # (any single argument exceeding 2000 bytes causes a buffer overrun
16000 # during glob expansion). Even if it were fixed, the result of this
16001 # check would be larger than it should be.
16002 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
16006 # Under GNU Hurd, this test is not required because there is
16007 # no limit to the length of command line arguments.
16008 # Libtool will interpret -1 as no limit whatsoever
16009 lt_cv_sys_max_cmd_len
=-1;
16012 cygwin
* | mingw
* | cegcc
*)
16013 # On Win9x/ME, this test blows up -- it succeeds, but takes
16014 # about 5 minutes as the teststring grows exponentially.
16015 # Worse, since 9x/ME are not pre-emptively multitasking,
16016 # you end up with a "frozen" computer, even though with patience
16017 # the test eventually succeeds (with a max line length of 256k).
16018 # Instead, let's just punt: use the minimum linelength reported by
16019 # all of the supported platforms: 8192 (on NT/2K/XP).
16020 lt_cv_sys_max_cmd_len
=8192;
16024 # On MiNT this can take a long time and run out of memory.
16025 lt_cv_sys_max_cmd_len
=8192;
16029 # On AmigaOS with pdksh, this test takes hours, literally.
16030 # So we just punt and use a minimum line length of 8192.
16031 lt_cv_sys_max_cmd_len
=8192;
16034 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
16035 # This has been around since 386BSD, at least. Likely further.
16036 if test -x /sbin
/sysctl
; then
16037 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
16038 elif test -x /usr
/sbin
/sysctl
; then
16039 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
16041 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
16043 # And add a safety zone
16044 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
16045 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
16049 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16050 lt_cv_sys_max_cmd_len
=196608
16054 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16055 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16056 # nice to cause kernel panics so lets avoid the loop below.
16057 # First set a reasonable default.
16058 lt_cv_sys_max_cmd_len
=16384
16060 if test -x /sbin
/sysconfig
; then
16061 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16062 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
16067 lt_cv_sys_max_cmd_len
=102400
16069 sysv5
* | sco5v6
* | sysv4.2uw2
*)
16070 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16071 if test -n "$kargmax"; then
16072 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
16074 lt_cv_sys_max_cmd_len
=32768
16078 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
16079 if test -n "$lt_cv_sys_max_cmd_len"; then
16080 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
16081 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
16083 # Make teststring a little bigger before we do anything with it.
16084 # a 1K string should be a reasonable start.
16085 for i
in 1 2 3 4 5 6 7 8 ; do
16086 teststring
=$teststring$teststring
16088 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
16089 # If test is not a shell built-in, we'll probably end up computing a
16090 # maximum length that is only half of the actual maximum length, but
16092 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16093 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
16094 test $i != 17 # 1/2 MB should be enough
16097 teststring
=$teststring$teststring
16099 # Only check the string length outside the loop.
16100 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
16102 # Add a significant safety factor because C++ compilers can tack on
16103 # massive amounts of additional arguments before passing them to the
16104 # linker. It appears as though 1/2 is a usable value.
16105 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
16112 if test -n $lt_cv_sys_max_cmd_len ; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16114 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16117 $as_echo "none" >&6; }
16119 max_cmd_len
=$lt_cv_sys_max_cmd_len
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16131 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16132 # Try some XSI features
16134 ( _lt_dummy
="a/b/c"
16135 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16137 && eval 'test $(( 1 + 1 )) -eq 2 \
16138 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
16141 $as_echo "$xsi_shell" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
16145 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
16147 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
16149 && lt_shell_append=yes
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
16151 $as_echo "$lt_shell_append" >&6; }
16154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16164 # test EBCDIC or ASCII
16165 case `echo X|tr X '\101'` in
16166 A) # ASCII based system
16167 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16168 lt_SP2NL='tr \040 \012'
16169 lt_NL2SP='tr \015\012 \040\040'
16171 *) # EBCDIC based system
16172 lt_SP2NL='tr \100 \n'
16173 lt_NL2SP='tr \r\n \100\100'
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
16186 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
16187 if ${lt_cv_ld_reload_flag+:} false; then :
16188 $as_echo_n "(cached
) " >&6
16190 lt_cv_ld_reload_flag='-r'
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
16193 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16194 reload_flag=$lt_cv_ld_reload_flag
16195 case $reload_flag in
16197 *) reload_flag=" $reload_flag" ;;
16199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16202 if test "$GCC" = yes; then
16203 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16218 if test -n "$ac_tool_prefix"; then
16219 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
16220 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16222 $as_echo_n "checking
for $ac_word...
" >&6; }
16223 if ${ac_cv_prog_OBJDUMP+:} false; then :
16224 $as_echo_n "(cached
) " >&6
16226 if test -n "$OBJDUMP"; then
16227 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $PATH
16233 test -z "$as_dir" && as_dir=.
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16236 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
16237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16246 OBJDUMP=$ac_cv_prog_OBJDUMP
16247 if test -n "$OBJDUMP"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
16249 $as_echo "$OBJDUMP" >&6; }
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16252 $as_echo "no
" >&6; }
16257 if test -z "$ac_cv_prog_OBJDUMP"; then
16258 ac_ct_OBJDUMP=$OBJDUMP
16259 # Extract the first word of "objdump
", so it can be a program name with args.
16260 set dummy objdump; ac_word=$2
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16262 $as_echo_n "checking
for $ac_word...
" >&6; }
16263 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16264 $as_echo_n "(cached
) " >&6
16266 if test -n "$ac_ct_OBJDUMP"; then
16267 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16273 test -z "$as_dir" && as_dir=.
16274 for ac_exec_ext in '' $ac_executable_extensions; do
16275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16276 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
16277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16286 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16287 if test -n "$ac_ct_OBJDUMP"; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
16289 $as_echo "$ac_ct_OBJDUMP" >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16292 $as_echo "no
" >&6; }
16295 if test "x
$ac_ct_OBJDUMP" = x; then
16298 case $cross_compiling:$ac_tool_warned in
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16301 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16302 ac_tool_warned=yes ;;
16304 OBJDUMP=$ac_ct_OBJDUMP
16307 OBJDUMP="$ac_cv_prog_OBJDUMP"
16310 test -z "$OBJDUMP" && OBJDUMP=objdump
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
16321 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
16322 if ${lt_cv_deplibs_check_method+:} false; then :
16323 $as_echo_n "(cached
) " >&6
16325 lt_cv_file_magic_cmd='$MAGIC_CMD'
16326 lt_cv_file_magic_test_file=
16327 lt_cv_deplibs_check_method='unknown'
16328 # Need to set the preceding variable on all platforms that support
16329 # interlibrary dependencies.
16330 # 'none' -- dependencies not supported.
16331 # `unknown' -- same as none, but documents that we really don't know.
16332 # 'pass_all' -- all dependencies passed with no checks.
16333 # 'test_compile' -- check by making test program.
16334 # 'file_magic [[regex]]' -- check by looking for files in library path
16335 # which responds to the $file_magic_cmd with a given extended regex.
16336 # If you have `file' or equivalent on your system and you're not sure
16337 # whether `pass_all' will *always* work, you probably want this one.
16341 lt_cv_deplibs_check_method=pass_all
16345 lt_cv_deplibs_check_method=pass_all
16349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16350 lt_cv_file_magic_cmd='/usr/bin/file -L'
16351 lt_cv_file_magic_test_file=/shlib/libc.so
16355 # func_win32_libid is a shell function defined in ltmain.sh
16356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16357 lt_cv_file_magic_cmd='func_win32_libid'
16361 # Base MSYS/MinGW do not provide the 'file' command needed by
16362 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16363 # unless we find 'file', for example because we are cross-compiling.
16364 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16365 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
16366 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16367 lt_cv_file_magic_cmd='func_win32_libid'
16369 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16370 lt_cv_file_magic_cmd='$OBJDUMP -f'
16375 # use the weaker test based on 'objdump'. See mingw*.
16376 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16377 lt_cv_file_magic_cmd='$OBJDUMP -f'
16380 darwin* | rhapsody*)
16381 lt_cv_deplibs_check_method=pass_all
16384 freebsd* | dragonfly*)
16385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16388 # Not sure whether the presence of OpenBSD here was a mistake.
16389 # Let's accept both of them until this is cleared up.
16390 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16391 lt_cv_file_magic_cmd=/usr/bin/file
16392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16396 lt_cv_deplibs_check_method=pass_all
16401 lt_cv_deplibs_check_method=pass_all
16405 lt_cv_deplibs_check_method=pass_all
16408 hpux10.20* | hpux11*)
16409 lt_cv_file_magic_cmd=/usr/bin/file
16412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16416 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]'
16417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16421 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16427 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16431 irix5* | irix6* | nonstopux*)
16433 *-32|*"-32 ") libmagic=32-bit;;
16434 *-n32|*"-n32 ") libmagic=N32;;
16435 *-64|*"-64 ") libmagic=64-bit;;
16436 *) libmagic=never-match;;
16438 lt_cv_deplibs_check_method=pass_all
16441 # This must be Linux ELF.
16442 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16443 lt_cv_deplibs_check_method=pass_all
16447 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16456 lt_cv_file_magic_cmd=/usr/bin/file
16457 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16461 lt_cv_deplibs_check_method=pass_all
16465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
16466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16472 osf3* | osf4* | osf5*)
16473 lt_cv_deplibs_check_method=pass_all
16477 lt_cv_deplibs_check_method=pass_all
16481 lt_cv_deplibs_check_method=pass_all
16484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16485 lt_cv_deplibs_check_method=pass_all
16489 case $host_vendor in
16491 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]'
16492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16495 lt_cv_deplibs_check_method=pass_all
16498 lt_cv_file_magic_cmd='/bin/file'
16499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16502 lt_cv_file_magic_cmd='/bin/file'
16503 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
16504 lt_cv_file_magic_test_file=/lib/libc.so
16507 lt_cv_deplibs_check_method=pass_all
16510 lt_cv_deplibs_check_method=pass_all
16516 lt_cv_deplibs_check_method=pass_all
16519 # Assume VxWorks cross toolchains are built on Linux, possibly
16520 # as canadian for Windows hosts.
16521 lt_cv_deplibs_check_method=pass_all
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
16527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16528 file_magic_cmd=$lt_cv_file_magic_cmd
16529 deplibs_check_method=$lt_cv_deplibs_check_method
16530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16544 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
16545 for plugin in $plugin_names; do
16546 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16547 if test x$plugin_so = x$plugin; then
16548 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16550 if test x$plugin_so != x$plugin; then
16551 plugin_option="--plugin $plugin_so"
16556 if test -n "$ac_tool_prefix"; then
16557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16558 set dummy ${ac_tool_prefix}ar; ac_word=$2
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16560 $as_echo_n "checking
for $ac_word...
" >&6; }
16561 if ${ac_cv_prog_AR+:} false; then :
16562 $as_echo_n "(cached
) " >&6
16564 if test -n "$AR"; then
16565 ac_cv_prog_AR="$AR" # Let the user override the test.
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
16573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16574 ac_cv_prog_AR="${ac_tool_prefix}ar"
16575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16585 if test -n "$AR"; then
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
16587 $as_echo "$AR" >&6; }
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16590 $as_echo "no
" >&6; }
16595 if test -z "$ac_cv_prog_AR"; then
16597 # Extract the first word of "ar", so it can be a program name with args.
16598 set dummy ar; ac_word=$2
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16600 $as_echo_n "checking
for $ac_word...
" >&6; }
16601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16602 $as_echo_n "(cached
) " >&6
16604 if test -n "$ac_ct_AR"; then
16605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $PATH
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614 ac_cv_prog_ac_ct_AR="ar"
16615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16625 if test -n "$ac_ct_AR"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
16627 $as_echo "$ac_ct_AR" >&6; }
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16630 $as_echo "no
" >&6; }
16633 if test "x
$ac_ct_AR" = x; then
16636 case $cross_compiling:$ac_tool_warned in
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16639 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16640 ac_tool_warned=yes ;;
16645 AR="$ac_cv_prog_AR"
16648 test -z "$AR" && AR=ar
16649 if test -n "$plugin_option"; then
16650 if $AR --help 2>&1 | grep -q "\
--plugin"; then
16652 $AR $plugin_option rc conftest.a conftest.c
16653 if test "$?
" != 0; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
16655 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
16657 AR="$AR $plugin_option"
16662 test -z "$AR_FLAGS" && AR_FLAGS=cru
16674 if test -n "$ac_tool_prefix"; then
16675 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
16676 set dummy ${ac_tool_prefix}strip; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16678 $as_echo_n "checking
for $ac_word...
" >&6; }
16679 if ${ac_cv_prog_STRIP+:} false; then :
16680 $as_echo_n "(cached
) " >&6
16682 if test -n "$STRIP"; then
16683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16689 test -z "$as_dir" && as_dir=.
16690 for ac_exec_ext in '' $ac_executable_extensions; do
16691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
16693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16702 STRIP=$ac_cv_prog_STRIP
16703 if test -n "$STRIP"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
16705 $as_echo "$STRIP" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16708 $as_echo "no
" >&6; }
16713 if test -z "$ac_cv_prog_STRIP"; then
16715 # Extract the first word of "strip
", so it can be a program name with args.
16716 set dummy strip; ac_word=$2
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16718 $as_echo_n "checking
for $ac_word...
" >&6; }
16719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16720 $as_echo_n "(cached
) " >&6
16722 if test -n "$ac_ct_STRIP"; then
16723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16726 for as_dir in $PATH
16729 test -z "$as_dir" && as_dir=.
16730 for ac_exec_ext in '' $ac_executable_extensions; do
16731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16732 ac_cv_prog_ac_ct_STRIP="strip
"
16733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16743 if test -n "$ac_ct_STRIP"; then
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
16745 $as_echo "$ac_ct_STRIP" >&6; }
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16748 $as_echo "no
" >&6; }
16751 if test "x
$ac_ct_STRIP" = x; then
16754 case $cross_compiling:$ac_tool_warned in
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16757 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16758 ac_tool_warned=yes ;;
16763 STRIP="$ac_cv_prog_STRIP"
16766 test -z "$STRIP" && STRIP=:
16773 if test -n "$ac_tool_prefix"; then
16774 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
16775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16777 $as_echo_n "checking
for $ac_word...
" >&6; }
16778 if ${ac_cv_prog_RANLIB+:} false; then :
16779 $as_echo_n "(cached
) " >&6
16781 if test -n "$RANLIB"; then
16782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16788 test -z "$as_dir" && as_dir=.
16789 for ac_exec_ext in '' $ac_executable_extensions; do
16790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
16792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16801 RANLIB=$ac_cv_prog_RANLIB
16802 if test -n "$RANLIB"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
16804 $as_echo "$RANLIB" >&6; }
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16807 $as_echo "no
" >&6; }
16812 if test -z "$ac_cv_prog_RANLIB"; then
16813 ac_ct_RANLIB=$RANLIB
16814 # Extract the first word of "ranlib
", so it can be a program name with args.
16815 set dummy ranlib; ac_word=$2
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16817 $as_echo_n "checking
for $ac_word...
" >&6; }
16818 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16819 $as_echo_n "(cached
) " >&6
16821 if test -n "$ac_ct_RANLIB"; then
16822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16825 for as_dir in $PATH
16828 test -z "$as_dir" && as_dir=.
16829 for ac_exec_ext in '' $ac_executable_extensions; do
16830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16831 ac_cv_prog_ac_ct_RANLIB="ranlib
"
16832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16842 if test -n "$ac_ct_RANLIB"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
16844 $as_echo "$ac_ct_RANLIB" >&6; }
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16847 $as_echo "no
" >&6; }
16850 if test "x
$ac_ct_RANLIB" = x; then
16853 case $cross_compiling:$ac_tool_warned in
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16856 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16857 ac_tool_warned=yes ;;
16859 RANLIB=$ac_ct_RANLIB
16862 RANLIB="$ac_cv_prog_RANLIB"
16865 test -z "$RANLIB" && RANLIB=:
16866 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16867 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
16868 RANLIB="$RANLIB $plugin_option"
16877 # Determine commands to create old-style static archives.
16878 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16879 old_postinstall_cmds='chmod 644 $oldlib'
16880 old_postuninstall_cmds=
16882 if test -n "$RANLIB"; then
16885 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
16888 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
16891 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
16896 lock_old_archive_extraction=yes ;;
16898 lock_old_archive_extraction=no ;;
16939 # If no C compiler was specified, use CC.
16942 # If no C compiler flags were specified, use CFLAGS.
16943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16945 # Allow CC to be a program name with arguments.
16949 # Check for command to grab the raw symbol name followed by C symbol from nm.
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
16951 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
16952 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16953 $as_echo_n "(cached
) " >&6
16956 # These are sane defaults that work on at least a few old systems.
16957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16959 # Character class describing NM global symbol codes.
16960 symcode='[BCDEGRST]'
16962 # Regexp to match symbols that can be accessed directly from C.
16963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16965 # Define system-specific variables.
16970 cygwin* | mingw* | pw32* | cegcc*)
16971 symcode='[ABCDGISTW]'
16974 if test "$host_cpu" = ia64; then
16975 symcode='[ABCDEGRST]'
16978 irix* | nonstopux*)
16979 symcode='[BCDEGRST]'
16982 symcode='[BCDEGQRST]'
16993 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17001 # If we're using GNU nm, then use its standard symbol codes.
17002 case `$NM -V 2>&1` in
17003 *GNU* | *'with BFD'*)
17004 symcode='[ABCDGIRSTW]' ;;
17007 # Transform an extracted symbol line into a proper C declaration.
17008 # Some systems (esp. on ia64) link data and code symbols differently,
17009 # so use this general approach.
17010 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17012 # Transform an extracted symbol line into symbol name and symbol address
17013 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17014 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'"
17016 # Handle CRLF in mingw tool chain
17020 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17024 # Try without a prefix underscore, then with it.
17025 for ac_symprfx in "" "_
"; do
17027 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17028 symxfrm="\\1 $ac_symprfx\\2 \\2"
17030 # Write the raw and C identifiers.
17031 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
17032 # Fake it for dumpbin and say T for any non-static function
17033 # and D for any global variable.
17034 # Also find C++ and __fastcall symbols from MSVC++,
17035 # which start with @ or ?.
17036 lt_cv_sys_global_symbol_pipe="$AWK '"\
17037 " {last_section=section; section=\$ 3};"\
17038 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17039 " \$ 0!~/External *\|/{next};"\
17040 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17041 " {if(hide[section]) next};"\
17042 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17043 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17044 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17045 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17046 " ' prfx
=^
$ac_symprfx"
17048 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17051 # Check to see that the pipe works correctly.
17055 cat > conftest.$ac_ext <<_LT_EOF
17060 void nm_test_func(void);
17061 void nm_test_func(void){}
17065 int main(){nm_test_var='a';nm_test_func();return(0);}
17068 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17069 (eval $ac_compile) 2>&5
17071 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17072 test $ac_status = 0; }; then
17073 # Now try to grab the symbols.
17075 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
17076 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17078 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17079 test $ac_status = 0; } && test -s "$nlist"; then
17080 # Try sorting and uniquifying the output.
17081 if sort "$nlist" | uniq > "$nlist"T; then
17082 mv -f "$nlist"T "$nlist"
17087 # Make sure that we snagged all the symbols we need.
17088 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17090 cat <<_LT_EOF > conftest.$ac_ext
17096 # Now generate the symbol file.
17097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17099 cat <<_LT_EOF >> conftest.$ac_ext
17101 /* The mapping between symbol names and symbols. */
17106 lt__PROGRAM__LTX_preloaded_symbols[] =
17108 { "@PROGRAM@
", (void *) 0 },
17110 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17111 cat <<\_LT_EOF >> conftest.$ac_ext
17115 /* This works around a problem in FreeBSD linker */
17116 #ifdef FREEBSD_WORKAROUND
17117 static const void *lt_preloaded_setup() {
17118 return lt__PROGRAM__LTX_preloaded_symbols;
17126 # Now try linking the two files.
17127 mv conftest.$ac_objext conftstm.$ac_objext
17128 lt_save_LIBS="$LIBS"
17129 lt_save_CFLAGS="$CFLAGS"
17130 LIBS="conftstm.
$ac_objext"
17131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17132 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17133 (eval $ac_link) 2>&5
17135 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17136 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17139 LIBS="$lt_save_LIBS"
17140 CFLAGS="$lt_save_CFLAGS"
17142 echo "cannot
find nm_test_func
in $nlist" >&5
17145 echo "cannot
find nm_test_var
in $nlist" >&5
17148 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
17151 echo "$progname: failed program was
:" >&5
17152 cat conftest.$ac_ext >&5
17154 rm -rf conftest* conftst*
17156 # Do not use the global_symbol_pipe unless it works.
17157 if test "$pipe_works" = yes; then
17160 lt_cv_sys_global_symbol_pipe=
17166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17167 lt_cv_sys_global_symbol_to_cdecl=
17169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
17171 $as_echo "failed
" >&6; }
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
17174 $as_echo "ok
" >&6; }
17198 # Check whether --enable-libtool-lock was given.
17199 if test "${enable_libtool_lock+set}" = set; then :
17200 enableval=$enable_libtool_lock;
17203 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
17205 # Some flags need to be propagated to the compiler or linker for good
17209 # Find out which ABI we are using.
17210 echo 'int i;' > conftest.$ac_ext
17211 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17212 (eval $ac_compile) 2>&5
17214 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17215 test $ac_status = 0; }; then
17216 case `/usr/bin/file conftest.$ac_objext` in
17218 HPUX_IA64_MODE="32"
17221 HPUX_IA64_MODE="64"
17228 # Find out which ABI we are using.
17229 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
17230 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17231 (eval $ac_compile) 2>&5
17233 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17234 test $ac_status = 0; }; then
17235 if test "$lt_cv_prog_gnu_ld" = yes; then
17236 case `/usr/bin/file conftest.$ac_objext` in
17238 LD="${LD-ld} -melf32bsmip"
17241 LD="${LD-ld} -melf32bmipn32"
17244 LD="${LD-ld} -melf64bmip"
17248 case `/usr/bin/file conftest.$ac_objext` in
17264 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17265 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17266 # Find out which ABI we are using.
17267 echo 'int i;' > conftest.$ac_ext
17268 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17269 (eval $ac_compile) 2>&5
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17272 test $ac_status = 0; }; then
17273 case `/usr/bin/file conftest.o` in
17276 x86_64-*kfreebsd*-gnu)
17277 LD="${LD-ld} -m elf_i386_fbsd
"
17280 case `/usr/bin/file conftest.o` in
17282 LD="${LD-ld} -m elf32_x86_64
"
17285 LD="${LD-ld} -m elf_i386
"
17289 powerpc64le-*linux*)
17290 LD="${LD-ld} -m elf32lppclinux
"
17293 LD="${LD-ld} -m elf32ppclinux
"
17296 LD="${LD-ld} -m elf_s390
"
17299 LD="${LD-ld} -m elf32_sparc
"
17305 x86_64-*kfreebsd*-gnu)
17306 LD="${LD-ld} -m elf_x86_64_fbsd
"
17309 LD="${LD-ld} -m elf_x86_64
"
17312 LD="${LD-ld} -m elf64lppc
"
17315 LD="${LD-ld} -m elf64ppc
"
17317 s390*-*linux*|s390*-*tpf*)
17318 LD="${LD-ld} -m elf64_s390
"
17321 LD="${LD-ld} -m elf64_sparc
"
17331 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17332 SAVE_CFLAGS="$CFLAGS"
17333 CFLAGS="$CFLAGS -belf"
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
17335 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
17336 if ${lt_cv_cc_needs_belf+:} false; then :
17337 $as_echo_n "(cached
) " >&6
17340 ac_cpp='$CPP $CPPFLAGS'
17341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 lt_cv_cc_needs_belf=yes
17359 lt_cv_cc_needs_belf=no
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17364 ac_cpp='$CPP $CPPFLAGS'
17365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
17371 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17372 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17374 CFLAGS="$SAVE_CFLAGS"
17378 # Find out which ABI we are using.
17379 echo 'int i;' > conftest.$ac_ext
17380 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17381 (eval $ac_compile) 2>&5
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17384 test $ac_status = 0; }; then
17385 case `/usr/bin/file conftest.o` in
17387 case $lt_cv_prog_gnu_ld in
17388 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
17390 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17402 need_locks="$enable_libtool_lock"
17406 rhapsody* | darwin*)
17407 if test -n "$ac_tool_prefix"; then
17408 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
17409 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17411 $as_echo_n "checking
for $ac_word...
" >&6; }
17412 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17413 $as_echo_n "(cached
) " >&6
17415 if test -n "$DSYMUTIL"; then
17416 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17422 test -z "$as_dir" && as_dir=.
17423 for ac_exec_ext in '' $ac_executable_extensions; do
17424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
17426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17435 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17436 if test -n "$DSYMUTIL"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
17438 $as_echo "$DSYMUTIL" >&6; }
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17441 $as_echo "no
" >&6; }
17446 if test -z "$ac_cv_prog_DSYMUTIL"; then
17447 ac_ct_DSYMUTIL=$DSYMUTIL
17448 # Extract the first word of "dsymutil
", so it can be a program name with args.
17449 set dummy dsymutil; ac_word=$2
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17451 $as_echo_n "checking
for $ac_word...
" >&6; }
17452 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17453 $as_echo_n "(cached
) " >&6
17455 if test -n "$ac_ct_DSYMUTIL"; then
17456 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17465 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
17466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17475 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17476 if test -n "$ac_ct_DSYMUTIL"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
17478 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17481 $as_echo "no
" >&6; }
17484 if test "x
$ac_ct_DSYMUTIL" = x; then
17487 case $cross_compiling:$ac_tool_warned in
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17490 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17491 ac_tool_warned=yes ;;
17493 DSYMUTIL=$ac_ct_DSYMUTIL
17496 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17499 if test -n "$ac_tool_prefix"; then
17500 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
17501 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17503 $as_echo_n "checking
for $ac_word...
" >&6; }
17504 if ${ac_cv_prog_NMEDIT+:} false; then :
17505 $as_echo_n "(cached
) " >&6
17507 if test -n "$NMEDIT"; then
17508 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17527 NMEDIT=$ac_cv_prog_NMEDIT
17528 if test -n "$NMEDIT"; then
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
17530 $as_echo "$NMEDIT" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17533 $as_echo "no
" >&6; }
17538 if test -z "$ac_cv_prog_NMEDIT"; then
17539 ac_ct_NMEDIT=$NMEDIT
17540 # Extract the first word of "nmedit
", so it can be a program name with args.
17541 set dummy nmedit; ac_word=$2
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17543 $as_echo_n "checking
for $ac_word...
" >&6; }
17544 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17545 $as_echo_n "(cached
) " >&6
17547 if test -n "$ac_ct_NMEDIT"; then
17548 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17551 for as_dir in $PATH
17554 test -z "$as_dir" && as_dir=.
17555 for ac_exec_ext in '' $ac_executable_extensions; do
17556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17557 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
17558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17567 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17568 if test -n "$ac_ct_NMEDIT"; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
17570 $as_echo "$ac_ct_NMEDIT" >&6; }
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17573 $as_echo "no
" >&6; }
17576 if test "x
$ac_ct_NMEDIT" = x; then
17579 case $cross_compiling:$ac_tool_warned in
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17582 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17583 ac_tool_warned=yes ;;
17585 NMEDIT=$ac_ct_NMEDIT
17588 NMEDIT="$ac_cv_prog_NMEDIT"
17591 if test -n "$ac_tool_prefix"; then
17592 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
17593 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17595 $as_echo_n "checking
for $ac_word...
" >&6; }
17596 if ${ac_cv_prog_LIPO+:} false; then :
17597 $as_echo_n "(cached
) " >&6
17599 if test -n "$LIPO"; then
17600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17603 for as_dir in $PATH
17606 test -z "$as_dir" && as_dir=.
17607 for ac_exec_ext in '' $ac_executable_extensions; do
17608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17609 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
17610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17619 LIPO=$ac_cv_prog_LIPO
17620 if test -n "$LIPO"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
17622 $as_echo "$LIPO" >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17625 $as_echo "no
" >&6; }
17630 if test -z "$ac_cv_prog_LIPO"; then
17632 # Extract the first word of "lipo
", so it can be a program name with args.
17633 set dummy lipo; ac_word=$2
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17635 $as_echo_n "checking
for $ac_word...
" >&6; }
17636 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17637 $as_echo_n "(cached
) " >&6
17639 if test -n "$ac_ct_LIPO"; then
17640 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17643 for as_dir in $PATH
17646 test -z "$as_dir" && as_dir=.
17647 for ac_exec_ext in '' $ac_executable_extensions; do
17648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17649 ac_cv_prog_ac_ct_LIPO="lipo
"
17650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17659 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17660 if test -n "$ac_ct_LIPO"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
17662 $as_echo "$ac_ct_LIPO" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17665 $as_echo "no
" >&6; }
17668 if test "x
$ac_ct_LIPO" = x; then
17671 case $cross_compiling:$ac_tool_warned in
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17674 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17675 ac_tool_warned=yes ;;
17680 LIPO="$ac_cv_prog_LIPO"
17683 if test -n "$ac_tool_prefix"; then
17684 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
17685 set dummy ${ac_tool_prefix}otool; ac_word=$2
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17687 $as_echo_n "checking
for $ac_word...
" >&6; }
17688 if ${ac_cv_prog_OTOOL+:} false; then :
17689 $as_echo_n "(cached
) " >&6
17691 if test -n "$OTOOL"; then
17692 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17698 test -z "$as_dir" && as_dir=.
17699 for ac_exec_ext in '' $ac_executable_extensions; do
17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
17702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17711 OTOOL=$ac_cv_prog_OTOOL
17712 if test -n "$OTOOL"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
17714 $as_echo "$OTOOL" >&6; }
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17717 $as_echo "no
" >&6; }
17722 if test -z "$ac_cv_prog_OTOOL"; then
17724 # Extract the first word of "otool
", so it can be a program name with args.
17725 set dummy otool; ac_word=$2
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17727 $as_echo_n "checking
for $ac_word...
" >&6; }
17728 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17729 $as_echo_n "(cached
) " >&6
17731 if test -n "$ac_ct_OTOOL"; then
17732 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17735 for as_dir in $PATH
17738 test -z "$as_dir" && as_dir=.
17739 for ac_exec_ext in '' $ac_executable_extensions; do
17740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17741 ac_cv_prog_ac_ct_OTOOL="otool
"
17742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17751 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17752 if test -n "$ac_ct_OTOOL"; then
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
17754 $as_echo "$ac_ct_OTOOL" >&6; }
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17757 $as_echo "no
" >&6; }
17760 if test "x
$ac_ct_OTOOL" = x; then
17763 case $cross_compiling:$ac_tool_warned in
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17766 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17767 ac_tool_warned=yes ;;
17772 OTOOL="$ac_cv_prog_OTOOL"
17775 if test -n "$ac_tool_prefix"; then
17776 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
17777 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17779 $as_echo_n "checking
for $ac_word...
" >&6; }
17780 if ${ac_cv_prog_OTOOL64+:} false; then :
17781 $as_echo_n "(cached
) " >&6
17783 if test -n "$OTOOL64"; then
17784 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH
17790 test -z "$as_dir" && as_dir=.
17791 for ac_exec_ext in '' $ac_executable_extensions; do
17792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17793 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
17794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17803 OTOOL64=$ac_cv_prog_OTOOL64
17804 if test -n "$OTOOL64"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
17806 $as_echo "$OTOOL64" >&6; }
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17809 $as_echo "no
" >&6; }
17814 if test -z "$ac_cv_prog_OTOOL64"; then
17815 ac_ct_OTOOL64=$OTOOL64
17816 # Extract the first word of "otool64
", so it can be a program name with args.
17817 set dummy otool64; ac_word=$2
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17819 $as_echo_n "checking
for $ac_word...
" >&6; }
17820 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17821 $as_echo_n "(cached
) " >&6
17823 if test -n "$ac_ct_OTOOL64"; then
17824 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17827 for as_dir in $PATH
17830 test -z "$as_dir" && as_dir=.
17831 for ac_exec_ext in '' $ac_executable_extensions; do
17832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17833 ac_cv_prog_ac_ct_OTOOL64="otool64
"
17834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17843 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17844 if test -n "$ac_ct_OTOOL64"; then
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
17846 $as_echo "$ac_ct_OTOOL64" >&6; }
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17849 $as_echo "no
" >&6; }
17852 if test "x
$ac_ct_OTOOL64" = x; then
17855 case $cross_compiling:$ac_tool_warned in
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17858 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17859 ac_tool_warned=yes ;;
17861 OTOOL64=$ac_ct_OTOOL64
17864 OTOOL64="$ac_cv_prog_OTOOL64"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
17894 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
17895 if ${lt_cv_apple_cc_single_mod+:} false; then :
17896 $as_echo_n "(cached
) " >&6
17898 lt_cv_apple_cc_single_mod=no
17899 if test -z "${LT_MULTI_MODULE}"; then
17900 # By default we will add the -single_module flag. You can override
17901 # by either setting the environment variable LT_MULTI_MODULE
17902 # non-empty at configure time, or by adding -multi_module to the
17904 rm -rf libconftest.dylib*
17905 echo "int foo
(void
){return 1;}" > conftest.c
17906 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17907 -dynamiclib -Wl,-single_module conftest.c
" >&5
17908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17909 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17911 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17912 lt_cv_apple_cc_single_mod=yes
17914 cat conftest.err >&5
17916 rm -rf libconftest.dylib*
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
17921 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
17923 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
17924 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17925 $as_echo_n "(cached
) " >&6
17927 lt_cv_ld_exported_symbols_list=no
17928 save_LDFLAGS=$LDFLAGS
17929 echo "_main
" > conftest.sym
17930 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17942 if ac_fn_c_try_link "$LINENO"; then :
17943 lt_cv_ld_exported_symbols_list=yes
17945 lt_cv_ld_exported_symbols_list=no
17947 rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949 LDFLAGS="$save_LDFLAGS"
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
17953 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
17955 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
17956 if ${lt_cv_ld_force_load+:} false; then :
17957 $as_echo_n "(cached
) " >&6
17959 lt_cv_ld_force_load=no
17960 cat > conftest.c << _LT_EOF
17961 int forced_loaded() { return 2;}
17963 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
17964 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17965 echo "$AR cru libconftest.a conftest.o
" >&5
17966 $AR cru libconftest.a conftest.o 2>&5
17967 cat > conftest.c << _LT_EOF
17968 int main() { return 0;}
17970 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
17971 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17973 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17974 lt_cv_ld_force_load=yes
17976 cat conftest.err >&5
17978 rm -f conftest.err libconftest.a conftest conftest.c
17979 rm -rf conftest.dSYM
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
17983 $as_echo "$lt_cv_ld_force_load" >&6; }
17984 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17985 # build without first building modern cctools / linker.
17986 case $host_cpu-$host_os in
17987 *-rhapsody* | *-darwin1.[012])
17988 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17992 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17993 # deployment target is forced to an earlier version.
17994 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17995 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18005 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18006 _lt_dar_single_mod='$single_module'
18008 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18009 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18011 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18013 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
18014 _lt_dsymutil='~$DSYMUTIL $lib || :'
18022 for ac_header in dlfcn.h
18024 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
18025 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_DLFCN_H 1
18044 enable_win32_dll=no
18047 # Check whether --enable-shared was given.
18048 if test "${enable_shared+set}" = set; then :
18049 enableval=$enable_shared; p=${PACKAGE-default}
18051 yes) enable_shared=yes ;;
18052 no) enable_shared=no ;;
18055 # Look at the argument we got. We use all the common list separators.
18056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18057 for pkg in $enableval; do
18059 if test "X
$pkg" = "X
$p"; then
18078 # Check whether --enable-static was given.
18079 if test "${enable_static+set}" = set; then :
18080 enableval=$enable_static; p=${PACKAGE-default}
18082 yes) enable_static=yes ;;
18083 no) enable_static=no ;;
18086 # Look at the argument we got. We use all the common list separators.
18087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18088 for pkg in $enableval; do
18090 if test "X
$pkg" = "X
$p"; then
18110 # Check whether --with-pic was given.
18111 if test "${with_pic+set}" = set; then :
18112 withval=$with_pic; pic_mode="$withval"
18118 test -z "$pic_mode" && pic_mode=default
18126 # Check whether --enable-fast-install was given.
18127 if test "${enable_fast_install+set}" = set; then :
18128 enableval=$enable_fast_install; p=${PACKAGE-default}
18130 yes) enable_fast_install=yes ;;
18131 no) enable_fast_install=no ;;
18133 enable_fast_install=no
18134 # Look at the argument we got. We use all the common list separators.
18135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18136 for pkg in $enableval; do
18138 if test "X
$pkg" = "X
$p"; then
18139 enable_fast_install=yes
18146 enable_fast_install=yes
18159 # This can be used to rebuild libtool when needed
18160 LIBTOOL_DEPS="$ltmain"
18162 # Always use our own libtool.
18163 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18190 test -z "$LN_S" && LN_S="ln -s"
18205 if test -n "${ZSH_VERSION+set}" ; then
18206 setopt NO_GLOB_SUBST
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
18210 $as_echo_n "checking
for objdir...
" >&6; }
18211 if ${lt_cv_objdir+:} false; then :
18212 $as_echo_n "(cached
) " >&6
18214 rm -f .libs 2>/dev/null
18215 mkdir .libs 2>/dev/null
18216 if test -d .libs; then
18219 # MS-DOS does not allow filenames that begin with a dot.
18222 rmdir .libs 2>/dev/null
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
18225 $as_echo "$lt_cv_objdir" >&6; }
18226 objdir=$lt_cv_objdir
18232 cat >>confdefs.h <<_ACEOF
18233 #define LT_OBJDIR "$lt_cv_objdir/"
18241 # AIX sometimes has problems with the GCC collect2 program. For some
18242 # reason, if we set the COLLECT_NAMES environment variable, the problems
18243 # vanish in a puff of smoke.
18244 if test "X
${COLLECT_NAMES+set}" != Xset; then
18246 export COLLECT_NAMES
18251 # Global variables:
18253 can_build_shared=yes
18255 # All known linkers require a `.a' archive for static linking (except MSVC,
18256 # which needs '.lib').
18259 with_gnu_ld="$lt_cv_prog_gnu_ld"
18262 old_CFLAGS="$CFLAGS"
18264 # Set sane defaults for various variables
18265 test -z "$CC" && CC=cc
18266 test -z "$LTCC" && LTCC=$CC
18267 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18268 test -z "$LD" && LD=ld
18269 test -z "$ac_objext" && ac_objext=o
18271 for cc_temp in $compiler""; do
18273 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18274 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18279 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
18282 # Only perform the check for file, if the check method requires it
18283 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18284 case $deplibs_check_method in
18286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
18288 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
18289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18290 $as_echo_n "(cached
) " >&6
18294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18297 lt_save_MAGIC_CMD="$MAGIC_CMD"
18298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18299 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18300 for ac_dir in $ac_dummy; do
18302 test -z "$ac_dir" && ac_dir=.
18303 if test -f $ac_dir/${ac_tool_prefix}file; then
18304 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18305 if test -n "$file_magic_test_file"; then
18306 case $deplibs_check_method in
18308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18311 $EGREP "$file_magic_regex" > /dev/null; then
18316 *** Warning: the command libtool uses to detect shared libraries,
18317 *** $file_magic_cmd, produces output that libtool cannot recognize.
18318 *** The result is that libtool may fail to recognize shared libraries
18319 *** as such. This will affect the creation of libtool libraries that
18320 *** depend on shared libraries, but programs linked with such libtool
18321 *** libraries will work regardless of this problem. Nevertheless, you
18322 *** may want to report the problem to your system manager and/or to
18323 *** bug-libtool@gnu.org
18333 MAGIC_CMD="$lt_save_MAGIC_CMD"
18338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18339 if test -n "$MAGIC_CMD"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18341 $as_echo "$MAGIC_CMD" >&6; }
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18344 $as_echo "no
" >&6; }
18351 if test -z "$lt_cv_path_MAGIC_CMD"; then
18352 if test -n "$ac_tool_prefix"; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
18354 $as_echo_n "checking
for file...
" >&6; }
18355 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18356 $as_echo_n "(cached
) " >&6
18360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18363 lt_save_MAGIC_CMD="$MAGIC_CMD"
18364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18365 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18366 for ac_dir in $ac_dummy; do
18368 test -z "$ac_dir" && ac_dir=.
18369 if test -f $ac_dir/file; then
18370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18371 if test -n "$file_magic_test_file"; then
18372 case $deplibs_check_method in
18374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18377 $EGREP "$file_magic_regex" > /dev/null; then
18382 *** Warning: the command libtool uses to detect shared libraries,
18383 *** $file_magic_cmd, produces output that libtool cannot recognize.
18384 *** The result is that libtool may fail to recognize shared libraries
18385 *** as such. This will affect the creation of libtool libraries that
18386 *** depend on shared libraries, but programs linked with such libtool
18387 *** libraries will work regardless of this problem. Nevertheless, you
18388 *** may want to report the problem to your system manager and/or to
18389 *** bug-libtool@gnu.org
18399 MAGIC_CMD="$lt_save_MAGIC_CMD"
18404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18405 if test -n "$MAGIC_CMD"; then
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18407 $as_echo "$MAGIC_CMD" >&6; }
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18410 $as_echo "no
" >&6; }
18423 # Use C for the default configuration in the libtool script
18427 ac_cpp='$CPP $CPPFLAGS'
18428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433 # Source file extension for C test sources.
18436 # Object file extension for compiled C test sources.
18440 # Code to be used in simple compile tests
18441 lt_simple_compile_test_code="int some_variable
= 0;"
18443 # Code to be used in simple link tests
18444 lt_simple_link_test_code='int main(){return(0);}'
18452 # If no C compiler was specified, use CC.
18455 # If no C compiler flags were specified, use CFLAGS.
18456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18458 # Allow CC to be a program name with arguments.
18461 # Save the default compiler, since it gets overwritten when the other
18462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18463 compiler_DEFAULT=$CC
18465 # save warnings/boilerplate of simple test code
18466 ac_outfile=conftest.$ac_objext
18467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18469 _lt_compiler_boilerplate=`cat conftest.err`
18472 ac_outfile=conftest.$ac_objext
18473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18475 _lt_linker_boilerplate=`cat conftest.err`
18480 ## There is no encapsulation within the following macros, do not change
18481 ## the running order or otherwise move them around unless you know exactly
18482 ## what you are doing...
18483 if test -n "$compiler"; then
18485 lt_prog_compiler_no_builtin_flag=
18487 if test "$GCC" = yes; then
18488 case $cc_basename in
18490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
18496 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
18497 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18498 $as_echo_n "(cached
) " >&6
18500 lt_cv_prog_compiler_rtti_exceptions=no
18501 ac_outfile=conftest.$ac_objext
18502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18503 lt_compiler_flag="-fno-rtti -fno-exceptions"
18504 # Insert the option either (1) after the last *FLAGS variable, or
18505 # (2) before a word containing "conftest.
", or (3) at the end.
18506 # Note that $ac_compile itself does not contain backslashes and begins
18507 # with a dollar sign (not a hyphen), so the echo should work correctly.
18508 # The option is referenced via a variable to avoid confusing sed.
18509 lt_compile=`echo "$ac_compile" | $SED \
18510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18512 -e 's:$: $lt_compiler_flag:'`
18513 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18514 (eval "$lt_compile" 2>conftest.err)
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18518 if (exit $ac_status) && test -s "$ac_outfile"; then
18519 # The compiler can only warn and ignore the option if not recognized
18520 # So say no if there are warnings other than the usual output.
18521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18524 lt_cv_prog_compiler_rtti_exceptions=yes
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
18531 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18533 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18546 lt_prog_compiler_wl=
18547 lt_prog_compiler_pic=
18548 lt_prog_compiler_static=
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
18551 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
18553 if test "$GCC" = yes; then
18554 lt_prog_compiler_wl='-Wl,'
18555 lt_prog_compiler_static='-static'
18559 # All AIX code is PIC.
18560 if test "$host_cpu" = ia64; then
18561 # AIX 5 now supports IA64 processor
18562 lt_prog_compiler_static='-Bstatic'
18564 lt_prog_compiler_pic='-fPIC'
18570 # see comment about AmigaOS4 .so support
18571 lt_prog_compiler_pic='-fPIC'
18574 # FIXME: we need at least 68020 code to build shared libraries, but
18575 # adding the `-m68020' flag to GCC prevents building anything better,
18577 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18583 # PIC is the default for these OSes.
18586 mingw* | cygwin* | pw32* | os2* | cegcc*)
18587 # This hack is so that the source file can tell whether it is being
18588 # built for inclusion in a dll (and should export symbols for example).
18589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18590 # (--disable-auto-import) libraries
18591 lt_prog_compiler_pic='-DDLL_EXPORT'
18594 darwin* | rhapsody*)
18595 # PIC is the default on this platform
18596 # Common symbols not allowed in MH_DYLIB files
18597 lt_prog_compiler_pic='-fno-common'
18601 # PIC is the default for Haiku.
18602 # The "-static" flag exists, but is broken.
18603 lt_prog_compiler_static=
18607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18609 # sets the default TLS model and affects inlining.
18615 lt_prog_compiler_pic='-fPIC'
18621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18622 # Instead, we relocate shared libraries at runtime.
18626 # Just because we use GCC doesn't mean we suddenly get shared libraries
18627 # on systems that don't support them.
18628 lt_prog_compiler_can_build_shared=no
18633 # QNX uses GNU C++, but need to define -shared option too, otherwise
18634 # it will coredump.
18635 lt_prog_compiler_pic='-fPIC -shared'
18639 if test -d /usr/nec; then
18640 lt_prog_compiler_pic=-Kconform_pic
18645 lt_prog_compiler_pic='-fPIC'
18649 case $cc_basename in
18650 nvcc*) # Cuda Compiler Driver 2.2
18651 lt_prog_compiler_wl='-Xlinker '
18652 lt_prog_compiler_pic='-Xcompiler -fPIC'
18656 # PORTME Check for flag to pass linker flags through the system compiler.
18659 lt_prog_compiler_wl='-Wl,'
18660 if test "$host_cpu" = ia64; then
18661 # AIX 5 now supports IA64 processor
18662 lt_prog_compiler_static='-Bstatic'
18664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18668 mingw* | cygwin* | pw32* | os2* | cegcc*)
18669 # This hack is so that the source file can tell whether it is being
18670 # built for inclusion in a dll (and should export symbols for example).
18671 lt_prog_compiler_pic='-DDLL_EXPORT'
18674 hpux9* | hpux10* | hpux11*)
18675 lt_prog_compiler_wl='-Wl,'
18676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18677 # not for PA HP-UX.
18683 lt_prog_compiler_pic='+Z'
18686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18687 lt_prog_compiler_static='${wl}-a ${wl}archive'
18690 irix5* | irix6* | nonstopux*)
18691 lt_prog_compiler_wl='-Wl,'
18692 # PIC (with -KPIC) is the default.
18693 lt_prog_compiler_static='-non_shared'
18696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18697 case $cc_basename in
18698 # old Intel for x86_64 which still supported -KPIC.
18700 lt_prog_compiler_wl='-Wl,'
18701 lt_prog_compiler_pic='-KPIC'
18702 lt_prog_compiler_static='-static'
18704 # icc used to be incompatible with GCC.
18705 # ICC 10 doesn't accept -KPIC any more.
18707 lt_prog_compiler_wl='-Wl,'
18708 lt_prog_compiler_pic='-fPIC'
18709 lt_prog_compiler_static='-static'
18711 # Lahey Fortran 8.1.
18713 lt_prog_compiler_wl='-Wl,'
18714 lt_prog_compiler_pic='--shared'
18715 lt_prog_compiler_static='--static'
18717 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18718 # Portland Group compilers (*not* the Pentium gcc compiler,
18719 # which looks to be a dead project)
18720 lt_prog_compiler_wl='-Wl,'
18721 lt_prog_compiler_pic='-fpic'
18722 lt_prog_compiler_static='-Bstatic'
18725 lt_prog_compiler_wl='-Wl,'
18726 # All Alpha code is PIC.
18727 lt_prog_compiler_static='-non_shared'
18729 xl* | bgxl* | bgf* | mpixl*)
18730 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18731 lt_prog_compiler_wl='-Wl,'
18732 lt_prog_compiler_pic='-qpic'
18733 lt_prog_compiler_static='-qstaticlink'
18736 case `$CC -V 2>&1 | sed 5q` in
18737 *Sun\ F* | *Sun*Fortran*)
18738 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18739 lt_prog_compiler_pic='-KPIC'
18740 lt_prog_compiler_static='-Bstatic'
18741 lt_prog_compiler_wl=''
18745 lt_prog_compiler_pic='-KPIC'
18746 lt_prog_compiler_static='-Bstatic'
18747 lt_prog_compiler_wl='-Wl,'
18755 lt_prog_compiler_pic='-KPIC'
18756 lt_prog_compiler_static='-Bstatic'
18760 # QNX uses GNU C++, but need to define -shared option too, otherwise
18761 # it will coredump.
18762 lt_prog_compiler_pic='-fPIC -shared'
18765 osf3* | osf4* | osf5*)
18766 lt_prog_compiler_wl='-Wl,'
18767 # All OSF/1 code is PIC.
18768 lt_prog_compiler_static='-non_shared'
18772 lt_prog_compiler_static='-non_shared'
18776 lt_prog_compiler_pic='-KPIC'
18777 lt_prog_compiler_static='-Bstatic'
18778 case $cc_basename in
18779 f77* | f90* | f95*)
18780 lt_prog_compiler_wl='-Qoption ld ';;
18782 lt_prog_compiler_wl='-Wl,';;
18787 lt_prog_compiler_wl='-Qoption ld '
18788 lt_prog_compiler_pic='-PIC'
18789 lt_prog_compiler_static='-Bstatic'
18792 sysv4 | sysv4.2uw2* | sysv4.3*)
18793 lt_prog_compiler_wl='-Wl,'
18794 lt_prog_compiler_pic='-KPIC'
18795 lt_prog_compiler_static='-Bstatic'
18799 if test -d /usr/nec ;then
18800 lt_prog_compiler_pic='-Kconform_pic'
18801 lt_prog_compiler_static='-Bstatic'
18805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18806 lt_prog_compiler_wl='-Wl,'
18807 lt_prog_compiler_pic='-KPIC'
18808 lt_prog_compiler_static='-Bstatic'
18812 lt_prog_compiler_wl='-Wl,'
18813 lt_prog_compiler_can_build_shared=no
18817 lt_prog_compiler_pic='-pic'
18818 lt_prog_compiler_static='-Bstatic'
18822 lt_prog_compiler_can_build_shared=no
18828 # For platforms which do not support PIC, -DPIC is meaningless:
18830 lt_prog_compiler_pic=
18833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
18837 $as_echo "$lt_prog_compiler_pic" >&6; }
18845 # Check to make sure the PIC flag actually works.
18847 if test -n "$lt_prog_compiler_pic"; then
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
18849 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
18850 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18851 $as_echo_n "(cached
) " >&6
18853 lt_cv_prog_compiler_pic_works=no
18854 ac_outfile=conftest.$ac_objext
18855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18857 # Insert the option either (1) after the last *FLAGS variable, or
18858 # (2) before a word containing "conftest.
", or (3) at the end.
18859 # Note that $ac_compile itself does not contain backslashes and begins
18860 # with a dollar sign (not a hyphen), so the echo should work correctly.
18861 # The option is referenced via a variable to avoid confusing sed.
18862 lt_compile=`echo "$ac_compile" | $SED \
18863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18865 -e 's:$: $lt_compiler_flag:'`
18866 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18867 (eval "$lt_compile" 2>conftest.err)
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18871 if (exit $ac_status) && test -s "$ac_outfile"; then
18872 # The compiler can only warn and ignore the option if not recognized
18873 # So say no if there are warnings other than the usual output.
18874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18877 lt_cv_prog_compiler_pic_works=yes
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
18884 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18886 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18887 case $lt_prog_compiler_pic in
18889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18892 lt_prog_compiler_pic=
18893 lt_prog_compiler_can_build_shared=no
18904 # Check to make sure the static flag actually works.
18906 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
18908 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
18909 if ${lt_cv_prog_compiler_static_works+:} false; then :
18910 $as_echo_n "(cached
) " >&6
18912 lt_cv_prog_compiler_static_works=no
18913 save_LDFLAGS="$LDFLAGS"
18914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18917 # The linker can only warn and ignore the option if not recognized
18918 # So say no if there are warnings
18919 if test -s conftest.err; then
18920 # Append any errors to the config.log.
18921 cat conftest.err 1>&5
18922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18924 if diff conftest.exp conftest.er2 >/dev/null; then
18925 lt_cv_prog_compiler_static_works=yes
18928 lt_cv_prog_compiler_static_works=yes
18932 LDFLAGS="$save_LDFLAGS"
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
18936 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18938 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18941 lt_prog_compiler_static=
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
18951 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
18952 if ${lt_cv_prog_compiler_c_o+:} false; then :
18953 $as_echo_n "(cached
) " >&6
18955 lt_cv_prog_compiler_c_o=no
18956 $RM -r conftest 2>/dev/null
18960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18962 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
18963 # Insert the option either (1) after the last *FLAGS variable, or
18964 # (2) before a word containing "conftest.
", or (3) at the end.
18965 # Note that $ac_compile itself does not contain backslashes and begins
18966 # with a dollar sign (not a hyphen), so the echo should work correctly.
18967 lt_compile=`echo "$ac_compile" | $SED \
18968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18970 -e 's:$: $lt_compiler_flag:'`
18971 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18972 (eval "$lt_compile" 2>out/conftest.err)
18974 cat out/conftest.err >&5
18975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18978 # The compiler can only warn and ignore the option if not recognized
18979 # So say no if there are warnings
18980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18983 lt_cv_prog_compiler_c_o=yes
18988 # SGI C++ compiler will create directory out/ii_files/ for
18989 # template instantiation
18990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18991 $RM out/* && rmdir out
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
18998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
19006 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
19007 if ${lt_cv_prog_compiler_c_o+:} false; then :
19008 $as_echo_n "(cached
) " >&6
19010 lt_cv_prog_compiler_c_o=no
19011 $RM -r conftest 2>/dev/null
19015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19017 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
19018 # Insert the option either (1) after the last *FLAGS variable, or
19019 # (2) before a word containing "conftest.
", or (3) at the end.
19020 # Note that $ac_compile itself does not contain backslashes and begins
19021 # with a dollar sign (not a hyphen), so the echo should work correctly.
19022 lt_compile=`echo "$ac_compile" | $SED \
19023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19025 -e 's:$: $lt_compiler_flag:'`
19026 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
19027 (eval "$lt_compile" 2>out/conftest.err)
19029 cat out/conftest.err >&5
19030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19033 # The compiler can only warn and ignore the option if not recognized
19034 # So say no if there are warnings
19035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19038 lt_cv_prog_compiler_c_o=yes
19043 # SGI C++ compiler will create directory out/ii_files/ for
19044 # template instantiation
19045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19046 $RM out/* && rmdir out
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
19053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19058 hard_links="nottested
"
19059 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19060 # do not overwrite the value of need_locks provided by the user
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
19062 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
19065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19067 ln conftest.a conftest.b 2>&5 || hard_links=no
19068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
19070 $as_echo "$hard_links" >&6; }
19071 if test "$hard_links" = no; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
19073 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
19086 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
19089 allow_undefined_flag=
19090 always_export_symbols=no
19092 archive_expsym_cmds=
19093 compiler_needs_object=no
19094 enable_shared_with_static_runtimes=no
19095 export_dynamic_flag_spec=
19096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19097 hardcode_automatic=no
19099 hardcode_direct_absolute=no
19100 hardcode_libdir_flag_spec=
19101 hardcode_libdir_flag_spec_ld=
19102 hardcode_libdir_separator=
19103 hardcode_minus_L=no
19104 hardcode_shlibpath_var=unsupported
19106 link_all_deplibs=unknown
19108 module_expsym_cmds=
19109 old_archive_from_new_cmds=
19110 old_archive_from_expsyms_cmds=
19111 thread_safe_flag_spec=
19112 whole_archive_flag_spec=
19113 # include_expsyms should be a list of space-separated symbols to be *always*
19114 # included in the symbol list
19116 # exclude_expsyms can be an extended regexp of symbols to exclude
19117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19119 # as well as any symbol that contains `d'.
19120 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19122 # platforms (ab)use it in PIC code, but their linkers get confused if
19123 # the symbol is explicitly referenced. Since portable code cannot
19124 # rely on this symbol name, it's probably fine to never include it in
19125 # preloaded symbol tables.
19126 # Exclude shared library initialization/finalization symbols.
19127 extract_expsyms_cmds=
19130 cygwin* | mingw* | pw32* | cegcc*)
19131 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19132 # When not using gcc, we currently assume that we are using
19133 # Microsoft Visual C++.
19134 if test "$GCC" != yes; then
19139 # we just hope/assume this is gcc and not c89 (= MSVC++)
19149 # On some targets, GNU ld is compatible enough with the native linker
19150 # that we're better off using the native interface for both.
19151 lt_use_gnu_ld_interface=no
19152 if test "$with_gnu_ld" = yes; then
19155 # The AIX port of GNU ld has always aspired to compatibility
19156 # with the native linker. However, as the warning in the GNU ld
19157 # block says, versions before 2.19.5* couldn't really create working
19158 # shared libraries, regardless of the interface used.
19159 case `$LD -v 2>&1` in
19160 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19161 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19162 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19164 lt_use_gnu_ld_interface=yes
19169 lt_use_gnu_ld_interface=yes
19174 if test "$lt_use_gnu_ld_interface" = yes; then
19175 # If archive_cmds runs LD, not CC, wlarc should be empty
19178 # Set some defaults for GNU ld with shared library support. These
19179 # are reset later if shared libraries are not supported. Putting them
19180 # here allows them to be overridden if necessary.
19181 runpath_var=LD_RUN_PATH
19182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19183 export_dynamic_flag_spec='${wl}--export-dynamic'
19184 # ancient GNU ld didn't support --whole-archive et. al.
19185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19186 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19188 whole_archive_flag_spec=
19190 supports_anon_versioning=no
19191 case `$LD -v 2>&1` in
19192 *GNU\ gold*) supports_anon_versioning=yes ;;
19193 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19194 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19195 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19196 *\ 2.11.*) ;; # other 2.11 versions
19197 *) supports_anon_versioning=yes ;;
19200 # See if GNU ld supports shared libraries.
19203 # On AIX/PPC, the GNU linker is very broken
19204 if test "$host_cpu" != ia64; then
19208 *** Warning: the GNU linker, at least up to release 2.19, is reported
19209 *** to be unable to reliably create shared libraries on AIX.
19210 *** Therefore, libtool is disabling shared libraries support. If you
19211 *** really care for shared libraries, you may want to install binutils
19212 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19213 *** You will then need to restart the configuration process.
19222 # see comment about AmigaOS4 .so support
19223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19224 archive_expsym_cmds=''
19227 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)'
19228 hardcode_libdir_flag_spec
='-L$libdir'
19229 hardcode_minus_L
=yes
19235 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19236 allow_undefined_flag
=unsupported
19237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19238 # support --undefined. This deserves some investigation. FIXME
19239 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19245 cygwin
* | mingw
* | pw32
* | cegcc
*)
19246 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19247 # as there is no search path for DLLs.
19248 hardcode_libdir_flag_spec
='-L$libdir'
19249 export_dynamic_flag_spec
='${wl}--export-all-symbols'
19250 allow_undefined_flag
=unsupported
19251 always_export_symbols
=no
19252 enable_shared_with_static_runtimes
=yes
19253 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19255 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19256 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19257 # If the export-symbols file already is a .def file (1st line
19258 # is EXPORTS), use it as is; otherwise, prepend...
19259 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19260 cp $export_symbols $output_objdir/$soname.def;
19262 echo EXPORTS > $output_objdir/$soname.def;
19263 cat $export_symbols >> $output_objdir/$soname.def;
19265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19272 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 link_all_deplibs
=yes
19278 hardcode_shlibpath_var
=no
19279 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19280 export_dynamic_flag_spec
='${wl}-E'
19281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19282 # Instead, shared libraries are loaded at an image base (0x10000000 by
19283 # default) and relocated if they conflict, which is a slow very memory
19284 # consuming and fragmenting process. To avoid this, we pick a random,
19285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19287 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19288 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'
19291 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
19293 if test "$host_os" = linux-dietlibc
; then
19294 case $cc_basename in
19295 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
19298 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
19299 && test "$tmp_diet" = no
19301 tmp_addflag
=' $pic_flag'
19302 tmp_sharedflag
='-shared'
19303 case $cc_basename,$host_cpu in
19304 pgcc
*) # Portland Group C compiler
19305 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'
19306 tmp_addflag
=' $pic_flag'
19308 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
19309 # Portland Group f77 and f90 compilers
19310 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'
19311 tmp_addflag
=' $pic_flag -Mnomain' ;;
19312 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
19313 tmp_addflag
=' -i_dynamic' ;;
19314 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
19315 tmp_addflag
=' -i_dynamic -nofor_main' ;;
19316 ifc
* | ifort
*) # Intel Fortran compiler
19317 tmp_addflag
=' -nofor_main' ;;
19318 lf95
*) # Lahey Fortran 8.1
19319 whole_archive_flag_spec
=
19320 tmp_sharedflag
='--shared' ;;
19321 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19322 tmp_sharedflag
='-qmkshrobj'
19324 nvcc
*) # Cuda Compiler Driver 2.2
19325 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'
19326 compiler_needs_object
=yes
19329 case `$CC -V 2>&1 | sed 5q` in
19330 *Sun\ C
*) # Sun C 5.9
19331 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'
19332 compiler_needs_object
=yes
19333 tmp_sharedflag
='-G' ;;
19334 *Sun\ F
*) # Sun Fortran 8.3
19335 tmp_sharedflag
='-G' ;;
19337 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19339 if test "x$supports_anon_versioning" = xyes
; then
19340 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19342 echo "local: *; };" >> $output_objdir/$libname.ver~
19343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19346 case $cc_basename in
19347 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
19348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19349 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
19350 hardcode_libdir_flag_spec
=
19351 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
19352 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19353 if test "x$supports_anon_versioning" = xyes
; then
19354 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19356 echo "local: *; };" >> $output_objdir/$libname.ver~
19357 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19367 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19368 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19371 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19377 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
19381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19382 *** create shared libraries on Solaris systems. Therefore, libtool
19383 *** is disabling shared libraries support. We urge you to upgrade GNU
19384 *** binutils to release 2.9.1 or newer. Another option is to modify
19385 *** your PATH or compiler configuration so that the native linker is
19386 *** used, and then restart.
19389 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19391 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19397 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19398 case `$LD -v 2>&1` in
19399 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
19403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19404 *** reliably create shared libraries on SCO systems. Therefore, libtool
19405 *** is disabling shared libraries support. We urge you to upgrade GNU
19406 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19407 *** your PATH or compiler configuration so that the native linker is
19408 *** used, and then restart.
19413 # For security reasons, it is highly recommended that you always
19414 # use absolute paths for naming shared libraries, and exclude the
19415 # DT_RUNPATH tag from executables and libraries. But doing so
19416 # requires that you compile everything twice, which is a pain.
19417 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19418 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19419 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19429 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19431 hardcode_direct
=yes
19432 hardcode_shlibpath_var
=no
19436 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19437 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19438 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19445 if test "$ld_shlibs" = no
; then
19447 hardcode_libdir_flag_spec
=
19448 export_dynamic_flag_spec
=
19449 whole_archive_flag_spec
=
19452 # PORTME fill in a description of your system's linker (not GNU ld)
19455 allow_undefined_flag
=unsupported
19456 always_export_symbols
=yes
19457 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'
19458 # Note: this linker hardcodes the directories in LIBPATH if there
19459 # are no directories specified by -L.
19460 hardcode_minus_L
=yes
19461 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19462 # Neither direct hardcoding nor static linking is supported with a
19464 hardcode_direct
=unsupported
19469 if test "$host_cpu" = ia64
; then
19470 # On IA64, the linker does run time linking by default, so we don't
19471 # have to do anything special.
19472 aix_use_runtimelinking
=no
19473 exp_sym_flag
='-Bexport'
19476 # If we're using GNU nm, then we don't want the "-C" option.
19477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19478 # Also, AIX nm treats weak defined symbols like other global
19479 # defined symbols, whereas GNU nm marks them as "W".
19480 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19481 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'
19483 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'
19485 aix_use_runtimelinking
=no
19487 # Test if we are trying to use run time linking or normal
19488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19489 # need to do runtime linking.
19490 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19491 for ld_flag
in $LDFLAGS; do
19492 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
19493 aix_use_runtimelinking
=yes
19500 exp_sym_flag
='-bexport'
19501 no_entry_flag
='-bnoentry'
19504 # When large executables or shared objects are built, AIX ld can
19505 # have problems creating the table of contents. If linking a library
19506 # or program results in "error TOC overflow" add -mminimal-toc to
19507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19511 hardcode_direct
=yes
19512 hardcode_direct_absolute
=yes
19513 hardcode_libdir_separator
=':'
19514 link_all_deplibs
=yes
19515 file_list_spec
='${wl}-f,'
19517 if test "$GCC" = yes; then
19518 case $host_os in aix4.
[012]|aix4.
[012].
*)
19519 # We only want to do this on AIX 4.2 and lower, the check
19520 # below for broken collect2 doesn't work under 4.3+
19521 collect2name
=`${CC} -print-prog-name=collect2`
19522 if test -f "$collect2name" &&
19523 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19525 # We have reworked collect2
19528 # We have old collect2
19529 hardcode_direct
=unsupported
19530 # It fails to find uninstalled libraries when the uninstalled
19531 # path is not listed in the libpath. Setting hardcode_minus_L
19532 # to unsupported forces relinking
19533 hardcode_minus_L
=yes
19534 hardcode_libdir_flag_spec
='-L$libdir'
19535 hardcode_libdir_separator
=
19539 shared_flag
='-shared'
19540 if test "$aix_use_runtimelinking" = yes; then
19541 shared_flag
="$shared_flag "'${wl}-G'
19545 if test "$host_cpu" = ia64
; then
19546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547 # chokes on -Wl,-G. The following line is correct:
19550 if test "$aix_use_runtimelinking" = yes; then
19551 shared_flag
='${wl}-G'
19553 shared_flag
='${wl}-bM:SRE'
19558 export_dynamic_flag_spec
='${wl}-bexpall'
19559 # It seems that -bexpall does not export symbols beginning with
19560 # underscore (_), so it is better to generate a list of symbols to export.
19561 always_export_symbols
=yes
19562 if test "$aix_use_runtimelinking" = yes; then
19563 # Warning - without using the other runtime loading flags (-brtl),
19564 # -berok will link without error, but may produce a broken library.
19565 allow_undefined_flag
='-berok'
19566 # Determine the default libpath from the value encoded in an
19567 # empty executable.
19568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19579 if ac_fn_c_try_link
"$LINENO"; then :
19581 lt_aix_libpath_sed
='
19582 /Import File Strings/,/^$/ {
19588 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19589 # Check for a 64-bit object if we didn't find anything.
19590 if test -z "$aix_libpath"; then
19591 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19594 rm -f core conftest.err conftest.
$ac_objext \
19595 conftest
$ac_exeext conftest.
$ac_ext
19596 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19598 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19599 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"
19601 if test "$host_cpu" = ia64
; then
19602 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
19603 allow_undefined_flag
="-z nodefs"
19604 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"
19606 # Determine the default libpath from the value encoded in an
19607 # empty executable.
19608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19619 if ac_fn_c_try_link
"$LINENO"; then :
19621 lt_aix_libpath_sed
='
19622 /Import File Strings/,/^$/ {
19628 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19629 # Check for a 64-bit object if we didn't find anything.
19630 if test -z "$aix_libpath"; then
19631 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19634 rm -f core conftest.err conftest.
$ac_objext \
19635 conftest
$ac_exeext conftest.
$ac_ext
19636 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19638 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19639 # Warning - without using the other run time loading flags,
19640 # -berok will link without error, but may produce a broken library.
19641 no_undefined_flag
=' ${wl}-bernotok'
19642 allow_undefined_flag
=' ${wl}-berok'
19643 if test "$with_gnu_ld" = yes; then
19644 # We only use this code for GNU lds that support --whole-archive.
19645 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19647 # Exported symbols can be pulled into shared objects from archives
19648 whole_archive_flag_spec
='$convenience'
19650 archive_cmds_need_lc
=yes
19651 # This is similar to how AIX traditionally builds its shared libraries.
19652 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'
19660 # see comment about AmigaOS4 .so support
19661 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19662 archive_expsym_cmds
=''
19665 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)'
19666 hardcode_libdir_flag_spec
='-L$libdir'
19667 hardcode_minus_L
=yes
19673 export_dynamic_flag_spec
=-rdynamic
19676 cygwin
* | mingw
* | pw32
* | cegcc
*)
19677 # When not using gcc, we currently assume that we are using
19678 # Microsoft Visual C++.
19679 # hardcode_libdir_flag_spec is actually meaningless, as there is
19680 # no search path for DLLs.
19681 hardcode_libdir_flag_spec
=' '
19682 allow_undefined_flag
=unsupported
19683 # Tell ltmain to make .lib files, not .a files.
19685 # Tell ltmain to make .dll files, not .so files.
19687 # FIXME: Setting linknames here is a bad hack.
19688 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19689 # The linker will automatically build a .lib file if we build a DLL.
19690 old_archive_from_new_cmds
='true'
19691 # FIXME: Should let the user specify the lib program.
19692 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19693 fix_srcfile_path
='`cygpath -w "$srcfile"`'
19694 enable_shared_with_static_runtimes
=yes
19697 darwin
* | rhapsody
*)
19701 # Publish an arg to allow the user to select that Darwin host (and target)
19702 # libraries should be given install-names like @rpath/libfoo.dylib. This
19703 # requires that the user of the library then adds an 'rpath' to the DSO that
19705 # NOTE: there are defaults below, for systems that support rpaths. The person
19706 # configuring can override the defaults for any system version that supports
19707 # them - they are, however, forced off for system versions without support.
19708 # Check whether --enable-darwin-at-rpath was given.
19709 if test "${enable_darwin_at_rpath+set}" = set; then :
19710 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19711 # This is not supported before macOS 10.5 / Darwin9.
19712 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19713 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19715 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19716 enable_darwin_at_rpath
=no
19721 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19722 # As above, before 10.5 / Darwin9 this does not work.
19723 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19724 enable_darwin_at_rpath
=no
19727 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19728 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19729 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19730 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19732 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19733 enable_darwin_at_rpath
=yes
19735 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19736 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19743 archive_cmds_need_lc
=no
19745 hardcode_automatic
=yes
19746 hardcode_shlibpath_var
=unsupported
19747 if test "$lt_cv_ld_force_load" = "yes"; then
19748 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\"`'
19750 whole_archive_flag_spec
=''
19752 link_all_deplibs
=yes
19753 allow_undefined_flag
="$_lt_dar_allow_undefined"
19754 case $cc_basename in
19755 ifort
*) _lt_dar_can_shared
=yes ;;
19756 *) _lt_dar_can_shared
=$GCC ;;
19758 if test "$_lt_dar_can_shared" = "yes"; then
19759 output_verbose_link_cmd
=func_echo_all
19760 _lt_install_name
='\$rpath/\$soname'
19761 if test "x$enable_darwin_at_rpath" = "xyes"; then
19762 _lt_install_name
='@rpath/\$soname'
19764 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19765 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19766 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}"
19767 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}"
19776 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 hardcode_libdir_flag_spec
='-L$libdir'
19778 hardcode_shlibpath_var
=no
19781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19782 # support. Future versions do this automatically, but an explicit c++rt0.o
19783 # does not break anything, and helps significantly (at the cost of a little
19786 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19787 hardcode_libdir_flag_spec
='-R$libdir'
19788 hardcode_direct
=yes
19789 hardcode_shlibpath_var
=no
19792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19794 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19795 hardcode_direct
=yes
19796 hardcode_minus_L
=yes
19797 hardcode_shlibpath_var
=no
19800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19801 freebsd
* | dragonfly
*)
19802 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19803 hardcode_libdir_flag_spec
='-R$libdir'
19804 hardcode_direct
=yes
19805 hardcode_shlibpath_var
=no
19809 if test "$GCC" = yes; then
19810 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'
19812 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'
19814 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19815 hardcode_libdir_separator
=:
19816 hardcode_direct
=yes
19818 # hardcode_minus_L: Not really in the search PATH,
19819 # but as the default location of the library.
19820 hardcode_minus_L
=yes
19821 export_dynamic_flag_spec
='${wl}-E'
19825 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19826 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19828 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19830 if test "$with_gnu_ld" = no
; then
19831 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19832 hardcode_libdir_flag_spec_ld
='+b $libdir'
19833 hardcode_libdir_separator
=:
19834 hardcode_direct
=yes
19835 hardcode_direct_absolute
=yes
19836 export_dynamic_flag_spec
='${wl}-E'
19837 # hardcode_minus_L: Not really in the search PATH,
19838 # but as the default location of the library.
19839 hardcode_minus_L
=yes
19844 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19847 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19850 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19853 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19859 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19862 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19866 # Older versions of the 11.00 compiler do not understand -b yet
19867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19869 $as_echo_n "checking if $CC understands -b... " >&6; }
19870 if ${lt_cv_prog_compiler__b+:} false
; then :
19871 $as_echo_n "(cached) " >&6
19873 lt_cv_prog_compiler__b
=no
19874 save_LDFLAGS
="$LDFLAGS"
19875 LDFLAGS
="$LDFLAGS -b"
19876 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19877 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19878 # The linker can only warn and ignore the option if not recognized
19879 # So say no if there are warnings
19880 if test -s conftest.err
; then
19881 # Append any errors to the config.log.
19882 cat conftest.err
1>&5
19883 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19884 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19885 if diff conftest.exp conftest.er2
>/dev
/null
; then
19886 lt_cv_prog_compiler__b
=yes
19889 lt_cv_prog_compiler__b
=yes
19893 LDFLAGS
="$save_LDFLAGS"
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19897 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19899 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
19900 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19902 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19908 if test "$with_gnu_ld" = no
; then
19909 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19910 hardcode_libdir_separator
=:
19915 hardcode_shlibpath_var
=no
19918 hardcode_direct
=yes
19919 hardcode_direct_absolute
=yes
19920 export_dynamic_flag_spec
='${wl}-E'
19922 # hardcode_minus_L: Not really in the search PATH,
19923 # but as the default location of the library.
19924 hardcode_minus_L
=yes
19930 irix5
* | irix6
* | nonstopux
*)
19931 if test "$GCC" = yes; then
19932 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'
19933 # Try to use the -exported_symbol ld option, if it does not
19934 # work, assume that -exports_file does not work either and
19935 # implicitly export all symbols.
19936 save_LDFLAGS
="$LDFLAGS"
19937 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19942 if ac_fn_c_try_link
"$LINENO"; then :
19943 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'
19946 rm -f core conftest.err conftest.
$ac_objext \
19947 conftest
$ac_exeext conftest.
$ac_ext
19948 LDFLAGS
="$save_LDFLAGS"
19950 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'
19951 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'
19953 archive_cmds_need_lc
='no'
19954 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19955 hardcode_libdir_separator
=:
19957 link_all_deplibs
=yes
19961 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19962 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19964 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19966 hardcode_libdir_flag_spec
='-R$libdir'
19967 hardcode_direct
=yes
19968 hardcode_shlibpath_var
=no
19972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19973 hardcode_direct
=yes
19974 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19975 hardcode_libdir_separator
=:
19976 hardcode_shlibpath_var
=no
19983 if test -f /usr
/libexec
/ld.so
; then
19984 hardcode_direct
=yes
19985 hardcode_shlibpath_var
=no
19986 hardcode_direct_absolute
=yes
19987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19988 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19989 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19990 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19991 export_dynamic_flag_spec
='${wl}-E'
19994 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19995 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19996 hardcode_libdir_flag_spec
='-R$libdir'
19999 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20000 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
20010 hardcode_libdir_flag_spec
='-L$libdir'
20011 hardcode_minus_L
=yes
20012 allow_undefined_flag
=unsupported
20013 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'
20014 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20018 if test "$GCC" = yes; then
20019 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
20020 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'
20022 allow_undefined_flag
=' -expect_unresolved \*'
20023 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'
20025 archive_cmds_need_lc
='no'
20026 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20027 hardcode_libdir_separator
=:
20030 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
20031 if test "$GCC" = yes; then
20032 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
20033 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'
20034 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
20036 allow_undefined_flag
=' -expect_unresolved \*'
20037 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'
20038 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~
20039 $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'
20041 # Both c and cxx compiler support -rpath directly
20042 hardcode_libdir_flag_spec
='-rpath $libdir'
20044 archive_cmds_need_lc
='no'
20045 hardcode_libdir_separator
=:
20049 no_undefined_flag
=' -z defs'
20050 if test "$GCC" = yes; then
20052 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20053 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20054 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20056 case `$CC -V 2>&1` in
20059 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20060 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20065 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20066 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20067 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20071 hardcode_libdir_flag_spec
='-R$libdir'
20072 hardcode_shlibpath_var
=no
20074 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20076 # The compiler driver will combine and reorder linker options,
20077 # but understands `-z linker_flag'. GCC discards it without `$wl',
20078 # but is careful enough not to reorder.
20079 # Supported since Solaris 2.6 (maybe 2.5.1?)
20080 if test "$GCC" = yes; then
20081 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20083 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
20087 link_all_deplibs
=yes
20091 if test "x$host_vendor" = xsequent
; then
20092 # Use $CC to link under sequent, because it throws in some extra .o
20093 # files that make .init and .fini sections work.
20094 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20096 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20098 hardcode_libdir_flag_spec
='-L$libdir'
20099 hardcode_direct
=yes
20100 hardcode_minus_L
=yes
20101 hardcode_shlibpath_var
=no
20105 case $host_vendor in
20107 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20108 hardcode_direct
=yes # is this really true???
20111 ## LD is ld it makes a PLAMLIB
20112 ## CC just makes a GrossModule.
20113 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20114 reload_cmds
='$CC -r -o $output$reload_objs'
20118 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20119 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
20122 runpath_var
='LD_RUN_PATH'
20123 hardcode_shlibpath_var
=no
20127 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20128 hardcode_shlibpath_var
=no
20129 export_dynamic_flag_spec
='-Bexport'
20133 if test -d /usr
/nec
; then
20134 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20135 hardcode_shlibpath_var
=no
20136 runpath_var
=LD_RUN_PATH
20137 hardcode_runpath_var
=yes
20142 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20143 no_undefined_flag
='${wl}-z,text'
20144 archive_cmds_need_lc
=no
20145 hardcode_shlibpath_var
=no
20146 runpath_var
='LD_RUN_PATH'
20148 if test "$GCC" = yes; then
20149 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20152 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20153 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20157 sysv5
* | sco3.2v5
* | sco5v6
*)
20158 # Note: We can NOT use -z defs as we might desire, because we do not
20159 # link with -lc, and that would cause any symbols used from libc to
20160 # always be unresolved, which means just about no library would
20161 # ever link correctly. If we're not using GNU ld we use -z text
20162 # though, which does catch some bad symbols but isn't as heavy-handed
20164 no_undefined_flag
='${wl}-z,text'
20165 allow_undefined_flag
='${wl}-z,nodefs'
20166 archive_cmds_need_lc
=no
20167 hardcode_shlibpath_var
=no
20168 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
20169 hardcode_libdir_separator
=':'
20170 link_all_deplibs
=yes
20171 export_dynamic_flag_spec
='${wl}-Bexport'
20172 runpath_var
='LD_RUN_PATH'
20174 if test "$GCC" = yes; then
20175 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20176 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20178 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20179 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20184 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20185 hardcode_libdir_flag_spec
='-L$libdir'
20186 hardcode_shlibpath_var
=no
20194 if test x
$host_vendor = xsni
; then
20196 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
20197 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20204 $as_echo "$ld_shlibs" >&6; }
20205 test "$ld_shlibs" = no
&& can_build_shared
=no
20207 with_gnu_ld
=$with_gnu_ld
20224 # Do we need to explicitly link libc?
20226 case "x$archive_cmds_need_lc" in
20228 # Assume -lc should be added
20229 archive_cmds_need_lc
=yes
20231 if test "$enable_shared" = yes && test "$GCC" = yes; then
20232 case $archive_cmds in
20234 # FIXME: we may have to deal with multi-command sequences.
20237 # Test whether the compiler implicitly links with -lc since on some
20238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20239 # to ld, don't add -lc before -lgcc.
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20241 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20242 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
20243 $as_echo_n "(cached) " >&6
20246 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20249 (eval $ac_compile) 2>&5
20251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20252 test $ac_status = 0; } 2>conftest.err
; then
20255 libobjs
=conftest.
$ac_objext
20257 wl
=$lt_prog_compiler_wl
20258 pic_flag
=$lt_prog_compiler_pic
20264 lt_save_allow_undefined_flag
=$allow_undefined_flag
20265 allow_undefined_flag
=
20266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20267 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20270 test $ac_status = 0; }
20272 lt_cv_archive_cmds_need_lc
=no
20274 lt_cv_archive_cmds_need_lc
=yes
20276 allow_undefined_flag
=$lt_save_allow_undefined_flag
20278 cat conftest.err
1>&5
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20284 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20285 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20449 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20451 if test "$GCC" = yes; then
20453 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
20454 *) lt_awk_arg
="/^libraries:/" ;;
20457 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
20458 *) lt_sed_strip_eq
="s,=/,/,g" ;;
20460 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20461 case $lt_search_path_spec in
20463 # if the path contains ";" then we assume it to be the separator
20464 # otherwise default to the standard path separator (i.e. ":") - it is
20465 # assumed that no part of a normal pathname contains ";" but that should
20466 # okay in the real world where ";" in dirpaths is itself problematic.
20467 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20470 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20473 # Ok, now we have the path, separated by spaces, we can step through it
20474 # and add multilib dir if necessary.
20475 lt_tmp_lt_search_path_spec
=
20476 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20477 for lt_sys_path
in $lt_search_path_spec; do
20478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20479 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20481 test -d "$lt_sys_path" && \
20482 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
20485 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20486 BEGIN {RS=" "; FS="/|\n";} {
20489 for (lt_i = NF; lt_i > 0; lt_i--) {
20490 if ($lt_i != "" && $lt_i != ".") {
20491 if ($lt_i == "..") {
20494 if (lt_count == 0) {
20495 lt_foo="/" $lt_i lt_foo;
20502 if (lt_foo != "") { lt_freq[lt_foo]++; }
20503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20505 # AWK program above erroneously prepends '/' to C:/dos/paths
20508 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
20509 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20511 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20513 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20515 library_names_spec
=
20516 libname_spec
='lib$name'
20520 postuninstall_cmds
=
20524 shlibpath_overrides_runpath
=unknown
20526 dynamic_linker
="$host_os ld.so"
20527 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20528 need_lib_prefix
=unknown
20529 hardcode_into_libs
=no
20531 # when you set need_version to no, make sure it does not cause -set_version
20532 # flags to be left without arguments
20533 need_version
=unknown
20538 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20539 shlibpath_var
=LIBPATH
20541 # AIX 3 has no versioning support, so we append a major version to the name.
20542 soname_spec
='${libname}${release}${shared_ext}$major'
20549 hardcode_into_libs
=yes
20550 if test "$host_cpu" = ia64
; then
20551 # AIX 5 supports IA64
20552 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20553 shlibpath_var
=LD_LIBRARY_PATH
20555 # With GCC up to 2.95.x, collect2 would create an import file
20556 # for dependence libraries. The import file would start with
20557 # the line `#! .'. This would cause the generated library to
20558 # depend on `.', always an invalid library. This was fixed in
20559 # development snapshots of GCC prior to 3.0.
20561 aix4 | aix4.
[01] | aix4.
[01].
*)
20562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20564 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20567 can_build_shared
=no
20571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20572 # soname into executable. Probably we can add versioning support to
20573 # collect2, so additional links can be useful in future.
20574 if test "$aix_use_runtimelinking" = yes; then
20575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20576 # instead of lib<name>.a to let people know that these are not
20577 # typical AIX shared libraries.
20578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580 # We preserve .a as extension for shared libraries through AIX4.2
20581 # and later when we are not doing run time linking.
20582 library_names_spec
='${libname}${release}.a $libname.a'
20583 soname_spec
='${libname}${release}${shared_ext}$major'
20585 shlibpath_var
=LIBPATH
20592 # Since July 2007 AmigaOS4 officially supports .so libraries.
20593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597 library_names_spec
='$libname.ixlibrary $libname.a'
20598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20599 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'
20605 library_names_spec
='${libname}${shared_ext}'
20606 dynamic_linker
="$host_os ld.so"
20607 shlibpath_var
=LIBRARY_PATH
20613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec
='${libname}${release}${shared_ext}$major'
20615 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20616 shlibpath_var
=LD_LIBRARY_PATH
20617 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20618 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20619 # the default ld.so.conf also contains /usr/contrib/lib and
20620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20621 # libtool to hard-code these into programs
20624 cygwin
* | mingw
* | pw32
* | cegcc
*)
20625 version_type
=windows
20630 case $GCC,$host_os in
20631 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20632 library_names_spec
='$libname.dll.a'
20633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20634 postinstall_cmds
='base_file=`basename \${file}`~
20635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20636 dldir=$destdir/`dirname \$dlpath`~
20637 test -d \$dldir || mkdir -p \$dldir~
20638 $install_prog $dir/$dlname \$dldir/$dlname~
20639 chmod a+x \$dldir/$dlname~
20640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20643 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20644 dlpath=$dir/\$dldll~
20646 shlibpath_overrides_runpath
=yes
20650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20651 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20653 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
20656 # MinGW DLLs use traditional 'lib' prefix
20657 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20660 # pw32 DLLs use 'pw' prefix rather than 'lib'
20661 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20667 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20670 dynamic_linker
='Win32 ld.exe'
20671 # FIXME: first we should search . and the directory the executable is in
20675 darwin
* | rhapsody
*)
20676 dynamic_linker
="$host_os dyld"
20677 version_type
=darwin
20680 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20681 soname_spec
='${libname}${release}${major}$shared_ext'
20682 shlibpath_overrides_runpath
=yes
20683 shlibpath_var
=DYLD_LIBRARY_PATH
20684 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20686 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
20687 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20695 soname_spec
='${libname}${release}${shared_ext}$major'
20696 shlibpath_var
=LD_LIBRARY_PATH
20699 freebsd
* | dragonfly
*)
20700 # DragonFly does not have aout. When/if they implement a new
20701 # versioning mechanism, adjust this.
20702 if test -x /usr
/bin
/objformat
; then
20703 objformat
=`/usr/bin/objformat`
20706 freebsd
[23].
*) objformat
=aout
;;
20707 *) objformat
=elf
;;
20710 version_type
=freebsd-
$objformat
20711 case $version_type in
20713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20718 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20722 shlibpath_var
=LD_LIBRARY_PATH
20725 shlibpath_overrides_runpath
=yes
20727 freebsd3.
[01]* | freebsdelf3.
[01]*)
20728 shlibpath_overrides_runpath
=yes
20729 hardcode_into_libs
=yes
20731 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20732 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20733 shlibpath_overrides_runpath
=no
20734 hardcode_into_libs
=yes
20736 *) # from 4.6 on, and DragonFly
20737 shlibpath_overrides_runpath
=yes
20738 hardcode_into_libs
=yes
20747 dynamic_linker
="$host_os runtime_loader"
20748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20749 soname_spec
='${libname}${release}${shared_ext}$major'
20750 shlibpath_var
=LIBRARY_PATH
20751 shlibpath_overrides_runpath
=yes
20752 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20753 hardcode_into_libs
=yes
20756 hpux9
* | hpux10
* | hpux11
*)
20757 # Give a soname corresponding to the major version so that dld.sl refuses to
20758 # link against other versions.
20765 hardcode_into_libs
=yes
20766 dynamic_linker
="$host_os dld.so"
20767 shlibpath_var
=LD_LIBRARY_PATH
20768 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 soname_spec
='${libname}${release}${shared_ext}$major'
20771 if test "X$HPUX_IA64_MODE" = X32
; then
20772 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20774 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20776 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20780 hardcode_into_libs
=yes
20781 dynamic_linker
="$host_os dld.sl"
20782 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20783 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785 soname_spec
='${libname}${release}${shared_ext}$major'
20786 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20787 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20791 dynamic_linker
="$host_os dld.sl"
20792 shlibpath_var
=SHLIB_PATH
20793 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 soname_spec
='${libname}${release}${shared_ext}$major'
20798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20799 postinstall_cmds
='chmod 555 $lib'
20800 # or fails outright, so override atomically:
20801 install_override_mode
=555
20808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20809 soname_spec
='${libname}${release}${shared_ext}$major'
20810 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20811 shlibpath_var
=LD_LIBRARY_PATH
20812 shlibpath_overrides_runpath
=no
20813 hardcode_into_libs
=yes
20816 irix5
* | irix6
* | nonstopux
*)
20818 nonstopux
*) version_type
=nonstopux
;;
20820 if test "$lt_cv_prog_gnu_ld" = yes; then
20828 soname_spec
='${libname}${release}${shared_ext}$major'
20829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20831 irix5
* | nonstopux
*)
20832 libsuff
= shlibsuff
=
20835 case $LD in # libtool.m4 will add one of these switches to LD
20836 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20837 libsuff
= shlibsuff
= libmagic
=32-bit;;
20838 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20839 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20840 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20841 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20842 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20846 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20847 shlibpath_overrides_runpath
=no
20848 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20849 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20850 hardcode_into_libs
=yes
20853 # No shared lib support for Linux oldld, aout, or coff.
20854 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20858 # This must be Linux ELF.
20860 # uclinux* changes (here and below) have been submitted to the libtool
20861 # project, but have not yet been accepted: they are GCC-local changes
20862 # for the time being. (See
20863 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20864 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
20868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec
='${libname}${release}${shared_ext}$major'
20870 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20871 shlibpath_var
=LD_LIBRARY_PATH
20872 shlibpath_overrides_runpath
=no
20874 # Some binutils ld are patched to set DT_RUNPATH
20875 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
20876 $as_echo_n "(cached) " >&6
20878 lt_cv_shlibpath_overrides_runpath
=no
20879 save_LDFLAGS
=$LDFLAGS
20880 save_libdir
=$libdir
20881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20894 if ac_fn_c_try_link
"$LINENO"; then :
20895 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20896 lt_cv_shlibpath_overrides_runpath
=yes
20899 rm -f core conftest.err conftest.
$ac_objext \
20900 conftest
$ac_exeext conftest.
$ac_ext
20901 LDFLAGS
=$save_LDFLAGS
20902 libdir
=$save_libdir
20906 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs
=yes
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc
/ld.so.conf
; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker
='GNU/Linux ld.so'
20932 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935 dynamic_linker
='NetBSD (a.out) ld.so'
20937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938 soname_spec
='${libname}${release}${shared_ext}$major'
20939 dynamic_linker
='NetBSD ld.elf_so'
20941 shlibpath_var
=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath
=yes
20943 hardcode_into_libs
=yes
20948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 shlibpath_var
=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath
=yes
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec
='${libname}${release}${shared_ext}$major'
20959 shlibpath_var
=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath
=no
20961 hardcode_into_libs
=yes
20962 dynamic_linker
='ldqnx.so'
20967 sys_lib_dlsearch_path_spec
="/usr/lib"
20969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20971 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20972 *) need_version
=no
;;
20974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20976 shlibpath_var
=LD_LIBRARY_PATH
20977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20979 openbsd2.
[89] | openbsd2.
[89].
*)
20980 shlibpath_overrides_runpath
=no
20983 shlibpath_overrides_runpath
=yes
20987 shlibpath_overrides_runpath
=yes
20992 libname_spec
='$name'
20995 library_names_spec
='$libname${shared_ext} $libname.a'
20996 dynamic_linker
='OS/2 ld.exe'
20997 shlibpath_var
=LIBPATH
21000 osf3
* | osf4
* | osf5
*)
21004 soname_spec
='${libname}${release}${shared_ext}$major'
21005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 shlibpath_var
=LD_LIBRARY_PATH
21007 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21008 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec
='${libname}${release}${shared_ext}$major'
21021 shlibpath_var
=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath
=yes
21023 hardcode_into_libs
=yes
21024 # ldd complains unless libraries are executable
21025 postinstall_cmds
='chmod +x $lib'
21030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032 shlibpath_var
=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath
=yes
21034 if test "$with_gnu_ld" = yes; then
21042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec
='${libname}${release}${shared_ext}$major'
21044 shlibpath_var
=LD_LIBRARY_PATH
21045 case $host_vendor in
21047 shlibpath_overrides_runpath
=no
21049 runpath_var
=LD_RUN_PATH
21057 shlibpath_overrides_runpath
=no
21058 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21064 if test -d /usr
/nec
;then
21066 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21067 soname_spec
='$libname${shared_ext}.$major'
21068 shlibpath_var
=LD_LIBRARY_PATH
21072 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21073 version_type
=freebsd-elf
21076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21077 soname_spec
='${libname}${release}${shared_ext}$major'
21078 shlibpath_var
=LD_LIBRARY_PATH
21079 shlibpath_overrides_runpath
=yes
21080 hardcode_into_libs
=yes
21081 if test "$with_gnu_ld" = yes; then
21082 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21084 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21087 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21091 sys_lib_dlsearch_path_spec
='/usr/lib'
21095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100 shlibpath_var
=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath
=no
21102 hardcode_into_libs
=yes
21107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 soname_spec
='${libname}${release}${shared_ext}$major'
21109 shlibpath_var
=LD_LIBRARY_PATH
21112 # Shared libraries for VwWorks, >= 7 only at this stage
21113 # and (fpic) still incompatible with "large" code models
21114 # in a few configurations. Only for RTP mode in any case,
21115 # and upon explicit request at configure time.
21118 case ${with_multisubdir}-${enable_shared} in
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec
='${libname}${release}${shared_ext}$major'
21127 dynamic_linker
="$host_os module_loader"
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21136 $as_echo "$dynamic_linker" >&6; }
21137 test "$dynamic_linker" = no
&& can_build_shared
=no
21139 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21140 if test "$GCC" = yes; then
21141 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21145 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21147 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21148 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21243 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21245 if test -n "$hardcode_libdir_flag_spec" ||
21246 test -n "$runpath_var" ||
21247 test "X$hardcode_automatic" = "Xyes" ; then
21249 # We can hardcode non-existent directories.
21250 if test "$hardcode_direct" != no
&&
21251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21252 # have to relink, otherwise we might link with an installed library
21253 # when we should be linking with a yet-to-be-installed one
21254 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21255 test "$hardcode_minus_L" != no
; then
21256 # Linking always hardcodes the temporary library directory.
21257 hardcode_action
=relink
21259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21260 hardcode_action
=immediate
21263 # We cannot hardcode anything, or else we can only hardcode existing
21265 hardcode_action
=unsupported
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21268 $as_echo "$hardcode_action" >&6; }
21270 if test "$hardcode_action" = relink ||
21271 test "$inherit_rpath" = yes; then
21272 # Fast installation is not supported
21273 enable_fast_install
=no
21274 elif test "$shlibpath_overrides_runpath" = yes ||
21275 test "$enable_shared" = no
; then
21276 # Fast installation is not necessary
21277 enable_fast_install
=needless
21285 if test "x$enable_dlopen" != xyes
; then
21286 enable_dlopen
=unknown
21287 enable_dlopen_self
=unknown
21288 enable_dlopen_self_static
=unknown
21295 lt_cv_dlopen
="load_add_on"
21297 lt_cv_dlopen_self
=yes
21300 mingw
* | pw32
* | cegcc
*)
21301 lt_cv_dlopen
="LoadLibrary"
21306 lt_cv_dlopen
="dlopen"
21311 # if libdl is installed we need to link against it
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21314 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21315 $as_echo_n "(cached) " >&6
21317 ac_check_lib_save_LIBS
=$LIBS
21319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21322 /* Override any GCC internal prototype to avoid an error.
21323 Use char because int might match the return type of a GCC
21324 builtin and then its argument prototype would still apply. */
21337 if ac_fn_c_try_link
"$LINENO"; then :
21338 ac_cv_lib_dl_dlopen
=yes
21340 ac_cv_lib_dl_dlopen
=no
21342 rm -f core conftest.err conftest.
$ac_objext \
21343 conftest
$ac_exeext conftest.
$ac_ext
21344 LIBS
=$ac_check_lib_save_LIBS
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21348 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21349 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21352 lt_cv_dlopen
="dyld"
21354 lt_cv_dlopen_self
=yes
21361 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
21362 if test "x$ac_cv_func_shl_load" = xyes
; then :
21363 lt_cv_dlopen
="shl_load"
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21366 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21367 if ${ac_cv_lib_dld_shl_load+:} false
; then :
21368 $as_echo_n "(cached) " >&6
21370 ac_check_lib_save_LIBS
=$LIBS
21372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21375 /* Override any GCC internal prototype to avoid an error.
21376 Use char because int might match the return type of a GCC
21377 builtin and then its argument prototype would still apply. */
21385 return shl_load ();
21390 if ac_fn_c_try_link
"$LINENO"; then :
21391 ac_cv_lib_dld_shl_load
=yes
21393 ac_cv_lib_dld_shl_load
=no
21395 rm -f core conftest.err conftest.
$ac_objext \
21396 conftest
$ac_exeext conftest.
$ac_ext
21397 LIBS
=$ac_check_lib_save_LIBS
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21400 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21401 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
21402 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
21404 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
21405 if test "x$ac_cv_func_dlopen" = xyes
; then :
21406 lt_cv_dlopen
="dlopen"
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21409 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21410 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21411 $as_echo_n "(cached) " >&6
21413 ac_check_lib_save_LIBS
=$LIBS
21415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21418 /* Override any GCC internal prototype to avoid an error.
21419 Use char because int might match the return type of a GCC
21420 builtin and then its argument prototype would still apply. */
21433 if ac_fn_c_try_link
"$LINENO"; then :
21434 ac_cv_lib_dl_dlopen
=yes
21436 ac_cv_lib_dl_dlopen
=no
21438 rm -f core conftest.err conftest.
$ac_objext \
21439 conftest
$ac_exeext conftest.
$ac_ext
21440 LIBS
=$ac_check_lib_save_LIBS
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21444 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21445 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21448 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21449 if ${ac_cv_lib_svld_dlopen+:} false
; then :
21450 $as_echo_n "(cached) " >&6
21452 ac_check_lib_save_LIBS
=$LIBS
21453 LIBS
="-lsvld $LIBS"
21454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21472 if ac_fn_c_try_link
"$LINENO"; then :
21473 ac_cv_lib_svld_dlopen
=yes
21475 ac_cv_lib_svld_dlopen
=no
21477 rm -f core conftest.err conftest.
$ac_objext \
21478 conftest
$ac_exeext conftest.
$ac_ext
21479 LIBS
=$ac_check_lib_save_LIBS
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21483 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
21484 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21488 if ${ac_cv_lib_dld_dld_link+:} false
; then :
21489 $as_echo_n "(cached) " >&6
21491 ac_check_lib_save_LIBS
=$LIBS
21493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21494 /* end confdefs.h. */
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21506 return dld_link ();
21511 if ac_fn_c_try_link
"$LINENO"; then :
21512 ac_cv_lib_dld_dld_link
=yes
21514 ac_cv_lib_dld_dld_link
=no
21516 rm -f core conftest.err conftest.
$ac_objext \
21517 conftest
$ac_exeext conftest.
$ac_ext
21518 LIBS
=$ac_check_lib_save_LIBS
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21522 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
21523 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
21544 if test "x$lt_cv_dlopen" != xno
; then
21550 case $lt_cv_dlopen in
21552 save_CPPFLAGS
="$CPPFLAGS"
21553 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
21555 save_LDFLAGS
="$LDFLAGS"
21556 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
21559 LIBS
="$lt_cv_dlopen_libs $LIBS"
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21562 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21563 if ${lt_cv_dlopen_self+:} false
; then :
21564 $as_echo_n "(cached) " >&6
21566 if test "$cross_compiling" = yes; then :
21567 lt_cv_dlopen_self
=cross
21569 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21570 lt_status
=$lt_dlunknown
21571 cat > conftest.
$ac_ext <<_LT_EOF
21572 #line 21572 "configure"
21573 #include "confdefs.h"
21582 # define LT_DLGLOBAL RTLD_GLOBAL
21585 # define LT_DLGLOBAL DL_GLOBAL
21587 # define LT_DLGLOBAL 0
21591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21592 find out it does not work in some platform. */
21593 #ifndef LT_DLLAZY_OR_NOW
21595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21598 # define LT_DLLAZY_OR_NOW DL_LAZY
21601 # define LT_DLLAZY_OR_NOW RTLD_NOW
21604 # define LT_DLLAZY_OR_NOW DL_NOW
21606 # define LT_DLLAZY_OR_NOW 0
21613 /* When -fvisbility=hidden is used, assume the code has been annotated
21614 correspondingly for the symbols needed. */
21615 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21616 void fnord () __attribute__((visibility("default")));
21619 void fnord () { int i=42; }
21622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21623 int status = $lt_dlunknown;
21627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21631 else puts (dlerror ());
21633 /* dlclose (self); */
21641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21642 (eval $ac_link) 2>&5
21644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21645 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21646 (.
/conftest
; exit; ) >&5 2>/dev
/null
21648 case x
$lt_status in
21649 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
21650 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
21651 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
21654 # compilation failed
21655 lt_cv_dlopen_self
=no
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21663 $as_echo "$lt_cv_dlopen_self" >&6; }
21665 if test "x$lt_cv_dlopen_self" = xyes
; then
21666 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21668 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21669 if ${lt_cv_dlopen_self_static+:} false
; then :
21670 $as_echo_n "(cached) " >&6
21672 if test "$cross_compiling" = yes; then :
21673 lt_cv_dlopen_self_static
=cross
21675 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21676 lt_status
=$lt_dlunknown
21677 cat > conftest.
$ac_ext <<_LT_EOF
21678 #line 21678 "configure"
21679 #include "confdefs.h"
21688 # define LT_DLGLOBAL RTLD_GLOBAL
21691 # define LT_DLGLOBAL DL_GLOBAL
21693 # define LT_DLGLOBAL 0
21697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21698 find out it does not work in some platform. */
21699 #ifndef LT_DLLAZY_OR_NOW
21701 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21704 # define LT_DLLAZY_OR_NOW DL_LAZY
21707 # define LT_DLLAZY_OR_NOW RTLD_NOW
21710 # define LT_DLLAZY_OR_NOW DL_NOW
21712 # define LT_DLLAZY_OR_NOW 0
21719 /* When -fvisbility=hidden is used, assume the code has been annotated
21720 correspondingly for the symbols needed. */
21721 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21722 void fnord () __attribute__((visibility("default")));
21725 void fnord () { int i=42; }
21728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21729 int status = $lt_dlunknown;
21733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21737 else puts (dlerror ());
21739 /* dlclose (self); */
21747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21748 (eval $ac_link) 2>&5
21750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21751 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21752 (.
/conftest
; exit; ) >&5 2>/dev
/null
21754 case x
$lt_status in
21755 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
21756 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
21757 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
21760 # compilation failed
21761 lt_cv_dlopen_self_static
=no
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21769 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21772 CPPFLAGS
="$save_CPPFLAGS"
21773 LDFLAGS
="$save_LDFLAGS"
21778 case $lt_cv_dlopen_self in
21779 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
21780 *) enable_dlopen_self
=unknown
;;
21783 case $lt_cv_dlopen_self_static in
21784 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
21785 *) enable_dlopen_self_static
=unknown
;;
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21808 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21809 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
21810 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
21811 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21813 $as_echo "yes" >&6; }
21815 # FIXME - insert some real tests, host_os isn't really good enough
21818 if test -n "$STRIP" ; then
21819 striplib
="$STRIP -x"
21820 old_striplib
="$STRIP -S"
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21822 $as_echo "yes" >&6; }
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21825 $as_echo "no" >&6; }
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21846 # Report which library types will actually be built
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21848 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21850 $as_echo "$can_build_shared" >&6; }
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21853 $as_echo_n "checking whether to build shared libraries... " >&6; }
21854 test "$can_build_shared" = "no" && enable_shared
=no
21856 # On AIX, shared libraries and static libraries use the same namespace, and
21857 # are all built from PIC.
21860 test "$enable_shared" = yes && enable_static
=no
21861 if test -n "$RANLIB"; then
21862 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21863 postinstall_cmds
='$RANLIB $lib'
21868 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21869 test "$enable_shared" = yes && enable_static
=no
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21874 $as_echo "$enable_shared" >&6; }
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21877 $as_echo_n "checking whether to build static libraries... " >&6; }
21878 # Make sure either enable_shared or enable_static is yes.
21879 test "$enable_shared" = yes || enable_static
=yes
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21881 $as_echo "$enable_static" >&6; }
21888 ac_cpp
='$CXXCPP $CPPFLAGS'
21889 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21895 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21897 (test "X$CXX" != "Xg++"))) ; then
21899 ac_cpp
='$CXXCPP $CPPFLAGS'
21900 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21901 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21902 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21904 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21905 if test -z "$CXXCPP"; then
21906 if ${ac_cv_prog_CXXCPP+:} false
; then :
21907 $as_echo_n "(cached) " >&6
21909 # Double quotes because CXXCPP needs to be expanded
21910 for CXXCPP
in "$CXX -E" "/lib/cpp"
21912 ac_preproc_ok
=false
21913 for ac_cxx_preproc_warn_flag
in '' yes
21915 # Use a header file that comes with gcc, so configuring glibc
21916 # with a fresh cross-compiler works.
21917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21918 # <limits.h> exists even on freestanding compilers.
21919 # On the NeXT, cc -E runs the code through the compiler's parser,
21920 # not just through cpp. "Syntax error" is here to catch this case.
21921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21924 # include <limits.h>
21926 # include <assert.h>
21930 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21933 # Broken: fails on valid input.
21936 rm -f conftest.err conftest.i conftest.
$ac_ext
21938 # OK, works on sane cases. Now check whether nonexistent headers
21939 # can be detected and how.
21940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21942 #include <ac_nonexistent.h>
21944 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21945 # Broken: success on invalid input.
21948 # Passes both tests.
21952 rm -f conftest.err conftest.i conftest.
$ac_ext
21955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21956 rm -f conftest.i conftest.err conftest.
$ac_ext
21957 if $ac_preproc_ok; then :
21962 ac_cv_prog_CXXCPP
=$CXXCPP
21965 CXXCPP
=$ac_cv_prog_CXXCPP
21967 ac_cv_prog_CXXCPP
=$CXXCPP
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21970 $as_echo "$CXXCPP" >&6; }
21971 ac_preproc_ok
=false
21972 for ac_cxx_preproc_warn_flag
in '' yes
21974 # Use a header file that comes with gcc, so configuring glibc
21975 # with a fresh cross-compiler works.
21976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21977 # <limits.h> exists even on freestanding compilers.
21978 # On the NeXT, cc -E runs the code through the compiler's parser,
21979 # not just through cpp. "Syntax error" is here to catch this case.
21980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21983 # include <limits.h>
21985 # include <assert.h>
21989 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21992 # Broken: fails on valid input.
21995 rm -f conftest.err conftest.i conftest.
$ac_ext
21997 # OK, works on sane cases. Now check whether nonexistent headers
21998 # can be detected and how.
21999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22001 #include <ac_nonexistent.h>
22003 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22004 # Broken: success on invalid input.
22007 # Passes both tests.
22011 rm -f conftest.err conftest.i conftest.
$ac_ext
22014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22015 rm -f conftest.i conftest.err conftest.
$ac_ext
22016 if $ac_preproc_ok; then :
22019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22021 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
22022 See \`config.log' for more details" "$LINENO" 5; }
22026 ac_cpp
='$CXXCPP $CPPFLAGS'
22027 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22028 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22029 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22032 _lt_caught_CXX_error
=yes
22036 ac_cpp
='$CXXCPP $CPPFLAGS'
22037 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22038 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22039 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22041 archive_cmds_need_lc_CXX
=no
22042 allow_undefined_flag_CXX
=
22043 always_export_symbols_CXX
=no
22044 archive_expsym_cmds_CXX
=
22045 compiler_needs_object_CXX
=no
22046 export_dynamic_flag_spec_CXX
=
22047 hardcode_direct_CXX
=no
22048 hardcode_direct_absolute_CXX
=no
22049 hardcode_libdir_flag_spec_CXX
=
22050 hardcode_libdir_flag_spec_ld_CXX
=
22051 hardcode_libdir_separator_CXX
=
22052 hardcode_minus_L_CXX
=no
22053 hardcode_shlibpath_var_CXX
=unsupported
22054 hardcode_automatic_CXX
=no
22055 inherit_rpath_CXX
=no
22057 module_expsym_cmds_CXX
=
22058 link_all_deplibs_CXX
=unknown
22059 old_archive_cmds_CXX
=$old_archive_cmds
22060 reload_flag_CXX
=$reload_flag
22061 reload_cmds_CXX
=$reload_cmds
22062 no_undefined_flag_CXX
=
22063 whole_archive_flag_spec_CXX
=
22064 enable_shared_with_static_runtimes_CXX
=no
22066 # Source file extension for C++ test sources.
22069 # Object file extension for compiled C++ test sources.
22073 # No sense in running all these tests if we already determined that
22074 # the CXX compiler isn't working. Some variables (like enable_shared)
22075 # are currently assumed to apply to all compilers on this platform,
22076 # and will be corrupted by setting them based on a non-working compiler.
22077 if test "$_lt_caught_CXX_error" != yes; then
22078 # Code to be used in simple compile tests
22079 lt_simple_compile_test_code
="int some_variable = 0;"
22081 # Code to be used in simple link tests
22082 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
22084 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22091 # If no C compiler was specified, use CC.
22094 # If no C compiler flags were specified, use CFLAGS.
22095 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
22097 # Allow CC to be a program name with arguments.
22101 # save warnings/boilerplate of simple test code
22102 ac_outfile
=conftest.
$ac_objext
22103 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
22104 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22105 _lt_compiler_boilerplate
=`cat conftest.err`
22108 ac_outfile
=conftest.
$ac_objext
22109 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
22110 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22111 _lt_linker_boilerplate
=`cat conftest.err`
22115 # Allow CC to be a program name with arguments.
22120 lt_save_with_gnu_ld
=$with_gnu_ld
22121 lt_save_path_LD
=$lt_cv_path_LD
22122 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22123 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
22125 $as_unset lt_cv_prog_gnu_ld
22127 if test -n "${lt_cv_path_LDCXX+set}"; then
22128 lt_cv_path_LD
=$lt_cv_path_LDCXX
22130 $as_unset lt_cv_path_LD
22132 test -z "${LDCXX+set}" || LD
=$LDCXX
22136 for cc_temp
in $compiler""; do
22138 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22139 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22144 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22147 if test -n "$compiler"; then
22148 # We don't want -fno-exception when compiling C++ code, so set the
22149 # no_builtin_flag separately
22150 if test "$GXX" = yes; then
22151 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
22153 lt_prog_compiler_no_builtin_flag_CXX
=
22156 if test "$GXX" = yes; then
22157 # Set up default GNU C++ configuration
22161 # Check whether --with-gnu-ld was given.
22162 if test "${with_gnu_ld+set}" = set; then :
22163 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
22169 if test "$GCC" = yes; then
22170 # Check if gcc -print-prog-name=ld gives a path.
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22172 $as_echo_n "checking for ld used by $CC... " >&6; }
22175 # gcc leaves a trailing carriage return which upsets mingw
22176 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22178 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
22181 # Accept absolute paths.
22183 re_direlt
='/[^/][^/]*/\.\./'
22184 # Canonicalize the pathname of ld
22185 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22186 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
22187 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22189 test -z "$LD" && LD
="$ac_prog"
22192 # If it fails, then pretend we aren't using GCC.
22196 # If it is relative, then search for the first ld in PATH.
22197 with_gnu_ld
=unknown
22200 elif test "$with_gnu_ld" = yes; then
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22202 $as_echo_n "checking for GNU ld... " >&6; }
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22205 $as_echo_n "checking for non-GNU ld... " >&6; }
22207 if ${lt_cv_path_LD+:} false
; then :
22208 $as_echo_n "(cached) " >&6
22210 if test -z "$LD"; then
22211 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
22212 for ac_dir
in $PATH; do
22214 test -z "$ac_dir" && ac_dir
=.
22215 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
22216 lt_cv_path_LD
="$ac_dir/$ac_prog"
22217 # Check to see if the program is GNU ld. I'd rather use --version,
22218 # but apparently some variants of GNU ld only accept -v.
22219 # Break only if it was the GNU/non-GNU ld that we prefer.
22220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22221 *GNU
* |
*'with BFD'*)
22222 test "$with_gnu_ld" != no
&& break
22225 test "$with_gnu_ld" != yes && break
22232 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
22236 LD
="$lt_cv_path_LD"
22237 if test -n "$LD"; then
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22239 $as_echo "$LD" >&6; }
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22244 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22247 if ${lt_cv_prog_gnu_ld+:} false
; then :
22248 $as_echo_n "(cached) " >&6
22250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22251 case `$LD -v 2>&1 </dev/null` in
22252 *GNU
* |
*'with BFD'*)
22253 lt_cv_prog_gnu_ld
=yes
22256 lt_cv_prog_gnu_ld
=no
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22262 with_gnu_ld
=$lt_cv_prog_gnu_ld
22270 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22271 # archiving commands below assume that GNU ld is being used.
22272 if test "$with_gnu_ld" = yes; then
22273 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22274 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'
22276 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22277 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22279 # If archive_cmds runs LD, not CC, wlarc should be empty
22280 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22281 # investigate it a little bit more. (MM)
22284 # ancient GNU ld didn't support --whole-archive et. al.
22285 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22286 $GREP 'no-whole-archive' > /dev
/null
; then
22287 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22289 whole_archive_flag_spec_CXX
=
22295 # A generic and very simple default shared library creation
22296 # command for GNU C++ for the case where it uses the native
22297 # linker, instead of GNU ld. If possible, this setting should
22298 # overridden to take advantage of the native linker features on
22299 # the platform it is being used on.
22300 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22303 # Commands to make compiler produce verbose output that lists
22304 # what "hidden" libraries, object files and flags are used when
22305 # linking a shared library.
22306 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22314 # PORTME: fill in a description of your system's C++ link characteristics
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22316 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22320 # FIXME: insert proper C++ library support
22324 if test "$host_cpu" = ia64
; then
22325 # On IA64, the linker does run time linking by default, so we don't
22326 # have to do anything special.
22327 aix_use_runtimelinking
=no
22328 exp_sym_flag
='-Bexport'
22331 aix_use_runtimelinking
=no
22333 # Test if we are trying to use run time linking or normal
22334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22335 # need to do runtime linking.
22336 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
22337 for ld_flag
in $LDFLAGS; do
22340 aix_use_runtimelinking
=yes
22348 exp_sym_flag
='-bexport'
22349 no_entry_flag
='-bnoentry'
22352 # When large executables or shared objects are built, AIX ld can
22353 # have problems creating the table of contents. If linking a library
22354 # or program results in "error TOC overflow" add -mminimal-toc to
22355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22358 archive_cmds_CXX
=''
22359 hardcode_direct_CXX
=yes
22360 hardcode_direct_absolute_CXX
=yes
22361 hardcode_libdir_separator_CXX
=':'
22362 link_all_deplibs_CXX
=yes
22363 file_list_spec_CXX
='${wl}-f,'
22365 if test "$GXX" = yes; then
22366 case $host_os in aix4.
[012]|aix4.
[012].
*)
22367 # We only want to do this on AIX 4.2 and lower, the check
22368 # below for broken collect2 doesn't work under 4.3+
22369 collect2name
=`${CC} -print-prog-name=collect2`
22370 if test -f "$collect2name" &&
22371 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
22373 # We have reworked collect2
22376 # We have old collect2
22377 hardcode_direct_CXX
=unsupported
22378 # It fails to find uninstalled libraries when the uninstalled
22379 # path is not listed in the libpath. Setting hardcode_minus_L
22380 # to unsupported forces relinking
22381 hardcode_minus_L_CXX
=yes
22382 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22383 hardcode_libdir_separator_CXX
=
22386 shared_flag
='-shared'
22387 if test "$aix_use_runtimelinking" = yes; then
22388 shared_flag
="$shared_flag "'${wl}-G'
22392 if test "$host_cpu" = ia64
; then
22393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22394 # chokes on -Wl,-G. The following line is correct:
22397 if test "$aix_use_runtimelinking" = yes; then
22398 shared_flag
='${wl}-G'
22400 shared_flag
='${wl}-bM:SRE'
22405 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
22406 # It seems that -bexpall does not export symbols beginning with
22407 # underscore (_), so it is better to generate a list of symbols to
22409 always_export_symbols_CXX
=yes
22410 if test "$aix_use_runtimelinking" = yes; then
22411 # Warning - without using the other runtime loading flags (-brtl),
22412 # -berok will link without error, but may produce a broken library.
22413 allow_undefined_flag_CXX
='-berok'
22414 # Determine the default libpath from the value encoded in an empty
22416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22427 if ac_fn_cxx_try_link
"$LINENO"; then :
22429 lt_aix_libpath_sed
='
22430 /Import File Strings/,/^$/ {
22436 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22437 # Check for a 64-bit object if we didn't find anything.
22438 if test -z "$aix_libpath"; then
22439 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22442 rm -f core conftest.err conftest.
$ac_objext \
22443 conftest
$ac_exeext conftest.
$ac_ext
22444 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22446 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22448 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"
22450 if test "$host_cpu" = ia64
; then
22451 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
22452 allow_undefined_flag_CXX
="-z nodefs"
22453 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"
22455 # Determine the default libpath from the value encoded in an
22456 # empty executable.
22457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22468 if ac_fn_cxx_try_link
"$LINENO"; then :
22470 lt_aix_libpath_sed
='
22471 /Import File Strings/,/^$/ {
22477 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22478 # Check for a 64-bit object if we didn't find anything.
22479 if test -z "$aix_libpath"; then
22480 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22483 rm -f core conftest.err conftest.
$ac_objext \
22484 conftest
$ac_exeext conftest.
$ac_ext
22485 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22487 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22488 # Warning - without using the other run time loading flags,
22489 # -berok will link without error, but may produce a broken library.
22490 no_undefined_flag_CXX
=' ${wl}-bernotok'
22491 allow_undefined_flag_CXX
=' ${wl}-berok'
22492 if test "$with_gnu_ld" = yes; then
22493 # We only use this code for GNU lds that support --whole-archive.
22494 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22496 # Exported symbols can be pulled into shared objects from archives
22497 whole_archive_flag_spec_CXX
='$convenience'
22499 archive_cmds_need_lc_CXX
=yes
22500 # This is similar to how AIX traditionally builds its shared
22502 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'
22508 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
22509 allow_undefined_flag_CXX
=unsupported
22510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22511 # support --undefined. This deserves some investigation. FIXME
22512 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22519 case $cc_basename in
22521 # FIXME: insert proper C++ library support
22527 cygwin
* | mingw
* | pw32
* | cegcc
*)
22528 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22529 # as there is no search path for DLLs.
22530 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22531 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
22532 allow_undefined_flag_CXX
=unsupported
22533 always_export_symbols_CXX
=no
22534 enable_shared_with_static_runtimes_CXX
=yes
22536 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
22537 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'
22538 # If the export-symbols file already is a .def file (1st line
22539 # is EXPORTS), use it as is; otherwise, prepend...
22540 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22541 cp $export_symbols $output_objdir/$soname.def;
22543 echo EXPORTS > $output_objdir/$soname.def;
22544 cat $export_symbols >> $output_objdir/$soname.def;
22546 $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'
22551 darwin
* | rhapsody
*)
22555 # Publish an arg to allow the user to select that Darwin host (and target)
22556 # libraries should be given install-names like @rpath/libfoo.dylib. This
22557 # requires that the user of the library then adds an 'rpath' to the DSO that
22559 # NOTE: there are defaults below, for systems that support rpaths. The person
22560 # configuring can override the defaults for any system version that supports
22561 # them - they are, however, forced off for system versions without support.
22562 # Check whether --enable-darwin-at-rpath was given.
22563 if test "${enable_darwin_at_rpath+set}" = set; then :
22564 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22565 # This is not supported before macOS 10.5 / Darwin9.
22566 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22567 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22569 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22570 enable_darwin_at_rpath
=no
22575 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22576 # As above, before 10.5 / Darwin9 this does not work.
22577 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22578 enable_darwin_at_rpath
=no
22581 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22582 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22583 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22584 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22586 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22587 enable_darwin_at_rpath
=yes
22589 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22590 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22597 archive_cmds_need_lc_CXX
=no
22598 hardcode_direct_CXX
=no
22599 hardcode_automatic_CXX
=yes
22600 hardcode_shlibpath_var_CXX
=unsupported
22601 if test "$lt_cv_ld_force_load" = "yes"; then
22602 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\"`'
22604 whole_archive_flag_spec_CXX
=''
22606 link_all_deplibs_CXX
=yes
22607 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
22608 case $cc_basename in
22609 ifort
*) _lt_dar_can_shared
=yes ;;
22610 *) _lt_dar_can_shared
=$GCC ;;
22612 if test "$_lt_dar_can_shared" = "yes"; then
22613 output_verbose_link_cmd
=func_echo_all
22614 _lt_install_name
='\$rpath/\$soname'
22615 if test "x$enable_darwin_at_rpath" = "xyes"; then
22616 _lt_install_name
='@rpath/\$soname'
22618 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22619 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22620 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}"
22621 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}"
22622 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22623 _lt_install_name
='\$rpath/\$soname'
22624 if test "x$enable_darwin_at_rpath" = "xyes"; then
22625 _lt_install_name
='@rpath/\$soname'
22627 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}"
22628 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}"
22638 case $cc_basename in
22640 # FIXME: insert proper C++ library support
22644 # Green Hills C++ Compiler
22645 # FIXME: insert proper C++ library support
22649 # FIXME: insert proper C++ library support
22656 # C++ shared libraries reported to be fairly broken before
22662 archive_cmds_need_lc_CXX
=no
22665 freebsd
* | dragonfly
*)
22666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22675 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22676 link_all_deplibs_CXX
=yes
22680 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22681 hardcode_libdir_separator_CXX
=:
22682 export_dynamic_flag_spec_CXX
='${wl}-E'
22683 hardcode_direct_CXX
=yes
22684 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22685 # but as the default
22686 # location of the library.
22688 case $cc_basename in
22690 # FIXME: insert proper C++ library support
22694 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'
22695 # Commands to make compiler produce verbose output that lists
22696 # what "hidden" libraries, object files and flags are used when
22697 # linking a shared library.
22699 # There doesn't appear to be a way to prevent this compiler from
22700 # explicitly linking system object files so we need to strip them
22701 # from the output so that they don't get included in the library
22703 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"'
22706 if test "$GXX" = yes; then
22707 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'
22709 # FIXME: insert proper C++ library support
22717 if test $with_gnu_ld = no
; then
22718 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22719 hardcode_libdir_separator_CXX
=:
22725 export_dynamic_flag_spec_CXX
='${wl}-E'
22731 hardcode_direct_CXX
=no
22732 hardcode_shlibpath_var_CXX
=no
22735 hardcode_direct_CXX
=yes
22736 hardcode_direct_absolute_CXX
=yes
22737 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22738 # but as the default
22739 # location of the library.
22743 case $cc_basename in
22745 # FIXME: insert proper C++ library support
22751 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22754 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22757 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22760 # Commands to make compiler produce verbose output that lists
22761 # what "hidden" libraries, object files and flags are used when
22762 # linking a shared library.
22764 # There doesn't appear to be a way to prevent this compiler from
22765 # explicitly linking system object files so we need to strip them
22766 # from the output so that they don't get included in the library
22768 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"'
22771 if test "$GXX" = yes; then
22772 if test $with_gnu_ld = no
; then
22775 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22778 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22781 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'
22786 # FIXME: insert proper C++ library support
22794 hardcode_direct_CXX
=no
22795 hardcode_shlibpath_var_CXX
=no
22796 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22797 export_dynamic_flag_spec_CXX
='${wl}-E'
22798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22799 # Instead, shared libraries are loaded at an image base (0x10000000 by
22800 # default) and relocated if they conflict, which is a slow very memory
22801 # consuming and fragmenting process. To avoid this, we pick a random,
22802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22804 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'
22805 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'
22808 case $cc_basename in
22811 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'
22813 # Archives containing C++ object files must be created using
22814 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22815 # necessary to make sure instantiated templates are included
22817 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
22820 if test "$GXX" = yes; then
22821 if test "$with_gnu_ld" = no
; then
22822 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'
22824 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'
22827 link_all_deplibs_CXX
=yes
22830 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22831 hardcode_libdir_separator_CXX
=:
22832 inherit_rpath_CXX
=yes
22835 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22836 case $cc_basename in
22838 # Kuck and Associates, Inc. (KAI) C++ Compiler
22840 # KCC will only create a shared library if the output file
22841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22842 # to its proper name (with version) after linking.
22843 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'
22844 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'
22845 # Commands to make compiler produce verbose output that lists
22846 # what "hidden" libraries, object files and flags are used when
22847 # linking a shared library.
22849 # There doesn't appear to be a way to prevent this compiler from
22850 # explicitly linking system object files so we need to strip them
22851 # from the output so that they don't get included in the library
22853 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"'
22855 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22856 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22858 # Archives containing C++ object files must be created using
22859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22860 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
22865 # version 8.0 and above of icpc choke on multiply defined symbols
22866 # if we add $predep_objects and $postdep_objects, however 7.1 and
22867 # earlier do not add the objects themselves.
22868 case `$CC -V 2>&1` in
22870 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22871 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'
22873 *) # Version 8.0 or newer
22876 ia64
*) tmp_idyn
=' -i_dynamic';;
22878 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22879 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'
22882 archive_cmds_need_lc_CXX
=no
22883 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22884 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22885 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22888 # Portland Group C++ compiler
22890 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
22891 prelink_cmds_CXX
='tpldir=Template.dir~
22893 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22894 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22895 old_archive_cmds_CXX
='tpldir=Template.dir~
22897 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22898 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22900 archive_cmds_CXX
='tpldir=Template.dir~
22902 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22903 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22904 archive_expsym_cmds_CXX
='tpldir=Template.dir~
22906 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22907 $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'
22909 *) # Version 6 and above use weak symbols
22910 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22911 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'
22915 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
22916 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22917 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'
22921 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22922 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'
22924 runpath_var
=LD_RUN_PATH
22925 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22926 hardcode_libdir_separator_CXX
=:
22928 # Commands to make compiler produce verbose output that lists
22929 # what "hidden" libraries, object files and flags are used when
22930 # linking a shared library.
22932 # There doesn't appear to be a way to prevent this compiler from
22933 # explicitly linking system object files so we need to strip them
22934 # from the output so that they don't get included in the library
22936 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'
22938 xl
* | mpixl
* | bgxl
*)
22939 # IBM XL 8.0 on PPC, with GNU ld
22940 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22941 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22942 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22943 if test "x$supports_anon_versioning" = xyes
; then
22944 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
22945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22946 echo "local: *; };" >> $output_objdir/$libname.ver~
22947 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22951 case `$CC -V 2>&1 | sed 5q` in
22954 no_undefined_flag_CXX
=' -zdefs'
22955 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22956 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'
22957 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22958 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'
22959 compiler_needs_object_CXX
=yes
22961 # Not sure whether something based on
22962 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22964 output_verbose_link_cmd
='func_echo_all'
22966 # Archives containing C++ object files must be created using
22967 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22968 # necessary to make sure instantiated templates are included
22970 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
22978 # FIXME: insert proper C++ library support
22983 # FIXME: insert proper C++ library support
22988 case $cc_basename in
22990 # FIXME: insert proper C++ library support
22994 # FIXME: insert proper C++ library support
23001 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
23002 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23004 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23005 hardcode_direct_CXX
=yes
23006 hardcode_shlibpath_var_CXX
=no
23008 # Workaround some broken pre-1.5 toolchains
23009 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23017 # C++ shared libraries are fairly broken
23022 if test -f /usr
/libexec
/ld.so
; then
23023 hardcode_direct_CXX
=yes
23024 hardcode_shlibpath_var_CXX
=no
23025 hardcode_direct_absolute_CXX
=yes
23026 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23027 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
23028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23029 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23030 export_dynamic_flag_spec_CXX
='${wl}-E'
23031 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23033 output_verbose_link_cmd
=func_echo_all
23039 osf3
* | osf4
* | osf5
*)
23040 case $cc_basename in
23042 # Kuck and Associates, Inc. (KAI) C++ Compiler
23044 # KCC will only create a shared library if the output file
23045 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23046 # to its proper name (with version) after linking.
23047 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'
23049 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
23050 hardcode_libdir_separator_CXX
=:
23052 # Archives containing C++ object files must be created using
23053 # the KAI C++ compiler.
23055 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
23056 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
23060 # Rational C++ 2.4.1
23061 # FIXME: insert proper C++ library support
23067 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
23068 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'
23069 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
23072 allow_undefined_flag_CXX
=' -expect_unresolved \*'
23073 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'
23074 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23075 echo "-hidden">> $lib.exp~
23076 $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~
23078 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
23082 hardcode_libdir_separator_CXX
=:
23084 # Commands to make compiler produce verbose output that lists
23085 # what "hidden" libraries, object files and flags are used when
23086 # linking a shared library.
23088 # There doesn't appear to be a way to prevent this compiler from
23089 # explicitly linking system object files so we need to strip them
23090 # from the output so that they don't get included in the library
23092 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"'
23095 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23096 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
23099 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'
23102 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'
23106 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
23107 hardcode_libdir_separator_CXX
=:
23109 # Commands to make compiler produce verbose output that lists
23110 # what "hidden" libraries, object files and flags are used when
23111 # linking a shared library.
23112 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23115 # FIXME: insert proper C++ library support
23123 # FIXME: insert proper C++ library support
23128 case $cc_basename in
23131 # FIXME: insert proper C++ library support
23136 # FIXME: insert proper C++ library support
23140 # FIXME: insert proper C++ library support
23147 case $cc_basename in
23149 # Sun C++ 4.2, 5.x and Centerline C++
23150 archive_cmds_need_lc_CXX
=yes
23151 no_undefined_flag_CXX
=' -zdefs'
23152 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23153 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23154 $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'
23156 hardcode_libdir_flag_spec_CXX
='-R$libdir'
23157 hardcode_shlibpath_var_CXX
=no
23159 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23161 # The compiler driver will combine and reorder linker options,
23162 # but understands `-z linker_flag'.
23163 # Supported since Solaris 2.6 (maybe 2.5.1?)
23164 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
23167 link_all_deplibs_CXX
=yes
23169 output_verbose_link_cmd
='func_echo_all'
23171 # Archives containing C++ object files must be created using
23172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23173 # necessary to make sure instantiated templates are included
23175 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
23178 # Green Hills C++ Compiler
23179 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23181 # The C++ compiler must be used to create the archive.
23182 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23185 # GNU C++ compiler with Solaris linker
23186 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23187 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
23188 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
23189 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23190 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23191 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23193 # Commands to make compiler produce verbose output that lists
23194 # what "hidden" libraries, object files and flags are used when
23195 # linking a shared library.
23196 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23198 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23200 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23201 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23202 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23204 # Commands to make compiler produce verbose output that lists
23205 # what "hidden" libraries, object files and flags are used when
23206 # linking a shared library.
23207 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23210 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
23212 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23214 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23222 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
23223 no_undefined_flag_CXX
='${wl}-z,text'
23224 archive_cmds_need_lc_CXX
=no
23225 hardcode_shlibpath_var_CXX
=no
23226 runpath_var
='LD_RUN_PATH'
23228 case $cc_basename in
23230 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23231 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23234 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23235 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23240 sysv5
* | sco3.2v5
* | sco5v6
*)
23241 # Note: We can NOT use -z defs as we might desire, because we do not
23242 # link with -lc, and that would cause any symbols used from libc to
23243 # always be unresolved, which means just about no library would
23244 # ever link correctly. If we're not using GNU ld we use -z text
23245 # though, which does catch some bad symbols but isn't as heavy-handed
23247 no_undefined_flag_CXX
='${wl}-z,text'
23248 allow_undefined_flag_CXX
='${wl}-z,nodefs'
23249 archive_cmds_need_lc_CXX
=no
23250 hardcode_shlibpath_var_CXX
=no
23251 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
23252 hardcode_libdir_separator_CXX
=':'
23253 link_all_deplibs_CXX
=yes
23254 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
23255 runpath_var
='LD_RUN_PATH'
23257 case $cc_basename in
23259 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23260 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23261 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
23262 '"$old_archive_cmds_CXX"
23263 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
23264 '"$reload_cmds_CXX"
23267 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23268 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23274 case $cc_basename in
23276 # NonStop-UX NCC 3.20
23277 # FIXME: insert proper C++ library support
23281 # FIXME: insert proper C++ library support
23288 # For VxWorks ports, we assume the use of a GNU linker with
23289 # standard elf conventions.
23294 # FIXME: insert proper C++ library support
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23300 $as_echo "$ld_shlibs_CXX" >&6; }
23301 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23307 ## There is no encapsulation within the following macros, do not change
23308 ## the running order or otherwise move them around unless you know exactly
23309 ## what you are doing...
23310 # Dependencies to place before and after the object being linked:
23311 predep_objects_CXX
=
23312 postdep_objects_CXX
=
23315 compiler_lib_search_path_CXX
=
23317 cat > conftest.
$ac_ext <<_LT_EOF
23321 Foo (void) { a = 0; }
23327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23328 (eval $ac_compile) 2>&5
23330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23331 test $ac_status = 0; }; then
23332 # Parse the compiler output and extract the necessary
23333 # objects, libraries and library flags.
23335 # Sentinel used to keep track of whether or not we are before
23336 # the conftest object file.
23337 pre_test_object_deps_done
=no
23339 for p
in `eval "$output_verbose_link_cmd"`; do
23343 # Some compilers place space between "-{L,R}" and the path.
23344 # Remove the space.
23345 if test $p = "-L" ||
23346 test $p = "-R"; then
23353 if test "$pre_test_object_deps_done" = no
; then
23356 # Internal compiler library paths should come after those
23357 # provided the user. The postdeps already come after the
23358 # user supplied libs so there is no need to process them.
23359 if test -z "$compiler_lib_search_path_CXX"; then
23360 compiler_lib_search_path_CXX
="${prev}${p}"
23362 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
23365 # The "-l" case would never come before the object being
23366 # linked, so don't bother handling this case.
23369 if test -z "$postdeps_CXX"; then
23370 postdeps_CXX
="${prev}${p}"
23372 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
23378 # This assumes that the test object file only shows up
23379 # once in the compiler output.
23380 if test "$p" = "conftest.$objext"; then
23381 pre_test_object_deps_done
=yes
23385 if test "$pre_test_object_deps_done" = no
; then
23386 if test -z "$predep_objects_CXX"; then
23387 predep_objects_CXX
="$p"
23389 predep_objects_CXX
="$predep_objects_CXX $p"
23392 if test -z "$postdep_objects_CXX"; then
23393 postdep_objects_CXX
="$p"
23395 postdep_objects_CXX
="$postdep_objects_CXX $p"
23400 *) ;; # Ignore the rest.
23408 echo "libtool.m4: error: problem compiling CXX test program"
23411 $RM -f confest.
$objext
23413 # PORTME: override above test on systems where it is broken
23416 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23417 # hack all around it, let's just trust "g++" to DTRT.
23418 predep_objects_CXX
=
23419 postdep_objects_CXX
=
23424 case `$CC -V 2>&1 | sed 5q` in
23428 # The more standards-conforming stlport4 library is
23429 # incompatible with the Cstd library. Avoid specifying
23430 # it if it's in CXXFLAGS. Ignore libCrun as
23431 # -library=stlport4 depends on it.
23432 case " $CXX $CXXFLAGS " in
23433 *" -library=stlport4 "*)
23434 solaris_use_stlport4
=yes
23438 if test "$solaris_use_stlport4" != yes; then
23439 postdeps_CXX
='-library=Cstd -library=Crun'
23446 case $cc_basename in
23448 # The more standards-conforming stlport4 library is
23449 # incompatible with the Cstd library. Avoid specifying
23450 # it if it's in CXXFLAGS. Ignore libCrun as
23451 # -library=stlport4 depends on it.
23452 case " $CXX $CXXFLAGS " in
23453 *" -library=stlport4 "*)
23454 solaris_use_stlport4
=yes
23458 # Adding this requires a known-good setup of shared libraries for
23459 # Sun compiler versions before 5.6, else PIC objects from an old
23460 # archive will be linked into the output, leading to subtle bugs.
23461 if test "$solaris_use_stlport4" != yes; then
23462 postdeps_CXX
='-library=Cstd -library=Crun'
23470 case " $postdeps_CXX " in
23471 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
23473 compiler_lib_search_dirs_CXX
=
23474 if test -n "${compiler_lib_search_path_CXX}"; then
23475 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23508 lt_prog_compiler_wl_CXX
=
23509 lt_prog_compiler_pic_CXX
=
23510 lt_prog_compiler_static_CXX
=
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23513 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23515 # C++ specific cases for pic, static, wl, etc.
23516 if test "$GXX" = yes; then
23517 lt_prog_compiler_wl_CXX
='-Wl,'
23518 lt_prog_compiler_static_CXX
='-static'
23522 # All AIX code is PIC.
23523 if test "$host_cpu" = ia64
; then
23524 # AIX 5 now supports IA64 processor
23525 lt_prog_compiler_static_CXX
='-Bstatic'
23527 lt_prog_compiler_pic_CXX
='-fPIC'
23533 # see comment about AmigaOS4 .so support
23534 lt_prog_compiler_pic_CXX
='-fPIC'
23537 # FIXME: we need at least 68020 code to build shared libraries, but
23538 # adding the `-m68020' flag to GCC prevents building anything better,
23540 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
23545 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23546 # PIC is the default for these OSes.
23548 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
23549 # This hack is so that the source file can tell whether it is being
23550 # built for inclusion in a dll (and should export symbols for example).
23551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23552 # (--disable-auto-import) libraries
23553 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
23555 darwin
* | rhapsody
*)
23556 # PIC is the default on this platform
23557 # Common symbols not allowed in MH_DYLIB files
23558 lt_prog_compiler_pic_CXX
='-fno-common'
23561 # DJGPP does not support shared libraries at all
23562 lt_prog_compiler_pic_CXX
=
23565 # PIC is the default for Haiku.
23566 # The "-static" flag exists, but is broken.
23567 lt_prog_compiler_static_CXX
=
23570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23571 # Instead, we relocate shared libraries at runtime.
23574 if test -d /usr
/nec
; then
23575 lt_prog_compiler_pic_CXX
=-Kconform_pic
23579 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23580 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23581 # sets the default TLS model and affects inlining.
23586 lt_prog_compiler_pic_CXX
='-fPIC'
23591 # QNX uses GNU C++, but need to define -shared option too, otherwise
23592 # it will coredump.
23593 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23596 lt_prog_compiler_pic_CXX
='-fPIC'
23602 # All AIX code is PIC.
23603 if test "$host_cpu" = ia64
; then
23604 # AIX 5 now supports IA64 processor
23605 lt_prog_compiler_static_CXX
='-Bstatic'
23607 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
23611 case $cc_basename in
23613 # Green Hills C++ Compiler
23614 # _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"
23619 case $cc_basename in
23621 lt_prog_compiler_pic_CXX
='-KPIC'
23624 # Green Hills C++ Compiler
23625 lt_prog_compiler_pic_CXX
='-pic'
23631 freebsd
* | dragonfly
*)
23632 # FreeBSD uses GNU C++
23634 hpux9
* | hpux10
* | hpux11
*)
23635 case $cc_basename in
23637 lt_prog_compiler_wl_CXX
='-Wl,'
23638 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23639 if test "$host_cpu" != ia64
; then
23640 lt_prog_compiler_pic_CXX
='+Z'
23644 lt_prog_compiler_wl_CXX
='-Wl,'
23645 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23651 lt_prog_compiler_pic_CXX
='+Z'
23660 # This is c89, which is MS Visual C++ (no shared libs)
23661 # Anyone wants to do a port?
23663 irix5
* | irix6
* | nonstopux
*)
23664 case $cc_basename in
23666 lt_prog_compiler_wl_CXX
='-Wl,'
23667 lt_prog_compiler_static_CXX
='-non_shared'
23668 # CC pic flag -KPIC is the default.
23674 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
23675 case $cc_basename in
23678 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23679 lt_prog_compiler_pic_CXX
='-fPIC'
23682 # old Intel C++ for x86_64 which still supported -KPIC.
23683 lt_prog_compiler_wl_CXX
='-Wl,'
23684 lt_prog_compiler_pic_CXX
='-KPIC'
23685 lt_prog_compiler_static_CXX
='-static'
23688 # Intel C++, used to be incompatible with GCC.
23689 # ICC 10 doesn't accept -KPIC any more.
23690 lt_prog_compiler_wl_CXX
='-Wl,'
23691 lt_prog_compiler_pic_CXX
='-fPIC'
23692 lt_prog_compiler_static_CXX
='-static'
23695 # Portland Group C++ compiler
23696 lt_prog_compiler_wl_CXX
='-Wl,'
23697 lt_prog_compiler_pic_CXX
='-fpic'
23698 lt_prog_compiler_static_CXX
='-Bstatic'
23702 # Make sure the PIC flag is empty. It appears that all Alpha
23703 # Linux and Compaq Tru64 Unix objects are PIC.
23704 lt_prog_compiler_pic_CXX
=
23705 lt_prog_compiler_static_CXX
='-non_shared'
23707 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
23708 # IBM XL 8.0, 9.0 on PPC and BlueGene
23709 lt_prog_compiler_wl_CXX
='-Wl,'
23710 lt_prog_compiler_pic_CXX
='-qpic'
23711 lt_prog_compiler_static_CXX
='-qstaticlink'
23714 case `$CC -V 2>&1 | sed 5q` in
23717 lt_prog_compiler_pic_CXX
='-KPIC'
23718 lt_prog_compiler_static_CXX
='-Bstatic'
23719 lt_prog_compiler_wl_CXX
='-Qoption ld '
23730 case $cc_basename in
23732 lt_prog_compiler_pic_CXX
='-W c,exportall'
23741 # QNX uses GNU C++, but need to define -shared option too, otherwise
23742 # it will coredump.
23743 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23745 osf3
* | osf4
* | osf5
*)
23746 case $cc_basename in
23748 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23751 # Rational C++ 2.4.1
23752 lt_prog_compiler_pic_CXX
='-pic'
23755 # Digital/Compaq C++
23756 lt_prog_compiler_wl_CXX
='-Wl,'
23757 # Make sure the PIC flag is empty. It appears that all Alpha
23758 # Linux and Compaq Tru64 Unix objects are PIC.
23759 lt_prog_compiler_pic_CXX
=
23760 lt_prog_compiler_static_CXX
='-non_shared'
23769 case $cc_basename in
23771 # Sun C++ 4.2, 5.x and Centerline C++
23772 lt_prog_compiler_pic_CXX
='-KPIC'
23773 lt_prog_compiler_static_CXX
='-Bstatic'
23774 lt_prog_compiler_wl_CXX
='-Qoption ld '
23777 # Green Hills C++ Compiler
23778 lt_prog_compiler_pic_CXX
='-PIC'
23785 case $cc_basename in
23788 lt_prog_compiler_pic_CXX
='-pic'
23789 lt_prog_compiler_static_CXX
='-Bstatic'
23793 lt_prog_compiler_pic_CXX
='-pic'
23799 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23800 case $cc_basename in
23802 lt_prog_compiler_wl_CXX
='-Wl,'
23803 lt_prog_compiler_pic_CXX
='-KPIC'
23804 lt_prog_compiler_static_CXX
='-Bstatic'
23809 case $cc_basename in
23811 # NonStop-UX NCC 3.20
23812 lt_prog_compiler_pic_CXX
='-KPIC'
23821 lt_prog_compiler_can_build_shared_CXX
=no
23827 # For platforms which do not support PIC, -DPIC is meaningless:
23829 lt_prog_compiler_pic_CXX
=
23832 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23836 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23841 # Check to make sure the PIC flag actually works.
23843 if test -n "$lt_prog_compiler_pic_CXX"; then
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23846 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
23847 $as_echo_n "(cached) " >&6
23849 lt_cv_prog_compiler_pic_works_CXX
=no
23850 ac_outfile
=conftest.
$ac_objext
23851 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23852 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
23853 # Insert the option either (1) after the last *FLAGS variable, or
23854 # (2) before a word containing "conftest.", or (3) at the end.
23855 # Note that $ac_compile itself does not contain backslashes and begins
23856 # with a dollar sign (not a hyphen), so the echo should work correctly.
23857 # The option is referenced via a variable to avoid confusing sed.
23858 lt_compile
=`echo "$ac_compile" | $SED \
23859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23861 -e 's:$: $lt_compiler_flag:'`
23862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23863 (eval "$lt_compile" 2>conftest.err
)
23865 cat conftest.err
>&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 if (exit $ac_status) && test -s "$ac_outfile"; then
23868 # The compiler can only warn and ignore the option if not recognized
23869 # So say no if there are warnings other than the usual output.
23870 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
23871 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23872 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23873 lt_cv_prog_compiler_pic_works_CXX
=yes
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23880 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23882 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
23883 case $lt_prog_compiler_pic_CXX in
23885 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
23888 lt_prog_compiler_pic_CXX
=
23889 lt_prog_compiler_can_build_shared_CXX
=no
23897 # Check to make sure the static flag actually works.
23899 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23901 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23902 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
23903 $as_echo_n "(cached) " >&6
23905 lt_cv_prog_compiler_static_works_CXX
=no
23906 save_LDFLAGS
="$LDFLAGS"
23907 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23908 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
23909 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23910 # The linker can only warn and ignore the option if not recognized
23911 # So say no if there are warnings
23912 if test -s conftest.err
; then
23913 # Append any errors to the config.log.
23914 cat conftest.err
1>&5
23915 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
23916 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23917 if diff conftest.exp conftest.er2
>/dev
/null
; then
23918 lt_cv_prog_compiler_static_works_CXX
=yes
23921 lt_cv_prog_compiler_static_works_CXX
=yes
23925 LDFLAGS
="$save_LDFLAGS"
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23929 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23931 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
23934 lt_prog_compiler_static_CXX
=
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23942 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23943 $as_echo_n "(cached) " >&6
23945 lt_cv_prog_compiler_c_o_CXX
=no
23946 $RM -r conftest
2>/dev
/null
23950 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23952 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23953 # Insert the option either (1) after the last *FLAGS variable, or
23954 # (2) before a word containing "conftest.", or (3) at the end.
23955 # Note that $ac_compile itself does not contain backslashes and begins
23956 # with a dollar sign (not a hyphen), so the echo should work correctly.
23957 lt_compile
=`echo "$ac_compile" | $SED \
23958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23960 -e 's:$: $lt_compiler_flag:'`
23961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23962 (eval "$lt_compile" 2>out
/conftest.err
)
23964 cat out
/conftest.err
>&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23968 # The compiler can only warn and ignore the option if not recognized
23969 # So say no if there are warnings
23970 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
23971 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23972 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23973 lt_cv_prog_compiler_c_o_CXX
=yes
23978 # SGI C++ compiler will create directory out/ii_files/ for
23979 # template instantiation
23980 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23981 $RM out
/* && rmdir out
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23988 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23994 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23995 $as_echo_n "(cached) " >&6
23997 lt_cv_prog_compiler_c_o_CXX
=no
23998 $RM -r conftest
2>/dev
/null
24002 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24004 lt_compiler_flag
="-o out/conftest2.$ac_objext"
24005 # Insert the option either (1) after the last *FLAGS variable, or
24006 # (2) before a word containing "conftest.", or (3) at the end.
24007 # Note that $ac_compile itself does not contain backslashes and begins
24008 # with a dollar sign (not a hyphen), so the echo should work correctly.
24009 lt_compile
=`echo "$ac_compile" | $SED \
24010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24012 -e 's:$: $lt_compiler_flag:'`
24013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24014 (eval "$lt_compile" 2>out
/conftest.err
)
24016 cat out
/conftest.err
>&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
24020 # The compiler can only warn and ignore the option if not recognized
24021 # So say no if there are warnings
24022 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
24023 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
24024 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
24025 lt_cv_prog_compiler_c_o_CXX
=yes
24030 # SGI C++ compiler will create directory out/ii_files/ for
24031 # template instantiation
24032 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
24033 $RM out
/* && rmdir out
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24040 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24045 hard_links
="nottested"
24046 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
24047 # do not overwrite the value of need_locks provided by the user
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24049 $as_echo_n "checking if we can lock with hard links... " >&6; }
24052 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24054 ln conftest.a conftest.b
2>&5 || hard_links
=no
24055 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24057 $as_echo "$hard_links" >&6; }
24058 if test "$hard_links" = no
; then
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24072 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24075 # If we're using GNU nm, then we don't want the "-C" option.
24076 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24077 # Also, AIX nm treats weak defined symbols like other global defined
24078 # symbols, whereas GNU nm marks them as "W".
24079 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
24080 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'
24082 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'
24086 export_symbols_cmds_CXX
="$ltdll_cmds"
24088 cygwin
* | mingw
* | cegcc
*)
24089 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'
24092 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24095 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24098 $as_echo "$ld_shlibs_CXX" >&6; }
24099 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
24101 with_gnu_ld_CXX
=$with_gnu_ld
24109 # Do we need to explicitly link libc?
24111 case "x$archive_cmds_need_lc_CXX" in
24113 # Assume -lc should be added
24114 archive_cmds_need_lc_CXX
=yes
24116 if test "$enable_shared" = yes && test "$GCC" = yes; then
24117 case $archive_cmds_CXX in
24119 # FIXME: we may have to deal with multi-command sequences.
24122 # Test whether the compiler implicitly links with -lc since on some
24123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24124 # to ld, don't add -lc before -lgcc.
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24127 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
24128 $as_echo_n "(cached) " >&6
24131 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
24133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24134 (eval $ac_compile) 2>&5
24136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; } 2>conftest.err
; then
24140 libobjs
=conftest.
$ac_objext
24142 wl
=$lt_prog_compiler_wl_CXX
24143 pic_flag
=$lt_prog_compiler_pic_CXX
24149 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
24150 allow_undefined_flag_CXX
=
24151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24152 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }
24157 lt_cv_archive_cmds_need_lc_CXX
=no
24159 lt_cv_archive_cmds_need_lc_CXX
=yes
24161 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
24163 cat conftest.err
1>&5
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24169 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24170 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24241 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24243 library_names_spec
=
24244 libname_spec
='lib$name'
24248 postuninstall_cmds
=
24252 shlibpath_overrides_runpath
=unknown
24254 dynamic_linker
="$host_os ld.so"
24255 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24256 need_lib_prefix
=unknown
24257 hardcode_into_libs
=no
24259 # when you set need_version to no, make sure it does not cause -set_version
24260 # flags to be left without arguments
24261 need_version
=unknown
24266 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24267 shlibpath_var
=LIBPATH
24269 # AIX 3 has no versioning support, so we append a major version to the name.
24270 soname_spec
='${libname}${release}${shared_ext}$major'
24277 hardcode_into_libs
=yes
24278 if test "$host_cpu" = ia64
; then
24279 # AIX 5 supports IA64
24280 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24281 shlibpath_var
=LD_LIBRARY_PATH
24283 # With GCC up to 2.95.x, collect2 would create an import file
24284 # for dependence libraries. The import file would start with
24285 # the line `#! .'. This would cause the generated library to
24286 # depend on `.', always an invalid library. This was fixed in
24287 # development snapshots of GCC prior to 3.0.
24289 aix4 | aix4.
[01] | aix4.
[01].
*)
24290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24292 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
24295 can_build_shared
=no
24299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24300 # soname into executable. Probably we can add versioning support to
24301 # collect2, so additional links can be useful in future.
24302 if test "$aix_use_runtimelinking" = yes; then
24303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24304 # instead of lib<name>.a to let people know that these are not
24305 # typical AIX shared libraries.
24306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24308 # We preserve .a as extension for shared libraries through AIX4.2
24309 # and later when we are not doing run time linking.
24310 library_names_spec
='${libname}${release}.a $libname.a'
24311 soname_spec
='${libname}${release}${shared_ext}$major'
24313 shlibpath_var
=LIBPATH
24320 # Since July 2007 AmigaOS4 officially supports .so libraries.
24321 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24325 library_names_spec
='$libname.ixlibrary $libname.a'
24326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24327 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'
24333 library_names_spec
='${libname}${shared_ext}'
24334 dynamic_linker
="$host_os ld.so"
24335 shlibpath_var
=LIBRARY_PATH
24341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24342 soname_spec
='${libname}${release}${shared_ext}$major'
24343 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
24344 shlibpath_var
=LD_LIBRARY_PATH
24345 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24346 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
24347 # the default ld.so.conf also contains /usr/contrib/lib and
24348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24349 # libtool to hard-code these into programs
24352 cygwin
* | mingw
* | pw32
* | cegcc
*)
24353 version_type
=windows
24358 case $GCC,$host_os in
24359 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
24360 library_names_spec
='$libname.dll.a'
24361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24362 postinstall_cmds
='base_file=`basename \${file}`~
24363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24364 dldir=$destdir/`dirname \$dlpath`~
24365 test -d \$dldir || mkdir -p \$dldir~
24366 $install_prog $dir/$dlname \$dldir/$dlname~
24367 chmod a+x \$dldir/$dlname~
24368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24371 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24372 dlpath=$dir/\$dldll~
24374 shlibpath_overrides_runpath
=yes
24378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24379 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24383 # MinGW DLLs use traditional 'lib' prefix
24384 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24387 # pw32 DLLs use 'pw' prefix rather than 'lib'
24388 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24394 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24397 dynamic_linker
='Win32 ld.exe'
24398 # FIXME: first we should search . and the directory the executable is in
24402 darwin
* | rhapsody
*)
24403 dynamic_linker
="$host_os dyld"
24404 version_type
=darwin
24407 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24408 soname_spec
='${libname}${release}${major}$shared_ext'
24409 shlibpath_overrides_runpath
=yes
24410 shlibpath_var
=DYLD_LIBRARY_PATH
24411 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
24413 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
24420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24421 soname_spec
='${libname}${release}${shared_ext}$major'
24422 shlibpath_var
=LD_LIBRARY_PATH
24425 freebsd
* | dragonfly
*)
24426 # DragonFly does not have aout. When/if they implement a new
24427 # versioning mechanism, adjust this.
24428 if test -x /usr
/bin
/objformat
; then
24429 objformat
=`/usr/bin/objformat`
24432 freebsd
[23].
*) objformat
=aout
;;
24433 *) objformat
=elf
;;
24436 version_type
=freebsd-
$objformat
24437 case $version_type in
24439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24444 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24448 shlibpath_var
=LD_LIBRARY_PATH
24451 shlibpath_overrides_runpath
=yes
24453 freebsd3.
[01]* | freebsdelf3.
[01]*)
24454 shlibpath_overrides_runpath
=yes
24455 hardcode_into_libs
=yes
24457 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
24458 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
24459 shlibpath_overrides_runpath
=no
24460 hardcode_into_libs
=yes
24462 *) # from 4.6 on, and DragonFly
24463 shlibpath_overrides_runpath
=yes
24464 hardcode_into_libs
=yes
24473 dynamic_linker
="$host_os runtime_loader"
24474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24475 soname_spec
='${libname}${release}${shared_ext}$major'
24476 shlibpath_var
=LIBRARY_PATH
24477 shlibpath_overrides_runpath
=yes
24478 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24479 hardcode_into_libs
=yes
24482 hpux9
* | hpux10
* | hpux11
*)
24483 # Give a soname corresponding to the major version so that dld.sl refuses to
24484 # link against other versions.
24491 hardcode_into_libs
=yes
24492 dynamic_linker
="$host_os dld.so"
24493 shlibpath_var
=LD_LIBRARY_PATH
24494 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24496 soname_spec
='${libname}${release}${shared_ext}$major'
24497 if test "X$HPUX_IA64_MODE" = X32
; then
24498 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24500 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24502 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24506 hardcode_into_libs
=yes
24507 dynamic_linker
="$host_os dld.sl"
24508 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24509 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511 soname_spec
='${libname}${release}${shared_ext}$major'
24512 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24513 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24517 dynamic_linker
="$host_os dld.sl"
24518 shlibpath_var
=SHLIB_PATH
24519 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24521 soname_spec
='${libname}${release}${shared_ext}$major'
24524 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24525 postinstall_cmds
='chmod 555 $lib'
24526 # or fails outright, so override atomically:
24527 install_override_mode
=555
24534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24535 soname_spec
='${libname}${release}${shared_ext}$major'
24536 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24537 shlibpath_var
=LD_LIBRARY_PATH
24538 shlibpath_overrides_runpath
=no
24539 hardcode_into_libs
=yes
24542 irix5
* | irix6
* | nonstopux
*)
24544 nonstopux
*) version_type
=nonstopux
;;
24546 if test "$lt_cv_prog_gnu_ld" = yes; then
24554 soname_spec
='${libname}${release}${shared_ext}$major'
24555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24557 irix5
* | nonstopux
*)
24558 libsuff
= shlibsuff
=
24561 case $LD in # libtool.m4 will add one of these switches to LD
24562 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24563 libsuff
= shlibsuff
= libmagic
=32-bit;;
24564 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24565 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24566 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24567 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24568 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24572 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24573 shlibpath_overrides_runpath
=no
24574 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24575 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24576 hardcode_into_libs
=yes
24579 # No shared lib support for Linux oldld, aout, or coff.
24580 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24584 # This must be Linux ELF.
24586 # uclinux* changes (here and below) have been submitted to the libtool
24587 # project, but have not yet been accepted: they are GCC-local changes
24588 # for the time being. (See
24589 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24590 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
24594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24595 soname_spec
='${libname}${release}${shared_ext}$major'
24596 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24597 shlibpath_var
=LD_LIBRARY_PATH
24598 shlibpath_overrides_runpath
=no
24600 # Some binutils ld are patched to set DT_RUNPATH
24601 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
24602 $as_echo_n "(cached) " >&6
24604 lt_cv_shlibpath_overrides_runpath
=no
24605 save_LDFLAGS
=$LDFLAGS
24606 save_libdir
=$libdir
24607 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24608 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h. */
24620 if ac_fn_cxx_try_link
"$LINENO"; then :
24621 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
24622 lt_cv_shlibpath_overrides_runpath
=yes
24625 rm -f core conftest.err conftest.
$ac_objext \
24626 conftest
$ac_exeext conftest.
$ac_ext
24627 LDFLAGS
=$save_LDFLAGS
24628 libdir
=$save_libdir
24632 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
24634 # This implies no fast_install, which is unacceptable.
24635 # Some rework will be needed to allow for fast_install
24636 # before this can be enabled.
24637 hardcode_into_libs
=yes
24639 # Append ld.so.conf contents to the search path
24640 if test -f /etc
/ld.so.conf
; then
24641 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' ' '`
24642 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24645 # We used to test for /lib/ld.so.1 and disable shared libraries on
24646 # powerpc, because MkLinux only supported shared libraries with the
24647 # GNU dynamic linker. Since this was broken with cross compilers,
24648 # most powerpc-linux boxes support dynamic linking these days and
24649 # people can always --disable-shared, the test was removed, and we
24650 # assume the GNU/Linux dynamic linker is in use.
24651 dynamic_linker
='GNU/Linux ld.so'
24658 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
24659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24660 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24661 dynamic_linker
='NetBSD (a.out) ld.so'
24663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24664 soname_spec
='${libname}${release}${shared_ext}$major'
24665 dynamic_linker
='NetBSD ld.elf_so'
24667 shlibpath_var
=LD_LIBRARY_PATH
24668 shlibpath_overrides_runpath
=yes
24669 hardcode_into_libs
=yes
24674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24675 shlibpath_var
=LD_LIBRARY_PATH
24676 shlibpath_overrides_runpath
=yes
24683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24684 soname_spec
='${libname}${release}${shared_ext}$major'
24685 shlibpath_var
=LD_LIBRARY_PATH
24686 shlibpath_overrides_runpath
=no
24687 hardcode_into_libs
=yes
24688 dynamic_linker
='ldqnx.so'
24693 sys_lib_dlsearch_path_spec
="/usr/lib"
24695 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24697 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24698 *) need_version
=no
;;
24700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24701 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24702 shlibpath_var
=LD_LIBRARY_PATH
24703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24705 openbsd2.
[89] | openbsd2.
[89].
*)
24706 shlibpath_overrides_runpath
=no
24709 shlibpath_overrides_runpath
=yes
24713 shlibpath_overrides_runpath
=yes
24718 libname_spec
='$name'
24721 library_names_spec
='$libname${shared_ext} $libname.a'
24722 dynamic_linker
='OS/2 ld.exe'
24723 shlibpath_var
=LIBPATH
24726 osf3
* | osf4
* | osf5
*)
24730 soname_spec
='${libname}${release}${shared_ext}$major'
24731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24732 shlibpath_var
=LD_LIBRARY_PATH
24733 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24734 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24745 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24746 soname_spec
='${libname}${release}${shared_ext}$major'
24747 shlibpath_var
=LD_LIBRARY_PATH
24748 shlibpath_overrides_runpath
=yes
24749 hardcode_into_libs
=yes
24750 # ldd complains unless libraries are executable
24751 postinstall_cmds
='chmod +x $lib'
24756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24757 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24758 shlibpath_var
=LD_LIBRARY_PATH
24759 shlibpath_overrides_runpath
=yes
24760 if test "$with_gnu_ld" = yes; then
24768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24769 soname_spec
='${libname}${release}${shared_ext}$major'
24770 shlibpath_var
=LD_LIBRARY_PATH
24771 case $host_vendor in
24773 shlibpath_overrides_runpath
=no
24775 runpath_var
=LD_RUN_PATH
24783 shlibpath_overrides_runpath
=no
24784 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24790 if test -d /usr
/nec
;then
24792 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24793 soname_spec
='$libname${shared_ext}.$major'
24794 shlibpath_var
=LD_LIBRARY_PATH
24798 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24799 version_type
=freebsd-elf
24802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24803 soname_spec
='${libname}${release}${shared_ext}$major'
24804 shlibpath_var
=LD_LIBRARY_PATH
24805 shlibpath_overrides_runpath
=yes
24806 hardcode_into_libs
=yes
24807 if test "$with_gnu_ld" = yes; then
24808 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24810 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24813 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24817 sys_lib_dlsearch_path_spec
='/usr/lib'
24821 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24826 shlibpath_var
=LD_LIBRARY_PATH
24827 shlibpath_overrides_runpath
=no
24828 hardcode_into_libs
=yes
24833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24834 soname_spec
='${libname}${release}${shared_ext}$major'
24835 shlibpath_var
=LD_LIBRARY_PATH
24838 # Shared libraries for VwWorks, >= 7 only at this stage
24839 # and (fpic) still incompatible with "large" code models
24840 # in a few configurations. Only for RTP mode in any case,
24841 # and upon explicit request at configure time.
24844 case ${with_multisubdir}-${enable_shared} in
24851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24852 soname_spec
='${libname}${release}${shared_ext}$major'
24853 dynamic_linker
="$host_os module_loader"
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24862 $as_echo "$dynamic_linker" >&6; }
24863 test "$dynamic_linker" = no
&& can_build_shared
=no
24865 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24866 if test "$GCC" = yes; then
24867 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24870 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24871 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
24873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24874 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24915 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24916 hardcode_action_CXX
=
24917 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24918 test -n "$runpath_var_CXX" ||
24919 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24921 # We can hardcode non-existent directories.
24922 if test "$hardcode_direct_CXX" != no
&&
24923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24924 # have to relink, otherwise we might link with an installed library
24925 # when we should be linking with a yet-to-be-installed one
24926 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24927 test "$hardcode_minus_L_CXX" != no
; then
24928 # Linking always hardcodes the temporary library directory.
24929 hardcode_action_CXX
=relink
24931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24932 hardcode_action_CXX
=immediate
24935 # We cannot hardcode anything, or else we can only hardcode existing
24937 hardcode_action_CXX
=unsupported
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24940 $as_echo "$hardcode_action_CXX" >&6; }
24942 if test "$hardcode_action_CXX" = relink ||
24943 test "$inherit_rpath_CXX" = yes; then
24944 # Fast installation is not supported
24945 enable_fast_install
=no
24946 elif test "$shlibpath_overrides_runpath" = yes ||
24947 test "$enable_shared" = no
; then
24948 # Fast installation is not necessary
24949 enable_fast_install
=needless
24958 fi # test -n "$compiler"
24964 with_gnu_ld
=$lt_save_with_gnu_ld
24965 lt_cv_path_LDCXX
=$lt_cv_path_LD
24966 lt_cv_path_LD
=$lt_save_path_LD
24967 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
24968 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
24969 fi # test "$_lt_caught_CXX_error" != yes
24972 ac_cpp
='$CXXCPP $CPPFLAGS'
24973 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24974 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24975 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24992 # Only expand once:
24998 if test x
$enable_darwin_at_rpath = xyes
; then
24999 ENABLE_DARWIN_AT_RPATH_TRUE
=
25000 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
25002 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
25003 ENABLE_DARWIN_AT_RPATH_FALSE
=
25006 DARWIN_DO_EXTRA_RPATH
=0
25008 # Check whether --with-darwin-extra-rpath was given.
25009 if test "${with_darwin_extra_rpath+set}" = set; then :
25010 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
25011 DARWIN_ADD_RPATH
="$withval"
25012 DARWIN_DO_EXTRA_RPATH
=1
25017 cat >>confdefs.h
<<_ACEOF
25018 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25022 cat >>confdefs.h
<<_ACEOF
25023 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25027 # Identify the assembler which will work hand-in-glove with the newly
25028 # built GCC, so that we can examine its features. This is the assembler
25029 # which will be driven by the driver program.
25031 # If build != host, and we aren't building gas in-tree, we identify a
25032 # build->target assembler and hope that it will have the same features
25033 # as the host->target assembler we'll be using.
25034 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25036 if ${gcc_cv_as+:} false
; then :
25040 if test -x "$DEFAULT_ASSEMBLER"; then
25041 gcc_cv_as
="$DEFAULT_ASSEMBLER"
25042 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25043 && test -f ..
/gas
/Makefile \
25044 && test x
$build = x
$host; then
25045 gcc_cv_as
=..
/gas
/as-new
$build_exeext
25046 elif test -x as
$build_exeext; then
25047 # Build using assembler in the current directory.
25048 gcc_cv_as
=.
/as
$build_exeext
25049 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
25050 gcc_cv_as
="$AS_FOR_TARGET"
25052 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25053 set dummy
$AS_FOR_TARGET; ac_word
=$2
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25055 $as_echo_n "checking for $ac_word... " >&6; }
25056 if ${ac_cv_path_gcc_cv_as+:} false
; then :
25057 $as_echo_n "(cached) " >&6
25061 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
25064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25065 for as_dir
in $PATH
25068 test -z "$as_dir" && as_dir
=.
25069 for ac_exec_ext
in '' $ac_executable_extensions; do
25070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25071 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
25072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25082 gcc_cv_as
=$ac_cv_path_gcc_cv_as
25083 if test -n "$gcc_cv_as"; then
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25085 $as_echo "$gcc_cv_as" >&6; }
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25088 $as_echo "no" >&6; }
25095 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
25097 case "$ORIGINAL_AS_FOR_TARGET" in
25098 .
/as | .
/as
$build_exeext) ;;
25099 *) ac_config_files
="$ac_config_files as:exec-tool.in"
25104 # Check whether --enable-ld was given.
25105 if test "${enable_ld+set}" = set; then :
25106 enableval
=$enable_ld; case "${enableval}" in
25114 install_gold_as_default
=no
25115 # Check whether --enable-gold was given.
25116 if test "${enable_gold+set}" = set; then :
25117 enableval
=$enable_gold; case "${enableval}" in
25119 install_gold_as_default
=yes
25122 if test x
${default_ld} != x
; then
25123 install_gold_as_default
=yes
25129 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
25135 # Identify the linker which will work hand-in-glove with the newly
25136 # built GCC, so that we can examine its features. This is the linker
25137 # which will be driven by the driver program.
25139 # If build != host, and we aren't building gas in-tree, we identify a
25140 # build->target linker and hope that it will have the same features
25141 # as the host->target linker we'll be using.
25142 gcc_cv_gld_major_version
=
25143 gcc_cv_gld_minor_version
=
25144 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25145 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25146 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25148 if ${gcc_cv_ld+:} false
; then :
25152 if test -x "$DEFAULT_LINKER"; then
25153 gcc_cv_ld
="$DEFAULT_LINKER"
25154 elif test $install_gold_as_default = yes \
25155 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25156 && test -f ..
/gold
/Makefile \
25157 && test x
$build = x
$host; then
25158 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
25159 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25160 && test -f ..
/ld
/Makefile \
25161 && test x
$build = x
$host; then
25162 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
25163 elif test -x collect-ld
$build_exeext; then
25164 # Build using linker in the current directory.
25165 gcc_cv_ld
=.
/collect-ld
$build_exeext
25166 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
25167 gcc_cv_ld
="$LD_FOR_TARGET"
25169 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25170 set dummy
$LD_FOR_TARGET; ac_word
=$2
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25172 $as_echo_n "checking for $ac_word... " >&6; }
25173 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
25174 $as_echo_n "(cached) " >&6
25178 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
25181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25182 for as_dir
in $PATH
25185 test -z "$as_dir" && as_dir
=.
25186 for ac_exec_ext
in '' $ac_executable_extensions; do
25187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25188 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
25189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25199 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
25200 if test -n "$gcc_cv_ld"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25202 $as_echo "$gcc_cv_ld" >&6; }
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25212 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
25213 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25214 # if the PLUGIN_LD is set ld-new, just have it as ld
25215 # as that is the installed named.
25216 if test x
$PLUGIN_LD_SUFFIX = xld-new \
25217 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
25218 PLUGIN_LD_SUFFIX
=ld
25221 # Check whether --with-plugin-ld was given.
25222 if test "${with_plugin_ld+set}" = set; then :
25223 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
25224 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
25225 PLUGIN_LD_SUFFIX
="$withval"
25231 cat >>confdefs.h
<<_ACEOF
25232 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25236 # Check to see if we are using gold instead of ld
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25238 $as_echo_n "checking whether we are using gold... " >&6; }
25240 if test x
$gcc_cv_ld != x
; then
25241 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25242 |
grep "GNU gold" > /dev
/null
; then
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25247 $as_echo "$ld_is_gold" >&6; }
25249 # Check to see if we are using mold instead of ld
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25251 $as_echo_n "checking whether we are using mold... " >&6; }
25253 if test x
$gcc_cv_ld != x
; then
25254 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25255 |
grep "mold" > /dev
/null
; then
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25260 $as_echo "$ld_is_mold" >&6; }
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25264 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25265 # Check to see if default ld is not gold, but gold is
25266 # available and has support for split stack. If gcc was configured
25267 # with gold then no checking is done.
25269 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
25271 # For platforms other than powerpc64*, enable as appropriate.
25273 gold_non_default
=no
25274 ld_gold
=`which ${gcc_cv_ld}.gold`
25275 # Make sure this gold has minimal split stack support
25276 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
25277 ld_vers
=`$ld_gold --version | sed 1q`
25278 gold_vers
=`echo $ld_vers | sed -n \
25279 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25281 # check that the gold version contains the complete split stack support
25282 # on powerpc64 big and little endian
25284 case "$gold_vers" in
25285 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
25287 *) gold_non_default
=no
25293 if test $gold_non_default = yes; then
25295 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25300 $as_echo "$gold_non_default" >&6; }
25302 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
25304 case "$ORIGINAL_LD_FOR_TARGET" in
25305 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
25306 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25311 $as_echo_n "checking what linker to use... " >&6; }
25312 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
25313 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
25314 # Single tree build which includes ld. We want to prefer it
25315 # over whatever linker top-level may have detected, since
25316 # we'll use what we're building after installation anyway.
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25318 $as_echo "newly built ld" >&6; }
25320 in_tree_ld_is_elf
=no
25321 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
25322 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
25323 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
25324 in_tree_ld_is_elf
=yes
25325 elif test "$ld_is_gold" = yes; then
25326 in_tree_ld_is_elf
=yes
25328 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
25330 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25331 if test x
$gcc_cv_gld_version != x
; then
25335 case $gcc_cv_gld_version in
25337 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
25339 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25340 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25341 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
25342 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25345 $as_echo "$gcc_cv_ld" >&6; }
25347 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25348 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
25349 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
25355 # Figure out what nm we will be using.
25356 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25357 if ${gcc_cv_nm+:} false
; then :
25361 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25362 && test -f ..
/binutils
/Makefile \
25363 && test x
$build = x
$host; then
25364 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
25365 elif test -x nm
$build_exeext; then
25366 gcc_cv_nm
=.
/nm
$build_exeext
25367 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
25368 gcc_cv_nm
="$NM_FOR_TARGET"
25370 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25371 set dummy
$NM_FOR_TARGET; ac_word
=$2
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25373 $as_echo_n "checking for $ac_word... " >&6; }
25374 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
25375 $as_echo_n "(cached) " >&6
25379 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
25382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25383 for as_dir
in $PATH
25386 test -z "$as_dir" && as_dir
=.
25387 for ac_exec_ext
in '' $ac_executable_extensions; do
25388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25389 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
25390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25400 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
25401 if test -n "$gcc_cv_nm"; then
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25403 $as_echo "$gcc_cv_nm" >&6; }
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25406 $as_echo "no" >&6; }
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25414 $as_echo_n "checking what nm to use... " >&6; }
25415 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
25416 # Single tree build which includes binutils.
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25418 $as_echo "newly built nm" >&6; }
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25422 $as_echo "$gcc_cv_nm" >&6; }
25426 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
25428 case "$ORIGINAL_NM_FOR_TARGET" in
25429 .
/nm | .
/nm
$build_exeext) ;;
25430 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
25435 # Figure out what objdump we will be using.
25436 if ${gcc_cv_objdump+:} false
; then :
25440 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25441 && test -f ..
/binutils
/Makefile \
25442 && test x
$build = x
$host; then
25443 # Single tree build which includes binutils.
25444 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
25445 elif test -x objdump
$build_exeext; then
25446 gcc_cv_objdump
=.
/objdump
$build_exeext
25447 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
25448 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
25450 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25451 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25453 $as_echo_n "checking for $ac_word... " >&6; }
25454 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
25455 $as_echo_n "(cached) " >&6
25457 case $gcc_cv_objdump in
25459 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
25462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25463 for as_dir
in $PATH
25466 test -z "$as_dir" && as_dir
=.
25467 for ac_exec_ext
in '' $ac_executable_extensions; do
25468 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25469 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
25470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25480 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
25481 if test -n "$gcc_cv_objdump"; then
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25483 $as_echo "$gcc_cv_objdump" >&6; }
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25486 $as_echo "no" >&6; }
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25494 $as_echo_n "checking what objdump to use... " >&6; }
25495 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
25496 # Single tree build which includes binutils.
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25498 $as_echo "newly built objdump" >&6; }
25499 elif test x
$gcc_cv_objdump = x
; then
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25501 $as_echo "not found" >&6; }
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25504 $as_echo "$gcc_cv_objdump" >&6; }
25507 # Figure out what readelf we will be using.
25508 if ${gcc_cv_readelf+:} false
; then :
25512 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25513 && test -f ..
/binutils
/Makefile \
25514 && test x
$build = x
$host; then
25515 # Single tree build which includes binutils.
25516 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
25517 elif test -x readelf
$build_exeext; then
25518 gcc_cv_readelf
=.
/readelf
$build_exeext
25519 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
25520 gcc_cv_readelf
="$READELF_FOR_TARGET"
25522 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25523 set dummy
$READELF_FOR_TARGET; ac_word
=$2
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25525 $as_echo_n "checking for $ac_word... " >&6; }
25526 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
25527 $as_echo_n "(cached) " >&6
25529 case $gcc_cv_readelf in
25531 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
25534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25535 for as_dir
in $PATH
25538 test -z "$as_dir" && as_dir
=.
25539 for ac_exec_ext
in '' $ac_executable_extensions; do
25540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25541 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
25542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25552 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
25553 if test -n "$gcc_cv_readelf"; then
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25555 $as_echo "$gcc_cv_readelf" >&6; }
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25558 $as_echo "no" >&6; }
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25566 $as_echo_n "checking what readelf to use... " >&6; }
25567 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
25568 # Single tree build which includes binutils.
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25570 $as_echo "newly built readelf" >&6; }
25571 elif test x
$gcc_cv_readelf = x
; then
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25573 $as_echo "not found" >&6; }
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25576 $as_echo "$gcc_cv_readelf" >&6; }
25579 # Figure out what otool we will be using.
25580 if ${gcc_cv_otool+:} false
; then :
25584 if test -x otool
$build_exeext; then
25585 gcc_cv_otool
=.
/otool
$build_exeext
25586 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
25587 gcc_cv_otool
="$OTOOL_FOR_TARGET"
25589 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25590 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25592 $as_echo_n "checking for $ac_word... " >&6; }
25593 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
25594 $as_echo_n "(cached) " >&6
25596 case $gcc_cv_otool in
25598 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
25601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25602 for as_dir
in $PATH
25605 test -z "$as_dir" && as_dir
=.
25606 for ac_exec_ext
in '' $ac_executable_extensions; do
25607 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25608 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
25609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25619 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
25620 if test -n "$gcc_cv_otool"; then
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25622 $as_echo "$gcc_cv_otool" >&6; }
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625 $as_echo "no" >&6; }
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25633 $as_echo_n "checking what otool to use... " >&6; }
25634 if test x
$gcc_cv_otool = x
; then
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25636 $as_echo "not found" >&6; }
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25639 $as_echo "$gcc_cv_otool" >&6; }
25642 # Figure out the dsymutil we will use.
25643 if ${gcc_cv_dsymutil+:} false
; then :
25647 if test -x "$DEFAULT_DSYMUTIL"; then
25648 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
25649 elif test -x dsymutil
$build_exeext; then
25650 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
25651 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
25652 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
25653 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
25654 gcc_cv_dsymutil
=$DSYMUTIL
25656 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25657 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25659 $as_echo_n "checking for $ac_word... " >&6; }
25660 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
25661 $as_echo_n "(cached) " >&6
25663 case $gcc_cv_dsymutil in
25665 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
25668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25669 for as_dir
in $PATH
25672 test -z "$as_dir" && as_dir
=.
25673 for ac_exec_ext
in '' $ac_executable_extensions; do
25674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25675 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
25676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25686 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
25687 if test -n "$gcc_cv_dsymutil"; then
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25689 $as_echo "$gcc_cv_dsymutil" >&6; }
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25692 $as_echo "no" >&6; }
25699 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
25701 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25702 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
25703 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
25707 # Figure out what assembler alignment features are present.
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25709 $as_echo_n "checking assembler flags... " >&6; }
25710 if ${gcc_cv_as_flags+:} false
; then :
25711 $as_echo_n "(cached) " >&6
25714 i
[34567]86-*-linux*)
25715 gcc_cv_as_flags
=--32
25717 x86_64-
*-linux-gnux32)
25718 gcc_cv_as_flags
=--x32
25721 gcc_cv_as_flags
=--64
25723 powerpc
*-*-darwin*)
25724 gcc_cv_as_flags
="-arch ppc"
25727 gcc_cv_as_flags
=" "
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25732 $as_echo "$gcc_cv_as_flags" >&6; }
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25735 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25736 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
25737 $as_echo_n "(cached) " >&6
25739 gcc_cv_as_balign_and_p2align
=no
25740 if test x
$gcc_cv_as != x
; then
25741 $as_echo '.balign 4
25742 .p2align 2' > conftest.s
25743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25750 gcc_cv_as_balign_and_p2align
=yes
25752 echo "configure: failed program was" >&5
25755 rm -f conftest.o conftest.s
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25759 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25760 if test $gcc_cv_as_balign_and_p2align = yes; then
25762 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25768 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25769 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
25770 $as_echo_n "(cached) " >&6
25772 gcc_cv_as_max_skip_p2align
=no
25773 if test x
$gcc_cv_as != x
; then
25774 $as_echo '.p2align 4,,7' > conftest.s
25775 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; }
25782 gcc_cv_as_max_skip_p2align
=yes
25784 echo "configure: failed program was" >&5
25787 rm -f conftest.o conftest.s
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25791 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25792 if test $gcc_cv_as_max_skip_p2align = yes; then
25794 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25800 $as_echo_n "checking assembler for .literal16... " >&6; }
25801 if ${gcc_cv_as_literal16+:} false
; then :
25802 $as_echo_n "(cached) " >&6
25804 gcc_cv_as_literal16
=no
25805 if test x
$gcc_cv_as != x
; then
25806 $as_echo '.literal16' > conftest.s
25807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25809 (eval $ac_try) 2>&5
25811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25812 test $ac_status = 0; }; }
25814 gcc_cv_as_literal16
=yes
25816 echo "configure: failed program was" >&5
25819 rm -f conftest.o conftest.s
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25823 $as_echo "$gcc_cv_as_literal16" >&6; }
25824 if test $gcc_cv_as_literal16 = yes; then
25826 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25832 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25833 if ${gcc_cv_as_subsection_m1+:} false
; then :
25834 $as_echo_n "(cached) " >&6
25836 gcc_cv_as_subsection_m1
=no
25837 if test x
$gcc_cv_as != x
; then
25838 $as_echo 'conftest_label1: .word 0
25840 conftest_label2: .word 0
25841 .previous' > conftest.s
25842 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25844 (eval $ac_try) 2>&5
25846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25847 test $ac_status = 0; }; }
25849 if test x
$gcc_cv_nm != x
; then
25850 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
25851 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
25852 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
25854 else gcc_cv_as_subsection_m1
=yes
25856 rm -f conftest.nm1 conftest.nm2
25859 echo "configure: failed program was" >&5
25862 rm -f conftest.o conftest.s
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25866 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25867 if test $gcc_cv_as_subsection_m1 = yes; then
25869 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25875 $as_echo_n "checking assembler for .weak... " >&6; }
25876 if ${gcc_cv_as_weak+:} false
; then :
25877 $as_echo_n "(cached) " >&6
25880 if test x
$gcc_cv_as != x
; then
25881 $as_echo ' .weak foobar' > conftest.s
25882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25891 echo "configure: failed program was" >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25898 $as_echo "$gcc_cv_as_weak" >&6; }
25899 if test $gcc_cv_as_weak = yes; then
25901 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25907 $as_echo_n "checking assembler for .weakref... " >&6; }
25908 if ${gcc_cv_as_weakref+:} false
; then :
25909 $as_echo_n "(cached) " >&6
25911 gcc_cv_as_weakref
=no
25912 if test x
$gcc_cv_as != x
; then
25913 $as_echo ' .weakref foobar, barfnot' > conftest.s
25914 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25921 gcc_cv_as_weakref
=yes
25923 echo "configure: failed program was" >&5
25926 rm -f conftest.o conftest.s
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25930 $as_echo "$gcc_cv_as_weakref" >&6; }
25931 if test $gcc_cv_as_weakref = yes; then
25933 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25939 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25940 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
25941 $as_echo_n "(cached) " >&6
25943 gcc_cv_as_nsubspa_comdat
=no
25944 if test x
$gcc_cv_as != x
; then
25945 $as_echo ' .SPACE $TEXT$
25946 .NSUBSPA $CODE$,COMDAT' > conftest.s
25947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25954 gcc_cv_as_nsubspa_comdat
=yes
25956 echo "configure: failed program was" >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25963 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25964 if test $gcc_cv_as_nsubspa_comdat = yes; then
25966 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25971 # .hidden needs to be supported in both the assembler and the linker,
25972 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25973 # This is irritatingly difficult to feature test for; we have to check the
25974 # date string after the version number. If we've got an in-tree
25975 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25977 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25978 case "${target}" in
25980 conftest_s
=' .globl foobar,hidden'
25983 conftest_s
=' .hidden foobar
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25988 $as_echo_n "checking assembler for .hidden... " >&6; }
25989 if ${gcc_cv_as_hidden+:} false
; then :
25990 $as_echo_n "(cached) " >&6
25992 gcc_cv_as_hidden
=no
25993 if test x
$gcc_cv_as != x
; then
25994 $as_echo "$conftest_s" > conftest.s
25995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; }
26002 gcc_cv_as_hidden
=yes
26004 echo "configure: failed program was" >&5
26007 rm -f conftest.o conftest.s
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26011 $as_echo "$gcc_cv_as_hidden" >&6; }
26014 case "${target}" in
26016 # Darwin as has some visibility support, though with a different syntax.
26017 gcc_cv_as_hidden
=yes
26021 # gnu_indirect_function type is an extension proposed at
26022 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26023 # selection of function implementation
26024 # Check whether --enable-gnu-indirect-function was given.
26025 if test "${enable_gnu_indirect_function+set}" = set; then :
26026 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26028 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26029 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26032 enable_gnu_indirect_function
="$default_gnu_indirect_function"
26036 case "${target}" in
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26039 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26040 cat > conftest.s
<<EOF
26042 .type foo_resolver, @function
26045 .size foo_resolver, .-foo_resolver
26048 .type foo, %gnu_indirect_function
26049 .set foo, foo_resolver
26052 .type bar, @function
26058 if test x
$gcc_cv_as != x \
26059 && test x
$gcc_cv_ld != x \
26060 && test x
$gcc_cv_readelf != x \
26061 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26062 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26063 && $gcc_cv_readelf --relocs --wide conftest \
26064 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
26065 enable_gnu_indirect_function
=yes
26067 rm -f conftest conftest.o conftest.s
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26069 $as_echo "$enable_gnu_indirect_function" >&6; }
26073 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26075 cat >>confdefs.h
<<_ACEOF
26076 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26081 if test $in_tree_ld != yes ; then
26082 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26083 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26084 if test x
"$ld_is_gold" = xyes
; then
26085 # GNU gold --version looks like this:
26087 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26089 # We extract the binutils version which is more familiar and specific
26090 # than the gold version.
26091 ld_vers
=`echo $ld_ver | sed -n \
26092 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26094 # GNU ld --version looks like this:
26096 # GNU ld (GNU Binutils) 2.21.51.20110225
26097 ld_vers
=`echo $ld_ver | sed -n \
26098 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26100 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'`
26101 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26102 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26103 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26105 case "${target}" in
26107 # Solaris 2 ld -V output looks like this for a regular version:
26109 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26111 # but test versions add stuff at the end:
26113 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26115 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26116 # numbers can be used in ld.so.1 feature checks even if a different
26117 # linker is configured.
26118 ld_ver
=`$gcc_cv_ld -V 2>&1`
26119 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
26120 ld_vers
=`echo $ld_ver | sed -n \
26121 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26122 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26123 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26131 $as_echo_n "checking linker for .hidden support... " >&6; }
26132 if ${gcc_cv_ld_hidden+:} false
; then :
26133 $as_echo_n "(cached) " >&6
26135 if test $in_tree_ld = yes ; then
26136 gcc_cv_ld_hidden
=no
26137 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 \
26138 && test $in_tree_ld_is_elf = yes; then
26139 gcc_cv_ld_hidden
=yes
26142 gcc_cv_ld_hidden
=yes
26143 if test x
"$ld_is_gold" = xyes
; then
26145 elif test x
"$ld_is_mold" = xyes
; then
26147 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26148 if test 0"$ld_date" -lt 20020404; then
26149 if test -n "$ld_date"; then
26150 # If there was date string, but was earlier than 2002-04-04, fail
26151 gcc_cv_ld_hidden
=no
26152 elif test -z "$ld_vers"; then
26153 # If there was no date string nor ld version number, something is wrong
26154 gcc_cv_ld_hidden
=no
26156 test -z "$ld_vers_patch" && ld_vers_patch
=0
26157 if test "$ld_vers_major" -lt 2; then
26158 gcc_cv_ld_hidden
=no
26159 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26160 gcc_cv_ld_hidden
="no"
26161 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26162 gcc_cv_ld_hidden
=no
26167 case "${target}" in
26169 gcc_cv_ld_hidden
=yes
26172 # Darwin ld has some visibility support.
26173 gcc_cv_ld_hidden
=yes
26175 hppa64
*-*-hpux* | ia64
*-*-hpux*)
26176 gcc_cv_ld_hidden
=yes
26179 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26180 # .symbolic was only added in Solaris 9 12/02.
26181 gcc_cv_ld_hidden
=yes
26184 gcc_cv_ld_hidden
=no
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26191 $as_echo "$gcc_cv_ld_hidden" >&6; }
26192 libgcc_visibility
=no
26195 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26196 libgcc_visibility
=yes
26198 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26203 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26204 gcc_cv_ld_ro_rw_mix
=unknown
26205 if test $in_tree_ld = yes ; then
26206 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 \
26207 && test $in_tree_ld_is_elf = yes; then
26208 gcc_cv_ld_ro_rw_mix
=read-write
26210 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26211 echo '.section myfoosect, "a"' > conftest1.s
26212 echo '.section myfoosect, "aw"' > conftest2.s
26213 echo '.byte 1' >> conftest2.s
26214 echo '.section myfoosect, "a"' > conftest3.s
26215 echo '.byte 0' >> conftest3.s
26216 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26217 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26218 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
26219 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26220 conftest2.o conftest3.o
> /dev
/null
2>&1 \
26221 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
26222 conftest2.o conftest3.o
> /dev
/null
2>&1; then
26223 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
26224 | sed -e '/myfoosect/!d' -e N`
26225 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
26226 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
26227 gcc_cv_ld_ro_rw_mix
=read-only
26229 gcc_cv_ld_ro_rw_mix
=read-write
26234 rm -f conftest.
* conftest
[123].
*
26236 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
26238 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26242 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26244 # Check whether --enable-initfini-array was given.
26245 if test "${enable_initfini_array+set}" = set; then :
26246 enableval
=$enable_initfini_array;
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26250 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26251 if ${gcc_cv_initfini_array+:} false
; then :
26252 $as_echo_n "(cached) " >&6
26254 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26255 case "${target}" in
26257 if test "$cross_compiling" = yes; then :
26258 gcc_cv_initfini_array
=no
26260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h. */
26264 #error Not an ELF OS
26266 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26267 if it can be used. */
26269 int main (void) { return x; }
26270 int foo (void) { x = 0; }
26271 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26274 if ac_fn_cxx_try_run
"$LINENO"; then :
26275 gcc_cv_initfini_array
=yes
26277 gcc_cv_initfini_array
=no
26279 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26280 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26284 gcc_cv_initfini_array
=no
26285 if test $in_tree_ld = yes ; then
26286 if test "$gcc_cv_gld_major_version" -eq 2 \
26287 -a "$gcc_cv_gld_minor_version" -ge 22 \
26288 -o "$gcc_cv_gld_major_version" -gt 2 \
26289 && test $in_tree_ld_is_elf = yes; then
26290 gcc_cv_initfini_array
=yes
26292 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26293 case $target:$gas in
26296 sh_type
='%progbits'
26298 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
26300 sh_type
='@progbits'
26302 sparc
*-*-solaris2*:no
)
26304 sh_type
='#progbits'
26308 case "$target:$gnu_ld" in
26310 cat > conftest.s
<<EOF
26311 .section .dtors,$sh_flags,$sh_type
26313 .byte 'A', 'A', 'A', 'A'
26314 .section .ctors,$sh_flags,$sh_type
26316 .byte 'B', 'B', 'B', 'B'
26317 .section .fini_array.65530,$sh_flags,$sh_type
26319 .byte 'C', 'C', 'C', 'C'
26320 .section .init_array.65530,$sh_flags,$sh_type
26322 .byte 'D', 'D', 'D', 'D'
26323 .section .dtors.64528,$sh_flags,$sh_type
26325 .byte 'E', 'E', 'E', 'E'
26326 .section .ctors.64528,$sh_flags,$sh_type
26328 .byte 'F', 'F', 'F', 'F'
26329 .section .fini_array.01005,$sh_flags,$sh_type
26331 .byte 'G', 'G', 'G', 'G'
26332 .section .init_array.01005,$sh_flags,$sh_type
26334 .byte 'H', 'H', 'H', 'H'
26339 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26340 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26341 && $gcc_cv_objdump -s -j .init_array conftest \
26342 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
26343 && $gcc_cv_objdump -s -j .fini_array conftest \
26344 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
26345 gcc_cv_initfini_array
=yes
26349 # When Solaris ld added constructor priority support, it was
26350 # decided to only handle .init_array.N/.fini_array.N since
26351 # there was no need for backwards compatibility with
26352 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26353 # sections with correct execution order resp. to
26354 # .init_array/.fini_array, while gld merges them into
26355 # .init_array/.fini_array.
26356 cat > conftest.s
<<EOF
26357 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26359 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26360 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26362 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26363 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26365 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26366 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26368 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26373 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26374 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26375 && $gcc_cv_objdump -s -j .init_array conftest \
26376 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
26377 && $gcc_cv_objdump -s -j .fini_array conftest \
26378 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
26379 gcc_cv_initfini_array
=yes
26383 rm -f conftest conftest.
*
26385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26386 /* end confdefs.h. */
26389 # error Not an ELF OS
26391 #include <stdlib.h>
26392 #if defined __GLIBC_PREREQ
26393 # if __GLIBC_PREREQ (2, 4)
26395 # error GLIBC 2.4 required
26398 # if defined __sun__ && defined __svr4__
26399 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26401 # error The C library not known to support .init_array/.fini_array
26406 if ac_fn_cxx_try_cpp
"$LINENO"; then :
26409 gcc_cv_initfini_array
=no
26411 rm -f conftest.err conftest.i conftest.
$ac_ext;;
26414 case "${target}" in
26415 aarch64
*-linux-gnu*)
26416 # AArch64 postdates glibc support for .init_array/.fini_array,
26417 # so we don't need the preprocessor test above.
26418 gcc_cv_initfini_array
=yes
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26423 $as_echo_n "checking cross compile... guessing... " >&6; }
26424 gcc_cv_initfini_array
=no
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26430 $as_echo "$gcc_cv_initfini_array" >&6; }
26431 enable_initfini_array
=$gcc_cv_initfini_array
26436 cat >>confdefs.h
<<_ACEOF
26437 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26442 # Some assemblers (GNU as for LoongArch) generates relocations for
26443 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26444 # probing leb128 support then.
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26448 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26449 if ${gcc_cv_as_mno_relax+:} false
; then :
26450 $as_echo_n "(cached) " >&6
26452 gcc_cv_as_mno_relax
=no
26453 if test x
$gcc_cv_as != x
; then
26454 $as_echo '.text' > conftest.s
26455 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26457 (eval $ac_try) 2>&5
26459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26460 test $ac_status = 0; }; }
26462 gcc_cv_as_mno_relax
=yes
26464 echo "configure: failed program was" >&5
26467 rm -f conftest.o conftest.s
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26471 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26472 if test $gcc_cv_as_mno_relax = yes; then
26473 check_leb128_asflags
=-mno-relax
26478 check_leb128_asflags
=
26482 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26483 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26484 # these directives, even when they appear to accept them.
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26486 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26487 if ${gcc_cv_as_leb128+:} false
; then :
26488 $as_echo_n "(cached) " >&6
26490 gcc_cv_as_leb128
=no
26491 if test x
$gcc_cv_as != x
; then
26498 .uleb128 0x8000000000000000
26500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26502 (eval $ac_try) 2>&5
26504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26505 test $ac_status = 0; }; }
26508 if test "x$gcc_cv_objdump" != x
; then
26509 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
26510 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
26511 gcc_cv_as_leb128
=yes
26513 elif test "x$gcc_cv_otool" != x
; then
26514 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
26515 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
26516 gcc_cv_as_leb128
=yes
26519 # play safe, assume the assembler is broken.
26524 echo "configure: failed program was" >&5
26527 rm -f conftest.o conftest.s
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26531 $as_echo "$gcc_cv_as_leb128" >&6; }
26532 if test $gcc_cv_as_leb128 = yes; then
26534 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26537 if test $gcc_cv_as_leb128 != yes; then
26539 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26543 # Determine if an .eh_frame section is read-only.
26544 gcc_fn_eh_frame_ro
() {
26545 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
26546 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
26547 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
26550 # Check if we have assembler support for unwind directives.
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26552 $as_echo_n "checking assembler for cfi directives... " >&6; }
26553 if ${gcc_cv_as_cfi_directive+:} false
; then :
26554 $as_echo_n "(cached) " >&6
26556 gcc_cv_as_cfi_directive
=no
26557 if test x
$gcc_cv_as != x
; then
26563 .cfi_escape 1, 2, 3, 4, 5
26564 .cfi_endproc' > conftest.s
26565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26574 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26575 # read-only and read-write sections, we need to make sure that the
26576 # assembler used emits read-write .eh_frame sections.
26577 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
26578 gcc_cv_as_cfi_directive
=yes
26579 elif test "x$gcc_cv_objdump" = x
; then
26580 # No objdump, err on the side of caution.
26581 gcc_cv_as_cfi_directive
=no
26583 if test x
$gas = xyes
; then
26591 sparc
*-*-solaris2.
*)
26592 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26593 if gcc_fn_eh_frame_ro
$as_32_opt \
26594 || gcc_fn_eh_frame_ro
$as_64_opt; then
26595 gcc_cv_as_cfi_directive
=no
26597 gcc_cv_as_cfi_directive
=yes
26600 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
26601 # On Solaris/x86, make sure that GCC and assembler agree on using
26602 # read-only .eh_frame sections for 64-bit.
26603 if gcc_fn_eh_frame_ro
$as_32_opt; then
26604 gcc_cv_as_cfi_directive
=no
26605 elif gcc_fn_eh_frame_ro
$as_64_opt; then
26606 gcc_cv_as_cfi_directive
=yes
26608 gcc_cv_as_cfi_directive
=no
26615 gcc_cv_as_cfi_directive
=yes
26619 echo "configure: failed program was" >&5
26622 rm -f conftest.o conftest.s
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26626 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26629 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26631 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26632 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
26633 $as_echo_n "(cached) " >&6
26635 gcc_cv_as_cfi_advance_working
=no
26636 if test x
$gcc_cv_as != x
; then
26639 .cfi_adjust_cfa_offset 64
26641 .cfi_adjust_cfa_offset 128
26642 .cfi_endproc' > conftest.s
26643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }
26651 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
26652 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
26653 gcc_cv_as_cfi_advance_working
=yes
26657 echo "configure: failed program was" >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26664 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26668 # no objdump, err on the side of caution
26669 gcc_cv_as_cfi_advance_working
=no
26673 cat >>confdefs.h
<<_ACEOF
26674 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26675 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26681 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26682 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
26683 $as_echo_n "(cached) " >&6
26685 gcc_cv_as_cfi_personality_directive
=no
26686 if test x
$gcc_cv_as != x
; then
26689 .cfi_personality 0, symbol
26690 .cfi_endproc' > conftest.s
26691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26693 (eval $ac_try) 2>&5
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; }
26698 gcc_cv_as_cfi_personality_directive
=yes
26700 echo "configure: failed program was" >&5
26703 rm -f conftest.o conftest.s
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26707 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26711 cat >>confdefs.h
<<_ACEOF
26712 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26717 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26718 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
26719 $as_echo_n "(cached) " >&6
26721 gcc_cv_as_cfi_sections_directive
=no
26722 if test x
$gcc_cv_as != x
; then
26724 .cfi_sections .debug_frame, .eh_frame
26726 .cfi_endproc' > conftest.s
26727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26735 win32 | pe | cygwin
* | mingw32
*)
26736 # Need to check that we generated the correct relocation for the
26737 # .debug_frame section. This was fixed for binutils 2.21.
26738 gcc_cv_as_cfi_sections_directive
=no
26739 if test "x$gcc_cv_objdump" != x
; then
26740 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
26741 grep -i secrel
> /dev
/null
; then
26742 gcc_cv_as_cfi_sections_directive
=yes
26747 gcc_cv_as_cfi_sections_directive
=yes
26751 echo "configure: failed program was" >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26758 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26763 cat >>confdefs.h
<<_ACEOF
26764 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26768 # GAS versions up to and including 2.11.0 may mis-optimize
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26771 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26772 if ${gcc_cv_as_eh_frame+:} false
; then :
26773 $as_echo_n "(cached) " >&6
26775 gcc_cv_as_eh_frame
=no
26776 if test x
$gcc_cv_as != x
; then
26783 .section .eh_frame,"aw",@progbits
26785 .4byte .LECIE1-.LSCIE1
26799 .4byte .LEFDE1-.LASFDE1
26801 .4byte .LASFDE1-__FRAME_BEGIN__
26808 .LEFDE1:' > conftest.s
26809 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26816 cat > conftest.lit
<<EOF
26817 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26818 0010 01000000 12000000 18000000 00000000 ................
26819 0020 08000000 04080000 0044 .........D
26821 cat > conftest.big
<<EOF
26822 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26823 0010 00000001 00000012 00000018 00000000 ................
26824 0020 00000008 04000000 0844 .........D
26826 # If the assembler didn't choke, and we can objdump,
26827 # and we got the correct data, then succeed.
26828 # The text in the here-document typically retains its unix-style line
26829 # endings, while the output of objdump will use host line endings.
26830 # Therefore, use diff -b for the comparisons.
26831 if test x
$gcc_cv_objdump != x \
26832 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
26833 |
tail -3 > conftest.got \
26834 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
26835 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
26837 gcc_cv_as_eh_frame
=yes
26838 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }; then
26844 gcc_cv_as_eh_frame
=buggy
26846 # Uh oh, what do we do now?
26847 gcc_cv_as_eh_frame
=no
26850 echo "configure: failed program was" >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26857 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26861 if test $gcc_cv_as_eh_frame = buggy
; then
26863 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26867 # Test if the assembler supports the section flag 'e' or #exclude for
26868 # specifying an excluded section.
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26870 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26871 if ${gcc_cv_as_section_exclude_e+:} false
; then :
26872 $as_echo_n "(cached) " >&6
26874 gcc_cv_as_section_exclude_e
=no
26875 if test x
$gcc_cv_as != x
; then
26876 $as_echo '.section foo1,"e"
26877 .byte 0,0,0,0' > conftest.s
26878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; }
26885 gcc_cv_as_section_exclude_e
=yes
26887 echo "configure: failed program was" >&5
26890 rm -f conftest.o conftest.s
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26894 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26897 if test $gcc_cv_as_section_exclude_e = no
; then
26898 case "${target}" in
26899 # Solaris as uses #exclude instead.
26901 case "${target}" in
26902 sparc
*-*-solaris2*)
26903 conftest_s
='.section "foo1", #exclude'
26905 i?
86-*-solaris2* | x86_64-
*-solaris2*)
26906 conftest_s
='.section foo1, #exclude'
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26912 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26913 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
26914 $as_echo_n "(cached) " >&6
26916 gcc_cv_as_section_exclude_hash
=no
26917 if test x
$gcc_cv_as != x
; then
26918 $as_echo "$conftest_s
26919 .byte 0,0,0,0" > conftest.s
26920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26927 gcc_cv_as_section_exclude_hash
=yes
26929 echo "configure: failed program was" >&5
26932 rm -f conftest.o conftest.s
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26936 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26941 cat >>confdefs.h
<<_ACEOF
26942 #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`
26946 # Test if the assembler supports the section flag 'R' for specifying
26947 # section with SHF_GNU_RETAIN.
26948 case "${target}" in
26949 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26950 # assembler supports the section flag 'R', it doesn't mean that
26951 # Solairs ld supports it.
26953 gcc_cv_as_shf_gnu_retain
=no
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26957 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26958 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
26959 $as_echo_n "(cached) " >&6
26961 gcc_cv_as_shf_gnu_retain
=no
26962 if test x
$gcc_cv_as != x
; then
26963 $as_echo '.section .foo,"awR",%progbits
26964 .byte 0' > conftest.s
26965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; }
26972 gcc_cv_as_shf_gnu_retain
=yes
26974 echo "configure: failed program was" >&5
26977 rm -f conftest.o conftest.s
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26981 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26987 cat >>confdefs.h
<<_ACEOF
26988 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26992 # Test if the assembler supports the section flag 'o' for specifying
26993 # section with link-order.
26994 case "${target}" in
26995 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26996 # assembler supports the section flag 'o', it doesn't mean that
26997 # Solairs ld supports it.
26999 gcc_cv_as_section_link_order
=no
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27003 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27004 if ${gcc_cv_as_section_link_order+:} false
; then :
27005 $as_echo_n "(cached) " >&6
27007 gcc_cv_as_section_link_order
=no
27008 if test x
$gcc_cv_as != x
; then
27009 $as_echo '.section .foo,"a"
27011 .section __patchable_function_entries,"awo",%progbits,.foo
27012 .byte 0' > conftest.s
27013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27015 (eval $ac_try) 2>&5
27017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27018 test $ac_status = 0; }; }
27020 gcc_cv_as_section_link_order
=yes
27022 echo "configure: failed program was" >&5
27025 rm -f conftest.o conftest.s
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27029 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27035 cat >>confdefs.h
<<_ACEOF
27036 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27041 $as_echo_n "checking assembler for section merging support... " >&6; }
27042 if ${gcc_cv_as_shf_merge+:} false
; then :
27043 $as_echo_n "(cached) " >&6
27045 gcc_cv_as_shf_merge
=no
27046 if test x
$gcc_cv_as != x
; then
27047 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050 (eval $ac_try) 2>&5
27052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053 test $ac_status = 0; }; }
27055 gcc_cv_as_shf_merge
=yes
27057 echo "configure: failed program was" >&5
27060 rm -f conftest.o conftest.s
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27064 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27067 if test $gcc_cv_as_shf_merge = no
; then
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27069 $as_echo_n "checking assembler for section merging support... " >&6; }
27070 if ${gcc_cv_as_shf_merge+:} false
; then :
27071 $as_echo_n "(cached) " >&6
27073 gcc_cv_as_shf_merge
=no
27074 if test x
$gcc_cv_as != x
; then
27075 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078 (eval $ac_try) 2>&5
27080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; }
27083 gcc_cv_as_shf_merge
=yes
27085 echo "configure: failed program was" >&5
27088 rm -f conftest.o conftest.s
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27092 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27097 cat >>confdefs.h
<<_ACEOF
27098 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27102 gcc_cv_ld_aligned_shf_merge
=yes
27104 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27106 sparc
*-*-solaris2.11
*)
27107 if test x
"$gnu_ld" = xno \
27108 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27109 gcc_cv_ld_aligned_shf_merge
=no
27114 cat >>confdefs.h
<<_ACEOF
27115 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27120 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27121 if ${gcc_cv_as_comdat_group+:} false
; then :
27122 $as_echo_n "(cached) " >&6
27124 gcc_cv_as_comdat_group
=no
27125 if test x
$gcc_cv_as != x
; then
27126 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27129 (eval $ac_try) 2>&5
27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27132 test $ac_status = 0; }; }
27134 gcc_cv_as_comdat_group
=yes
27136 echo "configure: failed program was" >&5
27139 rm -f conftest.o conftest.s
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27143 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27146 if test $gcc_cv_as_comdat_group = yes; then
27147 gcc_cv_as_comdat_group_percent
=no
27148 gcc_cv_as_comdat_group_group
=no
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27151 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27152 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
27153 $as_echo_n "(cached) " >&6
27155 gcc_cv_as_comdat_group_percent
=no
27156 if test x
$gcc_cv_as != x
; then
27157 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27165 gcc_cv_as_comdat_group_percent
=yes
27167 echo "configure: failed program was" >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27174 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27177 if test $gcc_cv_as_comdat_group_percent = yes; then
27178 gcc_cv_as_comdat_group_group
=no
27180 case "${target}" in
27181 # Sun as uses a completely different syntax.
27183 case "${target}" in
27184 sparc
*-*-solaris2*)
27186 .group foo,".text%foo",#comdat
27187 .section ".text%foo", #alloc,#execinstr,#progbits
27192 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27194 .group foo,.text%foo,#comdat
27195 .section .text%foo, "ax", @progbits
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27202 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27203 if ${gcc_cv_as_comdat_group_group+:} false
; then :
27204 $as_echo_n "(cached) " >&6
27206 gcc_cv_as_comdat_group_group
=no
27207 if test x
$gcc_cv_as != x
; then
27208 $as_echo "$conftest_s" > conftest.s
27209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27216 gcc_cv_as_comdat_group_group
=yes
27218 echo "configure: failed program was" >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27225 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27230 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27231 gcc_cv_as_comdat_group_group
=no
27235 if test x
"$ld_is_gold" = xyes
; then
27237 elif test x
"$ld_is_mold" = xyes
; then
27239 elif test $in_tree_ld = yes ; then
27241 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 \
27242 && test $in_tree_ld_is_elf = yes; then
27245 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27247 if test 0"$ld_date" -lt 20050308; then
27248 if test -n "$ld_date"; then
27249 # If there was date string, but was earlier than 2005-03-08, fail
27251 elif test "$ld_vers_major" -lt 2; then
27253 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27258 case "${target}" in
27259 *-*-solaris2.1
[1-9]*)
27261 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27262 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27265 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27266 # least ld version 1.2267.
27267 if test "$ld_vers_major" -gt 1; then
27269 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
27271 elif test "$ld_vers_minor" -ge 2267; then
27276 # Assume linkers other than GNU ld don't support COMDAT group.
27281 # Allow overriding the automatic COMDAT group tests above.
27282 # Check whether --enable-comdat was given.
27283 if test "${enable_comdat+set}" = set; then :
27284 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
27287 if test $comdat_group = no
; then
27288 gcc_cv_as_comdat_group
=no
27289 gcc_cv_as_comdat_group_percent
=no
27290 gcc_cv_as_comdat_group_group
=no
27293 cat >>confdefs.h
<<_ACEOF
27294 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27295 || test $gcc_cv_as_comdat_group_percent = yes \
27296 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27300 # Restrict this test to Solaris/x86: other targets define this statically.
27301 case "${target}" in
27302 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27304 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27305 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27306 hidden_linkonce
=yes
27308 case "${target}" in
27309 # Full support for hidden thunks in linkonce sections only appeared in
27310 # Solaris 11/OpenSolaris.
27311 *-*-solaris2.1
[1-9]*)
27312 hidden_linkonce
=yes
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27320 $as_echo "$hidden_linkonce" >&6; }
27322 cat >>confdefs.h
<<_ACEOF
27323 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27330 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27331 if ${gcc_cv_as_is_stmt+:} false
; then :
27332 $as_echo_n "(cached) " >&6
27334 gcc_cv_as_is_stmt
=no
27335 if test x
$gcc_cv_as != x
; then
27338 .loc 1 1 0 is_stmt 1' > conftest.s
27339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27341 (eval $ac_try) 2>&5
27343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27344 test $ac_status = 0; }; }
27346 gcc_cv_as_is_stmt
=yes
27348 echo "configure: failed program was" >&5
27351 rm -f conftest.o conftest.s
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27355 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27356 if test $gcc_cv_as_is_stmt = yes; then
27358 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27364 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27365 if ${gcc_cv_as_discriminator+:} false
; then :
27366 $as_echo_n "(cached) " >&6
27368 gcc_cv_as_discriminator
=no
27369 if test x
$gcc_cv_as != x
; then
27372 .loc 1 1 0 discriminator 1' > conftest.s
27373 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; }
27380 gcc_cv_as_discriminator
=yes
27382 echo "configure: failed program was" >&5
27385 rm -f conftest.o conftest.s
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27389 $as_echo "$gcc_cv_as_discriminator" >&6; }
27390 if test $gcc_cv_as_discriminator = yes; then
27392 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27397 # Catch the newlib flag of the same name so we can gate GCC features on it.
27398 # Check whether --enable-newlib-nano-formatted-io was given.
27399 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27400 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
27404 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27410 # Thread-local storage - the check is heavily parameterized.
27416 .section ".tdata","awT",@progbits
27419 ldq $27,__tls_get_addr($29) !literal!1
27420 lda $16,foo($29) !tlsgd!1
27421 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27422 ldq $27,__tls_get_addr($29) !literal!2
27423 lda $16,foo($29) !tlsldm!2
27424 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27425 ldq $1,foo($29) !gotdtprel
27426 ldah $2,foo($29) !dtprelhi
27427 lda $3,foo($2) !dtprello
27428 lda $4,foo($29) !dtprel
27429 ldq $1,foo($29) !gottprel
27430 ldah $2,foo($29) !tprelhi
27431 lda $3,foo($2) !tprello
27432 lda $4,foo($29) !tprel'
27433 tls_as_opt
=--fatal-warnings
27437 add_s r0,r0, @foo@tpoff'
27439 cris-
*-*|crisv32-
*-*)
27441 .section ".tdata","awT",@progbits
27446 tls_as_opt
=--fatal-warnings
27450 .section ".tdata","awT",@progbits
27453 call #gettlsoff(x)'
27460 .section ".tdata","awT",@progbits
27464 addil LT%foo-$tls_gdidx$,gp
27465 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27468 addil LT%foo-$tls_ldidx$,gp
27470 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27471 addil LR%foo-$tls_dtpoff$,%ret0
27472 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27474 addil LT%foo-$tls_ieoff$,gp
27475 ldw RT%foo-$tls_ieoff$(%r1),%t2
27478 addil LR%foo-$tls_leoff$,%t1
27479 ldo RR%foo-$tls_leoff$(%r1),%t2'
27480 tls_as_opt
=--fatal-warnings
27484 .section ".tdata","awT",%progbits
27487 .word foo(gottpoff)
27493 i
[34567]86-*-* | x86_64-
*-*)
27495 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
27502 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27504 .section .tdata,"awt",@progbits'
27507 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27511 .section ".tdata","awT",@progbits'
27513 tls_as_opt
="--fatal-warnings"
27517 if test x
$on_solaris = xyes
; then
27519 yes) tls_as_opt
="$tls_as_opt --32" ;;
27522 conftest_s
="$conftest_s
27526 leal foo@tlsgd(,%ebx,1), %eax
27527 leal foo@tlsldm(%ebx), %eax
27528 leal foo@dtpoff(%eax), %edx
27529 movl foo@gottpoff(%ebx), %eax
27530 subl foo@gottpoff(%ebx), %eax
27531 addl foo@gotntpoff(%ebx), %eax
27532 movl foo@indntpoff, %eax
27533 movl \$foo@tpoff, %eax
27534 subl \$foo@tpoff, %eax
27535 leal foo@ntpoff(%ecx), %eax"
27538 if test x
$on_solaris = xyes
; then
27540 yes) tls_as_opt
="$tls_as_opt --64" ;;
27541 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
27544 conftest_s
="$conftest_s
27548 leaq foo@tlsgd(%rip), %rdi
27549 leaq foo@tlsld(%rip), %rdi
27550 leaq foo@dtpoff(%rax), %rdx
27551 movq foo@gottpoff(%rip), %rax
27552 movq \$foo@tpoff, %rax"
27558 .section ".tdata","awT",@progbits
27561 addl r16 = @ltoff(@dtpmod(foo#)), gp
27562 addl r17 = @ltoff(@dtprel(foo#)), gp
27563 addl r18 = @ltoff(@tprel(foo#)), gp
27564 addl r19 = @dtprel(foo#), gp
27565 adds r21 = @dtprel(foo#), r13
27566 movl r23 = @dtprel(foo#)
27567 addl r20 = @tprel(foo#), gp
27568 adds r22 = @tprel(foo#), r13
27569 movl r24 = @tprel(foo#)'
27570 tls_as_opt
=--fatal-warnings
27574 .section .tdata,"awT",@progbits
27581 tls_as_opt
='--fatal-warnings'
27585 .section .tdata,"awT",@progbits
27589 addik r5,r20,x@TLSGD
27590 addik r5,r20,x@TLSLDM'
27591 tls_as_opt
='--fatal-warnings'
27595 .section .tdata,"awT",@progbits
27599 addiu $4, $28, %tlsgd(x)
27600 addiu $4, $28, %tlsldm(x)
27601 lui $4, %dtprel_hi(x)
27602 addiu $4, $4, %dtprel_lo(x)
27603 lw $4, %gottprel(x)($28)
27604 lui $4, %tprel_hi(x)
27605 addiu $4, $4, %tprel_lo(x)'
27606 tls_as_opt
='-32 --fatal-warnings'
27610 .section .tdata,"awT",@progbits
27615 move.l x@TLSGD(%a5),%a0
27616 move.l x@TLSLDM(%a5),%a0
27617 move.l x@TLSLDO(%a5),%a0
27618 move.l x@TLSIE(%a5),%a0
27619 move.l x@TLSLE(%a5),%a0'
27620 tls_as_opt
='--fatal-warnings'
27624 .section ".tdata","awT",@progbits'
27625 tls_as_opt
="--fatal-warnings"
27629 .section ".tdata","awT",%progbits
27633 add x0, x0, #:tlsgd_lo12:x
27636 tls_as_opt
='--fatal-warnings'
27640 .section ".tdata","awT",@progbits
27643 l.movhi r3, tpoffha(foo)
27645 l.lwz r4, tpofflo(foo)(r3)'
27646 tls_as_opt
=--fatal-warnings
27650 .extern __get_tpointer
27666 .section ".tdata","awT",@progbits
27674 addi 3,2,ld0@got@tlsgd
27680 addi 3,2,x1@got@tlsld
27686 addis 9,3,x2@dtprel@ha
27687 addi 9,9,x2@dtprel@l
27690 ld 9,x3@got@dtprel(2)
27694 tls_as_opt
="-a64 --fatal-warnings"
27698 .section ".tdata","awT",@progbits
27706 addi 3,31,ld0@got@tlsgd
27708 addi 3,31,x1@got@tlsld
27711 addis 9,3,x2@dtprel@ha
27712 addi 9,9,x2@dtprel@l
27713 lwz 9,x3@got@tprel(31)
27716 addis 9,2,x2@tprel@ha
27717 addi 9,9,x2@tprel@l'
27718 tls_as_opt
="-a32 --fatal-warnings"
27722 .section .tdata,"awT",@progbits
27726 call __tls_get_addr'
27727 tls_as_opt
='--fatal-warnings'
27731 .section ".tdata","awT",@progbits
27738 .long foo@GOTNTPOFF
27739 .long foo@INDNTPOFF
27740 l %r1,foo@GOTNTPOFF(%r12)
27741 l %r1,0(%r1):tls_load:foo
27742 bas %r14,0(%r1,%r13):tls_gdcall:foo
27743 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27744 tls_as_opt
="-m31 --fatal-warnings"
27748 .section ".tdata","awT",@progbits
27755 .quad foo@GOTNTPOFF
27756 lg %r1,foo@GOTNTPOFF(%r12)
27757 larl %r1,foo@INDNTPOFF
27758 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27759 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27760 tls_as_opt
="-m64 -Aesame --fatal-warnings"
27762 sh-
*-* | sh
[123456789lbe
]*-*-*)
27764 .section ".tdata","awT",@progbits
27772 tls_as_opt
=--fatal-warnings
27776 sparc
*-sun-solaris2.
*)
27783 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27785 .section ".tdata",#alloc,#write,#tls'
27788 .section ".tdata","awT",@progbits'
27789 tls_as_opt
="-32 --fatal-warnings"
27791 conftest_s
="$conftest_s
27794 sethi %tgd_hi22(foo), %o0
27795 add %o0, %tgd_lo10(foo), %o1
27796 add %l7, %o1, %o0, %tgd_add(foo)
27797 call __tls_get_addr, %tgd_call(foo)
27798 sethi %tldm_hi22(foo), %l1
27799 add %l1, %tldm_lo10(foo), %l2
27800 add %l7, %l2, %o0, %tldm_add(foo)
27801 call __tls_get_addr, %tldm_call(foo)
27802 sethi %tldo_hix22(foo), %l3
27803 xor %l3, %tldo_lox10(foo), %l4
27804 add %o0, %l4, %l5, %tldo_add(foo)
27805 sethi %tie_hi22(foo), %o3
27806 add %o3, %tie_lo10(foo), %o3
27807 ld [%l7 + %o3], %o2, %tie_ld(foo)
27808 add %g7, %o2, %o4, %tie_add(foo)
27809 sethi %tle_hix22(foo), %l1
27810 xor %l1, %tle_lox10(foo), %o5
27811 ld [%g7 + %o5], %o1"
27815 .section ".tdata","awT",@progbits
27818 movi a8, foo@TLSFUNC
27819 movi a10, foo@TLSARG
27820 callx8.tls a8, foo@TLSCALL'
27824 if test "x$enable_tls" = xno
; then
27825 : # TLS explicitly disabled.
27826 elif test "x$enable_tls" = xyes
; then
27827 set_have_as_tls
=yes # TLS explicitly enabled.
27828 elif test -z "$conftest_s"; then
27829 : # If we don't have a check, assume no support.
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27832 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27833 if ${gcc_cv_as_tls+:} false
; then :
27834 $as_echo_n "(cached) " >&6
27837 if test x
$gcc_cv_as != x
; then
27838 $as_echo "$conftest_s" > conftest.s
27839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27841 (eval $ac_try) 2>&5
27843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27844 test $ac_status = 0; }; }
27848 echo "configure: failed program was" >&5
27851 rm -f conftest.o conftest.s
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27855 $as_echo "$gcc_cv_as_tls" >&6; }
27856 if test $gcc_cv_as_tls = yes; then
27857 set_have_as_tls
=yes
27861 if test $set_have_as_tls = yes ; then
27863 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27867 # Target-specific assembler checks.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27870 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27871 gcc_cv_ld_static_dynamic
=no
27872 gcc_cv_ld_static_option
='-Bstatic'
27873 gcc_cv_ld_dynamic_option
='-Bdynamic'
27874 if test $in_tree_ld = yes ; then
27875 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
27876 gcc_cv_ld_static_dynamic
=yes
27878 elif test x
$gcc_cv_ld != x
; then
27879 # Check if linker supports -Bstatic/-Bdynamic option
27880 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
27881 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
27882 gcc_cv_ld_static_dynamic
=yes
27885 # AIX ld uses -b flags
27886 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
27887 gcc_cv_ld_static_dynamic
=yes
27888 gcc_cv_ld_static_option
="-bstatic"
27889 gcc_cv_ld_dynamic_option
="-bdynamic"
27891 # HP-UX ld uses -a flags to select between shared and archive.
27893 if test x
"$gnu_ld" = xno
; then
27894 gcc_cv_ld_static_dynamic
=yes
27895 gcc_cv_ld_static_option
="-aarchive_shared"
27896 gcc_cv_ld_dynamic_option
="-adefault"
27899 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27901 gcc_cv_ld_static_dynamic
=yes
27906 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
27908 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27911 cat >>confdefs.h
<<_ACEOF
27912 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27916 cat >>confdefs.h
<<_ACEOF
27917 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27922 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27925 $as_echo_n "checking linker --version-script option... " >&6; }
27926 gcc_cv_ld_version_script
=no
27927 ld_version_script_option
=''
27928 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27929 gcc_cv_ld_version_script
=yes
27930 ld_version_script_option
='--version-script'
27931 elif test x
$gcc_cv_ld != x
; then
27933 # Solaris 2 ld always supports -M. It also supports a subset of
27934 # --version-script since Solaris 11.4, but requires
27935 # -z gnu-version-script-compat to activate.
27937 gcc_cv_ld_version_script
=yes
27938 ld_version_script_option
='-M'
27942 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27944 $as_echo "$gcc_cv_ld_version_script" >&6; }
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27948 $as_echo_n "checking linker soname option... " >&6; }
27949 gcc_cv_ld_soname
=no
27950 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27951 gcc_cv_ld_soname
=yes
27952 ld_soname_option
='-soname'
27953 elif test x
$gcc_cv_ld != x
; then
27956 gcc_cv_ld_soname
=yes
27957 ld_soname_option
='-install_name'
27959 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27960 # ld compatiblity since some Solaris 10 update.
27962 gcc_cv_ld_soname
=yes
27963 ld_soname_option
='-h'
27967 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27969 $as_echo "$gcc_cv_ld_soname" >&6; }
27972 if test x
"$demangler_in_ld" = xyes
; then
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27974 $as_echo_n "checking linker --demangle support... " >&6; }
27975 gcc_cv_ld_demangle
=no
27976 if test $in_tree_ld = yes; then
27977 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 \
27978 gcc_cv_ld_demangle
=yes
27980 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
27981 # Check if the GNU linker supports --demangle option
27982 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
27983 gcc_cv_ld_demangle
=yes
27986 if test x
"$gcc_cv_ld_demangle" = xyes
; then
27988 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27992 $as_echo "$gcc_cv_ld_demangle" >&6; }
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27996 $as_echo_n "checking linker plugin support... " >&6; }
27997 gcc_cv_lto_plugin
=0
27998 if test -f liblto_plugin.la
; then
27999 save_ld_ver
="$ld_ver"
28000 save_ld_vers_major
="$ld_vers_major"
28001 save_ld_vers_minor
="$ld_vers_minor"
28002 save_ld_is_gold
="$ld_is_gold"
28006 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
28008 # FIXME: ld_is_gold?
28009 ld_vers_major
="$gcc_cv_gld_major_version"
28010 ld_vers_minor
="$gcc_cv_gld_minor_version"
28012 # Determine plugin linker version.
28013 # FIXME: Partial duplicate from above, generalize.
28014 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28015 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28016 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
28018 ld_vers
=`echo $ld_ver | sed -n \
28019 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28021 ld_vers
=`echo $ld_ver | sed -n \
28022 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28024 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
28025 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28029 # Determine plugin support.
28030 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28031 # Require GNU ld or gold 2.21+ for plugin support by default.
28032 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28033 gcc_cv_lto_plugin
=2
28034 elif test "$ld_is_mold" = yes; then
28035 gcc_cv_lto_plugin
=2
28036 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28037 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28038 gcc_cv_lto_plugin
=1
28042 ld_ver
="$save_ld_ver"
28043 ld_vers_major
="$save_ld_vers_major"
28044 ld_vers_minor
="$save_ld_vers_minor"
28045 ld_is_gold
="$save_ld_is_gold"
28048 cat >>confdefs.h
<<_ACEOF
28049 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28053 $as_echo "$gcc_cv_lto_plugin" >&6; }
28055 # Target OS-specific assembler checks.
28057 case "$target_os" in
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28060 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28061 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
28062 $as_echo_n "(cached) " >&6
28064 gcc_cv_as_mmacosx_version_min
=no
28065 if test x
$gcc_cv_as != x
; then
28066 $as_echo '.text' > conftest.s
28067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28069 (eval $ac_try) 2>&5
28071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28072 test $ac_status = 0; }; }
28074 gcc_cv_as_mmacosx_version_min
=yes
28076 echo "configure: failed program was" >&5
28079 rm -f conftest.o conftest.s
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28083 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28084 if test $gcc_cv_as_mmacosx_version_min = yes; then
28086 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28090 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28092 $as_echo_n "checking assembler for .build_version... " >&6; }
28093 if ${gcc_cv_as_darwin_build_version+:} false
; then :
28094 $as_echo_n "(cached) " >&6
28096 gcc_cv_as_darwin_build_version
=no
28097 if test x
$gcc_cv_as != x
; then
28098 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28099 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28101 (eval $ac_try) 2>&5
28103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28104 test $ac_status = 0; }; }
28106 gcc_cv_as_darwin_build_version
=yes
28108 echo "configure: failed program was" >&5
28111 rm -f conftest.o conftest.s
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28115 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28116 if test $gcc_cv_as_darwin_build_version = yes; then
28118 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28126 # Target CPU-specific assembler checks.
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28131 $as_echo_n "checking assembler for -mabi option... " >&6; }
28132 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
28133 $as_echo_n "(cached) " >&6
28135 gcc_cv_as_aarch64_mabi
=no
28136 if test x
$gcc_cv_as != x
; then
28137 $as_echo '.text' > conftest.s
28138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28140 (eval $ac_try) 2>&5
28142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28143 test $ac_status = 0; }; }
28145 gcc_cv_as_aarch64_mabi
=yes
28147 echo "configure: failed program was" >&5
28150 rm -f conftest.o conftest.s
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28154 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28157 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
28159 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28162 if test x
$with_abi = xilp32
; then
28163 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28164 Upgrade the Assembler." "$LINENO" 5
28166 if test x
"$with_multilib_list" = xdefault
; then
28167 TM_MULTILIB_CONFIG
=lp64
28169 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
28170 for aarch64_multilib
in ${aarch64_multilibs}; do
28171 case ${aarch64_multilib} in
28173 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
28174 Upgrade the Assembler." "$LINENO" 5
28182 # Check if we have binutils support for relocations types needed by -fpic
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28184 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28185 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
28186 $as_echo_n "(cached) " >&6
28188 gcc_cv_as_aarch64_picreloc
=no
28189 if test x
$gcc_cv_as != x
; then
28192 ldr x0, [x2, #:gotpage_lo15:globalsym]
28194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_picreloc
=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_picreloc" >&5
28210 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28211 if test $gcc_cv_as_aarch64_picreloc = yes; then
28213 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28217 # Enable Branch Target Identification Mechanism and Return Address
28218 # Signing by default.
28219 # Check whether --enable-standard-branch-protection was given.
28220 if test "${enable_standard_branch_protection+set}" = set; then :
28221 enableval
=$enable_standard_branch_protection;
28224 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28229 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
28230 Valid choices are 'yes' and 'no'." "$LINENO" 5
28236 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28237 # Check whether --enable-fix-cortex-a53-835769 was given.
28238 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28239 enableval
=$enable_fix_cortex_a53_835769;
28242 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28247 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28248 Valid choices are 'yes' and 'no'." "$LINENO" 5
28255 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28256 # Check whether --enable-fix-cortex-a53-843419 was given.
28257 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28258 enableval
=$enable_fix_cortex_a53_843419;
28261 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28266 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28267 Valid choices are 'yes' and 'no'." "$LINENO" 5
28276 # All TARGET_ABI_OSF targets.
28277 alpha
*-*-linux* | alpha
*-*-*bsd
*)
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28279 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28280 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
28281 $as_echo_n "(cached) " >&6
28283 gcc_cv_as_alpha_explicit_relocs
=no
28284 if test x
$gcc_cv_as != x
; then
28285 $as_echo ' .set nomacro
28287 extbl $3, $2, $3 !lituse_bytoff!1
28288 ldq $2, a($29) !literal!1
28289 ldq $4, b($29) !literal!2
28290 ldq_u $3, 0($2) !lituse_base!1
28291 ldq $27, f($29) !literal!5
28292 jsr $26, ($27), f !lituse_jsr!5
28293 ldah $29, 0($26) !gpdisp!3
28294 lda $0, c($29) !gprel
28295 ldah $1, d($29) !gprelhigh
28296 lda $1, d($1) !gprellow
28297 lda $29, 0($29) !gpdisp!3' > conftest.s
28298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28300 (eval $ac_try) 2>&5
28302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28303 test $ac_status = 0; }; }
28305 gcc_cv_as_alpha_explicit_relocs
=yes
28307 echo "configure: failed program was" >&5
28310 rm -f conftest.o conftest.s
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28314 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28315 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28317 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28322 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28323 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
28324 $as_echo_n "(cached) " >&6
28326 gcc_cv_as_alpha_jsrdirect_relocs
=no
28327 if test x
$gcc_cv_as != x
; then
28328 $as_echo ' .set nomacro
28330 ldq $27, a($29) !literal!1
28331 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28332 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28334 (eval $ac_try) 2>&5
28336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28337 test $ac_status = 0; }; }
28339 gcc_cv_as_alpha_jsrdirect_relocs
=yes
28341 echo "configure: failed program was" >&5
28344 rm -f conftest.o conftest.s
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28348 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28349 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28351 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28359 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28360 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
28361 $as_echo_n "(cached) " >&6
28363 gcc_cv_as_avr_mlink_relax
=no
28364 if test x
$gcc_cv_as != x
; then
28365 $as_echo '.text' > conftest.s
28366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28368 (eval $ac_try) 2>&5
28370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28371 test $ac_status = 0; }; }
28373 gcc_cv_as_avr_mlink_relax
=yes
28375 echo "configure: failed program was" >&5
28378 rm -f conftest.o conftest.s
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28382 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28383 if test $gcc_cv_as_avr_mlink_relax = yes; then
28385 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28391 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28392 if ${gcc_cv_as_avr_mrmw+:} false
; then :
28393 $as_echo_n "(cached) " >&6
28395 gcc_cv_as_avr_mrmw
=no
28396 if test x
$gcc_cv_as != x
; then
28397 $as_echo '.text' > conftest.s
28398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28400 (eval $ac_try) 2>&5
28402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28403 test $ac_status = 0; }; }
28405 gcc_cv_as_avr_mrmw
=yes
28407 echo "configure: failed program was" >&5
28410 rm -f conftest.o conftest.s
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28414 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28415 if test $gcc_cv_as_avr_mrmw = yes; then
28417 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28423 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28424 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
28425 $as_echo_n "(cached) " >&6
28427 gcc_cv_as_avr_mgccisr
=no
28428 if test x
$gcc_cv_as != x
; then
28434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28436 (eval $ac_try) 2>&5
28438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28439 test $ac_status = 0; }; }
28441 gcc_cv_as_avr_mgccisr
=yes
28443 echo "configure: failed program was" >&5
28446 rm -f conftest.o conftest.s
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28450 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28451 if test $gcc_cv_as_avr_mgccisr = yes; then
28453 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28458 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28459 # Check how default linker description file implements .rodata for
28460 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28461 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28463 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28464 cat > conftest.s
<<EOF
28465 .section .rodata,"a",@progbits
28467 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28472 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28474 (eval $ac_try) 2>&5
28476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28477 test $ac_status = 0; }; }
28478 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28484 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
28485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28486 (eval $ac_try) 2>&5
28488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; }
28490 if test -s conftest.nm
28492 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28494 $as_echo "yes" >&6; }
28496 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28500 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28501 echo "$as_me: nm output was" >&5
28502 cat conftest.nm
>&5
28503 { $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
28504 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28508 $as_echo "test failed" >&6; }
28509 echo "$as_me: failed program was" >&5
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28512 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28514 rm -f conftest.s conftest.o conftest.elf conftest.nm
28516 # Check for emulation avrxmega2_flmap.
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28518 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28519 cat > conftest.s
<<EOF
28520 .section .text,"ax",@progbits
28521 ldi r16, __flmap_value_with_lock
28523 { ac_try
='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28525 (eval $ac_try) 2>&5
28527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28528 test $ac_status = 0; }; }
28529 { ac_try
='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }
28535 if test -s conftest.elf
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538 $as_echo "yes" >&6; }
28540 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28544 $as_echo "no" >&6; }
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28546 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28548 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28550 rm -f conftest.o conftest.elf
28552 # Check for emulation avrxmega4_flmap.
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28554 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28555 { ac_try
='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28557 (eval $ac_try) 2>&5
28559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; }
28561 { ac_try
='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28563 (eval $ac_try) 2>&5
28565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28566 test $ac_status = 0; }; }
28567 if test -s conftest.elf
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28570 $as_echo "yes" >&6; }
28572 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28576 $as_echo "no" >&6; }
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28578 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28580 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28582 rm -f conftest.s conftest.o conftest.elf
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28587 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28588 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
28589 $as_echo_n "(cached) " >&6
28591 gcc_cv_as_cris_no_mul_bug
=no
28592 if test x
$gcc_cv_as != x
; then
28593 $as_echo '.text' > conftest.s
28594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28596 (eval $ac_try) 2>&5
28598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28599 test $ac_status = 0; }; }
28601 gcc_cv_as_cris_no_mul_bug
=yes
28603 echo "configure: failed program was" >&5
28606 rm -f conftest.o conftest.s
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28610 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28611 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28613 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28621 $as_echo_n "checking assembler for -relax option... " >&6; }
28622 if ${gcc_cv_as_sparc_relax+:} false
; then :
28623 $as_echo_n "(cached) " >&6
28625 gcc_cv_as_sparc_relax
=no
28626 if test x
$gcc_cv_as != x
; then
28627 $as_echo '.text' > conftest.s
28628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28630 (eval $ac_try) 2>&5
28632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28633 test $ac_status = 0; }; }
28635 gcc_cv_as_sparc_relax
=yes
28637 echo "configure: failed program was" >&5
28640 rm -f conftest.o conftest.s
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28644 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28645 if test $gcc_cv_as_sparc_relax = yes; then
28647 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28653 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28654 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
28655 $as_echo_n "(cached) " >&6
28657 gcc_cv_as_sparc_gotdata_op
=no
28658 if test x
$gcc_cv_as != x
; then
28664 sethi %gdop_hix22(foo), %g1
28665 xor %g1, %gdop_lox10(foo), %g1
28666 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28669 (eval $ac_try) 2>&5
28671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28672 test $ac_status = 0; }; }
28674 if test x
$gcc_cv_ld != x \
28675 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28676 if test x
$gcc_cv_objdump != x
; then
28677 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
28678 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
28679 gcc_cv_as_sparc_gotdata_op
=no
28681 gcc_cv_as_sparc_gotdata_op
=yes
28687 echo "configure: failed program was" >&5
28690 rm -f conftest.o conftest.s
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28694 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28695 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28697 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28703 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28704 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
28705 $as_echo_n "(cached) " >&6
28707 gcc_cv_as_sparc_ua_pcrel
=no
28708 if test x
$gcc_cv_as != x
; then
28715 .uaword %r_disp32(foo)' > conftest.s
28716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28718 (eval $ac_try) 2>&5
28720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28721 test $ac_status = 0; }; }
28723 if test x
$gcc_cv_ld != x \
28724 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28725 gcc_cv_as_sparc_ua_pcrel
=yes
28729 echo "configure: failed program was" >&5
28732 rm -f conftest.o conftest.s
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28736 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28737 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28739 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28743 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28744 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
28745 $as_echo_n "(cached) " >&6
28747 gcc_cv_as_sparc_ua_pcrel_hidden
=no
28748 if test x
$gcc_cv_as != x
; then
28752 .uaword %r_disp32(foo)
28753 .byte 0x32, 0x33, 0x34
28757 .skip 4' > conftest.s
28758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28760 (eval $ac_try) 2>&5
28762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28763 test $ac_status = 0; }; }
28765 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28766 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
28767 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
28768 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
28769 if $gcc_cv_objdump -R conftest
2> /dev
/null \
28770 |
grep 'DISP32' > /dev
/null
2>&1; then
28773 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
28778 echo "configure: failed program was" >&5
28781 rm -f conftest.o conftest.s
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28785 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28786 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28788 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28794 # unaligned pcrel relocs
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28797 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28798 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
28799 $as_echo_n "(cached) " >&6
28801 gcc_cv_as_sparc_offsetable_lo10
=no
28802 if test x
$gcc_cv_as != x
; then
28804 or %g1, %lo(ab) + 12, %g1
28805 or %g1, %lo(ab + 12), %g1' > conftest.s
28806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28808 (eval $ac_try) 2>&5
28810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28811 test $ac_status = 0; }; }
28813 if test x
$gcc_cv_objdump != x \
28814 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
28815 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
28816 gcc_cv_as_sparc_offsetable_lo10
=yes
28819 echo "configure: failed program was" >&5
28822 rm -f conftest.o conftest.s
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28826 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28827 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28829 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28835 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28836 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
28837 $as_echo_n "(cached) " >&6
28839 gcc_cv_as_sparc_fmaf
=no
28840 if test x
$gcc_cv_as != x
; then
28842 .register %g2, #scratch
28843 .register %g3, #scratch
28845 fmaddd %f0, %f2, %f4, %f6
28846 addxccc %g1, %g2, %g3
28847 fsrl32 %f2, %f4, %f8
28848 fnaddd %f10, %f12, %f14' > conftest.s
28849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; }
28856 gcc_cv_as_sparc_fmaf
=yes
28858 echo "configure: failed program was" >&5
28861 rm -f conftest.o conftest.s
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28865 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28866 if test $gcc_cv_as_sparc_fmaf = yes; then
28868 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28874 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28875 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
28876 $as_echo_n "(cached) " >&6
28878 gcc_cv_as_sparc_sparc4
=no
28879 if test x
$gcc_cv_as != x
; then
28881 .register %g2, #scratch
28882 .register %g3, #scratch
28885 1: cwbneg %g2, %g3, 1f
28888 aes_kexpand0 %f4, %f6, %f8
28889 des_round %f38, %f40, %f42, %f44
28890 camellia_f %f54, %f56, %f58, %f60
28891 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28892 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28894 (eval $ac_try) 2>&5
28896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28897 test $ac_status = 0; }; }
28899 gcc_cv_as_sparc_sparc4
=yes
28901 echo "configure: failed program was" >&5
28904 rm -f conftest.o conftest.s
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28908 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28909 if test $gcc_cv_as_sparc_sparc4 = yes; then
28911 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28917 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28918 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
28919 $as_echo_n "(cached) " >&6
28921 gcc_cv_as_sparc_sparc5
=no
28922 if test x
$gcc_cv_as != x
; then
28924 .register %g2, #scratch
28925 .register %g3, #scratch
28927 subxc %g1, %g2, %g3
28928 fpadd8 %f0, %f2, %f4' > conftest.s
28929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28931 (eval $ac_try) 2>&5
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; }
28936 gcc_cv_as_sparc_sparc5
=yes
28938 echo "configure: failed program was" >&5
28941 rm -f conftest.o conftest.s
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28945 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28946 if test $gcc_cv_as_sparc_sparc5 = yes; then
28948 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28954 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28955 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
28956 $as_echo_n "(cached) " >&6
28958 gcc_cv_as_sparc_sparc6
=no
28959 if test x
$gcc_cv_as != x
; then
28961 .register %g2, #scratch
28962 .register %g3, #scratch
28965 fpsll64x %f0, %f2, %f4' > conftest.s
28966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28968 (eval $ac_try) 2>&5
28970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28971 test $ac_status = 0; }; }
28973 gcc_cv_as_sparc_sparc6
=yes
28975 echo "configure: failed program was" >&5
28978 rm -f conftest.o conftest.s
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28982 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28983 if test $gcc_cv_as_sparc_sparc6 = yes; then
28985 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28991 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28992 if ${gcc_cv_as_sparc_leon+:} false
; then :
28993 $as_echo_n "(cached) " >&6
28995 gcc_cv_as_sparc_leon
=no
28996 if test x
$gcc_cv_as != x
; then
28998 .register %g2, #scratch
28999 .register %g3, #scratch
29003 casa [%g2] 0xb, %g3, %g1' > conftest.s
29004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
29005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29006 (eval $ac_try) 2>&5
29008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29009 test $ac_status = 0; }; }
29011 gcc_cv_as_sparc_leon
=yes
29013 echo "configure: failed program was" >&5
29016 rm -f conftest.o conftest.s
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29020 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29021 if test $gcc_cv_as_sparc_leon = yes; then
29023 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29029 i
[34567]86-*-* | x86_64-
*-*)
29032 # Full C++ conformance when using a shared libstdc++-v3 requires some
29033 # support from the Cygwin DLL, which in more recent versions exports
29034 # wrappers to aid in interposing and redirecting operators new, delete,
29035 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29036 # are configuring for a version of Cygwin that exports the wrappers.
29037 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
29038 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29039 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
29040 gcc_ac_cygwin_dll_wrappers
=yes
29042 gcc_ac_cygwin_dll_wrappers
=no
29046 # Can't check presence of libc functions during cross-compile, so
29047 # we just have to assume we're building for an up-to-date target.
29048 gcc_ac_cygwin_dll_wrappers
=yes
29051 cat >>confdefs.h
<<_ACEOF
29052 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29057 cygwin
* | pe | mingw32
*)
29058 # Recent binutils allows the three-operand form of ".comm" on PE. This
29059 # definition is used unconditionally to initialise the default state of
29060 # the target option variable that governs usage of the feature.
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29062 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29063 if ${gcc_cv_as_comm_has_align+:} false
; then :
29064 $as_echo_n "(cached) " >&6
29066 gcc_cv_as_comm_has_align
=no
29067 if test x
$gcc_cv_as != x
; then
29068 $as_echo '.comm foo,1,32' > conftest.s
29069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }
29076 gcc_cv_as_comm_has_align
=yes
29078 echo "configure: failed program was" >&5
29081 rm -f conftest.o conftest.s
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29085 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29089 cat >>confdefs.h
<<_ACEOF
29090 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29093 # Used for DWARF 2 in PE
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29095 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29096 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
29097 $as_echo_n "(cached) " >&6
29099 gcc_cv_as_ix86_pe_secrel32
=no
29100 if test x
$gcc_cv_as != x
; then
29104 .secrel32 foo' > conftest.s
29105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29112 if test x
$gcc_cv_ld != x \
29113 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
29114 gcc_cv_as_ix86_pe_secrel32
=yes
29118 echo "configure: failed program was" >&5
29121 rm -f conftest.o conftest.s
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29125 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29126 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29128 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29132 # Test if the assembler supports the extended form of the .section
29133 # directive that specifies section alignment. LTO support uses this,
29134 # but normally only after installation, so we warn but don't fail the
29135 # configure if LTO is enabled but the assembler does not support it.
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29137 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29138 if ${gcc_cv_as_section_has_align+:} false
; then :
29139 $as_echo_n "(cached) " >&6
29141 gcc_cv_as_section_has_align
=no
29142 if test x
$gcc_cv_as != x
; then
29143 $as_echo '.section lto_test,"dr0"' > conftest.s
29144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29146 (eval $ac_try) 2>&5
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; }
29151 gcc_cv_as_section_has_align
=yes
29153 echo "configure: failed program was" >&5
29156 rm -f conftest.o conftest.s
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29160 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29163 if test x
$gcc_cv_as_section_has_align != xyes
; then
29164 case ",$enable_languages," in
29166 { $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
29167 $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;}
29174 darwin2
* | darwin19
*)
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29176 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29177 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
29178 $as_echo_n "(cached) " >&6
29180 gcc_cv_as_mllvm_x86_pad_for_align
=no
29181 if test x
$gcc_cv_as != x
; then
29182 $as_echo '.text' > conftest.s
29183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29185 (eval $ac_try) 2>&5
29187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29188 test $ac_status = 0; }; }
29190 gcc_cv_as_mllvm_x86_pad_for_align
=yes
29192 echo "configure: failed program was" >&5
29195 rm -f conftest.o conftest.s
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29199 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29200 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29202 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29210 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29211 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
29212 $as_echo_n "(cached) " >&6
29214 gcc_cv_as_ix86_xbrace_comment
=no
29215 if test x
$gcc_cv_as != x
; then
29216 $as_echo '.text' > conftest.s
29217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29219 (eval $ac_try) 2>&5
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; }
29224 gcc_cv_as_ix86_xbrace_comment
=yes
29226 echo "configure: failed program was" >&5
29229 rm -f conftest.o conftest.s
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29233 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29234 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29236 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29242 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29243 if ${gcc_cv_as_ix86_filds+:} false
; then :
29244 $as_echo_n "(cached) " >&6
29246 gcc_cv_as_ix86_filds
=no
29247 if test x
$gcc_cv_as != x
; then
29248 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29249 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29251 (eval $ac_try) 2>&5
29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29254 test $ac_status = 0; }; }
29256 gcc_cv_as_ix86_filds
=yes
29258 echo "configure: failed program was" >&5
29261 rm -f conftest.o conftest.s
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29265 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29266 if test $gcc_cv_as_ix86_filds = yes; then
29268 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29274 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29275 if ${gcc_cv_as_ix86_fildq+:} false
; then :
29276 $as_echo_n "(cached) " >&6
29278 gcc_cv_as_ix86_fildq
=no
29279 if test x
$gcc_cv_as != x
; then
29280 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29283 (eval $ac_try) 2>&5
29285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29286 test $ac_status = 0; }; }
29288 gcc_cv_as_ix86_fildq
=yes
29290 echo "configure: failed program was" >&5
29293 rm -f conftest.o conftest.s
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29297 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29298 if test $gcc_cv_as_ix86_fildq = yes; then
29300 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29306 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29307 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
29308 $as_echo_n "(cached) " >&6
29310 gcc_cv_as_ix86_cmov_sun_syntax
=no
29311 if test x
$gcc_cv_as != x
; then
29312 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29315 (eval $ac_try) 2>&5
29317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29318 test $ac_status = 0; }; }
29320 gcc_cv_as_ix86_cmov_sun_syntax
=yes
29322 echo "configure: failed program was" >&5
29325 rm -f conftest.o conftest.s
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29329 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29330 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29332 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29338 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29339 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
29340 $as_echo_n "(cached) " >&6
29342 gcc_cv_as_ix86_ffreep
=no
29343 if test x
$gcc_cv_as != x
; then
29344 $as_echo 'ffreep %st(1)' > conftest.s
29345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29347 (eval $ac_try) 2>&5
29349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29350 test $ac_status = 0; }; }
29352 gcc_cv_as_ix86_ffreep
=yes
29354 echo "configure: failed program was" >&5
29357 rm -f conftest.o conftest.s
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29361 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29362 if test $gcc_cv_as_ix86_ffreep = yes; then
29364 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29370 $as_echo_n "checking assembler for .quad directive... " >&6; }
29371 if ${gcc_cv_as_ix86_quad+:} false
; then :
29372 $as_echo_n "(cached) " >&6
29374 gcc_cv_as_ix86_quad
=no
29375 if test x
$gcc_cv_as != x
; then
29376 $as_echo '.quad 0' > conftest.s
29377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29379 (eval $ac_try) 2>&5
29381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29382 test $ac_status = 0; }; }
29384 gcc_cv_as_ix86_quad
=yes
29386 echo "configure: failed program was" >&5
29389 rm -f conftest.o conftest.s
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29393 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29394 if test $gcc_cv_as_ix86_quad = yes; then
29396 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29402 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29403 if ${gcc_cv_as_ix86_sahf+:} false
; then :
29404 $as_echo_n "(cached) " >&6
29406 gcc_cv_as_ix86_sahf
=no
29407 if test x
$gcc_cv_as != x
; then
29410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29412 (eval $ac_try) 2>&5
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; }
29417 gcc_cv_as_ix86_sahf
=yes
29419 echo "configure: failed program was" >&5
29422 rm -f conftest.o conftest.s
29425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29426 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29427 if test $gcc_cv_as_ix86_sahf = yes; then
29429 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29435 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29436 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
29437 $as_echo_n "(cached) " >&6
29439 gcc_cv_as_ix86_interunit_movq
=no
29440 if test x
$gcc_cv_as != x
; then
29443 movq %rax, %xmm0' > conftest.s
29444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29446 (eval $ac_try) 2>&5
29448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29449 test $ac_status = 0; }; }
29451 gcc_cv_as_ix86_interunit_movq
=yes
29453 echo "configure: failed program was" >&5
29456 rm -f conftest.o conftest.s
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29460 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29464 cat >>confdefs.h
<<_ACEOF
29465 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29470 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29471 if ${gcc_cv_as_ix86_hle+:} false
; then :
29472 $as_echo_n "(cached) " >&6
29474 gcc_cv_as_ix86_hle
=no
29475 if test x
$gcc_cv_as != x
; then
29476 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29479 (eval $ac_try) 2>&5
29481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29482 test $ac_status = 0; }; }
29484 gcc_cv_as_ix86_hle
=yes
29486 echo "configure: failed program was" >&5
29489 rm -f conftest.o conftest.s
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29493 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29494 if test $gcc_cv_as_ix86_hle = yes; then
29496 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29502 $as_echo_n "checking assembler for swap suffix... " >&6; }
29503 if ${gcc_cv_as_ix86_swap+:} false
; then :
29504 $as_echo_n "(cached) " >&6
29506 gcc_cv_as_ix86_swap
=no
29507 if test x
$gcc_cv_as != x
; then
29508 $as_echo 'movl.s %esp, %ebp' > conftest.s
29509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29511 (eval $ac_try) 2>&5
29513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29514 test $ac_status = 0; }; }
29516 gcc_cv_as_ix86_swap
=yes
29518 echo "configure: failed program was" >&5
29521 rm -f conftest.o conftest.s
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29525 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29526 if test $gcc_cv_as_ix86_swap = yes; then
29528 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29534 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29535 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
29536 $as_echo_n "(cached) " >&6
29538 gcc_cv_as_ix86_diff_sect_delta
=no
29539 if test x
$gcc_cv_as != x
; then
29540 $as_echo '.section .rodata
29546 .L2: nop' > conftest.s
29547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29549 (eval $ac_try) 2>&5
29551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29552 test $ac_status = 0; }; }
29554 gcc_cv_as_ix86_diff_sect_delta
=yes
29556 echo "configure: failed program was" >&5
29559 rm -f conftest.o conftest.s
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29563 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29564 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29566 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29572 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29573 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
29574 $as_echo_n "(cached) " >&6
29576 gcc_cv_as_ix86_rep_lock_prefix
=no
29577 if test x
$gcc_cv_as != x
; then
29578 $as_echo 'rep movsl
29583 lock addl %edi, (%eax,%esi)
29584 lock orl $0, (%esp)' > conftest.s
29585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29587 (eval $ac_try) 2>&5
29589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29590 test $ac_status = 0; }; }
29592 gcc_cv_as_ix86_rep_lock_prefix
=yes
29594 echo "configure: failed program was" >&5
29597 rm -f conftest.o conftest.s
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29601 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29602 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29604 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29610 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29611 if ${gcc_cv_as_ix86_ud2+:} false
; then :
29612 $as_echo_n "(cached) " >&6
29614 gcc_cv_as_ix86_ud2
=no
29615 if test x
$gcc_cv_as != x
; then
29616 $as_echo 'ud2' > conftest.s
29617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29619 (eval $ac_try) 2>&5
29621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29622 test $ac_status = 0; }; }
29624 gcc_cv_as_ix86_ud2
=yes
29626 echo "configure: failed program was" >&5
29629 rm -f conftest.o conftest.s
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29633 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29634 if test $gcc_cv_as_ix86_ud2 = yes; then
29636 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29641 # Enforce 32-bit output with gas and gld.
29642 if test x
$gas = xyes
; then
29643 as_ix86_gas_32_opt
="--32"
29645 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29646 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
29647 ld_ix86_gld_32_opt
="-melf_i386_sol2"
29649 ld_ix86_gld_32_opt
="-melf_i386"
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29654 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29655 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
29656 $as_echo_n "(cached) " >&6
29658 gcc_cv_as_ix86_tlsgdplt
=no
29659 if test x
$gcc_cv_as != x
; then
29660 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29663 (eval $ac_try) 2>&5
29665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29666 test $ac_status = 0; }; }
29668 if test x
$gcc_cv_ld != x \
29669 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29670 gcc_cv_as_ix86_tlsgdplt
=yes
29674 echo "configure: failed program was" >&5
29677 rm -f conftest.o conftest.s
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29681 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29682 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29684 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29690 .section .tdata,"aw'$tls_section_flag'",@progbits
29692 .section .text,"ax",@progbits
29693 call tls_ld@tlsldmplt'
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29696 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29697 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
29698 $as_echo_n "(cached) " >&6
29700 gcc_cv_as_ix86_tlsldmplt
=no
29701 if test x
$gcc_cv_as != x
; then
29702 $as_echo "$conftest_s" > conftest.s
29703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29705 (eval $ac_try) 2>&5
29707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29708 test $ac_status = 0; }; }
29710 if test x
$gcc_cv_ld != x \
29711 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29712 gcc_cv_as_ix86_tlsldmplt
=yes
29716 echo "configure: failed program was" >&5
29719 rm -f conftest.o conftest.s
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29723 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29727 cat >>confdefs.h
<<_ACEOF
29728 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29733 .section .text,"ax",@progbits
29735 .type _start, @function
29737 leal value@tlsldm(%ebx), %eax
29738 call ___tls_get_addr@plt
29740 .section .tdata,"aw'$tls_section_flag'",@progbits
29741 .type value, @object
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29744 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29745 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
29746 $as_echo_n "(cached) " >&6
29748 gcc_cv_as_ix86_tlsldm
=no
29749 if test x
$gcc_cv_as != x
; then
29750 $as_echo "$conftest_s" > conftest.s
29751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29753 (eval $ac_try) 2>&5
29755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756 test $ac_status = 0; }; }
29758 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29759 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
29760 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
29761 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
29762 gcc_cv_as_ix86_tlsldm
=yes
29767 echo "configure: failed program was" >&5
29770 rm -f conftest.o conftest.s
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29774 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29778 cat >>confdefs.h
<<_ACEOF
29779 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29793 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29794 if ${gcc_cv_as_ix86_got32x+:} false
; then :
29795 $as_echo_n "(cached) " >&6
29797 gcc_cv_as_ix86_got32x
=no
29798 if test x
$gcc_cv_as != x
; then
29799 $as_echo "$conftest_s" > conftest.s
29800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29802 (eval $ac_try) 2>&5
29804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805 test $ac_status = 0; }; }
29807 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29808 && test x
$gcc_cv_readelf != x \
29809 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29810 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
29811 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29812 if $gcc_cv_objdump -dw conftest
2>&1 \
29813 |
grep 0xffffff > /dev
/null
2>&1; then
29814 gcc_cv_as_ix86_got32x
=no
29816 gcc_cv_as_ix86_got32x
=yes
29821 echo "configure: failed program was" >&5
29824 rm -f conftest.o conftest.s
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29828 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29832 cat >>confdefs.h
<<_ACEOF
29833 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29838 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29839 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
29840 $as_echo_n "(cached) " >&6
29842 gcc_cv_as_ix86_gotoff_in_data
=no
29843 if test x
$gcc_cv_as != x
; then
29848 .long .L0@GOTOFF' > conftest.s
29849 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29851 (eval $ac_try) 2>&5
29853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29854 test $ac_status = 0; }; }
29856 gcc_cv_as_ix86_gotoff_in_data
=yes
29858 echo "configure: failed program was" >&5
29861 rm -f conftest.o conftest.s
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29865 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29869 cat >>confdefs.h
<<_ACEOF
29870 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29875 .section .text,"ax",@progbits
29877 .type _start, @function
29879 leal ld@tlsldm(%ecx), %eax
29880 call *___tls_get_addr@GOT(%ecx)
29881 leal gd@tlsgd(%ecx), %eax
29882 call *___tls_get_addr@GOT(%ecx)
29884 .section .tdata,"aw'$tls_section_flag'",@progbits
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29893 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29894 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
29895 $as_echo_n "(cached) " >&6
29897 gcc_cv_as_ix86_tls_get_addr_via_got
=no
29898 if test x
$gcc_cv_as != x
; then
29899 $as_echo "$conftest_s" > conftest.s
29900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29902 (eval $ac_try) 2>&5
29904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29905 test $ac_status = 0; }; }
29907 if test x
$gcc_cv_ld != x \
29908 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29909 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
29913 echo "configure: failed program was" >&5
29916 rm -f conftest.o conftest.s
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29920 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29924 cat >>confdefs.h
<<_ACEOF
29925 #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`
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29932 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29933 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
29934 $as_echo_n "(cached) " >&6
29936 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
29937 if test x
$gcc_cv_as != x
; then
29939 addl r15 = @ltoffx(x#), gp
29941 ld8.mov r16 = [r15], x#
29943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29945 (eval $ac_try) 2>&5
29947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29948 test $ac_status = 0; }; }
29950 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
29952 echo "configure: failed program was" >&5
29955 rm -f conftest.o conftest.s
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29959 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29960 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29962 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29974 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29975 if ${gcc_cv_as_machine_directive+:} false
; then :
29976 $as_echo_n "(cached) " >&6
29978 gcc_cv_as_machine_directive
=no
29979 if test x
$gcc_cv_as != x
; then
29980 $as_echo ' .machine ppc7400' > conftest.s
29981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29983 (eval $ac_try) 2>&5
29985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29986 test $ac_status = 0; }; }
29988 gcc_cv_as_machine_directive
=yes
29990 echo "configure: failed program was" >&5
29993 rm -f conftest.o conftest.s
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29997 $as_echo "$gcc_cv_as_machine_directive" >&6; }
30000 if test x
$gcc_cv_as_machine_directive != xyes
; then
30001 echo "*** This target requires an assembler supporting \".machine\"" >&2
30002 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
30003 test x
$build = x
$target && exit 1
30009 *-*-aix*) conftest_s
=' .machine "pwr5"
30012 *-*-darwin*) conftest_s
=' .text
30014 *) conftest_s
=' .machine power4
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30020 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30021 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
30022 $as_echo_n "(cached) " >&6
30024 gcc_cv_as_powerpc_mfcrf
=no
30025 if test x
$gcc_cv_as != x
; then
30026 $as_echo "$conftest_s" > conftest.s
30027 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30029 (eval $ac_try) 2>&5
30031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30032 test $ac_status = 0; }; }
30034 gcc_cv_as_powerpc_mfcrf
=yes
30036 echo "configure: failed program was" >&5
30039 rm -f conftest.o conftest.s
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30043 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30044 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30046 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30052 *-*-aix*) conftest_s
=' .machine "pwr10"
30055 *-*-darwin*) conftest_s
=' .text
30057 *) conftest_s
=' .machine power10
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30063 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30064 if ${gcc_cv_as_power10_htm+:} false
; then :
30065 $as_echo_n "(cached) " >&6
30067 gcc_cv_as_power10_htm
=no
30068 if test x
$gcc_cv_as != x
; then
30069 $as_echo "$conftest_s" > conftest.s
30070 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30072 (eval $ac_try) 2>&5
30074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30075 test $ac_status = 0; }; }
30077 gcc_cv_as_power10_htm
=yes
30079 echo "configure: failed program was" >&5
30082 rm -f conftest.o conftest.s
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30086 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30087 if test $gcc_cv_as_power10_htm = yes; then
30089 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30095 *-*-aix*) conftest_s
=' .csect .text[PR]
30097 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30101 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30102 *) conftest_s
=' .text
30104 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30108 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30109 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
30110 $as_echo_n "(cached) " >&6
30112 gcc_cv_as_powerpc_rel16
=no
30113 if test x
$gcc_cv_as != x
; then
30114 $as_echo "$conftest_s" > conftest.s
30115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30117 (eval $ac_try) 2>&5
30119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30120 test $ac_status = 0; }; }
30122 gcc_cv_as_powerpc_rel16
=yes
30124 echo "configure: failed program was" >&5
30127 rm -f conftest.o conftest.s
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30131 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30132 if test $gcc_cv_as_powerpc_rel16 = yes; then
30134 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30140 *-*-aix*) conftest_s
=' .machine "pwr7"
30143 *) conftest_s
=' .machine power7
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30149 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30150 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
30151 $as_echo_n "(cached) " >&6
30153 gcc_cv_as_powerpc_vsx
=no
30154 if test x
$gcc_cv_as != x
; then
30155 $as_echo "$conftest_s" > conftest.s
30156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30158 (eval $ac_try) 2>&5
30160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30161 test $ac_status = 0; }; }
30163 gcc_cv_as_powerpc_vsx
=yes
30165 echo "configure: failed program was" >&5
30168 rm -f conftest.o conftest.s
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30172 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30173 if test $gcc_cv_as_powerpc_vsx = yes; then
30175 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30181 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30182 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
30183 $as_echo_n "(cached) " >&6
30185 gcc_cv_as_powerpc_gnu_attribute
=no
30186 if test x
$gcc_cv_as != x
; then
30187 $as_echo '.gnu_attribute 4,1' > conftest.s
30188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30190 (eval $ac_try) 2>&5
30192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30193 test $ac_status = 0; }; }
30195 gcc_cv_as_powerpc_gnu_attribute
=yes
30197 echo "configure: failed program was" >&5
30200 rm -f conftest.o conftest.s
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30204 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30205 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30207 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30213 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30214 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
30215 $as_echo_n "(cached) " >&6
30217 gcc_cv_as_powerpc_entry_markers
=no
30218 if test x
$gcc_cv_as != x
; then
30219 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30220 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30222 (eval $ac_try) 2>&5
30224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30225 test $ac_status = 0; }; }
30227 gcc_cv_as_powerpc_entry_markers
=yes
30229 echo "configure: failed program was" >&5
30232 rm -f conftest.o conftest.s
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30236 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30237 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30239 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30245 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30246 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
30247 $as_echo_n "(cached) " >&6
30249 gcc_cv_as_powerpc_pltseq_markers
=no
30250 if test x
$gcc_cv_as != x
; then
30251 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30254 (eval $ac_try) 2>&5
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; }
30259 gcc_cv_as_powerpc_pltseq_markers
=yes
30261 echo "configure: failed program was" >&5
30264 rm -f conftest.o conftest.s
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30268 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30269 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30271 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30279 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30280 if ${gcc_cv_as_aix_ref+:} false
; then :
30281 $as_echo_n "(cached) " >&6
30283 gcc_cv_as_aix_ref
=no
30284 if test x
$gcc_cv_as != x
; then
30285 $as_echo ' .csect stuff[rw]
30291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30293 (eval $ac_try) 2>&5
30295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30296 test $ac_status = 0; }; }
30298 gcc_cv_as_aix_ref
=yes
30300 echo "configure: failed program was" >&5
30303 rm -f conftest.o conftest.s
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30307 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30308 if test $gcc_cv_as_aix_ref = yes; then
30310 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30316 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30317 if ${gcc_cv_as_aix_dwloc+:} false
; then :
30318 $as_echo_n "(cached) " >&6
30320 gcc_cv_as_aix_dwloc
=no
30321 if test x
$gcc_cv_as != x
; then
30322 $as_echo ' .dwsect 0xA0000
30326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30328 (eval $ac_try) 2>&5
30330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331 test $ac_status = 0; }; }
30333 gcc_cv_as_aix_dwloc
=yes
30335 echo "configure: failed program was" >&5
30338 rm -f conftest.o conftest.s
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30342 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30343 if test $gcc_cv_as_aix_dwloc = yes; then
30345 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30355 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30356 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
30357 $as_echo_n "(cached) " >&6
30359 gcc_cv_as_mips_explicit_relocs
=no
30360 if test x
$gcc_cv_as != x
; then
30361 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30364 (eval $ac_try) 2>&5
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; }
30369 gcc_cv_as_mips_explicit_relocs
=yes
30371 echo "configure: failed program was" >&5
30374 rm -f conftest.o conftest.s
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30378 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30379 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30380 if test x
$target_cpu_default = x
30381 then target_cpu_default
=MASK_EXPLICIT_RELOCS
30382 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30388 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30389 if ${gcc_cv_as_mips_no_shared+:} false
; then :
30390 $as_echo_n "(cached) " >&6
30392 gcc_cv_as_mips_no_shared
=no
30393 if test x
$gcc_cv_as != x
; then
30394 $as_echo 'nop' > conftest.s
30395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30397 (eval $ac_try) 2>&5
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; }
30402 gcc_cv_as_mips_no_shared
=yes
30404 echo "configure: failed program was" >&5
30407 rm -f conftest.o conftest.s
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30411 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30412 if test $gcc_cv_as_mips_no_shared = yes; then
30414 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30420 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30421 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
30422 $as_echo_n "(cached) " >&6
30424 gcc_cv_as_mips_gnu_attribute
=no
30425 if test x
$gcc_cv_as != x
; then
30426 $as_echo '.gnu_attribute 4,1' > conftest.s
30427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; }
30434 gcc_cv_as_mips_gnu_attribute
=yes
30436 echo "configure: failed program was" >&5
30439 rm -f conftest.o conftest.s
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30443 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30444 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30446 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30452 $as_echo_n "checking assembler for .module support... " >&6; }
30453 if ${gcc_cv_as_mips_dot_module+:} false
; then :
30454 $as_echo_n "(cached) " >&6
30456 gcc_cv_as_mips_dot_module
=no
30457 if test x
$gcc_cv_as != x
; then
30458 $as_echo '.module mips2
30459 .module fp=xx' > conftest.s
30460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30462 (eval $ac_try) 2>&5
30464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30465 test $ac_status = 0; }; }
30467 gcc_cv_as_mips_dot_module
=yes
30469 echo "configure: failed program was" >&5
30472 rm -f conftest.o conftest.s
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30476 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30477 if test $gcc_cv_as_mips_dot_module = yes; then
30479 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30483 if test x
$gcc_cv_as_mips_dot_module = xno \
30484 && test x
$with_fp_32 != x
; then
30485 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30489 $as_echo_n "checking assembler for .micromips support... " >&6; }
30490 if ${gcc_cv_as_micromips_support+:} false
; then :
30491 $as_echo_n "(cached) " >&6
30493 gcc_cv_as_micromips_support
=no
30494 if test x
$gcc_cv_as != x
; then
30495 $as_echo '.set micromips' > conftest.s
30496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30498 (eval $ac_try) 2>&5
30500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30501 test $ac_status = 0; }; }
30503 gcc_cv_as_micromips_support
=yes
30505 echo "configure: failed program was" >&5
30508 rm -f conftest.o conftest.s
30511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30512 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30513 if test $gcc_cv_as_micromips_support = yes; then
30515 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30521 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30522 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
30523 $as_echo_n "(cached) " >&6
30525 gcc_cv_as_mips_dtprelword
=no
30526 if test x
$gcc_cv_as != x
; then
30527 $as_echo '.section .tdata,"awT",@progbits
30531 .dtprelword x+0x8000' > conftest.s
30532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30534 (eval $ac_try) 2>&5
30536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30537 test $ac_status = 0; }; }
30539 gcc_cv_as_mips_dtprelword
=yes
30541 echo "configure: failed program was" >&5
30544 rm -f conftest.o conftest.s
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30548 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30549 if test $gcc_cv_as_mips_dtprelword = yes; then
30551 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30557 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30558 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
30559 $as_echo_n "(cached) " >&6
30561 gcc_cv_as_mips_dspr1_mult
=no
30562 if test x
$gcc_cv_as != x
; then
30563 $as_echo ' .set mips32r2
30571 multu $ac3,$4,$5' > conftest.s
30572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; }
30579 gcc_cv_as_mips_dspr1_mult
=yes
30581 echo "configure: failed program was" >&5
30584 rm -f conftest.o conftest.s
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30588 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30589 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30591 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30597 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30598 gcc_cv_as_ld_jalr_reloc
=no
30599 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30600 if test $in_tree_ld = yes ; then
30601 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 \
30602 && test $in_tree_ld_is_elf = yes; then
30603 gcc_cv_as_ld_jalr_reloc
=yes
30605 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30606 echo ' .ent x' > conftest.s
30607 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30608 echo ' lw $25,%call16(y)($28)' >> conftest.s
30609 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30610 echo '1: jalr $25' >> conftest.s
30611 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30612 echo '1: jalr $25' >> conftest.s
30613 echo ' .end x' >> conftest.s
30614 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
30615 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
30616 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
30617 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
30618 gcc_cv_as_ld_jalr_reloc
=yes
30624 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30625 if test x
$target_cpu_default = x
; then
30626 target_cpu_default
=MASK_RELAX_PIC_CALLS
30628 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30632 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30635 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30636 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
30637 $as_echo_n "(cached) " >&6
30639 gcc_cv_ld_mips_personality_relaxation
=no
30640 if test $in_tree_ld = yes ; then
30641 if test "$gcc_cv_gld_major_version" -eq 2 \
30642 -a "$gcc_cv_gld_minor_version" -ge 21 \
30643 -o "$gcc_cv_gld_major_version" -gt 2; then
30644 gcc_cv_ld_mips_personality_relaxation
=yes
30646 elif test x
$gcc_cv_as != x \
30647 -a x
$gcc_cv_ld != x \
30648 -a x
$gcc_cv_readelf != x
; then
30649 cat > conftest.s
<<EOF
30651 .cfi_personality 0x80,indirect_ptr
30658 .section .data,"aw",@progbits
30662 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
30663 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
30664 if $gcc_cv_readelf -d conftest
2>&1 \
30665 |
grep TEXTREL
> /dev
/null
2>&1; then
30667 elif $gcc_cv_readelf --relocs conftest
2>&1 \
30668 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
30671 gcc_cv_ld_mips_personality_relaxation
=yes
30675 rm -f conftest.s conftest.o conftest
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30678 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30679 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
30681 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30686 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30687 if ${gcc_cv_as_mips_nan+:} false
; then :
30688 $as_echo_n "(cached) " >&6
30690 gcc_cv_as_mips_nan
=no
30691 if test x
$gcc_cv_as != x
; then
30692 $as_echo '' > conftest.s
30693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30695 (eval $ac_try) 2>&5
30697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698 test $ac_status = 0; }; }
30700 gcc_cv_as_mips_nan
=yes
30702 echo "configure: failed program was" >&5
30705 rm -f conftest.o conftest.s
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30709 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30710 if test $gcc_cv_as_mips_nan = yes; then
30712 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30716 if test x
$gcc_cv_as_mips_nan = xno \
30717 && test x
$with_nan != x
; then
30718 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30722 # Earlier GAS versions generically support .gnu_attribute, but the
30723 # msp430 assembler will not do anything with it.
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30725 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30726 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
30727 $as_echo_n "(cached) " >&6
30729 gcc_cv_as_msp430_gnu_attribute
=no
30730 if test x
$gcc_cv_as != x
; then
30731 $as_echo '.gnu_attribute 4,1' > conftest.s
30732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30734 (eval $ac_try) 2>&5
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; }
30739 gcc_cv_as_msp430_gnu_attribute
=yes
30741 echo "configure: failed program was" >&5
30744 rm -f conftest.o conftest.s
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30748 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30749 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30751 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30756 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30757 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
30758 $as_echo_n "(cached) " >&6
30760 gcc_cv_as_msp430_mspabi_attribute
=no
30761 if test x
$gcc_cv_as != x
; then
30762 $as_echo '.mspabi_attribute 4,2' > conftest.s
30763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30765 (eval $ac_try) 2>&5
30767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30768 test $ac_status = 0; }; }
30770 gcc_cv_as_msp430_mspabi_attribute
=yes
30772 echo "configure: failed program was" >&5
30775 rm -f conftest.o conftest.s
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30779 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30780 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30782 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30786 if test x
$enable_newlib_nano_formatted_io = xyes
; then
30788 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30793 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30794 # syntax that is documented in the ABI specification.
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30796 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30797 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
30798 $as_echo_n "(cached) " >&6
30800 gcc_cv_as_nios2_gotoff_relocation
=no
30801 if test x
$gcc_cv_as != x
; then
30802 $as_echo ' .extern foo
30804 .long %gotoff(foo)' > conftest.s
30805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30807 (eval $ac_try) 2>&5
30809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30810 test $ac_status = 0; }; }
30812 gcc_cv_as_nios2_gotoff_relocation
=yes
30814 echo "configure: failed program was" >&5
30817 rm -f conftest.o conftest.s
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30821 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30822 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30824 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30831 $as_echo_n "checking assembler for .attribute support... " >&6; }
30832 if ${gcc_cv_as_riscv_attribute+:} false
; then :
30833 $as_echo_n "(cached) " >&6
30835 gcc_cv_as_riscv_attribute
=no
30836 if test x
$gcc_cv_as != x
; then
30837 $as_echo '.attribute stack_align,4' > conftest.s
30838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30840 (eval $ac_try) 2>&5
30842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30843 test $ac_status = 0; }; }
30845 gcc_cv_as_riscv_attribute
=yes
30847 echo "configure: failed program was" >&5
30850 rm -f conftest.o conftest.s
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30854 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30855 if test $gcc_cv_as_riscv_attribute = yes; then
30857 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30862 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30863 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
30864 $as_echo_n "(cached) " >&6
30866 gcc_cv_as_riscv_isa_spec
=no
30867 if test x
$gcc_cv_as != x
; then
30868 $as_echo '' > conftest.s
30869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30871 (eval $ac_try) 2>&5
30873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30874 test $ac_status = 0; }; }
30876 gcc_cv_as_riscv_isa_spec
=yes
30878 echo "configure: failed program was" >&5
30881 rm -f conftest.o conftest.s
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30885 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30886 if test $gcc_cv_as_riscv_isa_spec = yes; then
30888 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30893 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30894 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
30895 $as_echo_n "(cached) " >&6
30897 gcc_cv_as_riscv_march_zifencei
=no
30898 if test x
$gcc_cv_as != x
; then
30899 $as_echo '' > conftest.s
30900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30902 (eval $ac_try) 2>&5
30904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30905 test $ac_status = 0; }; }
30907 gcc_cv_as_riscv_march_zifencei
=yes
30909 echo "configure: failed program was" >&5
30912 rm -f conftest.o conftest.s
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30916 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30917 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30919 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30926 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30927 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
30928 $as_echo_n "(cached) " >&6
30930 gcc_cv_as_loongarch_dtprelword
=no
30931 if test x
$gcc_cv_as != x
; then
30932 $as_echo '' > conftest.s
30933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30935 (eval $ac_try) 2>&5
30937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938 test $ac_status = 0; }; }
30940 .section .tdata
,"awT",@progbits
30944 .dtprelword x
+0x8000
30946 echo "configure: failed program was" >&5
30949 rm -f conftest.o conftest.s
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30953 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30955 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30957 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30961 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30962 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
30963 $as_echo_n "(cached) " >&6
30965 gcc_cv_as_loongarch_explicit_relocs
=no
30966 if test x
$gcc_cv_as != x
; then
30967 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30968 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30970 (eval $ac_try) 2>&5
30972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30973 test $ac_status = 0; }; }
30975 gcc_cv_as_loongarch_explicit_relocs
=yes
30977 echo "configure: failed program was" >&5
30980 rm -f conftest.o conftest.s
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30984 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30985 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30987 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30992 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30993 if ${gcc_cv_as_loongarch_call36+:} false
; then :
30994 $as_echo_n "(cached) " >&6
30996 gcc_cv_as_loongarch_call36
=no
30997 if test x
$gcc_cv_as != x
; then
30998 $as_echo 'pcaddu18i $r1, %call36(a)
30999 jirl $r1, $r1, 0' > conftest.s
31000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31002 (eval $ac_try) 2>&5
31004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31005 test $ac_status = 0; }; }
31007 gcc_cv_as_loongarch_call36
=yes
31009 echo "configure: failed program was" >&5
31012 rm -f conftest.o conftest.s
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31016 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31017 if test $gcc_cv_as_loongarch_call36 = yes; then
31019 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31024 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31025 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
31026 $as_echo_n "(cached) " >&6
31028 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
31029 if test x
$gcc_cv_as != x
; then
31030 $as_echo '.cfi_startproc
31031 .cfi_personality 0x9b,a
31033 .cfi_endproc' > conftest.s
31034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31036 (eval $ac_try) 2>&5
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; }
31041 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
31043 echo "configure: failed program was" >&5
31046 rm -f conftest.o conftest.s
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31050 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31051 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31053 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31058 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31059 if ${gcc_cv_as_loongarch_relax+:} false
; then :
31060 $as_echo_n "(cached) " >&6
31062 gcc_cv_as_loongarch_relax
=no
31063 if test x
$gcc_cv_as != x
; then
31064 $as_echo '.text' > conftest.s
31065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31067 (eval $ac_try) 2>&5
31069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31070 test $ac_status = 0; }; }
31072 gcc_cv_as_loongarch_relax
=yes
31074 echo "configure: failed program was" >&5
31077 rm -f conftest.o conftest.s
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31081 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31082 if test $gcc_cv_as_loongarch_relax = yes; then
31084 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31089 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31090 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false
; then :
31091 $as_echo_n "(cached) " >&6
31093 gcc_cv_as_loongarch_cond_branch_relax
=no
31094 if test x
$gcc_cv_as != x
; then
31099 beq $a0,$a1,a' > conftest.s
31100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31102 (eval $ac_try) 2>&5
31104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31105 test $ac_status = 0; }; }
31107 gcc_cv_as_loongarch_cond_branch_relax
=yes
31109 echo "configure: failed program was" >&5
31112 rm -f conftest.o conftest.s
31115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31116 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31117 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31119 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31124 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31125 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false
; then :
31126 $as_echo_n "(cached) " >&6
31128 gcc_cv_as_loongarch_tls_le_relaxation_support
=no
31129 if test x
$gcc_cv_as != x
; then
31130 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31131 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31133 (eval $ac_try) 2>&5
31135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31136 test $ac_status = 0; }; }
31138 gcc_cv_as_loongarch_tls_le_relaxation_support
=yes
31140 echo "configure: failed program was" >&5
31143 rm -f conftest.o conftest.s
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31147 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31148 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31150 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31157 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31158 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
31159 $as_echo_n "(cached) " >&6
31161 gcc_cv_as_s390_gnu_attribute
=no
31162 if test x
$gcc_cv_as != x
; then
31163 $as_echo '.gnu_attribute 8,1' > conftest.s
31164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31166 (eval $ac_try) 2>&5
31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31169 test $ac_status = 0; }; }
31171 gcc_cv_as_s390_gnu_attribute
=yes
31173 echo "configure: failed program was" >&5
31176 rm -f conftest.o conftest.s
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31180 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31181 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31183 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31188 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31189 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
31190 $as_echo_n "(cached) " >&6
31192 gcc_cv_as_s390_machine_machinemode
=no
31193 if test x
$gcc_cv_as != x
; then
31194 $as_echo ' .machinemode push
31197 .machine pop' > conftest.s
31198 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31200 (eval $ac_try) 2>&5
31202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31203 test $ac_status = 0; }; }
31205 gcc_cv_as_s390_machine_machinemode
=yes
31207 echo "configure: failed program was" >&5
31210 rm -f conftest.o conftest.s
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31214 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31215 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31217 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31222 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31223 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
31224 $as_echo_n "(cached) " >&6
31226 gcc_cv_as_s390_architecture_modifiers
=no
31227 if test x
$gcc_cv_as != x
; then
31228 $as_echo ' .machine z13+vx ' > conftest.s
31229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31231 (eval $ac_try) 2>&5
31233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31234 test $ac_status = 0; }; }
31236 gcc_cv_as_s390_architecture_modifiers
=yes
31238 echo "configure: failed program was" >&5
31241 rm -f conftest.o conftest.s
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31245 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31246 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31248 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31253 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31254 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
31255 $as_echo_n "(cached) " >&6
31257 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
31258 if test x
$gcc_cv_as != x
; then
31259 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31260 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31262 (eval $ac_try) 2>&5
31264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31265 test $ac_status = 0; }; }
31267 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
31269 echo "configure: failed program was" >&5
31272 rm -f conftest.o conftest.s
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31276 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31277 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31279 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31284 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31285 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
31286 $as_echo_n "(cached) " >&6
31288 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
31289 if test x
$gcc_cv_as != x
; then
31290 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31293 (eval $ac_try) 2>&5
31295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31296 test $ac_status = 0; }; }
31298 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
31300 echo "configure: failed program was" >&5
31303 rm -f conftest.o conftest.s
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31307 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31308 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31310 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31318 # Mips, LoongArch and HP-UX need the GNU assembler.
31319 # Linux on IA64 might be able to use the Intel assembler.
31322 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
31323 if test x
$gas_flag = xyes \
31324 ||
test x
"$host" != x
"$build" \
31325 ||
test ! -x "$gcc_cv_as" \
31326 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
31329 echo "*** This configuration requires the GNU assembler" >&2
31335 # AMD GCN needs the LLVM assembler and linker.
31336 # Test that LLVM is at least 13.0.1.
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31340 $as_echo_n "checking llvm assembler version... " >&6; }
31341 gcc_cv_as_version
="unknown"
31342 if test x
$gcc_cv_as != x
; then
31343 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31344 case "$gcc_cv_as_version" in
31345 13.0.
[1-9]*) ;; # 13.0.1+
31346 13.
[1-9]*) ;; # 13.1+
31347 1[4-9]*) ;; # 14..19
31348 [2-9][0-9]*) ;; # 20..99
31349 [1-9][0-9][0-9]*) ;; # 100+
31350 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
31351 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31355 $as_echo "$gcc_cv_as_version, ok" >&6; }
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31362 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31363 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
31364 $as_echo_n "(cached) " >&6
31366 gcc_cv_as_arm_option_extensions
=no
31367 if test x
$gcc_cv_as != x
; then
31371 vmov.f32 s0, s1' > conftest.s
31372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31374 (eval $ac_try) 2>&5
31376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31377 test $ac_status = 0; }; }
31379 gcc_cv_as_arm_option_extensions
=yes
31381 echo "configure: failed program was" >&5
31384 rm -f conftest.o conftest.s
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31388 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31389 if test $gcc_cv_as_arm_option_extensions = yes; then
31391 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31397 # ??? Not all targets support dwarf2 debug_line, even within a version
31398 # of gas. Moreover, we need to emit a valid instruction to trigger any
31399 # info to the output file. So, as supported targets are added to gas 2.11,
31400 # add some instruction here to (also) show we expect this might work.
31401 # ??? Once 2.11 is released, probably need to add first known working
31402 # version to the per-target configury.
31403 case "$cpu_type" in
31404 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31405 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31406 | visium | xstormy16 | xtensa
)
31416 if test x
"$insn" != x
; then
31418 .file 1 \"conftest.s\"
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31422 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31423 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
31424 $as_echo_n "(cached) " >&6
31426 gcc_cv_as_dwarf2_debug_line
=no
31427 if test x
$gcc_cv_as != x
; then
31428 $as_echo "$conftest_s" > conftest.s
31429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31431 (eval $ac_try) 2>&5
31433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31434 test $ac_status = 0; }; }
31436 if test x
$gcc_cv_objdump != x \
31437 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
31438 |
grep debug_line
> /dev
/null
2>&1; then
31439 gcc_cv_as_dwarf2_debug_line
=yes
31440 elif test x
$gcc_cv_otool != x \
31441 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
31442 |
grep debug_line
> /dev
/null
2>&1; then
31443 gcc_cv_as_dwarf2_debug_line
=yes
31446 echo "configure: failed program was" >&5
31449 rm -f conftest.o conftest.s
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31453 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31457 # The .debug_line file table must be in the exact order that
31458 # we specified the files, since these indices are also used
31459 # by DW_AT_decl_file. Approximate this test by testing if
31460 # the assembler bitches if the same index is assigned twice.
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31462 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31463 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
31464 $as_echo_n "(cached) " >&6
31466 gcc_cv_as_dwarf2_file_buggy
=no
31467 if test x
$gcc_cv_as != x
; then
31468 $as_echo ' .file 1 "foo.s"
31469 .file 1 "bar.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_file_buggy
=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_file_buggy" >&5
31486 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31490 if test $gcc_cv_as_dwarf2_debug_line = yes \
31491 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
31493 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31496 if test $gcc_cv_as_leb128 = yes; then
31498 .file 1 \"conftest.s\"
31499 .loc 1 3 0 view .LVU1
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31506 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31507 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
31508 $as_echo_n "(cached) " >&6
31510 gcc_cv_as_dwarf2_debug_view
=no
31511 if test x
$gcc_cv_as != x
; then
31512 $as_echo "$conftest_s" > conftest.s
31513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31515 (eval $ac_try) 2>&5
31517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31518 test $ac_status = 0; }; }
31520 gcc_cv_as_dwarf2_debug_view
=yes
31522 echo "configure: failed program was" >&5
31525 rm -f conftest.o conftest.s
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31529 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31530 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31532 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31540 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31541 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
31542 $as_echo_n "(cached) " >&6
31544 gcc_cv_as_gdwarf2_flag
=no
31545 if test x
$gcc_cv_as != x
; then
31546 $as_echo "$insn" > conftest.s
31547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31549 (eval $ac_try) 2>&5
31551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31552 test $ac_status = 0; }; }
31554 gcc_cv_as_gdwarf2_flag
=yes
31556 echo "configure: failed program was" >&5
31559 rm -f conftest.o conftest.s
31562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31563 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31564 if test $gcc_cv_as_gdwarf2_flag = yes; then
31566 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31572 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31573 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
31574 $as_echo_n "(cached) " >&6
31576 gcc_cv_as_gdwarf_5_flag
=no
31577 if test x
$gcc_cv_as != x
; then
31578 $as_echo "$insn" > conftest.s
31579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31581 (eval $ac_try) 2>&5
31583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31584 test $ac_status = 0; }; }
31586 if test x
$gcc_cv_objdump != x \
31587 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
31588 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
31589 gcc_cv_as_gdwarf_5_flag
=yes;
31592 echo "configure: failed program was" >&5
31595 rm -f conftest.o conftest.s
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31599 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31600 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31602 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31608 win32 | pe | cygwin
* | mingw32
*)
31609 section_flags
=\"dr
\"
31610 function_type
=".def foo; .scl 2; .type 32; .endef"
31613 section_flags
=\"\",%progbits
31614 function_type
=".type foo, %function"
31615 function_size
=".size foo, .-foo";;
31617 dwarf4_debug_info_size
=0x46
31618 dwarf4_high_pc_form
=7
31619 dwarf4_debug_aranges_size
=0x2c
31621 for dwarf4_addr_size
in 8 4; do
31637 .section .debug_info,$section_flags
31639 .4byte $dwarf4_debug_info_size
31641 .4byte .Ldebug_abbrev0
31642 .byte 0x$dwarf4_addr_size
31644 .ascii \"GNU C17\\0\"
31648 .${dwarf4_addr_size}byte .Ltext0
31649 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31650 .4byte .Ldebug_line0
31656 .${dwarf4_addr_size}byte .LFB0
31657 .${dwarf4_addr_size}byte .LFE0-.LFB0
31661 .section .debug_abbrev,$section_flags
31677 .byte 0x$dwarf4_high_pc_form
31698 .byte 0x$dwarf4_high_pc_form
31704 .section .debug_aranges,$section_flags
31705 .4byte $dwarf4_debug_aranges_size
31707 .4byte .Ldebug_info0
31712 .${dwarf4_addr_size}byte .Ltext0
31713 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31714 .${dwarf4_addr_size}byte 0
31715 .${dwarf4_addr_size}byte 0
31716 .section .debug_line,$section_flags
31718 .4byte .LELT0-.LSLT0
31721 .4byte .LELTP0-.LASLTP0
31749 .byte 0x$dwarf4_line_sz
31751 .${dwarf4_addr_size}byte .LM1
31756 .byte 0x$dwarf4_line_sz
31758 .${dwarf4_addr_size}byte .LM2
31763 .byte 0x$dwarf4_line_sz
31765 .${dwarf4_addr_size}byte .Letext0
31770 .section .debug_str,$section_flags
31774 if test $dwarf4_addr_size = 4; then
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31776 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31777 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
31778 $as_echo_n "(cached) " >&6
31780 gcc_cv_as_debug_line_32_flag
=no
31781 if test x
$gcc_cv_as != x
; then
31782 $as_echo "$conftest_s" > conftest.s
31783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31785 (eval $ac_try) 2>&5
31787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31788 test $ac_status = 0; }; }
31790 gcc_cv_as_debug_line_32_flag
=yes
31792 echo "configure: failed program was" >&5
31795 rm -f conftest.o conftest.s
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31799 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31800 if test $gcc_cv_as_debug_line_32_flag = yes; then
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31806 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31807 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
31808 $as_echo_n "(cached) " >&6
31810 gcc_cv_as_debug_line_64_flag
=no
31811 if test x
$gcc_cv_as != x
; then
31812 $as_echo "$conftest_s" > conftest.s
31813 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31815 (eval $ac_try) 2>&5
31817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31818 test $ac_status = 0; }; }
31820 gcc_cv_as_debug_line_64_flag
=yes
31822 echo "configure: failed program was" >&5
31825 rm -f conftest.o conftest.s
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31829 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31830 if test $gcc_cv_as_debug_line_64_flag = yes; then
31835 if test $dwarf4_success = yes; then
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31838 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31839 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
31840 $as_echo_n "(cached) " >&6
31842 gcc_cv_as_dwarf_4_debug_line_flag
=no
31843 if test x
$gcc_cv_as != x
; then
31844 $as_echo "$conftest_s" > conftest.s
31845 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31847 (eval $ac_try) 2>&5
31849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31850 test $ac_status = 0; }; }
31852 gcc_cv_as_dwarf_4_debug_line_flag
=yes
31854 echo "configure: failed program was" >&5
31857 rm -f conftest.o conftest.s
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31861 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31862 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31868 dwarf4_debug_info_size
=0x36
31869 dwarf4_high_pc_form
=6
31870 dwarf4_debug_aranges_size
=0x1c
31874 if test $dwarf4_success = yes; then
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31893 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31894 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
31895 $as_echo_n "(cached) " >&6
31897 gcc_cv_as_dwarf_4_app_flag
=no
31898 if test x
$gcc_cv_as != x
; then
31899 $as_echo "$conftest_s" > conftest.s
31900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31902 (eval $ac_try) 2>&5
31904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31905 test $ac_status = 0; }; }
31907 gcc_cv_as_dwarf_4_app_flag
=yes
31909 echo "configure: failed program was" >&5
31912 rm -f conftest.o conftest.s
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31916 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31917 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31923 if test $dwarf4_success = yes; then
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31934 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31935 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
31936 $as_echo_n "(cached) " >&6
31938 gcc_cv_as_working_gdwarf_n_flag
=no
31939 if test x
$gcc_cv_as != x
; then
31940 $as_echo "$conftest_s" > conftest.s
31941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31943 (eval $ac_try) 2>&5
31945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31946 test $ac_status = 0; }; }
31948 if test x
$gcc_cv_objdump != x \
31949 && $gcc_cv_objdump -W conftest.o
2>&1 \
31950 |
grep conftest.s
> /dev
/null
2>&1; then
31951 gcc_cv_as_working_gdwarf_n_flag
=no
31953 gcc_cv_as_working_gdwarf_n_flag
=yes
31956 echo "configure: failed program was" >&5
31959 rm -f conftest.o conftest.s
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31963 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31966 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31968 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31974 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31975 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
31976 $as_echo_n "(cached) " >&6
31978 gcc_cv_as_debug_prefix_map_flag
=no
31979 if test x
$gcc_cv_as != x
; then
31980 $as_echo "$insn" > conftest.s
31981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31983 (eval $ac_try) 2>&5
31985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31986 test $ac_status = 0; }; }
31988 gcc_cv_as_debug_prefix_map_flag
=yes
31990 echo "configure: failed program was" >&5
31993 rm -f conftest.o conftest.s
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31997 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31998 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32000 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32007 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32008 if ${gcc_cv_as_compress_debug+:} false
; then :
32009 $as_echo_n "(cached) " >&6
32011 gcc_cv_as_compress_debug
=no
32012 if test x
$gcc_cv_as != x
; then
32013 $as_echo '' > conftest.s
32014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32016 (eval $ac_try) 2>&5
32018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32019 test $ac_status = 0; }; }
32021 # gas compiled without zlib cannot compress debug sections and warns
32022 # about it, but still exits successfully. So check for this, too.
32023 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
32025 gcc_cv_as_compress_debug
=0
32026 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
32028 gcc_cv_as_compress_debug
=1
32029 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
32030 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
32031 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32032 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
32034 gcc_cv_as_compress_debug
=2
32037 gcc_cv_as_compress_debug
=0
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_compress_debug" >&5
32047 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32051 cat >>confdefs.h
<<_ACEOF
32052 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32056 cat >>confdefs.h
<<_ACEOF
32057 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32061 cat >>confdefs.h
<<_ACEOF
32062 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32067 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32068 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
32069 $as_echo_n "(cached) " >&6
32071 gcc_cv_as_lcomm_with_alignment
=no
32072 if test x
$gcc_cv_as != x
; then
32073 $as_echo '.lcomm bar,4,16' > conftest.s
32074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32076 (eval $ac_try) 2>&5
32078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32079 test $ac_status = 0; }; }
32081 gcc_cv_as_lcomm_with_alignment
=yes
32083 echo "configure: failed program was" >&5
32086 rm -f conftest.o conftest.s
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32090 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32093 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32098 if test x
$with_sysroot = x
&& test x
$host = x
$target \
32099 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32100 && test "$prefix" != "NONE"; then
32102 cat >>confdefs.h
<<_ACEOF
32103 #define PREFIX_INCLUDE_DIR "$prefix/include"
32108 # Determine the version of glibc, if any, used on the target.
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32110 $as_echo_n "checking for target glibc version... " >&6; }
32112 # Check whether --with-glibc-version was given.
32113 if test "${with_glibc_version+set}" = set; then :
32114 withval
=$with_glibc_version;
32115 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32116 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32117 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32119 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
32123 glibc_version_major
=0
32124 glibc_version_minor
=0
32125 if test -f $target_header_dir/features.h \
32126 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32127 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32128 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32129 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32134 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32136 cat >>confdefs.h
<<_ACEOF
32137 #define TARGET_GLIBC_MAJOR $glibc_version_major
32141 cat >>confdefs.h
<<_ACEOF
32142 #define TARGET_GLIBC_MINOR $glibc_version_minor
32146 # Check whether --enable-gnu-unique-object was given.
32147 if test "${enable_gnu_unique_object+set}" = set; then :
32148 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32150 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32151 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32155 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32156 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
32157 $as_echo_n "(cached) " >&6
32159 gcc_cv_as_gnu_unique_object
=no
32160 if test x
$gcc_cv_as != x
; then
32161 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32164 (eval $ac_try) 2>&5
32166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32167 test $ac_status = 0; }; }
32169 gcc_cv_as_gnu_unique_object
=yes
32171 echo "configure: failed program was" >&5
32174 rm -f conftest.o conftest.s
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32178 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32179 if test $gcc_cv_as_gnu_unique_object = yes; then
32180 # We need to unquote above to to use the definition from config.gcc.
32181 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32183 if test $glibc_version_major -gt 2 \
32184 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32185 enable_gnu_unique_object
=yes
32192 if test x
$enable_gnu_unique_object = xyes
; then
32194 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32199 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32200 if ${gcc_cv_as_line_zero+:} false
; then :
32201 $as_echo_n "(cached) " >&6
32203 gcc_cv_as_line_zero
=no
32204 if test "x$gcc_cv_as" != x
; then
32205 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32206 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32208 (eval $ac_try) 2>&5
32210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32211 test $ac_status = 0; }; } &&
32212 test "x`cat conftest.out`" = x
32214 gcc_cv_as_line_zero
=yes
32216 echo "configure: failed program was" >&5
32218 echo "configure: error output was" >&5
32219 cat conftest.out
>&5
32221 rm -f conftest.o conftest.s conftest.out
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32225 $as_echo "$gcc_cv_as_line_zero" >&6; }
32226 if test "x$gcc_cv_as_line_zero" = xyes
; then
32228 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32233 $as_echo_n "checking support for thin archives... " >&6; }
32234 thin_archive_support
=no
32235 echo 'int main (void) { return 0; }' > conftest.c
32236 if ($AR --version |
sed 1q |
grep "GNU ar" \
32237 && $CC $CFLAGS -c conftest.c \
32238 && $AR rcT conftest.a conftest.o \
32239 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
32240 thin_archive_support
=yes
32242 rm -f conftest.c conftest.o conftest.a conftest
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32244 $as_echo "$thin_archive_support" >&6; }
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32248 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32249 gcc_cv_ld_eh_frame_hdr
=no
32250 if test $in_tree_ld = yes ; then
32251 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 \
32252 && test $in_tree_ld_is_elf = yes; then
32253 gcc_cv_ld_eh_frame_hdr
=yes
32255 elif test x
$gcc_cv_ld != x
; then
32256 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32257 # Check if linker supports --eh-frame-hdr option
32258 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
32259 gcc_cv_ld_eh_frame_hdr
=yes
32264 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32265 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
32266 gcc_cv_ld_eh_frame_hdr
=yes
32273 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
32275 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32279 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32282 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32283 gcc_cv_ld_eh_frame_ciev3
=no
32284 if test $in_tree_ld = yes ; then
32285 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 \
32286 && test $in_tree_ld_is_elf = yes; then
32287 gcc_cv_ld_eh_frame_ciev3
=yes
32289 elif test x
$gcc_cv_ld != x
; then
32290 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32291 gcc_cv_ld_eh_frame_ciev3
=yes
32292 if test 0"$ld_date" -lt 20040513; then
32293 if test -n "$ld_date"; then
32294 # If there was date string, but was earlier than 2004-05-13, fail
32295 gcc_cv_ld_eh_frame_ciev3
=no
32296 elif test "$ld_vers_major" -lt 2; then
32297 gcc_cv_ld_eh_frame_ciev3
=no
32298 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32299 gcc_cv_ld_eh_frame_ciev3
=no
32305 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32306 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
32307 gcc_cv_ld_eh_frame_ciev3
=yes
32314 cat >>confdefs.h
<<_ACEOF
32315 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32319 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32322 $as_echo_n "checking linker position independent executable support... " >&6; }
32324 if test $in_tree_ld = yes ; then
32326 # Full PIE support on Solaris was only introduced in gld 2.26.
32327 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
32328 *) gcc_gld_pie_min_version
=15 ;;
32330 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 \
32331 && test $in_tree_ld_is_elf = yes; then
32334 elif test x
$gcc_cv_ld != x
; then
32335 # Check if linker supports -pie option
32336 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
32340 if echo "$ld_ver" |
grep GNU
> /dev
/null \
32341 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32348 *-*-solaris2.1
[1-9]*)
32349 # Solaris 11.3 added PIE support.
32350 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
32357 if test x
"$gcc_cv_ld_pie" = xyes
; then
32359 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32363 $as_echo "$gcc_cv_ld_pie" >&6; }
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32366 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32367 gcc_cv_ld_pie_copyreloc
=no
32368 if test $gcc_cv_ld_pie = yes ; then
32369 if test $in_tree_ld = yes ; then
32370 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
32371 gcc_cv_ld_pie_copyreloc
=yes
32373 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32374 # Check if linker supports -pie option with copy reloc
32376 i?
86-*-linux* | x86_64-
*-linux*)
32377 cat > conftest1.s
<<EOF
32380 .type a_glob, @object
32385 cat > conftest2.s
<<EOF
32388 .type main, @function
32390 movl %eax, a_glob(%rip)
32393 .section .data.rel,"aw",@progbits
32398 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32399 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
32400 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32401 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
32402 gcc_cv_ld_pie_copyreloc
=yes
32404 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32410 cat >>confdefs.h
<<_ACEOF
32411 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32415 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32418 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32419 gcc_cv_ld_eh_gc_sections
=no
32420 if test $in_tree_ld = yes ; then
32421 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 \
32422 && test $in_tree_ld_is_elf = yes; then
32423 gcc_cv_ld_eh_gc_sections
=yes
32425 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
32426 cat > conftest.s
<<EOF
32429 .type _start, @function
32432 .size _start, .-_start
32433 .section .text.foo,"ax",@progbits
32434 .type foo, @function
32438 .section .gcc_except_table.foo,"a",@progbits
32441 .section .eh_frame,"a",@progbits
32444 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32445 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32446 |
grep "gc-sections option ignored" > /dev
/null
; then
32447 gcc_cv_ld_eh_gc_sections
=no
32448 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32449 |
grep gcc_except_table
> /dev
/null
; then
32450 gcc_cv_ld_eh_gc_sections
=yes
32451 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32452 if test x
$gcc_cv_as_comdat_group != xyes
; then
32453 gcc_cv_ld_eh_gc_sections
=no
32454 cat > conftest.s
<<EOF
32457 .type _start, @function
32460 .size _start, .-_start
32461 .section .gnu.linkonce.t.foo,"ax",@progbits
32462 .type foo, @function
32466 .section .gcc_except_table.foo,"a",@progbits
32469 .section .eh_frame,"a",@progbits
32472 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32473 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32474 |
grep "gc-sections option ignored" > /dev
/null
; then
32475 gcc_cv_ld_eh_gc_sections
=no
32476 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32477 |
grep gcc_except_table
> /dev
/null
; then
32478 gcc_cv_ld_eh_gc_sections
=yes
32484 rm -f conftest.s conftest.o conftest
32488 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32489 gcc_cv_ld_eh_gc_sections
=no
32492 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
32494 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32498 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32501 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32502 gcc_cv_ld_eh_gc_sections_bug
=no
32503 if test $in_tree_ld = yes ; then
32504 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 \
32505 && test $in_tree_ld_is_elf = yes; then
32506 gcc_cv_ld_eh_gc_sections_bug
=yes
32508 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
32509 gcc_cv_ld_eh_gc_sections_bug
=yes
32510 cat > conftest.s
<<EOF
32513 .type _start, @function
32516 .size _start, .-_start
32517 .section .text.startup.foo,"ax",@progbits
32518 .type foo, @function
32522 .section .gcc_except_table.foo,"a",@progbits
32525 .section .eh_frame,"a",@progbits
32528 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32529 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32530 |
grep "gc-sections option ignored" > /dev
/null
; then
32532 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32533 |
grep gcc_except_table
> /dev
/null
; then
32534 gcc_cv_ld_eh_gc_sections_bug
=no
32537 rm -f conftest.s conftest.o conftest
32539 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
32541 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32545 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32548 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32549 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32550 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
32551 gcc_cv_ld_compress_debug
=1
32552 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
32553 # Detect zstd debug section compression support
32554 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
32555 gcc_cv_ld_compress_debug
=2
32558 case "${target}" in
32560 # Introduced in Solaris 11.2.
32561 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
32562 gcc_cv_ld_compress_debug
=1
32563 gcc_cv_ld_compress_debug_option
="-z compress-sections"
32565 gcc_cv_ld_compress_debug
=0
32569 # Assume linkers other than GNU ld don't support compessed debug
32571 gcc_cv_ld_compress_debug
=0
32576 cat >>confdefs.h
<<_ACEOF
32577 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32581 cat >>confdefs.h
<<_ACEOF
32582 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32586 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32588 if test x
"$ld64_flag" = x
"yes"; then
32590 # Set defaults for possibly untestable items.
32591 gcc_cv_ld64_export_dynamic
=0
32592 gcc_cv_ld64_platform_version
=0
32593 gcc_cv_ld64_demangle
=0
32595 if test "$build" = "$host"; then
32601 # On Darwin, because of FAT library support, it is often possible to execute
32602 # exes from compatible archs even when the host differs from the build system.
32603 case "$build","$host" in
32604 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
32605 darwin_try_test
=1;;
32609 # If the configurer specified a minimum ld64 version to be supported, then use
32610 # that to determine feature support.
32611 if test x
"${gcc_cv_ld64_version}" != x
; then
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32613 $as_echo_n "checking ld64 specified version... " >&6; }
32614 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32616 $as_echo "$gcc_cv_ld64_major" >&6; }
32617 if test "$gcc_cv_ld64_major" -ge 97; then
32618 gcc_cv_ld64_demangle
=1
32620 if test "$gcc_cv_ld64_major" -ge 236; then
32621 gcc_cv_ld64_export_dynamic
=1
32623 if test "$gcc_cv_ld64_major" -ge 512; then
32624 gcc_cv_ld64_platform_version
=1
32626 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32627 # If the version was not specified, try to find it.
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32629 $as_echo_n "checking linker version... " >&6; }
32630 if test x
"${gcc_cv_ld64_version}" = x
; then
32631 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32632 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32635 $as_echo "$gcc_cv_ld64_version" >&6; }
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32638 $as_echo_n "checking linker for -demangle support... " >&6; }
32639 gcc_cv_ld64_demangle
=1
32640 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32641 gcc_cv_ld64_demangle
=0
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32644 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32647 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32648 gcc_cv_ld64_export_dynamic
=1
32649 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32650 gcc_cv_ld64_export_dynamic
=0
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32653 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32656 $as_echo_n "checking linker for -platform_version support... " >&6; }
32657 gcc_cv_ld64_platform_version
=1
32658 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32659 gcc_cv_ld64_platform_version
=0
32661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32662 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32665 if test x
"${gcc_cv_ld64_version}" != x
; then
32667 cat >>confdefs.h
<<_ACEOF
32668 #define LD64_VERSION "${gcc_cv_ld64_version}"
32674 cat >>confdefs.h
<<_ACEOF
32675 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32680 cat >>confdefs.h
<<_ACEOF
32681 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32686 cat >>confdefs.h
<<_ACEOF
32687 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32692 if test x
"$dsymutil_flag" = x
"yes"; then
32694 # If the user specified a dsymutil path, then we will already have the
32695 # version string, otherwise, pick it up.
32696 if test x
"$gcc_cv_dsymutil" = x
; then
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32698 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32699 dsymutil_vers
="tool unspecified"
32700 elif test x
"$dsymutil_vers" = x
; then
32701 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32704 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32706 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32707 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
32708 dsymutil_kind
=DWARFUTILS
32709 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32710 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
32711 dsymutil_kind
=CLANG
32712 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32713 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
32715 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32717 dsymutil_kind
=DET_UNKNOWN
32718 dsymutil_vers
="0.0"
32720 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32721 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32722 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32723 if test x
"${dsymutil_minor}" = x
; then
32726 if test x
"${dsymutil_tiny}" = x
; then
32730 cat >>confdefs.h
<<_ACEOF
32731 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32735 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32739 win32 | pe | cygwin* | mingw32*)
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
32741 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
32742 gcc_cv_ld_broken_pe_dwarf5=yes
32743 if test $in_tree_ld = yes ; then
32744 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32745 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32746 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32747 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32748 gcc_cv_ld_broken_pe_dwarf5=no
32751 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32752 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32753 gcc_cv_ld_broken_pe_dwarf5=no
32756 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32758 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32762 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32765 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32766 gcc_cv_ld_disable_dynamicbase
=no
32767 if test $in_tree_ld = yes; then
32768 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 \
32769 gcc_cv_ld_disable_dynamicbase
=yes
32772 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
32773 gcc_cv_ld_disable_dynamicbase
=yes
32776 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
32778 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32782 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32791 $as_echo_n "checking linker --as-needed support... " >&6; }
32792 if ${gcc_cv_ld_as_needed+:} false
; then :
32793 $as_echo_n "(cached) " >&6
32795 gcc_cv_ld_as_needed
=no
32796 gcc_cv_ld_as_needed_option
='--as-needed'
32797 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
32798 if test $in_tree_ld = yes ; then
32799 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 \
32800 && test $in_tree_ld_is_elf = yes; then
32801 gcc_cv_ld_as_needed
=yes
32802 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32803 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32804 gcc_cv_ld_no_as_needed_option
='--pop-state'
32807 elif test x
$gcc_cv_ld != x
; then
32808 # Check if linker supports --as-needed and --no-as-needed options
32809 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
32810 gcc_cv_ld_as_needed
=yes
32811 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
32812 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
32813 && echo "$ld_ver" |
grep GNU
> /dev
/null \
32814 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32815 # Use these options only when both ld.bfd and ld.gold support
32816 # --push-state/--pop-state, which unfortunately wasn't added
32817 # at the same time.
32818 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32819 gcc_cv_ld_no_as_needed_option
='--pop-state'
32822 case "$target:$gnu_ld" in
32824 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32826 gcc_cv_ld_as_needed
=yes
32827 gcc_cv_ld_as_needed_option
="-z ignore"
32828 gcc_cv_ld_no_as_needed_option
="-z record"
32832 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32833 # dl_iterate_phdr, i.e. since Solaris 11.
32835 *-*-solaris2.1
[1-9]*)
32837 i?
86-*-* | x86_64-
*-*)
32838 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32839 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32840 gcc_cv_ld_as_needed
=no
32846 gcc_cv_ld_as_needed
=no
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32852 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32853 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
32855 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32858 cat >>confdefs.h
<<_ACEOF
32859 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32863 cat >>confdefs.h
<<_ACEOF
32864 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32870 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32871 saved_LDFLAGS
="$LDFLAGS"
32872 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
32873 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32875 /* end confdefs.h. */
32876 int main(void) {return 0;}
32878 if ac_fn_cxx_try_link
"$LINENO"; then :
32879 gcc_cv_ld_clearcap
=yes; break
32881 gcc_cv_ld_clearcap
=no
32883 rm -f core conftest.err conftest.
$ac_objext \
32884 conftest
$ac_exeext conftest.
$ac_ext
32886 LDFLAGS
="$saved_LDFLAGS"
32887 if test "x$gcc_cv_ld_clearcap" = xyes
; then
32889 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32891 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32895 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32901 emul_name
="-melf32lppc"
32904 emul_name
="-melf32ppc"
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32908 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32909 if ${gcc_cv_ld_ppc_attr+:} false
; then :
32910 $as_echo_n "(cached) " >&6
32912 gcc_cv_ld_ppc_attr
=no
32913 if test x
"$ld_is_gold" = xyes
; then
32914 gcc_cv_ld_ppc_attr
=yes
32915 elif test $in_tree_ld = yes ; then
32916 if test "$gcc_cv_gld_major_version" -eq 2 \
32917 -a "$gcc_cv_gld_minor_version" -ge 28 \
32918 -o "$gcc_cv_gld_major_version" -gt 2; then
32919 gcc_cv_ld_ppc_attr
=yes
32921 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32922 # check that merging the long double .gnu_attribute doesn't warn
32923 cat > conftest1.s
<<EOF
32926 cat > conftest2.s
<<EOF
32929 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32930 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32931 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
32932 && test ! -s conftest.err
; then
32933 gcc_cv_ld_ppc_attr
=yes
32935 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32940 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32941 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
32943 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32949 case "$target:$tm_file" in
32950 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
32953 emul_name
="-melf64lppc"
32956 emul_name
="-melf64ppc"
32959 emul_name
="-melf64lppc_fbsd"
32962 emul_name
="-melf64ppc_fbsd"
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32966 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32967 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
32968 $as_echo_n "(cached) " >&6
32970 gcc_cv_ld_no_dot_syms
=no
32971 if test x
"$ld_is_gold" = xyes
; then
32972 gcc_cv_ld_no_dot_syms
=yes
32973 elif test $in_tree_ld = yes ; then
32974 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
32975 gcc_cv_ld_no_dot_syms
=yes
32977 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32978 cat > conftest1.s
<<EOF
32982 cat > conftest2.s
<<EOF
32983 .section ".opd","aw"
32986 .type foo,@function
32988 .quad .LEfoo,.TOC.@tocbase,0
32994 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32995 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32996 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
32997 gcc_cv_ld_no_dot_syms
=yes
32999 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33004 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33005 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
33007 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33012 $as_echo_n "checking linker large toc support... " >&6; }
33013 if ${gcc_cv_ld_large_toc+:} false
; then :
33014 $as_echo_n "(cached) " >&6
33016 gcc_cv_ld_large_toc
=no
33017 if test x
"$ld_is_gold" = xyes
; then
33018 gcc_cv_ld_large_toc
=yes
33019 elif test $in_tree_ld = yes ; then
33020 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
33021 gcc_cv_ld_large_toc
=yes
33023 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
33024 cat > conftest.s
<<EOF
33025 .section ".tbss","awT",@nobits
33031 addis 9,13,ie0@got@tprel@ha
33032 ld 9,ie0@got@tprel@l(9)
33034 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
33035 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
33036 gcc_cv_ld_large_toc
=yes
33038 rm -f conftest conftest.o conftest.s
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33043 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33044 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33046 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33051 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33052 if ${gcc_cv_ld_toc_align+:} false
; then :
33053 $as_echo_n "(cached) " >&6
33055 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
33056 cat > conftest.s
<<EOF
33061 .section .data.rel.ro,"aw",@progbits
33066 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
33067 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
33068 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)) }'`
33070 rm -f conftest conftest.o conftest.s
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33075 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33076 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33078 cat >>confdefs.h
<<_ACEOF
33079 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33089 $as_echo_n "checking linker large toc support... " >&6; }
33090 if ${gcc_cv_ld_large_toc+:} false
; then :
33091 $as_echo_n "(cached) " >&6
33093 gcc_cv_ld_large_toc
=no
33094 if test x
$gcc_cv_as != x
; then
33095 cat > conftest.s
<<EOF
33105 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
33106 gcc_cv_ld_large_toc
=yes
33108 rm -f conftest conftest.o conftest.s
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33113 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33114 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33116 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33123 $as_echo_n "checking linker --build-id support... " >&6; }
33124 if ${gcc_cv_ld_buildid+:} false
; then :
33125 $as_echo_n "(cached) " >&6
33127 gcc_cv_ld_buildid
=no
33128 if test $in_tree_ld = yes ; then
33129 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33130 "$gcc_cv_gld_minor_version" -ge 18 -o \
33131 "$gcc_cv_gld_major_version" -gt 2 \
33132 && test $in_tree_ld_is_elf = yes; then
33133 gcc_cv_ld_buildid
=yes
33135 elif test x
$gcc_cv_ld != x
; then
33136 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
33137 gcc_cv_ld_buildid
=yes
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33142 $as_echo "$gcc_cv_ld_buildid" >&6; }
33143 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33145 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33149 # Check whether --enable-linker-build-id was given.
33150 if test "${enable_linker_build_id+set}" = set; then :
33151 enableval
=$enable_linker_build_id;
33153 enable_linker_build_id
=no
33157 if test x
"$enable_linker_build_id" = xyes
; then
33158 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33160 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33164 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33168 # In binutils 2.21, GNU ld gained support for new emulations fully
33169 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33171 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33172 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
33173 $as_echo_n "(cached) " >&6
33175 gcc_cv_ld_sol2_emulation
=no
33176 if test $in_tree_ld = yes ; then
33177 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33178 "$gcc_cv_gld_minor_version" -ge 21 -o \
33179 "$gcc_cv_gld_major_version" -gt 2 \
33180 && test $in_tree_ld_is_elf = yes; then
33181 gcc_cv_ld_sol2_emulation
=yes
33183 elif test x
$gcc_cv_ld != x
; then
33184 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
33185 grep _sol2
> /dev
/null
; then
33186 gcc_cv_ld_sol2_emulation
=yes
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33191 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33192 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
33194 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33199 $as_echo_n "checking linker --sysroot support... " >&6; }
33200 if ${gcc_cv_ld_sysroot+:} false
; then :
33201 $as_echo_n "(cached) " >&6
33203 gcc_cv_ld_sysroot
=no
33204 if test $in_tree_ld = yes ; then
33205 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
33206 gcc_cv_ld_sysroot
=yes
33208 elif test x
$gcc_cv_ld != x
; then
33209 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
33210 gcc_cv_ld_sysroot
=yes
33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33215 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33216 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
33218 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33224 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33226 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33227 if ${gcc_cv_solaris_crts+:} false
; then :
33228 $as_echo_n "(cached) " >&6
33230 gcc_cv_solaris_crts
=no
33231 if test x
$host != x
$target; then
33232 if test "x$with_sysroot" = xyes
; then
33233 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
33235 target_sysroot
="${with_sysroot}"
33238 target_libdir
="$target_sysroot/usr/lib"
33239 # At the time they were added, gcrt1.o became a symlink for backwards
33240 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33242 i?
86-*-solaris2* | x86_64-
*-solaris2*)
33243 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
33245 sparc
*-*-solaris2*)
33246 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
33250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33251 $as_echo "$gcc_cv_solaris_crts" >&6; }
33254 if test x
$gcc_cv_solaris_crts = xyes
; then
33256 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33260 # Check whether --enable-libssp was given.
33261 if test "${enable_libssp+set}" = set; then :
33262 enableval
=$enable_libssp; case "${enableval}" in
33266 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
33272 # Test for stack protector support in target C library.
33273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33274 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33275 if ${gcc_cv_libc_provides_ssp+:} false
; then :
33276 $as_echo_n "(cached) " >&6
33278 gcc_cv_libc_provides_ssp
=no
33279 if test "x$enable_libssp" = "xno"; then
33280 gcc_cv_libc_provides_ssp
=yes
33281 elif test "x$enable_libssp" = "xyes"; then
33282 gcc_cv_libc_provides_ssp
=no
33286 # All versions of musl provide stack protector
33287 gcc_cv_libc_provides_ssp
=yes;;
33288 *-*-linux* |
*-*-kfreebsd*-gnu)
33289 # glibc 2.4 and later provides __stack_chk_fail and
33290 # either __stack_chk_guard, or TLS access to stack guard canary.
33292 if test $glibc_version_major -gt 2 \
33293 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33294 gcc_cv_libc_provides_ssp
=yes
33297 if test -f $target_header_dir/features.h \
33298 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33299 $target_header_dir/features.h
> /dev
/null
; then
33300 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33301 $target_header_dir/features.h
> /dev
/null
&& \
33302 test -f $target_header_dir/bits
/uClibc_config.h
&& \
33303 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33304 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
33305 gcc_cv_libc_provides_ssp
=yes
33307 # all versions of Bionic support stack protector
33308 elif test -f $target_header_dir/sys
/cdefs.h \
33309 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33310 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
33311 gcc_cv_libc_provides_ssp
=yes
33316 # Avoid complicated tests (see
33317 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33318 # simply assert that glibc does provide this, which is true for all
33319 # realistically usable GNU/Hurd configurations.
33320 # All supported versions of musl provide it as well
33321 gcc_cv_libc_provides_ssp
=yes;;
33322 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
33323 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33324 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
33325 gcc_cv_libc_provides_ssp
=yes
33327 echo "no __stack_chk_fail on this target"
33331 *) gcc_cv_libc_provides_ssp
=no
;;
33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33336 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33338 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33340 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33344 # Check whether --enable-default-ssp was given.
33345 # Check whether --enable-default-ssp was given.
33346 if test "${enable_default_ssp+set}" = set; then :
33347 enableval
=$enable_default_ssp;
33348 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33350 ia64
*-*-*) enable_default_ssp
=no
;;
33351 *) enable_default_ssp
=$enableval ;;
33354 enable_default_ssp
=no
33357 enable_default_ssp
=no
33360 if test x
$enable_default_ssp = xyes
; then
33362 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33367 # Test for <sys/sdt.h> on the target.
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33370 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33371 if ${gcc_cv_sys_sdt_h+:} false
; then :
33372 $as_echo_n "(cached) " >&6
33375 gcc_cv_sys_sdt_h
=no
33376 if test -f $target_header_dir/sys
/sdt.h
; then
33377 gcc_cv_sys_sdt_h
=yes
33381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33382 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33383 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
33386 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33391 # Check if TFmode long double should be used by default or not.
33392 # Some glibc targets used DFmode long double, but with glibc 2.4
33393 # and later they can use TFmode.
33395 powerpc
*-*-linux* | \
33396 sparc
*-*-linux* | \
33400 # Check whether --with-long-double-128 was given.
33401 if test "${with_long_double_128+set}" = set; then :
33402 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
33406 s390
*-*-linux-musl*)
33407 gcc_cv_target_ldbl128
=yes
33409 powerpc
*-*-linux-musl*)
33410 gcc_cv_target_ldbl128
=no
33414 if test $glibc_version_major -gt 2 \
33415 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33416 gcc_cv_target_ldbl128
=yes
33419 gcc_cv_target_ldbl128
=no
33420 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33421 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
33422 && gcc_cv_target_ldbl128
=yes
33433 if test x
$gcc_cv_target_ldbl128 = xyes
; then
33435 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33439 # Check if TFmode long double target should use the IBM extended double or IEEE
33440 # 128-bit floating point formats if long doubles are 128-bits long. The long
33441 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33442 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33445 # Check whether --with-long-double-format was given.
33446 if test "${with_long_double_format+set}" = set; then :
33447 withval
=$with_long_double_format;
33448 case "$target:$with_long_double_format" in
33449 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
33452 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
33453 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33454 case "$with_cpu" in
33455 power7 | power8 | power9 | power1
*)
33459 as_fn_error $?
"Configuration option --with-long-double-format is only \
33460 supported if the default cpu is power7 or newer" "$LINENO" 5
33461 with_long_double_format
=""
33465 powerpc64
*-*-linux*:*)
33466 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33467 with_long_double_format
=""
33470 as_fn_error $?
"Configure option --with-long-double-format is only supported \
33471 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33472 with_long_double_format
=""
33478 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33479 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33480 gcc_cv_libc_provides_hwcap_in_tcb
=no
33484 if test $glibc_version_major -gt 2 \
33485 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33486 gcc_cv_libc_provides_hwcap_in_tcb
=yes
33490 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
33492 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33496 # Check if the target LIBC handles PT_GNU_STACK.
33497 gcc_cv_libc_gnustack
=unknown
33499 mips
*-*-linux-musl*)
33500 gcc_cv_libc_gnustack
=yes
33504 if test $glibc_version_major -gt 2 \
33505 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33506 gcc_cv_libc_gnustack
=yes
33510 if test x
$gcc_cv_libc_gnustack = xyes
; then
33512 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33517 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33518 gcc_cv_target_dl_iterate_phdr
=unknown
33521 # <link.h> needs both a dl_iterate_phdr declaration and support for
33522 # compilation with largefile support.
33523 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
33524 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
33525 gcc_cv_target_dl_iterate_phdr
=yes
33527 gcc_cv_target_dl_iterate_phdr
=no
33530 *-*-dragonfly* |
*-*-freebsd*)
33531 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
33532 gcc_cv_target_dl_iterate_phdr
=yes
33534 gcc_cv_target_dl_iterate_phdr
=no
33538 gcc_cv_target_dl_iterate_phdr
=yes
33542 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
33544 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33548 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33550 # We no longer support different GC mechanisms. Emit an error if
33551 # the user configures with --with-gc.
33553 # Check whether --with-gc was given.
33554 if test "${with_gc+set}" = set; then :
33555 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33559 # Libraries to use on the host. This will normally be set by the top
33560 # level Makefile. Here we simply capture the value for our Makefile.
33561 if test -z "${HOST_LIBS+set}"; then
33566 # Use the system's zlib library.
33568 # Use the system's zlib library.
33569 zlibdir
="-L\$(top_builddir)/../zlib"
33570 zlibinc
="-I\$(top_srcdir)/../zlib"
33572 # Check whether --with-system-zlib was given.
33573 if test "${with_system_zlib+set}" = set; then :
33574 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33587 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33588 # Check whether --enable-maintainer-mode was given.
33589 if test "${enable_maintainer_mode+set}" = set; then :
33590 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
33596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33597 $as_echo "$maintainer_mode" >&6; }
33599 if test "$maintainer_mode" = "yes"; then
33605 if test -z "$CTAGS"; then
33609 if test -z "$ETAGS"; then
33613 if test -z "$CSCOPE"; then
33619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33620 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33621 # Check whether --enable-link-mutex was given.
33622 if test "${enable_link_mutex+set}" = set; then :
33623 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33629 $as_echo "$do_link_mutex" >&6; }
33631 if test "$do_link_mutex" = "yes"; then
33633 { $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
33634 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33636 DO_LINK_MUTEX
=false
33641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33642 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33643 # Check whether --enable-link-serialization was given.
33644 if test "${enable_link_serialization+set}" = set; then :
33645 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
33647 do_link_serialization
=no
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33651 $as_echo "$do_link_serialization" >&6; }
33653 case "$do_link_serialization" in
33655 DO_LINK_SERIALIZATION
=1;;
33656 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
33657 DO_LINK_SERIALIZATION
=$do_link_serialization;;
33659 DO_LINK_SERIALIZATION
=;;
33661 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33669 # Make empty files to contain the specs and options for each language.
33670 # Then add #include lines to for a compiler that has specs and/or options.
33676 # These (without "all_") are set in each config-lang.in.
33677 # `language' must be a single word so is spelled singularly.
33680 all_outputs
='Makefile'
33681 # List of language configure and makefile fragments.
33682 all_lang_configurefrags
=
33683 all_lang_makefrags
=
33684 # Additional files for gengtype
33685 all_gtfiles
="$target_gtfiles"
33687 # These are the languages that are set in --enable-languages,
33688 # and are available in the GCC tree.
33689 all_selected_languages
=
33691 # Add the language fragments.
33692 # Languages are added via two mechanisms. Some information must be
33693 # recorded in makefile variables, these are defined in config-lang.in.
33694 # We accumulate them and plug them into the main Makefile.
33695 # The other mechanism is a set of hooks for each of the main targets
33696 # like `clean', `install', etc.
33698 language_hooks
="Make-hooks"
33700 for lang
in ${srcdir}/*/config-lang.
in
33702 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33704 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33705 if test "x$lang_alias" = x
33707 echo "$lang doesn't set \$language." 1>&2
33710 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33711 subdirs
="$subdirs $subdir"
33713 # $gcc_subdir is where the gcc integration files are to be found
33714 # for a language, both for internal compiler purposes (compiler
33715 # sources implementing front-end to GCC tree converters), and for
33716 # build infrastructure purposes (Make-lang.in, etc.)
33718 # This will be <subdir> (relative to $srcdir) if a line like
33719 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33720 # is found in <langdir>/config-lang.in, and will remain <langdir>
33723 # Except for the language alias (fetched above), the regular
33724 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33725 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33726 # only this and the language alias.
33728 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33729 if [ "$gcc_subdir" = "" ]; then
33730 gcc_subdir
="$subdir"
33733 case ",$enable_languages," in
33735 all_selected_languages
="$all_selected_languages $lang_alias"
33736 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
33737 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33748 .
${srcdir}/$gcc_subdir/config-lang.
in
33749 if test "x$language" = x
33751 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33756 case ",$enable_languages," in
33757 *,$lang_alias,*) ;;
33759 for i
in $subdir_requires; do
33760 test -f "${srcdir}/$i/config-lang.in" && continue
33768 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33769 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
33770 # Put c/Make-lang.in fragment first to match serialization languages order.
33771 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33773 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33775 if test -f $srcdir/$gcc_subdir/lang.opt
; then
33776 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33777 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33779 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
33780 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33782 all_languages
="$all_languages $language"
33783 all_compilers
="$all_compilers $compilers"
33784 all_outputs
="$all_outputs $outputs"
33785 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
33786 case ",$enable_languages," in
33789 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33799 for language
in $all_selected_languages
33801 check_languages
="$check_languages check-$language"
33804 selftest_languages
=
33805 for language
in $all_selected_languages
33807 selftest_languages
="$selftest_languages selftest-$language"
33810 # We link each language in with a set of hooks, reached indirectly via
33811 # lang.${target}. Only do so for selected languages.
33815 target_list
="all.cross start.encap rest.encap tags \
33816 install-common install-man install-info install-dvi install-pdf \
33817 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33818 mostlyclean clean distclean maintainer-clean install-plugin"
33820 for t
in $target_list
33823 for lang
in $all_selected_languages
33827 echo "lang.$t: $x" >> Make-hooks
33830 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33831 echo "SERIAL_LIST =" >> Make-hooks
33832 echo else >> Make-hooks
33836 serialization_languages
=c
33837 for lang
in $all_selected_languages
33839 test $lang = c
&& continue
33840 if test $lang = lto
; then
33841 serialization_languages
="$serialization_languages lto1 lto2"
33843 serialization_languages
="$serialization_languages $lang"
33846 for lang
in $serialization_languages
33848 test $lang = c
&& continue
33849 lang_cnt
=`expr $lang_cnt + 1`
33850 lang_list
=" $prev$lang_list"
33853 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33854 echo endif
>> Make-hooks
33855 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33856 echo "INDEX.c = 0" >> Make-hooks
33858 for lang
in $serialization_languages
33860 test $lang = c
&& continue
33861 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33862 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33863 lang_cnt
=`expr $lang_cnt - 1`
33864 lang_idx
=`expr $lang_idx + 1`
33868 # Option include files
33871 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
33872 option_includes
="option-includes.mk"
33881 echo "dir ." > .gdbinit
33882 echo "dir ${srcdir}" >> .gdbinit
33883 if test x
$gdb_needs_out_file_path = xyes
33885 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33887 if test "x$subdirs" != x
; then
33890 echo "dir ${srcdir}/$s" >> .gdbinit
33893 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33894 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33896 # Put a breakpoint on __asan_report_error to help with debugging buffer
33899 *-fsanitize=address
*)
33900 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33904 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33908 # Find a directory in which to install a shared libgcc.
33910 # Check whether --enable-version-specific-runtime-libs was given.
33911 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33912 enableval
=$enable_version_specific_runtime_libs;
33916 # Substitute configuration variables
33990 if test x
${build} = x
${host} ; then
33991 if test x
${host} = x
${target} ; then
33992 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33994 echo "Links are now set up to build a cross-compiler" 1>&2
33995 echo " from ${host} to ${target}." 1>&2
33998 if test x
${host} = x
${target} ; then
33999 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34000 echo " for ${target}." 1>&2
34002 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34003 echo " from ${host} to ${target}." 1>&2
34012 if test "x${ISLLIBS}" != "x" ; then
34014 $as_echo "#define HAVE_isl 1" >>confdefs.h
34018 # Check for plugin support
34019 # Check whether --enable-plugin was given.
34020 if test "${enable_plugin+set}" = set; then :
34021 enableval
=$enable_plugin; enable_plugin
=$enableval
34023 enable_plugin
=yes; default_plugin
=yes
34032 # Since plugin support under MinGW is not as straightforward as on
34033 # other platforms (e.g., we have to link import library, etc), we
34034 # only enable it if explicitly requested.
34035 if test x
"$default_plugin" = x
"yes"; then
34037 elif test x
"$enable_plugin" = x
"yes"; then
34038 # Use make's target variable to derive import library name.
34039 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34044 if test x
$build = x
$host; then
34045 export_sym_check
="nm${exeext} -g"
34046 elif test x
$host = x
$target; then
34047 export_sym_check
="$gcc_cv_nm -g"
34053 if test x
$build = x
$host; then
34054 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34055 elif test x
$host = x
$target; then
34056 export_sym_check
="$gcc_cv_objdump -T"
34058 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
34063 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34066 $as_echo_n "checking for exported symbols... " >&6; }
34067 if test "x$export_sym_check" != x
; then
34068 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34069 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34070 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34071 : # No need to use a flag
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34073 $as_echo "yes" >&6; }
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076 $as_echo "yes" >&6; }
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34078 $as_echo_n "checking for -rdynamic... " >&6; }
34079 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
34080 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
34081 plugin_rdynamic
=yes
34082 pluginlibs
="-rdynamic"
34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34088 $as_echo "$plugin_rdynamic" >&6; }
34091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34092 $as_echo "unable to check" >&6; }
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34098 $as_echo_n "checking for library containing dlopen... " >&6; }
34099 if ${ac_cv_search_dlopen+:} false
; then :
34100 $as_echo_n "(cached) " >&6
34102 ac_func_search_save_LIBS
=$LIBS
34103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34104 /* end confdefs.h. */
34106 /* Override any GCC internal prototype to avoid an error.
34107 Use char because int might match the return type of a GCC
34108 builtin and then its argument prototype would still apply. */
34121 for ac_lib
in '' dl
; do
34122 if test -z "$ac_lib"; then
34123 ac_res
="none required"
34126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
34128 if ac_fn_cxx_try_link
"$LINENO"; then :
34129 ac_cv_search_dlopen
=$ac_res
34131 rm -f core conftest.err conftest.
$ac_objext \
34133 if ${ac_cv_search_dlopen+:} false
; then :
34137 if ${ac_cv_search_dlopen+:} false
; then :
34140 ac_cv_search_dlopen
=no
34142 rm conftest.
$ac_ext
34143 LIBS
=$ac_func_search_save_LIBS
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34146 $as_echo "$ac_cv_search_dlopen" >&6; }
34147 ac_res
=$ac_cv_search_dlopen
34148 if test "$ac_res" != no
; then :
34149 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
34153 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
34154 pluginlibs
="$pluginlibs -ldl"
34158 # Check that we can build shared objects with -fPIC -shared
34159 saved_LDFLAGS
="$LDFLAGS"
34160 saved_CFLAGS
="$CFLAGS"
34161 saved_CXXFLAGS
="$CXXFLAGS"
34164 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34165 CFLAGS
="$CFLAGS -fPIC"
34166 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34167 CXXFLAGS
="$CXXFLAGS -fPIC"
34168 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
34171 CFLAGS
="$CFLAGS -fPIC"
34172 CXXFLAGS
="$CXXFLAGS -fPIC"
34173 LDFLAGS
="$LDFLAGS -fPIC -shared"
34176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34177 $as_echo_n "checking for -fPIC -shared... " >&6; }
34178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34179 /* end confdefs.h. */
34189 if ac_fn_cxx_try_link
"$LINENO"; then :
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34191 $as_echo "yes" >&6; }; have_pic_shared
=yes
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34194 $as_echo "no" >&6; }; have_pic_shared
=no
34196 rm -f core conftest.err conftest.
$ac_objext \
34197 conftest
$ac_exeext conftest.
$ac_ext
34198 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
34202 LDFLAGS
="$saved_LDFLAGS"
34203 CFLAGS
="$saved_CFLAGS"
34204 CXXFLAGS
="$saved_CXXFLAGS"
34206 # If plugin support had been requested but not available, fail.
34207 if test x
"$enable_plugin" = x
"no" ; then
34208 if test x
"$default_plugin" != x
"yes"; then
34210 Building GCC with plugin support requires a host that supports
34211 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34218 if test x
"$enable_plugin" = x
"yes"; then
34220 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34225 # Enable --enable-host-shared
34226 # Check whether --enable-host-shared was given.
34227 if test "${enable_host_shared+set}" = set; then :
34228 enableval
=$enable_host_shared;
34233 # Enable --enable-host-pie
34234 # Check whether --enable-host-pie was given.
34235 if test "${enable_host_pie+set}" = set; then :
34236 enableval
=$enable_host_pie;
34241 # Enable --enable-host-bind-now
34242 # Check whether --enable-host-bind-now was given.
34243 if test "${enable_host_bind_now+set}" = set; then :
34244 enableval
=$enable_host_bind_now;
34249 # Check whether --enable-libquadmath-support was given.
34250 if test "${enable_libquadmath_support+set}" = set; then :
34251 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
34253 ENABLE_LIBQUADMATH_SUPPORT
=yes
34256 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34258 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34263 # Specify what hash style to use by default.
34265 # Check whether --with-linker-hash-style was given.
34266 if test "${with_linker_hash_style+set}" = set; then :
34267 withval
=$with_linker_hash_style; case x
"$withval" in
34269 LINKER_HASH_STYLE
=sysv
34272 LINKER_HASH_STYLE
=gnu
34275 LINKER_HASH_STYLE
=both
34278 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34282 LINKER_HASH_STYLE
=''
34285 if test x
"${LINKER_HASH_STYLE}" != x
; then
34287 cat >>confdefs.h
<<_ACEOF
34288 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34293 # Specify what should be the default of -fdiagnostics-color option.
34295 # Check whether --with-diagnostics-color was given.
34296 if test "${with_diagnostics_color+set}" = set; then :
34297 withval
=$with_diagnostics_color; case x
"$withval" in
34299 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
34302 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34305 DIAGNOSTICS_COLOR_DEFAULT
=-1
34308 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
34311 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34315 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34319 cat >>confdefs.h
<<_ACEOF
34320 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34324 # Specify what should be the default of -fdiagnostics-urls option.
34326 # Check whether --with-diagnostics-urls was given.
34327 if test "${with_diagnostics_urls+set}" = set; then :
34328 withval
=$with_diagnostics_urls; case x
"$withval" in
34330 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
34333 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34336 DIAGNOSTICS_URLS_DEFAULT
=-1
34339 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
34342 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34346 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34350 cat >>confdefs.h
<<_ACEOF
34351 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34355 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34356 # of jit/jit-playback.cc.
34357 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34358 echo "gcc_driver_version: ${gcc_driver_version}"
34359 cat > gcc-driver-name.h
<<EOF
34360 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34363 # Check whether --enable-default-pie was given.
34364 # Check whether --enable-default-pie was given.
34365 if test "${enable_default_pie+set}" = set; then :
34366 enableval
=$enable_default_pie; enable_default_pie
=$enableval
34368 enable_default_pie
=no
34371 if test x
$enable_default_pie = xyes
; then
34373 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34378 # Check if -fno-PIE works.
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34380 $as_echo_n "checking for -fno-PIE option... " >&6; }
34381 if ${gcc_cv_c_no_fpie+:} false
; then :
34382 $as_echo_n "(cached) " >&6
34384 saved_CXXFLAGS
="$CXXFLAGS"
34385 CXXFLAGS
="$CXXFLAGS -fno-PIE"
34386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34387 /* end confdefs.h. */
34388 int main(void) {return 0;}
34390 if ac_fn_cxx_try_compile
"$LINENO"; then :
34391 gcc_cv_c_no_fpie
=yes
34393 gcc_cv_c_no_fpie
=no
34395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34396 CXXFLAGS
="$saved_CXXFLAGS"
34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34399 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34401 # Check if -no-pie works.
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34403 $as_echo_n "checking for -no-pie option... " >&6; }
34404 if ${gcc_cv_no_pie+:} false
; then :
34405 $as_echo_n "(cached) " >&6
34407 saved_LDFLAGS
="$LDFLAGS"
34408 LDFLAGS
="$LDFLAGS -no-pie"
34409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34410 /* end confdefs.h. */
34411 int main(void) {return 0;}
34413 if ac_fn_cxx_try_link
"$LINENO"; then :
34418 rm -f core conftest.err conftest.
$ac_objext \
34419 conftest
$ac_exeext conftest.
$ac_ext
34420 LDFLAGS
="$saved_LDFLAGS"
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34423 $as_echo "$gcc_cv_no_pie" >&6; }
34425 if test x
$enable_host_shared = xyes
; then
34427 elif test x
$enable_host_pie = xyes
; then
34429 elif test x
$gcc_cv_c_no_fpie = xyes
; then
34437 if test x
$enable_host_pie = xyes
; then
34439 elif test x
$gcc_cv_no_pie = xyes
; then
34445 if test x
$enable_host_bind_now = xyes
; then
34446 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
34451 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34452 # Check whether --enable-cet was given.
34453 if test "${enable_cet+set}" = set; then :
34454 enableval
=$enable_cet;
34455 case "$enableval" in
34457 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34466 $as_echo_n "checking for CET support... " >&6; }
34469 i
[34567]86-*-linux* | x86_64-
*-linux*)
34471 cet_save_CFLAGS
="$CFLAGS"
34472 CFLAGS
="$CFLAGS -fcf-protection"
34473 case "$enable_cet" in
34475 # Check if target supports multi-byte NOPs
34476 # and if compiler and assembler support CET.
34477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34478 /* end confdefs.h. */
34484 #if !defined(__SSE2__)
34485 #error target does not support multi-byte NOPs
34494 if ac_fn_cxx_try_compile
"$LINENO"; then :
34499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34502 # Check if compiler and assembler support CET.
34503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34504 /* end confdefs.h. */
34514 if ac_fn_cxx_try_compile
"$LINENO"; then :
34519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34520 if test $support_cet = "no"; then
34521 if test x
$enable_bootstrap != xno \
34522 && test -z "${with_build_subdir}" \
34523 && (test ! -f ..
/stage_current \
34524 ||
test `cat ../stage_current` != "stage1"); then
34525 # Require CET support only for the final GCC build.
34526 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34528 # Don't enable CET without CET support for non-bootstrap
34529 # build, in stage1 nor for build support.
34535 CFLAGS
="$cet_save_CFLAGS"
34543 cet_save_CFLAGS
="$CFLAGS"
34544 CFLAGS
="$CFLAGS -fcf-protection=none"
34545 cet_save_LDFLAGS
="$LDFLAGS"
34546 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34547 if test x
$may_have_cet = xyes
; then
34548 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34550 /* end confdefs.h. */
34560 if ac_fn_cxx_try_link
"$LINENO"; then :
34565 rm -f core conftest.err conftest.
$ac_objext \
34566 conftest
$ac_exeext conftest.
$ac_ext
34569 if test x
$may_have_cet = xyes
; then
34570 if test x
$cross_compiling = xno
; then
34571 if test "$cross_compiling" = yes; then :
34572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34574 as_fn_error $?
"cannot run test program while cross compiling
34575 See \`config.log' for more details" "$LINENO" 5; }
34577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34578 /* end confdefs.h. */
34588 if ac_fn_cxx_try_run
"$LINENO"; then :
34589 have_multi_byte_nop
=yes
34591 have_multi_byte_nop
=no
34593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34598 if test x
$have_multi_byte_nop = xyes
; then
34599 if test "$cross_compiling" = yes; then :
34600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34602 as_fn_error $?
"cannot run test program while cross compiling
34603 See \`config.log' for more details" "$LINENO" 5; }
34605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34606 /* end confdefs.h. */
34614 __attribute__ ((noinline, noclone))
34615 xxx (void (*f) (void))
34621 __attribute__ ((noinline, noclone))
34635 if ac_fn_cxx_try_run
"$LINENO"; then :
34640 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34641 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34645 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
34646 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34650 # Enable CET in cross compiler if possible so that it will run on both
34651 # CET and non-CET hosts.
34654 if test x
$enable_cet = xyes
; then
34655 CET_HOST_FLAGS
="-fcf-protection"
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34657 $as_echo "yes" >&6; }
34659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34660 $as_echo "no" >&6; }
34662 CFLAGS
="$cet_save_CFLAGS"
34663 LDFLAGS
="$cet_save_LDFLAGS"
34665 case x
$enable_languages in
34674 # Check linker supports '-z bndplt'
34675 ld_bndplt_support
=no
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34677 $as_echo_n "checking linker -z bndplt option... " >&6; }
34678 if test x
"$ld_is_gold" = xno
; then
34679 if test $in_tree_ld = yes ; then
34680 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
34681 ld_bndplt_support
=yes
34683 elif test x
$gcc_cv_ld != x
; then
34684 # Check if linker supports -z bndplt option
34685 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
34686 ld_bndplt_support
=yes
34690 if test x
"$ld_bndplt_support" = xyes
; then
34692 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34696 $as_echo "$ld_bndplt_support" >&6; }
34698 # Check linker supports '--push-state'/'--pop-state'
34699 ld_pushpopstate_support
=no
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34701 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34702 if test x
"$ld_is_gold" = xno
; then
34703 if test $in_tree_ld = yes ; then
34704 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
34705 ld_pushpopstate_support
=yes
34707 elif test x
$gcc_cv_ld != x
; then
34708 # Check if linker supports --push-state/--pop-state options
34709 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
34710 ld_pushpopstate_support
=yes
34714 if test x
"$ld_pushpopstate_support" = xyes
; then
34716 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34720 $as_echo "$ld_pushpopstate_support" >&6; }
34722 # On s390, float_t has historically been statically defined as double for no
34723 # good reason. To comply with the C standard in the light of this definition,
34724 # gcc has evaluated float expressions in double precision when in
34725 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34726 # a smooth transition towards the new model used by most architectures, where
34727 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34728 # float_t from that, this behavior can be configured with
34729 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34730 # the old model. When omitted, native builds and cross compiles that have target
34731 # libc headers will detect whether libc clamps float_t to double and in that
34732 # case maintain the old model. Otherwise, they will default to the new model.
34733 # Check whether --enable-s390-excess-float-precision was given.
34734 if test "${enable_s390_excess_float_precision+set}" = set; then :
34735 enableval
=$enable_s390_excess_float_precision;
34737 enable_s390_excess_float_precision
=auto
34743 if test x
"$enable_s390_excess_float_precision" = xauto
; then
34744 # Can we autodetect the behavior of the target libc?
34745 if test "$target" = "$host" -a "$host" = "$build"; then
34746 enable_s390_excess_float_precision
=autodetect
34747 elif test "x$with_headers" != xno
; then
34748 # cross build. are target headers available?
34749 # carefully coerce the build-system compiler to use target headers
34750 saved_CXXFLAGS
="$CXXFLAGS"
34751 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34752 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34753 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34755 /* end confdefs.h. */
34760 if ac_fn_cxx_try_compile
"$LINENO"; then :
34761 enable_s390_excess_float_precision
=autodetect
34763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34764 CXXFLAGS
="$saved_CXXFLAGS"
34767 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
34768 saved_CXXFLAGS
="$CXXFLAGS"
34769 if ! test "$target" = "$host" -a "$host" = "$build"; then
34770 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34771 unset CROSS_TEST_CXXFLAGS
34773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34774 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34775 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
34776 $as_echo_n "(cached) " >&6
34779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h. */
34782 #define __FLT_EVAL_METHOD__ 0
34784 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34787 if ac_fn_cxx_try_compile
"$LINENO"; then :
34788 gcc_cv_float_t_clamped_to_double
=yes
34790 gcc_cv_float_t_clamped_to_double
=no
34792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34795 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34796 CXXFLAGS
="$saved_CXXFLAGS"
34797 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
34799 # no way to detect behavior of target libc, default to new model
34800 enable_s390_excess_float_precision
=no
34805 if test x
"$enable_s390_excess_float_precision" = xyes
; then
34807 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34813 # Check if the linker supports '-z now'
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34816 $as_echo_n "checking linker -z now option... " >&6; }
34817 if test x
"$ld_is_gold" = xyes
; then
34819 elif test $in_tree_ld = yes ; then
34820 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
34823 elif test x
$gcc_cv_ld != x
; then
34824 # Check if linker supports -z now
34825 if $gcc_cv_ld --help 2>&1 |
grep -- '-z now' > /dev
/null
; then
34830 cat >>confdefs.h
<<_ACEOF
34831 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34835 $as_echo "$ld_now_support" >&6; }
34837 # Check if the linker supports '-z relro'
34838 ld_relro_support
=no
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34840 $as_echo_n "checking linker -z relro option... " >&6; }
34841 if test x
"$ld_is_gold" = xyes
; then
34842 ld_relro_support
=yes
34843 elif test $in_tree_ld = yes ; then
34844 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
34845 ld_relro_support
=yes
34847 elif test x
$gcc_cv_ld != x
; then
34848 # Check if linker supports -z relro
34849 if $gcc_cv_ld --help 2>&1 |
grep -- '-z relro' > /dev
/null
; then
34850 ld_relro_support
=yes
34854 cat >>confdefs.h
<<_ACEOF
34855 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34859 $as_echo "$ld_relro_support" >&6; }
34863 # -fhardened is only supported on GNU/Linux.
34864 fhardened_support
=yes
34867 fhardened_support
=no
34872 cat >>confdefs.h
<<_ACEOF
34873 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34877 $as_echo "$fhardened_support" >&6; }
34879 # Configure the subdirectories
34880 # AC_CONFIG_SUBDIRS($subdirs)
34882 # Create the Makefile
34883 # and configure language subdirectories
34884 ac_config_files
="$ac_config_files $all_outputs"
34887 ac_config_commands
="$ac_config_commands default"
34889 cat >confcache
<<\_ACEOF
34890 # This file is a shell script that caches the results of configure
34891 # tests run on this system so they can be shared between configure
34892 # scripts and configure runs, see configure's option --config-cache.
34893 # It is not useful on other systems. If it contains results you don't
34894 # want to keep, you may remove or edit it.
34896 # config.status only pays attention to the cache file if you give it
34897 # the --recheck option to rerun configure.
34899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34901 # following values.
34905 # The following way of writing the cache mishandles newlines in values,
34906 # but we know of no workaround that is simple, portable, and efficient.
34907 # So, we kill variables containing newlines.
34908 # Ultrix sh set writes to stderr and can't be redirected directly,
34909 # and sets the high bit in the cache file unless we assign to the vars.
34911 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34912 eval ac_val
=\$
$ac_var
34916 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34920 _ | IFS | as_nl
) ;; #(
34921 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
34922 *) { eval $ac_var=; unset $ac_var;} ;;
34928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34929 *${as_nl}ac_space
=\
*)
34930 # `set' does not quote correctly, so add quotes: double-quote
34931 # substitution turns \\\\ into \\, and sed turns \\ into \.
34934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34937 # `set' quotes correctly as required by POSIX, so do not add quotes.
34938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34951 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34952 if test -w "$cache_file"; then
34953 if test "x$cache_file" != "x/dev/null"; then
34954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34955 $as_echo "$as_me: updating cache $cache_file" >&6;}
34956 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
34957 cat confcache
>"$cache_file"
34959 case $cache_file in #(
34961 mv -f confcache
"$cache_file"$$
&&
34962 mv -f "$cache_file"$$
"$cache_file" ;; #(
34964 mv -f confcache
"$cache_file" ;;
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34975 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
34976 # Let make expand exec_prefix.
34977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
34979 DEFS
=-DHAVE_CONFIG_H
34984 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
34985 # 1. Remove the extension, and $U if already installed.
34986 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
34987 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
34988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34989 # will be set to the directory where LIBOBJS objects are built.
34990 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34991 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
34993 LIBOBJS
=$ac_libobjs
34995 LTLIBOBJS
=$ac_ltlibobjs
34999 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35000 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35004 : "${CONFIG_STATUS=./config.status}"
35006 ac_clean_files_save
=$ac_clean_files
35007 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
35008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35011 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35013 # Generated by $as_me.
35014 # Run this file to recreate the current configuration.
35015 # Compiler output produced by configure, useful for debugging
35016 # configure, is in config.log if it exists.
35019 ac_cs_recheck=false
35022 SHELL=\${CONFIG_SHELL-$SHELL}
35025 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
35026 ## -------------------- ##
35027 ## M4sh Initialization. ##
35028 ## -------------------- ##
35030 # Be more Bourne compatible
35031 DUALCASE
=1; export DUALCASE
# for MKS sh
35032 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
35035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35036 # is contrary to our usage. Disable this feature.
35037 alias -g '${1+"$@"}'='"$@"'
35038 setopt NO_GLOB_SUBST
35040 case `(set -o) 2>/dev/null` in #(
35052 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35053 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35056 # Prefer a ksh shell builtin over an external printf program on Solaris,
35057 # but without wasting forks for bash or zsh.
35058 if test -z "$BASH_VERSION$ZSH_VERSION" \
35059 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35060 as_echo='print
-r --'
35061 as_echo_n='print
-rn --'
35062 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35063 as_echo='printf %s
\n'
35064 as_echo_n='printf %s
'
35066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35067 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
35068 as_echo_n='/usr
/ucb
/echo -n'
35070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35071 as_echo_n_body='eval
35075 expr "X$arg" : "X\\(.*\\)$as_nl";
35076 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35078 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
35080 export as_echo_n_body
35081 as_echo_n='sh
-c $as_echo_n_body as_echo
'
35083 export as_echo_body
35084 as_echo='sh
-c $as_echo_body as_echo
'
35087 # The user is always right.
35088 if test "${PATH_SEPARATOR+set}" != set; then
35090 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35091 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35098 # We need space, tab and new line, in precisely that order. Quoting is
35099 # there to prevent editors from complaining about space-tab.
35100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35101 # splitting by setting IFS to empty value.)
35104 # Find who we are. Look in the path if we contain no directory separator.
35107 *[\\/]* ) as_myself=$0 ;;
35108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35109 for as_dir in $PATH
35112 test -z "$as_dir" && as_dir=.
35113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35119 # We did not find ourselves, most probably we were run as `sh COMMAND'
35120 # in which case we are not to be found in the path.
35121 if test "x$as_myself" = x
; then
35124 if test ! -f "$as_myself"; then
35125 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35129 # Unset variables that we do not need and which cause bugs (e.g. in
35130 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35131 # suppresses any "Segmentation fault" message there. '((' could
35132 # trigger a bug in pdksh 5.2.14.
35133 for as_var
in BASH_ENV ENV MAIL MAILPATH
35134 do eval test x\
${$as_var+set} = xset \
35135 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
35148 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
35151 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35152 # ----------------------------------------
35153 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35154 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35155 # script with STATUS, using 1 if that was 0.
35158 as_status
=$1; test $as_status -eq 0 && as_status
=1
35160 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
35161 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35163 $as_echo "$as_me: error: $2" >&2
35164 as_fn_exit
$as_status
35168 # as_fn_set_status STATUS
35169 # -----------------------
35170 # Set $? to STATUS, without forking.
35171 as_fn_set_status
()
35174 } # as_fn_set_status
35176 # as_fn_exit STATUS
35177 # -----------------
35178 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35182 as_fn_set_status
$1
35188 # Portably unset VAR.
35191 { eval $1=; unset $1;}
35193 as_unset
=as_fn_unset
35194 # as_fn_append VAR VALUE
35195 # ----------------------
35196 # Append the text in VALUE to the end of the definition contained in VAR. Take
35197 # advantage of any shell optimizations that allow amortized linear growth over
35198 # repeated appends, instead of the typical quadratic growth present in naive
35200 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
35201 eval 'as_fn_append ()
35212 # as_fn_arith ARG...
35213 # ------------------
35214 # Perform arithmetic evaluation on the ARGs, and store the result in the
35215 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35216 # must be portable across $(()) and expr.
35217 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
35218 eval 'as_fn_arith ()
35225 as_val
=`expr "$@" || test $? -eq 1`
35230 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35231 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35237 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35238 as_basename
=basename
35243 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35249 as_me
=`$as_basename -- "$0" ||
35250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35251 X"$0" : 'X\(//\)$' \| \
35252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35254 sed '/^.*\/\([^/][^/]*\)\/*$/{
35268 # Avoid depending upon Character Ranges.
35269 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35270 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35271 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35272 as_cr_digits
='0123456789'
35273 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35275 ECHO_C
= ECHO_N
= ECHO_T
=
35276 case `echo -n x` in #(((((
35278 case `echo 'xy\c'` in
35279 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35281 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
35288 rm -f conf$$ conf$$.exe conf$$.
file
35289 if test -d conf$$.dir
; then
35290 rm -f conf$$.dir
/conf$$.
file
35293 mkdir conf$$.dir
2>/dev
/null
35295 if (echo >conf$$.
file) 2>/dev
/null
; then
35296 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35298 # ... but there are two gotchas:
35299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35301 # In both cases, we have to default to `cp -pR'.
35302 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35304 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35312 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35313 rmdir conf$$.dir
2>/dev
/null
35318 # Create "$as_dir" as a directory, including parents if necessary.
35323 -*) as_dir
=.
/$as_dir;;
35325 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
35329 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35330 *) as_qdir
=$as_dir;;
35332 as_dirs
="'$as_qdir' $as_dirs"
35333 as_dir
=`$as_dirname -- "$as_dir" ||
35334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35335 X"$as_dir" : 'X\(//\)[^/]' \| \
35336 X"$as_dir" : 'X\(//\)$' \| \
35337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35338 $as_echo X"$as_dir" |
35339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35343 /^X\(\/\/\)[^/].*/{
35356 test -d "$as_dir" && break
35358 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35359 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
35363 if mkdir
-p .
2>/dev
/null
; then
35364 as_mkdir_p
='mkdir -p "$as_dir"'
35366 test -d .
/-p && rmdir .
/-p
35371 # as_fn_executable_p FILE
35372 # -----------------------
35373 # Test if FILE is an executable regular file.
35374 as_fn_executable_p
()
35376 test -f "$1" && test -x "$1"
35377 } # as_fn_executable_p
35378 as_test_x
='test -x'
35379 as_executable_p
=as_fn_executable_p
35381 # Sed expression to map a string onto a valid CPP name.
35382 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35384 # Sed expression to map a string onto a valid variable name.
35385 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35389 ## ----------------------------------- ##
35390 ## Main body of $CONFIG_STATUS script. ##
35391 ## ----------------------------------- ##
35393 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
35395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35396 # Save the log message, to keep $0 and so on meaningful, and to
35397 # report actual input values of CONFIG_FILES etc. instead of their
35398 # values after options handling.
35400 This file was extended by $as_me, which was
35401 generated by GNU Autoconf 2.69. Invocation command line was
35403 CONFIG_FILES = $CONFIG_FILES
35404 CONFIG_HEADERS = $CONFIG_HEADERS
35405 CONFIG_LINKS = $CONFIG_LINKS
35406 CONFIG_COMMANDS = $CONFIG_COMMANDS
35409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35414 case $ac_config_files in *"
35415 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
35418 case $ac_config_headers in *"
35419 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
35423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35424 # Files that config.status was made for.
35425 config_files="$ac_config_files"
35426 config_headers="$ac_config_headers"
35427 config_links="$ac_config_links"
35428 config_commands="$ac_config_commands"
35432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35434 \`$as_me' instantiates files and other configuration actions
35435 from templates according to the current configuration. Unless the files
35436 and actions are specified as TAGs, all are instantiated by default.
35438 Usage: $0 [OPTION]... [TAG]...
35440 -h, --help print this help, then exit
35441 -V, --version print version number and configuration settings, then exit
35442 --config print configuration, then exit
35443 -q, --quiet, --silent
35444 do not print progress messages
35445 -d, --debug don't remove temporary files
35446 --recheck update $as_me by reconfiguring in the same conditions
35447 --file=FILE[:TEMPLATE]
35448 instantiate the configuration file FILE
35449 --header=FILE[:TEMPLATE]
35450 instantiate the configuration header FILE
35452 Configuration files:
35455 Configuration headers:
35458 Configuration links:
35461 Configuration commands:
35464 Report bugs to the package provider."
35467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35471 configured by $0, generated by GNU Autoconf 2.69,
35472 with options \\"\$ac_cs_config\\"
35474 Copyright (C) 2012 Free Software Foundation, Inc.
35475 This config.status script is free software; the Free Software Foundation
35476 gives unlimited permission to copy, distribute and modify it."
35482 test -n "\$AWK" || AWK=awk
35485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35486 # The default lists apply if the user does not specify any file.
35492 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35493 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35497 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35509 # Handling of the options.
35510 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35512 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35513 $as_echo "$ac_cs_version"; exit ;;
35514 --config |
--confi |
--conf |
--con |
--co |
--c )
35515 $as_echo "$ac_cs_config"; exit ;;
35516 --debug |
--debu |
--deb |
--de |
--d |
-d )
35518 --file |
--fil |
--fi |
--f )
35521 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35522 '') as_fn_error $?
"missing file argument" ;;
35524 as_fn_append CONFIG_FILES
" '$ac_optarg'"
35525 ac_need_defaults
=false
;;
35526 --header |
--heade |
--head |
--hea )
35529 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35531 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
35532 ac_need_defaults
=false
;;
35534 # Conflict between --help and --header
35535 as_fn_error $?
"ambiguous option: \`$1'
35536 Try \`$0 --help' for more information.";;
35537 --help |
--hel |
-h )
35538 $as_echo "$ac_cs_usage"; exit ;;
35539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35540 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35543 # This is an error.
35544 -*) as_fn_error $?
"unrecognized option: \`$1'
35545 Try \`$0 --help' for more information." ;;
35547 *) as_fn_append ac_config_targets
" $1"
35548 ac_need_defaults
=false
;;
35554 ac_configure_extra_args
=
35556 if $ac_cs_silent; then
35558 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35563 if \$ac_cs_recheck; then
35564 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35567 CONFIG_SHELL='$SHELL'
35568 export CONFIG_SHELL
35573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35578 ## Running $as_me. ##
35584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35588 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35589 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35590 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35591 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35593 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35594 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35595 LINGUAS="${LINGUAS-%UNSET%}"
35601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35603 # Handling of arguments.
35604 for ac_config_target
in $ac_config_targets
35606 case $ac_config_target in
35607 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
35608 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
35609 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
35610 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
35611 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
35612 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35613 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
35614 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35615 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35616 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
35617 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
35619 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35624 # If the user did not use the arguments to specify the items to instantiate,
35625 # then the envvar interface is used. Set only those that are not.
35626 # We use the long form for the default assignment because of an extremely
35627 # bizarre bug on SunOS 4.1.3.
35628 if $ac_need_defaults; then
35629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35631 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
35632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35635 # Have a temporary directory for convenience. Make it in the build tree
35636 # simply because there is no reason against having it here, and in addition,
35637 # creating and moving files from /tmp can sometimes cause problems.
35638 # Hook for its removal unless debugging.
35639 # Note that there is a small window in which the directory will not be cleaned:
35640 # after its creation but before its name has been assigned to `$tmp'.
35644 trap 'exit_status=$?
35645 : "${ac_tmp:=$tmp}"
35646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35648 trap 'as_fn_exit 1' 1 2 13 15
35650 # Create a (secure) tmp directory for tmp files.
35653 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35657 tmp
=.
/conf$$
-$RANDOM
35658 (umask 077 && mkdir
"$tmp")
35659 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
35662 # Set up the scripts for CONFIG_FILES section.
35663 # No need to generate them if there are no CONFIG_FILES.
35664 # This happens for instance with `./config.status config.h'.
35665 if test -n "$CONFIG_FILES"; then
35667 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
35668 ac_cs_awk_getline
=:
35669 ac_cs_awk_pipe_init
=
35670 ac_cs_awk_read_file
='
35671 while ((getline aline < (F[key])) > 0)
35674 ac_cs_awk_pipe_fini
=
35676 ac_cs_awk_getline
=false
35677 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
35678 ac_cs_awk_read_file
='
35680 print "cat " F[key] " &&"
35681 '$ac_cs_awk_pipe_init
35682 # The final `:' finishes the AND list.
35683 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
35685 ac_cr
=`echo X | tr X '\015'`
35686 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35687 # But we know of no other shell where ac_cr would be empty at this
35688 # point, so we can use a bashism as a fallback.
35689 if test "x$ac_cr" = x
; then
35690 eval ac_cr
=\$
\'\\r
\'
35692 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35693 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35696 ac_cs_awk_cr
=$ac_cr
35699 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35702 # Create commands to substitute file output variables.
35704 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35705 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35706 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
35709 } >conf$
$files.sh
&&
35710 . .
/conf$
$files.sh ||
35711 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
35712 rm -f conf$
$files.sh
35715 echo "cat >conf$$subs.awk <<_ACEOF" &&
35716 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35718 } >conf$$subs.sh ||
35719 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35720 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35722 for ac_last_try in false false false false false :; do
35723 . ./conf$$subs.sh ||
35724 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35726 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
35727 if test $ac_delim_n = $ac_delim_num; then
35729 elif $ac_last_try; then
35730 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35732 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35735 rm -f conf$$subs.sh
35737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35738 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35742 s/^/S["/; s
/!.
*/"]=/
35752 s/\(.\{148\}\)..*/\1/
35754 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35759 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35766 s/\(.\{148\}\)..*/\1/
35768 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35772 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35777 ' <conf$$subs.awk | sed '
35782 ' >>$CONFIG_STATUS || ac_write_fail=1
35783 rm -f conf$$subs.awk
35784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35786 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35787 for (key in S) S_is_set[key] = 1
35789 \$ac_cs_awk_pipe_init
35793 nfields = split(line, field, "@
")
35795 len = length(field[1])
35796 for (i = 2; i < nfields; i++) {
35798 keylen = length(key)
35799 if (S_is_set[key]) {
35801 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35802 len += length(value) + length(field[++i])
35807 if (nfields == 3 && !substed) {
35809 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35810 \$ac_cs_awk_read_file
35816 \$ac_cs_awk_pipe_fini
35819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35820 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35821 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35824 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35825 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35830 # trailing colons and then remove the whole line if VPATH becomes empty
35831 # (actually we leave an empty line to preserve line numbers).
35832 if test "x
$srcdir" = x.; then
35833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35852 fi # test -n "$CONFIG_FILES"
35854 # Set up the scripts for CONFIG_HEADERS section.
35855 # No need to generate them if there are no CONFIG_HEADERS.
35856 # This happens for instance with `./config.status Makefile'.
35857 if test -n "$CONFIG_HEADERS"; then
35858 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35862 # Transform confdefs.h into an awk script `defines.awk', embedded as
35863 # here-document in config.status, that substitutes the proper values into
35864 # config.h.in to produce config.h.
35866 # Create a delimiter string that does not exist in confdefs.h, to ease
35867 # handling of long lines.
35869 for ac_last_try in false false :; do
35870 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35871 if test -z "$ac_tt"; then
35873 elif $ac_last_try; then
35874 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35876 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35880 # For the awk script, D is an array of macro values keyed by name,
35881 # likewise P contains macro parameters if any. Preserve backslash
35882 # newline sequences.
35884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35886 s/.\{148\}/&'"$ac_delim"'/g
35889 s/^[ ]*#[ ]*define[ ][ ]*/ /
35896 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35898 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35903 D["\
1"]=" \
3\\\\\\n
"\\/p
35905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35910 s/.\{148\}/&'"$ac_delim"'/g
35915 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35918 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35920 ' <confdefs.h | sed '
35921 s/'"$ac_delim"'/"\\\
35922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35925 for (key in D) D_is_set[key] = 1
35928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35930 split(line, arg, " ")
35931 if (arg[1] == "#") {
35935 defundef
= substr
(arg
[1], 2)
35938 split(mac1
, mac2
, "(") #)
35940 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35941 if (D_is_set
[macro
]) {
35942 # Preserve the white space surrounding the "#".
35943 print prefix
"define", macro P
[macro
] D
[macro
]
35946 # Replace #undef with comments. This is necessary, for example,
35947 # in the case of _POSIX_SOURCE, which is predefined and required
35948 # on some systems where configure will not decide to define it.
35949 if (defundef
== "undef") {
35950 print
"/*", prefix defundef
, macro
, "*/"
35958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35959 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35960 fi # test -n "$CONFIG_HEADERS"
35963 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35968 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35970 case $ac_mode$ac_tag in
35972 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35973 :[FH
]-) ac_tag
=-:-;;
35974 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35991 -) ac_f
="$ac_tmp/stdin";;
35992 *) # Look for the file first in the build tree, then in the source tree
35993 # (if the path is not absolute). The absolute path cannot be DOS-style,
35994 # because $ac_f cannot contain `:'.
35998 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
36000 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36002 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36003 as_fn_append ac_file_inputs
" '$ac_f'"
36006 # Let's still pretend it is `configure' which instantiates (i.e., don't
36007 # use $as_me), people would be surprised to read:
36008 # /* config.h. Generated by config.status. */
36009 configure_input
='Generated from '`
36010 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36012 if test x
"$ac_file" != x-
; then
36013 configure_input
="$ac_file. $configure_input"
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36015 $as_echo "$as_me: creating $ac_file" >&6;}
36017 # Neutralize special characters interpreted by sed in replacement strings.
36018 case $configure_input in #(
36019 *\
&* |
*\|
* |
*\\* )
36020 ac_sed_conf_input
=`$as_echo "$configure_input" |
36021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36022 *) ac_sed_conf_input
=$configure_input;;
36026 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
36027 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
36032 ac_dir
=`$as_dirname -- "$ac_file" ||
36033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36034 X"$ac_file" : 'X\(//\)[^/]' \| \
36035 X"$ac_file" : 'X\(//\)$' \| \
36036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36037 $as_echo X"$ac_file" |
36038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36042 /^X\(\/\/\)[^/].*/{
36055 as_dir
="$ac_dir"; as_fn_mkdir_p
36059 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36061 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36062 # A ".." for each directory in $ac_dir_suffix.
36063 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36064 case $ac_top_builddir_sub in
36065 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36066 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36069 ac_abs_top_builddir
=$ac_pwd
36070 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36071 # for backward compatibility:
36072 ac_top_builddir
=$ac_top_build_prefix
36075 .
) # We are building in place.
36077 ac_top_srcdir
=$ac_top_builddir_sub
36078 ac_abs_top_srcdir
=$ac_pwd ;;
36079 [\\/]* | ?
:[\\/]* ) # Absolute name.
36080 ac_srcdir
=$srcdir$ac_dir_suffix;
36081 ac_top_srcdir
=$srcdir
36082 ac_abs_top_srcdir
=$srcdir ;;
36083 *) # Relative name.
36084 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36085 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36086 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36088 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36098 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
36099 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
36103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36104 # If the template does not know about datarootdir, expand it.
36105 # FIXME: This hack should be removed a few years after 2.60.
36106 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36118 *datarootdir
*) ac_datarootdir_seen
=yes;;
36119 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 ac_datarootdir_hack='
36125 s&@datadir@&$datadir&g
36126 s&@docdir@&$docdir&g
36127 s&@infodir@&$infodir&g
36128 s&@localedir@&$localedir&g
36129 s&@mandir@&$mandir&g
36130 s&\\\${datarootdir}&$datarootdir&g' ;;
36134 # Neutralize VPATH when `$srcdir' = `.'.
36135 # Shell code in configure.ac might set extrasub.
36136 # FIXME: do we really want to maintain this feature?
36137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36138 ac_sed_extra="$ac_vpsub
36141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36143 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36144 s|@configure_input@|
$ac_sed_conf_input|
;t t
36145 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36146 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
36147 s
&@srcdir@
&$ac_srcdir&;t t
36148 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36149 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36150 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36151 s
&@builddir@
&$ac_builddir&;t t
36152 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36153 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36154 s
&@INSTALL@
&$ac_INSTALL&;t t
36155 $ac_datarootdir_hack
36157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36158 if $ac_cs_awk_getline; then
36159 $AWK -f "$ac_tmp/subs.
awk"
36161 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
36163 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
36165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
36167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36168 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
36169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36170 which seems to be undefined. Please make sure it is defined" >&5
36171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36172 which seems to be undefined. Please make sure it is defined" >&2;}
36174 rm -f "$ac_tmp/stdin"
36176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36185 if test x"$ac_file" != x-; then
36187 $as_echo "/* $configure_input */" \
36188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36189 } >"$ac_tmp/config.h" \
36190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36191 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36196 mv "$ac_tmp/config.h" "$ac_file" \
36197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36200 $as_echo "/* $configure_input */" \
36201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36202 || as_fn_error $? "could not create -" "$LINENO" 5
36210 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
36213 # Prefer the file from the source tree if names are identical.
36214 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36215 ac_source=$srcdir/$ac_source
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36219 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36221 if test ! -r "$ac_source"; then
36222 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36226 # Try a relative symlink, then a hard link, then a copy.
36228 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36229 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36231 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36232 ln "$ac_source" "$ac_file" 2>/dev/null ||
36233 cp -p "$ac_source" "$ac_file" ||
36234 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36237 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36238 $as_echo "$as_me: executing $ac_file commands" >&6;}
36243 case $ac_file$ac_mode in
36244 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36246 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36247 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36249 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36252 for ac_file in $CONFIG_FILES; do
36253 # Support "outfile[:infile[:infile...]]"
36255 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
36257 # PO directories have a Makefile.in generated from Makefile.in.in.
36258 case "$ac_file" in */Makefile.in)
36259 # Adjust a relative srcdir.
36260 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
36261 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
36262 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
36263 # In autoconf-2.13 it is called $ac_given_srcdir.
36264 # In autoconf-2.50 it is called $srcdir.
36265 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36266 case "$ac_given_srcdir" in
36267 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
36268 /*) top_srcdir="$ac_given_srcdir" ;;
36269 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36271 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36272 rm -f "$ac_dir/POTFILES"
36273 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36274 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36275 POMAKEFILEDEPS="POTFILES.in"
36276 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36277 # on $ac_dir but don't depend on user-specified configuration
36279 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36280 # The LINGUAS file contains the set of available languages.
36281 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36282 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36284 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36285 # Hide the ALL_LINGUAS assigment from automake.
36286 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36287 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36289 # The set of available languages was given in configure.ac.
36290 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36292 case "$ac_given_srcdir" in
36294 *) srcdirpre
='$(srcdir)/' ;;
36300 for lang
in $ALL_LINGUAS; do
36301 POFILES
="$POFILES $srcdirpre$lang.po"
36302 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36303 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36304 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36306 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36307 # environment variable.
36309 if test -n "$ALL_LINGUAS"; then
36310 for presentlang
in $ALL_LINGUAS; do
36312 if test "%UNSET%" != "$LINGUAS"; then
36313 desiredlanguages
="$LINGUAS"
36315 desiredlanguages
="$ALL_LINGUAS"
36317 for desiredlang
in $desiredlanguages; do
36318 # Use the presentlang catalog if desiredlang is
36319 # a. equal to presentlang, or
36320 # b. a variant of presentlang (because in this case,
36321 # presentlang can be used as a fallback for messages
36322 # which are not translated in the desiredlang catalog).
36323 case "$desiredlang" in
36324 "$presentlang"*) useit
=yes;;
36327 if test $useit = yes; then
36328 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36333 if test -n "$INST_LINGUAS"; then
36334 for lang
in $INST_LINGUAS; do
36335 CATALOGS
="$CATALOGS $lang.gmo"
36338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36339 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"
36340 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36341 if test -f "$f"; then
36343 *.orig |
*.bak |
*~
) ;;
36344 *) cat "$f" >> "$ac_dir/Makefile" ;;
36352 "as":F
) chmod +x as
;;
36353 "collect-ld":F
) chmod +x collect-ld
;;
36354 "nm":F
) chmod +x nm
;;
36355 "dsymutil":F
) chmod +x dsymutil
;;
36357 case ${CONFIG_HEADERS} in
36358 *auto-host.h
:config.
in*)
36361 # Make sure all the subdirs exist.
36362 for d
in $subdirs doc build common c-family
36364 test -d $d || mkdir
$d
36374 ac_clean_files
=$ac_clean_files_save
36376 test $ac_write_fail = 0 ||
36377 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36380 # configure is writing to config.log, and then calls config.status.
36381 # config.status does its own redirection, appending to config.log.
36382 # Unfortunately, on DOS this fails, as config.log is still kept open
36383 # by configure, so config.status won't be able to write to it; its
36384 # output is simply discarded. So we exec the FD to /dev/null,
36385 # effectively closing config.log, so it can be properly (re)opened and
36386 # appended to by config.status. When coming back to configure, we
36387 # need to make the FD available again.
36388 if test "$no_create" != yes; then
36390 ac_config_status_args
=
36391 test "$silent" = yes &&
36392 ac_config_status_args
="$ac_config_status_args --quiet"
36394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36397 # would make configure fail if this is the last instruction.
36398 $ac_cs_success || as_fn_exit
1
36400 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36402 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}