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
826 MAKEINFO_TOC_INLINE_FLAG
840 omp_device_property_deps
841 omp_device_properties
843 real_target_noncanonical
844 enable_as_accelerator
854 DEFAULT_INSNEMIT_PARTITIONS
855 DEFAULT_MATCHPD_PARTITIONS
862 valgrind_path_defines
894 CROSS_SYSTEM_HEADER_DIR
895 TARGET_SYSTEM_ROOT_DEFINE
897 SYSROOT_CFLAGS_FOR_TARGET
943 program_transform_name
954 ac_subst_files
='option_includes
957 enable_option_checking
960 with_native_system_header_dir
964 with_gxx_libcxx_include_dir
966 enable_generated_files_in_srcdir
974 enable_build_format_warnings
978 enable_gather_detailed_mem_stats
979 enable_valgrind_annotations
982 with_stack_clash_protection_guard_size
983 with_matchpd_partitions
984 with_insnemit_partitions
999 with_documentation_root_url
1000 with_changes_root_url
1003 with_multilib_generator
1008 with_libiconv_prefix
1010 enable_sjlj_exceptions
1011 enable_win32_utf8_manifest
1012 with_gcc_major_version_only
1017 enable_mingw_wildcard
1018 enable_large_address_aware
1019 enable_leading_mingw64_underscores
1021 enable_frame_pointer
1022 enable_win32_registry
1027 enable_darwin_at_rpath
1028 with_darwin_extra_rpath
1032 enable_gnu_indirect_function
1033 enable_initfini_array
1035 enable_newlib_nano_formatted_io
1036 enable_standard_branch_protection
1037 enable_fix_cortex_a53_835769
1038 enable_fix_cortex_a53_843419
1040 enable_gnu_unique_object
1041 enable_linker_build_id
1044 with_long_double_128
1045 with_long_double_format
1048 enable_maintainer_mode
1050 enable_link_serialization
1051 enable_version_specific_runtime_libs
1055 enable_host_bind_now
1056 enable_libquadmath_support
1057 with_linker_hash_style
1058 with_diagnostics_color
1059 with_diagnostics_urls
1062 enable_s390_excess_float_precision
1064 ac_precious_vars
='build_alias
1083 # Initialize some variables set by options.
1085 ac_init_version
=false
1086 ac_unrecognized_opts
=
1087 ac_unrecognized_sep
=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file
=/dev
/null
1097 program_transform_name
=s
,x
,x
,
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir
='${exec_prefix}/bin'
1112 sbindir
='${exec_prefix}/sbin'
1113 libexecdir
='${exec_prefix}/libexec'
1114 datarootdir
='${prefix}/share'
1115 datadir
='${datarootdir}'
1116 sysconfdir
='${prefix}/etc'
1117 sharedstatedir
='${prefix}/com'
1118 localstatedir
='${prefix}/var'
1119 includedir
='${prefix}/include'
1120 oldincludedir
='/usr/include'
1121 docdir
='${datarootdir}/doc/${PACKAGE}'
1122 infodir
='${datarootdir}/info'
1127 libdir
='${exec_prefix}/lib'
1128 localedir
='${datarootdir}/locale'
1129 mandir
='${datarootdir}/man'
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\
$ac_option
1143 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1154 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1156 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1157 bindir
=$ac_optarg ;;
1159 -build |
--build |
--buil |
--bui |
--bu)
1160 ac_prev
=build_alias
;;
1161 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1162 build_alias
=$ac_optarg ;;
1164 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1165 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1166 ac_prev
=cache_file
;;
1167 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1168 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1169 cache_file
=$ac_optarg ;;
1171 --config-cache |
-C)
1172 cache_file
=config.cache
;;
1174 -datadir |
--datadir |
--datadi |
--datad)
1176 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1177 datadir
=$ac_optarg ;;
1179 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1180 |
--dataroo |
--dataro |
--datar)
1181 ac_prev
=datarootdir
;;
1182 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1183 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1184 datarootdir
=$ac_optarg ;;
1186 -disable-* |
--disable-*)
1187 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid feature name: $ac_useropt"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_
$ac_useropt"
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval enable_
$ac_useropt=no
;;
1202 -docdir |
--docdir |
--docdi |
--doc |
--do)
1204 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1205 docdir
=$ac_optarg ;;
1207 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1209 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1210 dvidir
=$ac_optarg ;;
1212 -enable-* |
--enable-*)
1213 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1216 as_fn_error $?
"invalid feature name: $ac_useropt"
1217 ac_useropt_orig
=$ac_useropt
1218 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "enable_
$ac_useropt"
1223 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep
=', ';;
1226 eval enable_
$ac_useropt=\
$ac_optarg ;;
1228 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1229 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1230 |
--exec |
--exe |
--ex)
1231 ac_prev
=exec_prefix
;;
1232 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1233 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1234 |
--exec=* |
--exe=* |
--ex=*)
1235 exec_prefix
=$ac_optarg ;;
1237 -gas |
--gas |
--ga |
--g)
1238 # Obsolete; use --with-gas.
1241 -help |
--help |
--hel |
--he |
-h)
1242 ac_init_help
=long
;;
1243 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1244 ac_init_help
=recursive
;;
1245 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1246 ac_init_help
=short
;;
1248 -host |
--host |
--hos |
--ho)
1249 ac_prev
=host_alias
;;
1250 -host=* |
--host=* |
--hos=* |
--ho=*)
1251 host_alias
=$ac_optarg ;;
1253 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1255 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1257 htmldir
=$ac_optarg ;;
1259 -includedir |
--includedir |
--includedi |
--included |
--include \
1260 |
--includ |
--inclu |
--incl |
--inc)
1261 ac_prev
=includedir
;;
1262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1264 includedir
=$ac_optarg ;;
1266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1269 infodir
=$ac_optarg ;;
1271 -libdir |
--libdir |
--libdi |
--libd)
1273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1274 libdir
=$ac_optarg ;;
1276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1277 |
--libexe |
--libex |
--libe)
1278 ac_prev
=libexecdir
;;
1279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1280 |
--libexe=* |
--libex=* |
--libe=*)
1281 libexecdir
=$ac_optarg ;;
1283 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1284 ac_prev
=localedir
;;
1285 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1286 localedir
=$ac_optarg ;;
1288 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1289 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1290 ac_prev
=localstatedir
;;
1291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1293 localstatedir
=$ac_optarg ;;
1295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1298 mandir
=$ac_optarg ;;
1300 -nfp |
--nfp |
--nf)
1301 # Obsolete; use --without-fp.
1304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1305 |
--no-cr |
--no-c |
-n)
1308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1314 |
--oldin |
--oldi |
--old |
--ol |
--o)
1315 ac_prev
=oldincludedir
;;
1316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1319 oldincludedir
=$ac_optarg ;;
1321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1324 prefix
=$ac_optarg ;;
1326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1327 |
--program-pre |
--program-pr |
--program-p)
1328 ac_prev
=program_prefix
;;
1329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1331 program_prefix
=$ac_optarg ;;
1333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1334 |
--program-suf |
--program-su |
--program-s)
1335 ac_prev
=program_suffix
;;
1336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1338 program_suffix
=$ac_optarg ;;
1340 -program-transform-name |
--program-transform-name \
1341 |
--program-transform-nam |
--program-transform-na \
1342 |
--program-transform-n |
--program-transform- \
1343 |
--program-transform |
--program-transfor \
1344 |
--program-transfo |
--program-transf \
1345 |
--program-trans |
--program-tran \
1346 |
--progr-tra |
--program-tr |
--program-t)
1347 ac_prev
=program_transform_name
;;
1348 -program-transform-name=* |
--program-transform-name=* \
1349 |
--program-transform-nam=* |
--program-transform-na=* \
1350 |
--program-transform-n=* |
--program-transform-=* \
1351 |
--program-transform=* |
--program-transfor=* \
1352 |
--program-transfo=* |
--program-transf=* \
1353 |
--program-trans=* |
--program-tran=* \
1354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1355 program_transform_name
=$ac_optarg ;;
1357 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1359 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1360 pdfdir
=$ac_optarg ;;
1362 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1364 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1367 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1368 |
-silent |
--silent |
--silen |
--sile |
--sil)
1371 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1373 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1375 sbindir
=$ac_optarg ;;
1377 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1378 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1379 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1381 ac_prev
=sharedstatedir
;;
1382 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1383 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1384 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1386 sharedstatedir
=$ac_optarg ;;
1388 -site |
--site |
--sit)
1390 -site=* |
--site=* |
--sit=*)
1393 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1395 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1396 srcdir
=$ac_optarg ;;
1398 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1399 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1400 ac_prev
=sysconfdir
;;
1401 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1402 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1403 sysconfdir
=$ac_optarg ;;
1405 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1406 ac_prev
=target_alias
;;
1407 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1408 target_alias
=$ac_optarg ;;
1410 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1413 -version |
--version |
--versio |
--versi |
--vers |
-V)
1414 ac_init_version
=: ;;
1417 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1420 as_fn_error $?
"invalid package name: $ac_useropt"
1421 ac_useropt_orig
=$ac_useropt
1422 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1427 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep
=', ';;
1430 eval with_
$ac_useropt=\
$ac_optarg ;;
1432 -without-* |
--without-*)
1433 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1436 as_fn_error $?
"invalid package name: $ac_useropt"
1437 ac_useropt_orig
=$ac_useropt
1438 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1443 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep
=', ';;
1446 eval with_
$ac_useropt=no
;;
1449 # Obsolete; use --with-x.
1452 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1453 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1454 ac_prev
=x_includes
;;
1455 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1456 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1457 x_includes
=$ac_optarg ;;
1459 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1460 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1461 ac_prev
=x_libraries
;;
1462 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1463 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1464 x_libraries
=$ac_optarg ;;
1466 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1471 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1475 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1477 eval $ac_envvar=\
$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1491 if test -n "$ac_prev"; then
1492 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $?
"missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1499 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1504 # Check all directory arguments for consistency.
1505 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1510 eval ac_val
=\$
$ac_var
1511 # Remove trailing slashes.
1514 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\
$ac_val;;
1517 # Be sure to have absolute directory names.
1519 [\\/$
]* | ?
:[\\/]* ) continue;;
1520 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1522 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1530 target
=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x
; then
1534 if test "x$build_alias" = x
; then
1535 cross_compiling
=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1542 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1544 test "$silent" = yes && exec 6>/dev
/null
1547 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di
=`ls -di .` &&
1549 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $?
"working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $?
"pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted
=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir
=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1587 ac_srcdir_defaulted
=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1591 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var
in $ac_precious_vars; do
1608 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1610 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures this package to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1684 --build=BUILD configure
for building on BUILD
[guessed
]
1685 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1686 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1690 if test -n "$ac_init_help"; then
1695 --disable-option-checking ignore unrecognized
--enable/--with options
1696 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1697 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1698 --enable-generated-files-in-srcdir
1699 put copies of generated files
in source dir intended
1700 for creating
source tarballs
for users without
1701 texinfo bison or flex
1702 --disable-largefile omit support
for large files
1703 --disable-build-format-warnings
1704 don
't use -Wformat while building GCC
1705 --enable-werror-always enable -Werror despite compiler version
1706 --enable-checking[=LIST]
1707 enable expensive run-time checks. With LIST, enable
1708 only specific categories of checks. Categories are:
1709 yes,no,all,none,release. Flags are:
1710 assert,df,extra,fold,gc,gcac,gimple,misc,
1711 rtlflag,rtl,runtime,tree,valgrind,types
1712 --enable-coverage[=LEVEL]
1713 enable compiler's code coverage collection. Use to
1714 measure compiler performance and
locate unused parts
1715 of the compiler. With LEVEL
, specify optimization.
1716 Values are opt
, noopt
, default is noopt
1717 --enable-gather-detailed-mem-stats
1718 enable detailed memory allocation stats gathering
1719 --enable-valgrind-annotations
1720 enable valgrind runtime interaction
1721 --enable-multilib enable library support
for multiple ABIs
1722 --enable-multiarch enable support
for multiarch paths
1723 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1724 --enable-decimal-float={no
,yes,bid
,dpd
}
1725 enable decimal float extension to C. Selecting
'bid'
1726 or
'dpd' choses
which decimal floating point format
1728 --enable-fixed-point enable fixed-point arithmetic extension to C
1729 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1731 --enable-tls enable or disable generation of tls code overriding
1732 the assembler check
for tls support
1733 --enable-vtable-verify enable vtable verification feature
1734 --disable-analyzer disable
-fanalyzer static analyzer
1735 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1736 GNU Objective-C runtime
1737 --disable-shared don't provide a shared libgcc
1738 --disable-gcov don
't provide libgcov and related host tools
1739 --enable-languages=LIST specify which front-ends to build
1740 --disable-rpath do not hardcode runtime library paths
1741 --enable-sjlj-exceptions
1742 arrange to use setjmp/longjmp exception handling
1743 --disable-win32-utf8-manifest
1744 disable embedding a utf8 manifest on mingw hosts
1745 --enable-win32-utf8-manifest
1746 enable embedding a utf8 manifest on mingw hosts
1748 --disable-nls do not use Native Language Support
1749 --enable-secureplt enable -msecure-plt by default for PowerPC
1750 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1751 Default to platform configuration
1752 --enable-large-address-aware
1753 Link mingw executables with --large-address-aware
1754 --enable-leading-mingw64-underscores
1755 enable leading underscores on 64 bit mingw targets
1756 --enable-cld enable -mcld by default for 32bit x86
1757 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1758 --disable-win32-registry
1759 disable lookup of installation paths in the Registry
1761 --enable-win32-registry enable registry lookup (default)
1762 --enable-win32-registry=KEY
1763 use KEY instead of GCC version as the last portion
1765 --enable-shared[=PKGS] build shared libraries [default=yes]
1766 --enable-static[=PKGS] build static libraries [default=yes]
1767 --enable-fast-install[=PKGS]
1768 optimize for fast installation [default=yes]
1769 --disable-libtool-lock avoid locking (might break parallel builds)
1770 --enable-darwin-at-rpath
1771 install libraries with @rpath/library-name, requires
1772 rpaths to be added to executables
1773 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1774 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1775 --enable-gnu-indirect-function
1776 enable the use of the @gnu_indirect_function to
1778 --enable-initfini-array use .init_array/.fini_array sections
1779 --enable-comdat enable COMDAT group support
1780 --enable-newlib-nano-formatted-io
1781 Use nano version formatted IO
1783 --enable-standard-branch-protection
1784 enable Branch Target Identification Mechanism and
1785 Return Address Signing by default for AArch64
1786 --disable-standard-branch-protection
1787 disable Branch Target Identification Mechanism and
1788 Return Address Signing by default for AArch64
1791 --enable-fix-cortex-a53-835769
1792 enable workaround for AArch64 Cortex-A53 erratum
1794 --disable-fix-cortex-a53-835769
1795 disable workaround for AArch64 Cortex-A53 erratum
1799 --enable-fix-cortex-a53-843419
1800 enable workaround for AArch64 Cortex-A53 erratum
1802 --disable-fix-cortex-a53-843419
1803 disable workaround for AArch64 Cortex-A53 erratum
1806 --enable-gnu-unique-object
1807 enable the use of the @gnu_unique_object ELF
1808 extension on glibc systems
1809 --enable-linker-build-id
1810 compiler will always pass --build-id to linker
1811 --enable-libssp enable linking against libssp
1812 --enable-default-ssp enable Stack Smashing Protection as default
1813 --enable-maintainer-mode
1814 enable make rules and dependencies not useful (and
1815 sometimes confusing) to the casual installer
1816 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1817 thrashing on the build machine
1818 --enable-link-serialization
1819 avoid linking multiple GCC front-ends at once using
1820 make dependencies to avoid thrashing on the build
1822 --enable-version-specific-runtime-libs
1823 specify that runtime libraries should be installed
1824 in a compiler-specific directory
1825 --enable-plugin enable plugin support
1826 --enable-host-shared build host code as shared libraries
1827 --enable-host-pie build host code as PIE
1828 --enable-host-bind-now link host code as BIND_NOW
1829 --disable-libquadmath-support
1830 disable libquadmath support for Fortran
1831 --enable-default-pie enable Position Independent Executable as default
1832 --enable-cet enable Intel CET in host libraries [default=auto]
1833 --enable-s390-excess-float-precision
1834 on s390 targets, evaluate float with double
1835 precision when in standards-conforming mode
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1840 --with-build-libsubdir=DIR Directory where to find libraries for build system
1841 --with-local-prefix=DIR specifies directory to put local include
1842 --with-native-system-header-dir=dir
1843 use dir as the directory to look for standard
1844 system header files in. Defaults to /usr/include.
1845 --with-build-sysroot=sysroot
1846 use sysroot as the system root during the build
1847 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1848 --with-gxx-include-dir=DIR
1849 specifies directory to put g++ header files
1850 --with-gxx-libcxx-include-dir=DIR
1851 specifies directory to find libc++ header files
1852 --with-cpp-install-dir=DIR
1853 install the user visible C preprocessor in DIR
1854 (relative to PREFIX) as well as PREFIX/bin
1855 --with-gnu-ld arrange to work with GNU ld
1856 --with-ld arrange to use the specified ld (full pathname)
1857 --with-demangler-in-ld try to use demangler in GNU ld
1858 --with-dsymutil arrange to use the specified dsymutil (full
1860 --with-gnu-as arrange to work with GNU as
1861 --with-as arrange to use the specified as (full pathname)
1862 --with-stack-clash-protection-guard-size=size
1863 Set the default stack clash protection guard size
1864 for specific targets as a power of two in bytes.
1865 --with-matchpd-partitions=num
1866 Set the number of partitions to make for gimple and
1867 generic when splitting match.pd. [default=10]
1868 --with-insnemit-partitions=num
1869 Set the number of partitions of insn-emit.cc for
1870 genemit to create. [default=10]
1871 --with-dwarf2 force the default debug format to be DWARF 2 (or
1873 --with-specs=SPECS add SPECS to driver command-line processing
1874 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1875 --with-bugurl=URL Direct users to URL to report a bug
1876 --with-documentation-root-url=URL
1877 Root for documentation URLs
1878 --with-changes-root-url=URL
1879 Root for GCC changes URLs
1880 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1882 --with-multilib-generator
1883 Multi-libs configuration string (RISC-V only)
1884 --with-zstd=PATH specify prefix directory for installed zstd library.
1885 Equivalent to --with-zstd-include=PATH/include plus
1886 --with-zstd-lib=PATH/lib
1887 --with-zstd-include=PATH
1888 specify directory for installed zstd include files
1889 --with-zstd-lib=PATH specify directory for the installed zstd library
1890 --with-gnu-ld assume the C compiler uses GNU ld default=no
1891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1892 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1893 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1894 --with-gcc-major-version-only
1895 use only GCC major number
in filesystem paths
1896 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1897 --without-libintl-prefix don
't search for libintl in includedir and libdir
1898 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1899 --with-pic try to use only PIC/non-PIC objects [default=use
1901 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1902 --with-darwin-extra-rpath=[ARG]
1903 Specify a runpath directory, additional to those
1904 provided by the compiler
1905 --with-plugin-ld=[ARG] specify the plugin linker
1906 --with-glibc-version=M.N
1907 assume GCC used with glibc version M.N or later
1908 --with-long-double-128 use 128-bit long double by default
1909 --with-long-double-format={ieee,ibm}
1910 Specify whether PowerPC long double uses IEEE or IBM format
1912 --with-gc={page,zone} this option is not supported anymore. It used to
1913 choose the garbage collection mechanism to use with
1915 --with-system-zlib use installed libz
1916 --with-linker-hash-style={sysv,gnu,both}
1917 specify the linker hash style
1918 --with-diagnostics-color={never,auto,auto-if-env,always}
1919 specify the default of -fdiagnostics-color option
1920 auto-if-env stands for -fdiagnostics-color=auto if
1921 GCC_COLOR environment variable is present and
1922 -fdiagnostics-color=never otherwise
1923 --with-diagnostics-urls={never,auto,auto-if-env,always}
1924 specify the default of -fdiagnostics-urls option
1925 auto-if-env stands for -fdiagnostics-urls=auto if
1926 GCC_URLS or TERM_URLS environment variable is
1927 present and -fdiagnostics-urls=never otherwise
1929 Some influential environment variables:
1930 CC C compiler command
1931 CFLAGS C compiler flags
1932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1933 nonstandard directory <lib dir>
1934 LIBS libraries to pass to the linker, e.g. -l<library>
1935 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1936 you have headers in a nonstandard directory <include dir>
1937 CXX C++ compiler command
1938 CXXFLAGS C++ compiler flags
1939 CXXCPP C++ preprocessor
1941 GMPLIBS How to link GMP
1942 GMPINC How to find GMP include files
1943 ISLLIBS How to link isl
1944 ISLINC How to find isl include files
1946 Use these variables to override the choices made by `configure' or to
help
1947 it to
find libraries and programs with nonstandard names
/locations.
1949 Report bugs to the package provider.
1954 if test "$ac_init_help" = "recursive"; then
1955 # If there are subdirs, report their specific --help.
1956 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1957 test -d "$ac_dir" ||
1958 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1963 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1965 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1966 # A ".." for each directory in $ac_dir_suffix.
1967 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1968 case $ac_top_builddir_sub in
1969 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1970 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1973 ac_abs_top_builddir
=$ac_pwd
1974 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1975 # for backward compatibility:
1976 ac_top_builddir
=$ac_top_build_prefix
1979 .
) # We are building in place.
1981 ac_top_srcdir
=$ac_top_builddir_sub
1982 ac_abs_top_srcdir
=$ac_pwd ;;
1983 [\\/]* | ?
:[\\/]* ) # Absolute name.
1984 ac_srcdir
=$srcdir$ac_dir_suffix;
1985 ac_top_srcdir
=$srcdir
1986 ac_abs_top_srcdir
=$srcdir ;;
1988 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1989 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1990 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1992 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1994 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1995 # Check for guested configure.
1996 if test -f "$ac_srcdir/configure.gnu"; then
1998 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1999 elif test -f "$ac_srcdir/configure"; then
2001 $SHELL "$ac_srcdir/configure" --help=recursive
2003 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2009 test -n "$ac_init_help" && exit $ac_status
2010 if $ac_init_version; then
2013 generated by GNU Autoconf
2.69
2015 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2016 This configure
script is free software
; the Free Software Foundation
2017 gives unlimited permission to copy
, distribute and modify it.
2022 ## ------------------------ ##
2023 ## Autoconf initialization. ##
2024 ## ------------------------ ##
2026 # ac_fn_c_try_compile LINENO
2027 # --------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_c_try_compile
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 rm -f conftest.
$ac_objext
2033 if { { ac_try
="$ac_compile"
2035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_c_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2062 } # ac_fn_c_try_compile
2064 # ac_fn_cxx_try_compile LINENO
2065 # ----------------------------
2066 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_compile ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 rm -f conftest.$ac_objext
2071 if { { ac_try="$ac_compile"
2073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2074 *) ac_try_echo
=$ac_try;;
2076 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_compile") 2>conftest.err
2080 if test -s conftest.err
; then
2081 grep -v '^ *+' conftest.err
>conftest.er1
2082 cat conftest.er1
>&5
2083 mv -f conftest.er1 conftest.err
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && {
2087 test -z "$ac_cxx_werror_flag" ||
2088 test ! -s conftest.err
2089 } && test -s conftest.
$ac_objext; then :
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.
$ac_ext >&5
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status
$ac_retval
2100 } # ac_fn_cxx_try_compile
2102 # ac_fn_cxx_try_cpp LINENO
2103 # ------------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_cpp
()
2107 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2108 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } > conftest.i && {
2124 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2125 test ! -s conftest.err
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2137 } # ac_fn_cxx_try_cpp
2139 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2140 # ---------------------------------------------------------
2141 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2142 # the include files in INCLUDES and setting the cache variable VAR
2144 ac_fn_cxx_check_header_mongrel ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if eval \${$3+:} false; then :
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2157 # Is the header compilable?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2159 $as_echo_n "checking $2 usability... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2165 if ac_fn_cxx_try_compile "$LINENO"; then :
2166 ac_header_compiler=yes
2168 ac_header_compiler=no
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2172 $as_echo "$ac_header_compiler" >&6; }
2174 # Is the header present?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2176 $as_echo_n "checking $2 presence... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 if ac_fn_cxx_try_cpp "$LINENO"; then :
2182 ac_header_preproc=yes
2184 ac_header_preproc=no
2186 rm -f conftest.err conftest.i conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2188 $as_echo "$ac_header_preproc" >&6; }
2190 # So? What about this header?
2191 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2194 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2200 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2202 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2204 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2206 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2208 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2216 eval "$3=\$ac_header_compiler"
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_cxx_check_header_mongrel
2226 # ac_fn_cxx_try_run LINENO
2227 # ------------------------
2228 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2229 # that executables *can* be run.
2230 ac_fn_cxx_try_run ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 if { { ac_try="$ac_link"
2235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2236 *) ac_try_echo
=$ac_try;;
2238 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_link") 2>&5
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2244 { { case "(($ac_try" in
2245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 $as_echo "$ac_try_echo"; } >&5
2250 (eval "$ac_try") 2>&5
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; }; }; then :
2256 $as_echo "$as_me: program exited with status $ac_status" >&5
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2260 ac_retval=$ac_status
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_cxx_try_run
2268 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2269 # ---------------------------------------------------------
2270 # Tests whether HEADER exists and can be compiled using the include files in
2271 # INCLUDES, setting the cache variable VAR accordingly.
2272 ac_fn_cxx_check_header_compile ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval \${$3+:} false; then :
2278 $as_echo_n "(cached) " >&6
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2285 if ac_fn_cxx_try_compile "$LINENO"; then :
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_cxx_check_header_compile
2299 # ac_fn_c_try_cpp LINENO
2300 # ----------------------
2301 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if { { ac_try="$ac_cpp conftest.$ac_ext"
2307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2308 *) ac_try_echo
=$ac_try;;
2310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 $as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2314 if test -s conftest.err
; then
2315 grep -v '^ *+' conftest.err
>conftest.er1
2316 cat conftest.er1
>&5
2317 mv -f conftest.er1 conftest.err
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } > conftest.i
&& {
2321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.
$ac_ext >&5
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332 as_fn_set_status
$ac_retval
2336 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2337 # ----------------------------------------------
2338 # Tries to find the compile-time value of EXPR in a program that includes
2339 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2341 ac_fn_cxx_compute_int
()
2343 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2344 if test "$cross_compiling" = yes; then
2345 # Depending upon the size, compute the lo and hi bounds.
2346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2352 static int test_array [1 - 2 * !(($2) >= 0)];
2354 return test_array [0];
2360 if ac_fn_cxx_try_compile
"$LINENO"; then :
2363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2369 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2371 return test_array [0];
2377 if ac_fn_cxx_try_compile
"$LINENO"; then :
2378 ac_hi
=$ac_mid; break
2380 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2381 if test $ac_lo -le $ac_mid; then
2385 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) < 0)];
2398 return test_array [0];
2404 if ac_fn_cxx_try_compile
"$LINENO"; then :
2407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2415 return test_array [0];
2421 if ac_fn_cxx_try_compile
"$LINENO"; then :
2422 ac_lo
=$ac_mid; break
2424 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2425 if test $ac_mid -le $ac_hi; then
2429 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2439 # Binary search between lo and hi bounds.
2440 while test "x$ac_lo" != "x$ac_hi"; do
2441 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2448 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 return test_array [0];
2456 if ac_fn_cxx_try_compile
"$LINENO"; then :
2459 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2471 static long int longval () { return $2; }
2472 static unsigned long int ulongval () { return $2; }
2479 FILE *f = fopen ("conftest.val", "w");
2484 long int i = longval ();
2487 fprintf (f, "%ld", i);
2491 unsigned long int i = ulongval ();
2494 fprintf (f, "%lu", i);
2496 /* Do not output a trailing newline, as this causes \r\n confusion
2497 on some platforms. */
2498 return ferror (f) || fclose (f) != 0;
2504 if ac_fn_cxx_try_run
"$LINENO"; then :
2505 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 as_fn_set_status
$ac_retval
2517 } # ac_fn_cxx_compute_int
2519 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2520 # ---------------------------------------------
2521 # Tests whether TYPE exists after having included INCLUDES, setting cache
2522 # variable VAR accordingly.
2523 ac_fn_cxx_check_type
()
2525 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if eval \
${$3+:} false
; then :
2529 $as_echo_n "(cached) " >&6
2532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2544 if ac_fn_cxx_try_compile
"$LINENO"; then :
2545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2557 if ac_fn_cxx_try_compile
"$LINENO"; then :
2562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 $as_echo "$ac_res" >&6; }
2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 } # ac_fn_cxx_check_type
2573 # ac_fn_c_find_intX_t LINENO BITS VAR
2574 # -----------------------------------
2575 # Finds a signed integer type with width BITS, setting cache variable VAR
2577 ac_fn_c_find_intX_t
()
2579 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2581 $as_echo_n "checking for int$2_t... " >&6; }
2582 if eval \
${$3+:} false
; then :
2583 $as_echo_n "(cached) " >&6
2586 # Order is important - never check a type that is potentially smaller
2587 # than half of the expected target width.
2588 for ac_type
in int
$2_t 'int' 'long int' \
2589 'long long int' 'short int' 'signed char'; do
2590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 $ac_includes_default
2593 enum { N = $2 / 2 - 1 };
2597 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2599 return test_array [0];
2605 if ac_fn_cxx_try_compile
"$LINENO"; then :
2606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2608 $ac_includes_default
2609 enum { N = $2 / 2 - 1 };
2613 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2614 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2616 return test_array [0];
2622 if ac_fn_cxx_try_compile
"$LINENO"; then :
2629 eval "$3=\$ac_type" ;;
2632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2635 if eval test \"x\$
"$3"\" = x
"no"; then :
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647 } # ac_fn_c_find_intX_t
2649 # ac_fn_cxx_try_link LINENO
2650 # -------------------------
2651 # Try to link conftest.$ac_ext, and return whether this succeeded.
2652 ac_fn_cxx_try_link
()
2654 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2655 rm -f conftest.
$ac_objext conftest
$ac_exeext
2656 if { { ac_try
="$ac_link"
2658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_link") 2>conftest.err
2665 if test -s conftest.err; then
2666 grep -v '^ *+' conftest.err >conftest.er1
2667 cat conftest.er1 >&5
2668 mv -f conftest.er1 conftest.err
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; } && {
2672 test -z "$ac_cxx_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest$ac_exeext && {
2675 test "$cross_compiling" = yes ||
2676 test -x conftest$ac_exeext
2680 $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2687 # interfere with the next link command; also delete a directory that is
2688 # left behind by Apple's compiler. We do this before executing the actions.
2689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691 as_fn_set_status $ac_retval
2693 } # ac_fn_cxx_try_link
2695 # ac_fn_c_find_uintX_t LINENO BITS VAR
2696 # ------------------------------------
2697 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2699 ac_fn_c_find_uintX_t ()
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2703 $as_echo_n "checking for uint$2_t... " >&6; }
2704 if eval \${$3+:} false; then :
2705 $as_echo_n "(cached) " >&6
2708 # Order is important - never check a type that is potentially smaller
2709 # than half of the expected target width.
2710 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2711 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 $ac_includes_default
2718 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2720 return test_array [0];
2726 if ac_fn_cxx_try_compile "$LINENO"; then :
2731 eval "$3=\$ac_type" ;;
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 if eval test \"x\$"$3"\" = x"no"; then :
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2744 $as_echo "$ac_res" >&6; }
2745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747 } # ac_fn_c_find_uintX_t
2749 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2750 # ------------------------------------------------
2751 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2752 ac_fn_cxx_check_header_preproc ()
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2756 $as_echo_n "checking for $2... " >&6; }
2757 if eval \${$3+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2764 if ac_fn_cxx_try_cpp "$LINENO"; then :
2769 rm -f conftest.err conftest.i conftest.$ac_ext
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2773 $as_echo "$ac_res" >&6; }
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2776 } # ac_fn_cxx_check_header_preproc
2778 # ac_fn_cxx_check_func LINENO FUNC VAR
2779 # ------------------------------------
2780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2781 ac_fn_cxx_check_func ()
2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2785 $as_echo_n "checking for $2... " >&6; }
2786 if eval \${$3+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2793 #define $2 innocuous_$2
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char $2 (); below.
2797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2798 <limits.h> exists even on freestanding compilers. */
2801 # include <limits.h>
2803 # include <assert.h>
2808 /* Override any GCC internal prototype to avoid an error.
2809 Use char because int might match the return type of a GCC
2810 builtin and then its argument prototype would still apply. */
2815 /* The GNU C library defines this for functions which it implements
2816 to always fail with ENOSYS. Some functions are actually named
2817 something starting with __ and the normal name is an alias. */
2818 #if defined __stub_$2 || defined __stub___$2
2830 if ac_fn_cxx_try_link "$LINENO"; then :
2835 rm -f core conftest.err conftest.$ac_objext \
2836 conftest$ac_exeext conftest.$ac_ext
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2840 $as_echo "$ac_res" >&6; }
2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2843 } # ac_fn_cxx_check_func
2845 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2846 # -----------------------------------------------
2847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2849 ac_fn_cxx_check_decl ()
2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2853 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2856 if eval \${$3+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2865 #ifndef $as_decl_name
2867 (void) $as_decl_use;
2869 (void) $as_decl_name;
2877 if ac_fn_cxx_try_compile "$LINENO"; then :
2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886 $as_echo "$ac_res" >&6; }
2887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2889 } # ac_fn_cxx_check_decl
2891 # ac_fn_c_try_link LINENO
2892 # -----------------------
2893 # Try to link conftest.$ac_ext, and return whether this succeeded.
2896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2897 rm -f conftest.$ac_objext conftest$ac_exeext
2898 if { { ac_try="$ac_link"
2900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2901 *) ac_try_echo
=$ac_try;;
2903 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_link") 2>conftest.err
2907 if test -s conftest.err
; then
2908 grep -v '^ *+' conftest.err
>conftest.er1
2909 cat conftest.er1
>&5
2910 mv -f conftest.er1 conftest.err
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest
$ac_exeext && {
2917 test "$cross_compiling" = yes ||
2918 test -x conftest
$ac_exeext
2922 $as_echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.
$ac_ext >&5
2927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2929 # interfere with the next link command; also delete a directory that is
2930 # left behind by Apple's compiler. We do this before executing the actions.
2931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2933 as_fn_set_status
$ac_retval
2935 } # ac_fn_c_try_link
2937 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2938 # ----------------------------------------------
2939 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2940 ac_fn_c_check_header_preproc
()
2942 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2944 $as_echo_n "checking for $2... " >&6; }
2945 if eval \
${$3+:} false
; then :
2946 $as_echo_n "(cached) " >&6
2948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2952 if ac_fn_c_try_cpp
"$LINENO"; then :
2957 rm -f conftest.err conftest.i conftest.
$ac_ext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2961 $as_echo "$ac_res" >&6; }
2962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2964 } # ac_fn_c_check_header_preproc
2966 # ac_fn_c_check_func LINENO FUNC VAR
2967 # ----------------------------------
2968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2969 ac_fn_c_check_func
()
2971 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2973 $as_echo_n "checking for $2... " >&6; }
2974 if eval \
${$3+:} false
; then :
2975 $as_echo_n "(cached) " >&6
2977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2981 #define $2 innocuous_$2
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $2 (); below.
2985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986 <limits.h> exists even on freestanding compilers. */
2989 # include <limits.h>
2991 # include <assert.h>
2996 /* Override any GCC internal prototype to avoid an error.
2997 Use char because int might match the return type of a GCC
2998 builtin and then its argument prototype would still apply. */
3003 /* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006 #if defined __stub_$2 || defined __stub___$2
3018 if ac_fn_c_try_link
"$LINENO"; then :
3023 rm -f core conftest.err conftest.
$ac_objext \
3024 conftest
$ac_exeext conftest.
$ac_ext
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3028 $as_echo "$ac_res" >&6; }
3029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3031 } # ac_fn_c_check_func
3032 cat >config.log
<<_ACEOF
3033 This file contains any messages produced by compilers while
3034 running configure, to aid debugging if configure makes a mistake.
3036 It was created by $as_me, which was
3037 generated by GNU Autoconf 2.69. Invocation command line was
3049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 $as_echo "PATH: $as_dir"
3089 # Keep a trace of the command line.
3090 # Strip out --no-create and --no-recursion so they do not pile up.
3091 # Strip out --silent because we don't want to record it for future runs.
3092 # Also quote any args containing shell meta-characters.
3093 # Make two passes to allow for proper duplicate-argument suppression.
3097 ac_must_keep_next
=false
3103 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3104 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3105 |
-silent |
--silent |
--silen |
--sile |
--sil)
3108 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3111 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3113 as_fn_append ac_configure_args1
" '$ac_arg'"
3114 if test $ac_must_keep_next = true
; then
3115 ac_must_keep_next
=false
# Got value, back to normal.
3118 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3119 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3120 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3121 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3122 case "$ac_configure_args0 " in
3123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3126 -* ) ac_must_keep_next
=true
;;
3129 as_fn_append ac_configure_args
" '$ac_arg'"
3134 { ac_configure_args0
=; unset ac_configure_args0
;}
3135 { ac_configure_args1
=; unset ac_configure_args1
;}
3137 # When interrupted or exit'd, cleanup temporary files, and complete
3138 # config.log. We remove comments because anyway the quotes in there
3139 # would cause problems or look ugly.
3140 # WARNING: Use '\'' to represent an apostrophe within the trap.
3141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3142 trap 'exit_status=$?
3143 # Save into config.log some information that might help in debugging.
3147 $as_echo "## ---------------- ##
3148 ## Cache variables. ##
3149 ## ---------------- ##"
3151 # The following way of writing the cache mishandles newlines in values,
3153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3154 eval ac_val=\$$ac_var
3158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3162 _ | IFS | as_nl) ;; #(
3163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3164 *) { eval $ac_var=; unset $ac_var;} ;;
3169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3170 *${as_nl}ac_space=\ *)
3172 "s/'\''/'\''\\\\'\'''\''/g;
3173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3183 $as_echo "## ----------------- ##
3184 ## Output variables. ##
3185 ## ----------------- ##"
3187 for ac_var in $ac_subst_vars
3189 eval ac_val=\$$ac_var
3191 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3193 $as_echo "$ac_var='\''$ac_val'\''"
3197 if test -n "$ac_subst_files"; then
3198 $as_echo "## ------------------- ##
3199 ## File substitutions. ##
3200 ## ------------------- ##"
3202 for ac_var
in $ac_subst_files
3204 eval ac_val
=\$
$ac_var
3206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3208 $as_echo "$ac_var='\''$ac_val'\''"
3213 if test -s confdefs.h; then
3214 $as_echo "## ----------- ##
3221 test "$ac_signal" != 0 &&
3222 $as_echo "$as_me: caught signal $ac_signal"
3223 $as_echo "$as_me: exit $exit_status"
3225 rm -f core *.core core.conftest.* &&
3226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3229 for ac_signal
in 1 2 13 15; do
3230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3235 rm -f -r conftest
* confdefs.h
3237 $as_echo "/* confdefs.h */" > confdefs.h
3239 # Predefined preprocessor variables.
3241 cat >>confdefs.h
<<_ACEOF
3242 #define PACKAGE_NAME "$PACKAGE_NAME"
3245 cat >>confdefs.h
<<_ACEOF
3246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3249 cat >>confdefs.h
<<_ACEOF
3250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3253 cat >>confdefs.h
<<_ACEOF
3254 #define PACKAGE_STRING "$PACKAGE_STRING"
3257 cat >>confdefs.h
<<_ACEOF
3258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3261 cat >>confdefs.h
<<_ACEOF
3262 #define PACKAGE_URL "$PACKAGE_URL"
3266 # Let the site file select an alternate cache file if it wants to.
3267 # Prefer an explicitly selected file to automatically selected ones.
3270 if test -n "$CONFIG_SITE"; then
3271 # We do not want a PATH search for config.site.
3272 case $CONFIG_SITE in #((
3273 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3274 */*) ac_site_file1
=$CONFIG_SITE;;
3275 *) ac_site_file1
=.
/$CONFIG_SITE;;
3277 elif test "x$prefix" != xNONE
; then
3278 ac_site_file1
=$prefix/share
/config.site
3279 ac_site_file2
=$prefix/etc
/config.site
3281 ac_site_file1
=$ac_default_prefix/share
/config.site
3282 ac_site_file2
=$ac_default_prefix/etc
/config.site
3284 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3286 test "x$ac_site_file" = xNONE
&& continue
3287 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3290 sed 's/^/| /' "$ac_site_file" >&5
3292 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $?
"failed to load site script $ac_site_file
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 if test -r "$cache_file"; then
3300 # Some versions of bash will fail to source /dev/null (special files
3301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3302 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3304 $as_echo "$as_me: loading cache $cache_file" >&6;}
3306 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3307 *) .
"./$cache_file";;
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3312 $as_echo "$as_me: creating cache $cache_file" >&6;}
3316 gt_needs
="$gt_needs "
3317 # Check that the precious variables saved in the cache have kept the same
3319 ac_cache_corrupted
=false
3320 for ac_var
in $ac_precious_vars; do
3321 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3322 eval ac_new_set
=\
$ac_env_${ac_var}_set
3323 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3324 eval ac_new_val
=\
$ac_env_${ac_var}_value
3325 case $ac_old_set,$ac_new_set in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3329 ac_cache_corrupted
=: ;;
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3333 ac_cache_corrupted
=: ;;
3336 if test "x$ac_old_val" != "x$ac_new_val"; then
3337 # differences in whitespace do not lead to failure.
3338 ac_old_val_w
=`echo x $ac_old_val`
3339 ac_new_val_w
=`echo x $ac_new_val`
3340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3343 ac_cache_corrupted
=:
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3347 eval $ac_var=\
$ac_old_val
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3350 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3352 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3355 # Pass precious variables to config.status.
3356 if test "$ac_new_set" = set; then
3358 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3359 *) ac_arg
=$ac_var=$ac_new_val ;;
3361 case " $ac_configure_args " in
3362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3363 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3367 if $ac_cache_corrupted; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3372 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3374 ## -------------------- ##
3375 ## Main body of script. ##
3376 ## -------------------- ##
3379 ac_cpp
='$CPP $CPPFLAGS'
3380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3390 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3393 gcc_version
=`cat $srcdir/BASE-VER`
3395 # Determine the host, build, and target systems
3397 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3398 if test -f "$ac_dir/install-sh"; then
3400 ac_install_sh
="$ac_aux_dir/install-sh -c"
3402 elif test -f "$ac_dir/install.sh"; then
3404 ac_install_sh
="$ac_aux_dir/install.sh -c"
3406 elif test -f "$ac_dir/shtool"; then
3408 ac_install_sh
="$ac_aux_dir/shtool install -c"
3412 if test -z "$ac_aux_dir"; then
3413 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3416 # These three variables are undocumented and unsupported,
3417 # and are intended to be withdrawn in a future Autoconf release.
3418 # They can cause serious problems if a builder's source tree is in a directory
3419 # whose full name contains unusual characters.
3420 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3421 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3422 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3425 # Make sure we can run config.sub.
3426 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3427 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3430 $as_echo_n "checking build system type... " >&6; }
3431 if ${ac_cv_build+:} false
; then :
3432 $as_echo_n "(cached) " >&6
3434 ac_build_alias
=$build_alias
3435 test "x$ac_build_alias" = x
&&
3436 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3437 test "x$ac_build_alias" = x
&&
3438 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3439 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3440 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3444 $as_echo "$ac_cv_build" >&6; }
3445 case $ac_cv_build in
3447 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3450 ac_save_IFS
=$IFS; IFS
='-'
3456 # Remember, the first character of IFS is used to create $*,
3457 # except with old shells:
3460 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3464 $as_echo_n "checking host system type... " >&6; }
3465 if ${ac_cv_host+:} false
; then :
3466 $as_echo_n "(cached) " >&6
3468 if test "x$host_alias" = x
; then
3469 ac_cv_host
=$ac_cv_build
3471 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3472 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3477 $as_echo "$ac_cv_host" >&6; }
3480 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3483 ac_save_IFS
=$IFS; IFS
='-'
3489 # Remember, the first character of IFS is used to create $*,
3490 # except with old shells:
3493 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3497 $as_echo_n "checking target system type... " >&6; }
3498 if ${ac_cv_target+:} false
; then :
3499 $as_echo_n "(cached) " >&6
3501 if test "x$target_alias" = x
; then
3502 ac_cv_target
=$ac_cv_host
3504 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3505 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3510 $as_echo "$ac_cv_target" >&6; }
3511 case $ac_cv_target in
3513 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3515 target
=$ac_cv_target
3516 ac_save_IFS
=$IFS; IFS
='-'
3522 # Remember, the first character of IFS is used to create $*,
3523 # except with old shells:
3526 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3534 program_prefix
=${target_alias}-
3536 # Determine the noncanonical host name, for Ada.
3537 case ${build_alias} in
3538 "") build_noncanonical
=${build} ;;
3539 *) build_noncanonical
=${build_alias} ;;
3542 case ${host_alias} in
3543 "") host_noncanonical
=${build_noncanonical} ;;
3544 *) host_noncanonical
=${host_alias} ;;
3550 # Determine the noncanonical target name, for directory use.
3551 case ${target_alias} in
3552 "") target_noncanonical
=${host_noncanonical} ;;
3553 *) target_noncanonical
=${target_alias} ;;
3559 # Used for constructing correct paths for offload compilers.
3560 real_target_noncanonical
=${target_noncanonical}
3563 # Determine the target- and build-specific subdirectories
3565 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3566 # have matching libraries, they should use host libraries: Makefile.tpl
3567 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3568 # However, they still use the build modules, because the corresponding
3569 # host modules (e.g. bison) are only built for the host when bootstrap
3571 # - build_subdir is where we find build modules, and never changes.
3572 # - build_libsubdir is where we find build libraries, and can be overridden.
3574 # Prefix 'build-' so this never conflicts with target_subdir.
3575 build_subdir
="build-${build_noncanonical}"
3577 # Check whether --with-build-libsubdir was given.
3578 if test "${with_build_libsubdir+set}" = set; then :
3579 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3581 build_libsubdir
="$build_subdir"
3584 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3585 if ( test $srcdir = .
&& test -d gcc
) \
3586 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3587 host_subdir
="host-${host_noncanonical}"
3592 target_subdir
=${target_noncanonical}
3595 # Set program_transform_name
3596 test "$program_prefix" != NONE
&&
3597 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3598 # Use a double $ so make ignores it.
3599 test "$program_suffix" != NONE
&&
3600 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3601 # Double any \ or $.
3602 # By default was `s,x,x', remove it if useless.
3603 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3604 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3607 # Check for bogus environment variables.
3608 # Test if LIBRARY_PATH contains the notation for the current directory
3609 # since this would lead to problems installing/building glibc.
3610 # LIBRARY_PATH contains the current directory if one of the following
3612 # - one of the terminals (":" and ";") is the first or last sign
3613 # - two terminals occur directly after each other
3614 # - the path contains an element with a dot in it
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3616 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3617 case ${LIBRARY_PATH} in
3618 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3619 library_path_setting
="contains current directory"
3622 library_path_setting
="ok"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3626 $as_echo "$library_path_setting" >&6; }
3627 if test "$library_path_setting" != "ok"; then
3629 *** LIBRARY_PATH shouldn't contain the current directory when
3630 *** building gcc. Please change the environment variable
3631 *** and run configure again." "$LINENO" 5
3634 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3635 # since this would lead to problems installing/building glibc.
3636 # GCC_EXEC_PREFIX contains the current directory if one of the following
3638 # - one of the terminals (":" and ";") is the first or last sign
3639 # - two terminals occur directly after each other
3640 # - the path contains an element with a dot in it
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3642 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3643 case ${GCC_EXEC_PREFIX} in
3644 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3645 gcc_exec_prefix_setting
="contains current directory"
3648 gcc_exec_prefix_setting
="ok"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3652 $as_echo "$gcc_exec_prefix_setting" >&6; }
3653 if test "$gcc_exec_prefix_setting" != "ok"; then
3655 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3656 *** building gcc. Please change the environment variable
3657 *** and run configure again." "$LINENO" 5
3664 # Specify the local prefix
3667 # Check whether --with-local-prefix was given.
3668 if test "${with_local_prefix+set}" = set; then :
3669 withval
=$with_local_prefix; case "${withval}" in
3670 yes) as_fn_error $?
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3672 *) local_prefix
=$with_local_prefix ;;
3677 # Default local prefix if it is empty
3678 if test x
$local_prefix = x
; then
3679 local_prefix
=/usr
/local
3683 # Check whether --with-native-system-header-dir was given.
3684 if test "${with_native_system_header_dir+set}" = set; then :
3685 withval
=$with_native_system_header_dir;
3686 case ${with_native_system_header_dir} in
3687 yes|no
) as_fn_error $?
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3688 /* |
[A-Za-z
]:[\\/]*) ;;
3689 *) as_fn_error $?
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3691 configured_native_system_header_dir
="${withval}"
3694 configured_native_system_header_dir
=
3699 # Check whether --with-build-sysroot was given.
3700 if test "${with_build_sysroot+set}" = set; then :
3701 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3702 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3705 SYSROOT_CFLAGS_FOR_TARGET
=
3710 if test "x$prefix" = xNONE
; then
3711 test_prefix
=/usr
/local
3715 if test "x$exec_prefix" = xNONE
; then
3716 test_exec_prefix
=$test_prefix
3718 test_exec_prefix
=$exec_prefix
3722 # Check whether --with-sysroot was given.
3723 if test "${with_sysroot+set}" = set; then :
3724 withval
=$with_sysroot;
3725 case ${with_sysroot} in
3727 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3729 case ${with_sysroot} in
3730 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3731 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3734 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3735 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3737 case ${TARGET_SYSTEM_ROOT} in
3738 "${test_prefix}"|
"${test_prefix}/"*|\
3739 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3740 '${prefix}'|
'${prefix}/'*|\
3741 '${exec_prefix}'|
'${exec_prefix}/'*)
3742 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3743 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3750 TARGET_SYSTEM_ROOT_DEFINE
=
3751 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3759 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3760 # passed in by the toplevel make and thus we'd get different behavior
3761 # depending on where we built the sources.
3762 gcc_gxx_include_dir
=
3763 # Specify the g++ header file directory
3765 # Check whether --with-gxx-include-dir was given.
3766 if test "${with_gxx_include_dir+set}" = set; then :
3767 withval
=$with_gxx_include_dir; case "${withval}" in
3768 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3770 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3775 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3776 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3777 # relative to the sysroot.
3778 gcc_gxx_include_dir_add_sysroot
=0
3780 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3781 if test x
${gcc_gxx_include_dir} = x
; then
3782 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3783 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3785 libstdcxx_incdir
='include/c++/$(version)'
3786 if test x
$host != x
$target; then
3787 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3789 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3791 elif test "${with_sysroot+set}" = set; then
3792 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3793 if test "${gcc_gxx_without_sysroot}"; then
3794 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3795 gcc_gxx_include_dir_add_sysroot
=1
3799 # Configuration for an alternate set of C++ headers.
3800 gcc_gxx_libcxx_include_dir
=
3801 # Specify the alternate g++ header file directory
3803 # Check whether --with-gxx-libcxx-include-dir was given.
3804 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3805 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3806 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3807 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3812 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3813 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3814 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3815 #Â based on the platform (to be available on platform versions where it is the
3816 # default for the system tools). We also use a default path within the compiler
3818 #Â Otherwise, we use the path provided and enable the stdlib option.
3819 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3820 # check to see if the latter starts with the former and, upon success, compute
3821 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3822 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3823 gcc_enable_stdlib_opt
=0
3824 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3825 if test x
${gcc_gxx_libcxx_include_dir} = xno
; then
3826 #Â set defaults for the dir, but the option is disabled anyway.
3827 gcc_gxx_libcxx_include_dir
=
3829 gcc_enable_stdlib_opt
=1
3833 *-darwin1[1-9]* |
*-darwin2*)
3834 #Â Default this on for Darwin versions which default to libcxx,
3835 #Â and embed the path in the compiler install so that we get a
3836 # self-contained toolchain.
3837 gcc_enable_stdlib_opt
=1
3843 cat >>confdefs.h
<<_ACEOF
3844 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3848 # Sysroot behaviour as for gxx-include-dir
3849 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3850 # default path,embedded in the compiler tree.
3851 libcxx_incdir
='include/c++/v1'
3852 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3853 gcc_gxx_libcxx_include_dir
='${libsubdir}/$libcxx_incdir'
3855 if test x
$host != x
$target; then
3856 libcxx_incdir
="$target_alias/$libcxx_incdir"
3858 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3860 elif test "${with_sysroot+set}" = set; then
3861 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3862 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3863 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3864 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3869 # Check whether --with-cpp_install_dir was given.
3870 if test "${with_cpp_install_dir+set}" = set; then :
3871 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3872 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3873 elif test x
$withval != xno
; then
3874 cpp_install_dir
=$withval
3879 # We would like to our source tree to be readonly. However when releases or
3880 # pre-releases are generated, the flex/bison generated files as well as the
3881 # various formats of manuals need to be included along with the rest of the
3882 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3886 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3887 # Check whether --enable-generated-files-in-srcdir was given.
3888 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3889 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3891 generated_files_in_srcdir
=no
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3896 $as_echo "$generated_files_in_srcdir" >&6; }
3898 if test "$generated_files_in_srcdir" = "yes"; then
3905 # -------------------
3906 # Find default linker
3907 # -------------------
3911 # Check whether --with-gnu-ld was given.
3912 if test "${with_gnu_ld+set}" = set; then :
3913 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3921 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3922 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3930 # With pre-defined ld
3932 # Check whether --with-ld was given.
3933 if test "${with_ld+set}" = set; then :
3934 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3937 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3938 if test ! -x "$DEFAULT_LINKER"; then
3939 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3940 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3942 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3946 cat >>confdefs.h
<<_ACEOF
3947 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3953 $as_echo_n "checking whether a default linker was specified... " >&6; }
3954 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3955 if test x
"$gnu_ld_flag" = x
"no"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3957 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3960 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3967 # With demangler in GNU ld
3969 # Check whether --with-demangler-in-ld was given.
3970 if test "${with_demangler_in_ld+set}" = set; then :
3971 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3977 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3979 # Check whether --with-dsymutil was given.
3980 if test "${with_dsymutil+set}" = set; then :
3981 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3986 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3987 if test ! -x "$DEFAULT_DSYMUTIL"; then
3988 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3990 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3995 cat >>confdefs.h
<<_ACEOF
3996 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4002 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4003 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4005 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4011 # ----------------------
4012 # Find default assembler
4013 # ----------------------
4017 # Check whether --with-gnu-as was given.
4018 if test "${with_gnu_as+set}" = set; then :
4019 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
4026 # Check whether --with-as was given.
4027 if test "${with_as+set}" = set; then :
4028 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
4031 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4032 if test ! -x "$DEFAULT_ASSEMBLER"; then
4033 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4034 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
4038 cat >>confdefs.h
<<_ACEOF
4039 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4045 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4046 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
4047 if test x
"$gas_flag" = x
"no"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4049 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4052 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4063 # If a non-executable a.out is present (e.g. created by GNU as above even if
4064 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4065 # file, even when creating an executable, so an execution test fails.
4066 # Remove possible default executable files to avoid this.
4068 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4069 # Autoconf includes it.
4070 rm -f a.out a.exe b.out
4072 # Find the native compiler
4074 ac_cpp
='$CPP $CPPFLAGS'
4075 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4080 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_prog_CC+:} false
; then :
4084 $as_echo_n "(cached) " >&6
4086 if test -n "$CC"; then
4087 ac_cv_prog_CC
="$CC" # Let the user override the test.
4089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4093 test -z "$as_dir" && as_dir
=.
4094 for ac_exec_ext
in '' $ac_executable_extensions; do
4095 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 if test -n "$CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4109 $as_echo "$CC" >&6; }
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4117 if test -z "$ac_cv_prog_CC"; then
4119 # Extract the first word of "gcc", so it can be a program name with args.
4120 set dummy gcc
; ac_word
=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_CC
="gcc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4149 $as_echo "$ac_ct_CC" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4155 if test "x$ac_ct_CC" = x
; then
4158 case $cross_compiling:$ac_tool_warned in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned
=yes ;;
4170 if test -z "$CC"; then
4171 if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4173 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_CC+:} false
; then :
4177 $as_echo_n "(cached) " >&6
4179 if test -n "$CC"; then
4180 ac_cv_prog_CC
="$CC" # Let the user override the test.
4182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir
=.
4187 for ac_exec_ext
in '' $ac_executable_extensions; do
4188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 if test -n "$CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202 $as_echo "$CC" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4211 if test -z "$CC"; then
4212 # Extract the first word of "cc", so it can be a program name with args.
4213 set dummy cc
; ac_word
=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_CC+:} false
; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC
="$CC" # Let the user override the test.
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4231 ac_prog_rejected
=yes
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 if test $ac_prog_rejected = yes; then
4243 # We found a bogon in the path, so make sure we never use it.
4244 set dummy
$ac_cv_prog_CC
4246 if test $# != 0; then
4247 # We chose a different compiler from the bogus one.
4248 # However, it has the same basename, so the bogon will be chosen
4249 # first if we set CC to just the basename; use the full file name.
4251 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4257 if test -n "$CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4259 $as_echo "$CC" >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4267 if test -z "$CC"; then
4268 if test -n "$ac_tool_prefix"; then
4269 for ac_prog
in cl.exe
4271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false
; then :
4276 $as_echo_n "(cached) " >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC
="$CC" # Let the user override the test.
4281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir
=.
4286 for ac_exec_ext
in '' $ac_executable_extensions; do
4287 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 if test -n "$CC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4308 test -n "$CC" && break
4311 if test -z "$CC"; then
4313 for ac_prog
in cl.exe
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy
$ac_prog; ac_word
=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir
=.
4330 for ac_exec_ext
in '' $ac_executable_extensions; do
4331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC
="$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4345 $as_echo "$ac_ct_CC" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4352 test -n "$ac_ct_CC" && break
4355 if test "x$ac_ct_CC" = x
; then
4358 case $cross_compiling:$ac_tool_warned in
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362 ac_tool_warned
=yes ;;
4371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $?
"no acceptable C compiler found in \$PATH
4374 See \`config.log' for more details" "$LINENO" 5; }
4376 # Provide some information about the compiler.
4377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4380 for ac_option
in --version -v -V -qversion; do
4381 { { ac_try
="$ac_compiler $ac_option >&5"
4383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4390 if test -s conftest.err; then
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err >conftest.er1
4394 cat conftest.er1 >&5
4396 rm -f conftest.er1 conftest.err
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4412 ac_clean_files_save=$ac_clean_files
4413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4414 # Try to create an executable without -o first, disregard a.out.
4415 # It will help us diagnose broken compilers, and finding out an intuition
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4418 $as_echo_n "checking whether the C compiler works... " >&6; }
4419 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4421 # The possible output files:
4422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425 for ac_file in $ac_files
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4429 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4434 if { { ac_try="$ac_link_default"
4436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4437 *) ac_try_echo
=$ac_try;;
4439 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_link_default") 2>&5
4443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }; then :
4445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4446 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4447 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4448 # so that the user can short-circuit this test for compilers unknown to
4450 for ac_file
in $ac_files ''
4452 test -f "$ac_file" ||
continue
4454 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4457 # We found the default executable, but exeext='' is most
4461 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4463 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4465 # We set ac_cv_exeext here because the later test for it is not
4466 # safe: cross compilers may not add the suffix if given an `-o'
4467 # argument, so we may need to know it at that point already.
4468 # Even if this section looks crufty: it has the advantage of
4475 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4480 if test -z "$ac_file"; then :
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.
$ac_ext >&5
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error
77 "C compiler cannot create executables
4489 See \`config.log' for more details" "$LINENO" 5; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4492 $as_echo "yes" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4495 $as_echo_n "checking for C compiler default output file name... " >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4497 $as_echo "$ac_file" >&6; }
4498 ac_exeext
=$ac_cv_exeext
4500 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4501 ac_clean_files
=$ac_clean_files_save
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4503 $as_echo_n "checking for suffix of executables... " >&6; }
4504 if { { ac_try
="$ac_link"
4506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_link") 2>&5
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; then :
4515 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4516 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4517 # work properly (i.e., refer to `conftest.exe'), while it won't with
4519 for ac_file
in conftest.exe conftest conftest.
*; do
4520 test -f "$ac_file" ||
continue
4522 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4523 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details" "$LINENO" 5; }
4534 rm -f conftest conftest
$ac_cv_exeext
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4536 $as_echo "$ac_cv_exeext" >&6; }
4538 rm -f conftest.
$ac_ext
4539 EXEEXT
=$ac_cv_exeext
4541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4547 FILE *f = fopen ("conftest.out", "w");
4548 return ferror (f) || fclose (f) != 0;
4554 ac_clean_files
="$ac_clean_files conftest.out"
4555 # Check that the compiler produces executables we can run. If not, either
4556 # the compiler is broken, or we cross compile.
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4558 $as_echo_n "checking whether we are cross compiling... " >&6; }
4559 if test "$cross_compiling" != yes; then
4560 { { ac_try
="$ac_link"
4562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 $as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_link") 2>&5
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }
4571 if { ac_try='./conftest$ac_cv_exeext'
4572 { { case "(($ac_try" in
4573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4574 *) ac_try_echo
=$ac_try;;
4576 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_try") 2>&5
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }; }; then
4584 if test "$cross_compiling" = maybe
; then
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $?
"cannot run C compiled programs.
4590 If you meant to cross compile, use \`--host'.
4591 See \`config.log' for more details" "$LINENO" 5; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4596 $as_echo "$cross_compiling" >&6; }
4598 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4599 ac_clean_files
=$ac_clean_files_save
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4601 $as_echo_n "checking for suffix of object files... " >&6; }
4602 if ${ac_cv_objext+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4616 rm -f conftest.o conftest.obj
4617 if { { ac_try
="$ac_compile"
4619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623 $as_echo "$ac_try_echo"; } >&5
4624 (eval "$ac_compile") 2>&5
4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }; then :
4628 for ac_file in conftest.o conftest.obj conftest.*; do
4629 test -f "$ac_file" || continue;
4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4637 $as_echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4643 See \
`config.log' for more details" "$LINENO" 5; }
4645 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4648 $as_echo "$ac_cv_objext" >&6; }
4649 OBJEXT=$ac_cv_objext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4652 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4653 if ${ac_cv_c_compiler_gnu+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4670 if ac_fn_c_try_compile "$LINENO"; then :
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4681 if test $ac_compiler_gnu = yes; then
4686 ac_test_CFLAGS=${CFLAGS+set}
4687 ac_save_CFLAGS=$CFLAGS
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4690 if ${ac_cv_prog_cc_g+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 ac_save_c_werror_flag=$ac_c_werror_flag
4694 ac_c_werror_flag=yes
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4708 if ac_fn_c_try_compile "$LINENO"; then :
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4739 if ac_fn_c_try_compile "$LINENO"; then :
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_c_werror_flag=$ac_save_c_werror_flag
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4750 $as_echo "$ac_cv_prog_cc_g" >&6; }
4751 if test "$ac_test_CFLAGS" = set; then
4752 CFLAGS=$ac_save_CFLAGS
4753 elif test $ac_cv_prog_cc_g = yes; then
4754 if test "$GCC" = yes; then
4760 if test "$GCC" = yes; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4767 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4768 if ${ac_cv_prog_cc_c89+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 ac_cv_prog_cc_c89=no
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4779 struct buf { int x; };
4780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4781 static char *e (p, i)
4787 static char *f (char * (*g) (char **, int), char **p, ...)
4792 s = g (p, va_arg (v,int));
4797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4798 function prototypes and stuff, but not '\xHH' hex character constants.
4799 These don't provoke an error unfortunately, instead are silently treated
4800 as 'x'. The following induces an error, until -std is added to get
4801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4802 array size at least. It's necessary to write '\x00'==0 to get something
4803 that's true only with -std. */
4804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4807 inside strings and character constants. */
4809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4811 int test (int i, double x);
4812 struct s1 {int (*f) (int a);};
4813 struct s2 {int (*f) (double a);};
4814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC="$ac_save_CC $ac_arg"
4829 if ac_fn_c_try_compile "$LINENO"; then :
4830 ac_cv_prog_cc_c89=$ac_arg
4832 rm -f core conftest.err conftest.$ac_objext
4833 test "x$ac_cv_prog_cc_c89" != "xno" && break
4835 rm -f conftest.$ac_ext
4840 case "x$ac_cv_prog_cc_c89" in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4843 $as_echo "none needed" >&6; } ;;
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4846 $as_echo "unsupported" >&6; } ;;
4848 CC="$CC $ac_cv_prog_cc_c89"
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4852 if test "x$ac_cv_prog_cc_c89" != xno; then :
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 ac_cpp='$CXXCPP $CPPFLAGS'
4864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4867 if test -z "$CXX"; then
4868 if test -n "$CCC"; then
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_CXX+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$CXX"; then
4882 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 if test -n "$CXX"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4904 $as_echo "$CXX" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 test -n "$CXX" && break
4914 if test -z "$CXX"; then
4916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -n "$ac_ct_CXX"; then
4926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_ac_ct_CXX="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4946 if test -n "$ac_ct_CXX"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4948 $as_echo "$ac_ct_CXX" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 test -n "$ac_ct_CXX" && break
4958 if test "x$ac_ct_CXX" = x; then
4961 case $cross_compiling:$ac_tool_warned in
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4973 # Provide some information about the compiler.
4974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4977 for ac_option in --version -v -V -qversion; do
4978 { { ac_try="$ac_compiler $ac_option >&5"
4980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4981 *) ac_try_echo
=$ac_try;;
4983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4987 if test -s conftest.err
; then
4989 ... rest of stderr output deleted ...
4990 10q' conftest.err
>conftest.er1
4991 cat conftest.er1
>&5
4993 rm -f conftest.er1 conftest.err
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4999 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5000 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5001 $as_echo_n "(cached) " >&6
5003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5017 if ac_fn_cxx_try_compile
"$LINENO"; then :
5022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5023 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5027 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5033 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5034 ac_save_CXXFLAGS
=$CXXFLAGS
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5036 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5037 if ${ac_cv_prog_cxx_g+:} false
; then :
5038 $as_echo_n "(cached) " >&6
5040 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5041 ac_cxx_werror_flag
=yes
5044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5055 if ac_fn_cxx_try_compile
"$LINENO"; then :
5056 ac_cv_prog_cxx_g
=yes
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5070 if ac_fn_cxx_try_compile
"$LINENO"; then :
5073 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5086 if ac_fn_cxx_try_compile
"$LINENO"; then :
5087 ac_cv_prog_cxx_g
=yes
5089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5094 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5097 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5098 if test "$ac_test_CXXFLAGS" = set; then
5099 CXXFLAGS
=$ac_save_CXXFLAGS
5100 elif test $ac_cv_prog_cxx_g = yes; then
5101 if test "$GXX" = yes; then
5107 if test "$GXX" = yes; then
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5124 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_GNATBIND+:} false
; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -n "$GNATBIND"; then
5131 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir
=.
5138 for ac_exec_ext
in '' $ac_executable_extensions; do
5139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 GNATBIND
=$ac_cv_prog_GNATBIND
5151 if test -n "$GNATBIND"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5153 $as_echo "$GNATBIND" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5161 if test -z "$ac_cv_prog_GNATBIND"; then
5162 ac_ct_GNATBIND
=$GNATBIND
5163 # Extract the first word of "gnatbind", so it can be a program name with args.
5164 set dummy gnatbind
; ac_word
=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$ac_ct_GNATBIND"; then
5171 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir
=.
5178 for ac_exec_ext
in '' $ac_executable_extensions; do
5179 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5191 if test -n "$ac_ct_GNATBIND"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5193 $as_echo "$ac_ct_GNATBIND" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5199 if test "x$ac_ct_GNATBIND" = x
; then
5202 case $cross_compiling:$ac_tool_warned in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned
=yes ;;
5208 GNATBIND
=$ac_ct_GNATBIND
5211 GNATBIND
="$ac_cv_prog_GNATBIND"
5214 if test -n "$ac_tool_prefix"; then
5215 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5216 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -n "$GNATMAKE"; then
5223 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir
=.
5230 for ac_exec_ext
in '' $ac_executable_extensions; do
5231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 GNATMAKE
=$ac_cv_prog_GNATMAKE
5243 if test -n "$GNATMAKE"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5245 $as_echo "$GNATMAKE" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5253 if test -z "$ac_cv_prog_GNATMAKE"; then
5254 ac_ct_GNATMAKE
=$GNATMAKE
5255 # Extract the first word of "gnatmake", so it can be a program name with args.
5256 set dummy gnatmake
; ac_word
=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$ac_ct_GNATMAKE"; then
5263 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir
=.
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5283 if test -n "$ac_ct_GNATMAKE"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5285 $as_echo "$ac_ct_GNATMAKE" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5291 if test "x$ac_ct_GNATMAKE" = x
; then
5294 case $cross_compiling:$ac_tool_warned in
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned
=yes ;;
5300 GNATMAKE
=$ac_ct_GNATMAKE
5303 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5307 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5308 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5309 $as_echo_n "(cached) " >&6
5311 cat >conftest.adb
<<EOF
5312 pragma Warnings (Off);
5314 pragma Warnings (On);
5315 use type System.CRTL.int64;
5316 procedure conftest is begin null; end conftest;
5318 acx_cv_cc_gcc_supports_ada
=no
5319 # There is a bug in old released versions of GCC which causes the
5320 # driver to exit successfully when the appropriate language module
5321 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5322 # Therefore we must check for the error message as well as an
5323 # unsuccessful exit.
5324 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5325 # given a .adb file, but produce no object file. So we must check
5326 # if an object file was really produced to guard against this.
5327 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5328 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5329 acx_cv_cc_gcc_supports_ada
=yes
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5334 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5336 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5346 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_GDC+:} false
; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$GDC"; then
5353 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir
=.
5360 for ac_exec_ext
in '' $ac_executable_extensions; do
5361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 if test -n "$GDC"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5375 $as_echo "$GDC" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_GDC"; then
5385 # Extract the first word of "gdc", so it can be a program name with args.
5386 set dummy gdc
; ac_word
=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$ac_ct_GDC"; then
5393 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir
=.
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_GDC
="gdc"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5413 if test -n "$ac_ct_GDC"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5415 $as_echo "$ac_ct_GDC" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_GDC" = x
; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned
=yes ;;
5433 GDC
="$ac_cv_prog_GDC"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5437 $as_echo_n "checking whether the D compiler works... " >&6; }
5438 if ${acx_cv_d_compiler_works+:} false
; then :
5439 $as_echo_n "(cached) " >&6
5441 cat >conftest.d
<<EOF
5442 module conftest; int main() { return 0; }
5444 acx_cv_d_compiler_works
=no
5445 if test "x$GDC" != xno
; then
5446 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5447 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5448 acx_cv_d_compiler_works
=yes
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5454 $as_echo "$acx_cv_d_compiler_works" >&6; }
5455 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5462 # Do configure tests with the C++ compiler, since that's what we build with.
5464 ac_cpp
='$CXXCPP $CPPFLAGS'
5465 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5470 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5471 # optimizations to be activated explicitly by the toplevel.
5473 */prev-gcc
/xgcc
*) ;;
5474 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5475 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5481 # Determine PICFLAG for target gnatlib.
5487 # PIC is the default on some targets or must not be used.
5489 # For darwin, common symbols are not allowed in MH_DYLIB files
5491 # If we are using a compiler supporting mdynamic-no-pic
5492 # and the option has been tested as safe to add, then cancel
5493 # it here, since the code generated is incompatible with shared
5495 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5496 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5500 # PIC is the default.
5503 # PIC is the default for 64-bit PA HP-UX.
5505 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5507 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5509 i
[34567]86-*-interix[3-9]*)
5510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5511 # Instead, we relocate shared libraries at runtime.
5513 i
[34567]86-*-nto-qnx*)
5514 # QNX uses GNU C++, but need to define -shared option too, otherwise
5516 PICFLAG_FOR_TARGET
='-fPIC -shared'
5518 i
[34567]86-pc-msdosdjgpp*)
5519 # DJGPP does not support shared libraries at all.
5522 # On IA64 HP-UX, PIC is the default but the pic flag
5523 # sets the default TLS model and affects inlining.
5524 PICFLAG_FOR_TARGET
=-fPIC
5527 PICFLAG_FOR_TARGET
=-fpic
5530 # PIC is the default.
5532 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5533 # All AIX code is PIC.
5536 # Some targets support both -fPIC and -fpic, but prefer the latter.
5538 i
[34567]86-*-* | x86_64-
*-*)
5539 PICFLAG_FOR_TARGET
=-fpic
5541 # FIXME: Override -fPIC default in libgcc only?
5542 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5543 PICFLAG_FOR_TARGET
=-fpic
5546 PICFLAG_FOR_TARGET
=-fpic
5548 # Default to -fPIC unless specified otherwise.
5550 PICFLAG_FOR_TARGET
=-fPIC
5554 # If the user explicitly uses -fpic/-fPIC, keep that.
5555 case "${CFLAGS_FOR_TARGET}" in
5557 PICFLAG_FOR_TARGET
=-fpic
5560 PICFLAG_FOR_TARGET
=-fPIC
5566 # -------------------------
5567 # Check C compiler features
5568 # -------------------------
5572 ac_cpp
='$CXXCPP $CPPFLAGS'
5573 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5577 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5578 if test -z "$CXXCPP"; then
5579 if ${ac_cv_prog_CXXCPP+:} false
; then :
5580 $as_echo_n "(cached) " >&6
5582 # Double quotes because CXXCPP needs to be expanded
5583 for CXXCPP
in "$CXX -E" "/lib/cpp"
5586 for ac_cxx_preproc_warn_flag
in '' yes
5588 # Use a header file that comes with gcc, so configuring glibc
5589 # with a fresh cross-compiler works.
5590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591 # <limits.h> exists even on freestanding compilers.
5592 # On the NeXT, cc -E runs the code through the compiler's parser,
5593 # not just through cpp. "Syntax error" is here to catch this case.
5594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5597 # include <limits.h>
5599 # include <assert.h>
5603 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5606 # Broken: fails on valid input.
5609 rm -f conftest.err conftest.i conftest.
$ac_ext
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <ac_nonexistent.h>
5617 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5618 # Broken: success on invalid input.
5621 # Passes both tests.
5625 rm -f conftest.err conftest.i conftest.
$ac_ext
5628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5629 rm -f conftest.i conftest.err conftest.
$ac_ext
5630 if $ac_preproc_ok; then :
5635 ac_cv_prog_CXXCPP
=$CXXCPP
5638 CXXCPP
=$ac_cv_prog_CXXCPP
5640 ac_cv_prog_CXXCPP
=$CXXCPP
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5643 $as_echo "$CXXCPP" >&6; }
5645 for ac_cxx_preproc_warn_flag
in '' yes
5647 # Use a header file that comes with gcc, so configuring glibc
5648 # with a fresh cross-compiler works.
5649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650 # <limits.h> exists even on freestanding compilers.
5651 # On the NeXT, cc -E runs the code through the compiler's parser,
5652 # not just through cpp. "Syntax error" is here to catch this case.
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5656 # include <limits.h>
5658 # include <assert.h>
5662 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5665 # Broken: fails on valid input.
5668 rm -f conftest.err conftest.i conftest.
$ac_ext
5670 # OK, works on sane cases. Now check whether nonexistent headers
5671 # can be detected and how.
5672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <ac_nonexistent.h>
5676 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5677 # Broken: success on invalid input.
5680 # Passes both tests.
5684 rm -f conftest.err conftest.i conftest.
$ac_ext
5687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5688 rm -f conftest.i conftest.err conftest.
$ac_ext
5689 if $ac_preproc_ok; then :
5692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5694 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5695 See \`config.log' for more details" "$LINENO" 5; }
5699 ac_cpp
='$CXXCPP $CPPFLAGS'
5700 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5707 if ${ac_cv_path_GREP+:} false
; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -z "$GREP"; then
5711 ac_path_GREP_found
=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5714 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5717 test -z "$as_dir" && as_dir
=.
5718 for ac_prog
in grep ggrep
; do
5719 for ac_exec_ext
in '' $ac_executable_extensions; do
5720 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5721 as_fn_executable_p
"$ac_path_GREP" ||
continue
5722 # Check for GNU ac_path_GREP and select it if it is found.
5723 # Check for GNU $ac_path_GREP
5724 case `"$ac_path_GREP" --version 2>&1` in
5726 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5729 $as_echo_n 0123456789 >"conftest.in"
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'GREP' >> "conftest.nl"
5736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5737 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5738 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_GREP
="$ac_path_GREP"
5742 ac_path_GREP_max
=$ac_count
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5747 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5750 $ac_path_GREP_found && break 3
5755 if test -z "$ac_cv_path_GREP"; then
5756 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 ac_cv_path_GREP
=$GREP
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5764 $as_echo "$ac_cv_path_GREP" >&6; }
5765 GREP
="$ac_cv_path_GREP"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5769 $as_echo_n "checking for egrep... " >&6; }
5770 if ${ac_cv_path_EGREP+:} false
; then :
5771 $as_echo_n "(cached) " >&6
5773 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5774 then ac_cv_path_EGREP
="$GREP -E"
5776 if test -z "$EGREP"; then
5777 ac_path_EGREP_found
=false
5778 # Loop through the user's path and test for each of PROGNAME-LIST
5779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5780 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_prog
in egrep; do
5785 for ac_exec_ext
in '' $ac_executable_extensions; do
5786 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5787 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5788 # Check for GNU ac_path_EGREP and select it if it is found.
5789 # Check for GNU $ac_path_EGREP
5790 case `"$ac_path_EGREP" --version 2>&1` in
5792 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5795 $as_echo_n 0123456789 >"conftest.in"
5798 cat "conftest.in" "conftest.in" >"conftest.tmp"
5799 mv "conftest.tmp" "conftest.in"
5800 cp "conftest.in" "conftest.nl"
5801 $as_echo 'EGREP' >> "conftest.nl"
5802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5803 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5804 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5806 # Best one so far, save it but keep looking for a better one
5807 ac_cv_path_EGREP
="$ac_path_EGREP"
5808 ac_path_EGREP_max
=$ac_count
5810 # 10*(2^10) chars as input seems more than enough
5811 test $ac_count -gt 10 && break
5813 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5816 $ac_path_EGREP_found && break 3
5821 if test -z "$ac_cv_path_EGREP"; then
5822 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5825 ac_cv_path_EGREP
=$EGREP
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5831 $as_echo "$ac_cv_path_EGREP" >&6; }
5832 EGREP
="$ac_cv_path_EGREP"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5836 $as_echo_n "checking for ANSI C header files... " >&6; }
5837 if ${ac_cv_header_stdc+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5855 if ac_fn_cxx_try_compile
"$LINENO"; then :
5856 ac_cv_header_stdc
=yes
5858 ac_cv_header_stdc
=no
5860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5862 if test $ac_cv_header_stdc = yes; then
5863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 $EGREP "memchr" >/dev
/null
2>&1; then :
5873 ac_cv_header_stdc
=no
5879 if test $ac_cv_header_stdc = yes; then
5880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev
/null
2>&1; then :
5890 ac_cv_header_stdc
=no
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then :
5901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5905 #if ((' ' & 0x0FF) == 0x020)
5906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 # define ISLOWER(c) \
5910 (('a' <= (c) && (c) <= 'i') \
5911 || ('j' <= (c) && (c) <= 'r') \
5912 || ('s' <= (c) && (c) <= 'z'))
5913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5921 for (i = 0; i < 256; i++)
5922 if (XOR (islower (i), ISLOWER (i))
5923 || toupper (i) != TOUPPER (i))
5928 if ac_fn_cxx_try_run
"$LINENO"; then :
5931 ac_cv_header_stdc
=no
5933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5940 $as_echo "$ac_cv_header_stdc" >&6; }
5941 if test $ac_cv_header_stdc = yes; then
5943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5948 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5949 inttypes.h stdint.h unistd.h
5951 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5954 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5955 cat >>confdefs.h
<<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5965 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5966 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5973 if test "$MINIX" = yes; then
5975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5981 $as_echo "#define _MINIX 1" >>confdefs.h
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5988 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5994 # define __EXTENSIONS__ 1
5995 $ac_includes_default
6004 if ac_fn_cxx_try_compile
"$LINENO"; then :
6005 ac_cv_safe_to_define___extensions__
=yes
6007 ac_cv_safe_to_define___extensions__
=no
6009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6013 test $ac_cv_safe_to_define___extensions__ = yes &&
6014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6027 ac_cpp
='$CPP $CPPFLAGS'
6028 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6037 if test -z "$CPP"; then
6038 if ${ac_cv_prog_CPP+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 # Double quotes because CPP needs to be expanded
6042 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 for ac_c_preproc_warn_flag
in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 # include <limits.h>
6058 # include <assert.h>
6062 if ac_fn_c_try_cpp
"$LINENO"; then :
6065 # Broken: fails on valid input.
6068 rm -f conftest.err conftest.i conftest.
$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6076 if ac_fn_c_try_cpp
"$LINENO"; then :
6077 # Broken: success on invalid input.
6080 # Passes both tests.
6084 rm -f conftest.err conftest.i conftest.
$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.i conftest.err conftest.
$ac_ext
6089 if $ac_preproc_ok; then :
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6104 for ac_c_preproc_warn_flag
in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6115 # include <limits.h>
6117 # include <assert.h>
6121 if ac_fn_c_try_cpp
"$LINENO"; then :
6124 # Broken: fails on valid input.
6127 rm -f conftest.err conftest.i conftest.
$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6135 if ac_fn_c_try_cpp
"$LINENO"; then :
6136 # Broken: success on invalid input.
6139 # Passes both tests.
6143 rm -f conftest.err conftest.i conftest.
$ac_ext
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.i conftest.err conftest.
$ac_ext
6148 if $ac_preproc_ok; then :
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details" "$LINENO" 5; }
6158 ac_cpp
='$CXXCPP $CPPFLAGS'
6159 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6164 $as_echo_n "checking for inline... " >&6; }
6165 if ${ac_cv_c_inline+:} false
; then :
6166 $as_echo_n "(cached) " >&6
6169 for ac_kw
in inline __inline__ __inline
; do
6170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6174 static $ac_kw foo_t static_foo () {return 0; }
6175 $ac_kw foo_t foo () {return 0; }
6179 if ac_fn_cxx_try_compile
"$LINENO"; then :
6180 ac_cv_c_inline
=$ac_kw
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 test "$ac_cv_c_inline" != no
&& break
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6188 $as_echo "$ac_cv_c_inline" >&6; }
6190 case $ac_cv_c_inline in
6193 case $ac_cv_c_inline in
6195 *) ac_val
=$ac_cv_c_inline;;
6197 cat >>confdefs.h
<<_ACEOF
6199 #define inline $ac_val
6206 # Check whether --enable-largefile was given.
6207 if test "${enable_largefile+set}" = set; then :
6208 enableval
=$enable_largefile;
6211 if test "$enable_largefile" != no
; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6214 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6215 if ${ac_cv_sys_largefile_CC+:} false
; then :
6216 $as_echo_n "(cached) " >&6
6218 ac_cv_sys_largefile_CC
=no
6219 if test "$GCC" != yes; then
6222 # IRIX 6.2 and later do not support large files by default,
6223 # so use the C compiler's -n32 option if that helps.
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <sys/types.h>
6227 /* Check that off_t can represent 2**63 - 1 correctly.
6228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6229 since some C++ compilers masquerading as C compilers
6230 incorrectly reject 9223372036854775807. */
6231 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6233 && LARGE_OFF_T % 2147483647 == 1)
6243 if ac_fn_cxx_try_compile
"$LINENO"; then :
6246 rm -f core conftest.err conftest.
$ac_objext
6248 if ac_fn_cxx_try_compile
"$LINENO"; then :
6249 ac_cv_sys_largefile_CC
=' -n32'; break
6251 rm -f core conftest.err conftest.
$ac_objext
6255 rm -f conftest.
$ac_ext
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6259 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6260 if test "$ac_cv_sys_largefile_CC" != no
; then
6261 CC
=$CC$ac_cv_sys_largefile_CC
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6265 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6266 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6267 $as_echo_n "(cached) " >&6
6270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6272 #include <sys/types.h>
6273 /* Check that off_t can represent 2**63 - 1 correctly.
6274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6275 since some C++ compilers masquerading as C compilers
6276 incorrectly reject 9223372036854775807. */
6277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6279 && LARGE_OFF_T % 2147483647 == 1)
6289 if ac_fn_cxx_try_compile
"$LINENO"; then :
6290 ac_cv_sys_file_offset_bits
=no
; break
6292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #define _FILE_OFFSET_BITS 64
6296 #include <sys/types.h>
6297 /* Check that off_t can represent 2**63 - 1 correctly.
6298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6299 since some C++ compilers masquerading as C compilers
6300 incorrectly reject 9223372036854775807. */
6301 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6303 && LARGE_OFF_T % 2147483647 == 1)
6313 if ac_fn_cxx_try_compile
"$LINENO"; then :
6314 ac_cv_sys_file_offset_bits
=64; break
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 ac_cv_sys_file_offset_bits
=unknown
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6322 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6323 case $ac_cv_sys_file_offset_bits in #(
6326 cat >>confdefs.h
<<_ACEOF
6327 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6332 if test $ac_cv_sys_file_offset_bits = unknown
; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6334 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6335 if ${ac_cv_sys_large_files+:} false
; then :
6336 $as_echo_n "(cached) " >&6
6339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #include <sys/types.h>
6342 /* Check that off_t can represent 2**63 - 1 correctly.
6343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6344 since some C++ compilers masquerading as C compilers
6345 incorrectly reject 9223372036854775807. */
6346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6348 && LARGE_OFF_T % 2147483647 == 1)
6358 if ac_fn_cxx_try_compile
"$LINENO"; then :
6359 ac_cv_sys_large_files
=no
; break
6361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #define _LARGE_FILES 1
6365 #include <sys/types.h>
6366 /* Check that off_t can represent 2**63 - 1 correctly.
6367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6368 since some C++ compilers masquerading as C compilers
6369 incorrectly reject 9223372036854775807. */
6370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6372 && LARGE_OFF_T % 2147483647 == 1)
6382 if ac_fn_cxx_try_compile
"$LINENO"; then :
6383 ac_cv_sys_large_files
=1; break
6385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 ac_cv_sys_large_files
=unknown
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6391 $as_echo "$ac_cv_sys_large_files" >&6; }
6392 case $ac_cv_sys_large_files in #(
6395 cat >>confdefs.h
<<_ACEOF
6396 #define _LARGE_FILES $ac_cv_sys_large_files
6406 # The cast to long int works around a bug in the HP C Compiler
6407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6409 # This bug is HP SR number 8606223364.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6411 $as_echo_n "checking size of ino_t... " >&6; }
6412 if ${ac_cv_sizeof_ino_t+:} false
; then :
6413 $as_echo_n "(cached) " >&6
6415 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6418 if test "$ac_cv_type_ino_t" = yes; then
6419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6421 as_fn_error
77 "cannot compute sizeof (ino_t)
6422 See \`config.log' for more details" "$LINENO" 5; }
6424 ac_cv_sizeof_ino_t
=0
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6430 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6434 cat >>confdefs.h
<<_ACEOF
6435 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6439 # The cast to long int works around a bug in the HP C Compiler
6440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6442 # This bug is HP SR number 8606223364.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6444 $as_echo_n "checking size of dev_t... " >&6; }
6445 if ${ac_cv_sizeof_dev_t+:} false
; then :
6446 $as_echo_n "(cached) " >&6
6448 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6451 if test "$ac_cv_type_dev_t" = yes; then
6452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 as_fn_error
77 "cannot compute sizeof (dev_t)
6455 See \`config.log' for more details" "$LINENO" 5; }
6457 ac_cv_sizeof_dev_t
=0
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6463 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6467 cat >>confdefs.h
<<_ACEOF
6468 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6473 # Select the right stat being able to handle 64bit inodes, if needed.
6474 if test "$enable_largefile" != no
; then
6475 case "$host, $build" in
6476 *-*-aix*,*|
*,*-*-aix*)
6477 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6479 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6486 # sizeof(char) is 1 by definition.
6487 # The cast to long int works around a bug in the HP C Compiler
6488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6490 # This bug is HP SR number 8606223364.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6492 $as_echo_n "checking size of void *... " >&6; }
6493 if ${ac_cv_sizeof_void_p+:} false
; then :
6494 $as_echo_n "(cached) " >&6
6496 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6499 if test "$ac_cv_type_void_p" = yes; then
6500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6502 as_fn_error
77 "cannot compute sizeof (void *)
6503 See \`config.log' for more details" "$LINENO" 5; }
6505 ac_cv_sizeof_void_p
=0
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6511 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6515 cat >>confdefs.h
<<_ACEOF
6516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6520 # The cast to long int works around a bug in the HP C Compiler
6521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6523 # This bug is HP SR number 8606223364.
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6525 $as_echo_n "checking size of short... " >&6; }
6526 if ${ac_cv_sizeof_short+:} false
; then :
6527 $as_echo_n "(cached) " >&6
6529 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6532 if test "$ac_cv_type_short" = yes; then
6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6535 as_fn_error
77 "cannot compute sizeof (short)
6536 See \`config.log' for more details" "$LINENO" 5; }
6538 ac_cv_sizeof_short
=0
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6544 $as_echo "$ac_cv_sizeof_short" >&6; }
6548 cat >>confdefs.h
<<_ACEOF
6549 #define SIZEOF_SHORT $ac_cv_sizeof_short
6553 # The cast to long int works around a bug in the HP C Compiler
6554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6556 # This bug is HP SR number 8606223364.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6558 $as_echo_n "checking size of int... " >&6; }
6559 if ${ac_cv_sizeof_int+:} false
; then :
6560 $as_echo_n "(cached) " >&6
6562 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6565 if test "$ac_cv_type_int" = yes; then
6566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6568 as_fn_error
77 "cannot compute sizeof (int)
6569 See \`config.log' for more details" "$LINENO" 5; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6577 $as_echo "$ac_cv_sizeof_int" >&6; }
6581 cat >>confdefs.h
<<_ACEOF
6582 #define SIZEOF_INT $ac_cv_sizeof_int
6586 # The cast to long int works around a bug in the HP C Compiler
6587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6589 # This bug is HP SR number 8606223364.
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6591 $as_echo_n "checking size of long... " >&6; }
6592 if ${ac_cv_sizeof_long+:} false
; then :
6593 $as_echo_n "(cached) " >&6
6595 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6598 if test "$ac_cv_type_long" = yes; then
6599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6601 as_fn_error
77 "cannot compute sizeof (long)
6602 See \`config.log' for more details" "$LINENO" 5; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6610 $as_echo "$ac_cv_sizeof_long" >&6; }
6614 cat >>confdefs.h
<<_ACEOF
6615 #define SIZEOF_LONG $ac_cv_sizeof_long
6619 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6620 if test "x$ac_cv_type_long_long" = xyes
; then :
6622 cat >>confdefs.h
<<_ACEOF
6623 #define HAVE_LONG_LONG 1
6626 # The cast to long int works around a bug in the HP C Compiler
6627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6629 # This bug is HP SR number 8606223364.
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6631 $as_echo_n "checking size of long long... " >&6; }
6632 if ${ac_cv_sizeof_long_long+:} false
; then :
6633 $as_echo_n "(cached) " >&6
6635 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6638 if test "$ac_cv_type_long_long" = yes; then
6639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6641 as_fn_error
77 "cannot compute sizeof (long long)
6642 See \`config.log' for more details" "$LINENO" 5; }
6644 ac_cv_sizeof_long_long
=0
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6650 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6654 cat >>confdefs.h
<<_ACEOF
6655 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6661 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6662 case $ac_cv_c_int8_t in #(
6666 cat >>confdefs.h
<<_ACEOF
6667 #define int8_t $ac_cv_c_int8_t
6672 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6673 case $ac_cv_c_int16_t in #(
6677 cat >>confdefs.h
<<_ACEOF
6678 #define int16_t $ac_cv_c_int16_t
6683 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6684 case $ac_cv_c_int32_t in #(
6688 cat >>confdefs.h
<<_ACEOF
6689 #define int32_t $ac_cv_c_int32_t
6694 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6695 case $ac_cv_c_int64_t in #(
6699 cat >>confdefs.h
<<_ACEOF
6700 #define int64_t $ac_cv_c_int64_t
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6707 $as_echo_n "checking for unsigned long long int... " >&6; }
6708 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6709 $as_echo_n "(cached) " >&6
6711 ac_cv_type_unsigned_long_long_int
=yes
6712 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 /* For now, do not test the preprocessor; as of 2007 there are too many
6717 implementations with broken preprocessors. Perhaps this can
6718 be revisited in 2012. In the meantime, code should not expect
6719 #if to work with literals wider than 32 bits. */
6720 /* Test literals. */
6721 long long int ll = 9223372036854775807ll;
6722 long long int nll = -9223372036854775807LL;
6723 unsigned long long int ull = 18446744073709551615ULL;
6724 /* Test constant expressions. */
6725 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6727 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6733 /* Test availability of runtime routines for shift and division. */
6734 long long int llmax = 9223372036854775807ll;
6735 unsigned long long int ullmax = 18446744073709551615ull;
6736 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6737 | (llmax / ll) | (llmax % ll)
6738 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6739 | (ullmax / ull) | (ullmax % ull));
6745 if ac_fn_cxx_try_link
"$LINENO"; then :
6748 ac_cv_type_unsigned_long_long_int
=no
6750 rm -f core conftest.err conftest.
$ac_objext \
6751 conftest
$ac_exeext conftest.
$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6755 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6756 if test $ac_cv_type_unsigned_long_long_int = yes; then
6758 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6765 $as_echo_n "checking for long long int... " >&6; }
6766 if ${ac_cv_type_long_long_int+:} false
; then :
6767 $as_echo_n "(cached) " >&6
6769 ac_cv_type_long_long_int
=yes
6770 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6771 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6772 if test $ac_cv_type_long_long_int = yes; then
6773 if test "$cross_compiling" = yes; then :
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6781 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6782 # define LLONG_MAX (HALF - 1 + HALF)
6787 long long int n = 1;
6791 long long int m = n << i;
6794 if (LLONG_MAX / 2 < m)
6802 if ac_fn_cxx_try_run
"$LINENO"; then :
6805 ac_cv_type_long_long_int
=no
6807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6815 $as_echo "$ac_cv_type_long_long_int" >&6; }
6816 if test $ac_cv_type_long_long_int = yes; then
6818 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6824 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6825 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6827 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6830 test $ac_cv_type_long_long_int = yes \
6831 && ac_type
='long long int' \
6832 || ac_type
='long int'
6834 cat >>confdefs.h
<<_ACEOF
6835 #define intmax_t $ac_type
6842 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6843 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6845 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6848 for ac_type
in 'int' 'long int' 'long long int'; do
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 $ac_includes_default
6855 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6857 return test_array [0];
6863 if ac_fn_cxx_try_compile
"$LINENO"; then :
6865 cat >>confdefs.h
<<_ACEOF
6866 #define intptr_t $ac_type
6871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6872 test -z "$ac_type" && break
6877 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6878 case $ac_cv_c_uint8_t in #(
6882 $as_echo "#define _UINT8_T 1" >>confdefs.h
6885 cat >>confdefs.h
<<_ACEOF
6886 #define uint8_t $ac_cv_c_uint8_t
6891 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6892 case $ac_cv_c_uint16_t in #(
6897 cat >>confdefs.h
<<_ACEOF
6898 #define uint16_t $ac_cv_c_uint16_t
6903 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6904 case $ac_cv_c_uint32_t in #(
6908 $as_echo "#define _UINT32_T 1" >>confdefs.h
6911 cat >>confdefs.h
<<_ACEOF
6912 #define uint32_t $ac_cv_c_uint32_t
6917 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6918 case $ac_cv_c_uint64_t in #(
6922 $as_echo "#define _UINT64_T 1" >>confdefs.h
6925 cat >>confdefs.h
<<_ACEOF
6926 #define uint64_t $ac_cv_c_uint64_t
6933 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6934 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6936 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6939 test $ac_cv_type_unsigned_long_long_int = yes \
6940 && ac_type
='unsigned long long int' \
6941 || ac_type
='unsigned long int'
6943 cat >>confdefs.h
<<_ACEOF
6944 #define uintmax_t $ac_type
6951 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6952 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6954 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6957 for ac_type
in 'unsigned int' 'unsigned long int' \
6958 'unsigned long long int'; do
6959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 $ac_includes_default
6965 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6967 return test_array [0];
6973 if ac_fn_cxx_try_compile
"$LINENO"; then :
6975 cat >>confdefs.h
<<_ACEOF
6976 #define uintptr_t $ac_type
6981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6982 test -z "$ac_type" && break
6999 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
7000 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
7003 # check what underlying integer type int64_t uses
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7005 $as_echo_n "checking for int64_t underlying type... " >&6; }
7006 if ${ac_cv_int64_t_type+:} false
; then :
7007 $as_echo_n "(cached) " >&6
7010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7013 #ifdef HAVE_STDINT_H
7016 template <typename T> struct X { };
7018 struct X<long> { typedef long t; };
7028 if ac_fn_cxx_try_compile
"$LINENO"; then :
7029 ac_cv_int64_t_type
=long
7031 ac_cv_int64_t_type
="long long"
7033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7036 $as_echo "$ac_cv_int64_t_type" >&6; }
7037 if test "$ac_cv_int64_t_type" = "long"; then
7039 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7045 #ifdef HAVE_STDINT_H
7048 template <typename T> struct X { };
7050 struct X<long long> { typedef long long t; };
7060 if ac_fn_cxx_try_compile
"$LINENO"; then :
7063 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7069 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7070 if ${ac_cv_std_swap_in_utility+:} false
; then :
7071 $as_echo_n "(cached) " >&6
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7082 int a, b; std::swap(a,b);
7087 if ac_fn_cxx_try_compile
"$LINENO"; then :
7088 ac_cv_std_swap_in_utility
=yes
7090 ac_cv_std_swap_in_utility
=no
7092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7095 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7096 if test $ac_cv_std_swap_in_utility = yes; then
7098 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7102 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7103 # If the host compiler is affected by the bug, and we build with optimization
7104 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7105 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7106 # Since there is no reliable feature check for the presence of this bug,
7107 # we simply use a GCC version number check. (This should never trigger for
7108 # stages 2 or 3 of a native bootstrap.)
7110 if test "$GCC" = yes; then
7111 saved_CXXFLAGS
="$CXXFLAGS"
7113 # The following test compilation will succeed if and only if $CXX accepts
7114 # -fno-strict-aliasing *and* is older than GCC 4.3.
7115 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7117 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7121 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7122 #error compiler not affected by placement new aliasing bug
7126 if ac_fn_cxx_try_compile
"$LINENO"; then :
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 CXXFLAGS
="$saved_CXXFLAGS"
7141 # ---------------------
7142 # Warnings and checking
7143 # ---------------------
7145 # Check $CC warning features (if it's GCC).
7146 # We want to use -pedantic, but we don't want warnings about
7149 # * overlong strings
7150 # * C++11 narrowing conversions in { }
7151 # So, we only use -pedantic if we can disable those warnings.
7153 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7154 # Check whether --enable-build-format-warnings was given.
7155 if test "${enable_build_format_warnings+set}" = set; then :
7156 enableval
=$enable_build_format_warnings;
7158 enable_build_format_warnings
=yes
7161 if test $enable_build_format_warnings = no
; then :
7167 ac_cpp
='$CXXCPP $CPPFLAGS'
7168 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7173 save_CXXFLAGS
="$CXXFLAGS"
7174 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7175 # Do the check with the no- prefix removed since gcc silently
7176 # accepts any -Wno-* option on purpose
7177 case $real_option in
7178 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7179 *) option
=$real_option ;;
7181 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7184 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7185 if eval \
${$as_acx_Woption+:} false
; then :
7186 $as_echo_n "(cached) " >&6
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7200 if ac_fn_cxx_try_compile
"$LINENO"; then :
7201 eval "$as_acx_Woption=yes"
7203 eval "$as_acx_Woption=no"
7205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7208 eval ac_res
=\$
$as_acx_Woption
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7210 $as_echo "$ac_res" >&6; }
7211 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7212 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7215 CXXFLAGS
="$save_CXXFLAGS"
7217 ac_cpp
='$CXXCPP $CPPFLAGS'
7218 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7225 ac_cpp
='$CPP $CPPFLAGS'
7226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7231 save_CFLAGS
="$CFLAGS"
7232 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7233 # Do the check with the no- prefix removed since gcc silently
7234 # accepts any -Wno-* option on purpose
7235 case $real_option in
7236 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7237 *) option
=$real_option ;;
7239 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7242 $as_echo_n "checking whether $CC supports $option... " >&6; }
7243 if eval \
${$as_acx_Woption+:} false
; then :
7244 $as_echo_n "(cached) " >&6
7247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7258 if ac_fn_c_try_compile
"$LINENO"; then :
7259 eval "$as_acx_Woption=yes"
7261 eval "$as_acx_Woption=no"
7263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7266 eval ac_res
=\$
$as_acx_Woption
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7268 $as_echo "$ac_res" >&6; }
7269 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7270 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7273 CFLAGS
="$save_CFLAGS"
7275 ac_cpp
='$CXXCPP $CPPFLAGS'
7276 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7282 ac_cpp
='$CXXCPP $CPPFLAGS'
7283 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7288 save_CXXFLAGS
="$CXXFLAGS"
7289 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7290 # Do the check with the no- prefix removed since gcc silently
7291 # accepts any -Wno-* option on purpose
7292 case $real_option in
7293 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7294 *) option
=$real_option ;;
7296 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7299 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7300 if eval \
${$as_acx_Woption+:} false
; then :
7301 $as_echo_n "(cached) " >&6
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_cxx_try_compile
"$LINENO"; then :
7316 eval "$as_acx_Woption=yes"
7318 eval "$as_acx_Woption=no"
7320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7323 eval ac_res
=\$
$as_acx_Woption
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7325 $as_echo "$ac_res" >&6; }
7326 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7327 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7330 CXXFLAGS
="$save_CXXFLAGS"
7332 ac_cpp
='$CXXCPP $CPPFLAGS'
7333 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7339 ac_cpp
='$CPP $CPPFLAGS'
7340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7345 save_CFLAGS
="$CFLAGS"
7346 for real_option
in -Wold-style-definition -Wc++-compat; do
7347 # Do the check with the no- prefix removed since gcc silently
7348 # accepts any -Wno-* option on purpose
7349 case $real_option in
7350 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7351 *) option
=$real_option ;;
7353 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7356 $as_echo_n "checking whether $CC supports $option... " >&6; }
7357 if eval \
${$as_acx_Woption+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7372 if ac_fn_c_try_compile
"$LINENO"; then :
7373 eval "$as_acx_Woption=yes"
7375 eval "$as_acx_Woption=no"
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 eval ac_res
=\$
$as_acx_Woption
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7382 $as_echo "$ac_res" >&6; }
7383 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7384 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7387 CFLAGS
="$save_CFLAGS"
7389 ac_cpp
='$CXXCPP $CPPFLAGS'
7390 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7396 ac_cpp
='$CXXCPP $CPPFLAGS'
7397 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7401 # Do the check with the no- prefix removed from the warning options
7402 # since gcc silently accepts any -Wno-* option on purpose
7403 if test "$GXX" = yes; then :
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7405 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7406 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7407 $as_echo_n "(cached) " >&6
7409 save_CXXFLAGS
="$CXXFLAGS"
7410 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7422 if ac_fn_cxx_try_compile
"$LINENO"; then :
7423 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7425 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7428 CXXFLAGS
="$save_CXXFLAGS"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7431 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7432 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7433 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7438 ac_cpp
='$CXXCPP $CPPFLAGS'
7439 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7445 ac_cpp
='$CXXCPP $CPPFLAGS'
7446 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7447 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7448 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7450 # Check whether --enable-werror-always was given.
7451 if test "${enable_werror_always+set}" = set; then :
7452 enableval
=$enable_werror_always;
7454 enable_werror_always
=no
7457 if test $enable_werror_always = yes; then :
7458 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7462 ac_cpp
='$CXXCPP $CPPFLAGS'
7463 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7469 # The above macros do nothing if the compiler is not GCC. However, the
7470 # Makefile has more goo to add other flags, so these variables are used
7471 # to enable warnings only for GCC.
7474 if test "x$GCC" = "xyes"; then
7475 warn_cflags
='$(GCC_WARN_CFLAGS)'
7476 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7481 # Disable exceptions and RTTI if building with g++
7483 ac_cpp
='$CPP $CPPFLAGS'
7484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7489 save_CFLAGS
="$CFLAGS"
7490 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7491 # Do the check with the no- prefix removed since gcc silently
7492 # accepts any -Wno-* option on purpose
7493 case $real_option in
7494 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7495 *) option
=$real_option ;;
7497 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7500 $as_echo_n "checking whether $CC supports $option... " >&6; }
7501 if eval \
${$as_acx_Woption+:} false
; then :
7502 $as_echo_n "(cached) " >&6
7505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7516 if ac_fn_c_try_compile
"$LINENO"; then :
7517 eval "$as_acx_Woption=yes"
7519 eval "$as_acx_Woption=no"
7521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 eval ac_res
=\$
$as_acx_Woption
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7526 $as_echo "$ac_res" >&6; }
7527 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7528 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7531 CFLAGS
="$save_CFLAGS"
7533 ac_cpp
='$CXXCPP $CPPFLAGS'
7534 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7540 # Enable expensive internal checks
7542 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7546 # Check whether --enable-checking was given.
7547 if test "${enable_checking+set}" = set; then :
7548 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7551 # Determine the default checks.
7552 if test x
$is_release = x
; then
7553 ac_checking_flags
=yes,extra
7555 ac_checking_flags
=release
7559 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7560 for check
in release
$ac_checking_flags
7563 # these set all the flags to specific states
7564 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7565 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7566 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7567 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7568 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7569 ac_types_checking
=1 ;;
7570 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7571 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7572 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7573 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7574 ac_tree_checking
= ; ac_valgrind_checking
= ;
7575 ac_types_checking
= ;;
7576 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7577 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7578 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7579 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7580 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7581 ac_types_checking
=1 ;;
7582 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7583 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7584 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7585 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7586 ac_tree_checking
= ; ac_valgrind_checking
= ;
7587 ac_types_checking
= ;;
7588 # these enable particular checks
7589 assert
) ac_assert_checking
=1 ;;
7590 df
) ac_df_checking
=1 ;;
7591 extra
) ac_extra_checking
=1 ;;
7592 fold) ac_fold_checking
=1 ;;
7593 gc
) ac_gc_checking
=1 ;;
7594 gcac
) ac_gc_always_collect
=1 ;;
7595 gimple
) ac_gimple_checking
=1 ;;
7596 misc
) ac_checking
=1 ;;
7597 rtl
) ac_rtl_checking
=1 ;;
7598 rtlflag
) ac_rtlflag_checking
=1 ;;
7599 runtime
) ac_runtime_checking
=1 ;;
7600 tree
) ac_tree_checking
=1 ;;
7601 types
) ac_types_checking
=1 ;;
7602 valgrind
) ac_valgrind_checking
=1 ;;
7603 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7609 if test x
$ac_checking != x
; then
7611 $as_echo "#define CHECKING_P 1" >>confdefs.h
7613 nocommon_flag
=-fno-common
7615 $as_echo "#define CHECKING_P 0" >>confdefs.h
7619 if test x
$ac_extra_checking != x
; then
7621 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7624 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7627 if test x
$ac_df_checking != x
; then
7629 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7632 if test x
$ac_assert_checking != x
; then
7634 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7637 if test x
$ac_gimple_checking != x
; then
7639 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7643 if test x
$ac_runtime_checking != x
; then
7645 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7648 if test x
$ac_tree_checking != x
; then
7650 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7654 if test x
$ac_types_checking != x
; then
7656 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7660 if test x
$ac_rtl_checking != x
; then
7662 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7665 if test x
$ac_rtlflag_checking != x
; then
7667 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7670 if test x
$ac_gc_checking != x
; then
7672 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7675 if test x
$ac_gc_always_collect != x
; then
7677 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7680 if test x
$ac_fold_checking != x
; then
7682 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7685 valgrind_path_defines
=
7687 if test x
$ac_valgrind_checking != x
; then
7689 # Prepare PATH_SEPARATOR.
7690 # The user is always right.
7691 if test "${PATH_SEPARATOR+set}" != set; then
7692 echo "#! /bin/sh" >conf$$.sh
7693 echo "exit 0" >>conf$$.sh
7695 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7703 # Find out how to test for executable files. Don't use a zero-byte file,
7704 # as systems may use methods other than mode bits to determine executability.
7705 cat >conf$$.
file <<_ASEOF
7709 chmod +x conf$$.
file
7710 if test -x conf$$.
file >/dev
/null
2>&1; then
7711 ac_executable_p
="test -x"
7713 ac_executable_p
="test -f"
7717 # Extract the first word of "valgrind", so it can be a program name with args.
7718 set dummy valgrind
; ac_word
=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_path_valgrind_path+:} false
; then :
7722 $as_echo_n "(cached) " >&6
7724 case "$valgrind_path" in
7726 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7729 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7730 for ac_dir
in $PATH; do
7732 test -z "$ac_dir" && ac_dir
=.
7733 for ac_exec_ext
in '' $ac_executable_extensions; do
7734 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7735 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7736 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7746 valgrind_path
="$ac_cv_path_valgrind_path"
7747 if test -n "$valgrind_path"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7749 $as_echo "$valgrind_path" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 if test "x$valgrind_path" = "x"; then
7756 as_fn_error $?
"*** Cannot find valgrind" "$LINENO" 5
7758 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7759 valgrind_command
="$valgrind_path -q"
7761 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7767 # Enable code coverage collection
7768 # Check whether --enable-coverage was given.
7769 if test "${enable_coverage+set}" = set; then :
7770 enableval
=$enable_coverage; case "${enableval}" in
7772 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7775 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7778 # a.k.a. --disable-coverage
7782 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7791 # Check whether --enable-gather-detailed-mem-stats was given.
7792 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7793 enableval
=$enable_gather_detailed_mem_stats;
7795 enable_gather_detailed_mem_stats
=no
7798 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7800 cat >>confdefs.h
<<_ACEOF
7801 #define GATHER_STATISTICS $gather_stats
7805 # Check whether --enable-valgrind-annotations was given.
7806 if test "${enable_valgrind_annotations+set}" = set; then :
7807 enableval
=$enable_valgrind_annotations;
7809 enable_valgrind_annotations
=no
7812 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7813 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
7818 if test x
$enable_valgrind_annotations != xno \
7819 ||
test x
$ac_valgrind_checking != x
; then
7820 if test $ac_cv_header_valgrind_memcheck_h = no
; then
7821 as_fn_error $?
"*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7824 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7828 # -------------------------------
7829 # Miscenalleous configure options
7830 # -------------------------------
7832 # Determine whether or not multilibs are enabled.
7833 # Check whether --enable-multilib was given.
7834 if test "${enable_multilib+set}" = set; then :
7835 enableval
=$enable_multilib;
7842 # Determine whether or not multiarch is enabled.
7843 # Check whether --enable-multiarch was given.
7844 if test "${enable_multiarch+set}" = set; then :
7845 enableval
=$enable_multiarch; case "${enableval}" in
7846 yes|no|auto
) enable_multiarch
=$enableval;;
7847 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7850 enable_multiarch
=auto
7853 if test x
${enable_multiarch} = xauto
; then
7854 if test x
${with_native_system_header_dir} != x
; then
7855 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7858 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7859 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7863 if test x
${enable_multiarch} = xyes
; then
7865 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7869 $as_echo_n "checking for multiarch configuration... " >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7872 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7874 # needed for setting the multiarch name for soft-float/hard-float ABIs
7878 # default stack clash protection guard size as power of twos in bytes.
7879 # Please keep these in sync with params.def.
7883 # Keep the default value when the option is not used to 0, this allows us to
7884 # distinguish between the cases where the user specifially set a value via
7885 # configure and when the normal default value is used.
7887 # Check whether --with-stack-clash-protection-guard-size was given.
7888 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7889 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7891 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7894 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7895 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7896 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7897 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
7901 cat >>confdefs.h
<<_ACEOF
7902 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7906 # Specify the number of splits of match.pd to generate.
7908 # Check whether --with-matchpd-partitions was given.
7909 if test "${with_matchpd_partitions+set}" = set; then :
7910 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7912 DEFAULT_MATCHPD_PARTITIONS
=10
7915 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7916 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7921 # Specify the number of splits of insn-emit.cc to generate.
7923 # Check whether --with-insnemit-partitions was given.
7924 if test "${with_insnemit_partitions+set}" = set; then :
7925 withval
=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS
="$with_insnemit_partitions"
7927 DEFAULT_INSNEMIT_PARTITIONS
=10
7930 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7931 as_fn_error $?
"Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7936 # Enable __cxa_atexit for C++.
7937 # Check whether --enable-__cxa_atexit was given.
7938 if test "${enable___cxa_atexit+set}" = set; then :
7939 enableval
=$enable___cxa_atexit;
7943 # Enable C extension for decimal float if target supports it.
7945 # Check whether --enable-decimal-float was given.
7946 if test "${enable_decimal_float+set}" = set; then :
7947 enableval
=$enable_decimal_float;
7948 case $enable_decimal_float in
7949 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7950 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7951 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7958 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7959 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7960 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7961 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7962 enable_decimal_float
=yes
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7966 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7967 enable_decimal_float
=no
7974 # x86's use BID format instead of DPD
7975 case x
$enable_decimal_float in
7978 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7979 enable_decimal_float
=bid
7982 enable_decimal_float
=dpd
7985 default_decimal_float
=$enable_decimal_float
7988 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7989 # dependency on libdecnumber.
7990 default_decimal_float
=dpd
7997 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7999 cat >>confdefs.h
<<_ACEOF
8000 #define ENABLE_DECIMAL_FLOAT $dfp
8004 # Use default_decimal_float for dependency.
8005 enable_decimal_float
=$default_decimal_float
8007 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8009 cat >>confdefs.h
<<_ACEOF
8010 #define ENABLE_DECIMAL_BID_FORMAT $bid
8014 # Enable C extension for fixed-point arithmetic.
8015 # Check whether --enable-fixed-point was given.
8016 if test "${enable_fixed_point+set}" = set; then :
8017 enableval
=$enable_fixed_point;
8022 enable_fixed_point
=yes
8026 enable_fixed_point
=yes
8029 enable_fixed_point
=yes
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8033 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8034 enable_fixed_point
=no
8042 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8044 cat >>confdefs.h
<<_ACEOF
8045 #define ENABLE_FIXED_POINT $fixedpoint
8050 # Pass with no value to take the default
8051 # Pass with a value to specify a thread package
8052 # Check whether --enable-threads was given.
8053 if test "${enable_threads+set}" = set; then :
8054 enableval
=$enable_threads;
8060 # Check whether --enable-tls was given.
8061 if test "${enable_tls+set}" = set; then :
8062 enableval
=$enable_tls;
8065 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8066 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8074 # Check whether --enable-vtable-verify was given.
8075 if test "${enable_vtable_verify+set}" = set; then :
8076 enableval
=$enable_vtable_verify;
8078 enable_vtable_verify
=no
8081 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8083 cat >>confdefs.h
<<_ACEOF
8084 #define ENABLE_VTABLE_VERIFY $vtable_verify
8088 # Check whether --enable-analyzer was given.
8089 if test "${enable_analyzer+set}" = set; then :
8090 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8100 cat >>confdefs.h
<<_ACEOF
8101 #define ENABLE_ANALYZER $analyzer
8105 # Check whether --enable-objc-gc was given.
8106 if test "${enable_objc_gc+set}" = set; then :
8107 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8118 # Check whether --with-dwarf2 was given.
8119 if test "${with_dwarf2+set}" = set; then :
8120 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8126 # Check whether --enable-shared was given.
8127 if test "${enable_shared+set}" = set; then :
8128 enableval
=$enable_shared;
8129 case $enable_shared in
8133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8134 for pkg
in $enableval; do
8135 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8149 # Check whether --enable-gcov was given.
8150 if test "${enable_gcov+set}" = set; then :
8151 enableval
=$enable_gcov;
8167 # Check whether --with-specs was given.
8168 if test "${with_specs+set}" = set; then :
8169 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8179 # Check whether --with-pkgversion was given.
8180 if test "${with_pkgversion+set}" = set; then :
8181 withval
=$with_pkgversion; case "$withval" in
8182 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8184 *) PKGVERSION
="($withval) " ;;
8195 # Check whether --with-bugurl was given.
8196 if test "${with_bugurl+set}" = set; then :
8197 withval
=$with_bugurl; case "$withval" in
8198 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8201 *) BUGURL
="$withval"
8205 BUGURL
="https://gcc.gnu.org/bugs/"
8215 REPORT_BUGS_TO
="<$BUGURL>"
8216 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8223 # Allow overriding the default URL for documentation
8225 # Check whether --with-documentation-root-url was given.
8226 if test "${with_documentation_root_url+set}" = set; then :
8227 withval
=$with_documentation_root_url; case "$withval" in
8228 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8229 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8230 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8231 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8236 case "$gcc_version" in
8237 *.
[123456].0) docroot_url_suffix
="gcc-$gcc_version/";;
8238 *.
[123456].1) docroot_url_suffix
="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8240 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8245 cat >>confdefs.h
<<_ACEOF
8246 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8250 # Allow overriding the default URL for GCC changes
8252 # Check whether --with-changes-root-url was given.
8253 if test "${with_changes_root_url+set}" = set; then :
8254 withval
=$with_changes_root_url; case "$withval" in
8255 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8256 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8257 */) CHANGES_ROOT_URL
="$withval" ;;
8258 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8261 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8266 cat >>confdefs.h
<<_ACEOF
8267 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8271 # Sanity check enable_languages in case someone does not run the toplevel
8272 # configure # script.
8273 # Check whether --enable-languages was given.
8274 if test "${enable_languages+set}" = set; then :
8275 enableval
=$enable_languages; case ,${enable_languages}, in
8277 # go safe -- we cannot be much sure without the toplevel
8279 # analysis of which target libs are present and usable
8283 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8288 enable_languages
=c
,${enable_languages}
8296 # If top-level libada has been disabled, then wire in install-gnatlib
8297 # invocation with `make install', so that one can build and install
8298 # the library manually with `make -C gcc all gnatlib gnattools install'.
8299 if test x
"$enable_libada" = xno
; then
8300 gnat_install_lib
=gnat-install-lib
8306 if test x
"$enable_as_accelerator_for" != x
; then
8308 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8310 enable_as_accelerator
=yes
8311 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8312 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8313 accel_dir_suffix
=/accel
/${target_noncanonical}
8314 real_target_noncanonical
=${enable_as_accelerator_for}
8320 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8321 tgt
=`echo $tgt | sed 's/=.*//'`
8326 omp_device_property
=omp-device-properties-gcn
8327 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8330 omp_device_property
=omp-device-properties-nvptx
8331 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8334 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8337 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8338 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8340 if test x
"$offload_targets" = x
; then
8341 offload_targets
=$tgt
8343 offload_targets
="$offload_targets,$tgt"
8350 cat >>confdefs.h
<<_ACEOF
8351 #define OFFLOAD_TARGETS "$offload_targets"
8354 if test x
"$enable_offloading" != x
; then
8356 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8360 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8364 if test "x$enable_offload_defaulted" = xyes
; then
8366 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8371 # Check whether --with-multilib-list was given.
8372 if test "${with_multilib_list+set}" = set; then :
8373 withval
=$with_multilib_list; :
8375 with_multilib_list
=default
8380 # Check whether --with-multilib-generator was given.
8381 if test "${with_multilib_generator+set}" = set; then :
8382 withval
=$with_multilib_generator; :
8384 with_multilib_generator
=default
8388 # -------------------------
8389 # Checks for other programs
8390 # -------------------------
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8393 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8395 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8396 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8397 $as_echo_n "(cached) " >&6
8399 cat >conftest.
make <<\_ACEOF
8402 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8405 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8407 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8409 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8413 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 SET_MAKE
="MAKE=${MAKE-make}"
8424 # Find some useful tools
8425 for ac_prog
in gawk mawk nawk
awk
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428 set dummy
$ac_prog; ac_word
=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_AWK+:} false
; then :
8432 $as_echo_n "(cached) " >&6
8434 if test -n "$AWK"; then
8435 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir
=.
8442 for ac_exec_ext
in '' $ac_executable_extensions; do
8443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_prog_AWK
="$ac_prog"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 if test -n "$AWK"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8457 $as_echo "$AWK" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8464 test -n "$AWK" && break
8467 # We need awk to create options.cc and options.h.
8468 # Bail out if it's missing.
8470 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8474 $as_echo_n "checking whether ln -s works... " >&6; }
8475 if ${gcc_cv_prog_LN_S+:} false
; then :
8476 $as_echo_n "(cached) " >&6
8478 rm -f conftestdata_t
8479 echo >conftestdata_f
8480 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8482 gcc_cv_prog_LN_S
="ln -s"
8484 if ln conftestdata_f conftestdata_t
2>/dev
/null
8488 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8490 gcc_cv_prog_LN_S
="cp -p"
8496 rm -f conftestdata_f conftestdata_t
8499 LN_S
="$gcc_cv_prog_LN_S"
8500 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8502 $as_echo "yes" >&6; }
8504 if test "$gcc_cv_prog_LN_S" = "ln"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8506 $as_echo "no, using ln" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8509 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8514 $as_echo_n "checking whether ln works... " >&6; }
8515 if ${acx_cv_prog_LN+:} false
; then :
8516 $as_echo_n "(cached) " >&6
8518 rm -f conftestdata_t
8519 echo >conftestdata_f
8520 if ln conftestdata_f conftestdata_t
2>/dev
/null
8526 rm -f conftestdata_f conftestdata_t
8529 if test $acx_cv_prog_LN = no
; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8532 $as_echo "no, using $LN" >&6; }
8534 LN
="$acx_cv_prog_LN"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536 $as_echo "yes" >&6; }
8539 if test -n "$ac_tool_prefix"; then
8540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8541 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_RANLIB+:} false
; then :
8545 $as_echo_n "(cached) " >&6
8547 if test -n "$RANLIB"; then
8548 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir
=.
8555 for ac_exec_ext
in '' $ac_executable_extensions; do
8556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 RANLIB
=$ac_cv_prog_RANLIB
8568 if test -n "$RANLIB"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8570 $as_echo "$RANLIB" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8578 if test -z "$ac_cv_prog_RANLIB"; then
8579 ac_ct_RANLIB
=$RANLIB
8580 # Extract the first word of "ranlib", so it can be a program name with args.
8581 set dummy ranlib
; ac_word
=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$ac_ct_RANLIB"; then
8588 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir
=.
8595 for ac_exec_ext
in '' $ac_executable_extensions; do
8596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8608 if test -n "$ac_ct_RANLIB"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8610 $as_echo "$ac_ct_RANLIB" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8616 if test "x$ac_ct_RANLIB" = x
; then
8619 case $cross_compiling:$ac_tool_warned in
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned
=yes ;;
8625 RANLIB
=$ac_ct_RANLIB
8628 RANLIB
="$ac_cv_prog_RANLIB"
8634 # Find a good install program. We prefer a C program (faster),
8635 # so one script is as good as another. But avoid the broken or
8636 # incompatible versions:
8637 # SysV /etc/install, /usr/sbin/install
8638 # SunOS /usr/etc/install
8639 # IRIX /sbin/install
8641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8643 # ./install, which can be erroneously created by make from ./install.sh.
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8645 $as_echo_n "checking for a BSD compatible install... " >&6; }
8646 if test -z "$INSTALL"; then
8647 if ${ac_cv_path_install+:} false
; then :
8648 $as_echo_n "(cached) " >&6
8650 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8651 for ac_dir
in $PATH; do
8652 # Account for people who put trailing slashes in PATH elements.
8654 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8656 # OSF1 and SCO ODT 3.0 have their own names for install.
8657 for ac_prog
in ginstall scoinst
install; do
8658 if test -f $ac_dir/$ac_prog; then
8659 if test $ac_prog = install &&
8660 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8661 # AIX install. It has an incompatible calling convention.
8662 # OSF/1 installbsd also uses dspmsg, but is usable.
8665 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8676 if test "${ac_cv_path_install+set}" = set; then
8677 INSTALL
="$ac_cv_path_install"
8679 # As a last resort, use the slow shell script. We don't cache a
8680 # path for INSTALL within a source directory, because that will
8681 # break other packages using the cache if that directory is
8682 # removed, or if the path is relative.
8683 INSTALL
="$ac_install_sh"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8687 $as_echo "$INSTALL" >&6; }
8689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8690 # It thinks the first close brace ends the variable substitution.
8691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8693 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8696 # See if cmp has --ignore-initial.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8698 $as_echo_n "checking for cmp's capabilities... " >&6; }
8699 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8700 $as_echo_n "(cached) " >&6
8704 gcc_cv_prog_cmp_skip
=slowcompare
8705 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8706 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8709 gcc_cv_prog_cmp_skip
=gnucompare
8712 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8713 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8714 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8717 gcc_cv_prog_cmp_skip
=fastcompare
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8725 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8726 make_compare_target
=$gcc_cv_prog_cmp_skip
8730 # See if we have the mktemp command.
8731 # Extract the first word of "mktemp", so it can be a program name with args.
8732 set dummy mktemp
; ac_word
=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8736 $as_echo_n "(cached) " >&6
8738 if test -n "$have_mktemp_command"; then
8739 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8745 test -z "$as_dir" && as_dir
=.
8746 for ac_exec_ext
in '' $ac_executable_extensions; do
8747 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_prog_have_mktemp_command
="yes"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8759 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8760 if test -n "$have_mktemp_command"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8762 $as_echo "$have_mktemp_command" >&6; }
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 # See if makeinfo has been installed and is modern enough
8771 # that we can use it.
8773 # Extract the first word of "makeinfo", so it can be a program name with args.
8774 set dummy makeinfo
; ac_word
=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8778 $as_echo_n "(cached) " >&6
8780 if test -n "$MAKEINFO"; then
8781 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8787 test -z "$as_dir" && as_dir
=.
8788 for ac_exec_ext
in '' $ac_executable_extensions; do
8789 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_prog_MAKEINFO
="makeinfo"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 MAKEINFO
=$ac_cv_prog_MAKEINFO
8801 if test -n "$MAKEINFO"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8803 $as_echo "$MAKEINFO" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8810 if test -n "$MAKEINFO"; then
8811 # Found it, now check the version.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8813 $as_echo_n "checking for modern makeinfo... " >&6; }
8814 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8815 $as_echo_n "(cached) " >&6
8817 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8818 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8820 case $ac_prog_version in
8821 '') gcc_cv_prog_makeinfo_modern
=no
;;
8822 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8823 *) gcc_cv_prog_makeinfo_modern
=no
;;
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8828 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8830 gcc_cv_prog_makeinfo_modern
=no
8832 if test $gcc_cv_prog_makeinfo_modern = no
; then
8833 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8836 if test $gcc_cv_prog_makeinfo_modern = no
; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8838 *** Makeinfo is missing or too old.
8839 *** Info documentation will not be built." >&5
8840 $as_echo "$as_me: WARNING:
8841 *** Makeinfo is missing or too old.
8842 *** Info documentation will not be built." >&2;}
8849 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8850 # If it does, we want to pass it to makeinfo in order to restore the old
8851 # behavior of @{summary,}contents placement.
8852 MAKEINFO_TOC_INLINE_FLAG
=
8853 if test x
"$MAKEINFO" != x
; then :
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8856 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8857 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8858 $as_echo_n "(cached) " >&6
8861 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8862 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8863 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8864 gcc_cv_texi_add_toc_inline_flags
=no
8866 gcc_cv_texi_add_toc_inline_flags
=yes
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8871 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8872 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8873 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8879 # Is pod2man recent enough to regenerate manpages?
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8881 $as_echo_n "checking for recent Pod::Man... " >&6; }
8882 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8884 $as_echo "yes" >&6; }
8885 GENERATED_MANPAGES
=generated-manpages
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8893 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8898 # Extract the first word of "$ac_prog", so it can be a program name with args.
8899 set dummy
$ac_prog; ac_word
=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_FLEX+:} false
; then :
8903 $as_echo_n "(cached) " >&6
8905 if test -n "$FLEX"; then
8906 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8912 test -z "$as_dir" && as_dir
=.
8913 for ac_exec_ext
in '' $ac_executable_extensions; do
8914 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_FLEX
="$ac_prog"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 FLEX
=$ac_cv_prog_FLEX
8926 if test -n "$FLEX"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8928 $as_echo "$FLEX" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8935 test -n "$FLEX" && break
8937 test -n "$FLEX" || FLEX
="$MISSING flex"
8941 for ac_prog
in bison
8943 # Extract the first word of "$ac_prog", so it can be a program name with args.
8944 set dummy
$ac_prog; ac_word
=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_prog_BISON+:} false
; then :
8948 $as_echo_n "(cached) " >&6
8950 if test -n "$BISON"; then
8951 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8957 test -z "$as_dir" && as_dir
=.
8958 for ac_exec_ext
in '' $ac_executable_extensions; do
8959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_BISON
="$ac_prog"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 BISON
=$ac_cv_prog_BISON
8971 if test -n "$BISON"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8973 $as_echo "$BISON" >&6; }
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8980 test -n "$BISON" && break
8982 test -n "$BISON" || BISON
="$MISSING bison"
8987 # Extract the first word of "python3", so it can be a program name with args.
8988 set dummy python3
; ac_word
=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_PYTHON+:} false
; then :
8992 $as_echo_n "(cached) " >&6
8994 if test -n "$PYTHON"; then
8995 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir
=.
9002 for ac_exec_ext
in '' $ac_executable_extensions; do
9003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_PYTHON
="python3"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 PYTHON
=$ac_cv_prog_PYTHON
9015 if test -n "$PYTHON"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9017 $as_echo "$PYTHON" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9024 if test -n "$PYTHON"; then
9025 # Found it, now check the version.
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9027 $as_echo_n "checking for modern python3... " >&6; }
9028 if ${gcc_cv_prog_python3_modern+:} false
; then :
9029 $as_echo_n "(cached) " >&6
9031 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9032 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9034 case $ac_prog_version in
9035 '') gcc_cv_prog_python3_modern
=no
;;
9036 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9037 *) gcc_cv_prog_python3_modern
=no
;;
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9042 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9044 gcc_cv_prog_python3_modern
=no
9046 if test $gcc_cv_prog_python3_modern = no
; then
9047 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9050 if test $gcc_cv_prog_python3_modern = no
; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9052 *** Python3 is missing.
9053 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9054 $as_echo "$as_me: WARNING:
9055 *** Python3 is missing.
9056 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9063 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9064 # check for build == host before using them.
9067 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9068 && test -d ..
/binutils
; then
9069 NM
='${objdir}/../binutils/nm-new'
9071 # Extract the first word of "nm", so it can be a program name with args.
9072 set dummy nm
; ac_word
=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_prog_NM+:} false
; then :
9076 $as_echo_n "(cached) " >&6
9078 if test -n "$NM"; then
9079 ac_cv_prog_NM
="$NM" # Let the user override the test.
9081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9085 test -z "$as_dir" && as_dir
=.
9086 for ac_exec_ext
in '' $ac_executable_extensions; do
9087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9100 if test -n "$NM"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9102 $as_echo "$NM" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9112 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9113 && test -d ..
/binutils
; then
9114 AR
='${objdir}/../binutils/ar'
9116 # Extract the first word of "ar", so it can be a program name with args.
9117 set dummy
ar; ac_word
=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_AR+:} false
; then :
9121 $as_echo_n "(cached) " >&6
9123 if test -n "$AR"; then
9124 ac_cv_prog_AR
="$AR" # Let the user override the test.
9126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9130 test -z "$as_dir" && as_dir
=.
9131 for ac_exec_ext
in '' $ac_executable_extensions; do
9132 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9145 if test -n "$AR"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9147 $as_echo "$AR" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9156 # The jit documentation looks better if built with sphinx, but can be
9157 # built with texinfo if sphinx is not available.
9158 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9159 # Extract the first word of "sphinx-build", so it can be a program name with args.
9160 set dummy sphinx-build
; ac_word
=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9164 $as_echo_n "(cached) " >&6
9166 if test -n "$doc_build_sys"; then
9167 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir
=.
9174 for ac_exec_ext
in '' $ac_executable_extensions; do
9175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_doc_build_sys
="sphinx"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9187 doc_build_sys
=$ac_cv_prog_doc_build_sys
9188 if test -n "$doc_build_sys"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9190 $as_echo "$doc_build_sys" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9198 # --------------------
9199 # Checks for C headers
9200 # --------------------
9202 # Need to reject headers which give warnings, so that the -Werror bootstrap
9203 # works later. *sigh* This needs to come before all header checks.
9205 ac_c_preproc_warn_flag
=yes
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9208 $as_echo_n "checking for ANSI C header files... " >&6; }
9209 if ${ac_cv_header_stdc+:} false
; then :
9210 $as_echo_n "(cached) " >&6
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9227 if ac_fn_cxx_try_compile
"$LINENO"; then :
9228 ac_cv_header_stdc
=yes
9230 ac_cv_header_stdc
=no
9232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9234 if test $ac_cv_header_stdc = yes; then
9235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "memchr" >/dev
/null
2>&1; then :
9245 ac_cv_header_stdc
=no
9251 if test $ac_cv_header_stdc = yes; then
9252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9259 $EGREP "free" >/dev
/null
2>&1; then :
9262 ac_cv_header_stdc
=no
9268 if test $ac_cv_header_stdc = yes; then
9269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9270 if test "$cross_compiling" = yes; then :
9273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9277 #if ((' ' & 0x0FF) == 0x020)
9278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9281 # define ISLOWER(c) \
9282 (('a' <= (c) && (c) <= 'i') \
9283 || ('j' <= (c) && (c) <= 'r') \
9284 || ('s' <= (c) && (c) <= 'z'))
9285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9293 for (i = 0; i < 256; i++)
9294 if (XOR (islower (i), ISLOWER (i))
9295 || toupper (i) != TOUPPER (i))
9300 if ac_fn_cxx_try_run
"$LINENO"; then :
9303 ac_cv_header_stdc
=no
9305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9312 $as_echo "$ac_cv_header_stdc" >&6; }
9313 if test $ac_cv_header_stdc = yes; then
9315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9320 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9321 if ${ac_cv_header_time+:} false
; then :
9322 $as_echo_n "(cached) " >&6
9324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <sys/types.h>
9327 #include <sys/time.h>
9333 if ((struct tm *) 0)
9339 if ac_fn_cxx_try_compile
"$LINENO"; then :
9340 ac_cv_header_time
=yes
9342 ac_cv_header_time
=no
9344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9347 $as_echo "$ac_cv_header_time" >&6; }
9348 if test $ac_cv_header_time = yes; then
9350 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9355 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9356 if ${gcc_cv_header_string+:} false
; then :
9357 $as_echo_n "(cached) " >&6
9359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9362 #include <strings.h>
9371 if ac_fn_cxx_try_compile
"$LINENO"; then :
9372 gcc_cv_header_string
=yes
9374 gcc_cv_header_string
=no
9376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9379 $as_echo "$gcc_cv_header_string" >&6; }
9380 if test $gcc_cv_header_string = yes; then
9382 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9387 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9388 if ${ac_cv_header_sys_wait_h+:} false
; then :
9389 $as_echo_n "(cached) " >&6
9391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <sys/wait.h>
9396 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9399 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9412 if ac_fn_cxx_try_compile
"$LINENO"; then :
9413 ac_cv_header_sys_wait_h
=yes
9415 ac_cv_header_sys_wait_h
=no
9417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9420 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9421 if test $ac_cv_header_sys_wait_h = yes; then
9423 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9428 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9429 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9430 $as_echo_n "(cached) " >&6
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <termios.h>
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "yes" >/dev
/null
2>&1; then :
9443 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9445 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9451 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9453 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9455 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9456 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9457 $as_echo_n "(cached) " >&6
9459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 #include <sys/types.h>
9462 #include <sys/ioctl.h>
9468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9469 $EGREP "yes" >/dev
/null
2>&1; then :
9470 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9472 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9478 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9480 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9482 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9487 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9488 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9489 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9490 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9492 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9494 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9495 cat >>confdefs.h
<<_ACEOF
9496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9503 # Check for thread headers.
9504 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9505 if test "x$ac_cv_header_thread_h" = xyes
; then :
9511 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9512 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9519 # These tests can't be done till we know if we have limits.h.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9521 $as_echo_n "checking for CHAR_BIT... " >&6; }
9522 if ${gcc_cv_decl_char_bit+:} false
; then :
9523 $as_echo_n "(cached) " >&6
9525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 #ifdef HAVE_LIMITS_H
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "found" >/dev
/null
2>&1; then :
9536 gcc_cv_decl_char_bit
=yes
9538 gcc_cv_decl_char_bit
=no
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9545 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9546 if test $gcc_cv_decl_char_bit = no
; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9548 $as_echo_n "checking number of bits in a byte... " >&6; }
9549 if ${gcc_cv_c_nbby+:} false
; then :
9550 $as_echo_n "(cached) " >&6
9554 while test $i -lt 65; do
9555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9562 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9563 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9569 if ac_fn_cxx_try_compile
"$LINENO"; then :
9570 gcc_cv_c_nbby
=$i; break
9572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9575 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9579 $as_echo "$gcc_cv_c_nbby" >&6; }
9580 if test $gcc_cv_c_nbby = failed
; then
9581 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9584 cat >>confdefs.h
<<_ACEOF
9585 #define CHAR_BIT $gcc_cv_c_nbby
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9591 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9592 if ${ac_cv_c_bigendian+:} false
; then :
9593 $as_echo_n "(cached) " >&6
9595 ac_cv_c_bigendian
=unknown
9596 # See if we're dealing with a universal compiler.
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #ifndef __APPLE_CC__
9600 not a universal capable compiler
9605 if ac_fn_cxx_try_compile
"$LINENO"; then :
9607 # Check for potential -arch flags. It is not universal unless
9608 # there are at least two -arch flags with different values.
9611 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9612 if test -n "$ac_prev"; then
9614 i?
86 | x86_64 | ppc | ppc64
)
9615 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9618 ac_cv_c_bigendian
=universal
9624 elif test "x$ac_word" = "x-arch"; then
9629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9630 if test $ac_cv_c_bigendian = unknown
; then
9631 # See if sys/param.h defines the BYTE_ORDER macro.
9632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9635 #include <sys/param.h>
9640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9650 if ac_fn_cxx_try_compile
"$LINENO"; then :
9651 # It does; now see whether it defined to BIG_ENDIAN or not.
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/param.h>
9660 #if BYTE_ORDER != BIG_ENDIAN
9668 if ac_fn_cxx_try_compile
"$LINENO"; then :
9669 ac_cv_c_bigendian
=yes
9671 ac_cv_c_bigendian
=no
9673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9677 if test $ac_cv_c_bigendian = unknown
; then
9678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9694 if ac_fn_cxx_try_compile
"$LINENO"; then :
9695 # It does; now see whether it defined to _BIG_ENDIAN or not.
9696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9711 if ac_fn_cxx_try_compile
"$LINENO"; then :
9712 ac_cv_c_bigendian
=yes
9714 ac_cv_c_bigendian
=no
9716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9720 if test $ac_cv_c_bigendian = unknown
; then
9721 # Compile a test program.
9722 if test "$cross_compiling" = yes; then :
9723 # Try to guess by grepping values from an object file.
9724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 short int ascii_mm[] =
9727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9728 short int ascii_ii[] =
9729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9730 int use_ascii (int i) {
9731 return ascii_mm[i] + ascii_ii[i];
9733 short int ebcdic_ii[] =
9734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9735 short int ebcdic_mm[] =
9736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9737 int use_ebcdic (int i) {
9738 return ebcdic_mm[i] + ebcdic_ii[i];
9745 return use_ascii (foo) == use_ebcdic (foo);
9750 if ac_fn_cxx_try_compile
"$LINENO"; then :
9751 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9752 ac_cv_c_bigendian
=yes
9754 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9755 if test "$ac_cv_c_bigendian" = unknown
; then
9756 ac_cv_c_bigendian
=no
9758 # finding both strings is unlikely to happen, but who knows?
9759 ac_cv_c_bigendian
=unknown
9763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 $ac_includes_default
9772 /* Are we little or big endian? From Harbison&Steele. */
9776 char c[sizeof (long int)];
9779 return u.c[sizeof (long int) - 1] == 1;
9785 if ac_fn_cxx_try_run
"$LINENO"; then :
9786 ac_cv_c_bigendian
=no
9788 ac_cv_c_bigendian
=yes
9790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9797 $as_echo "$ac_cv_c_bigendian" >&6; }
9798 case $ac_cv_c_bigendian in #(
9800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9810 as_fn_error $?
"unknown endianness
9811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9815 # ----------------------
9816 # Checks for C++ headers
9817 # ----------------------
9820 ac_cpp
='$CXXCPP $CPPFLAGS'
9821 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9825 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9826 if test -z "$CXXCPP"; then
9827 if ${ac_cv_prog_CXXCPP+:} false
; then :
9828 $as_echo_n "(cached) " >&6
9830 # Double quotes because CXXCPP needs to be expanded
9831 for CXXCPP
in "$CXX -E" "/lib/cpp"
9834 for ac_cxx_preproc_warn_flag
in '' yes
9836 # Use a header file that comes with gcc, so configuring glibc
9837 # with a fresh cross-compiler works.
9838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 # <limits.h> exists even on freestanding compilers.
9840 # On the NeXT, cc -E runs the code through the compiler's parser,
9841 # not just through cpp. "Syntax error" is here to catch this case.
9842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9845 # include <limits.h>
9847 # include <assert.h>
9851 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9854 # Broken: fails on valid input.
9857 rm -f conftest.err conftest.i conftest.
$ac_ext
9859 # OK, works on sane cases. Now check whether nonexistent headers
9860 # can be detected and how.
9861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9863 #include <ac_nonexistent.h>
9865 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9866 # Broken: success on invalid input.
9869 # Passes both tests.
9873 rm -f conftest.err conftest.i conftest.
$ac_ext
9876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9877 rm -f conftest.i conftest.err conftest.
$ac_ext
9878 if $ac_preproc_ok; then :
9883 ac_cv_prog_CXXCPP
=$CXXCPP
9886 CXXCPP
=$ac_cv_prog_CXXCPP
9888 ac_cv_prog_CXXCPP
=$CXXCPP
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9891 $as_echo "$CXXCPP" >&6; }
9893 for ac_cxx_preproc_warn_flag
in '' yes
9895 # Use a header file that comes with gcc, so configuring glibc
9896 # with a fresh cross-compiler works.
9897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 # <limits.h> exists even on freestanding compilers.
9899 # On the NeXT, cc -E runs the code through the compiler's parser,
9900 # not just through cpp. "Syntax error" is here to catch this case.
9901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 # include <limits.h>
9906 # include <assert.h>
9910 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9913 # Broken: fails on valid input.
9916 rm -f conftest.err conftest.i conftest.
$ac_ext
9918 # OK, works on sane cases. Now check whether nonexistent headers
9919 # can be detected and how.
9920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <ac_nonexistent.h>
9924 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9925 # Broken: success on invalid input.
9928 # Passes both tests.
9932 rm -f conftest.err conftest.i conftest.
$ac_ext
9935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9936 rm -f conftest.i conftest.err conftest.
$ac_ext
9937 if $ac_preproc_ok; then :
9940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9943 See \`config.log' for more details" >&5
9944 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9945 See \`config.log' for more details" >&2;}; }
9949 ac_cpp
='$CXXCPP $CPPFLAGS'
9950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9955 for ac_header
in unordered_map
9957 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9958 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9959 cat >>confdefs.h
<<_ACEOF
9960 #define HAVE_UNORDERED_MAP 1
9966 for ac_header
in tr1/unordered_map
9968 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9969 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9970 cat >>confdefs.h
<<_ACEOF
9971 #define HAVE_TR1_UNORDERED_MAP 1
9977 for ac_header
in ext
/hash_map
9979 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9980 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9981 cat >>confdefs.h
<<_ACEOF
9982 #define HAVE_EXT_HASH_MAP 1
9990 # Dependency checking.
9993 rm -rf .tst
2>/dev
/null
9994 mkdir .tst
2>/dev
/null
9995 if test -d .tst
; then
10000 rmdir .tst
2>/dev
/null
10002 DEPDIR
="${am__leading_dot}deps"
10004 ac_config_commands
="$ac_config_commands depdir"
10007 ac_config_commands
="$ac_config_commands gccdepdir"
10010 depcc
="$CXX" am_compiler_list
=
10012 am_depcomp
=$ac_aux_dir/depcomp
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10014 $as_echo_n "checking dependency style of $depcc... " >&6; }
10015 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
10016 $as_echo_n "(cached) " >&6
10018 if test -f "$am_depcomp"; then
10019 # We make a subdir and do the tests there. Otherwise we can end up
10020 # making bogus files that we don't know about and never remove. For
10021 # instance it was reported that on HP-UX the gcc test will end up
10022 # making a dummy file named `D' -- because `-MD' means `put the output
10025 # Copy depcomp to subdir because otherwise we won't find it if we're
10026 # using a relative directory.
10027 cp "$am_depcomp" conftest.dir
10029 # We will build objects and dependencies in a subdirectory because
10030 # it helps to detect inapplicable dependency modes. For instance
10031 # both Tru64's cc and ICC support -MD to output dependencies as a
10032 # side effect of compilation, but ICC will put the dependencies in
10033 # the current directory while Tru64 will put them in the object
10037 am_cv_CXX_dependencies_compiler_type
=none
10038 if test "$am_compiler_list" = ""; then
10039 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10041 for depmode
in $am_compiler_list; do
10042 if test $depmode = none
; then break; fi
10044 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10045 # Setup a source with many dependencies, because some compilers
10046 # like to wrap large dependency lists on column 80 (with \), and
10047 # we should not choose a depcomp mode which is confused by this.
10049 # We need to recreate these files for each test, as the compiler may
10050 # overwrite some of them when testing with obscure command lines.
10051 # This happens at least with the AIX C compiler.
10053 for i
in 1 2 3 4 5 6; do
10054 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10056 # Solaris 8's {/usr,}/bin/sh.
10057 touch sub
/conftst
$i.h
10059 echo "include sub/conftest.Po" > confmf
10061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10062 # mode. It turns out that the SunPro C++ compiler does not properly
10063 # handle `-M -o', and we need to detect this.
10064 depcmd
="depmode=$depmode \
10065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10068 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10069 if env
$depcmd > conftest.err
2>&1 &&
10070 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10071 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10072 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10073 # icc doesn't choke on unknown options, it will just issue warnings
10074 # or remarks (even with -Werror). So we grep stderr for any message
10075 # that says an option was ignored or not supported.
10076 # When given -MP, icc 7.0 and 7.1 complain thusly:
10077 # icc: Command line warning: ignoring option '-M'; no argument required
10078 # The diagnosis changed in icc 8.0:
10079 # icc: Command line remark: option '-MP' not supported
10080 if (grep 'ignoring option' conftest.err ||
10081 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10082 am_cv_CXX_dependencies_compiler_type
=$depmode
10083 $as_echo "$as_me:$LINENO: success" >&5
10087 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10088 sed -e 's/^/| /' < conftest.err
>&5
10092 rm -rf conftest.dir
10094 am_cv_CXX_dependencies_compiler_type
=none
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10099 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10100 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10101 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10102 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10112 # These libraries may be used by collect2.
10113 # We may need a special search path to get them linked.
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10115 $as_echo_n "checking for collect2 libraries... " >&6; }
10116 if ${gcc_cv_collect2_libs+:} false
; then :
10117 $as_echo_n "(cached) " >&6
10120 for libs
in '' -lld -lmld \
10121 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10122 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10143 if ac_fn_cxx_try_link
"$LINENO"; then :
10144 gcc_cv_collect2_libs
="$libs"; break
10146 rm -f core conftest.err conftest.
$ac_objext \
10147 conftest
$ac_exeext conftest.
$ac_ext
10150 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10153 $as_echo "$gcc_cv_collect2_libs" >&6; }
10154 case $gcc_cv_collect2_libs in
10155 "none required") ;;
10156 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10160 # When building Ada code on Alpha, we need exc_resume which is usually in
10161 # -lexc. So test for it.
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10165 $as_echo_n "checking for library containing exc_resume... " >&6; }
10166 if ${ac_cv_search_exc_resume+:} false
; then :
10167 $as_echo_n "(cached) " >&6
10169 ac_func_search_save_LIBS
=$LIBS
10170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10179 char exc_resume ();
10183 return exc_resume ();
10188 for ac_lib
in '' exc
; do
10189 if test -z "$ac_lib"; then
10190 ac_res
="none required"
10193 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10195 if ac_fn_cxx_try_link
"$LINENO"; then :
10196 ac_cv_search_exc_resume
=$ac_res
10198 rm -f core conftest.err conftest.
$ac_objext \
10200 if ${ac_cv_search_exc_resume+:} false
; then :
10204 if ${ac_cv_search_exc_resume+:} false
; then :
10207 ac_cv_search_exc_resume
=no
10209 rm conftest.
$ac_ext
10210 LIBS
=$ac_func_search_save_LIBS
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10213 $as_echo "$ac_cv_search_exc_resume" >&6; }
10214 ac_res
=$ac_cv_search_exc_resume
10215 if test "$ac_res" != no
; then :
10216 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10220 GNAT_LIBEXC
="$LIBS"
10224 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10228 $as_echo_n "checking for library containing kstat_open... " >&6; }
10229 if ${ac_cv_search_kstat_open+:} false
; then :
10230 $as_echo_n "(cached) " >&6
10232 ac_func_search_save_LIBS
=$LIBS
10233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10242 char kstat_open ();
10246 return kstat_open ();
10251 for ac_lib
in '' kstat
; do
10252 if test -z "$ac_lib"; then
10253 ac_res
="none required"
10256 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10258 if ac_fn_cxx_try_link
"$LINENO"; then :
10259 ac_cv_search_kstat_open
=$ac_res
10261 rm -f core conftest.err conftest.
$ac_objext \
10263 if ${ac_cv_search_kstat_open+:} false
; then :
10267 if ${ac_cv_search_kstat_open+:} false
; then :
10270 ac_cv_search_kstat_open
=no
10272 rm conftest.
$ac_ext
10273 LIBS
=$ac_func_search_save_LIBS
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10276 $as_echo "$ac_cv_search_kstat_open" >&6; }
10277 ac_res
=$ac_cv_search_kstat_open
10278 if test "$ac_res" != no
; then :
10279 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10283 EXTRA_GCC_LIBS
="$LIBS"
10287 # Some systems put ldexp and frexp in libm instead of libc; assume
10288 # they're both in the same place. jcf-dump needs them.
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10292 $as_echo_n "checking for library containing ldexp... " >&6; }
10293 if ${ac_cv_search_ldexp+:} false
; then :
10294 $as_echo_n "(cached) " >&6
10296 ac_func_search_save_LIBS
=$LIBS
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10315 for ac_lib
in '' m
; do
10316 if test -z "$ac_lib"; then
10317 ac_res
="none required"
10320 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10322 if ac_fn_cxx_try_link
"$LINENO"; then :
10323 ac_cv_search_ldexp
=$ac_res
10325 rm -f core conftest.err conftest.
$ac_objext \
10327 if ${ac_cv_search_ldexp+:} false
; then :
10331 if ${ac_cv_search_ldexp+:} false
; then :
10334 ac_cv_search_ldexp
=no
10336 rm conftest.
$ac_ext
10337 LIBS
=$ac_func_search_save_LIBS
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10340 $as_echo "$ac_cv_search_ldexp" >&6; }
10341 ac_res
=$ac_cv_search_ldexp
10342 if test "$ac_res" != no
; then :
10343 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10351 # Some systems need dlopen
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10355 $as_echo_n "checking for library containing dlopen... " >&6; }
10356 if ${ac_cv_search_dlopen+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 ac_func_search_save_LIBS
=$LIBS
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10378 for ac_lib
in '' dl
; do
10379 if test -z "$ac_lib"; then
10380 ac_res
="none required"
10383 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10385 if ac_fn_cxx_try_link
"$LINENO"; then :
10386 ac_cv_search_dlopen
=$ac_res
10388 rm -f core conftest.err conftest.
$ac_objext \
10390 if ${ac_cv_search_dlopen+:} false
; then :
10394 if ${ac_cv_search_dlopen+:} false
; then :
10397 ac_cv_search_dlopen
=no
10399 rm conftest.
$ac_ext
10400 LIBS
=$ac_func_search_save_LIBS
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10403 $as_echo "$ac_cv_search_dlopen" >&6; }
10404 ac_res
=$ac_cv_search_dlopen
10405 if test "$ac_res" != no
; then :
10406 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10414 # Use <inttypes.h> only if it exists,
10415 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10418 $as_echo_n "checking for inttypes.h... " >&6; }
10419 if ${gcc_cv_header_inttypes_h+:} false
; then :
10420 $as_echo_n "(cached) " >&6
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #define __STDC_FORMAT_MACROS
10425 #include <sys/types.h>
10426 #include <inttypes.h>
10438 if ac_fn_cxx_try_compile
"$LINENO"; then :
10439 gcc_cv_header_inttypes_h
=yes
10441 gcc_cv_header_inttypes_h
=no
10443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10447 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10448 if test $gcc_cv_header_inttypes_h = yes; then
10450 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10454 # Look for the ZSTD package.
10464 # Check whether --with-zstd was given.
10465 if test "${with_zstd+set}" = set; then :
10466 withval
=$with_zstd;
10470 # Check whether --with-zstd-include was given.
10471 if test "${with_zstd_include+set}" = set; then :
10472 withval
=$with_zstd_include;
10476 # Check whether --with-zstd-lib was given.
10477 if test "${with_zstd_lib+set}" = set; then :
10478 withval
=$with_zstd_lib;
10481 case "x$with_zstd" in
10487 *) ZSTD_INCLUDE
=$with_zstd/include
10488 ZSTD_LIB
=$with_zstd/lib
10492 if test "x$with_zstd" != xno
; then
10493 if test "x$with_zstd_include" != x
; then
10494 ZSTD_INCLUDE
=$with_zstd_include
10496 if test "x$with_zstd_lib" != x
; then
10497 ZSTD_LIB
=$with_zstd_lib
10499 if test "x$ZSTD_INCLUDE" != x \
10500 && test "x$ZSTD_INCLUDE" != xno
; then
10501 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10503 if test "x$ZSTD_LIB" != x \
10504 && test "x$ZSTD_LIB" != xno
; then
10505 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10508 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10509 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10511 # LTO can use zstd compression algorithm
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10515 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10516 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10519 ac_func_search_save_LIBS
=$LIBS
10520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10529 char ZSTD_compress ();
10533 return ZSTD_compress ();
10538 for ac_lib
in '' zstd
; do
10539 if test -z "$ac_lib"; then
10540 ac_res
="none required"
10543 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10545 if ac_fn_cxx_try_link
"$LINENO"; then :
10546 ac_cv_search_ZSTD_compress
=$ac_res
10548 rm -f core conftest.err conftest.
$ac_objext \
10550 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10554 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10557 ac_cv_search_ZSTD_compress
=no
10559 rm conftest.
$ac_ext
10560 LIBS
=$ac_func_search_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10563 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10564 ac_res
=$ac_cv_search_ZSTD_compress
10565 if test "$ac_res" != no
; then :
10566 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10569 gcc_cv_header_zstd_h
=no
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10577 $as_echo_n "checking for zstd.h... " >&6; }
10578 if ${gcc_cv_header_zstd_h+:} false
; then :
10579 $as_echo_n "(cached) " >&6
10581 # We require version 1.3.0 or later. This is the first version that has
10582 # ZSTD_getFrameContentSize.
10583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 #if ZSTD_VERSION_NUMBER < 10300
10587 #error "need zstd 1.3.0 or better"
10597 if ac_fn_cxx_try_compile
"$LINENO"; then :
10598 gcc_cv_header_zstd_h
=yes
10600 gcc_cv_header_zstd_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_zstd_h" >&5
10606 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10607 if test $gcc_cv_header_zstd_h = yes; then
10609 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10611 elif test "x$with_zstd" != x
; then
10612 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10618 for ac_func
in times clock kill getrlimit setrlimit atoq \
10619 popen sysconf strsignal getrusage nl_langinfo \
10620 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10621 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
10623 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10625 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10626 cat >>confdefs.h
<<_ACEOF
10627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10634 if test x
$ac_cv_func_mbstowcs = xyes
; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10636 $as_echo_n "checking whether mbstowcs works... " >&6; }
10637 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10638 $as_echo_n "(cached) " >&6
10640 if test "$cross_compiling" = yes; then :
10641 gcc_cv_func_mbstowcs_works
=yes
10643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <stdlib.h>
10648 mbstowcs(0, "", 0);
10652 if ac_fn_cxx_try_run
"$LINENO"; then :
10653 gcc_cv_func_mbstowcs_works
=yes
10655 gcc_cv_func_mbstowcs_works
=no
10657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10664 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10671 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10672 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10676 cat >>confdefs.h
<<_ACEOF
10677 #define ssize_t int
10682 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10683 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10687 cat >>confdefs.h
<<_ACEOF
10688 #define caddr_t char *
10693 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10695 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10697 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10703 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10704 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10705 gcc_header_sys_mman_h
=yes
10707 gcc_header_sys_mman_h
=no
10710 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10711 if test "x$ac_cv_func_mmap" = xyes
; then :
10717 if test "$gcc_header_sys_mman_h" != yes \
10718 ||
test "$gcc_func_mmap" != yes; then
10719 gcc_cv_func_mmap_file
=no
10720 gcc_cv_func_mmap_dev_zero
=no
10721 gcc_cv_func_mmap_anon
=no
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10725 if ${gcc_cv_func_mmap_file+:} false
; then :
10726 $as_echo_n "(cached) " >&6
10728 # Add a system to this blacklist if
10729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10730 # memory area containing the same data that you'd get if you applied
10731 # read() to the same fd. The only system known to have a problem here
10732 # is VMS, where text files have record structure.
10735 gcc_cv_func_mmap_file
=no
;;
10737 gcc_cv_func_mmap_file
=yes;;
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10744 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10745 $as_echo_n "(cached) " >&6
10747 # Add a system to this blacklist if it has mmap() but /dev/zero
10748 # does not exist, or if mmapping /dev/zero does not give anonymous
10749 # zeroed pages with both the following properties:
10750 # 1. If you map N consecutive pages in with one call, and then
10751 # unmap any subset of those pages, the pages that were not
10752 # explicitly unmapped remain accessible.
10753 # 2. If you map two adjacent blocks of memory and then unmap them
10754 # both at once, they must both go away.
10755 # Systems known to be in this category are Windows (all variants),
10758 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10759 gcc_cv_func_mmap_dev_zero
=no
;;
10761 gcc_cv_func_mmap_dev_zero
=yes;;
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10770 if ${gcc_cv_decl_map_anon+:} false
; then :
10771 $as_echo_n "(cached) " >&6
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <sys/mman.h>
10777 #include <unistd.h>
10779 #ifndef MAP_ANONYMOUS
10780 #define MAP_ANONYMOUS MAP_ANON
10786 int n = MAP_ANONYMOUS;
10791 if ac_fn_cxx_try_compile
"$LINENO"; then :
10792 gcc_cv_decl_map_anon
=yes
10794 gcc_cv_decl_map_anon
=no
10796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10801 if test $gcc_cv_decl_map_anon = no
; then
10802 gcc_cv_func_mmap_anon
=no
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10806 if ${gcc_cv_func_mmap_anon+:} false
; then :
10807 $as_echo_n "(cached) " >&6
10809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10811 # doesn't give anonymous zeroed pages with the same properties listed
10812 # above for use of /dev/zero.
10813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10815 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10816 gcc_cv_func_mmap_anon
=no
;;
10818 gcc_cv_func_mmap_anon
=yes;;
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10826 if test $gcc_cv_func_mmap_file = yes; then
10828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10831 if test $gcc_cv_func_mmap_dev_zero = yes; then
10833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10836 if test $gcc_cv_func_mmap_anon = yes; then
10838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10845 # Under VMS, vfork works very differently than on Unix. The standard test
10846 # won't work, and it isn't easily adaptable. It makes more sense to
10848 ac_cv_func_vfork_works
=yes
10851 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10852 if test "x$ac_cv_type_pid_t" = xyes
; then :
10856 cat >>confdefs.h
<<_ACEOF
10862 for ac_header
in vfork.h
10864 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10865 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10866 cat >>confdefs.h
<<_ACEOF
10867 #define HAVE_VFORK_H 1
10873 for ac_func
in fork vfork
10875 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10877 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10878 cat >>confdefs.h
<<_ACEOF
10879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10885 if test "x$ac_cv_func_fork" = xyes
; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10887 $as_echo_n "checking for working fork... " >&6; }
10888 if ${ac_cv_func_fork_works+:} false
; then :
10889 $as_echo_n "(cached) " >&6
10891 if test "$cross_compiling" = yes; then :
10892 ac_cv_func_fork_works
=cross
10894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 $ac_includes_default
10901 /* By Ruediger Kuhlmann. */
10902 return fork () < 0;
10908 if ac_fn_cxx_try_run
"$LINENO"; then :
10909 ac_cv_func_fork_works
=yes
10911 ac_cv_func_fork_works
=no
10913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10919 $as_echo "$ac_cv_func_fork_works" >&6; }
10922 ac_cv_func_fork_works
=$ac_cv_func_fork
10924 if test "x$ac_cv_func_fork_works" = xcross
; then
10926 *-*-amigaos* |
*-*-msdosdjgpp*)
10927 # Override, as these systems have only a dummy fork() stub
10928 ac_cv_func_fork_works
=no
10931 ac_cv_func_fork_works
=yes
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10935 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10937 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10938 if test "x$ac_cv_func_vfork" = xyes
; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10940 $as_echo_n "checking for working vfork... " >&6; }
10941 if ${ac_cv_func_vfork_works+:} false
; then :
10942 $as_echo_n "(cached) " >&6
10944 if test "$cross_compiling" = yes; then :
10945 ac_cv_func_vfork_works
=cross
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 /* Thanks to Paul Eggert for this test. */
10950 $ac_includes_default
10951 #include <sys/wait.h>
10952 #ifdef HAVE_VFORK_H
10953 # include <vfork.h>
10955 /* On some sparc systems, changes by the child to local and incoming
10956 argument registers are propagated back to the parent. The compiler
10957 is told about this with #include <vfork.h>, but some compilers
10958 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10959 static variable whose address is put into a register that is
10960 clobbered by the vfork. */
10963 sparc_address_test (int arg)
10965 sparc_address_test (arg) int arg;
10968 static pid_t child;
10986 pid_t parent = getpid ();
10989 sparc_address_test (0);
10994 /* Here is another test for sparc vfork register problems. This
10995 test uses lots of local variables, at least as many local
10996 variables as main has allocated so far including compiler
10997 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10998 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10999 reuse the register of parent for one of the local variables,
11000 since it will think that parent can't possibly be used any more
11001 in this routine. Assigning to the local variable will thus
11002 munge parent in the parent process. */
11004 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11005 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11006 /* Convince the compiler that p..p7 are live; otherwise, it might
11007 use the same hardware register for all 8 local variables. */
11008 if (p != p1 || p != p2 || p != p3 || p != p4
11009 || p != p5 || p != p6 || p != p7)
11012 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11013 from child file descriptors. If the child closes a descriptor
11014 before it execs or exits, this munges the parent's descriptor
11015 as well. Test for this by closing stdout in the child. */
11016 _exit(close(fileno(stdout)) != 0);
11021 while (wait(&status) != child)
11024 /* Was there some problem with vforking? */
11027 /* Did the child fail? (This shouldn't happen.) */
11030 /* Did the vfork/compiler bug occur? */
11031 || parent != getpid()
11033 /* Did the file descriptor bug occur? */
11034 || fstat(fileno(stdout), &st) != 0
11039 if ac_fn_cxx_try_run
"$LINENO"; then :
11040 ac_cv_func_vfork_works
=yes
11042 ac_cv_func_vfork_works
=no
11044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11050 $as_echo "$ac_cv_func_vfork_works" >&6; }
11053 if test "x$ac_cv_func_fork_works" = xcross
; then
11054 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11056 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11059 if test "x$ac_cv_func_vfork_works" = xyes
; then
11061 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11065 $as_echo "#define vfork fork" >>confdefs.h
11068 if test "x$ac_cv_func_fork_works" = xyes
; then
11070 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11076 if test "X$prefix" = "XNONE"; then
11077 acl_final_prefix
="$ac_default_prefix"
11079 acl_final_prefix
="$prefix"
11081 if test "X$exec_prefix" = "XNONE"; then
11082 acl_final_exec_prefix
='${prefix}'
11084 acl_final_exec_prefix
="$exec_prefix"
11086 acl_save_prefix
="$prefix"
11087 prefix
="$acl_final_prefix"
11088 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11089 prefix
="$acl_save_prefix"
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11099 # Prepare PATH_SEPARATOR.
11100 # The user is always right.
11101 if test "${PATH_SEPARATOR+set}" != set; then
11102 echo "#! /bin/sh" >conf$$.sh
11103 echo "exit 0" >>conf$$.sh
11105 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11113 if test "$GCC" = yes; then
11114 # Check if gcc -print-prog-name=ld gives a path.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11116 $as_echo_n "checking for ld used by GCC... " >&6; }
11119 # gcc leaves a trailing carriage return which upsets mingw
11120 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11122 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11125 # Accept absolute paths.
11126 [\\/]* |
[A-Za-z
]:[\\/]*)
11127 re_direlt
='/[^/][^/]*/\.\./'
11128 # Canonicalize the path of ld
11129 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11130 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11131 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11133 test -z "$LD" && LD
="$ac_prog"
11136 # If it fails, then pretend we aren't using GCC.
11140 # If it is relative, then search for the first ld in PATH.
11141 with_gnu_ld
=unknown
11144 elif test "$with_gnu_ld" = yes; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11146 $as_echo_n "checking for GNU ld... " >&6; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11149 $as_echo_n "checking for non-GNU ld... " >&6; }
11151 if ${acl_cv_path_LD+:} false
; then :
11152 $as_echo_n "(cached) " >&6
11154 if test -z "$LD"; then
11155 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11156 for ac_dir
in $PATH; do
11157 test -z "$ac_dir" && ac_dir
=.
11158 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11159 acl_cv_path_LD
="$ac_dir/$ac_prog"
11160 # Check to see if the program is GNU ld. I'd rather use --version,
11161 # but apparently some GNU ld's only accept -v.
11162 # Break only if it was the GNU/non-GNU ld that we prefer.
11163 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11164 test "$with_gnu_ld" != no
&& break
11166 test "$with_gnu_ld" != yes && break
11172 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11176 LD
="$acl_cv_path_LD"
11177 if test -n "$LD"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11179 $as_echo "$LD" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11184 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11187 if ${acl_cv_prog_gnu_ld+:} false
; then :
11188 $as_echo_n "(cached) " >&6
11190 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11191 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11192 acl_cv_prog_gnu_ld
=yes
11194 acl_cv_prog_gnu_ld
=no
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11199 with_gnu_ld
=$acl_cv_prog_gnu_ld
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11204 $as_echo_n "checking for shared library run path origin... " >&6; }
11205 if ${acl_cv_rpath+:} false
; then :
11206 $as_echo_n "(cached) " >&6
11209 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11212 rm -f .
/conftest.sh
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11217 $as_echo "$acl_cv_rpath" >&6; }
11219 libext
="$acl_cv_libext"
11220 shlibext
="$acl_cv_shlibext"
11221 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11222 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11223 hardcode_direct
="$acl_cv_hardcode_direct"
11224 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11225 # Check whether --enable-rpath was given.
11226 if test "${enable_rpath+set}" = set; then :
11227 enableval
=$enable_rpath; :
11241 acl_save_prefix
="$prefix"
11242 prefix
="$acl_final_prefix"
11243 acl_save_exec_prefix
="$exec_prefix"
11244 exec_prefix
="$acl_final_exec_prefix"
11246 eval additional_includedir
=\"$includedir\"
11247 eval additional_libdir
=\"$libdir\"
11249 exec_prefix
="$acl_save_exec_prefix"
11250 prefix
="$acl_save_prefix"
11253 # Check whether --with-libiconv-prefix was given.
11254 if test "${with_libiconv_prefix+set}" = set; then :
11255 withval
=$with_libiconv_prefix;
11256 if test "X$withval" = "Xno"; then
11259 if test "X$withval" = "X"; then
11261 acl_save_prefix
="$prefix"
11262 prefix
="$acl_final_prefix"
11263 acl_save_exec_prefix
="$exec_prefix"
11264 exec_prefix
="$acl_final_exec_prefix"
11266 eval additional_includedir
=\"$includedir\"
11267 eval additional_libdir
=\"$libdir\"
11269 exec_prefix
="$acl_save_exec_prefix"
11270 prefix
="$acl_save_prefix"
11273 additional_includedir
="$withval/include"
11274 additional_libdir
="$withval/lib"
11281 # Check whether --with-libiconv-type was given.
11282 if test "${with_libiconv_type+set}" = set; then :
11283 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11285 with_libiconv_type
=auto
11288 lib_type
=`eval echo \$with_libiconv_type`
11295 names_already_handled
=
11296 names_next_round
='iconv '
11297 while test -n "$names_next_round"; do
11298 names_this_round
="$names_next_round"
11300 for name
in $names_this_round; do
11302 for n
in $names_already_handled; do
11303 if test "$n" = "$name"; then
11304 already_handled
=yes
11308 if test -z "$already_handled"; then
11309 names_already_handled
="$names_already_handled $name"
11310 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11311 eval value
=\"\
$HAVE_LIB$uppername\"
11312 if test -n "$value"; then
11313 if test "$value" = yes; then
11314 eval value
=\"\
$LIB$uppername\"
11315 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11316 eval value
=\"\
$LTLIB$uppername\"
11317 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11326 if test $use_additional = yes; then
11327 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11328 found_dir
="$additional_libdir"
11329 found_so
="$additional_libdir/lib$name.$shlibext"
11330 if test -f "$additional_libdir/lib$name.la"; then
11331 found_la
="$additional_libdir/lib$name.la"
11333 elif test x
$lib_type != xshared
; then
11334 if test -f "$additional_libdir/lib$name.$libext"; then
11335 found_dir
="$additional_libdir"
11336 found_a
="$additional_libdir/lib$name.$libext"
11337 if test -f "$additional_libdir/lib$name.la"; then
11338 found_la
="$additional_libdir/lib$name.la"
11343 if test "X$found_dir" = "X"; then
11344 for x
in $LDFLAGS $LTLIBICONV; do
11346 acl_save_prefix
="$prefix"
11347 prefix
="$acl_final_prefix"
11348 acl_save_exec_prefix
="$exec_prefix"
11349 exec_prefix
="$acl_final_exec_prefix"
11351 exec_prefix
="$acl_save_exec_prefix"
11352 prefix
="$acl_save_prefix"
11356 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11357 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11359 found_so
="$dir/lib$name.$shlibext"
11360 if test -f "$dir/lib$name.la"; then
11361 found_la
="$dir/lib$name.la"
11363 elif test x
$lib_type != xshared
; then
11364 if test -f "$dir/lib$name.$libext"; then
11366 found_a
="$dir/lib$name.$libext"
11367 if test -f "$dir/lib$name.la"; then
11368 found_la
="$dir/lib$name.la"
11374 if test "X$found_dir" != "X"; then
11379 if test "X$found_dir" != "X"; then
11380 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11381 if test "X$found_so" != "X"; then
11382 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11383 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11386 for x
in $ltrpathdirs; do
11387 if test "X$x" = "X$found_dir"; then
11392 if test -z "$haveit"; then
11393 ltrpathdirs
="$ltrpathdirs $found_dir"
11395 if test "$hardcode_direct" = yes; then
11396 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11398 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11399 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11401 for x
in $rpathdirs; do
11402 if test "X$x" = "X$found_dir"; then
11407 if test -z "$haveit"; then
11408 rpathdirs
="$rpathdirs $found_dir"
11412 for x
in $LDFLAGS $LIBICONV; do
11414 acl_save_prefix
="$prefix"
11415 prefix
="$acl_final_prefix"
11416 acl_save_exec_prefix
="$exec_prefix"
11417 exec_prefix
="$acl_final_exec_prefix"
11419 exec_prefix
="$acl_save_exec_prefix"
11420 prefix
="$acl_save_prefix"
11422 if test "X$x" = "X-L$found_dir"; then
11427 if test -z "$haveit"; then
11428 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11430 if test "$hardcode_minus_L" != no
; then
11431 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11433 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11439 if test "X$found_a" != "X"; then
11440 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11442 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11445 additional_includedir
=
11446 case "$found_dir" in
11448 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11449 additional_includedir
="$basedir/include"
11452 if test "X$additional_includedir" != "X"; then
11453 if test "X$additional_includedir" != "X/usr/include"; then
11455 if test "X$additional_includedir" = "X/usr/local/include"; then
11456 if test -n "$GCC"; then
11458 linux
*) haveit
=yes;;
11462 if test -z "$haveit"; then
11463 for x
in $CPPFLAGS $INCICONV; do
11465 acl_save_prefix
="$prefix"
11466 prefix
="$acl_final_prefix"
11467 acl_save_exec_prefix
="$exec_prefix"
11468 exec_prefix
="$acl_final_exec_prefix"
11470 exec_prefix
="$acl_save_exec_prefix"
11471 prefix
="$acl_save_prefix"
11473 if test "X$x" = "X-I$additional_includedir"; then
11478 if test -z "$haveit"; then
11479 if test -d "$additional_includedir"; then
11480 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11486 if test -n "$found_la"; then
11487 save_libdir
="$libdir"
11488 case "$found_la" in
11489 */* |
*\\*) .
"$found_la" ;;
11490 *) .
"./$found_la" ;;
11492 libdir
="$save_libdir"
11493 for dep
in $dependency_libs; do
11496 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11497 if test "X$additional_libdir" != "X/usr/lib"; then
11499 if test "X$additional_libdir" = "X/usr/local/lib"; then
11500 if test -n "$GCC"; then
11502 linux
*) haveit
=yes;;
11506 if test -z "$haveit"; then
11508 for x
in $LDFLAGS $LIBICONV; do
11510 acl_save_prefix
="$prefix"
11511 prefix
="$acl_final_prefix"
11512 acl_save_exec_prefix
="$exec_prefix"
11513 exec_prefix
="$acl_final_exec_prefix"
11515 exec_prefix
="$acl_save_exec_prefix"
11516 prefix
="$acl_save_prefix"
11518 if test "X$x" = "X-L$additional_libdir"; then
11523 if test -z "$haveit"; then
11524 if test -d "$additional_libdir"; then
11525 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11529 for x
in $LDFLAGS $LTLIBICONV; do
11531 acl_save_prefix
="$prefix"
11532 prefix
="$acl_final_prefix"
11533 acl_save_exec_prefix
="$exec_prefix"
11534 exec_prefix
="$acl_final_exec_prefix"
11536 exec_prefix
="$acl_save_exec_prefix"
11537 prefix
="$acl_save_prefix"
11539 if test "X$x" = "X-L$additional_libdir"; then
11544 if test -z "$haveit"; then
11545 if test -d "$additional_libdir"; then
11546 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11553 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11554 if test "$enable_rpath" != no
; then
11556 for x
in $rpathdirs; do
11557 if test "X$x" = "X$dir"; then
11562 if test -z "$haveit"; then
11563 rpathdirs
="$rpathdirs $dir"
11566 for x
in $ltrpathdirs; do
11567 if test "X$x" = "X$dir"; then
11572 if test -z "$haveit"; then
11573 ltrpathdirs
="$ltrpathdirs $dir"
11578 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11581 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11584 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11585 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11591 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11592 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11593 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11595 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11596 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11603 if test "X$rpathdirs" != "X"; then
11604 if test -n "$hardcode_libdir_separator"; then
11606 for found_dir
in $rpathdirs; do
11607 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11609 acl_save_libdir
="$libdir"
11611 eval flag
=\"$hardcode_libdir_flag_spec\"
11612 libdir
="$acl_save_libdir"
11613 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11615 for found_dir
in $rpathdirs; do
11616 acl_save_libdir
="$libdir"
11617 libdir
="$found_dir"
11618 eval flag
=\"$hardcode_libdir_flag_spec\"
11619 libdir
="$acl_save_libdir"
11620 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11624 if test "X$ltrpathdirs" != "X"; then
11625 for found_dir
in $ltrpathdirs; do
11626 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11636 am_save_CPPFLAGS
="$CPPFLAGS"
11638 for element
in $INCICONV; do
11640 for x
in $CPPFLAGS; do
11642 acl_save_prefix
="$prefix"
11643 prefix
="$acl_final_prefix"
11644 acl_save_exec_prefix
="$exec_prefix"
11645 exec_prefix
="$acl_final_exec_prefix"
11647 exec_prefix
="$acl_save_exec_prefix"
11648 prefix
="$acl_save_prefix"
11650 if test "X$x" = "X$element"; then
11655 if test -z "$haveit"; then
11656 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11662 $as_echo_n "checking for iconv... " >&6; }
11663 if ${am_cv_func_iconv+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11667 am_cv_func_iconv
="no, consider installing GNU libiconv"
11669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11672 #include <stdlib.h>
11678 iconv_t cd = iconv_open("","");
11679 iconv(cd,NULL,NULL,NULL,NULL);
11685 if ac_fn_cxx_try_link
"$LINENO"; then :
11686 am_cv_func_iconv
=yes
11688 rm -f core conftest.err conftest.
$ac_objext \
11689 conftest
$ac_exeext conftest.
$ac_ext
11690 if test "$am_cv_func_iconv" != yes; then
11691 am_save_LIBS
="$LIBS"
11692 LIBS
="$LIBS $LIBICONV"
11693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 #include <stdlib.h>
11702 iconv_t cd = iconv_open("","");
11703 iconv(cd,NULL,NULL,NULL,NULL);
11709 if ac_fn_cxx_try_link
"$LINENO"; then :
11710 am_cv_lib_iconv
=yes
11711 am_cv_func_iconv
=yes
11713 rm -f core conftest.err conftest.
$ac_objext \
11714 conftest
$ac_exeext conftest.
$ac_ext
11715 LIBS
="$am_save_LIBS"
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11720 $as_echo "$am_cv_func_iconv" >&6; }
11721 if test "$am_cv_func_iconv" = yes; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11723 $as_echo_n "checking for working iconv... " >&6; }
11724 if ${am_cv_func_iconv_works+:} false
; then :
11725 $as_echo_n "(cached) " >&6
11728 am_save_LIBS
="$LIBS"
11729 if test $am_cv_lib_iconv = yes; then
11730 LIBS
="$LIBS $LIBICONV"
11732 am_cv_func_iconv_works
=no
11733 for ac_iconv_const
in '' 'const'; do
11734 if test "$cross_compiling" = yes; then :
11736 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
11737 *) am_cv_func_iconv_works
="guessing yes" ;;
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11744 #include <string.h>
11746 #ifndef ICONV_CONST
11747 # define ICONV_CONST $ac_iconv_const
11754 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11755 successful returns. This is even documented in
11756 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11758 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11759 if (cd_utf8_to_88591 != (iconv_t)(-1))
11761 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11763 ICONV_CONST char *inptr = input;
11764 size_t inbytesleft = strlen (input);
11765 char *outptr = buf;
11766 size_t outbytesleft = sizeof (buf);
11767 size_t res = iconv (cd_utf8_to_88591,
11768 &inptr, &inbytesleft,
11769 &outptr, &outbytesleft);
11772 iconv_close (cd_utf8_to_88591);
11775 /* Test against Solaris 10 bug: Failures are not distinguishable from
11776 successful returns. */
11778 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11779 if (cd_ascii_to_88591 != (iconv_t)(-1))
11781 static ICONV_CONST char input[] = "\263";
11783 ICONV_CONST char *inptr = input;
11784 size_t inbytesleft = strlen (input);
11785 char *outptr = buf;
11786 size_t outbytesleft = sizeof (buf);
11787 size_t res = iconv (cd_ascii_to_88591,
11788 &inptr, &inbytesleft,
11789 &outptr, &outbytesleft);
11792 iconv_close (cd_ascii_to_88591);
11795 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11797 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11798 if (cd_88591_to_utf8 != (iconv_t)(-1))
11800 static ICONV_CONST char input[] = "\304";
11801 static char buf[2] = { (char)0xDE, (char)0xAD };
11802 ICONV_CONST char *inptr = input;
11803 size_t inbytesleft = 1;
11804 char *outptr = buf;
11805 size_t outbytesleft = 1;
11806 size_t res = iconv (cd_88591_to_utf8,
11807 &inptr, &inbytesleft,
11808 &outptr, &outbytesleft);
11809 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11811 iconv_close (cd_88591_to_utf8);
11814 #if 0 /* This bug could be worked around by the caller. */
11815 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11817 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11818 if (cd_88591_to_utf8 != (iconv_t)(-1))
11820 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11822 ICONV_CONST char *inptr = input;
11823 size_t inbytesleft = strlen (input);
11824 char *outptr = buf;
11825 size_t outbytesleft = sizeof (buf);
11826 size_t res = iconv (cd_88591_to_utf8,
11827 &inptr, &inbytesleft,
11828 &outptr, &outbytesleft);
11831 iconv_close (cd_88591_to_utf8);
11835 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11838 /* Try standardized names. */
11839 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11840 /* Try IRIX, OSF/1 names. */
11841 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11842 /* Try AIX names. */
11843 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11844 /* Try HP-UX names. */
11845 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11846 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11847 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11849 if (cd1 != (iconv_t)(-1))
11851 if (cd2 != (iconv_t)(-1))
11853 if (cd3 != (iconv_t)(-1))
11855 if (cd4 != (iconv_t)(-1))
11864 if ac_fn_cxx_try_run
"$LINENO"; then :
11865 am_cv_func_iconv_works
=yes
11867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11871 test "$am_cv_func_iconv_works" = no ||
break
11873 LIBS
="$am_save_LIBS"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11877 $as_echo "$am_cv_func_iconv_works" >&6; }
11878 case "$am_cv_func_iconv_works" in
11879 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
11880 *) am_func_iconv
=yes ;;
11883 am_func_iconv
=no am_cv_lib_iconv
=no
11885 if test "$am_func_iconv" = yes; then
11887 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11890 if test "$am_cv_lib_iconv" = yes; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11892 $as_echo_n "checking how to link with libiconv... " >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11894 $as_echo "$LIBICONV" >&6; }
11896 CPPFLAGS
="$am_save_CPPFLAGS"
11903 if test "$am_cv_func_iconv" = yes; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11905 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11906 if ${gl_cv_iconv_nonconst+:} false
; then :
11907 $as_echo_n "(cached) " >&6
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 #include <stdlib.h>
11918 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11928 if ac_fn_cxx_try_compile
"$LINENO"; then :
11929 gl_cv_iconv_nonconst
=yes
11931 gl_cv_iconv_nonconst
=no
11933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
11937 $as_echo "$gl_cv_iconv_nonconst" >&6; }
11939 gl_cv_iconv_nonconst
=yes
11941 if test $gl_cv_iconv_nonconst = yes; then
11947 cat >>confdefs.h
<<_ACEOF
11948 #define ICONV_CONST $iconv_arg1
11953 if test "$am_func_iconv" = yes; then
11954 if test -n "$LIBICONV"; then
11955 am_cv_func_iconv_summary
='yes, in libiconv'
11957 am_cv_func_iconv_summary
='yes, in libc'
11960 if test "$am_cv_func_iconv" = yes; then
11961 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
11963 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
11968 # Until we have in-tree GNU iconv:
11970 if test -f "$LTLIBICONV"; then
11971 LIBICONV_DEP
=$LTLIBICONV
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11977 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11978 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11979 $as_echo_n "(cached) " >&6
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <locale.h>
11992 if ac_fn_cxx_try_link
"$LINENO"; then :
11993 am_cv_val_LC_MESSAGES
=yes
11995 am_cv_val_LC_MESSAGES
=no
11997 rm -f core conftest.err conftest.
$ac_objext \
11998 conftest
$ac_exeext conftest.
$ac_ext
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12001 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12002 if test $am_cv_val_LC_MESSAGES = yes; then
12004 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12011 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12012 if ${am_cv_langinfo_codeset+:} false
; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #include <langinfo.h>
12021 char* cs = nl_langinfo(CODESET);
12026 if ac_fn_cxx_try_link
"$LINENO"; then :
12027 am_cv_langinfo_codeset
=yes
12029 am_cv_langinfo_codeset
=no
12031 rm -f core conftest.err conftest.
$ac_objext \
12032 conftest
$ac_exeext conftest.
$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12036 $as_echo "$am_cv_langinfo_codeset" >&6; }
12037 if test $am_cv_langinfo_codeset = yes; then
12039 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12044 # We will need to find libiberty.h and ansidecl.h
12045 saved_CFLAGS
="$CFLAGS"
12046 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12047 saved_CXXFLAGS
="$CXXFLAGS"
12048 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12050 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12051 # normal autoconf function for these. But force definition of
12052 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12053 # basename handling in libiberty.h.
12054 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12055 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12056 #undef HAVE_DECL_BASENAME
12057 #define HAVE_DECL_BASENAME 1
12058 #include \"ansidecl.h\"
12059 #include \"system.h\"
12061 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12067 cat >>confdefs.h
<<_ACEOF
12068 #define HAVE_DECL_BASENAME $ac_have_decl
12070 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12071 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12072 #undef HAVE_DECL_BASENAME
12073 #define HAVE_DECL_BASENAME 1
12074 #include \"ansidecl.h\"
12075 #include \"system.h\"
12077 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12083 cat >>confdefs.h
<<_ACEOF
12084 #define HAVE_DECL_STRSTR $ac_have_decl
12088 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12089 madvise stpcpy strnlen strsignal strverscmp \
12090 strtol strtoul strtoll strtoull setenv unsetenv \
12091 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12092 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
12094 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12096 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12097 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12098 $as_echo_n "(cached) " >&6
12100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12103 #define $ac_tr_decl 1
12105 #include "ansidecl.h"
12106 #include "system.h"
12112 char *(*pfn) = (char *(*)) $ac_func ;
12118 if ac_fn_cxx_try_compile
"$LINENO"; then :
12119 eval "gcc_cv_have_decl_$ac_func=yes"
12121 eval "gcc_cv_have_decl_$ac_func=no"
12123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12126 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12128 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12129 #define $ac_tr_decl 1
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12135 #define $ac_tr_decl 0
12143 for ac_func
in getrlimit setrlimit getrusage
12145 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12147 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12148 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12149 $as_echo_n "(cached) " >&6
12151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12154 #define $ac_tr_decl 1
12156 #include "ansidecl.h"
12157 #include "system.h"
12158 #ifdef HAVE_SYS_RESOURCE_H
12159 #include <sys/resource.h>
12167 char *(*pfn) = (char *(*)) $ac_func ;
12173 if ac_fn_cxx_try_compile
"$LINENO"; then :
12174 eval "gcc_cv_have_decl_$ac_func=yes"
12176 eval "gcc_cv_have_decl_$ac_func=no"
12178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12181 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12184 #define $ac_tr_decl 1
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12190 #define $ac_tr_decl 0
12198 for ac_func
in mallinfo mallinfo2
12200 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12202 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12203 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12204 $as_echo_n "(cached) " >&6
12206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12209 #define $ac_tr_decl 1
12211 #include "ansidecl.h"
12212 #include "system.h"
12213 #ifdef HAVE_MALLOC_H
12214 #include <malloc.h>
12222 char *(*pfn) = (char *(*)) $ac_func ;
12228 if ac_fn_cxx_try_compile
"$LINENO"; then :
12229 eval "gcc_cv_have_decl_$ac_func=yes"
12231 eval "gcc_cv_have_decl_$ac_func=no"
12233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12236 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12238 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12239 #define $ac_tr_decl 1
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12245 #define $ac_tr_decl 0
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 #include "ansidecl.h"
12257 #include "system.h"
12258 #ifdef HAVE_SYS_RESOURCE_H
12259 #include <sys/resource.h>
12270 if ac_fn_cxx_try_compile
"$LINENO"; then :
12274 $as_echo "#define rlim_t long" >>confdefs.h
12277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12279 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12280 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12281 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12282 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12283 for ac_func
in ldgetname
12285 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12287 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12288 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12289 $as_echo_n "(cached) " >&6
12291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12294 #define $ac_tr_decl 1
12296 #include "ansidecl.h"
12297 #include "system.h"
12298 #ifdef HAVE_LDFCN_H
12309 char *(*pfn) = (char *(*)) $ac_func ;
12315 if ac_fn_cxx_try_compile
"$LINENO"; then :
12316 eval "gcc_cv_have_decl_$ac_func=yes"
12318 eval "gcc_cv_have_decl_$ac_func=no"
12320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12326 #define $ac_tr_decl 1
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12332 #define $ac_tr_decl 0
12340 for ac_func
in times
12342 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12344 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12345 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12346 $as_echo_n "(cached) " >&6
12348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12351 #define $ac_tr_decl 1
12353 #include "ansidecl.h"
12354 #include "system.h"
12355 #ifdef HAVE_SYS_TIMES_H
12356 #include <sys/times.h>
12364 char *(*pfn) = (char *(*)) $ac_func ;
12370 if ac_fn_cxx_try_compile
"$LINENO"; then :
12371 eval "gcc_cv_have_decl_$ac_func=yes"
12373 eval "gcc_cv_have_decl_$ac_func=no"
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12378 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12381 #define $ac_tr_decl 1
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12387 #define $ac_tr_decl 0
12395 for ac_func
in sigaltstack
12397 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12399 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12400 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12401 $as_echo_n "(cached) " >&6
12403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 #define $ac_tr_decl 1
12408 #include "ansidecl.h"
12409 #include "system.h"
12410 #include <signal.h>
12417 char *(*pfn) = (char *(*)) $ac_func ;
12423 if ac_fn_cxx_try_compile
"$LINENO"; then :
12424 eval "gcc_cv_have_decl_$ac_func=yes"
12426 eval "gcc_cv_have_decl_$ac_func=no"
12428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12434 #define $ac_tr_decl 1
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12440 #define $ac_tr_decl 0
12448 # More time-related stuff.
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12450 $as_echo_n "checking for struct tms... " >&6; }
12451 if ${ac_cv_struct_tms+:} false
; then :
12452 $as_echo_n "(cached) " >&6
12455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 #include "ansidecl.h"
12459 #include "system.h"
12460 #ifdef HAVE_SYS_TIMES_H
12461 #include <sys/times.h>
12472 if ac_fn_cxx_try_compile
"$LINENO"; then :
12473 ac_cv_struct_tms
=yes
12475 ac_cv_struct_tms
=no
12477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12480 $as_echo "$ac_cv_struct_tms" >&6; }
12481 if test $ac_cv_struct_tms = yes; then
12483 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12487 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12488 # revisit after autoconf 2.50.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12490 $as_echo_n "checking for clock_t... " >&6; }
12491 if ${gcc_cv_type_clock_t+:} false
; then :
12492 $as_echo_n "(cached) " >&6
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 #include "ansidecl.h"
12499 #include "system.h"
12509 if ac_fn_cxx_try_compile
"$LINENO"; then :
12510 gcc_cv_type_clock_t
=yes
12512 gcc_cv_type_clock_t
=no
12514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12517 $as_echo "$gcc_cv_type_clock_t" >&6; }
12518 if test $gcc_cv_type_clock_t = yes; then
12520 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12524 # Check if F_SETLKW is supported by fcntl.
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12526 $as_echo_n "checking for F_SETLKW... " >&6; }
12527 if ${ac_cv_f_setlkw+:} false
; then :
12528 $as_echo_n "(cached) " >&6
12531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12544 return fcntl (1, F_SETLKW, &fl);
12549 if ac_fn_cxx_try_compile
"$LINENO"; then :
12554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12557 $as_echo "$ac_cv_f_setlkw" >&6; }
12558 if test $ac_cv_f_setlkw = yes; then
12560 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12564 # Check if O_CLOEXEC is defined by fcntl
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12566 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12567 if ${ac_cv_o_cloexec+:} false
; then :
12568 $as_echo_n "(cached) " >&6
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12579 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12584 if ac_fn_cxx_try_compile
"$LINENO"; then :
12585 ac_cv_o_cloexec
=yes
12589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12592 $as_echo "$ac_cv_o_cloexec" >&6; }
12593 if test $ac_cv_o_cloexec = yes; then
12595 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12599 # Check if O_NONBLOCK is defined by fcntl
12600 for ac_header
in fcntl.h
12602 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12603 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12604 cat >>confdefs.h
<<_ACEOF
12605 #define HAVE_FCNTL_H 1
12611 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12613 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12617 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12619 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12624 # C++ Modules would like some networking features to provide the mapping
12625 # server. You can still use modules without them though.
12626 # The following network-related checks could probably do with some
12627 # Windows and other non-linux defenses and checking.
12629 # Local socket connectivity wants AF_UNIX networking
12630 # Check for AF_UNIX networking
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12632 $as_echo_n "checking for AF_UNIX... " >&6; }
12633 if ${ac_cv_af_unix+:} false
; then :
12634 $as_echo_n "(cached) " >&6
12637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12640 #include <sys/types.h>
12641 #include <sys/socket.h>
12642 #include <sys/un.h>
12643 #include <netinet/in.h>
12649 un.sun_family = AF_UNSPEC;
12650 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12651 connect (fd, (sockaddr *)&un, sizeof (un));
12656 if ac_fn_cxx_try_compile
"$LINENO"; then :
12661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12664 $as_echo "$ac_cv_af_unix" >&6; }
12665 if test $ac_cv_af_unix = yes; then
12667 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12671 # Remote socket connectivity wants AF_INET6 networking
12672 # Check for AF_INET6 networking
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12674 $as_echo_n "checking for AF_INET6... " >&6; }
12675 if ${ac_cv_af_inet6+:} false
; then :
12676 $as_echo_n "(cached) " >&6
12679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12682 #include <sys/types.h>
12683 #include <sys/socket.h>
12684 #include <netinet/in.h>
12691 in6.sin6_family = AF_UNSPEC;
12692 struct addrinfo *addrs = 0;
12693 struct addrinfo hints;
12694 hints.ai_flags = 0;
12695 hints.ai_family = AF_INET6;
12696 hints.ai_socktype = SOCK_STREAM;
12697 hints.ai_protocol = 0;
12698 hints.ai_canonname = 0;
12701 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12702 const char *str = gai_strerror (e);
12703 freeaddrinfo (addrs);
12704 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12705 connect (fd, (sockaddr *)&in6, sizeof (in6));
12710 if ac_fn_cxx_try_compile
"$LINENO"; then :
12715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12718 $as_echo "$ac_cv_af_inet6" >&6; }
12719 if test $ac_cv_af_inet6 = yes; then
12721 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12725 # Check if _LK_LOCK is supported by _locking
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12727 $as_echo_n "checking for _LK_LOCK... " >&6; }
12728 if ${ac_cv_lk_lock+:} false
; then :
12729 $as_echo_n "(cached) " >&6
12732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12736 #include <sys/locking.h>
12742 return _locking (fd, _LK_LOCK, 0);
12747 if ac_fn_cxx_try_compile
"$LINENO"; then :
12752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12755 $as_echo "$ac_cv_lk_lock" >&6; }
12756 if test $ac_cv_lk_lock = yes; then
12758 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12762 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12763 CFLAGS
="$saved_CFLAGS"
12764 CXXFLAGS
="$saved_CXXFLAGS"
12766 # mkdir takes a single argument on some systems.
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12768 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12769 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12770 $as_echo_n "(cached) " >&6
12772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12775 #include <sys/types.h>
12776 #ifdef HAVE_SYS_STAT_H
12777 # include <sys/stat.h>
12779 #ifdef HAVE_UNISTD_H
12780 # include <unistd.h>
12782 #ifdef HAVE_DIRECT_H
12783 # include <direct.h>
12793 if ac_fn_cxx_try_compile
"$LINENO"; then :
12794 gcc_cv_mkdir_takes_one_arg
=no
12796 gcc_cv_mkdir_takes_one_arg
=yes
12798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12801 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12802 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12804 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12815 # With Setjmp/Longjmp based exception handling.
12816 # Check whether --enable-sjlj-exceptions was given.
12817 if test "${enable_sjlj_exceptions+set}" = set; then :
12818 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12822 force_sjlj_exceptions
=yes
12826 force_sjlj_exceptions
=no
12831 if test $force_sjlj_exceptions = yes; then
12832 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12834 cat >>confdefs.h
<<_ACEOF
12835 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12840 # Windows32 UTF-8 manifest support for running the driver and compiler
12841 # executables with the UTF-8 active code page on mingw hosts.
12842 # Non-mingw hosts ignore this option.
12843 # The shell variables this sets are picked up from the mingw branches
12844 # of config.host so they have to be set before it gets sourced.
12845 # Check whether --enable-win32-utf8-manifest was given.
12846 if test "${enable_win32_utf8_manifest+set}" = set; then :
12847 enableval
=$enable_win32_utf8_manifest;
12851 if test "x$enable_win32_utf8_manifest" != xno
; then
12852 host_xmake_mingw
=i386
/x-mingw32-utf8
12853 host_extra_gcc_objs_mingw
=utf8rc-mingw32.o
12854 host_extra_objs_mingw
=utf8-mingw32.o
12857 # --------------------------------------------------------
12858 # Build, host, and target specific configuration fragments
12859 # --------------------------------------------------------
12861 # Collect build-machine-specific information.
12862 .
${srcdir}/config.build ||
exit 1
12864 # Collect host-machine-specific information.
12865 .
${srcdir}/config.
host ||
exit 1
12869 # Collect target-machine-specific information.
12870 .
${srcdir}/config.gcc ||
exit 1
12872 extra_objs
="${host_extra_objs} ${extra_objs}"
12873 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12875 # Default the target-machine variables that were not explicitly set.
12876 if test x
"$tm_file" = x
12877 then tm_file
=$cpu_type/$cpu_type.h
; fi
12879 if test x
"$extra_headers" = x
12880 then extra_headers
=; fi
12882 if test x
$md_file = x
12883 then md_file
=$cpu_type/$cpu_type.md
; fi
12885 if test x
$out_file = x
12886 then out_file
=$cpu_type/$cpu_type.cc
; fi
12888 if test x
"$tmake_file" = x
12889 then tmake_file
=$cpu_type/t-
$cpu_type
12892 # Support --enable-initfini-array.
12893 if test x
$enable_initfini_array != xno
; then
12894 tm_file
="${tm_file} initfini-array.h"
12897 if test x
"$dwarf2" = xyes
12898 then tm_file
="$tm_file tm-dwarf2.h"
12901 # Say what files are being used for the output code and MD file.
12902 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12903 echo "Using \`$srcdir/config/$md_file' as machine description file."
12905 # If any of the xm_file variables contain nonexistent files, warn
12906 # about them and drop them.
12909 for x
in $build_xm_file; do
12910 if test -f $srcdir/config
/$x
12912 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12913 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12916 build_xm_file
="$bx"
12919 for x
in $host_xm_file; do
12920 if test -f $srcdir/config
/$x
12922 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12923 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12929 for x
in $xm_file; do
12930 if test -f $srcdir/config
/$x
12932 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12933 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12939 for f
in $tm_file; do
12942 if test $count = ax
; then
12943 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12945 echo "Using the following target machine macro files:"
12946 for f
in $tm_file; do
12947 echo " $srcdir/config/$f"
12951 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12953 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12957 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12959 cat >>confdefs.h
<<_ACEOF
12960 #define HAVE_GNU_LD $gnu_ld_bool
12964 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12966 cat >>confdefs.h
<<_ACEOF
12967 #define HAVE_GNU_AS $gnu_as_bool
12972 for f
in $host_xm_file; do
12975 if test $count = a
; then
12977 elif test $count = ax
; then
12978 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12980 echo "Using the following host machine macro files:"
12981 for f
in $host_xm_file; do
12982 echo " $srcdir/config/$f"
12985 echo "Using ${out_host_hook_obj} for host machine hooks."
12987 if test "$host_xm_file" != "$build_xm_file"; then
12989 for f
in $build_xm_file; do
12992 if test $count = a
; then
12994 elif test $count = ax
; then
12995 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12997 echo "Using the following build machine macro files:"
12998 for f
in $build_xm_file; do
12999 echo " $srcdir/config/$f"
13004 if test -n "$configured_native_system_header_dir"; then
13005 native_system_header_dir
=$configured_native_system_header_dir
13007 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
13011 powerpc
*-*-darwin*)
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13013 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13014 if ${gcc_cv_mcontext_underscores+:} false
; then :
13015 $as_echo_n "(cached) " >&6
13017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13020 #include <sys/cdefs.h>
13021 #include <sys/signal.h>
13022 #include <ucontext.h>
13023 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13026 if ac_fn_cxx_try_compile
"$LINENO"; then :
13027 gcc_cv_mcontext_underscores
=no
13029 gcc_cv_mcontext_underscores
=yes
13031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13034 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13035 if test $gcc_cv_mcontext_underscores = yes; then
13037 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13047 # Check if a valid thread package
13048 case ${enable_threads} in
13051 target_thread_file
='single'
13055 target_thread_file
='single'
13057 aix | dce | lynx | mipssde | posix | rtems | \
13058 single | tpf | vxworks | win32 | mcf
)
13059 target_thread_file
=${enable_threads}
13062 echo "${enable_threads} is an unknown thread package" 1>&2
13067 if test x
${thread_file} = x
; then
13068 # No thread file set by target-specific clauses in config.gcc,
13069 # so use file chosen by default logic above
13070 thread_file
=${target_thread_file}
13078 if test x
$enable___cxa_atexit = xyes || \
13079 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13080 if test x
$host = x
$target; then
13082 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13083 # keyed to flag_use_cxa_atexit
13091 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13092 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13095 echo "__cxa_atexit can't be enabled on this target"
13101 # We can't check for __cxa_atexit when building a cross, so assume
13105 if test x
$use_cxa_atexit = xyes
; then
13107 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13112 # Look for a file containing extra machine modes.
13113 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13114 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13117 cat >>confdefs.h
<<_ACEOF
13118 #define EXTRA_MODES_FILE "config/$extra_modes"
13123 # Convert extra_options into a form suitable for Makefile use.
13126 for f
in $extra_options; do
13127 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13128 all_opt_files
="$all_opt_files $srcdir/config/$f"
13132 # auto-host.h is the file containing items generated by autoconf and is
13133 # the first file included by config.h.
13134 # If host=build, it is correct to have bconfig include auto-host.h
13135 # as well. If host!=build, we are in error and need to do more
13136 # work to find out the build config parameters.
13137 if test x
$host = x
$build
13139 build_auto
=auto-host.h
13140 HAVE_AUTO_BUILD
='# '
13142 # We create a subdir, then run autoconf in the subdir.
13143 # To prevent recursion we set host and build for the new
13144 # invocation of configure to the build for this invocation
13151 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13152 *) realsrcdir
=..
/${srcdir};;
13154 # Clearing GMPINC is necessary to prevent host headers being
13155 # used by the build compiler. Defining GENERATOR_FILE stops
13156 # system.h from including gmp.h.
13157 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13158 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13159 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13160 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13161 ${realsrcdir}/configure \
13162 --enable-languages=${enable_languages-all} \
13163 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13164 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13165 --target=$target_alias --host=$build_alias \
13166 --build=$build_alias ||
exit # retaining $tempdir
13168 # We just finished tests for the build machine, so rename
13169 # the file auto-build.h in the gcc directory.
13170 mv auto-host.h ..
/auto-build.h
13173 build_auto
=auto-build.h
13179 tm_file
="${tm_file} defaults.h"
13180 tm_p_file
="${tm_p_file} tm-preds.h"
13181 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13182 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13183 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13184 # put this back in temporarily.
13185 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13191 # Compile in configure arguments.
13192 if test -f configargs.h
; then
13193 # Being re-configured.
13194 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13195 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13196 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13197 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13200 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13203 # Double all backslashes and backslash all quotes to turn
13204 # gcc_config_arguments into a C string.
13205 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13206 $gcc_config_arguments
13208 gcc_config_arguments_str
=`cat conftest.out`
13211 cat > configargs.h
<<EOF
13212 /* Generated automatically. */
13213 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13214 static const char thread_model[] = "$thread_file";
13216 static const struct {
13217 const char *name, *value;
13218 } configure_default_options[] = $configure_default_options;
13221 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13222 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13223 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13224 if test -f $srcdir/REVISION
; then
13225 gcc_REVISION
=`cat $srcdir/REVISION`
13229 cat > plugin-version.h
<<EOF
13230 #include "configargs.h"
13232 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13233 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13234 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13235 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13237 static char basever[] = "$gcc_BASEVER";
13238 static char datestamp[] = "$gcc_DATESTAMP";
13239 static char devphase[] = "$gcc_DEVPHASE";
13240 static char revision[] = "$gcc_REVISION";
13242 /* FIXME plugins: We should make the version information more precise.
13243 One way to do is to add a checksum. */
13245 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13246 devphase, revision,
13247 configuration_arguments};
13250 # Determine what GCC version number to use in filesystem paths.
13252 get_gcc_base_ver
="cat"
13254 # Check whether --with-gcc-major-version-only was given.
13255 if test "${with_gcc_major_version_only+set}" = set; then :
13256 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13257 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13265 # Internationalization
13266 # Find a good install program. We prefer a C program (faster),
13267 # so one script is as good as another. But avoid the broken or
13268 # incompatible versions:
13269 # SysV /etc/install, /usr/sbin/install
13270 # SunOS /usr/etc/install
13271 # IRIX /sbin/install
13273 # AmigaOS /C/install, which installs bootblocks on floppy discs
13274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13277 # OS/2's system install, which has a completely different semantic
13278 # ./install, which can be erroneously created by make from ./install.sh.
13279 # Reject install programs that cannot install multiple files.
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13282 if test -z "$INSTALL"; then
13283 if ${ac_cv_path_install+:} false
; then :
13284 $as_echo_n "(cached) " >&6
13286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13287 for as_dir
in $PATH
13290 test -z "$as_dir" && as_dir
=.
13291 # Account for people who put trailing slashes in PATH elements.
13292 case $as_dir/ in #((
13293 .
/ | .
// |
/[cC
]/* | \
13294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
13295 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
13298 # OSF1 and SCO ODT 3.0 have their own names for install.
13299 # Don't use installbsd from OSF since it installs stuff as root
13301 for ac_prog
in ginstall scoinst
install; do
13302 for ac_exec_ext
in '' $ac_executable_extensions; do
13303 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
13304 if test $ac_prog = install &&
13305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13306 # AIX install. It has an incompatible calling convention.
13308 elif test $ac_prog = install &&
13309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
13310 # program-specific install script used by HP pwplus--don't use.
13313 rm -rf conftest.one conftest.two conftest.dir
13314 echo one
> conftest.one
13315 echo two
> conftest.two
13317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
13318 test -s conftest.one
&& test -s conftest.two
&&
13319 test -s conftest.dir
/conftest.one
&&
13320 test -s conftest.dir
/conftest.two
13322 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
13335 rm -rf conftest.one conftest.two conftest.dir
13338 if test "${ac_cv_path_install+set}" = set; then
13339 INSTALL
=$ac_cv_path_install
13341 # As a last resort, use the slow shell script. Don't cache a
13342 # value for INSTALL within a source directory, because that will
13343 # break other packages using the cache if that directory is
13344 # removed, or if the value is a relative name.
13345 INSTALL
=$ac_install_sh
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13349 $as_echo "$INSTALL" >&6; }
13351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13352 # It thinks the first close brace ends the variable substitution.
13353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
13355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
13357 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
13361 if test -n "$ac_aux_dir"; then
13362 case "$ac_aux_dir" in
13363 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
13364 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13367 if test -z "$MKINSTALLDIRS"; then
13368 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13374 $as_echo_n "checking whether NLS is requested... " >&6; }
13375 # Check whether --enable-nls was given.
13376 if test "${enable_nls+set}" = set; then :
13377 enableval
=$enable_nls; USE_NLS
=$enableval
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13383 $as_echo "$USE_NLS" >&6; }
13390 # Prepare PATH_SEPARATOR.
13391 # The user is always right.
13392 if test "${PATH_SEPARATOR+set}" != set; then
13393 echo "#! /bin/sh" >conf$$.sh
13394 echo "exit 0" >>conf$$.sh
13396 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13404 # Find out how to test for executable files. Don't use a zero-byte file,
13405 # as systems may use methods other than mode bits to determine executability.
13406 cat >conf$$.
file <<_ASEOF
13410 chmod +x conf$$.
file
13411 if test -x conf$$.
file >/dev
/null
2>&1; then
13412 ac_executable_p
="test -x"
13414 ac_executable_p
="test -f"
13418 # Extract the first word of "msgfmt", so it can be a program name with args.
13419 set dummy msgfmt
; ac_word
=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_path_MSGFMT+:} false
; then :
13423 $as_echo_n "(cached) " >&6
13427 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13430 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13431 for ac_dir
in $PATH; do
13433 test -z "$ac_dir" && ac_dir
=.
13434 for ac_exec_ext
in '' $ac_executable_extensions; do
13435 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13436 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
13437 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13438 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
13445 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
13449 MSGFMT
="$ac_cv_path_MSGFMT"
13450 if test "$MSGFMT" != ":"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13452 $as_echo "$MSGFMT" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13458 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13459 set dummy gmsgfmt
; ac_word
=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if ${ac_cv_path_GMSGFMT+:} false
; then :
13463 $as_echo_n "(cached) " >&6
13467 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13471 for as_dir
in $PATH
13474 test -z "$as_dir" && as_dir
=.
13475 for ac_exec_ext
in '' $ac_executable_extensions; do
13476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13489 GMSGFMT
=$ac_cv_path_GMSGFMT
13490 if test -n "$GMSGFMT"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13492 $as_echo "$GMSGFMT" >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13501 # Prepare PATH_SEPARATOR.
13502 # The user is always right.
13503 if test "${PATH_SEPARATOR+set}" != set; then
13504 echo "#! /bin/sh" >conf$$.sh
13505 echo "exit 0" >>conf$$.sh
13507 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13515 # Find out how to test for executable files. Don't use a zero-byte file,
13516 # as systems may use methods other than mode bits to determine executability.
13517 cat >conf$$.
file <<_ASEOF
13521 chmod +x conf$$.
file
13522 if test -x conf$$.
file >/dev
/null
2>&1; then
13523 ac_executable_p
="test -x"
13525 ac_executable_p
="test -f"
13529 # Extract the first word of "xgettext", so it can be a program name with args.
13530 set dummy xgettext
; ac_word
=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if ${ac_cv_path_XGETTEXT+:} false
; then :
13534 $as_echo_n "(cached) " >&6
13536 case "$XGETTEXT" in
13538 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13541 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13542 for ac_dir
in $PATH; do
13544 test -z "$ac_dir" && ac_dir
=.
13545 for ac_exec_ext
in '' $ac_executable_extensions; do
13546 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13547 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13548 (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
13549 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
13556 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13560 XGETTEXT
="$ac_cv_path_XGETTEXT"
13561 if test "$XGETTEXT" != ":"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13563 $as_echo "$XGETTEXT" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13572 # Prepare PATH_SEPARATOR.
13573 # The user is always right.
13574 if test "${PATH_SEPARATOR+set}" != set; then
13575 echo "#! /bin/sh" >conf$$.sh
13576 echo "exit 0" >>conf$$.sh
13578 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13586 # Find out how to test for executable files. Don't use a zero-byte file,
13587 # as systems may use methods other than mode bits to determine executability.
13588 cat >conf$$.
file <<_ASEOF
13592 chmod +x conf$$.
file
13593 if test -x conf$$.
file >/dev
/null
2>&1; then
13594 ac_executable_p
="test -x"
13596 ac_executable_p
="test -f"
13600 # Extract the first word of "msgmerge", so it can be a program name with args.
13601 set dummy msgmerge
; ac_word
=$2
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603 $as_echo_n "checking for $ac_word... " >&6; }
13604 if ${ac_cv_path_MSGMERGE+:} false
; then :
13605 $as_echo_n "(cached) " >&6
13607 case "$MSGMERGE" in
13609 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
13612 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
13613 for ac_dir
in $PATH; do
13615 test -z "$ac_dir" && ac_dir
=.
13616 for ac_exec_ext
in '' $ac_executable_extensions; do
13617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13618 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
13619 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
13626 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
13630 MSGMERGE
="$ac_cv_path_MSGMERGE"
13631 if test "$MSGMERGE" != ":"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13633 $as_echo "$MSGMERGE" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13640 if test "$GMSGFMT" != ":"; then
13641 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
13642 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13645 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13647 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13652 if test "$XGETTEXT" != ":"; then
13653 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
13654 (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
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13658 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13664 ac_config_commands
="$ac_config_commands default-1"
13670 if test -f ..
/gettext
/uninstalled-config.sh
; then
13671 relative_builddir
='$(top_builddir)/../gettext'
13672 . ..
/gettext
/uninstalled-config.sh
13674 # The sister gettext directory doesn't exist and won't collect information on
13675 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13700 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13701 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
13702 $as_echo_n "(cached) " >&6
13704 gt_save_LIBS
="$LIBS"
13705 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 #include <CoreFoundation/CFPreferences.h>
13712 CFPreferencesCopyAppValue(NULL, NULL)
13717 if ac_fn_cxx_try_link
"$LINENO"; then :
13718 gt_cv_func_CFPreferencesCopyAppValue
=yes
13720 gt_cv_func_CFPreferencesCopyAppValue
=no
13722 rm -f core conftest.err conftest.
$ac_objext \
13723 conftest
$ac_exeext conftest.
$ac_ext
13724 LIBS
="$gt_save_LIBS"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13727 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13728 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13730 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13734 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13735 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
13736 $as_echo_n "(cached) " >&6
13738 gt_save_LIBS
="$LIBS"
13739 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
13740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 #include <CoreFoundation/CFLocale.h>
13746 CFLocaleCopyPreferredLanguages();
13751 if ac_fn_cxx_try_link
"$LINENO"; then :
13752 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
13754 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
13756 rm -f core conftest.err conftest.
$ac_objext \
13757 conftest
$ac_exeext conftest.
$ac_ext
13758 LIBS
="$gt_save_LIBS"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13761 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13762 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13764 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13768 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13769 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13770 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13782 case " $gt_needs " in
13783 *" need-formatstring-macros "*) gt_api_version
=3 ;;
13784 *" need-ngettext "*) gt_api_version
=2 ;;
13785 *) gt_api_version
=1 ;;
13787 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
13788 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
13790 if test "$USE_NLS" = "yes"; then
13791 gt_use_preinstalled_gnugettext
=no
13794 if test $gt_api_version -ge 3; then
13795 gt_revision_test_code
='
13796 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13797 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13799 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13802 gt_revision_test_code
=
13804 if test $gt_api_version -ge 2; then
13805 gt_expression_test_code
=' + * ngettext ("", "", 0)'
13807 gt_expression_test_code
=
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13811 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13812 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
13813 $as_echo_n "(cached) " >&6
13815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13818 #include <libintl.h>
13819 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13820 extern int _nl_msg_cat_cntr;
13821 extern int *_nl_domain_bindings;
13822 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13824 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13826 $gt_revision_test_code
13832 bindtextdomain ("", "");
13833 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13839 if ac_fn_cxx_try_link
"$LINENO"; then :
13840 eval "$gt_func_gnugettext_libc=yes"
13842 eval "$gt_func_gnugettext_libc=no"
13844 rm -f core conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13847 eval ac_res
=\$
$gt_func_gnugettext_libc
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13849 $as_echo "$ac_res" >&6; }
13851 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13857 am_save_CPPFLAGS
="$CPPFLAGS"
13859 for element
in $INCICONV; do
13861 for x
in $CPPFLAGS; do
13863 acl_save_prefix
="$prefix"
13864 prefix
="$acl_final_prefix"
13865 acl_save_exec_prefix
="$exec_prefix"
13866 exec_prefix
="$acl_final_exec_prefix"
13868 exec_prefix
="$acl_save_exec_prefix"
13869 prefix
="$acl_save_prefix"
13871 if test "X$x" = "X$element"; then
13876 if test -z "$haveit"; then
13877 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13883 $as_echo_n "checking for iconv... " >&6; }
13884 if ${am_cv_func_iconv+:} false
; then :
13885 $as_echo_n "(cached) " >&6
13888 am_cv_func_iconv
="no, consider installing GNU libiconv"
13890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13893 #include <stdlib.h>
13899 iconv_t cd = iconv_open("","");
13900 iconv(cd,NULL,NULL,NULL,NULL);
13906 if ac_fn_cxx_try_link
"$LINENO"; then :
13907 am_cv_func_iconv
=yes
13909 rm -f core conftest.err conftest.
$ac_objext \
13910 conftest
$ac_exeext conftest.
$ac_ext
13911 if test "$am_cv_func_iconv" != yes; then
13912 am_save_LIBS
="$LIBS"
13913 LIBS
="$LIBS $LIBICONV"
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13917 #include <stdlib.h>
13923 iconv_t cd = iconv_open("","");
13924 iconv(cd,NULL,NULL,NULL,NULL);
13930 if ac_fn_cxx_try_link
"$LINENO"; then :
13931 am_cv_lib_iconv
=yes
13932 am_cv_func_iconv
=yes
13934 rm -f core conftest.err conftest.
$ac_objext \
13935 conftest
$ac_exeext conftest.
$ac_ext
13936 LIBS
="$am_save_LIBS"
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13941 $as_echo "$am_cv_func_iconv" >&6; }
13942 if test "$am_cv_func_iconv" = yes; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13944 $as_echo_n "checking for working iconv... " >&6; }
13945 if ${am_cv_func_iconv_works+:} false
; then :
13946 $as_echo_n "(cached) " >&6
13949 am_save_LIBS
="$LIBS"
13950 if test $am_cv_lib_iconv = yes; then
13951 LIBS
="$LIBS $LIBICONV"
13953 am_cv_func_iconv_works
=no
13954 for ac_iconv_const
in '' 'const'; do
13955 if test "$cross_compiling" = yes; then :
13957 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
13958 *) am_cv_func_iconv_works
="guessing yes" ;;
13961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13965 #include <string.h>
13967 #ifndef ICONV_CONST
13968 # define ICONV_CONST $ac_iconv_const
13975 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13976 successful returns. This is even documented in
13977 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13979 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13980 if (cd_utf8_to_88591 != (iconv_t)(-1))
13982 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13984 ICONV_CONST char *inptr = input;
13985 size_t inbytesleft = strlen (input);
13986 char *outptr = buf;
13987 size_t outbytesleft = sizeof (buf);
13988 size_t res = iconv (cd_utf8_to_88591,
13989 &inptr, &inbytesleft,
13990 &outptr, &outbytesleft);
13993 iconv_close (cd_utf8_to_88591);
13996 /* Test against Solaris 10 bug: Failures are not distinguishable from
13997 successful returns. */
13999 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14000 if (cd_ascii_to_88591 != (iconv_t)(-1))
14002 static ICONV_CONST char input[] = "\263";
14004 ICONV_CONST char *inptr = input;
14005 size_t inbytesleft = strlen (input);
14006 char *outptr = buf;
14007 size_t outbytesleft = sizeof (buf);
14008 size_t res = iconv (cd_ascii_to_88591,
14009 &inptr, &inbytesleft,
14010 &outptr, &outbytesleft);
14013 iconv_close (cd_ascii_to_88591);
14016 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14018 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14019 if (cd_88591_to_utf8 != (iconv_t)(-1))
14021 static ICONV_CONST char input[] = "\304";
14022 static char buf[2] = { (char)0xDE, (char)0xAD };
14023 ICONV_CONST char *inptr = input;
14024 size_t inbytesleft = 1;
14025 char *outptr = buf;
14026 size_t outbytesleft = 1;
14027 size_t res = iconv (cd_88591_to_utf8,
14028 &inptr, &inbytesleft,
14029 &outptr, &outbytesleft);
14030 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14032 iconv_close (cd_88591_to_utf8);
14035 #if 0 /* This bug could be worked around by the caller. */
14036 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14038 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14039 if (cd_88591_to_utf8 != (iconv_t)(-1))
14041 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14043 ICONV_CONST char *inptr = input;
14044 size_t inbytesleft = strlen (input);
14045 char *outptr = buf;
14046 size_t outbytesleft = sizeof (buf);
14047 size_t res = iconv (cd_88591_to_utf8,
14048 &inptr, &inbytesleft,
14049 &outptr, &outbytesleft);
14052 iconv_close (cd_88591_to_utf8);
14056 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14059 /* Try standardized names. */
14060 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14061 /* Try IRIX, OSF/1 names. */
14062 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14063 /* Try AIX names. */
14064 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14065 /* Try HP-UX names. */
14066 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14067 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14068 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14070 if (cd1 != (iconv_t)(-1))
14072 if (cd2 != (iconv_t)(-1))
14074 if (cd3 != (iconv_t)(-1))
14076 if (cd4 != (iconv_t)(-1))
14085 if ac_fn_cxx_try_run
"$LINENO"; then :
14086 am_cv_func_iconv_works
=yes
14088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14092 test "$am_cv_func_iconv_works" = no ||
break
14094 LIBS
="$am_save_LIBS"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14098 $as_echo "$am_cv_func_iconv_works" >&6; }
14099 case "$am_cv_func_iconv_works" in
14100 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
14101 *) am_func_iconv
=yes ;;
14104 am_func_iconv
=no am_cv_lib_iconv
=no
14106 if test "$am_func_iconv" = yes; then
14108 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14111 if test "$am_cv_lib_iconv" = yes; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14113 $as_echo_n "checking how to link with libiconv... " >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14115 $as_echo "$LIBICONV" >&6; }
14117 CPPFLAGS
="$am_save_CPPFLAGS"
14129 acl_save_prefix
="$prefix"
14130 prefix
="$acl_final_prefix"
14131 acl_save_exec_prefix
="$exec_prefix"
14132 exec_prefix
="$acl_final_exec_prefix"
14134 eval additional_includedir
=\"$includedir\"
14135 eval additional_libdir
=\"$libdir\"
14137 exec_prefix
="$acl_save_exec_prefix"
14138 prefix
="$acl_save_prefix"
14141 # Check whether --with-libintl-prefix was given.
14142 if test "${with_libintl_prefix+set}" = set; then :
14143 withval
=$with_libintl_prefix;
14144 if test "X$withval" = "Xno"; then
14147 if test "X$withval" = "X"; then
14149 acl_save_prefix
="$prefix"
14150 prefix
="$acl_final_prefix"
14151 acl_save_exec_prefix
="$exec_prefix"
14152 exec_prefix
="$acl_final_exec_prefix"
14154 eval additional_includedir
=\"$includedir\"
14155 eval additional_libdir
=\"$libdir\"
14157 exec_prefix
="$acl_save_exec_prefix"
14158 prefix
="$acl_save_prefix"
14161 additional_includedir
="$withval/include"
14162 additional_libdir
="$withval/lib"
14169 # Check whether --with-libintl-type was given.
14170 if test "${with_libintl_type+set}" = set; then :
14171 withval
=$with_libintl_type; with_libintl_type
=$withval
14173 with_libintl_type
=auto
14176 lib_type
=`eval echo \$with_libintl_type`
14183 names_already_handled
=
14184 names_next_round
='intl '
14185 while test -n "$names_next_round"; do
14186 names_this_round
="$names_next_round"
14188 for name
in $names_this_round; do
14190 for n
in $names_already_handled; do
14191 if test "$n" = "$name"; then
14192 already_handled
=yes
14196 if test -z "$already_handled"; then
14197 names_already_handled
="$names_already_handled $name"
14198 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14199 eval value
=\"\
$HAVE_LIB$uppername\"
14200 if test -n "$value"; then
14201 if test "$value" = yes; then
14202 eval value
=\"\
$LIB$uppername\"
14203 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14204 eval value
=\"\
$LTLIB$uppername\"
14205 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14214 if test $use_additional = yes; then
14215 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14216 found_dir
="$additional_libdir"
14217 found_so
="$additional_libdir/lib$name.$shlibext"
14218 if test -f "$additional_libdir/lib$name.la"; then
14219 found_la
="$additional_libdir/lib$name.la"
14221 elif test x
$lib_type != xshared
; then
14222 if test -f "$additional_libdir/lib$name.$libext"; then
14223 found_dir
="$additional_libdir"
14224 found_a
="$additional_libdir/lib$name.$libext"
14225 if test -f "$additional_libdir/lib$name.la"; then
14226 found_la
="$additional_libdir/lib$name.la"
14231 if test "X$found_dir" = "X"; then
14232 for x
in $LDFLAGS $LTLIBINTL; do
14234 acl_save_prefix
="$prefix"
14235 prefix
="$acl_final_prefix"
14236 acl_save_exec_prefix
="$exec_prefix"
14237 exec_prefix
="$acl_final_exec_prefix"
14239 exec_prefix
="$acl_save_exec_prefix"
14240 prefix
="$acl_save_prefix"
14244 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14245 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14247 found_so
="$dir/lib$name.$shlibext"
14248 if test -f "$dir/lib$name.la"; then
14249 found_la
="$dir/lib$name.la"
14251 elif test x
$lib_type != xshared
; then
14252 if test -f "$dir/lib$name.$libext"; then
14254 found_a
="$dir/lib$name.$libext"
14255 if test -f "$dir/lib$name.la"; then
14256 found_la
="$dir/lib$name.la"
14262 if test "X$found_dir" != "X"; then
14267 if test "X$found_dir" != "X"; then
14268 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14269 if test "X$found_so" != "X"; then
14270 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14271 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14274 for x
in $ltrpathdirs; do
14275 if test "X$x" = "X$found_dir"; then
14280 if test -z "$haveit"; then
14281 ltrpathdirs
="$ltrpathdirs $found_dir"
14283 if test "$hardcode_direct" = yes; then
14284 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14286 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14287 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14289 for x
in $rpathdirs; do
14290 if test "X$x" = "X$found_dir"; then
14295 if test -z "$haveit"; then
14296 rpathdirs
="$rpathdirs $found_dir"
14300 for x
in $LDFLAGS $LIBINTL; do
14302 acl_save_prefix
="$prefix"
14303 prefix
="$acl_final_prefix"
14304 acl_save_exec_prefix
="$exec_prefix"
14305 exec_prefix
="$acl_final_exec_prefix"
14307 exec_prefix
="$acl_save_exec_prefix"
14308 prefix
="$acl_save_prefix"
14310 if test "X$x" = "X-L$found_dir"; then
14315 if test -z "$haveit"; then
14316 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14318 if test "$hardcode_minus_L" != no
; then
14319 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14321 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14327 if test "X$found_a" != "X"; then
14328 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14330 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14333 additional_includedir
=
14334 case "$found_dir" in
14336 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14337 additional_includedir
="$basedir/include"
14340 if test "X$additional_includedir" != "X"; then
14341 if test "X$additional_includedir" != "X/usr/include"; then
14343 if test "X$additional_includedir" = "X/usr/local/include"; then
14344 if test -n "$GCC"; then
14346 linux
*) haveit
=yes;;
14350 if test -z "$haveit"; then
14351 for x
in $CPPFLAGS $INCINTL; do
14353 acl_save_prefix
="$prefix"
14354 prefix
="$acl_final_prefix"
14355 acl_save_exec_prefix
="$exec_prefix"
14356 exec_prefix
="$acl_final_exec_prefix"
14358 exec_prefix
="$acl_save_exec_prefix"
14359 prefix
="$acl_save_prefix"
14361 if test "X$x" = "X-I$additional_includedir"; then
14366 if test -z "$haveit"; then
14367 if test -d "$additional_includedir"; then
14368 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14374 if test -n "$found_la"; then
14375 save_libdir
="$libdir"
14376 case "$found_la" in
14377 */* |
*\\*) .
"$found_la" ;;
14378 *) .
"./$found_la" ;;
14380 libdir
="$save_libdir"
14381 for dep
in $dependency_libs; do
14384 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14385 if test "X$additional_libdir" != "X/usr/lib"; then
14387 if test "X$additional_libdir" = "X/usr/local/lib"; then
14388 if test -n "$GCC"; then
14390 linux
*) haveit
=yes;;
14394 if test -z "$haveit"; then
14396 for x
in $LDFLAGS $LIBINTL; do
14398 acl_save_prefix
="$prefix"
14399 prefix
="$acl_final_prefix"
14400 acl_save_exec_prefix
="$exec_prefix"
14401 exec_prefix
="$acl_final_exec_prefix"
14403 exec_prefix
="$acl_save_exec_prefix"
14404 prefix
="$acl_save_prefix"
14406 if test "X$x" = "X-L$additional_libdir"; then
14411 if test -z "$haveit"; then
14412 if test -d "$additional_libdir"; then
14413 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14417 for x
in $LDFLAGS $LTLIBINTL; do
14419 acl_save_prefix
="$prefix"
14420 prefix
="$acl_final_prefix"
14421 acl_save_exec_prefix
="$exec_prefix"
14422 exec_prefix
="$acl_final_exec_prefix"
14424 exec_prefix
="$acl_save_exec_prefix"
14425 prefix
="$acl_save_prefix"
14427 if test "X$x" = "X-L$additional_libdir"; then
14432 if test -z "$haveit"; then
14433 if test -d "$additional_libdir"; then
14434 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14441 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14442 if test "$enable_rpath" != no
; then
14444 for x
in $rpathdirs; do
14445 if test "X$x" = "X$dir"; then
14450 if test -z "$haveit"; then
14451 rpathdirs
="$rpathdirs $dir"
14454 for x
in $ltrpathdirs; do
14455 if test "X$x" = "X$dir"; then
14460 if test -z "$haveit"; then
14461 ltrpathdirs
="$ltrpathdirs $dir"
14466 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14469 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14472 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14473 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14479 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14480 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14481 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14483 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14484 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14491 if test "X$rpathdirs" != "X"; then
14492 if test -n "$hardcode_libdir_separator"; then
14494 for found_dir
in $rpathdirs; do
14495 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14497 acl_save_libdir
="$libdir"
14499 eval flag
=\"$hardcode_libdir_flag_spec\"
14500 libdir
="$acl_save_libdir"
14501 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14503 for found_dir
in $rpathdirs; do
14504 acl_save_libdir
="$libdir"
14505 libdir
="$found_dir"
14506 eval flag
=\"$hardcode_libdir_flag_spec\"
14507 libdir
="$acl_save_libdir"
14508 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14512 if test "X$ltrpathdirs" != "X"; then
14513 for found_dir
in $ltrpathdirs; do
14514 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14519 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14520 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
14521 $as_echo_n "(cached) " >&6
14523 gt_save_CPPFLAGS
="$CPPFLAGS"
14524 CPPFLAGS
="$CPPFLAGS $INCINTL"
14525 gt_save_LIBS
="$LIBS"
14526 LIBS
="$LIBS $LIBINTL"
14527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14530 #include <libintl.h>
14531 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14532 extern int _nl_msg_cat_cntr;
14537 const char *_nl_expand_alias (const char *);
14538 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14540 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14542 $gt_revision_test_code
14548 bindtextdomain ("", "");
14549 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14555 if ac_fn_cxx_try_link
"$LINENO"; then :
14556 eval "$gt_func_gnugettext_libintl=yes"
14558 eval "$gt_func_gnugettext_libintl=no"
14560 rm -f core conftest.err conftest.
$ac_objext \
14561 conftest
$ac_exeext conftest.
$ac_ext
14562 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14563 LIBS
="$LIBS $LIBICONV"
14564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14567 #include <libintl.h>
14568 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14569 extern int _nl_msg_cat_cntr;
14574 const char *_nl_expand_alias (const char *);
14575 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14577 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14579 $gt_revision_test_code
14585 bindtextdomain ("", "");
14586 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14592 if ac_fn_cxx_try_link
"$LINENO"; then :
14593 LIBINTL
="$LIBINTL $LIBICONV"
14594 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14595 eval "$gt_func_gnugettext_libintl=yes"
14598 rm -f core conftest.err conftest.
$ac_objext \
14599 conftest
$ac_exeext conftest.
$ac_ext
14601 CPPFLAGS
="$gt_save_CPPFLAGS"
14602 LIBS
="$gt_save_LIBS"
14604 eval ac_res
=\$
$gt_func_gnugettext_libintl
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14609 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14610 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14611 && test "$PACKAGE" != gettext-runtime \
14612 && test "$PACKAGE" != gettext-tools
; }; then
14613 gt_use_preinstalled_gnugettext
=yes
14622 if test -n "$INTL_MACOSX_LIBS"; then
14623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14624 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14625 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
14626 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
14630 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14631 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14641 $as_echo_n "checking whether to use NLS... " >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14643 $as_echo "$USE_NLS" >&6; }
14644 if test "$USE_NLS" = "yes"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14646 $as_echo_n "checking where the gettext function comes from... " >&6; }
14647 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14648 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14649 gt_source
="external libintl"
14654 gt_source
="included intl directory"
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14657 $as_echo "$gt_source" >&6; }
14660 if test "$USE_NLS" = "yes"; then
14662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14663 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14665 $as_echo_n "checking how to link with libintl... " >&6; }
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14667 $as_echo "$LIBINTL" >&6; }
14669 for element
in $INCINTL; do
14671 for x
in $CPPFLAGS; do
14673 acl_save_prefix
="$prefix"
14674 prefix
="$acl_final_prefix"
14675 acl_save_exec_prefix
="$exec_prefix"
14676 exec_prefix
="$acl_final_exec_prefix"
14678 exec_prefix
="$acl_save_exec_prefix"
14679 prefix
="$acl_save_prefix"
14681 if test "X$x" = "X$element"; then
14686 if test -z "$haveit"; then
14687 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14694 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14697 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14706 INTLLIBS
="$LIBINTL"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14726 $as_echo_n "checking whether NLS is requested... " >&6; }
14727 if test x
"$USE_NLS" != xyes
; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14732 $as_echo "yes" >&6; }
14734 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14738 $as_echo_n "checking for catalogs to be installed... " >&6; }
14739 # Look for .po and .gmo files in the source directory.
14742 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
14743 # If there aren't any .gmo files the shell will give us the
14744 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14746 case "$cat" in *\
**)
14749 # The quadruple backslash is collapsed to a double backslash
14750 # by the backticks, then collapsed again by the double quotes,
14751 # leaving us with one backslash in the sed expression (right
14752 # before the dot that mustn't act as a wildcard).
14753 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14754 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
14755 # The user is allowed to set LINGUAS to a list of languages to
14756 # install catalogs for. If it's empty that means "all of them."
14757 if test "x$LINGUAS" = x
; then
14758 CATALOGS
="$CATALOGS $cat"
14759 XLINGUAS
="$XLINGUAS $lang"
14761 case "$LINGUAS" in *$lang*)
14762 CATALOGS
="$CATALOGS $cat"
14763 XLINGUAS
="$XLINGUAS $lang"
14768 LINGUAS
="$XLINGUAS"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14770 $as_echo "$LINGUAS" >&6; }
14783 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14784 # -liconv on the link line twice.
14785 case "$LIBINTL" in *$LIBICONV*)
14789 # Check whether --enable-secureplt was given.
14790 if test "${enable_secureplt+set}" = set; then :
14791 enableval
=$enable_secureplt;
14795 # Check whether --enable-mingw-wildcard was given.
14796 if test "${enable_mingw_wildcard+set}" = set; then :
14797 enableval
=$enable_mingw_wildcard;
14799 enable_mingw_wildcard
=platform
14802 if test x
"$enable_mingw_wildcard" != xplatform
; then :
14804 cat >>confdefs.h
<<_ACEOF
14805 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14810 # Check whether --enable-large-address-aware was given.
14811 if test "${enable_large_address_aware+set}" = set; then :
14812 enableval
=$enable_large_address_aware;
14815 if test x
"$enable_large_address_aware" = xyes
; then :
14817 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14821 # Check whether --enable-leading-mingw64-underscores was given.
14822 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14823 enableval
=$enable_leading_mingw64_underscores;
14826 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
14828 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14832 # Check whether --enable-cld was given.
14833 if test "${enable_cld+set}" = set; then :
14834 enableval
=$enable_cld;
14840 # Check whether --enable-frame-pointer was given.
14841 if test "${enable_frame_pointer+set}" = set; then :
14842 enableval
=$enable_frame_pointer;
14846 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
14847 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14848 enable_frame_pointer
=no
14851 enable_frame_pointer
=yes
14859 i
[34567]86-*-* | x86_64-
*-*)
14860 if test "x$enable_cld" = xyes
; then
14861 tm_defines
="${tm_defines} USE_IX86_CLD=1"
14863 if test "x$enable_frame_pointer" = xyes
; then
14864 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
14869 # Windows32 Registry support for specifying GCC installation paths.
14870 # Check whether --enable-win32-registry was given.
14871 if test "${enable_win32_registry+set}" = set; then :
14872 enableval
=$enable_win32_registry;
14877 win32 | pe | cygwin
* | mingw32
*)
14878 if test "x$enable_win32_registry" != xno
; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14880 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14881 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14882 $as_echo_n "(cached) " >&6
14884 ac_func_search_save_LIBS
=$LIBS
14885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14894 char RegOpenKeyExA ();
14898 return RegOpenKeyExA ();
14903 for ac_lib
in '' advapi32
; do
14904 if test -z "$ac_lib"; then
14905 ac_res
="none required"
14908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14910 if ac_fn_cxx_try_link
"$LINENO"; then :
14911 ac_cv_search_RegOpenKeyExA
=$ac_res
14913 rm -f core conftest.err conftest.
$ac_objext \
14915 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14919 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
14922 ac_cv_search_RegOpenKeyExA
=no
14924 rm conftest.
$ac_ext
14925 LIBS
=$ac_func_search_save_LIBS
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14928 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14929 ac_res
=$ac_cv_search_RegOpenKeyExA
14930 if test "$ac_res" != no
; then :
14931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14934 enable_win32_registry
=no
14939 if test "x$enable_win32_registry" != xno
; then
14941 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
14944 if test "x$enable_win32_registry" != xyes \
14945 && test "x$enable_win32_registry" != x
; then
14947 cat >>confdefs.h
<<_ACEOF
14948 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14956 # Get an absolute path to the GCC top-level source directory
14957 holddir
=`${PWDCMD-pwd}`
14959 topdir
=`${PWDCMD-pwd}`
14962 # Conditionalize the makefile for this host machine.
14964 for f
in ${host_xmake_file}
14966 if test -f ${srcdir}/config
/$f
14968 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
14972 # Conditionalize the makefile for this target machine.
14974 for f
in ${tmake_file}
14976 if test -f ${srcdir}/config
/$f
14978 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
14981 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
14983 out_object_file
=`basename $out_file .cc`.o
14984 common_out_object_file
=`basename $common_out_file .cc`.o
14986 tm_file_list
="options.h"
14987 tm_include_list
="options.h insn-constants.h"
14988 for f
in $tm_file; do
14991 f
=`echo $f | sed 's/^..//'`
14992 tm_file_list
="${tm_file_list} $f"
14993 tm_include_list
="${tm_include_list} $f"
14996 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
14997 tm_include_list
="${tm_include_list} $f"
15000 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
15001 tm_include_list
="${tm_include_list} config/$f"
15008 for f
in $tm_p_file; do
15011 tm_p_file_list
="${tm_p_file_list} $f"
15012 tm_p_include_list
="${tm_p_include_list} $f"
15015 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
15016 tm_p_include_list
="${tm_p_include_list} config/$f"
15022 for f
in $tm_d_file; do
15025 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
15026 tm_d_include_list
="${tm_d_include_list} config/$f"
15032 tm_rust_include_list
=
15033 for f
in $tm_rust_file; do
15036 tm_rust_file_list
="${tm_rust_file_list} \$(srcdir)/config/$f"
15037 tm_rust_include_list
="${tm_rust_include_list} config/$f"
15044 for f
in $xm_file; do
15047 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
15048 xm_include_list
="${xm_include_list} $f"
15051 xm_file_list
="${xm_file_list} $f"
15052 xm_include_list
="${xm_include_list} $f"
15055 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
15056 xm_include_list
="${xm_include_list} config/$f"
15062 host_xm_include_list
=
15063 for f
in $host_xm_file; do
15066 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
15067 host_xm_include_list
="${host_xm_include_list} $f"
15070 host_xm_file_list
="${host_xm_file_list} $f"
15071 host_xm_include_list
="${host_xm_include_list} $f"
15074 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
15075 host_xm_include_list
="${host_xm_include_list} config/$f"
15080 build_xm_file_list
=
15081 for f
in $build_xm_file; do
15084 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
15085 build_xm_include_list
="${build_xm_include_list} $f"
15087 auto-build.h | auto-host.h
)
15088 build_xm_file_list
="${build_xm_file_list} $f"
15089 build_xm_include_list
="${build_xm_include_list} $f"
15092 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
15093 build_xm_include_list
="${build_xm_include_list} config/$f"
15098 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15099 # cross-compiler which does not use the native headers and libraries.
15100 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15103 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15104 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
15106 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
15107 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
15108 if test "x$with_build_sysroot" != x
; then
15109 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15111 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15114 if test x
$host != x
$target
15116 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
15118 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
15119 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
15120 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
15123 if test "x$with_build_sysroot" != "x"; then
15124 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
15125 elif test "x$with_sysroot" = x
; then
15126 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
15127 elif test "x$with_sysroot" = xyes
; then
15128 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15130 target_header_dir
="${with_sysroot}${native_system_header_dir}"
15133 target_header_dir
=${native_system_header_dir}
15136 # If this is a cross-compiler that does not
15137 # have its own set of headers then define
15140 # If this is using newlib, without having the headers available now,
15141 # then define inhibit_libc in LIBGCC2_CFLAGS.
15142 # This prevents libgcc2 from containing any code which requires libc
15144 : ${inhibit_libc=false}
15145 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
15146 test x
$with_newlib = xyes
; } &&
15147 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
15152 # When building gcc with a cross-compiler, we need to adjust things so
15153 # that the generator programs are still built with the native compiler.
15154 # Also, we cannot run fixincludes.
15156 # These are the normal (build=host) settings:
15157 CC_FOR_BUILD
='$(CC)'
15158 CXX_FOR_BUILD
='$(CXX)'
15159 BUILD_CFLAGS
='$(ALL_CFLAGS)'
15160 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
15161 BUILD_LDFLAGS
='$(LDFLAGS)'
15162 STMP_FIXINC
=stmp-fixinc
15164 # And these apply if build != host, or we are generating coverage data
15165 if test x
$build != x
$host ||
test "x$coverage_flags" != x
15167 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15168 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15169 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
15173 if test x
$enable_fixincludes = xno
;
15178 # Expand extra_headers to include complete path.
15179 # This substitutes for lots of t-* files.
15180 extra_headers_list
=
15181 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15182 for file in ${extra_headers} ; do
15183 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15186 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15187 if test x
"$use_gcc_tgmath" = xyes
15188 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15191 # Define collect2 in Makefile.
15192 case $host_can_use_collect2 in
15194 *) collect2
='collect2$(exeext)' ;;
15198 # Add a definition of USE_COLLECT2 if system wants one.
15199 case $use_collect2 in
15200 no
) use_collect2
= ;;
15203 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
15204 xm_defines
="${xm_defines} USE_COLLECT2"
15205 case $host_can_use_collect2 in
15207 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
15214 cat >>confdefs.h
<<_ACEOF
15215 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15219 # ---------------------------
15220 # Assembler & linker features
15221 # ---------------------------
15223 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15224 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15225 # However when ld-new is first executed from the build tree, libtool will
15226 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15227 # to the build tree. While doing this we need to use the previous-stage
15228 # linker, or we have an infinite loop. The presence of a shell script as
15229 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15230 # the gcc/collect-ld script. So we need to know how libtool works, or
15231 # exec-tool will fail.
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15237 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15242 macro_version
='2.2.7a'
15243 macro_revision
='1.3134'
15257 ltmain
="$ac_aux_dir/ltmain.sh"
15259 # Backslashify metacharacters that are still active within
15260 # double-quoted strings.
15261 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
15263 # Same as above, but do not quote variable references.
15264 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
15266 # Sed substitution to delay expansion of an escaped shell variable in a
15267 # double_quote_subst'ed string.
15268 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15270 # Sed substitution to delay expansion of an escaped single quote.
15271 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15273 # Sed substitution to avoid accidental globbing in evaled expressions
15274 no_glob_subst
='s/\*/\\\*/g'
15276 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15281 $as_echo_n "checking how to print strings... " >&6; }
15282 # Test print first, because it will be a builtin if present.
15283 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15289 # Use this function as a fallback that always works.
15290 func_fallback_echo ()
15292 eval 'cat <<_LTECHO_EOF
15296 ECHO='func_fallback_echo
'
15299 # func_echo_all arg...
15300 # Invoke $ECHO with all args, space-separated.
15307 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15308 $as_echo "printf" >&6; } ;;
15309 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15310 $as_echo "print -r" >&6; } ;;
15311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15312 $as_echo "cat" >&6; } ;;
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15329 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15330 if ${ac_cv_path_SED+:} false; then :
15331 $as_echo_n "(cached) " >&6
15333 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15334 for ac_i in 1 2 3 4 5 6 7; do
15335 ac_script="$ac_script$as_nl$ac_script"
15337 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15338 { ac_script=; unset ac_script;}
15339 if test -z "$SED"; then
15340 ac_path_SED_found=false
15341 # Loop through the user's path and
test for each of PROGNAME-LIST
15342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15343 for as_dir
in $PATH
15346 test -z "$as_dir" && as_dir
=.
15347 for ac_prog
in sed gsed
; do
15348 for ac_exec_ext
in '' $ac_executable_extensions; do
15349 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
15350 as_fn_executable_p
"$ac_path_SED" ||
continue
15351 # Check for GNU ac_path_SED and select it if it is found.
15352 # Check for GNU $ac_path_SED
15353 case `"$ac_path_SED" --version 2>&1` in
15355 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
15358 $as_echo_n 0123456789 >"conftest.in"
15361 cat "conftest.in" "conftest.in" >"conftest.tmp"
15362 mv "conftest.tmp" "conftest.in"
15363 cp "conftest.in" "conftest.nl"
15364 $as_echo '' >> "conftest.nl"
15365 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15366 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15367 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15368 if test $ac_count -gt ${ac_path_SED_max-0}; then
15369 # Best one so far, save it but keep looking for a better one
15370 ac_cv_path_SED
="$ac_path_SED"
15371 ac_path_SED_max
=$ac_count
15373 # 10*(2^10) chars as input seems more than enough
15374 test $ac_count -gt 10 && break
15376 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15379 $ac_path_SED_found && break 3
15384 if test -z "$ac_cv_path_SED"; then
15385 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
15388 ac_cv_path_SED
=$SED
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15393 $as_echo "$ac_cv_path_SED" >&6; }
15394 SED
="$ac_cv_path_SED"
15397 test -z "$SED" && SED
=sed
15398 Xsed
="$SED -e 1s/^X//"
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15411 $as_echo_n "checking for fgrep... " >&6; }
15412 if ${ac_cv_path_FGREP+:} false
; then :
15413 $as_echo_n "(cached) " >&6
15415 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
15416 then ac_cv_path_FGREP
="$GREP -F"
15418 if test -z "$FGREP"; then
15419 ac_path_FGREP_found
=false
15420 # Loop through the user's path and test for each of PROGNAME-LIST
15421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15422 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
15425 test -z "$as_dir" && as_dir
=.
15426 for ac_prog
in fgrep
; do
15427 for ac_exec_ext
in '' $ac_executable_extensions; do
15428 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
15429 as_fn_executable_p
"$ac_path_FGREP" ||
continue
15430 # Check for GNU ac_path_FGREP and select it if it is found.
15431 # Check for GNU $ac_path_FGREP
15432 case `"$ac_path_FGREP" --version 2>&1` in
15434 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
15437 $as_echo_n 0123456789 >"conftest.in"
15440 cat "conftest.in" "conftest.in" >"conftest.tmp"
15441 mv "conftest.tmp" "conftest.in"
15442 cp "conftest.in" "conftest.nl"
15443 $as_echo 'FGREP' >> "conftest.nl"
15444 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
15445 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
15446 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
15447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15448 # Best one so far, save it but keep looking for a better one
15449 ac_cv_path_FGREP
="$ac_path_FGREP"
15450 ac_path_FGREP_max
=$ac_count
15452 # 10*(2^10) chars as input seems more than enough
15453 test $ac_count -gt 10 && break
15455 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
15458 $ac_path_FGREP_found && break 3
15463 if test -z "$ac_cv_path_FGREP"; then
15464 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15467 ac_cv_path_FGREP
=$FGREP
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15473 $as_echo "$ac_cv_path_FGREP" >&6; }
15474 FGREP
="$ac_cv_path_FGREP"
15477 test -z "$GREP" && GREP
=grep
15497 # Check whether --with-gnu-ld was given.
15498 if test "${with_gnu_ld+set}" = set; then :
15499 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
15505 if test "$GCC" = yes; then
15506 # Check if gcc -print-prog-name=ld gives a path.
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15508 $as_echo_n "checking for ld used by $CC... " >&6; }
15511 # gcc leaves a trailing carriage return which upsets mingw
15512 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15514 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15517 # Accept absolute paths.
15519 re_direlt
='/[^/][^/]*/\.\./'
15520 # Canonicalize the pathname of ld
15521 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15522 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
15523 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15525 test -z "$LD" && LD
="$ac_prog"
15528 # If it fails, then pretend we aren't using GCC.
15532 # If it is relative, then search for the first ld in PATH.
15533 with_gnu_ld
=unknown
15536 elif test "$with_gnu_ld" = yes; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15538 $as_echo_n "checking for GNU ld... " >&6; }
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15541 $as_echo_n "checking for non-GNU ld... " >&6; }
15543 if ${lt_cv_path_LD+:} false
; then :
15544 $as_echo_n "(cached) " >&6
15546 if test -z "$LD"; then
15547 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15548 for ac_dir
in $PATH; do
15550 test -z "$ac_dir" && ac_dir
=.
15551 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15552 lt_cv_path_LD
="$ac_dir/$ac_prog"
15553 # Check to see if the program is GNU ld. I'd rather use --version,
15554 # but apparently some variants of GNU ld only accept -v.
15555 # Break only if it was the GNU/non-GNU ld that we prefer.
15556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15557 *GNU
* |
*'with BFD'*)
15558 test "$with_gnu_ld" != no
&& break
15561 test "$with_gnu_ld" != yes && break
15568 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15572 LD
="$lt_cv_path_LD"
15573 if test -n "$LD"; then
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15575 $as_echo "$LD" >&6; }
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578 $as_echo "no" >&6; }
15580 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15583 if ${lt_cv_prog_gnu_ld+:} false
; then :
15584 $as_echo_n "(cached) " >&6
15586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15587 case `$LD -v 2>&1 </dev/null` in
15588 *GNU
* |
*'with BFD'*)
15589 lt_cv_prog_gnu_ld
=yes
15592 lt_cv_prog_gnu_ld
=no
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15598 with_gnu_ld
=$lt_cv_prog_gnu_ld
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15609 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15610 if ${lt_cv_path_NM+:} false
; then :
15611 $as_echo_n "(cached) " >&6
15613 if test -n "$NM"; then
15614 # Let the user override the nm to test.
15615 lt_nm_to_check
="$NM"
15617 lt_nm_to_check
="${ac_tool_prefix}nm"
15618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15619 lt_nm_to_check
="$lt_nm_to_check nm"
15622 for lt_tmp_nm
in "$lt_nm_to_check"; do
15623 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15624 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
15626 test -z "$ac_dir" && ac_dir
=.
15627 # Strip out any user-provided options from the nm to test twice,
15628 # the first time to test to see if nm (rather than its options) has
15629 # an explicit path, the second time to yield a file which can be
15631 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15632 case "$tmp_nm_path" in
15633 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
15634 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
15636 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15637 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
15638 # Check to see if the nm accepts a BSD-compat flag.
15639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15640 # nm: unknown option "B" ignored
15641 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15642 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
15646 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15648 lt_cv_path_NM
="$tmp_nm -p"
15652 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15653 continue # so that we can try to find one that supports BSD flags
15662 : ${lt_cv_path_NM=no}
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15665 $as_echo "$lt_cv_path_NM" >&6; }
15666 if test "$lt_cv_path_NM" != "no"; then
15667 NM
="$lt_cv_path_NM"
15669 # Didn't find any BSD compatible name lister, look for dumpbin.
15670 if test -n "$DUMPBIN"; then :
15671 # Let the user override the test.
15673 if test -n "$ac_tool_prefix"; then
15674 for ac_prog
in dumpbin
"link -dump"
15676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15677 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679 $as_echo_n "checking for $ac_word... " >&6; }
15680 if ${ac_cv_prog_DUMPBIN+:} false
; then :
15681 $as_echo_n "(cached) " >&6
15683 if test -n "$DUMPBIN"; then
15684 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
15686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15687 for as_dir
in $PATH
15690 test -z "$as_dir" && as_dir
=.
15691 for ac_exec_ext
in '' $ac_executable_extensions; do
15692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15693 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
15694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703 DUMPBIN
=$ac_cv_prog_DUMPBIN
15704 if test -n "$DUMPBIN"; then
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15706 $as_echo "$DUMPBIN" >&6; }
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15709 $as_echo "no" >&6; }
15713 test -n "$DUMPBIN" && break
15716 if test -z "$DUMPBIN"; then
15717 ac_ct_DUMPBIN
=$DUMPBIN
15718 for ac_prog
in dumpbin
"link -dump"
15720 # Extract the first word of "$ac_prog", so it can be a program name with args.
15721 set dummy
$ac_prog; ac_word
=$2
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723 $as_echo_n "checking for $ac_word... " >&6; }
15724 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
15725 $as_echo_n "(cached) " >&6
15727 if test -n "$ac_ct_DUMPBIN"; then
15728 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
15730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15731 for as_dir
in $PATH
15734 test -z "$as_dir" && as_dir
=.
15735 for ac_exec_ext
in '' $ac_executable_extensions; do
15736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15737 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
15738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15747 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
15748 if test -n "$ac_ct_DUMPBIN"; then
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15750 $as_echo "$ac_ct_DUMPBIN" >&6; }
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15757 test -n "$ac_ct_DUMPBIN" && break
15760 if test "x$ac_ct_DUMPBIN" = x
; then
15763 case $cross_compiling:$ac_tool_warned in
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15767 ac_tool_warned
=yes ;;
15769 DUMPBIN
=$ac_ct_DUMPBIN
15773 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15775 DUMPBIN
="$DUMPBIN -symbols"
15783 if test "$DUMPBIN" != ":"; then
15787 test -z "$NM" && NM
=nm
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15795 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15796 if ${lt_cv_nm_interface+:} false
; then :
15797 $as_echo_n "(cached) " >&6
15799 lt_cv_nm_interface
="BSD nm"
15800 echo "int some_variable = 0;" > conftest.
$ac_ext
15801 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15802 (eval "$ac_compile" 2>conftest.err
)
15803 cat conftest.err
>&5
15804 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
15806 cat conftest.err
>&5
15807 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15808 cat conftest.out
>&5
15809 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
15810 lt_cv_nm_interface
="MS dumpbin"
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15815 $as_echo "$lt_cv_nm_interface" >&6; }
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15818 $as_echo_n "checking whether ln -s works... " >&6; }
15820 if test "$LN_S" = "ln -s"; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15822 $as_echo "yes" >&6; }
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15825 $as_echo "no, using $LN_S" >&6; }
15828 # find the maximum length of command line arguments
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15830 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15831 if ${lt_cv_sys_max_cmd_len+:} false
; then :
15832 $as_echo_n "(cached) " >&6
15839 # On DJGPP, this test can blow up pretty badly due to problems in libc
15840 # (any single argument exceeding 2000 bytes causes a buffer overrun
15841 # during glob expansion). Even if it were fixed, the result of this
15842 # check would be larger than it should be.
15843 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
15847 # Under GNU Hurd, this test is not required because there is
15848 # no limit to the length of command line arguments.
15849 # Libtool will interpret -1 as no limit whatsoever
15850 lt_cv_sys_max_cmd_len
=-1;
15853 cygwin
* | mingw
* | cegcc
*)
15854 # On Win9x/ME, this test blows up -- it succeeds, but takes
15855 # about 5 minutes as the teststring grows exponentially.
15856 # Worse, since 9x/ME are not pre-emptively multitasking,
15857 # you end up with a "frozen" computer, even though with patience
15858 # the test eventually succeeds (with a max line length of 256k).
15859 # Instead, let's just punt: use the minimum linelength reported by
15860 # all of the supported platforms: 8192 (on NT/2K/XP).
15861 lt_cv_sys_max_cmd_len
=8192;
15865 # On MiNT this can take a long time and run out of memory.
15866 lt_cv_sys_max_cmd_len
=8192;
15870 # On AmigaOS with pdksh, this test takes hours, literally.
15871 # So we just punt and use a minimum line length of 8192.
15872 lt_cv_sys_max_cmd_len
=8192;
15875 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
15876 # This has been around since 386BSD, at least. Likely further.
15877 if test -x /sbin
/sysctl
; then
15878 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
15879 elif test -x /usr
/sbin
/sysctl
; then
15880 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
15882 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
15884 # And add a safety zone
15885 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
15886 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
15890 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15891 lt_cv_sys_max_cmd_len
=196608
15895 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15896 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15897 # nice to cause kernel panics so lets avoid the loop below.
15898 # First set a reasonable default.
15899 lt_cv_sys_max_cmd_len
=16384
15901 if test -x /sbin
/sysconfig
; then
15902 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15903 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
15908 lt_cv_sys_max_cmd_len
=102400
15910 sysv5
* | sco5v6
* | sysv4.2uw2
*)
15911 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15912 if test -n "$kargmax"; then
15913 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
15915 lt_cv_sys_max_cmd_len
=32768
15919 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
15920 if test -n "$lt_cv_sys_max_cmd_len"; then
15921 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
15922 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
15924 # Make teststring a little bigger before we do anything with it.
15925 # a 1K string should be a reasonable start.
15926 for i
in 1 2 3 4 5 6 7 8 ; do
15927 teststring
=$teststring$teststring
15929 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
15930 # If test is not a shell built-in, we'll probably end up computing a
15931 # maximum length that is only half of the actual maximum length, but
15933 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15934 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
15935 test $i != 17 # 1/2 MB should be enough
15938 teststring
=$teststring$teststring
15940 # Only check the string length outside the loop.
15941 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
15943 # Add a significant safety factor because C++ compilers can tack on
15944 # massive amounts of additional arguments before passing them to the
15945 # linker. It appears as though 1/2 is a usable value.
15946 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
15953 if test -n $lt_cv_sys_max_cmd_len ; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15955 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15958 $as_echo "none" >&6; }
15960 max_cmd_len
=$lt_cv_sys_max_cmd_len
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15972 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15973 # Try some XSI features
15975 ( _lt_dummy
="a/b/c"
15976 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15978 && eval 'test $(( 1 + 1 )) -eq 2 \
15979 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
15982 $as_echo "$xsi_shell" >&6; }
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
15986 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
15988 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
15990 && lt_shell_append=yes
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
15992 $as_echo "$lt_shell_append" >&6; }
15995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16005 # test EBCDIC or ASCII
16006 case `echo X|tr X '\101'` in
16007 A) # ASCII based system
16008 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16009 lt_SP2NL='tr \040 \012'
16010 lt_NL2SP='tr \015\012 \040\040'
16012 *) # EBCDIC based system
16013 lt_SP2NL='tr \100 \n'
16014 lt_NL2SP='tr \r\n \100\100'
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
16027 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
16028 if ${lt_cv_ld_reload_flag+:} false; then :
16029 $as_echo_n "(cached
) " >&6
16031 lt_cv_ld_reload_flag='-r'
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
16034 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16035 reload_flag=$lt_cv_ld_reload_flag
16036 case $reload_flag in
16038 *) reload_flag=" $reload_flag" ;;
16040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16043 if test "$GCC" = yes; then
16044 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16059 if test -n "$ac_tool_prefix"; then
16060 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
16061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16063 $as_echo_n "checking
for $ac_word...
" >&6; }
16064 if ${ac_cv_prog_OBJDUMP+:} false; then :
16065 $as_echo_n "(cached
) " >&6
16067 if test -n "$OBJDUMP"; then
16068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16087 OBJDUMP=$ac_cv_prog_OBJDUMP
16088 if test -n "$OBJDUMP"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
16090 $as_echo "$OBJDUMP" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16093 $as_echo "no
" >&6; }
16098 if test -z "$ac_cv_prog_OBJDUMP"; then
16099 ac_ct_OBJDUMP=$OBJDUMP
16100 # Extract the first word of "objdump
", so it can be a program name with args.
16101 set dummy objdump; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16103 $as_echo_n "checking
for $ac_word...
" >&6; }
16104 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16105 $as_echo_n "(cached
) " >&6
16107 if test -n "$ac_ct_OBJDUMP"; then
16108 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16114 test -z "$as_dir" && as_dir=.
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16117 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
16118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16127 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16128 if test -n "$ac_ct_OBJDUMP"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
16130 $as_echo "$ac_ct_OBJDUMP" >&6; }
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16133 $as_echo "no
" >&6; }
16136 if test "x
$ac_ct_OBJDUMP" = x; then
16139 case $cross_compiling:$ac_tool_warned in
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16142 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16143 ac_tool_warned=yes ;;
16145 OBJDUMP=$ac_ct_OBJDUMP
16148 OBJDUMP="$ac_cv_prog_OBJDUMP"
16151 test -z "$OBJDUMP" && OBJDUMP=objdump
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
16162 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
16163 if ${lt_cv_deplibs_check_method+:} false; then :
16164 $as_echo_n "(cached
) " >&6
16166 lt_cv_file_magic_cmd='$MAGIC_CMD'
16167 lt_cv_file_magic_test_file=
16168 lt_cv_deplibs_check_method='unknown'
16169 # Need to set the preceding variable on all platforms that support
16170 # interlibrary dependencies.
16171 # 'none' -- dependencies not supported.
16172 # `unknown' -- same as none, but documents that we really don't know.
16173 # 'pass_all' -- all dependencies passed with no checks.
16174 # 'test_compile' -- check by making test program.
16175 # 'file_magic [[regex]]' -- check by looking for files in library path
16176 # which responds to the $file_magic_cmd with a given extended regex.
16177 # If you have `file' or equivalent on your system and you're not sure
16178 # whether `pass_all' will *always* work, you probably want this one.
16182 lt_cv_deplibs_check_method=pass_all
16186 lt_cv_deplibs_check_method=pass_all
16190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16191 lt_cv_file_magic_cmd='/usr/bin/file -L'
16192 lt_cv_file_magic_test_file=/shlib/libc.so
16196 # func_win32_libid is a shell function defined in ltmain.sh
16197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16198 lt_cv_file_magic_cmd='func_win32_libid'
16202 # Base MSYS/MinGW do not provide the 'file' command needed by
16203 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16204 # unless we find 'file', for example because we are cross-compiling.
16205 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16206 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
16207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16208 lt_cv_file_magic_cmd='func_win32_libid'
16210 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16211 lt_cv_file_magic_cmd='$OBJDUMP -f'
16216 # use the weaker test based on 'objdump'. See mingw*.
16217 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16218 lt_cv_file_magic_cmd='$OBJDUMP -f'
16221 darwin* | rhapsody*)
16222 lt_cv_deplibs_check_method=pass_all
16225 freebsd* | dragonfly*)
16226 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16229 # Not sure whether the presence of OpenBSD here was a mistake.
16230 # Let's accept both of them until this is cleared up.
16231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16232 lt_cv_file_magic_cmd=/usr/bin/file
16233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16237 lt_cv_deplibs_check_method=pass_all
16242 lt_cv_deplibs_check_method=pass_all
16246 lt_cv_deplibs_check_method=pass_all
16249 hpux10.20* | hpux11*)
16250 lt_cv_file_magic_cmd=/usr/bin/file
16253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16257 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]'
16258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16262 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16268 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16272 irix5* | irix6* | nonstopux*)
16274 *-32|*"-32 ") libmagic=32-bit;;
16275 *-n32|*"-n32 ") libmagic=N32;;
16276 *-64|*"-64 ") libmagic=64-bit;;
16277 *) libmagic=never-match;;
16279 lt_cv_deplibs_check_method=pass_all
16282 # This must be Linux ELF.
16283 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16284 lt_cv_deplibs_check_method=pass_all
16288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16297 lt_cv_file_magic_cmd=/usr/bin/file
16298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16302 lt_cv_deplibs_check_method=pass_all
16306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
16307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16313 osf3* | osf4* | osf5*)
16314 lt_cv_deplibs_check_method=pass_all
16318 lt_cv_deplibs_check_method=pass_all
16322 lt_cv_deplibs_check_method=pass_all
16325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16326 lt_cv_deplibs_check_method=pass_all
16330 case $host_vendor in
16332 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]'
16333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16336 lt_cv_deplibs_check_method=pass_all
16339 lt_cv_file_magic_cmd='/bin/file'
16340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16343 lt_cv_file_magic_cmd='/bin/file'
16344 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
16345 lt_cv_file_magic_test_file=/lib/libc.so
16348 lt_cv_deplibs_check_method=pass_all
16351 lt_cv_deplibs_check_method=pass_all
16357 lt_cv_deplibs_check_method=pass_all
16360 # Assume VxWorks cross toolchains are built on Linux, possibly
16361 # as canadian for Windows hosts.
16362 lt_cv_deplibs_check_method=pass_all
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
16368 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16369 file_magic_cmd=$lt_cv_file_magic_cmd
16370 deplibs_check_method=$lt_cv_deplibs_check_method
16371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16385 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
16386 for plugin in $plugin_names; do
16387 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16388 if test x$plugin_so = x$plugin; then
16389 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16391 if test x$plugin_so != x$plugin; then
16392 plugin_option="--plugin $plugin_so"
16397 if test -n "$ac_tool_prefix"; then
16398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16399 set dummy ${ac_tool_prefix}ar; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16401 $as_echo_n "checking
for $ac_word...
" >&6; }
16402 if ${ac_cv_prog_AR+:} false; then :
16403 $as_echo_n "(cached
) " >&6
16405 if test -n "$AR"; then
16406 ac_cv_prog_AR="$AR" # Let the user override the test.
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_AR="${ac_tool_prefix}ar"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16426 if test -n "$AR"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
16428 $as_echo "$AR" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16431 $as_echo "no
" >&6; }
16436 if test -z "$ac_cv_prog_AR"; then
16438 # Extract the first word of "ar", so it can be a program name with args.
16439 set dummy ar; ac_word=$2
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16441 $as_echo_n "checking
for $ac_word...
" >&6; }
16442 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16443 $as_echo_n "(cached
) " >&6
16445 if test -n "$ac_ct_AR"; then
16446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449 for as_dir in $PATH
16452 test -z "$as_dir" && as_dir=.
16453 for ac_exec_ext in '' $ac_executable_extensions; do
16454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16455 ac_cv_prog_ac_ct_AR="ar"
16456 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16466 if test -n "$ac_ct_AR"; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
16468 $as_echo "$ac_ct_AR" >&6; }
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16471 $as_echo "no
" >&6; }
16474 if test "x
$ac_ct_AR" = x; then
16477 case $cross_compiling:$ac_tool_warned in
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16480 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16481 ac_tool_warned=yes ;;
16486 AR="$ac_cv_prog_AR"
16489 test -z "$AR" && AR=ar
16490 if test -n "$plugin_option"; then
16491 if $AR --help 2>&1 | grep -q "\
--plugin"; then
16493 $AR $plugin_option rc conftest.a conftest.c
16494 if test "$?
" != 0; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
16496 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
16498 AR="$AR $plugin_option"
16503 test -z "$AR_FLAGS" && AR_FLAGS=cru
16515 if test -n "$ac_tool_prefix"; then
16516 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
16517 set dummy ${ac_tool_prefix}strip; ac_word=$2
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16519 $as_echo_n "checking
for $ac_word...
" >&6; }
16520 if ${ac_cv_prog_STRIP+:} false; then :
16521 $as_echo_n "(cached
) " >&6
16523 if test -n "$STRIP"; then
16524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16543 STRIP=$ac_cv_prog_STRIP
16544 if test -n "$STRIP"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
16546 $as_echo "$STRIP" >&6; }
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16549 $as_echo "no
" >&6; }
16554 if test -z "$ac_cv_prog_STRIP"; then
16556 # Extract the first word of "strip
", so it can be a program name with args.
16557 set dummy strip; ac_word=$2
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16559 $as_echo_n "checking
for $ac_word...
" >&6; }
16560 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16561 $as_echo_n "(cached
) " >&6
16563 if test -n "$ac_ct_STRIP"; then
16564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16567 for as_dir in $PATH
16570 test -z "$as_dir" && as_dir=.
16571 for ac_exec_ext in '' $ac_executable_extensions; do
16572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16573 ac_cv_prog_ac_ct_STRIP="strip
"
16574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16584 if test -n "$ac_ct_STRIP"; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
16586 $as_echo "$ac_ct_STRIP" >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16589 $as_echo "no
" >&6; }
16592 if test "x
$ac_ct_STRIP" = x; then
16595 case $cross_compiling:$ac_tool_warned in
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16598 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16599 ac_tool_warned=yes ;;
16604 STRIP="$ac_cv_prog_STRIP"
16607 test -z "$STRIP" && STRIP=:
16614 if test -n "$ac_tool_prefix"; then
16615 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
16616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16618 $as_echo_n "checking
for $ac_word...
" >&6; }
16619 if ${ac_cv_prog_RANLIB+:} false; then :
16620 $as_echo_n "(cached
) " >&6
16622 if test -n "$RANLIB"; then
16623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16629 test -z "$as_dir" && as_dir=.
16630 for ac_exec_ext in '' $ac_executable_extensions; do
16631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
16633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16642 RANLIB=$ac_cv_prog_RANLIB
16643 if test -n "$RANLIB"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
16645 $as_echo "$RANLIB" >&6; }
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16648 $as_echo "no
" >&6; }
16653 if test -z "$ac_cv_prog_RANLIB"; then
16654 ac_ct_RANLIB=$RANLIB
16655 # Extract the first word of "ranlib
", so it can be a program name with args.
16656 set dummy ranlib; ac_word=$2
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16658 $as_echo_n "checking
for $ac_word...
" >&6; }
16659 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16660 $as_echo_n "(cached
) " >&6
16662 if test -n "$ac_ct_RANLIB"; then
16663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_prog_ac_ct_RANLIB="ranlib
"
16673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16683 if test -n "$ac_ct_RANLIB"; then
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
16685 $as_echo "$ac_ct_RANLIB" >&6; }
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16688 $as_echo "no
" >&6; }
16691 if test "x
$ac_ct_RANLIB" = x; then
16694 case $cross_compiling:$ac_tool_warned in
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16697 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16698 ac_tool_warned=yes ;;
16700 RANLIB=$ac_ct_RANLIB
16703 RANLIB="$ac_cv_prog_RANLIB"
16706 test -z "$RANLIB" && RANLIB=:
16707 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16708 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
16709 RANLIB="$RANLIB $plugin_option"
16718 # Determine commands to create old-style static archives.
16719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16720 old_postinstall_cmds='chmod 644 $oldlib'
16721 old_postuninstall_cmds=
16723 if test -n "$RANLIB"; then
16726 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
16729 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
16732 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
16737 lock_old_archive_extraction=yes ;;
16739 lock_old_archive_extraction=no ;;
16780 # If no C compiler was specified, use CC.
16783 # If no C compiler flags were specified, use CFLAGS.
16784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16786 # Allow CC to be a program name with arguments.
16790 # Check for command to grab the raw symbol name followed by C symbol from nm.
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
16792 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
16793 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16794 $as_echo_n "(cached
) " >&6
16797 # These are sane defaults that work on at least a few old systems.
16798 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16800 # Character class describing NM global symbol codes.
16801 symcode='[BCDEGRST]'
16803 # Regexp to match symbols that can be accessed directly from C.
16804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16806 # Define system-specific variables.
16811 cygwin* | mingw* | pw32* | cegcc*)
16812 symcode='[ABCDGISTW]'
16815 if test "$host_cpu" = ia64; then
16816 symcode='[ABCDEGRST]'
16819 irix* | nonstopux*)
16820 symcode='[BCDEGRST]'
16823 symcode='[BCDEGQRST]'
16834 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16842 # If we're using GNU nm, then use its standard symbol codes.
16843 case `$NM -V 2>&1` in
16844 *GNU* | *'with BFD'*)
16845 symcode='[ABCDGIRSTW]' ;;
16848 # Transform an extracted symbol line into a proper C declaration.
16849 # Some systems (esp. on ia64) link data and code symbols differently,
16850 # so use this general approach.
16851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16853 # Transform an extracted symbol line into symbol name and symbol address
16854 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16855 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'"
16857 # Handle CRLF in mingw tool chain
16861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16865 # Try without a prefix underscore, then with it.
16866 for ac_symprfx in "" "_
"; do
16868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16869 symxfrm="\\1 $ac_symprfx\\2 \\2"
16871 # Write the raw and C identifiers.
16872 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
16873 # Fake it for dumpbin and say T for any non-static function
16874 # and D for any global variable.
16875 # Also find C++ and __fastcall symbols from MSVC++,
16876 # which start with @ or ?.
16877 lt_cv_sys_global_symbol_pipe="$AWK '"\
16878 " {last_section=section; section=\$ 3};"\
16879 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16880 " \$ 0!~/External *\|/{next};"\
16881 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16882 " {if(hide[section]) next};"\
16883 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16884 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16885 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16886 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16887 " ' prfx
=^
$ac_symprfx"
16889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16892 # Check to see that the pipe works correctly.
16896 cat > conftest.$ac_ext <<_LT_EOF
16901 void nm_test_func(void);
16902 void nm_test_func(void){}
16906 int main(){nm_test_var='a';nm_test_func();return(0);}
16909 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16910 (eval $ac_compile) 2>&5
16912 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
16913 test $ac_status = 0; }; then
16914 # Now try to grab the symbols.
16916 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
16917 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16919 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
16920 test $ac_status = 0; } && test -s "$nlist"; then
16921 # Try sorting and uniquifying the output.
16922 if sort "$nlist" | uniq > "$nlist"T; then
16923 mv -f "$nlist"T "$nlist"
16928 # Make sure that we snagged all the symbols we need.
16929 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16930 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16931 cat <<_LT_EOF > conftest.$ac_ext
16937 # Now generate the symbol file.
16938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16940 cat <<_LT_EOF >> conftest.$ac_ext
16942 /* The mapping between symbol names and symbols. */
16947 lt__PROGRAM__LTX_preloaded_symbols[] =
16949 { "@PROGRAM@
", (void *) 0 },
16951 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16952 cat <<\_LT_EOF >> conftest.$ac_ext
16956 /* This works around a problem in FreeBSD linker */
16957 #ifdef FREEBSD_WORKAROUND
16958 static const void *lt_preloaded_setup() {
16959 return lt__PROGRAM__LTX_preloaded_symbols;
16967 # Now try linking the two files.
16968 mv conftest.$ac_objext conftstm.$ac_objext
16969 lt_save_LIBS="$LIBS"
16970 lt_save_CFLAGS="$CFLAGS"
16971 LIBS="conftstm.
$ac_objext"
16972 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16973 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16974 (eval $ac_link) 2>&5
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
16977 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16980 LIBS="$lt_save_LIBS"
16981 CFLAGS="$lt_save_CFLAGS"
16983 echo "cannot
find nm_test_func
in $nlist" >&5
16986 echo "cannot
find nm_test_var
in $nlist" >&5
16989 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
16992 echo "$progname: failed program was
:" >&5
16993 cat conftest.$ac_ext >&5
16995 rm -rf conftest* conftst*
16997 # Do not use the global_symbol_pipe unless it works.
16998 if test "$pipe_works" = yes; then
17001 lt_cv_sys_global_symbol_pipe=
17007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17008 lt_cv_sys_global_symbol_to_cdecl=
17010 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
17012 $as_echo "failed
" >&6; }
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
17015 $as_echo "ok
" >&6; }
17039 # Check whether --enable-libtool-lock was given.
17040 if test "${enable_libtool_lock+set}" = set; then :
17041 enableval=$enable_libtool_lock;
17044 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
17046 # Some flags need to be propagated to the compiler or linker for good
17050 # Find out which ABI we are using.
17051 echo 'int i;' > conftest.$ac_ext
17052 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17053 (eval $ac_compile) 2>&5
17055 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17056 test $ac_status = 0; }; then
17057 case `/usr/bin/file conftest.$ac_objext` in
17059 HPUX_IA64_MODE="32"
17062 HPUX_IA64_MODE="64"
17069 # Find out which ABI we are using.
17070 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
17071 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17072 (eval $ac_compile) 2>&5
17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17075 test $ac_status = 0; }; then
17076 if test "$lt_cv_prog_gnu_ld" = yes; then
17077 case `/usr/bin/file conftest.$ac_objext` in
17079 LD="${LD-ld} -melf32bsmip"
17082 LD="${LD-ld} -melf32bmipn32"
17085 LD="${LD-ld} -melf64bmip"
17089 case `/usr/bin/file conftest.$ac_objext` in
17105 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17106 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17107 # Find out which ABI we are using.
17108 echo 'int i;' > conftest.$ac_ext
17109 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17110 (eval $ac_compile) 2>&5
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17113 test $ac_status = 0; }; then
17114 case `/usr/bin/file conftest.o` in
17117 x86_64-*kfreebsd*-gnu)
17118 LD="${LD-ld} -m elf_i386_fbsd
"
17121 case `/usr/bin/file conftest.o` in
17123 LD="${LD-ld} -m elf32_x86_64
"
17126 LD="${LD-ld} -m elf_i386
"
17130 powerpc64le-*linux*)
17131 LD="${LD-ld} -m elf32lppclinux
"
17134 LD="${LD-ld} -m elf32ppclinux
"
17137 LD="${LD-ld} -m elf_s390
"
17140 LD="${LD-ld} -m elf32_sparc
"
17146 x86_64-*kfreebsd*-gnu)
17147 LD="${LD-ld} -m elf_x86_64_fbsd
"
17150 LD="${LD-ld} -m elf_x86_64
"
17153 LD="${LD-ld} -m elf64lppc
"
17156 LD="${LD-ld} -m elf64ppc
"
17158 s390*-*linux*|s390*-*tpf*)
17159 LD="${LD-ld} -m elf64_s390
"
17162 LD="${LD-ld} -m elf64_sparc
"
17172 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17173 SAVE_CFLAGS="$CFLAGS"
17174 CFLAGS="$CFLAGS -belf"
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
17176 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
17177 if ${lt_cv_cc_needs_belf+:} false; then :
17178 $as_echo_n "(cached
) " >&6
17181 ac_cpp='$CPP $CPPFLAGS'
17182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17197 if ac_fn_c_try_link "$LINENO"; then :
17198 lt_cv_cc_needs_belf=yes
17200 lt_cv_cc_needs_belf=no
17202 rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17205 ac_cpp='$CPP $CPPFLAGS'
17206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
17212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17215 CFLAGS="$SAVE_CFLAGS"
17219 # Find out which ABI we are using.
17220 echo 'int i;' > conftest.$ac_ext
17221 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17222 (eval $ac_compile) 2>&5
17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
17225 test $ac_status = 0; }; then
17226 case `/usr/bin/file conftest.o` in
17228 case $lt_cv_prog_gnu_ld in
17229 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
17231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17243 need_locks="$enable_libtool_lock"
17247 rhapsody* | darwin*)
17248 if test -n "$ac_tool_prefix"; then
17249 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
17250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17252 $as_echo_n "checking
for $ac_word...
" >&6; }
17253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17254 $as_echo_n "(cached
) " >&6
17256 if test -n "$DSYMUTIL"; then
17257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260 for as_dir in $PATH
17263 test -z "$as_dir" && as_dir=.
17264 for ac_exec_ext in '' $ac_executable_extensions; do
17265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
17267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17277 if test -n "$DSYMUTIL"; then
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
17279 $as_echo "$DSYMUTIL" >&6; }
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17282 $as_echo "no
" >&6; }
17287 if test -z "$ac_cv_prog_DSYMUTIL"; then
17288 ac_ct_DSYMUTIL=$DSYMUTIL
17289 # Extract the first word of "dsymutil
", so it can be a program name with args.
17290 set dummy dsymutil; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17292 $as_echo_n "checking
for $ac_word...
" >&6; }
17293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17294 $as_echo_n "(cached
) " >&6
17296 if test -n "$ac_ct_DSYMUTIL"; then
17297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17300 for as_dir in $PATH
17303 test -z "$as_dir" && as_dir=.
17304 for ac_exec_ext in '' $ac_executable_extensions; do
17305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
17307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17317 if test -n "$ac_ct_DSYMUTIL"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
17319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17322 $as_echo "no
" >&6; }
17325 if test "x
$ac_ct_DSYMUTIL" = x; then
17328 case $cross_compiling:$ac_tool_warned in
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17331 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17332 ac_tool_warned=yes ;;
17334 DSYMUTIL=$ac_ct_DSYMUTIL
17337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17340 if test -n "$ac_tool_prefix"; then
17341 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
17342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17344 $as_echo_n "checking
for $ac_word...
" >&6; }
17345 if ${ac_cv_prog_NMEDIT+:} false; then :
17346 $as_echo_n "(cached
) " >&6
17348 if test -n "$NMEDIT"; then
17349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $PATH
17355 test -z "$as_dir" && as_dir=.
17356 for ac_exec_ext in '' $ac_executable_extensions; do
17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
17359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17368 NMEDIT=$ac_cv_prog_NMEDIT
17369 if test -n "$NMEDIT"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
17371 $as_echo "$NMEDIT" >&6; }
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17374 $as_echo "no
" >&6; }
17379 if test -z "$ac_cv_prog_NMEDIT"; then
17380 ac_ct_NMEDIT=$NMEDIT
17381 # Extract the first word of "nmedit
", so it can be a program name with args.
17382 set dummy nmedit; ac_word=$2
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17384 $as_echo_n "checking
for $ac_word...
" >&6; }
17385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17386 $as_echo_n "(cached
) " >&6
17388 if test -n "$ac_ct_NMEDIT"; then
17389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17392 for as_dir in $PATH
17395 test -z "$as_dir" && as_dir=.
17396 for ac_exec_ext in '' $ac_executable_extensions; do
17397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17398 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
17399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17409 if test -n "$ac_ct_NMEDIT"; then
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
17411 $as_echo "$ac_ct_NMEDIT" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17414 $as_echo "no
" >&6; }
17417 if test "x
$ac_ct_NMEDIT" = x; then
17420 case $cross_compiling:$ac_tool_warned in
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17423 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17424 ac_tool_warned=yes ;;
17426 NMEDIT=$ac_ct_NMEDIT
17429 NMEDIT="$ac_cv_prog_NMEDIT"
17432 if test -n "$ac_tool_prefix"; then
17433 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
17434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17436 $as_echo_n "checking
for $ac_word...
" >&6; }
17437 if ${ac_cv_prog_LIPO+:} false; then :
17438 $as_echo_n "(cached
) " >&6
17440 if test -n "$LIPO"; then
17441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
17451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17460 LIPO=$ac_cv_prog_LIPO
17461 if test -n "$LIPO"; then
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
17463 $as_echo "$LIPO" >&6; }
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17466 $as_echo "no
" >&6; }
17471 if test -z "$ac_cv_prog_LIPO"; then
17473 # Extract the first word of "lipo
", so it can be a program name with args.
17474 set dummy lipo; ac_word=$2
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17476 $as_echo_n "checking
for $ac_word...
" >&6; }
17477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17478 $as_echo_n "(cached
) " >&6
17480 if test -n "$ac_ct_LIPO"; then
17481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17484 for as_dir in $PATH
17487 test -z "$as_dir" && as_dir=.
17488 for ac_exec_ext in '' $ac_executable_extensions; do
17489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17490 ac_cv_prog_ac_ct_LIPO="lipo
"
17491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17501 if test -n "$ac_ct_LIPO"; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
17503 $as_echo "$ac_ct_LIPO" >&6; }
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17506 $as_echo "no
" >&6; }
17509 if test "x
$ac_ct_LIPO" = x; then
17512 case $cross_compiling:$ac_tool_warned in
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17515 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17516 ac_tool_warned=yes ;;
17521 LIPO="$ac_cv_prog_LIPO"
17524 if test -n "$ac_tool_prefix"; then
17525 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
17526 set dummy ${ac_tool_prefix}otool; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17528 $as_echo_n "checking
for $ac_word...
" >&6; }
17529 if ${ac_cv_prog_OTOOL+:} false; then :
17530 $as_echo_n "(cached
) " >&6
17532 if test -n "$OTOOL"; then
17533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17539 test -z "$as_dir" && as_dir=.
17540 for ac_exec_ext in '' $ac_executable_extensions; do
17541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
17543 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17552 OTOOL=$ac_cv_prog_OTOOL
17553 if test -n "$OTOOL"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
17555 $as_echo "$OTOOL" >&6; }
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17558 $as_echo "no
" >&6; }
17563 if test -z "$ac_cv_prog_OTOOL"; then
17565 # Extract the first word of "otool
", so it can be a program name with args.
17566 set dummy otool; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17568 $as_echo_n "checking
for $ac_word...
" >&6; }
17569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17570 $as_echo_n "(cached
) " >&6
17572 if test -n "$ac_ct_OTOOL"; then
17573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17576 for as_dir in $PATH
17579 test -z "$as_dir" && as_dir=.
17580 for ac_exec_ext in '' $ac_executable_extensions; do
17581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17582 ac_cv_prog_ac_ct_OTOOL="otool
"
17583 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17593 if test -n "$ac_ct_OTOOL"; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
17595 $as_echo "$ac_ct_OTOOL" >&6; }
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17598 $as_echo "no
" >&6; }
17601 if test "x
$ac_ct_OTOOL" = x; then
17604 case $cross_compiling:$ac_tool_warned in
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17607 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17608 ac_tool_warned=yes ;;
17613 OTOOL="$ac_cv_prog_OTOOL"
17616 if test -n "$ac_tool_prefix"; then
17617 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
17618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17620 $as_echo_n "checking
for $ac_word...
" >&6; }
17621 if ${ac_cv_prog_OTOOL64+:} false; then :
17622 $as_echo_n "(cached
) " >&6
17624 if test -n "$OTOOL64"; then
17625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17628 for as_dir in $PATH
17631 test -z "$as_dir" && as_dir=.
17632 for ac_exec_ext in '' $ac_executable_extensions; do
17633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
17635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17644 OTOOL64=$ac_cv_prog_OTOOL64
17645 if test -n "$OTOOL64"; then
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
17647 $as_echo "$OTOOL64" >&6; }
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17650 $as_echo "no
" >&6; }
17655 if test -z "$ac_cv_prog_OTOOL64"; then
17656 ac_ct_OTOOL64=$OTOOL64
17657 # Extract the first word of "otool64
", so it can be a program name with args.
17658 set dummy otool64; ac_word=$2
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17660 $as_echo_n "checking
for $ac_word...
" >&6; }
17661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17662 $as_echo_n "(cached
) " >&6
17664 if test -n "$ac_ct_OTOOL64"; then
17665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17668 for as_dir in $PATH
17671 test -z "$as_dir" && as_dir=.
17672 for ac_exec_ext in '' $ac_executable_extensions; do
17673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17674 ac_cv_prog_ac_ct_OTOOL64="otool64
"
17675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17685 if test -n "$ac_ct_OTOOL64"; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
17687 $as_echo "$ac_ct_OTOOL64" >&6; }
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17690 $as_echo "no
" >&6; }
17693 if test "x
$ac_ct_OTOOL64" = x; then
17696 case $cross_compiling:$ac_tool_warned in
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
17699 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
17700 ac_tool_warned=yes ;;
17702 OTOOL64=$ac_ct_OTOOL64
17705 OTOOL64="$ac_cv_prog_OTOOL64"
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
17735 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
17736 if ${lt_cv_apple_cc_single_mod+:} false; then :
17737 $as_echo_n "(cached
) " >&6
17739 lt_cv_apple_cc_single_mod=no
17740 if test -z "${LT_MULTI_MODULE}"; then
17741 # By default we will add the -single_module flag. You can override
17742 # by either setting the environment variable LT_MULTI_MODULE
17743 # non-empty at configure time, or by adding -multi_module to the
17745 rm -rf libconftest.dylib*
17746 echo "int foo
(void
){return 1;}" > conftest.c
17747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17748 -dynamiclib -Wl,-single_module conftest.c
" >&5
17749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17753 lt_cv_apple_cc_single_mod=yes
17755 cat conftest.err >&5
17757 rm -rf libconftest.dylib*
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
17762 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
17764 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
17765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17766 $as_echo_n "(cached
) " >&6
17768 lt_cv_ld_exported_symbols_list=no
17769 save_LDFLAGS=$LDFLAGS
17770 echo "_main
" > conftest.sym
17771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17783 if ac_fn_c_try_link "$LINENO"; then :
17784 lt_cv_ld_exported_symbols_list=yes
17786 lt_cv_ld_exported_symbols_list=no
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17790 LDFLAGS="$save_LDFLAGS"
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
17794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
17796 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
17797 if ${lt_cv_ld_force_load+:} false; then :
17798 $as_echo_n "(cached
) " >&6
17800 lt_cv_ld_force_load=no
17801 cat > conftest.c << _LT_EOF
17802 int forced_loaded() { return 2;}
17804 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
17805 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17806 echo "$AR cru libconftest.a conftest.o
" >&5
17807 $AR cru libconftest.a conftest.o 2>&5
17808 cat > conftest.c << _LT_EOF
17809 int main() { return 0;}
17811 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
17812 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17814 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17815 lt_cv_ld_force_load=yes
17817 cat conftest.err >&5
17819 rm -f conftest.err libconftest.a conftest conftest.c
17820 rm -rf conftest.dSYM
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
17824 $as_echo "$lt_cv_ld_force_load" >&6; }
17825 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17826 # build without first building modern cctools / linker.
17827 case $host_cpu-$host_os in
17828 *-rhapsody* | *-darwin1.[012])
17829 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17831 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17833 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17834 # deployment target is forced to an earlier version.
17835 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17836 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17839 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17846 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17847 _lt_dar_single_mod='$single_module'
17849 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17850 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17854 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
17855 _lt_dsymutil='~$DSYMUTIL $lib || :'
17863 for ac_header in dlfcn.h
17865 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
17866 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
17867 cat >>confdefs.h <<_ACEOF
17868 #define HAVE_DLFCN_H 1
17885 enable_win32_dll=no
17888 # Check whether --enable-shared was given.
17889 if test "${enable_shared+set}" = set; then :
17890 enableval=$enable_shared; p=${PACKAGE-default}
17892 yes) enable_shared=yes ;;
17893 no) enable_shared=no ;;
17896 # Look at the argument we got. We use all the common list separators.
17897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17898 for pkg in $enableval; do
17900 if test "X
$pkg" = "X
$p"; then
17919 # Check whether --enable-static was given.
17920 if test "${enable_static+set}" = set; then :
17921 enableval=$enable_static; p=${PACKAGE-default}
17923 yes) enable_static=yes ;;
17924 no) enable_static=no ;;
17927 # Look at the argument we got. We use all the common list separators.
17928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17929 for pkg in $enableval; do
17931 if test "X
$pkg" = "X
$p"; then
17951 # Check whether --with-pic was given.
17952 if test "${with_pic+set}" = set; then :
17953 withval=$with_pic; pic_mode="$withval"
17959 test -z "$pic_mode" && pic_mode=default
17967 # Check whether --enable-fast-install was given.
17968 if test "${enable_fast_install+set}" = set; then :
17969 enableval=$enable_fast_install; p=${PACKAGE-default}
17971 yes) enable_fast_install=yes ;;
17972 no) enable_fast_install=no ;;
17974 enable_fast_install=no
17975 # Look at the argument we got. We use all the common list separators.
17976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17977 for pkg in $enableval; do
17979 if test "X
$pkg" = "X
$p"; then
17980 enable_fast_install=yes
17987 enable_fast_install=yes
18000 # This can be used to rebuild libtool when needed
18001 LIBTOOL_DEPS="$ltmain"
18003 # Always use our own libtool.
18004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18031 test -z "$LN_S" && LN_S="ln -s"
18046 if test -n "${ZSH_VERSION+set}" ; then
18047 setopt NO_GLOB_SUBST
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
18051 $as_echo_n "checking
for objdir...
" >&6; }
18052 if ${lt_cv_objdir+:} false; then :
18053 $as_echo_n "(cached
) " >&6
18055 rm -f .libs 2>/dev/null
18056 mkdir .libs 2>/dev/null
18057 if test -d .libs; then
18060 # MS-DOS does not allow filenames that begin with a dot.
18063 rmdir .libs 2>/dev/null
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
18066 $as_echo "$lt_cv_objdir" >&6; }
18067 objdir=$lt_cv_objdir
18073 cat >>confdefs.h <<_ACEOF
18074 #define LT_OBJDIR "$lt_cv_objdir/"
18082 # AIX sometimes has problems with the GCC collect2 program. For some
18083 # reason, if we set the COLLECT_NAMES environment variable, the problems
18084 # vanish in a puff of smoke.
18085 if test "X
${COLLECT_NAMES+set}" != Xset; then
18087 export COLLECT_NAMES
18092 # Global variables:
18094 can_build_shared=yes
18096 # All known linkers require a `.a' archive for static linking (except MSVC,
18097 # which needs '.lib').
18100 with_gnu_ld="$lt_cv_prog_gnu_ld"
18103 old_CFLAGS="$CFLAGS"
18105 # Set sane defaults for various variables
18106 test -z "$CC" && CC=cc
18107 test -z "$LTCC" && LTCC=$CC
18108 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18109 test -z "$LD" && LD=ld
18110 test -z "$ac_objext" && ac_objext=o
18112 for cc_temp in $compiler""; do
18114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18120 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
18123 # Only perform the check for file, if the check method requires it
18124 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18125 case $deplibs_check_method in
18127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
18129 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
18130 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18131 $as_echo_n "(cached
) " >&6
18135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18138 lt_save_MAGIC_CMD="$MAGIC_CMD"
18139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18140 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18141 for ac_dir in $ac_dummy; do
18143 test -z "$ac_dir" && ac_dir=.
18144 if test -f $ac_dir/${ac_tool_prefix}file; then
18145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18146 if test -n "$file_magic_test_file"; then
18147 case $deplibs_check_method in
18149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18152 $EGREP "$file_magic_regex" > /dev/null; then
18157 *** Warning: the command libtool uses to detect shared libraries,
18158 *** $file_magic_cmd, produces output that libtool cannot recognize.
18159 *** The result is that libtool may fail to recognize shared libraries
18160 *** as such. This will affect the creation of libtool libraries that
18161 *** depend on shared libraries, but programs linked with such libtool
18162 *** libraries will work regardless of this problem. Nevertheless, you
18163 *** may want to report the problem to your system manager and/or to
18164 *** bug-libtool@gnu.org
18174 MAGIC_CMD="$lt_save_MAGIC_CMD"
18179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18180 if test -n "$MAGIC_CMD"; then
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18182 $as_echo "$MAGIC_CMD" >&6; }
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18185 $as_echo "no
" >&6; }
18192 if test -z "$lt_cv_path_MAGIC_CMD"; then
18193 if test -n "$ac_tool_prefix"; then
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
18195 $as_echo_n "checking
for file...
" >&6; }
18196 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18197 $as_echo_n "(cached
) " >&6
18201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18204 lt_save_MAGIC_CMD="$MAGIC_CMD"
18205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18206 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
18207 for ac_dir in $ac_dummy; do
18209 test -z "$ac_dir" && ac_dir=.
18210 if test -f $ac_dir/file; then
18211 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18212 if test -n "$file_magic_test_file"; then
18213 case $deplibs_check_method in
18215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
18216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18218 $EGREP "$file_magic_regex" > /dev/null; then
18223 *** Warning: the command libtool uses to detect shared libraries,
18224 *** $file_magic_cmd, produces output that libtool cannot recognize.
18225 *** The result is that libtool may fail to recognize shared libraries
18226 *** as such. This will affect the creation of libtool libraries that
18227 *** depend on shared libraries, but programs linked with such libtool
18228 *** libraries will work regardless of this problem. Nevertheless, you
18229 *** may want to report the problem to your system manager and/or to
18230 *** bug-libtool@gnu.org
18240 MAGIC_CMD="$lt_save_MAGIC_CMD"
18245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18246 if test -n "$MAGIC_CMD"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
18248 $as_echo "$MAGIC_CMD" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18251 $as_echo "no
" >&6; }
18264 # Use C for the default configuration in the libtool script
18268 ac_cpp='$CPP $CPPFLAGS'
18269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18274 # Source file extension for C test sources.
18277 # Object file extension for compiled C test sources.
18281 # Code to be used in simple compile tests
18282 lt_simple_compile_test_code="int some_variable
= 0;"
18284 # Code to be used in simple link tests
18285 lt_simple_link_test_code='int main(){return(0);}'
18293 # If no C compiler was specified, use CC.
18296 # If no C compiler flags were specified, use CFLAGS.
18297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18299 # Allow CC to be a program name with arguments.
18302 # Save the default compiler, since it gets overwritten when the other
18303 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18304 compiler_DEFAULT=$CC
18306 # save warnings/boilerplate of simple test code
18307 ac_outfile=conftest.$ac_objext
18308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18310 _lt_compiler_boilerplate=`cat conftest.err`
18313 ac_outfile=conftest.$ac_objext
18314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18316 _lt_linker_boilerplate=`cat conftest.err`
18321 ## There is no encapsulation within the following macros, do not change
18322 ## the running order or otherwise move them around unless you know exactly
18323 ## what you are doing...
18324 if test -n "$compiler"; then
18326 lt_prog_compiler_no_builtin_flag=
18328 if test "$GCC" = yes; then
18329 case $cc_basename in
18331 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18333 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
18337 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
18338 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18339 $as_echo_n "(cached
) " >&6
18341 lt_cv_prog_compiler_rtti_exceptions=no
18342 ac_outfile=conftest.$ac_objext
18343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18344 lt_compiler_flag="-fno-rtti -fno-exceptions"
18345 # Insert the option either (1) after the last *FLAGS variable, or
18346 # (2) before a word containing "conftest.
", or (3) at the end.
18347 # Note that $ac_compile itself does not contain backslashes and begins
18348 # with a dollar sign (not a hyphen), so the echo should work correctly.
18349 # The option is referenced via a variable to avoid confusing sed.
18350 lt_compile=`echo "$ac_compile" | $SED \
18351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18353 -e 's:$: $lt_compiler_flag:'`
18354 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18355 (eval "$lt_compile" 2>conftest.err)
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18359 if (exit $ac_status) && test -s "$ac_outfile"; then
18360 # The compiler can only warn and ignore the option if not recognized
18361 # So say no if there are warnings other than the usual output.
18362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18365 lt_cv_prog_compiler_rtti_exceptions=yes
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
18372 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18375 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18387 lt_prog_compiler_wl=
18388 lt_prog_compiler_pic=
18389 lt_prog_compiler_static=
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
18392 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
18394 if test "$GCC" = yes; then
18395 lt_prog_compiler_wl='-Wl,'
18396 lt_prog_compiler_static='-static'
18400 # All AIX code is PIC.
18401 if test "$host_cpu" = ia64; then
18402 # AIX 5 now supports IA64 processor
18403 lt_prog_compiler_static='-Bstatic'
18405 lt_prog_compiler_pic='-fPIC'
18411 # see comment about AmigaOS4 .so support
18412 lt_prog_compiler_pic='-fPIC'
18415 # FIXME: we need at least 68020 code to build shared libraries, but
18416 # adding the `-m68020' flag to GCC prevents building anything better,
18418 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18424 # PIC is the default for these OSes.
18427 mingw* | cygwin* | pw32* | os2* | cegcc*)
18428 # This hack is so that the source file can tell whether it is being
18429 # built for inclusion in a dll (and should export symbols for example).
18430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18431 # (--disable-auto-import) libraries
18432 lt_prog_compiler_pic='-DDLL_EXPORT'
18435 darwin* | rhapsody*)
18436 # PIC is the default on this platform
18437 # Common symbols not allowed in MH_DYLIB files
18438 lt_prog_compiler_pic='-fno-common'
18442 # PIC is the default for Haiku.
18443 # The "-static" flag exists, but is broken.
18444 lt_prog_compiler_static=
18448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18450 # sets the default TLS model and affects inlining.
18456 lt_prog_compiler_pic='-fPIC'
18462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18463 # Instead, we relocate shared libraries at runtime.
18467 # Just because we use GCC doesn't mean we suddenly get shared libraries
18468 # on systems that don't support them.
18469 lt_prog_compiler_can_build_shared=no
18474 # QNX uses GNU C++, but need to define -shared option too, otherwise
18475 # it will coredump.
18476 lt_prog_compiler_pic='-fPIC -shared'
18480 if test -d /usr/nec; then
18481 lt_prog_compiler_pic=-Kconform_pic
18486 lt_prog_compiler_pic='-fPIC'
18490 case $cc_basename in
18491 nvcc*) # Cuda Compiler Driver 2.2
18492 lt_prog_compiler_wl='-Xlinker '
18493 lt_prog_compiler_pic='-Xcompiler -fPIC'
18497 # PORTME Check for flag to pass linker flags through the system compiler.
18500 lt_prog_compiler_wl='-Wl,'
18501 if test "$host_cpu" = ia64; then
18502 # AIX 5 now supports IA64 processor
18503 lt_prog_compiler_static='-Bstatic'
18505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18509 mingw* | cygwin* | pw32* | os2* | cegcc*)
18510 # This hack is so that the source file can tell whether it is being
18511 # built for inclusion in a dll (and should export symbols for example).
18512 lt_prog_compiler_pic='-DDLL_EXPORT'
18515 hpux9* | hpux10* | hpux11*)
18516 lt_prog_compiler_wl='-Wl,'
18517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18518 # not for PA HP-UX.
18524 lt_prog_compiler_pic='+Z'
18527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18528 lt_prog_compiler_static='${wl}-a ${wl}archive'
18531 irix5* | irix6* | nonstopux*)
18532 lt_prog_compiler_wl='-Wl,'
18533 # PIC (with -KPIC) is the default.
18534 lt_prog_compiler_static='-non_shared'
18537 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18538 case $cc_basename in
18539 # old Intel for x86_64 which still supported -KPIC.
18541 lt_prog_compiler_wl='-Wl,'
18542 lt_prog_compiler_pic='-KPIC'
18543 lt_prog_compiler_static='-static'
18545 # icc used to be incompatible with GCC.
18546 # ICC 10 doesn't accept -KPIC any more.
18548 lt_prog_compiler_wl='-Wl,'
18549 lt_prog_compiler_pic='-fPIC'
18550 lt_prog_compiler_static='-static'
18552 # Lahey Fortran 8.1.
18554 lt_prog_compiler_wl='-Wl,'
18555 lt_prog_compiler_pic='--shared'
18556 lt_prog_compiler_static='--static'
18558 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18559 # Portland Group compilers (*not* the Pentium gcc compiler,
18560 # which looks to be a dead project)
18561 lt_prog_compiler_wl='-Wl,'
18562 lt_prog_compiler_pic='-fpic'
18563 lt_prog_compiler_static='-Bstatic'
18566 lt_prog_compiler_wl='-Wl,'
18567 # All Alpha code is PIC.
18568 lt_prog_compiler_static='-non_shared'
18570 xl* | bgxl* | bgf* | mpixl*)
18571 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18572 lt_prog_compiler_wl='-Wl,'
18573 lt_prog_compiler_pic='-qpic'
18574 lt_prog_compiler_static='-qstaticlink'
18577 case `$CC -V 2>&1 | sed 5q` in
18578 *Sun\ F* | *Sun*Fortran*)
18579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18580 lt_prog_compiler_pic='-KPIC'
18581 lt_prog_compiler_static='-Bstatic'
18582 lt_prog_compiler_wl=''
18586 lt_prog_compiler_pic='-KPIC'
18587 lt_prog_compiler_static='-Bstatic'
18588 lt_prog_compiler_wl='-Wl,'
18596 lt_prog_compiler_pic='-KPIC'
18597 lt_prog_compiler_static='-Bstatic'
18601 # QNX uses GNU C++, but need to define -shared option too, otherwise
18602 # it will coredump.
18603 lt_prog_compiler_pic='-fPIC -shared'
18606 osf3* | osf4* | osf5*)
18607 lt_prog_compiler_wl='-Wl,'
18608 # All OSF/1 code is PIC.
18609 lt_prog_compiler_static='-non_shared'
18613 lt_prog_compiler_static='-non_shared'
18617 lt_prog_compiler_pic='-KPIC'
18618 lt_prog_compiler_static='-Bstatic'
18619 case $cc_basename in
18620 f77* | f90* | f95*)
18621 lt_prog_compiler_wl='-Qoption ld ';;
18623 lt_prog_compiler_wl='-Wl,';;
18628 lt_prog_compiler_wl='-Qoption ld '
18629 lt_prog_compiler_pic='-PIC'
18630 lt_prog_compiler_static='-Bstatic'
18633 sysv4 | sysv4.2uw2* | sysv4.3*)
18634 lt_prog_compiler_wl='-Wl,'
18635 lt_prog_compiler_pic='-KPIC'
18636 lt_prog_compiler_static='-Bstatic'
18640 if test -d /usr/nec ;then
18641 lt_prog_compiler_pic='-Kconform_pic'
18642 lt_prog_compiler_static='-Bstatic'
18646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18647 lt_prog_compiler_wl='-Wl,'
18648 lt_prog_compiler_pic='-KPIC'
18649 lt_prog_compiler_static='-Bstatic'
18653 lt_prog_compiler_wl='-Wl,'
18654 lt_prog_compiler_can_build_shared=no
18658 lt_prog_compiler_pic='-pic'
18659 lt_prog_compiler_static='-Bstatic'
18663 lt_prog_compiler_can_build_shared=no
18669 # For platforms which do not support PIC, -DPIC is meaningless:
18671 lt_prog_compiler_pic=
18674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
18678 $as_echo "$lt_prog_compiler_pic" >&6; }
18686 # Check to make sure the PIC flag actually works.
18688 if test -n "$lt_prog_compiler_pic"; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
18690 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
18691 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18692 $as_echo_n "(cached
) " >&6
18694 lt_cv_prog_compiler_pic_works=no
18695 ac_outfile=conftest.$ac_objext
18696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18698 # Insert the option either (1) after the last *FLAGS variable, or
18699 # (2) before a word containing "conftest.
", or (3) at the end.
18700 # Note that $ac_compile itself does not contain backslashes and begins
18701 # with a dollar sign (not a hyphen), so the echo should work correctly.
18702 # The option is referenced via a variable to avoid confusing sed.
18703 lt_compile=`echo "$ac_compile" | $SED \
18704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18706 -e 's:$: $lt_compiler_flag:'`
18707 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18708 (eval "$lt_compile" 2>conftest.err)
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18712 if (exit $ac_status) && test -s "$ac_outfile"; then
18713 # The compiler can only warn and ignore the option if not recognized
18714 # So say no if there are warnings other than the usual output.
18715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18718 lt_cv_prog_compiler_pic_works=yes
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
18725 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18727 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18728 case $lt_prog_compiler_pic in
18730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18733 lt_prog_compiler_pic=
18734 lt_prog_compiler_can_build_shared=no
18745 # Check to make sure the static flag actually works.
18747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
18749 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
18750 if ${lt_cv_prog_compiler_static_works+:} false; then :
18751 $as_echo_n "(cached
) " >&6
18753 lt_cv_prog_compiler_static_works=no
18754 save_LDFLAGS="$LDFLAGS"
18755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18758 # The linker can only warn and ignore the option if not recognized
18759 # So say no if there are warnings
18760 if test -s conftest.err; then
18761 # Append any errors to the config.log.
18762 cat conftest.err 1>&5
18763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18765 if diff conftest.exp conftest.er2 >/dev/null; then
18766 lt_cv_prog_compiler_static_works=yes
18769 lt_cv_prog_compiler_static_works=yes
18773 LDFLAGS="$save_LDFLAGS"
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
18777 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18779 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18782 lt_prog_compiler_static=
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
18792 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
18793 if ${lt_cv_prog_compiler_c_o+:} false; then :
18794 $as_echo_n "(cached
) " >&6
18796 lt_cv_prog_compiler_c_o=no
18797 $RM -r conftest 2>/dev/null
18801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18803 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
18804 # Insert the option either (1) after the last *FLAGS variable, or
18805 # (2) before a word containing "conftest.
", or (3) at the end.
18806 # Note that $ac_compile itself does not contain backslashes and begins
18807 # with a dollar sign (not a hyphen), so the echo should work correctly.
18808 lt_compile=`echo "$ac_compile" | $SED \
18809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18811 -e 's:$: $lt_compiler_flag:'`
18812 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18813 (eval "$lt_compile" 2>out/conftest.err)
18815 cat out/conftest.err >&5
18816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18819 # The compiler can only warn and ignore the option if not recognized
18820 # So say no if there are warnings
18821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18824 lt_cv_prog_compiler_c_o=yes
18829 # SGI C++ compiler will create directory out/ii_files/ for
18830 # template instantiation
18831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18832 $RM out/* && rmdir out
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
18839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
18847 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
18848 if ${lt_cv_prog_compiler_c_o+:} false; then :
18849 $as_echo_n "(cached
) " >&6
18851 lt_cv_prog_compiler_c_o=no
18852 $RM -r conftest 2>/dev/null
18856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18858 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
18859 # Insert the option either (1) after the last *FLAGS variable, or
18860 # (2) before a word containing "conftest.
", or (3) at the end.
18861 # Note that $ac_compile itself does not contain backslashes and begins
18862 # with a dollar sign (not a hyphen), so the echo should work correctly.
18863 lt_compile=`echo "$ac_compile" | $SED \
18864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18866 -e 's:$: $lt_compiler_flag:'`
18867 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
18868 (eval "$lt_compile" 2>out/conftest.err)
18870 cat out/conftest.err >&5
18871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18874 # The compiler can only warn and ignore the option if not recognized
18875 # So say no if there are warnings
18876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18879 lt_cv_prog_compiler_c_o=yes
18884 # SGI C++ compiler will create directory out/ii_files/ for
18885 # template instantiation
18886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18887 $RM out/* && rmdir out
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
18894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18899 hard_links="nottested
"
18900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18901 # do not overwrite the value of need_locks provided by the user
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
18903 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
18906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18908 ln conftest.a conftest.b 2>&5 || hard_links=no
18909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
18911 $as_echo "$hard_links" >&6; }
18912 if test "$hard_links" = no; then
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
18914 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
18927 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
18930 allow_undefined_flag=
18931 always_export_symbols=no
18933 archive_expsym_cmds=
18934 compiler_needs_object=no
18935 enable_shared_with_static_runtimes=no
18936 export_dynamic_flag_spec=
18937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18938 hardcode_automatic=no
18940 hardcode_direct_absolute=no
18941 hardcode_libdir_flag_spec=
18942 hardcode_libdir_flag_spec_ld=
18943 hardcode_libdir_separator=
18944 hardcode_minus_L=no
18945 hardcode_shlibpath_var=unsupported
18947 link_all_deplibs=unknown
18949 module_expsym_cmds=
18950 old_archive_from_new_cmds=
18951 old_archive_from_expsyms_cmds=
18952 thread_safe_flag_spec=
18953 whole_archive_flag_spec=
18954 # include_expsyms should be a list of space-separated symbols to be *always*
18955 # included in the symbol list
18957 # exclude_expsyms can be an extended regexp of symbols to exclude
18958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18960 # as well as any symbol that contains `d'.
18961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18963 # platforms (ab)use it in PIC code, but their linkers get confused if
18964 # the symbol is explicitly referenced. Since portable code cannot
18965 # rely on this symbol name, it's probably fine to never include it in
18966 # preloaded symbol tables.
18967 # Exclude shared library initialization/finalization symbols.
18968 extract_expsyms_cmds=
18971 cygwin* | mingw* | pw32* | cegcc*)
18972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18973 # When not using gcc, we currently assume that we are using
18974 # Microsoft Visual C++.
18975 if test "$GCC" != yes; then
18980 # we just hope/assume this is gcc and not c89 (= MSVC++)
18990 # On some targets, GNU ld is compatible enough with the native linker
18991 # that we're better off using the native interface for both.
18992 lt_use_gnu_ld_interface=no
18993 if test "$with_gnu_ld" = yes; then
18996 # The AIX port of GNU ld has always aspired to compatibility
18997 # with the native linker. However, as the warning in the GNU ld
18998 # block says, versions before 2.19.5* couldn't really create working
18999 # shared libraries, regardless of the interface used.
19000 case `$LD -v 2>&1` in
19001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19005 lt_use_gnu_ld_interface=yes
19010 lt_use_gnu_ld_interface=yes
19015 if test "$lt_use_gnu_ld_interface" = yes; then
19016 # If archive_cmds runs LD, not CC, wlarc should be empty
19019 # Set some defaults for GNU ld with shared library support. These
19020 # are reset later if shared libraries are not supported. Putting them
19021 # here allows them to be overridden if necessary.
19022 runpath_var=LD_RUN_PATH
19023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19024 export_dynamic_flag_spec='${wl}--export-dynamic'
19025 # ancient GNU ld didn't support --whole-archive et. al.
19026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19027 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19029 whole_archive_flag_spec=
19031 supports_anon_versioning=no
19032 case `$LD -v 2>&1` in
19033 *GNU\ gold*) supports_anon_versioning=yes ;;
19034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19037 *\ 2.11.*) ;; # other 2.11 versions
19038 *) supports_anon_versioning=yes ;;
19041 # See if GNU ld supports shared libraries.
19044 # On AIX/PPC, the GNU linker is very broken
19045 if test "$host_cpu" != ia64; then
19049 *** Warning: the GNU linker, at least up to release 2.19, is reported
19050 *** to be unable to reliably create shared libraries on AIX.
19051 *** Therefore, libtool is disabling shared libraries support. If you
19052 *** really care for shared libraries, you may want to install binutils
19053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19054 *** You will then need to restart the configuration process.
19063 # see comment about AmigaOS4 .so support
19064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19065 archive_expsym_cmds=''
19068 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)'
19069 hardcode_libdir_flag_spec
='-L$libdir'
19070 hardcode_minus_L
=yes
19076 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19077 allow_undefined_flag
=unsupported
19078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19079 # support --undefined. This deserves some investigation. FIXME
19080 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086 cygwin
* | mingw
* | pw32
* | cegcc
*)
19087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19088 # as there is no search path for DLLs.
19089 hardcode_libdir_flag_spec
='-L$libdir'
19090 export_dynamic_flag_spec
='${wl}--export-all-symbols'
19091 allow_undefined_flag
=unsupported
19092 always_export_symbols
=no
19093 enable_shared_with_static_runtimes
=yes
19094 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19096 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19097 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19098 # If the export-symbols file already is a .def file (1st line
19099 # is EXPORTS), use it as is; otherwise, prepend...
19100 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19101 cp $export_symbols $output_objdir/$soname.def;
19103 echo EXPORTS > $output_objdir/$soname.def;
19104 cat $export_symbols >> $output_objdir/$soname.def;
19106 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19113 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 link_all_deplibs
=yes
19119 hardcode_shlibpath_var
=no
19120 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19121 export_dynamic_flag_spec
='${wl}-E'
19122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19123 # Instead, shared libraries are loaded at an image base (0x10000000 by
19124 # default) and relocated if they conflict, which is a slow very memory
19125 # consuming and fragmenting process. To avoid this, we pick a random,
19126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19128 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19129 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'
19132 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
19134 if test "$host_os" = linux-dietlibc
; then
19135 case $cc_basename in
19136 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
19139 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
19140 && test "$tmp_diet" = no
19142 tmp_addflag
=' $pic_flag'
19143 tmp_sharedflag
='-shared'
19144 case $cc_basename,$host_cpu in
19145 pgcc
*) # Portland Group C compiler
19146 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'
19147 tmp_addflag
=' $pic_flag'
19149 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
19150 # Portland Group f77 and f90 compilers
19151 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'
19152 tmp_addflag
=' $pic_flag -Mnomain' ;;
19153 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
19154 tmp_addflag
=' -i_dynamic' ;;
19155 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
19156 tmp_addflag
=' -i_dynamic -nofor_main' ;;
19157 ifc
* | ifort
*) # Intel Fortran compiler
19158 tmp_addflag
=' -nofor_main' ;;
19159 lf95
*) # Lahey Fortran 8.1
19160 whole_archive_flag_spec
=
19161 tmp_sharedflag
='--shared' ;;
19162 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19163 tmp_sharedflag
='-qmkshrobj'
19165 nvcc
*) # Cuda Compiler Driver 2.2
19166 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'
19167 compiler_needs_object
=yes
19170 case `$CC -V 2>&1 | sed 5q` in
19171 *Sun\ C
*) # Sun C 5.9
19172 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'
19173 compiler_needs_object
=yes
19174 tmp_sharedflag
='-G' ;;
19175 *Sun\ F
*) # Sun Fortran 8.3
19176 tmp_sharedflag
='-G' ;;
19178 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 if test "x$supports_anon_versioning" = xyes
; then
19181 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19183 echo "local: *; };" >> $output_objdir/$libname.ver~
19184 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19187 case $cc_basename in
19188 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
19189 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19190 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
19191 hardcode_libdir_flag_spec
=
19192 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
19193 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19194 if test "x$supports_anon_versioning" = xyes
; then
19195 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
19196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197 echo "local: *; };" >> $output_objdir/$libname.ver~
19198 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19208 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19209 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19212 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19213 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19218 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
19222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19223 *** create shared libraries on Solaris systems. Therefore, libtool
19224 *** is disabling shared libraries support. We urge you to upgrade GNU
19225 *** binutils to release 2.9.1 or newer. Another option is to modify
19226 *** your PATH or compiler configuration so that the native linker is
19227 *** used, and then restart.
19230 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19231 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19232 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19238 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19239 case `$LD -v 2>&1` in
19240 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
19244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19245 *** reliably create shared libraries on SCO systems. Therefore, libtool
19246 *** is disabling shared libraries support. We urge you to upgrade GNU
19247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19248 *** your PATH or compiler configuration so that the native linker is
19249 *** used, and then restart.
19254 # For security reasons, it is highly recommended that you always
19255 # use absolute paths for naming shared libraries, and exclude the
19256 # DT_RUNPATH tag from executables and libraries. But doing so
19257 # requires that you compile everything twice, which is a pain.
19258 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19259 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19260 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19261 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19270 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19272 hardcode_direct
=yes
19273 hardcode_shlibpath_var
=no
19277 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19278 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19279 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19286 if test "$ld_shlibs" = no
; then
19288 hardcode_libdir_flag_spec
=
19289 export_dynamic_flag_spec
=
19290 whole_archive_flag_spec
=
19293 # PORTME fill in a description of your system's linker (not GNU ld)
19296 allow_undefined_flag
=unsupported
19297 always_export_symbols
=yes
19298 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'
19299 # Note: this linker hardcodes the directories in LIBPATH if there
19300 # are no directories specified by -L.
19301 hardcode_minus_L
=yes
19302 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19303 # Neither direct hardcoding nor static linking is supported with a
19305 hardcode_direct
=unsupported
19310 if test "$host_cpu" = ia64
; then
19311 # On IA64, the linker does run time linking by default, so we don't
19312 # have to do anything special.
19313 aix_use_runtimelinking
=no
19314 exp_sym_flag
='-Bexport'
19317 # If we're using GNU nm, then we don't want the "-C" option.
19318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19319 # Also, AIX nm treats weak defined symbols like other global
19320 # defined symbols, whereas GNU nm marks them as "W".
19321 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19322 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'
19324 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'
19326 aix_use_runtimelinking
=no
19328 # Test if we are trying to use run time linking or normal
19329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19330 # need to do runtime linking.
19331 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19332 for ld_flag
in $LDFLAGS; do
19333 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
19334 aix_use_runtimelinking
=yes
19341 exp_sym_flag
='-bexport'
19342 no_entry_flag
='-bnoentry'
19345 # When large executables or shared objects are built, AIX ld can
19346 # have problems creating the table of contents. If linking a library
19347 # or program results in "error TOC overflow" add -mminimal-toc to
19348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19352 hardcode_direct
=yes
19353 hardcode_direct_absolute
=yes
19354 hardcode_libdir_separator
=':'
19355 link_all_deplibs
=yes
19356 file_list_spec
='${wl}-f,'
19358 if test "$GCC" = yes; then
19359 case $host_os in aix4.
[012]|aix4.
[012].
*)
19360 # We only want to do this on AIX 4.2 and lower, the check
19361 # below for broken collect2 doesn't work under 4.3+
19362 collect2name
=`${CC} -print-prog-name=collect2`
19363 if test -f "$collect2name" &&
19364 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19366 # We have reworked collect2
19369 # We have old collect2
19370 hardcode_direct
=unsupported
19371 # It fails to find uninstalled libraries when the uninstalled
19372 # path is not listed in the libpath. Setting hardcode_minus_L
19373 # to unsupported forces relinking
19374 hardcode_minus_L
=yes
19375 hardcode_libdir_flag_spec
='-L$libdir'
19376 hardcode_libdir_separator
=
19380 shared_flag
='-shared'
19381 if test "$aix_use_runtimelinking" = yes; then
19382 shared_flag
="$shared_flag "'${wl}-G'
19386 if test "$host_cpu" = ia64
; then
19387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19388 # chokes on -Wl,-G. The following line is correct:
19391 if test "$aix_use_runtimelinking" = yes; then
19392 shared_flag
='${wl}-G'
19394 shared_flag
='${wl}-bM:SRE'
19399 export_dynamic_flag_spec
='${wl}-bexpall'
19400 # It seems that -bexpall does not export symbols beginning with
19401 # underscore (_), so it is better to generate a list of symbols to export.
19402 always_export_symbols
=yes
19403 if test "$aix_use_runtimelinking" = yes; then
19404 # Warning - without using the other runtime loading flags (-brtl),
19405 # -berok will link without error, but may produce a broken library.
19406 allow_undefined_flag
='-berok'
19407 # Determine the default libpath from the value encoded in an
19408 # empty executable.
19409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19420 if ac_fn_c_try_link
"$LINENO"; then :
19422 lt_aix_libpath_sed
='
19423 /Import File Strings/,/^$/ {
19429 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19430 # Check for a 64-bit object if we didn't find anything.
19431 if test -z "$aix_libpath"; then
19432 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19435 rm -f core conftest.err conftest.
$ac_objext \
19436 conftest
$ac_exeext conftest.
$ac_ext
19437 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19439 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19440 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"
19442 if test "$host_cpu" = ia64
; then
19443 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
19444 allow_undefined_flag
="-z nodefs"
19445 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"
19447 # Determine the default libpath from the value encoded in an
19448 # empty executable.
19449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19450 /* end confdefs.h. */
19460 if ac_fn_c_try_link
"$LINENO"; then :
19462 lt_aix_libpath_sed
='
19463 /Import File Strings/,/^$/ {
19469 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19470 # Check for a 64-bit object if we didn't find anything.
19471 if test -z "$aix_libpath"; then
19472 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19475 rm -f core conftest.err conftest.
$ac_objext \
19476 conftest
$ac_exeext conftest.
$ac_ext
19477 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19479 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
19480 # Warning - without using the other run time loading flags,
19481 # -berok will link without error, but may produce a broken library.
19482 no_undefined_flag
=' ${wl}-bernotok'
19483 allow_undefined_flag
=' ${wl}-berok'
19484 if test "$with_gnu_ld" = yes; then
19485 # We only use this code for GNU lds that support --whole-archive.
19486 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19488 # Exported symbols can be pulled into shared objects from archives
19489 whole_archive_flag_spec
='$convenience'
19491 archive_cmds_need_lc
=yes
19492 # This is similar to how AIX traditionally builds its shared libraries.
19493 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'
19501 # see comment about AmigaOS4 .so support
19502 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19503 archive_expsym_cmds
=''
19506 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)'
19507 hardcode_libdir_flag_spec
='-L$libdir'
19508 hardcode_minus_L
=yes
19514 export_dynamic_flag_spec
=-rdynamic
19517 cygwin
* | mingw
* | pw32
* | cegcc
*)
19518 # When not using gcc, we currently assume that we are using
19519 # Microsoft Visual C++.
19520 # hardcode_libdir_flag_spec is actually meaningless, as there is
19521 # no search path for DLLs.
19522 hardcode_libdir_flag_spec
=' '
19523 allow_undefined_flag
=unsupported
19524 # Tell ltmain to make .lib files, not .a files.
19526 # Tell ltmain to make .dll files, not .so files.
19528 # FIXME: Setting linknames here is a bad hack.
19529 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19530 # The linker will automatically build a .lib file if we build a DLL.
19531 old_archive_from_new_cmds
='true'
19532 # FIXME: Should let the user specify the lib program.
19533 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19534 fix_srcfile_path
='`cygpath -w "$srcfile"`'
19535 enable_shared_with_static_runtimes
=yes
19538 darwin
* | rhapsody
*)
19542 # Publish an arg to allow the user to select that Darwin host (and target)
19543 # libraries should be given install-names like @rpath/libfoo.dylib. This
19544 # requires that the user of the library then adds an 'rpath' to the DSO that
19546 # NOTE: there are defaults below, for systems that support rpaths. The person
19547 # configuring can override the defaults for any system version that supports
19548 # them - they are, however, forced off for system versions without support.
19549 # Check whether --enable-darwin-at-rpath was given.
19550 if test "${enable_darwin_at_rpath+set}" = set; then :
19551 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19552 # This is not supported before macOS 10.5 / Darwin9.
19553 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19554 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19556 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19557 enable_darwin_at_rpath
=no
19562 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19563 # As above, before 10.5 / Darwin9 this does not work.
19564 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
19565 enable_darwin_at_rpath
=no
19568 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19569 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19570 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19571 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19573 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19574 enable_darwin_at_rpath
=yes
19576 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19577 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19584 archive_cmds_need_lc
=no
19586 hardcode_automatic
=yes
19587 hardcode_shlibpath_var
=unsupported
19588 if test "$lt_cv_ld_force_load" = "yes"; then
19589 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\"`'
19591 whole_archive_flag_spec
=''
19593 link_all_deplibs
=yes
19594 allow_undefined_flag
="$_lt_dar_allow_undefined"
19595 case $cc_basename in
19596 ifort
*) _lt_dar_can_shared
=yes ;;
19597 *) _lt_dar_can_shared
=$GCC ;;
19599 if test "$_lt_dar_can_shared" = "yes"; then
19600 output_verbose_link_cmd
=func_echo_all
19601 _lt_install_name
='\$rpath/\$soname'
19602 if test "x$enable_darwin_at_rpath" = "xyes"; then
19603 _lt_install_name
='@rpath/\$soname'
19605 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19606 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19607 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}"
19608 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}"
19617 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19618 hardcode_libdir_flag_spec
='-L$libdir'
19619 hardcode_shlibpath_var
=no
19622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19623 # support. Future versions do this automatically, but an explicit c++rt0.o
19624 # does not break anything, and helps significantly (at the cost of a little
19627 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19628 hardcode_libdir_flag_spec
='-R$libdir'
19629 hardcode_direct
=yes
19630 hardcode_shlibpath_var
=no
19633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19635 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19636 hardcode_direct
=yes
19637 hardcode_minus_L
=yes
19638 hardcode_shlibpath_var
=no
19641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19642 freebsd
* | dragonfly
*)
19643 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19644 hardcode_libdir_flag_spec
='-R$libdir'
19645 hardcode_direct
=yes
19646 hardcode_shlibpath_var
=no
19650 if test "$GCC" = yes; then
19651 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'
19653 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'
19655 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19656 hardcode_libdir_separator
=:
19657 hardcode_direct
=yes
19659 # hardcode_minus_L: Not really in the search PATH,
19660 # but as the default location of the library.
19661 hardcode_minus_L
=yes
19662 export_dynamic_flag_spec
='${wl}-E'
19666 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19667 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19669 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19671 if test "$with_gnu_ld" = no
; then
19672 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19673 hardcode_libdir_flag_spec_ld
='+b $libdir'
19674 hardcode_libdir_separator
=:
19675 hardcode_direct
=yes
19676 hardcode_direct_absolute
=yes
19677 export_dynamic_flag_spec
='${wl}-E'
19678 # hardcode_minus_L: Not really in the search PATH,
19679 # but as the default location of the library.
19680 hardcode_minus_L
=yes
19685 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
19688 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19691 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19694 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19700 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19703 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19707 # Older versions of the 11.00 compiler do not understand -b yet
19708 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19710 $as_echo_n "checking if $CC understands -b... " >&6; }
19711 if ${lt_cv_prog_compiler__b+:} false
; then :
19712 $as_echo_n "(cached) " >&6
19714 lt_cv_prog_compiler__b
=no
19715 save_LDFLAGS
="$LDFLAGS"
19716 LDFLAGS
="$LDFLAGS -b"
19717 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19718 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19719 # The linker can only warn and ignore the option if not recognized
19720 # So say no if there are warnings
19721 if test -s conftest.err
; then
19722 # Append any errors to the config.log.
19723 cat conftest.err
1>&5
19724 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19725 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19726 if diff conftest.exp conftest.er2
>/dev
/null
; then
19727 lt_cv_prog_compiler__b
=yes
19730 lt_cv_prog_compiler__b
=yes
19734 LDFLAGS
="$save_LDFLAGS"
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19738 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19740 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
19741 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19743 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19749 if test "$with_gnu_ld" = no
; then
19750 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
19751 hardcode_libdir_separator
=:
19756 hardcode_shlibpath_var
=no
19759 hardcode_direct
=yes
19760 hardcode_direct_absolute
=yes
19761 export_dynamic_flag_spec
='${wl}-E'
19763 # hardcode_minus_L: Not really in the search PATH,
19764 # but as the default location of the library.
19765 hardcode_minus_L
=yes
19771 irix5
* | irix6
* | nonstopux
*)
19772 if test "$GCC" = yes; then
19773 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'
19774 # Try to use the -exported_symbol ld option, if it does not
19775 # work, assume that -exports_file does not work either and
19776 # implicitly export all symbols.
19777 save_LDFLAGS
="$LDFLAGS"
19778 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19780 /* end confdefs.h. */
19783 if ac_fn_c_try_link
"$LINENO"; then :
19784 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'
19787 rm -f core conftest.err conftest.
$ac_objext \
19788 conftest
$ac_exeext conftest.
$ac_ext
19789 LDFLAGS
="$save_LDFLAGS"
19791 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'
19792 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'
19794 archive_cmds_need_lc
='no'
19795 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19796 hardcode_libdir_separator
=:
19798 link_all_deplibs
=yes
19802 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19803 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19805 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19807 hardcode_libdir_flag_spec
='-R$libdir'
19808 hardcode_direct
=yes
19809 hardcode_shlibpath_var
=no
19813 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_direct
=yes
19815 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19816 hardcode_libdir_separator
=:
19817 hardcode_shlibpath_var
=no
19824 if test -f /usr
/libexec
/ld.so
; then
19825 hardcode_direct
=yes
19826 hardcode_shlibpath_var
=no
19827 hardcode_direct_absolute
=yes
19828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19829 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19830 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19831 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19832 export_dynamic_flag_spec
='${wl}-E'
19835 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19836 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19837 hardcode_libdir_flag_spec
='-R$libdir'
19840 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19841 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
19851 hardcode_libdir_flag_spec
='-L$libdir'
19852 hardcode_minus_L
=yes
19853 allow_undefined_flag
=unsupported
19854 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'
19855 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19859 if test "$GCC" = yes; then
19860 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19861 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'
19863 allow_undefined_flag
=' -expect_unresolved \*'
19864 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'
19866 archive_cmds_need_lc
='no'
19867 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19868 hardcode_libdir_separator
=:
19871 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
19872 if test "$GCC" = yes; then
19873 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
19874 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'
19875 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
19877 allow_undefined_flag
=' -expect_unresolved \*'
19878 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'
19879 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~
19880 $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'
19882 # Both c and cxx compiler support -rpath directly
19883 hardcode_libdir_flag_spec
='-rpath $libdir'
19885 archive_cmds_need_lc
='no'
19886 hardcode_libdir_separator
=:
19890 no_undefined_flag
=' -z defs'
19891 if test "$GCC" = yes; then
19893 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19894 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19895 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19897 case `$CC -V 2>&1` in
19900 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19901 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19906 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19907 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19908 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19912 hardcode_libdir_flag_spec
='-R$libdir'
19913 hardcode_shlibpath_var
=no
19915 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19917 # The compiler driver will combine and reorder linker options,
19918 # but understands `-z linker_flag'. GCC discards it without `$wl',
19919 # but is careful enough not to reorder.
19920 # Supported since Solaris 2.6 (maybe 2.5.1?)
19921 if test "$GCC" = yes; then
19922 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19924 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
19928 link_all_deplibs
=yes
19932 if test "x$host_vendor" = xsequent
; then
19933 # Use $CC to link under sequent, because it throws in some extra .o
19934 # files that make .init and .fini sections work.
19935 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19937 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19939 hardcode_libdir_flag_spec
='-L$libdir'
19940 hardcode_direct
=yes
19941 hardcode_minus_L
=yes
19942 hardcode_shlibpath_var
=no
19946 case $host_vendor in
19948 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19949 hardcode_direct
=yes # is this really true???
19952 ## LD is ld it makes a PLAMLIB
19953 ## CC just makes a GrossModule.
19954 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19955 reload_cmds
='$CC -r -o $output$reload_objs'
19959 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19960 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
19963 runpath_var
='LD_RUN_PATH'
19964 hardcode_shlibpath_var
=no
19968 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969 hardcode_shlibpath_var
=no
19970 export_dynamic_flag_spec
='-Bexport'
19974 if test -d /usr
/nec
; then
19975 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976 hardcode_shlibpath_var
=no
19977 runpath_var
=LD_RUN_PATH
19978 hardcode_runpath_var
=yes
19983 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19984 no_undefined_flag
='${wl}-z,text'
19985 archive_cmds_need_lc
=no
19986 hardcode_shlibpath_var
=no
19987 runpath_var
='LD_RUN_PATH'
19989 if test "$GCC" = yes; then
19990 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19991 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19993 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19994 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19998 sysv5
* | sco3.2v5
* | sco5v6
*)
19999 # Note: We can NOT use -z defs as we might desire, because we do not
20000 # link with -lc, and that would cause any symbols used from libc to
20001 # always be unresolved, which means just about no library would
20002 # ever link correctly. If we're not using GNU ld we use -z text
20003 # though, which does catch some bad symbols but isn't as heavy-handed
20005 no_undefined_flag
='${wl}-z,text'
20006 allow_undefined_flag
='${wl}-z,nodefs'
20007 archive_cmds_need_lc
=no
20008 hardcode_shlibpath_var
=no
20009 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
20010 hardcode_libdir_separator
=':'
20011 link_all_deplibs
=yes
20012 export_dynamic_flag_spec
='${wl}-Bexport'
20013 runpath_var
='LD_RUN_PATH'
20015 if test "$GCC" = yes; then
20016 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20017 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20019 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20020 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20026 hardcode_libdir_flag_spec
='-L$libdir'
20027 hardcode_shlibpath_var
=no
20035 if test x
$host_vendor = xsni
; then
20037 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
20038 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20045 $as_echo "$ld_shlibs" >&6; }
20046 test "$ld_shlibs" = no
&& can_build_shared
=no
20048 with_gnu_ld
=$with_gnu_ld
20065 # Do we need to explicitly link libc?
20067 case "x$archive_cmds_need_lc" in
20069 # Assume -lc should be added
20070 archive_cmds_need_lc
=yes
20072 if test "$enable_shared" = yes && test "$GCC" = yes; then
20073 case $archive_cmds in
20075 # FIXME: we may have to deal with multi-command sequences.
20078 # Test whether the compiler implicitly links with -lc since on some
20079 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20080 # to ld, don't add -lc before -lgcc.
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20083 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
20084 $as_echo_n "(cached) " >&6
20087 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20090 (eval $ac_compile) 2>&5
20092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20093 test $ac_status = 0; } 2>conftest.err
; then
20096 libobjs
=conftest.
$ac_objext
20098 wl
=$lt_prog_compiler_wl
20099 pic_flag
=$lt_prog_compiler_pic
20105 lt_save_allow_undefined_flag
=$allow_undefined_flag
20106 allow_undefined_flag
=
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20108 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; }
20113 lt_cv_archive_cmds_need_lc
=no
20115 lt_cv_archive_cmds_need_lc
=yes
20117 allow_undefined_flag
=$lt_save_allow_undefined_flag
20119 cat conftest.err
1>&5
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20125 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20126 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20292 if test "$GCC" = yes; then
20294 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
20295 *) lt_awk_arg
="/^libraries:/" ;;
20298 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
20299 *) lt_sed_strip_eq
="s,=/,/,g" ;;
20301 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20302 case $lt_search_path_spec in
20304 # if the path contains ";" then we assume it to be the separator
20305 # otherwise default to the standard path separator (i.e. ":") - it is
20306 # assumed that no part of a normal pathname contains ";" but that should
20307 # okay in the real world where ";" in dirpaths is itself problematic.
20308 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20311 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20314 # Ok, now we have the path, separated by spaces, we can step through it
20315 # and add multilib dir if necessary.
20316 lt_tmp_lt_search_path_spec
=
20317 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20318 for lt_sys_path
in $lt_search_path_spec; do
20319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20320 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20322 test -d "$lt_sys_path" && \
20323 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
20326 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20327 BEGIN {RS=" "; FS="/|\n";} {
20330 for (lt_i = NF; lt_i > 0; lt_i--) {
20331 if ($lt_i != "" && $lt_i != ".") {
20332 if ($lt_i == "..") {
20335 if (lt_count == 0) {
20336 lt_foo="/" $lt_i lt_foo;
20343 if (lt_foo != "") { lt_freq[lt_foo]++; }
20344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20346 # AWK program above erroneously prepends '/' to C:/dos/paths
20349 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
20350 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20352 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20354 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
20356 library_names_spec
=
20357 libname_spec
='lib$name'
20361 postuninstall_cmds
=
20365 shlibpath_overrides_runpath
=unknown
20367 dynamic_linker
="$host_os ld.so"
20368 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20369 need_lib_prefix
=unknown
20370 hardcode_into_libs
=no
20372 # when you set need_version to no, make sure it does not cause -set_version
20373 # flags to be left without arguments
20374 need_version
=unknown
20379 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20380 shlibpath_var
=LIBPATH
20382 # AIX 3 has no versioning support, so we append a major version to the name.
20383 soname_spec
='${libname}${release}${shared_ext}$major'
20390 hardcode_into_libs
=yes
20391 if test "$host_cpu" = ia64
; then
20392 # AIX 5 supports IA64
20393 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20394 shlibpath_var
=LD_LIBRARY_PATH
20396 # With GCC up to 2.95.x, collect2 would create an import file
20397 # for dependence libraries. The import file would start with
20398 # the line `#! .'. This would cause the generated library to
20399 # depend on `.', always an invalid library. This was fixed in
20400 # development snapshots of GCC prior to 3.0.
20402 aix4 | aix4.
[01] | aix4.
[01].
*)
20403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20405 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20408 can_build_shared
=no
20412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20413 # soname into executable. Probably we can add versioning support to
20414 # collect2, so additional links can be useful in future.
20415 if test "$aix_use_runtimelinking" = yes; then
20416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20417 # instead of lib<name>.a to let people know that these are not
20418 # typical AIX shared libraries.
20419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 # We preserve .a as extension for shared libraries through AIX4.2
20422 # and later when we are not doing run time linking.
20423 library_names_spec
='${libname}${release}.a $libname.a'
20424 soname_spec
='${libname}${release}${shared_ext}$major'
20426 shlibpath_var
=LIBPATH
20433 # Since July 2007 AmigaOS4 officially supports .so libraries.
20434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 library_names_spec
='$libname.ixlibrary $libname.a'
20439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20440 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'
20446 library_names_spec
='${libname}${shared_ext}'
20447 dynamic_linker
="$host_os ld.so"
20448 shlibpath_var
=LIBRARY_PATH
20454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec
='${libname}${release}${shared_ext}$major'
20456 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20457 shlibpath_var
=LD_LIBRARY_PATH
20458 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20459 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20460 # the default ld.so.conf also contains /usr/contrib/lib and
20461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20462 # libtool to hard-code these into programs
20465 cygwin
* | mingw
* | pw32
* | cegcc
*)
20466 version_type
=windows
20471 case $GCC,$host_os in
20472 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20473 library_names_spec
='$libname.dll.a'
20474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20475 postinstall_cmds
='base_file=`basename \${file}`~
20476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20477 dldir=$destdir/`dirname \$dlpath`~
20478 test -d \$dldir || mkdir -p \$dldir~
20479 $install_prog $dir/$dlname \$dldir/$dlname~
20480 chmod a+x \$dldir/$dlname~
20481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20484 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20485 dlpath=$dir/\$dldll~
20487 shlibpath_overrides_runpath
=yes
20491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20492 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20494 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
20497 # MinGW DLLs use traditional 'lib' prefix
20498 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20501 # pw32 DLLs use 'pw' prefix rather than 'lib'
20502 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20508 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20511 dynamic_linker
='Win32 ld.exe'
20512 # FIXME: first we should search . and the directory the executable is in
20516 darwin
* | rhapsody
*)
20517 dynamic_linker
="$host_os dyld"
20518 version_type
=darwin
20521 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20522 soname_spec
='${libname}${release}${major}$shared_ext'
20523 shlibpath_overrides_runpath
=yes
20524 shlibpath_var
=DYLD_LIBRARY_PATH
20525 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20527 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
20528 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20536 soname_spec
='${libname}${release}${shared_ext}$major'
20537 shlibpath_var
=LD_LIBRARY_PATH
20540 freebsd
* | dragonfly
*)
20541 # DragonFly does not have aout. When/if they implement a new
20542 # versioning mechanism, adjust this.
20543 if test -x /usr
/bin
/objformat
; then
20544 objformat
=`/usr/bin/objformat`
20547 freebsd
[23].
*) objformat
=aout
;;
20548 *) objformat
=elf
;;
20551 version_type
=freebsd-
$objformat
20552 case $version_type in
20554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20559 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20563 shlibpath_var
=LD_LIBRARY_PATH
20566 shlibpath_overrides_runpath
=yes
20568 freebsd3.
[01]* | freebsdelf3.
[01]*)
20569 shlibpath_overrides_runpath
=yes
20570 hardcode_into_libs
=yes
20572 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20573 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20574 shlibpath_overrides_runpath
=no
20575 hardcode_into_libs
=yes
20577 *) # from 4.6 on, and DragonFly
20578 shlibpath_overrides_runpath
=yes
20579 hardcode_into_libs
=yes
20588 dynamic_linker
="$host_os runtime_loader"
20589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20590 soname_spec
='${libname}${release}${shared_ext}$major'
20591 shlibpath_var
=LIBRARY_PATH
20592 shlibpath_overrides_runpath
=yes
20593 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20594 hardcode_into_libs
=yes
20597 hpux9
* | hpux10
* | hpux11
*)
20598 # Give a soname corresponding to the major version so that dld.sl refuses to
20599 # link against other versions.
20606 hardcode_into_libs
=yes
20607 dynamic_linker
="$host_os dld.so"
20608 shlibpath_var
=LD_LIBRARY_PATH
20609 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 soname_spec
='${libname}${release}${shared_ext}$major'
20612 if test "X$HPUX_IA64_MODE" = X32
; then
20613 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20615 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20617 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20621 hardcode_into_libs
=yes
20622 dynamic_linker
="$host_os dld.sl"
20623 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20624 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 soname_spec
='${libname}${release}${shared_ext}$major'
20627 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20628 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20632 dynamic_linker
="$host_os dld.sl"
20633 shlibpath_var
=SHLIB_PATH
20634 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636 soname_spec
='${libname}${release}${shared_ext}$major'
20639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20640 postinstall_cmds
='chmod 555 $lib'
20641 # or fails outright, so override atomically:
20642 install_override_mode
=555
20649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20650 soname_spec
='${libname}${release}${shared_ext}$major'
20651 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20652 shlibpath_var
=LD_LIBRARY_PATH
20653 shlibpath_overrides_runpath
=no
20654 hardcode_into_libs
=yes
20657 irix5
* | irix6
* | nonstopux
*)
20659 nonstopux
*) version_type
=nonstopux
;;
20661 if test "$lt_cv_prog_gnu_ld" = yes; then
20669 soname_spec
='${libname}${release}${shared_ext}$major'
20670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20672 irix5
* | nonstopux
*)
20673 libsuff
= shlibsuff
=
20676 case $LD in # libtool.m4 will add one of these switches to LD
20677 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20678 libsuff
= shlibsuff
= libmagic
=32-bit;;
20679 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20680 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20681 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20682 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20683 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20687 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20688 shlibpath_overrides_runpath
=no
20689 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20690 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20691 hardcode_into_libs
=yes
20694 # No shared lib support for Linux oldld, aout, or coff.
20695 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20699 # This must be Linux ELF.
20701 # uclinux* changes (here and below) have been submitted to the libtool
20702 # project, but have not yet been accepted: they are GCC-local changes
20703 # for the time being. (See
20704 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20705 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
20709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 soname_spec
='${libname}${release}${shared_ext}$major'
20711 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20712 shlibpath_var
=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath
=no
20715 # Some binutils ld are patched to set DT_RUNPATH
20716 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
20717 $as_echo_n "(cached) " >&6
20719 lt_cv_shlibpath_overrides_runpath
=no
20720 save_LDFLAGS
=$LDFLAGS
20721 save_libdir
=$libdir
20722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20735 if ac_fn_c_try_link
"$LINENO"; then :
20736 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20737 lt_cv_shlibpath_overrides_runpath
=yes
20740 rm -f core conftest.err conftest.
$ac_objext \
20741 conftest
$ac_exeext conftest.
$ac_ext
20742 LDFLAGS
=$save_LDFLAGS
20743 libdir
=$save_libdir
20747 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20749 # This implies no fast_install, which is unacceptable.
20750 # Some rework will be needed to allow for fast_install
20751 # before this can be enabled.
20752 hardcode_into_libs
=yes
20754 # Append ld.so.conf contents to the search path
20755 if test -f /etc
/ld.so.conf
; then
20756 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' ' '`
20757 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20760 # We used to test for /lib/ld.so.1 and disable shared libraries on
20761 # powerpc, because MkLinux only supported shared libraries with the
20762 # GNU dynamic linker. Since this was broken with cross compilers,
20763 # most powerpc-linux boxes support dynamic linking these days and
20764 # people can always --disable-shared, the test was removed, and we
20765 # assume the GNU/Linux dynamic linker is in use.
20766 dynamic_linker
='GNU/Linux ld.so'
20773 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20775 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20776 dynamic_linker
='NetBSD (a.out) ld.so'
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20779 soname_spec
='${libname}${release}${shared_ext}$major'
20780 dynamic_linker
='NetBSD ld.elf_so'
20782 shlibpath_var
=LD_LIBRARY_PATH
20783 shlibpath_overrides_runpath
=yes
20784 hardcode_into_libs
=yes
20789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 shlibpath_var
=LD_LIBRARY_PATH
20791 shlibpath_overrides_runpath
=yes
20798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20799 soname_spec
='${libname}${release}${shared_ext}$major'
20800 shlibpath_var
=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath
=no
20802 hardcode_into_libs
=yes
20803 dynamic_linker
='ldqnx.so'
20808 sys_lib_dlsearch_path_spec
="/usr/lib"
20810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20812 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20813 *) need_version
=no
;;
20815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20817 shlibpath_var
=LD_LIBRARY_PATH
20818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20820 openbsd2.
[89] | openbsd2.
[89].
*)
20821 shlibpath_overrides_runpath
=no
20824 shlibpath_overrides_runpath
=yes
20828 shlibpath_overrides_runpath
=yes
20833 libname_spec
='$name'
20836 library_names_spec
='$libname${shared_ext} $libname.a'
20837 dynamic_linker
='OS/2 ld.exe'
20838 shlibpath_var
=LIBPATH
20841 osf3
* | osf4
* | osf5
*)
20845 soname_spec
='${libname}${release}${shared_ext}$major'
20846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 shlibpath_var
=LD_LIBRARY_PATH
20848 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20849 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20861 soname_spec
='${libname}${release}${shared_ext}$major'
20862 shlibpath_var
=LD_LIBRARY_PATH
20863 shlibpath_overrides_runpath
=yes
20864 hardcode_into_libs
=yes
20865 # ldd complains unless libraries are executable
20866 postinstall_cmds
='chmod +x $lib'
20871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20872 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20873 shlibpath_var
=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath
=yes
20875 if test "$with_gnu_ld" = yes; then
20883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 soname_spec
='${libname}${release}${shared_ext}$major'
20885 shlibpath_var
=LD_LIBRARY_PATH
20886 case $host_vendor in
20888 shlibpath_overrides_runpath
=no
20890 runpath_var
=LD_RUN_PATH
20898 shlibpath_overrides_runpath
=no
20899 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20905 if test -d /usr
/nec
;then
20907 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20908 soname_spec
='$libname${shared_ext}.$major'
20909 shlibpath_var
=LD_LIBRARY_PATH
20913 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20914 version_type
=freebsd-elf
20917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20918 soname_spec
='${libname}${release}${shared_ext}$major'
20919 shlibpath_var
=LD_LIBRARY_PATH
20920 shlibpath_overrides_runpath
=yes
20921 hardcode_into_libs
=yes
20922 if test "$with_gnu_ld" = yes; then
20923 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20925 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20928 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20932 sys_lib_dlsearch_path_spec
='/usr/lib'
20936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20941 shlibpath_var
=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath
=no
20943 hardcode_into_libs
=yes
20948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec
='${libname}${release}${shared_ext}$major'
20950 shlibpath_var
=LD_LIBRARY_PATH
20953 # Shared libraries for VwWorks, >= 7 only at this stage
20954 # and (fpic) still incompatible with "large" code models
20955 # in a few configurations. Only for RTP mode in any case,
20956 # and upon explicit request at configure time.
20959 case ${with_multisubdir}-${enable_shared} in
20966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20967 soname_spec
='${libname}${release}${shared_ext}$major'
20968 dynamic_linker
="$host_os module_loader"
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20977 $as_echo "$dynamic_linker" >&6; }
20978 test "$dynamic_linker" = no
&& can_build_shared
=no
20980 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20981 if test "$GCC" = yes; then
20982 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20985 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20986 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20988 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20989 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21084 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21086 if test -n "$hardcode_libdir_flag_spec" ||
21087 test -n "$runpath_var" ||
21088 test "X$hardcode_automatic" = "Xyes" ; then
21090 # We can hardcode non-existent directories.
21091 if test "$hardcode_direct" != no
&&
21092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21093 # have to relink, otherwise we might link with an installed library
21094 # when we should be linking with a yet-to-be-installed one
21095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21096 test "$hardcode_minus_L" != no
; then
21097 # Linking always hardcodes the temporary library directory.
21098 hardcode_action
=relink
21100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21101 hardcode_action
=immediate
21104 # We cannot hardcode anything, or else we can only hardcode existing
21106 hardcode_action
=unsupported
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21109 $as_echo "$hardcode_action" >&6; }
21111 if test "$hardcode_action" = relink ||
21112 test "$inherit_rpath" = yes; then
21113 # Fast installation is not supported
21114 enable_fast_install
=no
21115 elif test "$shlibpath_overrides_runpath" = yes ||
21116 test "$enable_shared" = no
; then
21117 # Fast installation is not necessary
21118 enable_fast_install
=needless
21126 if test "x$enable_dlopen" != xyes
; then
21127 enable_dlopen
=unknown
21128 enable_dlopen_self
=unknown
21129 enable_dlopen_self_static
=unknown
21136 lt_cv_dlopen
="load_add_on"
21138 lt_cv_dlopen_self
=yes
21141 mingw
* | pw32
* | cegcc
*)
21142 lt_cv_dlopen
="LoadLibrary"
21147 lt_cv_dlopen
="dlopen"
21152 # if libdl is installed we need to link against it
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21154 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21155 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21156 $as_echo_n "(cached) " >&6
21158 ac_check_lib_save_LIBS
=$LIBS
21160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h. */
21163 /* Override any GCC internal prototype to avoid an error.
21164 Use char because int might match the return type of a GCC
21165 builtin and then its argument prototype would still apply. */
21178 if ac_fn_c_try_link
"$LINENO"; then :
21179 ac_cv_lib_dl_dlopen
=yes
21181 ac_cv_lib_dl_dlopen
=no
21183 rm -f core conftest.err conftest.
$ac_objext \
21184 conftest
$ac_exeext conftest.
$ac_ext
21185 LIBS
=$ac_check_lib_save_LIBS
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21188 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21189 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21190 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21193 lt_cv_dlopen
="dyld"
21195 lt_cv_dlopen_self
=yes
21202 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
21203 if test "x$ac_cv_func_shl_load" = xyes
; then :
21204 lt_cv_dlopen
="shl_load"
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21207 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21208 if ${ac_cv_lib_dld_shl_load+:} false
; then :
21209 $as_echo_n "(cached) " >&6
21211 ac_check_lib_save_LIBS
=$LIBS
21213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21216 /* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21226 return shl_load ();
21231 if ac_fn_c_try_link
"$LINENO"; then :
21232 ac_cv_lib_dld_shl_load
=yes
21234 ac_cv_lib_dld_shl_load
=no
21236 rm -f core conftest.err conftest.
$ac_objext \
21237 conftest
$ac_exeext conftest.
$ac_ext
21238 LIBS
=$ac_check_lib_save_LIBS
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21241 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21242 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
21243 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
21245 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
21246 if test "x$ac_cv_func_dlopen" = xyes
; then :
21247 lt_cv_dlopen
="dlopen"
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21250 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21251 if ${ac_cv_lib_dl_dlopen+:} false
; then :
21252 $as_echo_n "(cached) " >&6
21254 ac_check_lib_save_LIBS
=$LIBS
21256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21259 /* Override any GCC internal prototype to avoid an error.
21260 Use char because int might match the return type of a GCC
21261 builtin and then its argument prototype would still apply. */
21274 if ac_fn_c_try_link
"$LINENO"; then :
21275 ac_cv_lib_dl_dlopen
=yes
21277 ac_cv_lib_dl_dlopen
=no
21279 rm -f core conftest.err conftest.
$ac_objext \
21280 conftest
$ac_exeext conftest.
$ac_ext
21281 LIBS
=$ac_check_lib_save_LIBS
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21284 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21285 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
21286 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21289 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21290 if ${ac_cv_lib_svld_dlopen+:} false
; then :
21291 $as_echo_n "(cached) " >&6
21293 ac_check_lib_save_LIBS
=$LIBS
21294 LIBS
="-lsvld $LIBS"
21295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21298 /* Override any GCC internal prototype to avoid an error.
21299 Use char because int might match the return type of a GCC
21300 builtin and then its argument prototype would still apply. */
21313 if ac_fn_c_try_link
"$LINENO"; then :
21314 ac_cv_lib_svld_dlopen
=yes
21316 ac_cv_lib_svld_dlopen
=no
21318 rm -f core conftest.err conftest.
$ac_objext \
21319 conftest
$ac_exeext conftest.
$ac_ext
21320 LIBS
=$ac_check_lib_save_LIBS
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21323 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21324 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
21325 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21328 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21329 if ${ac_cv_lib_dld_dld_link+:} false
; then :
21330 $as_echo_n "(cached) " >&6
21332 ac_check_lib_save_LIBS
=$LIBS
21334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21337 /* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
21347 return dld_link ();
21352 if ac_fn_c_try_link
"$LINENO"; then :
21353 ac_cv_lib_dld_dld_link
=yes
21355 ac_cv_lib_dld_dld_link
=no
21357 rm -f core conftest.err conftest.
$ac_objext \
21358 conftest
$ac_exeext conftest.
$ac_ext
21359 LIBS
=$ac_check_lib_save_LIBS
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21363 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
21364 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
21385 if test "x$lt_cv_dlopen" != xno
; then
21391 case $lt_cv_dlopen in
21393 save_CPPFLAGS
="$CPPFLAGS"
21394 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
21396 save_LDFLAGS
="$LDFLAGS"
21397 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
21400 LIBS
="$lt_cv_dlopen_libs $LIBS"
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21404 if ${lt_cv_dlopen_self+:} false
; then :
21405 $as_echo_n "(cached) " >&6
21407 if test "$cross_compiling" = yes; then :
21408 lt_cv_dlopen_self
=cross
21410 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21411 lt_status
=$lt_dlunknown
21412 cat > conftest.
$ac_ext <<_LT_EOF
21413 #line 21413 "configure"
21414 #include "confdefs.h"
21423 # define LT_DLGLOBAL RTLD_GLOBAL
21426 # define LT_DLGLOBAL DL_GLOBAL
21428 # define LT_DLGLOBAL 0
21432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21433 find out it does not work in some platform. */
21434 #ifndef LT_DLLAZY_OR_NOW
21436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21439 # define LT_DLLAZY_OR_NOW DL_LAZY
21442 # define LT_DLLAZY_OR_NOW RTLD_NOW
21445 # define LT_DLLAZY_OR_NOW DL_NOW
21447 # define LT_DLLAZY_OR_NOW 0
21454 /* When -fvisbility=hidden is used, assume the code has been annotated
21455 correspondingly for the symbols needed. */
21456 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21457 void fnord () __attribute__((visibility("default")));
21460 void fnord () { int i=42; }
21463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21464 int status = $lt_dlunknown;
21468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21471 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21472 else puts (dlerror ());
21474 /* dlclose (self); */
21482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21483 (eval $ac_link) 2>&5
21485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21487 (.
/conftest
; exit; ) >&5 2>/dev
/null
21489 case x
$lt_status in
21490 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
21491 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
21492 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
21495 # compilation failed
21496 lt_cv_dlopen_self
=no
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21504 $as_echo "$lt_cv_dlopen_self" >&6; }
21506 if test "x$lt_cv_dlopen_self" = xyes
; then
21507 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21510 if ${lt_cv_dlopen_self_static+:} false
; then :
21511 $as_echo_n "(cached) " >&6
21513 if test "$cross_compiling" = yes; then :
21514 lt_cv_dlopen_self_static
=cross
21516 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
21517 lt_status
=$lt_dlunknown
21518 cat > conftest.
$ac_ext <<_LT_EOF
21519 #line 21519 "configure"
21520 #include "confdefs.h"
21529 # define LT_DLGLOBAL RTLD_GLOBAL
21532 # define LT_DLGLOBAL DL_GLOBAL
21534 # define LT_DLGLOBAL 0
21538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21539 find out it does not work in some platform. */
21540 #ifndef LT_DLLAZY_OR_NOW
21542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21545 # define LT_DLLAZY_OR_NOW DL_LAZY
21548 # define LT_DLLAZY_OR_NOW RTLD_NOW
21551 # define LT_DLLAZY_OR_NOW DL_NOW
21553 # define LT_DLLAZY_OR_NOW 0
21560 /* When -fvisbility=hidden is used, assume the code has been annotated
21561 correspondingly for the symbols needed. */
21562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21563 void fnord () __attribute__((visibility("default")));
21566 void fnord () { int i=42; }
21569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21570 int status = $lt_dlunknown;
21574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21578 else puts (dlerror ());
21580 /* dlclose (self); */
21588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21589 (eval $ac_link) 2>&5
21591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21592 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
21593 (.
/conftest
; exit; ) >&5 2>/dev
/null
21595 case x
$lt_status in
21596 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
21597 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
21598 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
21601 # compilation failed
21602 lt_cv_dlopen_self_static
=no
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21610 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21613 CPPFLAGS
="$save_CPPFLAGS"
21614 LDFLAGS
="$save_LDFLAGS"
21619 case $lt_cv_dlopen_self in
21620 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
21621 *) enable_dlopen_self
=unknown
;;
21624 case $lt_cv_dlopen_self_static in
21625 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
21626 *) enable_dlopen_self_static
=unknown
;;
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21649 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21650 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
21651 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
21652 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21654 $as_echo "yes" >&6; }
21656 # FIXME - insert some real tests, host_os isn't really good enough
21659 if test -n "$STRIP" ; then
21660 striplib
="$STRIP -x"
21661 old_striplib
="$STRIP -S"
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21663 $as_echo "yes" >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21666 $as_echo "no" >&6; }
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21687 # Report which library types will actually be built
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21689 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21691 $as_echo "$can_build_shared" >&6; }
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21694 $as_echo_n "checking whether to build shared libraries... " >&6; }
21695 test "$can_build_shared" = "no" && enable_shared
=no
21697 # On AIX, shared libraries and static libraries use the same namespace, and
21698 # are all built from PIC.
21701 test "$enable_shared" = yes && enable_static
=no
21702 if test -n "$RANLIB"; then
21703 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
21704 postinstall_cmds
='$RANLIB $lib'
21709 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
21710 test "$enable_shared" = yes && enable_static
=no
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21715 $as_echo "$enable_shared" >&6; }
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21718 $as_echo_n "checking whether to build static libraries... " >&6; }
21719 # Make sure either enable_shared or enable_static is yes.
21720 test "$enable_shared" = yes || enable_static
=yes
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21722 $as_echo "$enable_static" >&6; }
21729 ac_cpp
='$CXXCPP $CPPFLAGS'
21730 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21736 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21737 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21738 (test "X$CXX" != "Xg++"))) ; then
21740 ac_cpp
='$CXXCPP $CPPFLAGS'
21741 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21745 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21746 if test -z "$CXXCPP"; then
21747 if ${ac_cv_prog_CXXCPP+:} false
; then :
21748 $as_echo_n "(cached) " >&6
21750 # Double quotes because CXXCPP needs to be expanded
21751 for CXXCPP
in "$CXX -E" "/lib/cpp"
21753 ac_preproc_ok
=false
21754 for ac_cxx_preproc_warn_flag
in '' yes
21756 # Use a header file that comes with gcc, so configuring glibc
21757 # with a fresh cross-compiler works.
21758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21759 # <limits.h> exists even on freestanding compilers.
21760 # On the NeXT, cc -E runs the code through the compiler's parser,
21761 # not just through cpp. "Syntax error" is here to catch this case.
21762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21765 # include <limits.h>
21767 # include <assert.h>
21771 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21774 # Broken: fails on valid input.
21777 rm -f conftest.err conftest.i conftest.
$ac_ext
21779 # OK, works on sane cases. Now check whether nonexistent headers
21780 # can be detected and how.
21781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21783 #include <ac_nonexistent.h>
21785 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21786 # Broken: success on invalid input.
21789 # Passes both tests.
21793 rm -f conftest.err conftest.i conftest.
$ac_ext
21796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21797 rm -f conftest.i conftest.err conftest.
$ac_ext
21798 if $ac_preproc_ok; then :
21803 ac_cv_prog_CXXCPP
=$CXXCPP
21806 CXXCPP
=$ac_cv_prog_CXXCPP
21808 ac_cv_prog_CXXCPP
=$CXXCPP
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21811 $as_echo "$CXXCPP" >&6; }
21812 ac_preproc_ok
=false
21813 for ac_cxx_preproc_warn_flag
in '' yes
21815 # Use a header file that comes with gcc, so configuring glibc
21816 # with a fresh cross-compiler works.
21817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21818 # <limits.h> exists even on freestanding compilers.
21819 # On the NeXT, cc -E runs the code through the compiler's parser,
21820 # not just through cpp. "Syntax error" is here to catch this case.
21821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21824 # include <limits.h>
21826 # include <assert.h>
21830 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21833 # Broken: fails on valid input.
21836 rm -f conftest.err conftest.i conftest.
$ac_ext
21838 # OK, works on sane cases. Now check whether nonexistent headers
21839 # can be detected and how.
21840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h. */
21842 #include <ac_nonexistent.h>
21844 if ac_fn_cxx_try_cpp
"$LINENO"; then :
21845 # Broken: success on invalid input.
21848 # Passes both tests.
21852 rm -f conftest.err conftest.i conftest.
$ac_ext
21855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21856 rm -f conftest.i conftest.err conftest.
$ac_ext
21857 if $ac_preproc_ok; then :
21860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21862 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
21863 See \`config.log' for more details" "$LINENO" 5; }
21867 ac_cpp
='$CXXCPP $CPPFLAGS'
21868 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21873 _lt_caught_CXX_error
=yes
21877 ac_cpp
='$CXXCPP $CPPFLAGS'
21878 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21879 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21880 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21882 archive_cmds_need_lc_CXX
=no
21883 allow_undefined_flag_CXX
=
21884 always_export_symbols_CXX
=no
21885 archive_expsym_cmds_CXX
=
21886 compiler_needs_object_CXX
=no
21887 export_dynamic_flag_spec_CXX
=
21888 hardcode_direct_CXX
=no
21889 hardcode_direct_absolute_CXX
=no
21890 hardcode_libdir_flag_spec_CXX
=
21891 hardcode_libdir_flag_spec_ld_CXX
=
21892 hardcode_libdir_separator_CXX
=
21893 hardcode_minus_L_CXX
=no
21894 hardcode_shlibpath_var_CXX
=unsupported
21895 hardcode_automatic_CXX
=no
21896 inherit_rpath_CXX
=no
21898 module_expsym_cmds_CXX
=
21899 link_all_deplibs_CXX
=unknown
21900 old_archive_cmds_CXX
=$old_archive_cmds
21901 reload_flag_CXX
=$reload_flag
21902 reload_cmds_CXX
=$reload_cmds
21903 no_undefined_flag_CXX
=
21904 whole_archive_flag_spec_CXX
=
21905 enable_shared_with_static_runtimes_CXX
=no
21907 # Source file extension for C++ test sources.
21910 # Object file extension for compiled C++ test sources.
21914 # No sense in running all these tests if we already determined that
21915 # the CXX compiler isn't working. Some variables (like enable_shared)
21916 # are currently assumed to apply to all compilers on this platform,
21917 # and will be corrupted by setting them based on a non-working compiler.
21918 if test "$_lt_caught_CXX_error" != yes; then
21919 # Code to be used in simple compile tests
21920 lt_simple_compile_test_code
="int some_variable = 0;"
21922 # Code to be used in simple link tests
21923 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
21925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21932 # If no C compiler was specified, use CC.
21935 # If no C compiler flags were specified, use CFLAGS.
21936 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21938 # Allow CC to be a program name with arguments.
21942 # save warnings/boilerplate of simple test code
21943 ac_outfile
=conftest.
$ac_objext
21944 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
21945 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21946 _lt_compiler_boilerplate
=`cat conftest.err`
21949 ac_outfile
=conftest.
$ac_objext
21950 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
21951 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21952 _lt_linker_boilerplate
=`cat conftest.err`
21956 # Allow CC to be a program name with arguments.
21961 lt_save_with_gnu_ld
=$with_gnu_ld
21962 lt_save_path_LD
=$lt_cv_path_LD
21963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21964 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
21966 $as_unset lt_cv_prog_gnu_ld
21968 if test -n "${lt_cv_path_LDCXX+set}"; then
21969 lt_cv_path_LD
=$lt_cv_path_LDCXX
21971 $as_unset lt_cv_path_LD
21973 test -z "${LDCXX+set}" || LD
=$LDCXX
21977 for cc_temp
in $compiler""; do
21979 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21980 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21985 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21988 if test -n "$compiler"; then
21989 # We don't want -fno-exception when compiling C++ code, so set the
21990 # no_builtin_flag separately
21991 if test "$GXX" = yes; then
21992 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
21994 lt_prog_compiler_no_builtin_flag_CXX
=
21997 if test "$GXX" = yes; then
21998 # Set up default GNU C++ configuration
22002 # Check whether --with-gnu-ld was given.
22003 if test "${with_gnu_ld+set}" = set; then :
22004 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
22010 if test "$GCC" = yes; then
22011 # Check if gcc -print-prog-name=ld gives a path.
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22013 $as_echo_n "checking for ld used by $CC... " >&6; }
22016 # gcc leaves a trailing carriage return which upsets mingw
22017 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22019 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
22022 # Accept absolute paths.
22024 re_direlt
='/[^/][^/]*/\.\./'
22025 # Canonicalize the pathname of ld
22026 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22027 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
22028 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22030 test -z "$LD" && LD
="$ac_prog"
22033 # If it fails, then pretend we aren't using GCC.
22037 # If it is relative, then search for the first ld in PATH.
22038 with_gnu_ld
=unknown
22041 elif test "$with_gnu_ld" = yes; then
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22043 $as_echo_n "checking for GNU ld... " >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22046 $as_echo_n "checking for non-GNU ld... " >&6; }
22048 if ${lt_cv_path_LD+:} false
; then :
22049 $as_echo_n "(cached) " >&6
22051 if test -z "$LD"; then
22052 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
22053 for ac_dir
in $PATH; do
22055 test -z "$ac_dir" && ac_dir
=.
22056 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
22057 lt_cv_path_LD
="$ac_dir/$ac_prog"
22058 # Check to see if the program is GNU ld. I'd rather use --version,
22059 # but apparently some variants of GNU ld only accept -v.
22060 # Break only if it was the GNU/non-GNU ld that we prefer.
22061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22062 *GNU
* |
*'with BFD'*)
22063 test "$with_gnu_ld" != no
&& break
22066 test "$with_gnu_ld" != yes && break
22073 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
22077 LD
="$lt_cv_path_LD"
22078 if test -n "$LD"; then
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22080 $as_echo "$LD" >&6; }
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22083 $as_echo "no" >&6; }
22085 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22088 if ${lt_cv_prog_gnu_ld+:} false
; then :
22089 $as_echo_n "(cached) " >&6
22091 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22092 case `$LD -v 2>&1 </dev/null` in
22093 *GNU
* |
*'with BFD'*)
22094 lt_cv_prog_gnu_ld
=yes
22097 lt_cv_prog_gnu_ld
=no
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22102 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22103 with_gnu_ld
=$lt_cv_prog_gnu_ld
22111 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22112 # archiving commands below assume that GNU ld is being used.
22113 if test "$with_gnu_ld" = yes; then
22114 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22115 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'
22117 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22118 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22120 # If archive_cmds runs LD, not CC, wlarc should be empty
22121 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22122 # investigate it a little bit more. (MM)
22125 # ancient GNU ld didn't support --whole-archive et. al.
22126 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22127 $GREP 'no-whole-archive' > /dev
/null
; then
22128 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22130 whole_archive_flag_spec_CXX
=
22136 # A generic and very simple default shared library creation
22137 # command for GNU C++ for the case where it uses the native
22138 # linker, instead of GNU ld. If possible, this setting should
22139 # overridden to take advantage of the native linker features on
22140 # the platform it is being used on.
22141 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22144 # Commands to make compiler produce verbose output that lists
22145 # what "hidden" libraries, object files and flags are used when
22146 # linking a shared library.
22147 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22155 # PORTME: fill in a description of your system's C++ link characteristics
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22157 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22161 # FIXME: insert proper C++ library support
22165 if test "$host_cpu" = ia64
; then
22166 # On IA64, the linker does run time linking by default, so we don't
22167 # have to do anything special.
22168 aix_use_runtimelinking
=no
22169 exp_sym_flag
='-Bexport'
22172 aix_use_runtimelinking
=no
22174 # Test if we are trying to use run time linking or normal
22175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22176 # need to do runtime linking.
22177 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
22178 for ld_flag
in $LDFLAGS; do
22181 aix_use_runtimelinking
=yes
22189 exp_sym_flag
='-bexport'
22190 no_entry_flag
='-bnoentry'
22193 # When large executables or shared objects are built, AIX ld can
22194 # have problems creating the table of contents. If linking a library
22195 # or program results in "error TOC overflow" add -mminimal-toc to
22196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22199 archive_cmds_CXX
=''
22200 hardcode_direct_CXX
=yes
22201 hardcode_direct_absolute_CXX
=yes
22202 hardcode_libdir_separator_CXX
=':'
22203 link_all_deplibs_CXX
=yes
22204 file_list_spec_CXX
='${wl}-f,'
22206 if test "$GXX" = yes; then
22207 case $host_os in aix4.
[012]|aix4.
[012].
*)
22208 # We only want to do this on AIX 4.2 and lower, the check
22209 # below for broken collect2 doesn't work under 4.3+
22210 collect2name
=`${CC} -print-prog-name=collect2`
22211 if test -f "$collect2name" &&
22212 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
22214 # We have reworked collect2
22217 # We have old collect2
22218 hardcode_direct_CXX
=unsupported
22219 # It fails to find uninstalled libraries when the uninstalled
22220 # path is not listed in the libpath. Setting hardcode_minus_L
22221 # to unsupported forces relinking
22222 hardcode_minus_L_CXX
=yes
22223 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22224 hardcode_libdir_separator_CXX
=
22227 shared_flag
='-shared'
22228 if test "$aix_use_runtimelinking" = yes; then
22229 shared_flag
="$shared_flag "'${wl}-G'
22233 if test "$host_cpu" = ia64
; then
22234 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22235 # chokes on -Wl,-G. The following line is correct:
22238 if test "$aix_use_runtimelinking" = yes; then
22239 shared_flag
='${wl}-G'
22241 shared_flag
='${wl}-bM:SRE'
22246 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
22247 # It seems that -bexpall does not export symbols beginning with
22248 # underscore (_), so it is better to generate a list of symbols to
22250 always_export_symbols_CXX
=yes
22251 if test "$aix_use_runtimelinking" = yes; then
22252 # Warning - without using the other runtime loading flags (-brtl),
22253 # -berok will link without error, but may produce a broken library.
22254 allow_undefined_flag_CXX
='-berok'
22255 # Determine the default libpath from the value encoded in an empty
22257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22258 /* end confdefs.h. */
22268 if ac_fn_cxx_try_link
"$LINENO"; then :
22270 lt_aix_libpath_sed
='
22271 /Import File Strings/,/^$/ {
22277 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22278 # Check for a 64-bit object if we didn't find anything.
22279 if test -z "$aix_libpath"; then
22280 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22283 rm -f core conftest.err conftest.
$ac_objext \
22284 conftest
$ac_exeext conftest.
$ac_ext
22285 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22287 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22289 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"
22291 if test "$host_cpu" = ia64
; then
22292 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
22293 allow_undefined_flag_CXX
="-z nodefs"
22294 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"
22296 # Determine the default libpath from the value encoded in an
22297 # empty executable.
22298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22309 if ac_fn_cxx_try_link
"$LINENO"; then :
22311 lt_aix_libpath_sed
='
22312 /Import File Strings/,/^$/ {
22318 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22319 # Check for a 64-bit object if we didn't find anything.
22320 if test -z "$aix_libpath"; then
22321 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22324 rm -f core conftest.err conftest.
$ac_objext \
22325 conftest
$ac_exeext conftest.
$ac_ext
22326 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22328 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
22329 # Warning - without using the other run time loading flags,
22330 # -berok will link without error, but may produce a broken library.
22331 no_undefined_flag_CXX
=' ${wl}-bernotok'
22332 allow_undefined_flag_CXX
=' ${wl}-berok'
22333 if test "$with_gnu_ld" = yes; then
22334 # We only use this code for GNU lds that support --whole-archive.
22335 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22337 # Exported symbols can be pulled into shared objects from archives
22338 whole_archive_flag_spec_CXX
='$convenience'
22340 archive_cmds_need_lc_CXX
=yes
22341 # This is similar to how AIX traditionally builds its shared
22343 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'
22349 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
22350 allow_undefined_flag_CXX
=unsupported
22351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22352 # support --undefined. This deserves some investigation. FIXME
22353 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22360 case $cc_basename in
22362 # FIXME: insert proper C++ library support
22368 cygwin
* | mingw
* | pw32
* | cegcc
*)
22369 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22370 # as there is no search path for DLLs.
22371 hardcode_libdir_flag_spec_CXX
='-L$libdir'
22372 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
22373 allow_undefined_flag_CXX
=unsupported
22374 always_export_symbols_CXX
=no
22375 enable_shared_with_static_runtimes_CXX
=yes
22377 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
22378 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'
22379 # If the export-symbols file already is a .def file (1st line
22380 # is EXPORTS), use it as is; otherwise, prepend...
22381 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22382 cp $export_symbols $output_objdir/$soname.def;
22384 echo EXPORTS > $output_objdir/$soname.def;
22385 cat $export_symbols >> $output_objdir/$soname.def;
22387 $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'
22392 darwin
* | rhapsody
*)
22396 # Publish an arg to allow the user to select that Darwin host (and target)
22397 # libraries should be given install-names like @rpath/libfoo.dylib. This
22398 # requires that the user of the library then adds an 'rpath' to the DSO that
22400 # NOTE: there are defaults below, for systems that support rpaths. The person
22401 # configuring can override the defaults for any system version that supports
22402 # them - they are, however, forced off for system versions without support.
22403 # Check whether --enable-darwin-at-rpath was given.
22404 if test "${enable_darwin_at_rpath+set}" = set; then :
22405 enableval
=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22406 # This is not supported before macOS 10.5 / Darwin9.
22407 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22408 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22410 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22411 enable_darwin_at_rpath
=no
22416 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22417 # As above, before 10.5 / Darwin9 this does not work.
22418 UNSET
,darwin
[4-8]*|UNSET
,rhapsody
*|
10.
[0-4][,.
]*)
22419 enable_darwin_at_rpath
=no
22422 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22423 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22424 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22425 UNSET
,darwin1
[5-9]*|UNSET
,darwin2
*|
10.1[1-9][,.
]*|
1[1-9].
*[,.
]* )
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22427 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22428 enable_darwin_at_rpath
=yes
22430 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22431 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22438 archive_cmds_need_lc_CXX
=no
22439 hardcode_direct_CXX
=no
22440 hardcode_automatic_CXX
=yes
22441 hardcode_shlibpath_var_CXX
=unsupported
22442 if test "$lt_cv_ld_force_load" = "yes"; then
22443 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\"`'
22445 whole_archive_flag_spec_CXX
=''
22447 link_all_deplibs_CXX
=yes
22448 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
22449 case $cc_basename in
22450 ifort
*) _lt_dar_can_shared
=yes ;;
22451 *) _lt_dar_can_shared
=$GCC ;;
22453 if test "$_lt_dar_can_shared" = "yes"; then
22454 output_verbose_link_cmd
=func_echo_all
22455 _lt_install_name
='\$rpath/\$soname'
22456 if test "x$enable_darwin_at_rpath" = "xyes"; then
22457 _lt_install_name
='@rpath/\$soname'
22459 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22460 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22461 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}"
22462 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}"
22463 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22464 _lt_install_name
='\$rpath/\$soname'
22465 if test "x$enable_darwin_at_rpath" = "xyes"; then
22466 _lt_install_name
='@rpath/\$soname'
22468 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}"
22469 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}"
22479 case $cc_basename in
22481 # FIXME: insert proper C++ library support
22485 # Green Hills C++ Compiler
22486 # FIXME: insert proper C++ library support
22490 # FIXME: insert proper C++ library support
22497 # C++ shared libraries reported to be fairly broken before
22503 archive_cmds_need_lc_CXX
=no
22506 freebsd
* | dragonfly
*)
22507 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22516 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22517 link_all_deplibs_CXX
=yes
22521 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22522 hardcode_libdir_separator_CXX
=:
22523 export_dynamic_flag_spec_CXX
='${wl}-E'
22524 hardcode_direct_CXX
=yes
22525 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22526 # but as the default
22527 # location of the library.
22529 case $cc_basename in
22531 # FIXME: insert proper C++ library support
22535 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'
22536 # Commands to make compiler produce verbose output that lists
22537 # what "hidden" libraries, object files and flags are used when
22538 # linking a shared library.
22540 # There doesn't appear to be a way to prevent this compiler from
22541 # explicitly linking system object files so we need to strip them
22542 # from the output so that they don't get included in the library
22544 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"'
22547 if test "$GXX" = yes; then
22548 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'
22550 # FIXME: insert proper C++ library support
22558 if test $with_gnu_ld = no
; then
22559 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
22560 hardcode_libdir_separator_CXX
=:
22566 export_dynamic_flag_spec_CXX
='${wl}-E'
22572 hardcode_direct_CXX
=no
22573 hardcode_shlibpath_var_CXX
=no
22576 hardcode_direct_CXX
=yes
22577 hardcode_direct_absolute_CXX
=yes
22578 hardcode_minus_L_CXX
=yes # Not in the search PATH,
22579 # but as the default
22580 # location of the library.
22584 case $cc_basename in
22586 # FIXME: insert proper C++ library support
22592 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22595 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22598 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22601 # Commands to make compiler produce verbose output that lists
22602 # what "hidden" libraries, object files and flags are used when
22603 # linking a shared library.
22605 # There doesn't appear to be a way to prevent this compiler from
22606 # explicitly linking system object files so we need to strip them
22607 # from the output so that they don't get included in the library
22609 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"'
22612 if test "$GXX" = yes; then
22613 if test $with_gnu_ld = no
; then
22616 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22619 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22622 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'
22627 # FIXME: insert proper C++ library support
22635 hardcode_direct_CXX
=no
22636 hardcode_shlibpath_var_CXX
=no
22637 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22638 export_dynamic_flag_spec_CXX
='${wl}-E'
22639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22640 # Instead, shared libraries are loaded at an image base (0x10000000 by
22641 # default) and relocated if they conflict, which is a slow very memory
22642 # consuming and fragmenting process. To avoid this, we pick a random,
22643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22645 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'
22646 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'
22649 case $cc_basename in
22652 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'
22654 # Archives containing C++ object files must be created using
22655 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22656 # necessary to make sure instantiated templates are included
22658 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
22661 if test "$GXX" = yes; then
22662 if test "$with_gnu_ld" = no
; then
22663 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'
22665 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'
22668 link_all_deplibs_CXX
=yes
22671 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22672 hardcode_libdir_separator_CXX
=:
22673 inherit_rpath_CXX
=yes
22676 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
22677 case $cc_basename in
22679 # Kuck and Associates, Inc. (KAI) C++ Compiler
22681 # KCC will only create a shared library if the output file
22682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22683 # to its proper name (with version) after linking.
22684 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'
22685 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'
22686 # Commands to make compiler produce verbose output that lists
22687 # what "hidden" libraries, object files and flags are used when
22688 # linking a shared library.
22690 # There doesn't appear to be a way to prevent this compiler from
22691 # explicitly linking system object files so we need to strip them
22692 # from the output so that they don't get included in the library
22694 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"'
22696 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22697 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22699 # Archives containing C++ object files must be created using
22700 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22701 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
22706 # version 8.0 and above of icpc choke on multiply defined symbols
22707 # if we add $predep_objects and $postdep_objects, however 7.1 and
22708 # earlier do not add the objects themselves.
22709 case `$CC -V 2>&1` in
22711 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22712 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'
22714 *) # Version 8.0 or newer
22717 ia64
*) tmp_idyn
=' -i_dynamic';;
22719 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22720 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'
22723 archive_cmds_need_lc_CXX
=no
22724 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22725 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22726 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22729 # Portland Group C++ compiler
22731 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
22732 prelink_cmds_CXX
='tpldir=Template.dir~
22734 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22735 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22736 old_archive_cmds_CXX
='tpldir=Template.dir~
22738 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22739 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22741 archive_cmds_CXX
='tpldir=Template.dir~
22743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22744 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22745 archive_expsym_cmds_CXX
='tpldir=Template.dir~
22747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22748 $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'
22750 *) # Version 6 and above use weak symbols
22751 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22752 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'
22756 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
22757 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22758 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'
22762 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22763 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'
22765 runpath_var
=LD_RUN_PATH
22766 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22767 hardcode_libdir_separator_CXX
=:
22769 # Commands to make compiler produce verbose output that lists
22770 # what "hidden" libraries, object files and flags are used when
22771 # linking a shared library.
22773 # There doesn't appear to be a way to prevent this compiler from
22774 # explicitly linking system object files so we need to strip them
22775 # from the output so that they don't get included in the library
22777 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'
22779 xl
* | mpixl
* | bgxl
*)
22780 # IBM XL 8.0 on PPC, with GNU ld
22781 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22782 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
22783 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22784 if test "x$supports_anon_versioning" = xyes
; then
22785 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
22786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22787 echo "local: *; };" >> $output_objdir/$libname.ver~
22788 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22792 case `$CC -V 2>&1 | sed 5q` in
22795 no_undefined_flag_CXX
=' -zdefs'
22796 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22797 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'
22798 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22799 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'
22800 compiler_needs_object_CXX
=yes
22802 # Not sure whether something based on
22803 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22805 output_verbose_link_cmd
='func_echo_all'
22807 # Archives containing C++ object files must be created using
22808 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22809 # necessary to make sure instantiated templates are included
22811 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
22819 # FIXME: insert proper C++ library support
22824 # FIXME: insert proper C++ library support
22829 case $cc_basename in
22831 # FIXME: insert proper C++ library support
22835 # FIXME: insert proper C++ library support
22842 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22843 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22845 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22846 hardcode_direct_CXX
=yes
22847 hardcode_shlibpath_var_CXX
=no
22849 # Workaround some broken pre-1.5 toolchains
22850 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22858 # C++ shared libraries are fairly broken
22863 if test -f /usr
/libexec
/ld.so
; then
22864 hardcode_direct_CXX
=yes
22865 hardcode_shlibpath_var_CXX
=no
22866 hardcode_direct_absolute_CXX
=yes
22867 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22868 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22870 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22871 export_dynamic_flag_spec_CXX
='${wl}-E'
22872 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22874 output_verbose_link_cmd
=func_echo_all
22880 osf3
* | osf4
* | osf5
*)
22881 case $cc_basename in
22883 # Kuck and Associates, Inc. (KAI) C++ Compiler
22885 # KCC will only create a shared library if the output file
22886 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22887 # to its proper name (with version) after linking.
22888 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'
22890 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
22891 hardcode_libdir_separator_CXX
=:
22893 # Archives containing C++ object files must be created using
22894 # the KAI C++ compiler.
22896 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
22897 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
22901 # Rational C++ 2.4.1
22902 # FIXME: insert proper C++ library support
22908 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
22909 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'
22910 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22913 allow_undefined_flag_CXX
=' -expect_unresolved \*'
22914 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'
22915 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22916 echo "-hidden">> $lib.exp~
22917 $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~
22919 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
22923 hardcode_libdir_separator_CXX
=:
22925 # Commands to make compiler produce verbose output that lists
22926 # what "hidden" libraries, object files and flags are used when
22927 # linking a shared library.
22929 # There doesn't appear to be a way to prevent this compiler from
22930 # explicitly linking system object files so we need to strip them
22931 # from the output so that they don't get included in the library
22933 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"'
22936 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
22937 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
22940 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'
22943 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'
22947 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
22948 hardcode_libdir_separator_CXX
=:
22950 # Commands to make compiler produce verbose output that lists
22951 # what "hidden" libraries, object files and flags are used when
22952 # linking a shared library.
22953 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22956 # FIXME: insert proper C++ library support
22964 # FIXME: insert proper C++ library support
22969 case $cc_basename in
22972 # FIXME: insert proper C++ library support
22977 # FIXME: insert proper C++ library support
22981 # FIXME: insert proper C++ library support
22988 case $cc_basename in
22990 # Sun C++ 4.2, 5.x and Centerline C++
22991 archive_cmds_need_lc_CXX
=yes
22992 no_undefined_flag_CXX
=' -zdefs'
22993 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22994 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22995 $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'
22997 hardcode_libdir_flag_spec_CXX
='-R$libdir'
22998 hardcode_shlibpath_var_CXX
=no
23000 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23002 # The compiler driver will combine and reorder linker options,
23003 # but understands `-z linker_flag'.
23004 # Supported since Solaris 2.6 (maybe 2.5.1?)
23005 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
23008 link_all_deplibs_CXX
=yes
23010 output_verbose_link_cmd
='func_echo_all'
23012 # Archives containing C++ object files must be created using
23013 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23014 # necessary to make sure instantiated templates are included
23016 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
23019 # Green Hills C++ Compiler
23020 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23022 # The C++ compiler must be used to create the archive.
23023 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23026 # GNU C++ compiler with Solaris linker
23027 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
23028 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
23029 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
23030 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23031 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23032 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23034 # Commands to make compiler produce verbose output that lists
23035 # what "hidden" libraries, object files and flags are used when
23036 # linking a shared library.
23037 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23039 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23041 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23042 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23043 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23045 # Commands to make compiler produce verbose output that lists
23046 # what "hidden" libraries, object files and flags are used when
23047 # linking a shared library.
23048 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23051 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
23053 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
23055 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23063 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
23064 no_undefined_flag_CXX
='${wl}-z,text'
23065 archive_cmds_need_lc_CXX
=no
23066 hardcode_shlibpath_var_CXX
=no
23067 runpath_var
='LD_RUN_PATH'
23069 case $cc_basename in
23071 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23072 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23075 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23076 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23081 sysv5
* | sco3.2v5
* | sco5v6
*)
23082 # Note: We can NOT use -z defs as we might desire, because we do not
23083 # link with -lc, and that would cause any symbols used from libc to
23084 # always be unresolved, which means just about no library would
23085 # ever link correctly. If we're not using GNU ld we use -z text
23086 # though, which does catch some bad symbols but isn't as heavy-handed
23088 no_undefined_flag_CXX
='${wl}-z,text'
23089 allow_undefined_flag_CXX
='${wl}-z,nodefs'
23090 archive_cmds_need_lc_CXX
=no
23091 hardcode_shlibpath_var_CXX
=no
23092 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
23093 hardcode_libdir_separator_CXX
=':'
23094 link_all_deplibs_CXX
=yes
23095 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
23096 runpath_var
='LD_RUN_PATH'
23098 case $cc_basename in
23100 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23101 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23102 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
23103 '"$old_archive_cmds_CXX"
23104 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
23105 '"$reload_cmds_CXX"
23108 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23109 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23115 case $cc_basename in
23117 # NonStop-UX NCC 3.20
23118 # FIXME: insert proper C++ library support
23122 # FIXME: insert proper C++ library support
23129 # For VxWorks ports, we assume the use of a GNU linker with
23130 # standard elf conventions.
23135 # FIXME: insert proper C++ library support
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23141 $as_echo "$ld_shlibs_CXX" >&6; }
23142 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23148 ## There is no encapsulation within the following macros, do not change
23149 ## the running order or otherwise move them around unless you know exactly
23150 ## what you are doing...
23151 # Dependencies to place before and after the object being linked:
23152 predep_objects_CXX
=
23153 postdep_objects_CXX
=
23156 compiler_lib_search_path_CXX
=
23158 cat > conftest.
$ac_ext <<_LT_EOF
23162 Foo (void) { a = 0; }
23168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23169 (eval $ac_compile) 2>&5
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; then
23173 # Parse the compiler output and extract the necessary
23174 # objects, libraries and library flags.
23176 # Sentinel used to keep track of whether or not we are before
23177 # the conftest object file.
23178 pre_test_object_deps_done
=no
23180 for p
in `eval "$output_verbose_link_cmd"`; do
23184 # Some compilers place space between "-{L,R}" and the path.
23185 # Remove the space.
23186 if test $p = "-L" ||
23187 test $p = "-R"; then
23194 if test "$pre_test_object_deps_done" = no
; then
23197 # Internal compiler library paths should come after those
23198 # provided the user. The postdeps already come after the
23199 # user supplied libs so there is no need to process them.
23200 if test -z "$compiler_lib_search_path_CXX"; then
23201 compiler_lib_search_path_CXX
="${prev}${p}"
23203 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
23206 # The "-l" case would never come before the object being
23207 # linked, so don't bother handling this case.
23210 if test -z "$postdeps_CXX"; then
23211 postdeps_CXX
="${prev}${p}"
23213 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
23219 # This assumes that the test object file only shows up
23220 # once in the compiler output.
23221 if test "$p" = "conftest.$objext"; then
23222 pre_test_object_deps_done
=yes
23226 if test "$pre_test_object_deps_done" = no
; then
23227 if test -z "$predep_objects_CXX"; then
23228 predep_objects_CXX
="$p"
23230 predep_objects_CXX
="$predep_objects_CXX $p"
23233 if test -z "$postdep_objects_CXX"; then
23234 postdep_objects_CXX
="$p"
23236 postdep_objects_CXX
="$postdep_objects_CXX $p"
23241 *) ;; # Ignore the rest.
23249 echo "libtool.m4: error: problem compiling CXX test program"
23252 $RM -f confest.
$objext
23254 # PORTME: override above test on systems where it is broken
23257 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23258 # hack all around it, let's just trust "g++" to DTRT.
23259 predep_objects_CXX
=
23260 postdep_objects_CXX
=
23265 case `$CC -V 2>&1 | sed 5q` in
23269 # The more standards-conforming stlport4 library is
23270 # incompatible with the Cstd library. Avoid specifying
23271 # it if it's in CXXFLAGS. Ignore libCrun as
23272 # -library=stlport4 depends on it.
23273 case " $CXX $CXXFLAGS " in
23274 *" -library=stlport4 "*)
23275 solaris_use_stlport4
=yes
23279 if test "$solaris_use_stlport4" != yes; then
23280 postdeps_CXX
='-library=Cstd -library=Crun'
23287 case $cc_basename in
23289 # The more standards-conforming stlport4 library is
23290 # incompatible with the Cstd library. Avoid specifying
23291 # it if it's in CXXFLAGS. Ignore libCrun as
23292 # -library=stlport4 depends on it.
23293 case " $CXX $CXXFLAGS " in
23294 *" -library=stlport4 "*)
23295 solaris_use_stlport4
=yes
23299 # Adding this requires a known-good setup of shared libraries for
23300 # Sun compiler versions before 5.6, else PIC objects from an old
23301 # archive will be linked into the output, leading to subtle bugs.
23302 if test "$solaris_use_stlport4" != yes; then
23303 postdeps_CXX
='-library=Cstd -library=Crun'
23311 case " $postdeps_CXX " in
23312 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
23314 compiler_lib_search_dirs_CXX
=
23315 if test -n "${compiler_lib_search_path_CXX}"; then
23316 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23349 lt_prog_compiler_wl_CXX
=
23350 lt_prog_compiler_pic_CXX
=
23351 lt_prog_compiler_static_CXX
=
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23356 # C++ specific cases for pic, static, wl, etc.
23357 if test "$GXX" = yes; then
23358 lt_prog_compiler_wl_CXX
='-Wl,'
23359 lt_prog_compiler_static_CXX
='-static'
23363 # All AIX code is PIC.
23364 if test "$host_cpu" = ia64
; then
23365 # AIX 5 now supports IA64 processor
23366 lt_prog_compiler_static_CXX
='-Bstatic'
23368 lt_prog_compiler_pic_CXX
='-fPIC'
23374 # see comment about AmigaOS4 .so support
23375 lt_prog_compiler_pic_CXX
='-fPIC'
23378 # FIXME: we need at least 68020 code to build shared libraries, but
23379 # adding the `-m68020' flag to GCC prevents building anything better,
23381 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
23386 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
23387 # PIC is the default for these OSes.
23389 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
23390 # This hack is so that the source file can tell whether it is being
23391 # built for inclusion in a dll (and should export symbols for example).
23392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23393 # (--disable-auto-import) libraries
23394 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
23396 darwin
* | rhapsody
*)
23397 # PIC is the default on this platform
23398 # Common symbols not allowed in MH_DYLIB files
23399 lt_prog_compiler_pic_CXX
='-fno-common'
23402 # DJGPP does not support shared libraries at all
23403 lt_prog_compiler_pic_CXX
=
23406 # PIC is the default for Haiku.
23407 # The "-static" flag exists, but is broken.
23408 lt_prog_compiler_static_CXX
=
23411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23412 # Instead, we relocate shared libraries at runtime.
23415 if test -d /usr
/nec
; then
23416 lt_prog_compiler_pic_CXX
=-Kconform_pic
23420 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23421 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23422 # sets the default TLS model and affects inlining.
23427 lt_prog_compiler_pic_CXX
='-fPIC'
23432 # QNX uses GNU C++, but need to define -shared option too, otherwise
23433 # it will coredump.
23434 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23437 lt_prog_compiler_pic_CXX
='-fPIC'
23443 # All AIX code is PIC.
23444 if test "$host_cpu" = ia64
; then
23445 # AIX 5 now supports IA64 processor
23446 lt_prog_compiler_static_CXX
='-Bstatic'
23448 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
23452 case $cc_basename in
23454 # Green Hills C++ Compiler
23455 # _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"
23460 case $cc_basename in
23462 lt_prog_compiler_pic_CXX
='-KPIC'
23465 # Green Hills C++ Compiler
23466 lt_prog_compiler_pic_CXX
='-pic'
23472 freebsd
* | dragonfly
*)
23473 # FreeBSD uses GNU C++
23475 hpux9
* | hpux10
* | hpux11
*)
23476 case $cc_basename in
23478 lt_prog_compiler_wl_CXX
='-Wl,'
23479 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23480 if test "$host_cpu" != ia64
; then
23481 lt_prog_compiler_pic_CXX
='+Z'
23485 lt_prog_compiler_wl_CXX
='-Wl,'
23486 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
23492 lt_prog_compiler_pic_CXX
='+Z'
23501 # This is c89, which is MS Visual C++ (no shared libs)
23502 # Anyone wants to do a port?
23504 irix5
* | irix6
* | nonstopux
*)
23505 case $cc_basename in
23507 lt_prog_compiler_wl_CXX
='-Wl,'
23508 lt_prog_compiler_static_CXX
='-non_shared'
23509 # CC pic flag -KPIC is the default.
23515 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
23516 case $cc_basename in
23519 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23520 lt_prog_compiler_pic_CXX
='-fPIC'
23523 # old Intel C++ for x86_64 which still supported -KPIC.
23524 lt_prog_compiler_wl_CXX
='-Wl,'
23525 lt_prog_compiler_pic_CXX
='-KPIC'
23526 lt_prog_compiler_static_CXX
='-static'
23529 # Intel C++, used to be incompatible with GCC.
23530 # ICC 10 doesn't accept -KPIC any more.
23531 lt_prog_compiler_wl_CXX
='-Wl,'
23532 lt_prog_compiler_pic_CXX
='-fPIC'
23533 lt_prog_compiler_static_CXX
='-static'
23536 # Portland Group C++ compiler
23537 lt_prog_compiler_wl_CXX
='-Wl,'
23538 lt_prog_compiler_pic_CXX
='-fpic'
23539 lt_prog_compiler_static_CXX
='-Bstatic'
23543 # Make sure the PIC flag is empty. It appears that all Alpha
23544 # Linux and Compaq Tru64 Unix objects are PIC.
23545 lt_prog_compiler_pic_CXX
=
23546 lt_prog_compiler_static_CXX
='-non_shared'
23548 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
23549 # IBM XL 8.0, 9.0 on PPC and BlueGene
23550 lt_prog_compiler_wl_CXX
='-Wl,'
23551 lt_prog_compiler_pic_CXX
='-qpic'
23552 lt_prog_compiler_static_CXX
='-qstaticlink'
23555 case `$CC -V 2>&1 | sed 5q` in
23558 lt_prog_compiler_pic_CXX
='-KPIC'
23559 lt_prog_compiler_static_CXX
='-Bstatic'
23560 lt_prog_compiler_wl_CXX
='-Qoption ld '
23571 case $cc_basename in
23573 lt_prog_compiler_pic_CXX
='-W c,exportall'
23582 # QNX uses GNU C++, but need to define -shared option too, otherwise
23583 # it will coredump.
23584 lt_prog_compiler_pic_CXX
='-fPIC -shared'
23586 osf3
* | osf4
* | osf5
*)
23587 case $cc_basename in
23589 lt_prog_compiler_wl_CXX
='--backend -Wl,'
23592 # Rational C++ 2.4.1
23593 lt_prog_compiler_pic_CXX
='-pic'
23596 # Digital/Compaq C++
23597 lt_prog_compiler_wl_CXX
='-Wl,'
23598 # Make sure the PIC flag is empty. It appears that all Alpha
23599 # Linux and Compaq Tru64 Unix objects are PIC.
23600 lt_prog_compiler_pic_CXX
=
23601 lt_prog_compiler_static_CXX
='-non_shared'
23610 case $cc_basename in
23612 # Sun C++ 4.2, 5.x and Centerline C++
23613 lt_prog_compiler_pic_CXX
='-KPIC'
23614 lt_prog_compiler_static_CXX
='-Bstatic'
23615 lt_prog_compiler_wl_CXX
='-Qoption ld '
23618 # Green Hills C++ Compiler
23619 lt_prog_compiler_pic_CXX
='-PIC'
23626 case $cc_basename in
23629 lt_prog_compiler_pic_CXX
='-pic'
23630 lt_prog_compiler_static_CXX
='-Bstatic'
23634 lt_prog_compiler_pic_CXX
='-pic'
23640 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23641 case $cc_basename in
23643 lt_prog_compiler_wl_CXX
='-Wl,'
23644 lt_prog_compiler_pic_CXX
='-KPIC'
23645 lt_prog_compiler_static_CXX
='-Bstatic'
23650 case $cc_basename in
23652 # NonStop-UX NCC 3.20
23653 lt_prog_compiler_pic_CXX
='-KPIC'
23662 lt_prog_compiler_can_build_shared_CXX
=no
23668 # For platforms which do not support PIC, -DPIC is meaningless:
23670 lt_prog_compiler_pic_CXX
=
23673 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23677 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23682 # Check to make sure the PIC flag actually works.
23684 if test -n "$lt_prog_compiler_pic_CXX"; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23686 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23687 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
23688 $as_echo_n "(cached) " >&6
23690 lt_cv_prog_compiler_pic_works_CXX
=no
23691 ac_outfile
=conftest.
$ac_objext
23692 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23693 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
23694 # Insert the option either (1) after the last *FLAGS variable, or
23695 # (2) before a word containing "conftest.", or (3) at the end.
23696 # Note that $ac_compile itself does not contain backslashes and begins
23697 # with a dollar sign (not a hyphen), so the echo should work correctly.
23698 # The option is referenced via a variable to avoid confusing sed.
23699 lt_compile
=`echo "$ac_compile" | $SED \
23700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23702 -e 's:$: $lt_compiler_flag:'`
23703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23704 (eval "$lt_compile" 2>conftest.err
)
23706 cat conftest.err
>&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 if (exit $ac_status) && test -s "$ac_outfile"; then
23709 # The compiler can only warn and ignore the option if not recognized
23710 # So say no if there are warnings other than the usual output.
23711 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
23712 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23713 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23714 lt_cv_prog_compiler_pic_works_CXX
=yes
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23721 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23723 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
23724 case $lt_prog_compiler_pic_CXX in
23726 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
23729 lt_prog_compiler_pic_CXX
=
23730 lt_prog_compiler_can_build_shared_CXX
=no
23738 # Check to make sure the static flag actually works.
23740 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23743 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
23744 $as_echo_n "(cached) " >&6
23746 lt_cv_prog_compiler_static_works_CXX
=no
23747 save_LDFLAGS
="$LDFLAGS"
23748 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23749 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
23750 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23751 # The linker can only warn and ignore the option if not recognized
23752 # So say no if there are warnings
23753 if test -s conftest.err
; then
23754 # Append any errors to the config.log.
23755 cat conftest.err
1>&5
23756 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
23757 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23758 if diff conftest.exp conftest.er2
>/dev
/null
; then
23759 lt_cv_prog_compiler_static_works_CXX
=yes
23762 lt_cv_prog_compiler_static_works_CXX
=yes
23766 LDFLAGS
="$save_LDFLAGS"
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23770 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23772 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
23775 lt_prog_compiler_static_CXX
=
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23783 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23784 $as_echo_n "(cached) " >&6
23786 lt_cv_prog_compiler_c_o_CXX
=no
23787 $RM -r conftest
2>/dev
/null
23791 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23793 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23794 # Insert the option either (1) after the last *FLAGS variable, or
23795 # (2) before a word containing "conftest.", or (3) at the end.
23796 # Note that $ac_compile itself does not contain backslashes and begins
23797 # with a dollar sign (not a hyphen), so the echo should work correctly.
23798 lt_compile
=`echo "$ac_compile" | $SED \
23799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23801 -e 's:$: $lt_compiler_flag:'`
23802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23803 (eval "$lt_compile" 2>out
/conftest.err
)
23805 cat out
/conftest.err
>&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23809 # The compiler can only warn and ignore the option if not recognized
23810 # So say no if there are warnings
23811 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
23812 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23813 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23814 lt_cv_prog_compiler_c_o_CXX
=yes
23819 # SGI C++ compiler will create directory out/ii_files/ for
23820 # template instantiation
23821 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23822 $RM out
/* && rmdir out
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23829 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23835 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
23836 $as_echo_n "(cached) " >&6
23838 lt_cv_prog_compiler_c_o_CXX
=no
23839 $RM -r conftest
2>/dev
/null
23843 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23845 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23846 # Insert the option either (1) after the last *FLAGS variable, or
23847 # (2) before a word containing "conftest.", or (3) at the end.
23848 # Note that $ac_compile itself does not contain backslashes and begins
23849 # with a dollar sign (not a hyphen), so the echo should work correctly.
23850 lt_compile
=`echo "$ac_compile" | $SED \
23851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23853 -e 's:$: $lt_compiler_flag:'`
23854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23855 (eval "$lt_compile" 2>out
/conftest.err
)
23857 cat out
/conftest.err
>&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23861 # The compiler can only warn and ignore the option if not recognized
23862 # So say no if there are warnings
23863 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
23864 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23865 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23866 lt_cv_prog_compiler_c_o_CXX
=yes
23871 # SGI C++ compiler will create directory out/ii_files/ for
23872 # template instantiation
23873 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
23874 $RM out
/* && rmdir out
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23881 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23886 hard_links
="nottested"
23887 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
23888 # do not overwrite the value of need_locks provided by the user
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23890 $as_echo_n "checking if we can lock with hard links... " >&6; }
23893 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23895 ln conftest.a conftest.b
2>&5 || hard_links
=no
23896 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23898 $as_echo "$hard_links" >&6; }
23899 if test "$hard_links" = no
; then
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23901 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23913 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23916 # If we're using GNU nm, then we don't want the "-C" option.
23917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23918 # Also, AIX nm treats weak defined symbols like other global defined
23919 # symbols, whereas GNU nm marks them as "W".
23920 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
23921 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'
23923 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'
23927 export_symbols_cmds_CXX
="$ltdll_cmds"
23929 cygwin
* | mingw
* | cegcc
*)
23930 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'
23933 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23936 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23939 $as_echo "$ld_shlibs_CXX" >&6; }
23940 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
23942 with_gnu_ld_CXX
=$with_gnu_ld
23950 # Do we need to explicitly link libc?
23952 case "x$archive_cmds_need_lc_CXX" in
23954 # Assume -lc should be added
23955 archive_cmds_need_lc_CXX
=yes
23957 if test "$enable_shared" = yes && test "$GCC" = yes; then
23958 case $archive_cmds_CXX in
23960 # FIXME: we may have to deal with multi-command sequences.
23963 # Test whether the compiler implicitly links with -lc since on some
23964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23965 # to ld, don't add -lc before -lgcc.
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23967 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23968 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
23969 $as_echo_n "(cached) " >&6
23972 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
23974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23975 (eval $ac_compile) 2>&5
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; } 2>conftest.err
; then
23981 libobjs
=conftest.
$ac_objext
23983 wl
=$lt_prog_compiler_wl_CXX
23984 pic_flag
=$lt_prog_compiler_pic_CXX
23990 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
23991 allow_undefined_flag_CXX
=
23992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23993 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }
23998 lt_cv_archive_cmds_need_lc_CXX
=no
24000 lt_cv_archive_cmds_need_lc_CXX
=yes
24002 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
24004 cat conftest.err
1>&5
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24010 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24011 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24084 library_names_spec
=
24085 libname_spec
='lib$name'
24089 postuninstall_cmds
=
24093 shlibpath_overrides_runpath
=unknown
24095 dynamic_linker
="$host_os ld.so"
24096 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24097 need_lib_prefix
=unknown
24098 hardcode_into_libs
=no
24100 # when you set need_version to no, make sure it does not cause -set_version
24101 # flags to be left without arguments
24102 need_version
=unknown
24107 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24108 shlibpath_var
=LIBPATH
24110 # AIX 3 has no versioning support, so we append a major version to the name.
24111 soname_spec
='${libname}${release}${shared_ext}$major'
24118 hardcode_into_libs
=yes
24119 if test "$host_cpu" = ia64
; then
24120 # AIX 5 supports IA64
24121 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24122 shlibpath_var
=LD_LIBRARY_PATH
24124 # With GCC up to 2.95.x, collect2 would create an import file
24125 # for dependence libraries. The import file would start with
24126 # the line `#! .'. This would cause the generated library to
24127 # depend on `.', always an invalid library. This was fixed in
24128 # development snapshots of GCC prior to 3.0.
24130 aix4 | aix4.
[01] | aix4.
[01].
*)
24131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24133 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
24136 can_build_shared
=no
24140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24141 # soname into executable. Probably we can add versioning support to
24142 # collect2, so additional links can be useful in future.
24143 if test "$aix_use_runtimelinking" = yes; then
24144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24145 # instead of lib<name>.a to let people know that these are not
24146 # typical AIX shared libraries.
24147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24149 # We preserve .a as extension for shared libraries through AIX4.2
24150 # and later when we are not doing run time linking.
24151 library_names_spec
='${libname}${release}.a $libname.a'
24152 soname_spec
='${libname}${release}${shared_ext}$major'
24154 shlibpath_var
=LIBPATH
24161 # Since July 2007 AmigaOS4 officially supports .so libraries.
24162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24166 library_names_spec
='$libname.ixlibrary $libname.a'
24167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24168 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'
24174 library_names_spec
='${libname}${shared_ext}'
24175 dynamic_linker
="$host_os ld.so"
24176 shlibpath_var
=LIBRARY_PATH
24182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24183 soname_spec
='${libname}${release}${shared_ext}$major'
24184 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
24185 shlibpath_var
=LD_LIBRARY_PATH
24186 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24187 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
24188 # the default ld.so.conf also contains /usr/contrib/lib and
24189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24190 # libtool to hard-code these into programs
24193 cygwin
* | mingw
* | pw32
* | cegcc
*)
24194 version_type
=windows
24199 case $GCC,$host_os in
24200 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
24201 library_names_spec
='$libname.dll.a'
24202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24203 postinstall_cmds
='base_file=`basename \${file}`~
24204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24205 dldir=$destdir/`dirname \$dlpath`~
24206 test -d \$dldir || mkdir -p \$dldir~
24207 $install_prog $dir/$dlname \$dldir/$dlname~
24208 chmod a+x \$dldir/$dlname~
24209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24212 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24213 dlpath=$dir/\$dldll~
24215 shlibpath_overrides_runpath
=yes
24219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24220 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24224 # MinGW DLLs use traditional 'lib' prefix
24225 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24228 # pw32 DLLs use 'pw' prefix rather than 'lib'
24229 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24235 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24238 dynamic_linker
='Win32 ld.exe'
24239 # FIXME: first we should search . and the directory the executable is in
24243 darwin
* | rhapsody
*)
24244 dynamic_linker
="$host_os dyld"
24245 version_type
=darwin
24248 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24249 soname_spec
='${libname}${release}${major}$shared_ext'
24250 shlibpath_overrides_runpath
=yes
24251 shlibpath_var
=DYLD_LIBRARY_PATH
24252 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
24254 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
24261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24262 soname_spec
='${libname}${release}${shared_ext}$major'
24263 shlibpath_var
=LD_LIBRARY_PATH
24266 freebsd
* | dragonfly
*)
24267 # DragonFly does not have aout. When/if they implement a new
24268 # versioning mechanism, adjust this.
24269 if test -x /usr
/bin
/objformat
; then
24270 objformat
=`/usr/bin/objformat`
24273 freebsd
[23].
*) objformat
=aout
;;
24274 *) objformat
=elf
;;
24277 version_type
=freebsd-
$objformat
24278 case $version_type in
24280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24285 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24289 shlibpath_var
=LD_LIBRARY_PATH
24292 shlibpath_overrides_runpath
=yes
24294 freebsd3.
[01]* | freebsdelf3.
[01]*)
24295 shlibpath_overrides_runpath
=yes
24296 hardcode_into_libs
=yes
24298 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
24299 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
24300 shlibpath_overrides_runpath
=no
24301 hardcode_into_libs
=yes
24303 *) # from 4.6 on, and DragonFly
24304 shlibpath_overrides_runpath
=yes
24305 hardcode_into_libs
=yes
24314 dynamic_linker
="$host_os runtime_loader"
24315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24316 soname_spec
='${libname}${release}${shared_ext}$major'
24317 shlibpath_var
=LIBRARY_PATH
24318 shlibpath_overrides_runpath
=yes
24319 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24320 hardcode_into_libs
=yes
24323 hpux9
* | hpux10
* | hpux11
*)
24324 # Give a soname corresponding to the major version so that dld.sl refuses to
24325 # link against other versions.
24332 hardcode_into_libs
=yes
24333 dynamic_linker
="$host_os dld.so"
24334 shlibpath_var
=LD_LIBRARY_PATH
24335 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24337 soname_spec
='${libname}${release}${shared_ext}$major'
24338 if test "X$HPUX_IA64_MODE" = X32
; then
24339 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24341 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24343 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24347 hardcode_into_libs
=yes
24348 dynamic_linker
="$host_os dld.sl"
24349 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24350 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24352 soname_spec
='${libname}${release}${shared_ext}$major'
24353 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24354 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24358 dynamic_linker
="$host_os dld.sl"
24359 shlibpath_var
=SHLIB_PATH
24360 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24362 soname_spec
='${libname}${release}${shared_ext}$major'
24365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24366 postinstall_cmds
='chmod 555 $lib'
24367 # or fails outright, so override atomically:
24368 install_override_mode
=555
24375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24376 soname_spec
='${libname}${release}${shared_ext}$major'
24377 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24378 shlibpath_var
=LD_LIBRARY_PATH
24379 shlibpath_overrides_runpath
=no
24380 hardcode_into_libs
=yes
24383 irix5
* | irix6
* | nonstopux
*)
24385 nonstopux
*) version_type
=nonstopux
;;
24387 if test "$lt_cv_prog_gnu_ld" = yes; then
24395 soname_spec
='${libname}${release}${shared_ext}$major'
24396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24398 irix5
* | nonstopux
*)
24399 libsuff
= shlibsuff
=
24402 case $LD in # libtool.m4 will add one of these switches to LD
24403 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24404 libsuff
= shlibsuff
= libmagic
=32-bit;;
24405 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24406 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24407 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24408 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24409 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24413 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24414 shlibpath_overrides_runpath
=no
24415 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24416 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24417 hardcode_into_libs
=yes
24420 # No shared lib support for Linux oldld, aout, or coff.
24421 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24425 # This must be Linux ELF.
24427 # uclinux* changes (here and below) have been submitted to the libtool
24428 # project, but have not yet been accepted: they are GCC-local changes
24429 # for the time being. (See
24430 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24431 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
24435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24436 soname_spec
='${libname}${release}${shared_ext}$major'
24437 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24438 shlibpath_var
=LD_LIBRARY_PATH
24439 shlibpath_overrides_runpath
=no
24441 # Some binutils ld are patched to set DT_RUNPATH
24442 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
24443 $as_echo_n "(cached) " >&6
24445 lt_cv_shlibpath_overrides_runpath
=no
24446 save_LDFLAGS
=$LDFLAGS
24447 save_libdir
=$libdir
24448 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24449 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24461 if ac_fn_cxx_try_link
"$LINENO"; then :
24462 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
24463 lt_cv_shlibpath_overrides_runpath
=yes
24466 rm -f core conftest.err conftest.
$ac_objext \
24467 conftest
$ac_exeext conftest.
$ac_ext
24468 LDFLAGS
=$save_LDFLAGS
24469 libdir
=$save_libdir
24473 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
24475 # This implies no fast_install, which is unacceptable.
24476 # Some rework will be needed to allow for fast_install
24477 # before this can be enabled.
24478 hardcode_into_libs
=yes
24480 # Append ld.so.conf contents to the search path
24481 if test -f /etc
/ld.so.conf
; then
24482 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' ' '`
24483 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24486 # We used to test for /lib/ld.so.1 and disable shared libraries on
24487 # powerpc, because MkLinux only supported shared libraries with the
24488 # GNU dynamic linker. Since this was broken with cross compilers,
24489 # most powerpc-linux boxes support dynamic linking these days and
24490 # people can always --disable-shared, the test was removed, and we
24491 # assume the GNU/Linux dynamic linker is in use.
24492 dynamic_linker
='GNU/Linux ld.so'
24499 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
24500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24501 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24502 dynamic_linker
='NetBSD (a.out) ld.so'
24504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24505 soname_spec
='${libname}${release}${shared_ext}$major'
24506 dynamic_linker
='NetBSD ld.elf_so'
24508 shlibpath_var
=LD_LIBRARY_PATH
24509 shlibpath_overrides_runpath
=yes
24510 hardcode_into_libs
=yes
24515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24516 shlibpath_var
=LD_LIBRARY_PATH
24517 shlibpath_overrides_runpath
=yes
24524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24525 soname_spec
='${libname}${release}${shared_ext}$major'
24526 shlibpath_var
=LD_LIBRARY_PATH
24527 shlibpath_overrides_runpath
=no
24528 hardcode_into_libs
=yes
24529 dynamic_linker
='ldqnx.so'
24534 sys_lib_dlsearch_path_spec
="/usr/lib"
24536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24538 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24539 *) need_version
=no
;;
24541 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24542 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24543 shlibpath_var
=LD_LIBRARY_PATH
24544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24546 openbsd2.
[89] | openbsd2.
[89].
*)
24547 shlibpath_overrides_runpath
=no
24550 shlibpath_overrides_runpath
=yes
24554 shlibpath_overrides_runpath
=yes
24559 libname_spec
='$name'
24562 library_names_spec
='$libname${shared_ext} $libname.a'
24563 dynamic_linker
='OS/2 ld.exe'
24564 shlibpath_var
=LIBPATH
24567 osf3
* | osf4
* | osf5
*)
24571 soname_spec
='${libname}${release}${shared_ext}$major'
24572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24573 shlibpath_var
=LD_LIBRARY_PATH
24574 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24575 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24587 soname_spec
='${libname}${release}${shared_ext}$major'
24588 shlibpath_var
=LD_LIBRARY_PATH
24589 shlibpath_overrides_runpath
=yes
24590 hardcode_into_libs
=yes
24591 # ldd complains unless libraries are executable
24592 postinstall_cmds
='chmod +x $lib'
24597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24598 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24599 shlibpath_var
=LD_LIBRARY_PATH
24600 shlibpath_overrides_runpath
=yes
24601 if test "$with_gnu_ld" = yes; then
24609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24610 soname_spec
='${libname}${release}${shared_ext}$major'
24611 shlibpath_var
=LD_LIBRARY_PATH
24612 case $host_vendor in
24614 shlibpath_overrides_runpath
=no
24616 runpath_var
=LD_RUN_PATH
24624 shlibpath_overrides_runpath
=no
24625 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24631 if test -d /usr
/nec
;then
24633 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24634 soname_spec
='$libname${shared_ext}.$major'
24635 shlibpath_var
=LD_LIBRARY_PATH
24639 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24640 version_type
=freebsd-elf
24643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24644 soname_spec
='${libname}${release}${shared_ext}$major'
24645 shlibpath_var
=LD_LIBRARY_PATH
24646 shlibpath_overrides_runpath
=yes
24647 hardcode_into_libs
=yes
24648 if test "$with_gnu_ld" = yes; then
24649 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24651 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24654 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24658 sys_lib_dlsearch_path_spec
='/usr/lib'
24662 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24667 shlibpath_var
=LD_LIBRARY_PATH
24668 shlibpath_overrides_runpath
=no
24669 hardcode_into_libs
=yes
24674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24675 soname_spec
='${libname}${release}${shared_ext}$major'
24676 shlibpath_var
=LD_LIBRARY_PATH
24679 # Shared libraries for VwWorks, >= 7 only at this stage
24680 # and (fpic) still incompatible with "large" code models
24681 # in a few configurations. Only for RTP mode in any case,
24682 # and upon explicit request at configure time.
24685 case ${with_multisubdir}-${enable_shared} in
24692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24693 soname_spec
='${libname}${release}${shared_ext}$major'
24694 dynamic_linker
="$host_os module_loader"
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24703 $as_echo "$dynamic_linker" >&6; }
24704 test "$dynamic_linker" = no
&& can_build_shared
=no
24706 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24707 if test "$GCC" = yes; then
24708 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24712 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
24714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24715 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24757 hardcode_action_CXX
=
24758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24759 test -n "$runpath_var_CXX" ||
24760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24762 # We can hardcode non-existent directories.
24763 if test "$hardcode_direct_CXX" != no
&&
24764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24765 # have to relink, otherwise we might link with an installed library
24766 # when we should be linking with a yet-to-be-installed one
24767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24768 test "$hardcode_minus_L_CXX" != no
; then
24769 # Linking always hardcodes the temporary library directory.
24770 hardcode_action_CXX
=relink
24772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24773 hardcode_action_CXX
=immediate
24776 # We cannot hardcode anything, or else we can only hardcode existing
24778 hardcode_action_CXX
=unsupported
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24781 $as_echo "$hardcode_action_CXX" >&6; }
24783 if test "$hardcode_action_CXX" = relink ||
24784 test "$inherit_rpath_CXX" = yes; then
24785 # Fast installation is not supported
24786 enable_fast_install
=no
24787 elif test "$shlibpath_overrides_runpath" = yes ||
24788 test "$enable_shared" = no
; then
24789 # Fast installation is not necessary
24790 enable_fast_install
=needless
24799 fi # test -n "$compiler"
24805 with_gnu_ld
=$lt_save_with_gnu_ld
24806 lt_cv_path_LDCXX
=$lt_cv_path_LD
24807 lt_cv_path_LD
=$lt_save_path_LD
24808 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
24809 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
24810 fi # test "$_lt_caught_CXX_error" != yes
24813 ac_cpp
='$CXXCPP $CPPFLAGS'
24814 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24815 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24816 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24833 # Only expand once:
24839 if test x
$enable_darwin_at_rpath = xyes
; then
24840 ENABLE_DARWIN_AT_RPATH_TRUE
=
24841 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
24843 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
24844 ENABLE_DARWIN_AT_RPATH_FALSE
=
24847 DARWIN_DO_EXTRA_RPATH
=0
24849 # Check whether --with-darwin-extra-rpath was given.
24850 if test "${with_darwin_extra_rpath+set}" = set; then :
24851 withval
=$with_darwin_extra_rpath; if test x
"$withval" != x
; then
24852 DARWIN_ADD_RPATH
="$withval"
24853 DARWIN_DO_EXTRA_RPATH
=1
24858 cat >>confdefs.h
<<_ACEOF
24859 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24863 cat >>confdefs.h
<<_ACEOF
24864 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24868 # Identify the assembler which will work hand-in-glove with the newly
24869 # built GCC, so that we can examine its features. This is the assembler
24870 # which will be driven by the driver program.
24872 # If build != host, and we aren't building gas in-tree, we identify a
24873 # build->target assembler and hope that it will have the same features
24874 # as the host->target assembler we'll be using.
24875 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24877 if ${gcc_cv_as+:} false
; then :
24881 if test -x "$DEFAULT_ASSEMBLER"; then
24882 gcc_cv_as
="$DEFAULT_ASSEMBLER"
24883 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24884 && test -f ..
/gas
/Makefile \
24885 && test x
$build = x
$host; then
24886 gcc_cv_as
=..
/gas
/as-new
$build_exeext
24887 elif test -x as
$build_exeext; then
24888 # Build using assembler in the current directory.
24889 gcc_cv_as
=.
/as
$build_exeext
24890 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
24891 gcc_cv_as
="$AS_FOR_TARGET"
24893 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24894 set dummy
$AS_FOR_TARGET; ac_word
=$2
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24896 $as_echo_n "checking for $ac_word... " >&6; }
24897 if ${ac_cv_path_gcc_cv_as+:} false
; then :
24898 $as_echo_n "(cached) " >&6
24902 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
24905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24906 for as_dir
in $PATH
24909 test -z "$as_dir" && as_dir
=.
24910 for ac_exec_ext
in '' $ac_executable_extensions; do
24911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24912 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
24913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24923 gcc_cv_as
=$ac_cv_path_gcc_cv_as
24924 if test -n "$gcc_cv_as"; then
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24926 $as_echo "$gcc_cv_as" >&6; }
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24929 $as_echo "no" >&6; }
24936 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
24938 case "$ORIGINAL_AS_FOR_TARGET" in
24939 .
/as | .
/as
$build_exeext) ;;
24940 *) ac_config_files
="$ac_config_files as:exec-tool.in"
24945 # Check whether --enable-ld was given.
24946 if test "${enable_ld+set}" = set; then :
24947 enableval
=$enable_ld; case "${enableval}" in
24955 install_gold_as_default
=no
24956 # Check whether --enable-gold was given.
24957 if test "${enable_gold+set}" = set; then :
24958 enableval
=$enable_gold; case "${enableval}" in
24960 install_gold_as_default
=yes
24963 if test x
${default_ld} != x
; then
24964 install_gold_as_default
=yes
24970 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
24976 # Identify the linker which will work hand-in-glove with the newly
24977 # built GCC, so that we can examine its features. This is the linker
24978 # which will be driven by the driver program.
24980 # If build != host, and we aren't building gas in-tree, we identify a
24981 # build->target linker and hope that it will have the same features
24982 # as the host->target linker we'll be using.
24983 gcc_cv_gld_major_version
=
24984 gcc_cv_gld_minor_version
=
24985 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24986 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
24987 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24989 if ${gcc_cv_ld+:} false
; then :
24993 if test -x "$DEFAULT_LINKER"; then
24994 gcc_cv_ld
="$DEFAULT_LINKER"
24995 elif test $install_gold_as_default = yes \
24996 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
24997 && test -f ..
/gold
/Makefile \
24998 && test x
$build = x
$host; then
24999 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
25000 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25001 && test -f ..
/ld
/Makefile \
25002 && test x
$build = x
$host; then
25003 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
25004 elif test -x collect-ld
$build_exeext; then
25005 # Build using linker in the current directory.
25006 gcc_cv_ld
=.
/collect-ld
$build_exeext
25007 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
25008 gcc_cv_ld
="$LD_FOR_TARGET"
25010 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25011 set dummy
$LD_FOR_TARGET; ac_word
=$2
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25013 $as_echo_n "checking for $ac_word... " >&6; }
25014 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
25015 $as_echo_n "(cached) " >&6
25019 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
25022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25023 for as_dir
in $PATH
25026 test -z "$as_dir" && as_dir
=.
25027 for ac_exec_ext
in '' $ac_executable_extensions; do
25028 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25029 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
25030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25040 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
25041 if test -n "$gcc_cv_ld"; then
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25043 $as_echo "$gcc_cv_ld" >&6; }
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25053 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
25054 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25055 # if the PLUGIN_LD is set ld-new, just have it as ld
25056 # as that is the installed named.
25057 if test x
$PLUGIN_LD_SUFFIX = xld-new \
25058 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
25059 PLUGIN_LD_SUFFIX
=ld
25062 # Check whether --with-plugin-ld was given.
25063 if test "${with_plugin_ld+set}" = set; then :
25064 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
25065 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
25066 PLUGIN_LD_SUFFIX
="$withval"
25072 cat >>confdefs.h
<<_ACEOF
25073 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25077 # Check to see if we are using gold instead of ld
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25079 $as_echo_n "checking whether we are using gold... " >&6; }
25081 if test x
$gcc_cv_ld != x
; then
25082 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25083 |
grep "GNU gold" > /dev
/null
; then
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25088 $as_echo "$ld_is_gold" >&6; }
25090 # Check to see if we are using mold instead of ld
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25092 $as_echo_n "checking whether we are using mold... " >&6; }
25094 if test x
$gcc_cv_ld != x
; then
25095 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
25096 |
grep "mold" > /dev
/null
; then
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25101 $as_echo "$ld_is_mold" >&6; }
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25105 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25106 # Check to see if default ld is not gold, but gold is
25107 # available and has support for split stack. If gcc was configured
25108 # with gold then no checking is done.
25110 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
25112 # For platforms other than powerpc64*, enable as appropriate.
25114 gold_non_default
=no
25115 ld_gold
=`which ${gcc_cv_ld}.gold`
25116 # Make sure this gold has minimal split stack support
25117 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
25118 ld_vers
=`$ld_gold --version | sed 1q`
25119 gold_vers
=`echo $ld_vers | sed -n \
25120 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25122 # check that the gold version contains the complete split stack support
25123 # on powerpc64 big and little endian
25125 case "$gold_vers" in
25126 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
25128 *) gold_non_default
=no
25134 if test $gold_non_default = yes; then
25136 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25141 $as_echo "$gold_non_default" >&6; }
25143 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
25145 case "$ORIGINAL_LD_FOR_TARGET" in
25146 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
25147 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25152 $as_echo_n "checking what linker to use... " >&6; }
25153 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
25154 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
25155 # Single tree build which includes ld. We want to prefer it
25156 # over whatever linker top-level may have detected, since
25157 # we'll use what we're building after installation anyway.
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25159 $as_echo "newly built ld" >&6; }
25161 in_tree_ld_is_elf
=no
25162 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
25163 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
25164 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
25165 in_tree_ld_is_elf
=yes
25166 elif test "$ld_is_gold" = yes; then
25167 in_tree_ld_is_elf
=yes
25169 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
25171 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25172 if test x
$gcc_cv_gld_version != x
; then
25176 case $gcc_cv_gld_version in
25178 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
25180 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25181 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25182 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
25183 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25186 $as_echo "$gcc_cv_ld" >&6; }
25188 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25189 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
25190 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
25196 # Figure out what nm we will be using.
25197 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25198 if ${gcc_cv_nm+:} false
; then :
25202 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25203 && test -f ..
/binutils
/Makefile \
25204 && test x
$build = x
$host; then
25205 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
25206 elif test -x nm
$build_exeext; then
25207 gcc_cv_nm
=.
/nm
$build_exeext
25208 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
25209 gcc_cv_nm
="$NM_FOR_TARGET"
25211 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25212 set dummy
$NM_FOR_TARGET; ac_word
=$2
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25214 $as_echo_n "checking for $ac_word... " >&6; }
25215 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
25216 $as_echo_n "(cached) " >&6
25220 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
25223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25224 for as_dir
in $PATH
25227 test -z "$as_dir" && as_dir
=.
25228 for ac_exec_ext
in '' $ac_executable_extensions; do
25229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25230 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
25231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25241 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
25242 if test -n "$gcc_cv_nm"; then
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25244 $as_echo "$gcc_cv_nm" >&6; }
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25247 $as_echo "no" >&6; }
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25255 $as_echo_n "checking what nm to use... " >&6; }
25256 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
25257 # Single tree build which includes binutils.
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25259 $as_echo "newly built nm" >&6; }
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25263 $as_echo "$gcc_cv_nm" >&6; }
25267 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
25269 case "$ORIGINAL_NM_FOR_TARGET" in
25270 .
/nm | .
/nm
$build_exeext) ;;
25271 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
25276 # Figure out what objdump we will be using.
25277 if ${gcc_cv_objdump+:} false
; then :
25281 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25282 && test -f ..
/binutils
/Makefile \
25283 && test x
$build = x
$host; then
25284 # Single tree build which includes binutils.
25285 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
25286 elif test -x objdump
$build_exeext; then
25287 gcc_cv_objdump
=.
/objdump
$build_exeext
25288 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
25289 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
25291 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25292 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25294 $as_echo_n "checking for $ac_word... " >&6; }
25295 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
25296 $as_echo_n "(cached) " >&6
25298 case $gcc_cv_objdump in
25300 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
25303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25304 for as_dir
in $PATH
25307 test -z "$as_dir" && as_dir
=.
25308 for ac_exec_ext
in '' $ac_executable_extensions; do
25309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25310 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
25311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25321 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
25322 if test -n "$gcc_cv_objdump"; then
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25324 $as_echo "$gcc_cv_objdump" >&6; }
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25327 $as_echo "no" >&6; }
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25335 $as_echo_n "checking what objdump to use... " >&6; }
25336 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
25337 # Single tree build which includes binutils.
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25339 $as_echo "newly built objdump" >&6; }
25340 elif test x
$gcc_cv_objdump = x
; then
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25342 $as_echo "not found" >&6; }
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25345 $as_echo "$gcc_cv_objdump" >&6; }
25348 # Figure out what readelf we will be using.
25349 if ${gcc_cv_readelf+:} false
; then :
25353 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25354 && test -f ..
/binutils
/Makefile \
25355 && test x
$build = x
$host; then
25356 # Single tree build which includes binutils.
25357 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
25358 elif test -x readelf
$build_exeext; then
25359 gcc_cv_readelf
=.
/readelf
$build_exeext
25360 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
25361 gcc_cv_readelf
="$READELF_FOR_TARGET"
25363 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25364 set dummy
$READELF_FOR_TARGET; ac_word
=$2
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25366 $as_echo_n "checking for $ac_word... " >&6; }
25367 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
25368 $as_echo_n "(cached) " >&6
25370 case $gcc_cv_readelf in
25372 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
25375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25376 for as_dir
in $PATH
25379 test -z "$as_dir" && as_dir
=.
25380 for ac_exec_ext
in '' $ac_executable_extensions; do
25381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25382 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
25383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25393 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
25394 if test -n "$gcc_cv_readelf"; then
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25396 $as_echo "$gcc_cv_readelf" >&6; }
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25399 $as_echo "no" >&6; }
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25407 $as_echo_n "checking what readelf to use... " >&6; }
25408 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
25409 # Single tree build which includes binutils.
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25411 $as_echo "newly built readelf" >&6; }
25412 elif test x
$gcc_cv_readelf = x
; then
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25414 $as_echo "not found" >&6; }
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25417 $as_echo "$gcc_cv_readelf" >&6; }
25420 # Figure out what otool we will be using.
25421 if ${gcc_cv_otool+:} false
; then :
25425 if test -x otool
$build_exeext; then
25426 gcc_cv_otool
=.
/otool
$build_exeext
25427 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
25428 gcc_cv_otool
="$OTOOL_FOR_TARGET"
25430 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25431 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25433 $as_echo_n "checking for $ac_word... " >&6; }
25434 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
25435 $as_echo_n "(cached) " >&6
25437 case $gcc_cv_otool in
25439 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
25442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25443 for as_dir
in $PATH
25446 test -z "$as_dir" && as_dir
=.
25447 for ac_exec_ext
in '' $ac_executable_extensions; do
25448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25449 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
25450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25460 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
25461 if test -n "$gcc_cv_otool"; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25463 $as_echo "$gcc_cv_otool" >&6; }
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25474 $as_echo_n "checking what otool to use... " >&6; }
25475 if test x
$gcc_cv_otool = x
; then
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25477 $as_echo "not found" >&6; }
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25480 $as_echo "$gcc_cv_otool" >&6; }
25483 # Figure out the dsymutil we will use.
25484 if ${gcc_cv_dsymutil+:} false
; then :
25488 if test -x "$DEFAULT_DSYMUTIL"; then
25489 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
25490 elif test -x dsymutil
$build_exeext; then
25491 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
25492 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
25493 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
25494 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
25495 gcc_cv_dsymutil
=$DSYMUTIL
25497 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25498 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25500 $as_echo_n "checking for $ac_word... " >&6; }
25501 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
25502 $as_echo_n "(cached) " >&6
25504 case $gcc_cv_dsymutil in
25506 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
25509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25510 for as_dir
in $PATH
25513 test -z "$as_dir" && as_dir
=.
25514 for ac_exec_ext
in '' $ac_executable_extensions; do
25515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25516 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
25517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25527 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
25528 if test -n "$gcc_cv_dsymutil"; then
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25530 $as_echo "$gcc_cv_dsymutil" >&6; }
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25533 $as_echo "no" >&6; }
25540 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
25542 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25543 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
25544 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
25548 # Figure out what assembler alignment features are present.
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25550 $as_echo_n "checking assembler flags... " >&6; }
25551 if ${gcc_cv_as_flags+:} false
; then :
25552 $as_echo_n "(cached) " >&6
25555 i
[34567]86-*-linux*)
25556 gcc_cv_as_flags
=--32
25558 x86_64-
*-linux-gnux32)
25559 gcc_cv_as_flags
=--x32
25562 gcc_cv_as_flags
=--64
25564 powerpc
*-*-darwin*)
25565 gcc_cv_as_flags
="-arch ppc"
25568 gcc_cv_as_flags
=" "
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25573 $as_echo "$gcc_cv_as_flags" >&6; }
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25576 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25577 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
25578 $as_echo_n "(cached) " >&6
25580 gcc_cv_as_balign_and_p2align
=no
25581 if test x
$gcc_cv_as != x
; then
25582 $as_echo '.balign 4
25583 .p2align 2' > conftest.s
25584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25586 (eval $ac_try) 2>&5
25588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25589 test $ac_status = 0; }; }
25591 gcc_cv_as_balign_and_p2align
=yes
25593 echo "configure: failed program was" >&5
25596 rm -f conftest.o conftest.s
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25600 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25601 if test $gcc_cv_as_balign_and_p2align = yes; then
25603 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25609 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25610 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
25611 $as_echo_n "(cached) " >&6
25613 gcc_cv_as_max_skip_p2align
=no
25614 if test x
$gcc_cv_as != x
; then
25615 $as_echo '.p2align 4,,7' > conftest.s
25616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25623 gcc_cv_as_max_skip_p2align
=yes
25625 echo "configure: failed program was" >&5
25628 rm -f conftest.o conftest.s
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25632 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25633 if test $gcc_cv_as_max_skip_p2align = yes; then
25635 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25641 $as_echo_n "checking assembler for .literal16... " >&6; }
25642 if ${gcc_cv_as_literal16+:} false
; then :
25643 $as_echo_n "(cached) " >&6
25645 gcc_cv_as_literal16
=no
25646 if test x
$gcc_cv_as != x
; then
25647 $as_echo '.literal16' > conftest.s
25648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25655 gcc_cv_as_literal16
=yes
25657 echo "configure: failed program was" >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25664 $as_echo "$gcc_cv_as_literal16" >&6; }
25665 if test $gcc_cv_as_literal16 = yes; then
25667 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25673 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25674 if ${gcc_cv_as_subsection_m1+:} false
; then :
25675 $as_echo_n "(cached) " >&6
25677 gcc_cv_as_subsection_m1
=no
25678 if test x
$gcc_cv_as != x
; then
25679 $as_echo 'conftest_label1: .word 0
25681 conftest_label2: .word 0
25682 .previous' > conftest.s
25683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25690 if test x
$gcc_cv_nm != x
; then
25691 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
25692 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
25693 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
25695 else gcc_cv_as_subsection_m1
=yes
25697 rm -f conftest.nm1 conftest.nm2
25700 echo "configure: failed program was" >&5
25703 rm -f conftest.o conftest.s
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25707 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25708 if test $gcc_cv_as_subsection_m1 = yes; then
25710 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25716 $as_echo_n "checking assembler for .weak... " >&6; }
25717 if ${gcc_cv_as_weak+:} false
; then :
25718 $as_echo_n "(cached) " >&6
25721 if test x
$gcc_cv_as != x
; then
25722 $as_echo ' .weak foobar' > conftest.s
25723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25725 (eval $ac_try) 2>&5
25727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25728 test $ac_status = 0; }; }
25732 echo "configure: failed program was" >&5
25735 rm -f conftest.o conftest.s
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25739 $as_echo "$gcc_cv_as_weak" >&6; }
25740 if test $gcc_cv_as_weak = yes; then
25742 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25748 $as_echo_n "checking assembler for .weakref... " >&6; }
25749 if ${gcc_cv_as_weakref+:} false
; then :
25750 $as_echo_n "(cached) " >&6
25752 gcc_cv_as_weakref
=no
25753 if test x
$gcc_cv_as != x
; then
25754 $as_echo ' .weakref foobar, barfnot' > conftest.s
25755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25762 gcc_cv_as_weakref
=yes
25764 echo "configure: failed program was" >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25771 $as_echo "$gcc_cv_as_weakref" >&6; }
25772 if test $gcc_cv_as_weakref = yes; then
25774 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25780 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25781 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
25782 $as_echo_n "(cached) " >&6
25784 gcc_cv_as_nsubspa_comdat
=no
25785 if test x
$gcc_cv_as != x
; then
25786 $as_echo ' .SPACE $TEXT$
25787 .NSUBSPA $CODE$,COMDAT' > conftest.s
25788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25795 gcc_cv_as_nsubspa_comdat
=yes
25797 echo "configure: failed program was" >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25804 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25805 if test $gcc_cv_as_nsubspa_comdat = yes; then
25807 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25812 # .hidden needs to be supported in both the assembler and the linker,
25813 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25814 # This is irritatingly difficult to feature test for; we have to check the
25815 # date string after the version number. If we've got an in-tree
25816 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25818 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25819 case "${target}" in
25821 conftest_s
=' .globl foobar,hidden'
25824 conftest_s
=' .hidden foobar
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25829 $as_echo_n "checking assembler for .hidden... " >&6; }
25830 if ${gcc_cv_as_hidden+:} false
; then :
25831 $as_echo_n "(cached) " >&6
25833 gcc_cv_as_hidden
=no
25834 if test x
$gcc_cv_as != x
; then
25835 $as_echo "$conftest_s" > conftest.s
25836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25843 gcc_cv_as_hidden
=yes
25845 echo "configure: failed program was" >&5
25848 rm -f conftest.o conftest.s
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25852 $as_echo "$gcc_cv_as_hidden" >&6; }
25855 case "${target}" in
25857 # Darwin as has some visibility support, though with a different syntax.
25858 gcc_cv_as_hidden
=yes
25862 # gnu_indirect_function type is an extension proposed at
25863 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25864 # selection of function implementation
25865 # Check whether --enable-gnu-indirect-function was given.
25866 if test "${enable_gnu_indirect_function+set}" = set; then :
25867 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
25869 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
25870 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25873 enable_gnu_indirect_function
="$default_gnu_indirect_function"
25877 case "${target}" in
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
25880 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
25881 cat > conftest.s
<<EOF
25883 .type foo_resolver, @function
25886 .size foo_resolver, .-foo_resolver
25889 .type foo, %gnu_indirect_function
25890 .set foo, foo_resolver
25893 .type bar, @function
25899 if test x
$gcc_cv_as != x \
25900 && test x
$gcc_cv_ld != x \
25901 && test x
$gcc_cv_readelf != x \
25902 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
25903 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
25904 && $gcc_cv_readelf --relocs --wide conftest \
25905 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
25906 enable_gnu_indirect_function
=yes
25908 rm -f conftest conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
25910 $as_echo "$enable_gnu_indirect_function" >&6; }
25914 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
25916 cat >>confdefs.h
<<_ACEOF
25917 #define HAVE_GNU_INDIRECT_FUNCTION $gif
25922 if test $in_tree_ld != yes ; then
25923 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25924 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25925 if test x
"$ld_is_gold" = xyes
; then
25926 # GNU gold --version looks like this:
25928 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
25930 # We extract the binutils version which is more familiar and specific
25931 # than the gold version.
25932 ld_vers
=`echo $ld_ver | sed -n \
25933 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25935 # GNU ld --version looks like this:
25937 # GNU ld (GNU Binutils) 2.21.51.20110225
25938 ld_vers
=`echo $ld_ver | sed -n \
25939 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25941 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'`
25942 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25943 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25944 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25946 case "${target}" in
25948 # Solaris 2 ld -V output looks like this for a regular version:
25950 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
25952 # but test versions add stuff at the end:
25954 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
25956 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
25957 # numbers can be used in ld.so.1 feature checks even if a different
25958 # linker is configured.
25959 ld_ver
=`$gcc_cv_ld -V 2>&1`
25960 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
25961 ld_vers
=`echo $ld_ver | sed -n \
25962 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
25963 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25964 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
25972 $as_echo_n "checking linker for .hidden support... " >&6; }
25973 if ${gcc_cv_ld_hidden+:} false
; then :
25974 $as_echo_n "(cached) " >&6
25976 if test $in_tree_ld = yes ; then
25977 gcc_cv_ld_hidden
=no
25978 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 \
25979 && test $in_tree_ld_is_elf = yes; then
25980 gcc_cv_ld_hidden
=yes
25983 gcc_cv_ld_hidden
=yes
25984 if test x
"$ld_is_gold" = xyes
; then
25986 elif test x
"$ld_is_mold" = xyes
; then
25988 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25989 if test 0"$ld_date" -lt 20020404; then
25990 if test -n "$ld_date"; then
25991 # If there was date string, but was earlier than 2002-04-04, fail
25992 gcc_cv_ld_hidden
=no
25993 elif test -z "$ld_vers"; then
25994 # If there was no date string nor ld version number, something is wrong
25995 gcc_cv_ld_hidden
=no
25997 test -z "$ld_vers_patch" && ld_vers_patch
=0
25998 if test "$ld_vers_major" -lt 2; then
25999 gcc_cv_ld_hidden
=no
26000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26001 gcc_cv_ld_hidden
="no"
26002 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26003 gcc_cv_ld_hidden
=no
26008 case "${target}" in
26010 gcc_cv_ld_hidden
=yes
26013 # Darwin ld has some visibility support.
26014 gcc_cv_ld_hidden
=yes
26016 hppa64
*-*-hpux* | ia64
*-*-hpux*)
26017 gcc_cv_ld_hidden
=yes
26020 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26021 # .symbolic was only added in Solaris 9 12/02.
26022 gcc_cv_ld_hidden
=yes
26025 gcc_cv_ld_hidden
=no
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26032 $as_echo "$gcc_cv_ld_hidden" >&6; }
26033 libgcc_visibility
=no
26036 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26037 libgcc_visibility
=yes
26039 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26044 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26045 gcc_cv_ld_ro_rw_mix
=unknown
26046 if test $in_tree_ld = yes ; then
26047 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 \
26048 && test $in_tree_ld_is_elf = yes; then
26049 gcc_cv_ld_ro_rw_mix
=read-write
26051 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26052 echo '.section myfoosect, "a"' > conftest1.s
26053 echo '.section myfoosect, "aw"' > conftest2.s
26054 echo '.byte 1' >> conftest2.s
26055 echo '.section myfoosect, "a"' > conftest3.s
26056 echo '.byte 0' >> conftest3.s
26057 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26058 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26059 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
26060 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26061 conftest2.o conftest3.o
> /dev
/null
2>&1 \
26062 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
26063 conftest2.o conftest3.o
> /dev
/null
2>&1; then
26064 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
26065 | sed -e '/myfoosect/!d' -e N`
26066 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
26067 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
26068 gcc_cv_ld_ro_rw_mix
=read-only
26070 gcc_cv_ld_ro_rw_mix
=read-write
26075 rm -f conftest.
* conftest
[123].
*
26077 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
26079 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26083 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26085 # Check whether --enable-initfini-array was given.
26086 if test "${enable_initfini_array+set}" = set; then :
26087 enableval
=$enable_initfini_array;
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26091 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26092 if ${gcc_cv_initfini_array+:} false
; then :
26093 $as_echo_n "(cached) " >&6
26095 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26096 case "${target}" in
26098 if test "$cross_compiling" = yes; then :
26099 gcc_cv_initfini_array
=no
26101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26105 #error Not an ELF OS
26107 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26108 if it can be used. */
26110 int main (void) { return x; }
26111 int foo (void) { x = 0; }
26112 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26115 if ac_fn_cxx_try_run
"$LINENO"; then :
26116 gcc_cv_initfini_array
=yes
26118 gcc_cv_initfini_array
=no
26120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26125 gcc_cv_initfini_array
=no
26126 if test $in_tree_ld = yes ; then
26127 if test "$gcc_cv_gld_major_version" -eq 2 \
26128 -a "$gcc_cv_gld_minor_version" -ge 22 \
26129 -o "$gcc_cv_gld_major_version" -gt 2 \
26130 && test $in_tree_ld_is_elf = yes; then
26131 gcc_cv_initfini_array
=yes
26133 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26134 case $target:$gas in
26137 sh_type
='%progbits'
26139 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
26141 sh_type
='@progbits'
26143 sparc
*-*-solaris2*:no
)
26145 sh_type
='#progbits'
26149 case "$target:$gnu_ld" in
26151 cat > conftest.s
<<EOF
26152 .section .dtors,$sh_flags,$sh_type
26154 .byte 'A', 'A', 'A', 'A'
26155 .section .ctors,$sh_flags,$sh_type
26157 .byte 'B', 'B', 'B', 'B'
26158 .section .fini_array.65530,$sh_flags,$sh_type
26160 .byte 'C', 'C', 'C', 'C'
26161 .section .init_array.65530,$sh_flags,$sh_type
26163 .byte 'D', 'D', 'D', 'D'
26164 .section .dtors.64528,$sh_flags,$sh_type
26166 .byte 'E', 'E', 'E', 'E'
26167 .section .ctors.64528,$sh_flags,$sh_type
26169 .byte 'F', 'F', 'F', 'F'
26170 .section .fini_array.01005,$sh_flags,$sh_type
26172 .byte 'G', 'G', 'G', 'G'
26173 .section .init_array.01005,$sh_flags,$sh_type
26175 .byte 'H', 'H', 'H', 'H'
26180 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26181 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26182 && $gcc_cv_objdump -s -j .init_array conftest \
26183 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
26184 && $gcc_cv_objdump -s -j .fini_array conftest \
26185 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
26186 gcc_cv_initfini_array
=yes
26190 # When Solaris ld added constructor priority support, it was
26191 # decided to only handle .init_array.N/.fini_array.N since
26192 # there was no need for backwards compatibility with
26193 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26194 # sections with correct execution order resp. to
26195 # .init_array/.fini_array, while gld merges them into
26196 # .init_array/.fini_array.
26197 cat > conftest.s
<<EOF
26198 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26200 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26201 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26203 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26204 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26206 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26207 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26209 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26214 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
26215 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
26216 && $gcc_cv_objdump -s -j .init_array conftest \
26217 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
26218 && $gcc_cv_objdump -s -j .fini_array conftest \
26219 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
26220 gcc_cv_initfini_array
=yes
26224 rm -f conftest conftest.
*
26226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h. */
26230 # error Not an ELF OS
26232 #include <stdlib.h>
26233 #if defined __GLIBC_PREREQ
26234 # if __GLIBC_PREREQ (2, 4)
26236 # error GLIBC 2.4 required
26239 # if defined __sun__ && defined __svr4__
26240 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26242 # error The C library not known to support .init_array/.fini_array
26247 if ac_fn_cxx_try_cpp
"$LINENO"; then :
26250 gcc_cv_initfini_array
=no
26252 rm -f conftest.err conftest.i conftest.
$ac_ext;;
26255 case "${target}" in
26256 aarch64
*-linux-gnu*)
26257 # AArch64 postdates glibc support for .init_array/.fini_array,
26258 # so we don't need the preprocessor test above.
26259 gcc_cv_initfini_array
=yes
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26264 $as_echo_n "checking cross compile... guessing... " >&6; }
26265 gcc_cv_initfini_array
=no
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26271 $as_echo "$gcc_cv_initfini_array" >&6; }
26272 enable_initfini_array
=$gcc_cv_initfini_array
26277 cat >>confdefs.h
<<_ACEOF
26278 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26283 # Some assemblers (GNU as for LoongArch) generates relocations for
26284 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26285 # probing leb128 support then.
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26289 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26290 if ${gcc_cv_as_mno_relax+:} false
; then :
26291 $as_echo_n "(cached) " >&6
26293 gcc_cv_as_mno_relax
=no
26294 if test x
$gcc_cv_as != x
; then
26295 $as_echo '.text' > conftest.s
26296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26298 (eval $ac_try) 2>&5
26300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26301 test $ac_status = 0; }; }
26303 gcc_cv_as_mno_relax
=yes
26305 echo "configure: failed program was" >&5
26308 rm -f conftest.o conftest.s
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26312 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26313 if test $gcc_cv_as_mno_relax = yes; then
26314 check_leb128_asflags
=-mno-relax
26319 check_leb128_asflags
=
26323 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26324 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26325 # these directives, even when they appear to accept them.
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26327 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26328 if ${gcc_cv_as_leb128+:} false
; then :
26329 $as_echo_n "(cached) " >&6
26331 gcc_cv_as_leb128
=no
26332 if test x
$gcc_cv_as != x
; then
26339 .uleb128 0x8000000000000000
26341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26343 (eval $ac_try) 2>&5
26345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26346 test $ac_status = 0; }; }
26349 if test "x$gcc_cv_objdump" != x
; then
26350 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
26351 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
26352 gcc_cv_as_leb128
=yes
26354 elif test "x$gcc_cv_otool" != x
; then
26355 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
26356 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
26357 gcc_cv_as_leb128
=yes
26360 # play safe, assume the assembler is broken.
26365 echo "configure: failed program was" >&5
26368 rm -f conftest.o conftest.s
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26372 $as_echo "$gcc_cv_as_leb128" >&6; }
26373 if test $gcc_cv_as_leb128 = yes; then
26375 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26378 if test $gcc_cv_as_leb128 != yes; then
26380 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26384 # Determine if an .eh_frame section is read-only.
26385 gcc_fn_eh_frame_ro
() {
26386 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
26387 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
26388 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
26391 # Check if we have assembler support for unwind directives.
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26393 $as_echo_n "checking assembler for cfi directives... " >&6; }
26394 if ${gcc_cv_as_cfi_directive+:} false
; then :
26395 $as_echo_n "(cached) " >&6
26397 gcc_cv_as_cfi_directive
=no
26398 if test x
$gcc_cv_as != x
; then
26404 .cfi_escape 1, 2, 3, 4, 5
26405 .cfi_endproc' > conftest.s
26406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26408 (eval $ac_try) 2>&5
26410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26411 test $ac_status = 0; }; }
26415 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26416 # read-only and read-write sections, we need to make sure that the
26417 # assembler used emits read-write .eh_frame sections.
26418 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
26419 gcc_cv_as_cfi_directive
=yes
26420 elif test "x$gcc_cv_objdump" = x
; then
26421 # No objdump, err on the side of caution.
26422 gcc_cv_as_cfi_directive
=no
26424 if test x
$gas = xyes
; then
26432 sparc
*-*-solaris2.
*)
26433 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26434 if gcc_fn_eh_frame_ro
$as_32_opt \
26435 || gcc_fn_eh_frame_ro
$as_64_opt; then
26436 gcc_cv_as_cfi_directive
=no
26438 gcc_cv_as_cfi_directive
=yes
26441 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
26442 # On Solaris/x86, make sure that GCC and assembler agree on using
26443 # read-only .eh_frame sections for 64-bit.
26444 if gcc_fn_eh_frame_ro
$as_32_opt; then
26445 gcc_cv_as_cfi_directive
=no
26446 elif gcc_fn_eh_frame_ro
$as_64_opt; then
26447 gcc_cv_as_cfi_directive
=yes
26449 gcc_cv_as_cfi_directive
=no
26456 gcc_cv_as_cfi_directive
=yes
26460 echo "configure: failed program was" >&5
26463 rm -f conftest.o conftest.s
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26467 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26470 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26472 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26473 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
26474 $as_echo_n "(cached) " >&6
26476 gcc_cv_as_cfi_advance_working
=no
26477 if test x
$gcc_cv_as != x
; then
26480 .cfi_adjust_cfa_offset 64
26482 .cfi_adjust_cfa_offset 128
26483 .cfi_endproc' > conftest.s
26484 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26486 (eval $ac_try) 2>&5
26488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489 test $ac_status = 0; }; }
26492 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
26493 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
26494 gcc_cv_as_cfi_advance_working
=yes
26498 echo "configure: failed program was" >&5
26501 rm -f conftest.o conftest.s
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26505 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26509 # no objdump, err on the side of caution
26510 gcc_cv_as_cfi_advance_working
=no
26514 cat >>confdefs.h
<<_ACEOF
26515 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26516 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26522 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26523 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
26524 $as_echo_n "(cached) " >&6
26526 gcc_cv_as_cfi_personality_directive
=no
26527 if test x
$gcc_cv_as != x
; then
26530 .cfi_personality 0, symbol
26531 .cfi_endproc' > conftest.s
26532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26539 gcc_cv_as_cfi_personality_directive
=yes
26541 echo "configure: failed program was" >&5
26544 rm -f conftest.o conftest.s
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26548 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26552 cat >>confdefs.h
<<_ACEOF
26553 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26558 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26559 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
26560 $as_echo_n "(cached) " >&6
26562 gcc_cv_as_cfi_sections_directive
=no
26563 if test x
$gcc_cv_as != x
; then
26565 .cfi_sections .debug_frame, .eh_frame
26567 .cfi_endproc' > conftest.s
26568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26570 (eval $ac_try) 2>&5
26572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573 test $ac_status = 0; }; }
26576 win32 | pe | cygwin
* | mingw32
*)
26577 # Need to check that we generated the correct relocation for the
26578 # .debug_frame section. This was fixed for binutils 2.21.
26579 gcc_cv_as_cfi_sections_directive
=no
26580 if test "x$gcc_cv_objdump" != x
; then
26581 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
26582 grep -i secrel
> /dev
/null
; then
26583 gcc_cv_as_cfi_sections_directive
=yes
26588 gcc_cv_as_cfi_sections_directive
=yes
26592 echo "configure: failed program was" >&5
26595 rm -f conftest.o conftest.s
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26599 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26604 cat >>confdefs.h
<<_ACEOF
26605 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26609 # GAS versions up to and including 2.11.0 may mis-optimize
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26612 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26613 if ${gcc_cv_as_eh_frame+:} false
; then :
26614 $as_echo_n "(cached) " >&6
26616 gcc_cv_as_eh_frame
=no
26617 if test x
$gcc_cv_as != x
; then
26624 .section .eh_frame,"aw",@progbits
26626 .4byte .LECIE1-.LSCIE1
26640 .4byte .LEFDE1-.LASFDE1
26642 .4byte .LASFDE1-__FRAME_BEGIN__
26649 .LEFDE1:' > conftest.s
26650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26657 cat > conftest.lit
<<EOF
26658 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26659 0010 01000000 12000000 18000000 00000000 ................
26660 0020 08000000 04080000 0044 .........D
26662 cat > conftest.big
<<EOF
26663 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26664 0010 00000001 00000012 00000018 00000000 ................
26665 0020 00000008 04000000 0844 .........D
26667 # If the assembler didn't choke, and we can objdump,
26668 # and we got the correct data, then succeed.
26669 # The text in the here-document typically retains its unix-style line
26670 # endings, while the output of objdump will use host line endings.
26671 # Therefore, use diff -b for the comparisons.
26672 if test x
$gcc_cv_objdump != x \
26673 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
26674 |
tail -3 > conftest.got \
26675 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
26676 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
26678 gcc_cv_as_eh_frame
=yes
26679 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }; then
26685 gcc_cv_as_eh_frame
=buggy
26687 # Uh oh, what do we do now?
26688 gcc_cv_as_eh_frame
=no
26691 echo "configure: failed program was" >&5
26694 rm -f conftest.o conftest.s
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26698 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26702 if test $gcc_cv_as_eh_frame = buggy
; then
26704 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26708 # Test if the assembler supports the section flag 'e' or #exclude for
26709 # specifying an excluded section.
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26711 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26712 if ${gcc_cv_as_section_exclude_e+:} false
; then :
26713 $as_echo_n "(cached) " >&6
26715 gcc_cv_as_section_exclude_e
=no
26716 if test x
$gcc_cv_as != x
; then
26717 $as_echo '.section foo1,"e"
26718 .byte 0,0,0,0' > conftest.s
26719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721 (eval $ac_try) 2>&5
26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724 test $ac_status = 0; }; }
26726 gcc_cv_as_section_exclude_e
=yes
26728 echo "configure: failed program was" >&5
26731 rm -f conftest.o conftest.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26735 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26738 if test $gcc_cv_as_section_exclude_e = no
; then
26739 case "${target}" in
26740 # Solaris as uses #exclude instead.
26742 case "${target}" in
26743 sparc
*-*-solaris2*)
26744 conftest_s
='.section "foo1", #exclude'
26746 i?
86-*-solaris2* | x86_64-
*-solaris2*)
26747 conftest_s
='.section foo1, #exclude'
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26753 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26754 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
26755 $as_echo_n "(cached) " >&6
26757 gcc_cv_as_section_exclude_hash
=no
26758 if test x
$gcc_cv_as != x
; then
26759 $as_echo "$conftest_s
26760 .byte 0,0,0,0" > conftest.s
26761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26763 (eval $ac_try) 2>&5
26765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26766 test $ac_status = 0; }; }
26768 gcc_cv_as_section_exclude_hash
=yes
26770 echo "configure: failed program was" >&5
26773 rm -f conftest.o conftest.s
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26777 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26782 cat >>confdefs.h
<<_ACEOF
26783 #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`
26787 # Test if the assembler supports the section flag 'R' for specifying
26788 # section with SHF_GNU_RETAIN.
26789 case "${target}" in
26790 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26791 # assembler supports the section flag 'R', it doesn't mean that
26792 # Solairs ld supports it.
26794 gcc_cv_as_shf_gnu_retain
=no
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26798 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26799 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
26800 $as_echo_n "(cached) " >&6
26802 gcc_cv_as_shf_gnu_retain
=no
26803 if test x
$gcc_cv_as != x
; then
26804 $as_echo '.section .foo,"awR",%progbits
26805 .byte 0' > conftest.s
26806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26808 (eval $ac_try) 2>&5
26810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26811 test $ac_status = 0; }; }
26813 gcc_cv_as_shf_gnu_retain
=yes
26815 echo "configure: failed program was" >&5
26818 rm -f conftest.o conftest.s
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26822 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26828 cat >>confdefs.h
<<_ACEOF
26829 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26833 # Test if the assembler supports the section flag 'o' for specifying
26834 # section with link-order.
26835 case "${target}" in
26836 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26837 # assembler supports the section flag 'o', it doesn't mean that
26838 # Solairs ld supports it.
26840 gcc_cv_as_section_link_order
=no
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26844 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26845 if ${gcc_cv_as_section_link_order+:} false
; then :
26846 $as_echo_n "(cached) " >&6
26848 gcc_cv_as_section_link_order
=no
26849 if test x
$gcc_cv_as != x
; then
26850 $as_echo '.section .foo,"a"
26852 .section __patchable_function_entries,"awo",%progbits,.foo
26853 .byte 0' > conftest.s
26854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26861 gcc_cv_as_section_link_order
=yes
26863 echo "configure: failed program was" >&5
26866 rm -f conftest.o conftest.s
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
26870 $as_echo "$gcc_cv_as_section_link_order" >&6; }
26876 cat >>confdefs.h
<<_ACEOF
26877 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26882 $as_echo_n "checking assembler for section merging support... " >&6; }
26883 if ${gcc_cv_as_shf_merge+:} false
; then :
26884 $as_echo_n "(cached) " >&6
26886 gcc_cv_as_shf_merge
=no
26887 if test x
$gcc_cv_as != x
; then
26888 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
26889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26896 gcc_cv_as_shf_merge
=yes
26898 echo "configure: failed program was" >&5
26901 rm -f conftest.o conftest.s
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26905 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26908 if test $gcc_cv_as_shf_merge = no
; then
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26910 $as_echo_n "checking assembler for section merging support... " >&6; }
26911 if ${gcc_cv_as_shf_merge+:} false
; then :
26912 $as_echo_n "(cached) " >&6
26914 gcc_cv_as_shf_merge
=no
26915 if test x
$gcc_cv_as != x
; then
26916 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
26917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26919 (eval $ac_try) 2>&5
26921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26922 test $ac_status = 0; }; }
26924 gcc_cv_as_shf_merge
=yes
26926 echo "configure: failed program was" >&5
26929 rm -f conftest.o conftest.s
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26933 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26938 cat >>confdefs.h
<<_ACEOF
26939 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
26944 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
26945 if ${gcc_cv_as_comdat_group+:} false
; then :
26946 $as_echo_n "(cached) " >&6
26948 gcc_cv_as_comdat_group
=no
26949 if test x
$gcc_cv_as != x
; then
26950 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
26951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26958 gcc_cv_as_comdat_group
=yes
26960 echo "configure: failed program was" >&5
26963 rm -f conftest.o conftest.s
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
26967 $as_echo "$gcc_cv_as_comdat_group" >&6; }
26970 if test $gcc_cv_as_comdat_group = yes; then
26971 gcc_cv_as_comdat_group_percent
=no
26972 gcc_cv_as_comdat_group_group
=no
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
26975 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
26976 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
26977 $as_echo_n "(cached) " >&6
26979 gcc_cv_as_comdat_group_percent
=no
26980 if test x
$gcc_cv_as != x
; then
26981 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
26982 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26984 (eval $ac_try) 2>&5
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; }
26989 gcc_cv_as_comdat_group_percent
=yes
26991 echo "configure: failed program was" >&5
26994 rm -f conftest.o conftest.s
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
26998 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27001 if test $gcc_cv_as_comdat_group_percent = yes; then
27002 gcc_cv_as_comdat_group_group
=no
27004 case "${target}" in
27005 # Sun as uses a completely different syntax.
27007 case "${target}" in
27008 sparc
*-*-solaris2*)
27010 .group foo,".text%foo",#comdat
27011 .section ".text%foo", #alloc,#execinstr,#progbits
27016 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27018 .group foo,.text%foo,#comdat
27019 .section .text%foo, "ax", @progbits
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27026 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27027 if ${gcc_cv_as_comdat_group_group+:} false
; then :
27028 $as_echo_n "(cached) " >&6
27030 gcc_cv_as_comdat_group_group
=no
27031 if test x
$gcc_cv_as != x
; then
27032 $as_echo "$conftest_s" > conftest.s
27033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27035 (eval $ac_try) 2>&5
27037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27038 test $ac_status = 0; }; }
27040 gcc_cv_as_comdat_group_group
=yes
27042 echo "configure: failed program was" >&5
27045 rm -f conftest.o conftest.s
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27049 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27054 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27055 gcc_cv_as_comdat_group_group
=no
27059 if test x
"$ld_is_gold" = xyes
; then
27061 elif test x
"$ld_is_mold" = xyes
; then
27063 elif test $in_tree_ld = yes ; then
27065 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 \
27066 && test $in_tree_ld_is_elf = yes; then
27069 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27071 if test 0"$ld_date" -lt 20050308; then
27072 if test -n "$ld_date"; then
27073 # If there was date string, but was earlier than 2005-03-08, fail
27075 elif test "$ld_vers_major" -lt 2; then
27077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27082 case "${target}" in
27083 *-*-solaris2.1
[1-9]*)
27085 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27086 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27089 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27090 # least ld version 1.2267.
27091 if test "$ld_vers_major" -gt 1; then
27093 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
27095 elif test "$ld_vers_minor" -ge 2267; then
27100 # Assume linkers other than GNU ld don't support COMDAT group.
27105 # Allow overriding the automatic COMDAT group tests above.
27106 # Check whether --enable-comdat was given.
27107 if test "${enable_comdat+set}" = set; then :
27108 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
27111 if test $comdat_group = no
; then
27112 gcc_cv_as_comdat_group
=no
27113 gcc_cv_as_comdat_group_percent
=no
27114 gcc_cv_as_comdat_group_group
=no
27117 cat >>confdefs.h
<<_ACEOF
27118 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27119 || test $gcc_cv_as_comdat_group_percent = yes \
27120 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27125 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27126 if ${gcc_cv_as_is_stmt+:} false
; then :
27127 $as_echo_n "(cached) " >&6
27129 gcc_cv_as_is_stmt
=no
27130 if test x
$gcc_cv_as != x
; then
27133 .loc 1 1 0 is_stmt 1' > conftest.s
27134 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27141 gcc_cv_as_is_stmt
=yes
27143 echo "configure: failed program was" >&5
27146 rm -f conftest.o conftest.s
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27150 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27151 if test $gcc_cv_as_is_stmt = yes; then
27153 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27159 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27160 if ${gcc_cv_as_discriminator+:} false
; then :
27161 $as_echo_n "(cached) " >&6
27163 gcc_cv_as_discriminator
=no
27164 if test x
$gcc_cv_as != x
; then
27167 .loc 1 1 0 discriminator 1' > conftest.s
27168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; }
27175 gcc_cv_as_discriminator
=yes
27177 echo "configure: failed program was" >&5
27180 rm -f conftest.o conftest.s
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27184 $as_echo "$gcc_cv_as_discriminator" >&6; }
27185 if test $gcc_cv_as_discriminator = yes; then
27187 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27192 # Catch the newlib flag of the same name so we can gate GCC features on it.
27193 # Check whether --enable-newlib-nano-formatted-io was given.
27194 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27195 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
27199 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27205 # Thread-local storage - the check is heavily parameterized.
27211 .section ".tdata","awT",@progbits
27214 ldq $27,__tls_get_addr($29) !literal!1
27215 lda $16,foo($29) !tlsgd!1
27216 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27217 ldq $27,__tls_get_addr($29) !literal!2
27218 lda $16,foo($29) !tlsldm!2
27219 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27220 ldq $1,foo($29) !gotdtprel
27221 ldah $2,foo($29) !dtprelhi
27222 lda $3,foo($2) !dtprello
27223 lda $4,foo($29) !dtprel
27224 ldq $1,foo($29) !gottprel
27225 ldah $2,foo($29) !tprelhi
27226 lda $3,foo($2) !tprello
27227 lda $4,foo($29) !tprel'
27228 tls_as_opt
=--fatal-warnings
27232 add_s r0,r0, @foo@tpoff'
27234 cris-
*-*|crisv32-
*-*)
27236 .section ".tdata","awT",@progbits
27241 tls_as_opt
=--fatal-warnings
27245 .section ".tdata","awT",@progbits
27248 call #gettlsoff(x)'
27255 .section ".tdata","awT",@progbits
27259 addil LT%foo-$tls_gdidx$,gp
27260 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27263 addil LT%foo-$tls_ldidx$,gp
27265 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27266 addil LR%foo-$tls_dtpoff$,%ret0
27267 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27269 addil LT%foo-$tls_ieoff$,gp
27270 ldw RT%foo-$tls_ieoff$(%r1),%t2
27273 addil LR%foo-$tls_leoff$,%t1
27274 ldo RR%foo-$tls_leoff$(%r1),%t2'
27275 tls_as_opt
=--fatal-warnings
27279 .section ".tdata","awT",%progbits
27282 .word foo(gottpoff)
27288 i
[34567]86-*-* | x86_64-
*-*)
27290 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
27297 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27299 .section .tdata,"awt",@progbits'
27302 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27306 .section ".tdata","awT",@progbits'
27308 tls_as_opt
="--fatal-warnings"
27312 if test x
$on_solaris = xyes
; then
27314 yes) tls_as_opt
="$tls_as_opt --32" ;;
27317 conftest_s
="$conftest_s
27321 leal foo@tlsgd(,%ebx,1), %eax
27322 leal foo@tlsldm(%ebx), %eax
27323 leal foo@dtpoff(%eax), %edx
27324 movl foo@gottpoff(%ebx), %eax
27325 subl foo@gottpoff(%ebx), %eax
27326 addl foo@gotntpoff(%ebx), %eax
27327 movl foo@indntpoff, %eax
27328 movl \$foo@tpoff, %eax
27329 subl \$foo@tpoff, %eax
27330 leal foo@ntpoff(%ecx), %eax"
27333 if test x
$on_solaris = xyes
; then
27335 yes) tls_as_opt
="$tls_as_opt --64" ;;
27336 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
27339 conftest_s
="$conftest_s
27343 leaq foo@tlsgd(%rip), %rdi
27344 leaq foo@tlsld(%rip), %rdi
27345 leaq foo@dtpoff(%rax), %rdx
27346 movq foo@gottpoff(%rip), %rax
27347 movq \$foo@tpoff, %rax"
27353 .section ".tdata","awT",@progbits
27356 addl r16 = @ltoff(@dtpmod(foo#)), gp
27357 addl r17 = @ltoff(@dtprel(foo#)), gp
27358 addl r18 = @ltoff(@tprel(foo#)), gp
27359 addl r19 = @dtprel(foo#), gp
27360 adds r21 = @dtprel(foo#), r13
27361 movl r23 = @dtprel(foo#)
27362 addl r20 = @tprel(foo#), gp
27363 adds r22 = @tprel(foo#), r13
27364 movl r24 = @tprel(foo#)'
27365 tls_as_opt
=--fatal-warnings
27369 .section .tdata,"awT",@progbits
27376 tls_as_opt
='--fatal-warnings'
27380 .section .tdata,"awT",@progbits
27384 addik r5,r20,x@TLSGD
27385 addik r5,r20,x@TLSLDM'
27386 tls_as_opt
='--fatal-warnings'
27390 .section .tdata,"awT",@progbits
27394 addiu $4, $28, %tlsgd(x)
27395 addiu $4, $28, %tlsldm(x)
27396 lui $4, %dtprel_hi(x)
27397 addiu $4, $4, %dtprel_lo(x)
27398 lw $4, %gottprel(x)($28)
27399 lui $4, %tprel_hi(x)
27400 addiu $4, $4, %tprel_lo(x)'
27401 tls_as_opt
='-32 --fatal-warnings'
27405 .section .tdata,"awT",@progbits
27410 move.l x@TLSGD(%a5),%a0
27411 move.l x@TLSLDM(%a5),%a0
27412 move.l x@TLSLDO(%a5),%a0
27413 move.l x@TLSIE(%a5),%a0
27414 move.l x@TLSLE(%a5),%a0'
27415 tls_as_opt
='--fatal-warnings'
27419 .section ".tdata","awT",@progbits'
27420 tls_as_opt
="--fatal-warnings"
27424 .section ".tdata","awT",%progbits
27428 add x0, x0, #:tlsgd_lo12:x
27431 tls_as_opt
='--fatal-warnings'
27435 .section ".tdata","awT",@progbits
27438 l.movhi r3, tpoffha(foo)
27440 l.lwz r4, tpofflo(foo)(r3)'
27441 tls_as_opt
=--fatal-warnings
27445 .extern __get_tpointer
27461 .section ".tdata","awT",@progbits
27469 addi 3,2,ld0@got@tlsgd
27475 addi 3,2,x1@got@tlsld
27481 addis 9,3,x2@dtprel@ha
27482 addi 9,9,x2@dtprel@l
27485 ld 9,x3@got@dtprel(2)
27489 tls_as_opt
="-a64 --fatal-warnings"
27493 .section ".tdata","awT",@progbits
27501 addi 3,31,ld0@got@tlsgd
27503 addi 3,31,x1@got@tlsld
27506 addis 9,3,x2@dtprel@ha
27507 addi 9,9,x2@dtprel@l
27508 lwz 9,x3@got@tprel(31)
27511 addis 9,2,x2@tprel@ha
27512 addi 9,9,x2@tprel@l'
27513 tls_as_opt
="-a32 --fatal-warnings"
27517 .section .tdata,"awT",@progbits
27521 call __tls_get_addr'
27522 tls_as_opt
='--fatal-warnings'
27526 .section ".tdata","awT",@progbits
27533 .long foo@GOTNTPOFF
27534 .long foo@INDNTPOFF
27535 l %r1,foo@GOTNTPOFF(%r12)
27536 l %r1,0(%r1):tls_load:foo
27537 bas %r14,0(%r1,%r13):tls_gdcall:foo
27538 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27539 tls_as_opt
="-m31 --fatal-warnings"
27543 .section ".tdata","awT",@progbits
27550 .quad foo@GOTNTPOFF
27551 lg %r1,foo@GOTNTPOFF(%r12)
27552 larl %r1,foo@INDNTPOFF
27553 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27554 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27555 tls_as_opt
="-m64 -Aesame --fatal-warnings"
27557 sh-
*-* | sh
[123456789lbe
]*-*-*)
27559 .section ".tdata","awT",@progbits
27567 tls_as_opt
=--fatal-warnings
27571 sparc
*-sun-solaris2.
*)
27578 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
27580 .section ".tdata",#alloc,#write,#tls'
27583 .section ".tdata","awT",@progbits'
27584 tls_as_opt
="-32 --fatal-warnings"
27586 conftest_s
="$conftest_s
27589 sethi %tgd_hi22(foo), %o0
27590 add %o0, %tgd_lo10(foo), %o1
27591 add %l7, %o1, %o0, %tgd_add(foo)
27592 call __tls_get_addr, %tgd_call(foo)
27593 sethi %tldm_hi22(foo), %l1
27594 add %l1, %tldm_lo10(foo), %l2
27595 add %l7, %l2, %o0, %tldm_add(foo)
27596 call __tls_get_addr, %tldm_call(foo)
27597 sethi %tldo_hix22(foo), %l3
27598 xor %l3, %tldo_lox10(foo), %l4
27599 add %o0, %l4, %l5, %tldo_add(foo)
27600 sethi %tie_hi22(foo), %o3
27601 add %o3, %tie_lo10(foo), %o3
27602 ld [%l7 + %o3], %o2, %tie_ld(foo)
27603 add %g7, %o2, %o4, %tie_add(foo)
27604 sethi %tle_hix22(foo), %l1
27605 xor %l1, %tle_lox10(foo), %o5
27606 ld [%g7 + %o5], %o1"
27610 .section ".tdata","awT",@progbits
27613 movi a8, foo@TLSFUNC
27614 movi a10, foo@TLSARG
27615 callx8.tls a8, foo@TLSCALL'
27619 if test "x$enable_tls" = xno
; then
27620 : # TLS explicitly disabled.
27621 elif test "x$enable_tls" = xyes
; then
27622 set_have_as_tls
=yes # TLS explicitly enabled.
27623 elif test -z "$conftest_s"; then
27624 : # If we don't have a check, assume no support.
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27627 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27628 if ${gcc_cv_as_tls+:} false
; then :
27629 $as_echo_n "(cached) " >&6
27632 if test x
$gcc_cv_as != x
; then
27633 $as_echo "$conftest_s" > conftest.s
27634 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27636 (eval $ac_try) 2>&5
27638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27639 test $ac_status = 0; }; }
27643 echo "configure: failed program was" >&5
27646 rm -f conftest.o conftest.s
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27650 $as_echo "$gcc_cv_as_tls" >&6; }
27651 if test $gcc_cv_as_tls = yes; then
27652 set_have_as_tls
=yes
27656 if test $set_have_as_tls = yes ; then
27658 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27662 # Target-specific assembler checks.
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27665 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27666 gcc_cv_ld_static_dynamic
=no
27667 gcc_cv_ld_static_option
='-Bstatic'
27668 gcc_cv_ld_dynamic_option
='-Bdynamic'
27669 if test $in_tree_ld = yes ; then
27670 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
27671 gcc_cv_ld_static_dynamic
=yes
27673 elif test x
$gcc_cv_ld != x
; then
27674 # Check if linker supports -Bstatic/-Bdynamic option
27675 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
27676 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
27677 gcc_cv_ld_static_dynamic
=yes
27680 # AIX ld uses -b flags
27681 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
27682 gcc_cv_ld_static_dynamic
=yes
27683 gcc_cv_ld_static_option
="-bstatic"
27684 gcc_cv_ld_dynamic_option
="-bdynamic"
27686 # HP-UX ld uses -a flags to select between shared and archive.
27688 if test x
"$gnu_ld" = xno
; then
27689 gcc_cv_ld_static_dynamic
=yes
27690 gcc_cv_ld_static_option
="-aarchive_shared"
27691 gcc_cv_ld_dynamic_option
="-adefault"
27694 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27696 gcc_cv_ld_static_dynamic
=yes
27701 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
27703 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27706 cat >>confdefs.h
<<_ACEOF
27707 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27711 cat >>confdefs.h
<<_ACEOF
27712 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27717 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27720 $as_echo_n "checking linker --version-script option... " >&6; }
27721 gcc_cv_ld_version_script
=no
27722 ld_version_script_option
=''
27723 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27724 gcc_cv_ld_version_script
=yes
27725 ld_version_script_option
='--version-script'
27726 elif test x
$gcc_cv_ld != x
; then
27728 # Solaris 2 ld always supports -M. It also supports a subset of
27729 # --version-script since Solaris 11.4, but requires
27730 # -z gnu-version-script-compat to activate.
27732 gcc_cv_ld_version_script
=yes
27733 ld_version_script_option
='-M'
27737 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27739 $as_echo "$gcc_cv_ld_version_script" >&6; }
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27743 $as_echo_n "checking linker soname option... " >&6; }
27744 gcc_cv_ld_soname
=no
27745 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
27746 gcc_cv_ld_soname
=yes
27747 ld_soname_option
='-soname'
27748 elif test x
$gcc_cv_ld != x
; then
27751 gcc_cv_ld_soname
=yes
27752 ld_soname_option
='-install_name'
27754 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27755 # ld compatiblity since some Solaris 10 update.
27757 gcc_cv_ld_soname
=yes
27758 ld_soname_option
='-h'
27762 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27764 $as_echo "$gcc_cv_ld_soname" >&6; }
27767 if test x
"$demangler_in_ld" = xyes
; then
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27769 $as_echo_n "checking linker --demangle support... " >&6; }
27770 gcc_cv_ld_demangle
=no
27771 if test $in_tree_ld = yes; then
27772 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 \
27773 gcc_cv_ld_demangle
=yes
27775 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
27776 # Check if the GNU linker supports --demangle option
27777 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
27778 gcc_cv_ld_demangle
=yes
27781 if test x
"$gcc_cv_ld_demangle" = xyes
; then
27783 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27787 $as_echo "$gcc_cv_ld_demangle" >&6; }
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27791 $as_echo_n "checking linker plugin support... " >&6; }
27792 gcc_cv_lto_plugin
=0
27793 if test -f liblto_plugin.la
; then
27794 save_ld_ver
="$ld_ver"
27795 save_ld_vers_major
="$ld_vers_major"
27796 save_ld_vers_minor
="$ld_vers_minor"
27797 save_ld_is_gold
="$ld_is_gold"
27801 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
27803 # FIXME: ld_is_gold?
27804 ld_vers_major
="$gcc_cv_gld_major_version"
27805 ld_vers_minor
="$gcc_cv_gld_minor_version"
27807 # Determine plugin linker version.
27808 # FIXME: Partial duplicate from above, generalize.
27809 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27810 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27811 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
27813 ld_vers
=`echo $ld_ver | sed -n \
27814 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27816 ld_vers
=`echo $ld_ver | sed -n \
27817 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27819 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
27820 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27824 # Determine plugin support.
27825 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27826 # Require GNU ld or gold 2.21+ for plugin support by default.
27827 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27828 gcc_cv_lto_plugin
=2
27829 elif test "$ld_is_mold" = yes; then
27830 gcc_cv_lto_plugin
=2
27831 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27832 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27833 gcc_cv_lto_plugin
=1
27837 ld_ver
="$save_ld_ver"
27838 ld_vers_major
="$save_ld_vers_major"
27839 ld_vers_minor
="$save_ld_vers_minor"
27840 ld_is_gold
="$save_ld_is_gold"
27843 cat >>confdefs.h
<<_ACEOF
27844 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27848 $as_echo "$gcc_cv_lto_plugin" >&6; }
27850 # Target OS-specific assembler checks.
27852 case "$target_os" in
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27855 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27856 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
27857 $as_echo_n "(cached) " >&6
27859 gcc_cv_as_mmacosx_version_min
=no
27860 if test x
$gcc_cv_as != x
; then
27861 $as_echo '.text' > conftest.s
27862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27869 gcc_cv_as_mmacosx_version_min
=yes
27871 echo "configure: failed program was" >&5
27874 rm -f conftest.o conftest.s
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
27878 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
27879 if test $gcc_cv_as_mmacosx_version_min = yes; then
27881 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
27885 if test x
$gcc_cv_as_mmacosx_version_min = "xyes"; then
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
27887 $as_echo_n "checking assembler for .build_version... " >&6; }
27888 if ${gcc_cv_as_darwin_build_version+:} false
; then :
27889 $as_echo_n "(cached) " >&6
27891 gcc_cv_as_darwin_build_version
=no
27892 if test x
$gcc_cv_as != x
; then
27893 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
27894 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
27895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27896 (eval $ac_try) 2>&5
27898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27899 test $ac_status = 0; }; }
27901 gcc_cv_as_darwin_build_version
=yes
27903 echo "configure: failed program was" >&5
27906 rm -f conftest.o conftest.s
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
27910 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
27911 if test $gcc_cv_as_darwin_build_version = yes; then
27913 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
27921 # Target CPU-specific assembler checks.
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
27926 $as_echo_n "checking assembler for -mabi option... " >&6; }
27927 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
27928 $as_echo_n "(cached) " >&6
27930 gcc_cv_as_aarch64_mabi
=no
27931 if test x
$gcc_cv_as != x
; then
27932 $as_echo '.text' > conftest.s
27933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; }
27940 gcc_cv_as_aarch64_mabi
=yes
27942 echo "configure: failed program was" >&5
27945 rm -f conftest.o conftest.s
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
27949 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
27952 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
27954 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
27957 if test x
$with_abi = xilp32
; then
27958 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
27959 Upgrade the Assembler." "$LINENO" 5
27961 if test x
"$with_multilib_list" = xdefault
; then
27962 TM_MULTILIB_CONFIG
=lp64
27964 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
27965 for aarch64_multilib
in ${aarch64_multilibs}; do
27966 case ${aarch64_multilib} in
27968 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
27969 Upgrade the Assembler." "$LINENO" 5
27977 # Check if we have binutils support for relocations types needed by -fpic
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
27979 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
27980 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
27981 $as_echo_n "(cached) " >&6
27983 gcc_cv_as_aarch64_picreloc
=no
27984 if test x
$gcc_cv_as != x
; then
27987 ldr x0, [x2, #:gotpage_lo15:globalsym]
27989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27996 gcc_cv_as_aarch64_picreloc
=yes
27998 echo "configure: failed program was" >&5
28001 rm -f conftest.o conftest.s
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28005 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28006 if test $gcc_cv_as_aarch64_picreloc = yes; then
28008 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28012 # Enable Branch Target Identification Mechanism and Return Address
28013 # Signing by default.
28014 # Check whether --enable-standard-branch-protection was given.
28015 if test "${enable_standard_branch_protection+set}" = set; then :
28016 enableval
=$enable_standard_branch_protection;
28019 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28024 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
28025 Valid choices are 'yes' and 'no'." "$LINENO" 5
28031 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28032 # Check whether --enable-fix-cortex-a53-835769 was given.
28033 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28034 enableval
=$enable_fix_cortex_a53_835769;
28037 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28042 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28043 Valid choices are 'yes' and 'no'." "$LINENO" 5
28050 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28051 # Check whether --enable-fix-cortex-a53-843419 was given.
28052 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28053 enableval
=$enable_fix_cortex_a53_843419;
28056 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28061 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28062 Valid choices are 'yes' and 'no'." "$LINENO" 5
28071 # All TARGET_ABI_OSF targets.
28072 alpha
*-*-linux* | alpha
*-*-*bsd
*)
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28074 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28075 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
28076 $as_echo_n "(cached) " >&6
28078 gcc_cv_as_alpha_explicit_relocs
=no
28079 if test x
$gcc_cv_as != x
; then
28080 $as_echo ' .set nomacro
28082 extbl $3, $2, $3 !lituse_bytoff!1
28083 ldq $2, a($29) !literal!1
28084 ldq $4, b($29) !literal!2
28085 ldq_u $3, 0($2) !lituse_base!1
28086 ldq $27, f($29) !literal!5
28087 jsr $26, ($27), f !lituse_jsr!5
28088 ldah $29, 0($26) !gpdisp!3
28089 lda $0, c($29) !gprel
28090 ldah $1, d($29) !gprelhigh
28091 lda $1, d($1) !gprellow
28092 lda $29, 0($29) !gpdisp!3' > conftest.s
28093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28095 (eval $ac_try) 2>&5
28097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28098 test $ac_status = 0; }; }
28100 gcc_cv_as_alpha_explicit_relocs
=yes
28102 echo "configure: failed program was" >&5
28105 rm -f conftest.o conftest.s
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28109 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28110 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28112 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28117 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28118 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
28119 $as_echo_n "(cached) " >&6
28121 gcc_cv_as_alpha_jsrdirect_relocs
=no
28122 if test x
$gcc_cv_as != x
; then
28123 $as_echo ' .set nomacro
28125 ldq $27, a($29) !literal!1
28126 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28129 (eval $ac_try) 2>&5
28131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28132 test $ac_status = 0; }; }
28134 gcc_cv_as_alpha_jsrdirect_relocs
=yes
28136 echo "configure: failed program was" >&5
28139 rm -f conftest.o conftest.s
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28143 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28144 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28146 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28154 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28155 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
28156 $as_echo_n "(cached) " >&6
28158 gcc_cv_as_avr_mlink_relax
=no
28159 if test x
$gcc_cv_as != x
; then
28160 $as_echo '.text' > conftest.s
28161 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28163 (eval $ac_try) 2>&5
28165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28166 test $ac_status = 0; }; }
28168 gcc_cv_as_avr_mlink_relax
=yes
28170 echo "configure: failed program was" >&5
28173 rm -f conftest.o conftest.s
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28177 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28178 if test $gcc_cv_as_avr_mlink_relax = yes; then
28180 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28186 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28187 if ${gcc_cv_as_avr_mrmw+:} false
; then :
28188 $as_echo_n "(cached) " >&6
28190 gcc_cv_as_avr_mrmw
=no
28191 if test x
$gcc_cv_as != x
; then
28192 $as_echo '.text' > conftest.s
28193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28200 gcc_cv_as_avr_mrmw
=yes
28202 echo "configure: failed program was" >&5
28205 rm -f conftest.o conftest.s
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28209 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28210 if test $gcc_cv_as_avr_mrmw = yes; then
28212 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28218 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28219 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
28220 $as_echo_n "(cached) " >&6
28222 gcc_cv_as_avr_mgccisr
=no
28223 if test x
$gcc_cv_as != x
; then
28229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28231 (eval $ac_try) 2>&5
28233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28234 test $ac_status = 0; }; }
28236 gcc_cv_as_avr_mgccisr
=yes
28238 echo "configure: failed program was" >&5
28241 rm -f conftest.o conftest.s
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28245 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28246 if test $gcc_cv_as_avr_mgccisr = yes; then
28248 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28253 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28254 # Check how default linker description file implements .rodata for
28255 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28256 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28258 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28259 cat > conftest.s
<<EOF
28260 .section .rodata,"a",@progbits
28262 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28267 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28269 (eval $ac_try) 2>&5
28271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28272 test $ac_status = 0; }; }
28273 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; }
28279 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
28280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28281 (eval $ac_try) 2>&5
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; }
28285 if test -s conftest.nm
28287 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28289 $as_echo "yes" >&6; }
28291 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28295 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28296 echo "$as_me: nm output was" >&5
28297 cat conftest.nm
>&5
28298 { $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
28299 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28303 $as_echo "test failed" >&6; }
28304 echo "$as_me: failed program was" >&5
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28307 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28309 rm -f conftest.s conftest.o conftest.elf conftest.nm
28311 # Check for emulation avrxmega2_flmap.
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28313 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28314 cat > conftest.s
<<EOF
28315 .section .text,"ax",@progbits
28316 ldi r16, __flmap_value_with_lock
28318 { ac_try
='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28320 (eval $ac_try) 2>&5
28322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; }
28324 { ac_try
='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28330 if test -s conftest.elf
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28333 $as_echo "yes" >&6; }
28335 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28339 $as_echo "no" >&6; }
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28341 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28343 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28345 rm -f conftest.o conftest.elf
28347 # Check for emulation avrxmega4_flmap.
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28349 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28350 { ac_try
='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }
28356 { ac_try
='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28358 (eval $ac_try) 2>&5
28360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28361 test $ac_status = 0; }; }
28362 if test -s conftest.elf
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28365 $as_echo "yes" >&6; }
28367 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28371 $as_echo "no" >&6; }
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28373 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28375 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28377 rm -f conftest.s conftest.o conftest.elf
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28382 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28383 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
28384 $as_echo_n "(cached) " >&6
28386 gcc_cv_as_cris_no_mul_bug
=no
28387 if test x
$gcc_cv_as != x
; then
28388 $as_echo '.text' > conftest.s
28389 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28391 (eval $ac_try) 2>&5
28393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28394 test $ac_status = 0; }; }
28396 gcc_cv_as_cris_no_mul_bug
=yes
28398 echo "configure: failed program was" >&5
28401 rm -f conftest.o conftest.s
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28405 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28406 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28408 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28416 $as_echo_n "checking assembler for -relax option... " >&6; }
28417 if ${gcc_cv_as_sparc_relax+:} false
; then :
28418 $as_echo_n "(cached) " >&6
28420 gcc_cv_as_sparc_relax
=no
28421 if test x
$gcc_cv_as != x
; then
28422 $as_echo '.text' > conftest.s
28423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28425 (eval $ac_try) 2>&5
28427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28428 test $ac_status = 0; }; }
28430 gcc_cv_as_sparc_relax
=yes
28432 echo "configure: failed program was" >&5
28435 rm -f conftest.o conftest.s
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28439 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28440 if test $gcc_cv_as_sparc_relax = yes; then
28442 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28448 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28449 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
28450 $as_echo_n "(cached) " >&6
28452 gcc_cv_as_sparc_gotdata_op
=no
28453 if test x
$gcc_cv_as != x
; then
28459 sethi %gdop_hix22(foo), %g1
28460 xor %g1, %gdop_lox10(foo), %g1
28461 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28464 (eval $ac_try) 2>&5
28466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28467 test $ac_status = 0; }; }
28469 if test x
$gcc_cv_ld != x \
28470 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28471 if test x
$gcc_cv_objdump != x
; then
28472 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
28473 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
28474 gcc_cv_as_sparc_gotdata_op
=no
28476 gcc_cv_as_sparc_gotdata_op
=yes
28482 echo "configure: failed program was" >&5
28485 rm -f conftest.o conftest.s
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28489 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28490 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28492 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28498 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28499 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
28500 $as_echo_n "(cached) " >&6
28502 gcc_cv_as_sparc_ua_pcrel
=no
28503 if test x
$gcc_cv_as != x
; then
28510 .uaword %r_disp32(foo)' > conftest.s
28511 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28513 (eval $ac_try) 2>&5
28515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28516 test $ac_status = 0; }; }
28518 if test x
$gcc_cv_ld != x \
28519 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
28520 gcc_cv_as_sparc_ua_pcrel
=yes
28524 echo "configure: failed program was" >&5
28527 rm -f conftest.o conftest.s
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28531 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28532 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28534 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28538 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28539 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
28540 $as_echo_n "(cached) " >&6
28542 gcc_cv_as_sparc_ua_pcrel_hidden
=no
28543 if test x
$gcc_cv_as != x
; then
28547 .uaword %r_disp32(foo)
28548 .byte 0x32, 0x33, 0x34
28552 .skip 4' > conftest.s
28553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28555 (eval $ac_try) 2>&5
28557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28558 test $ac_status = 0; }; }
28560 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
28561 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
28562 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
28563 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
28564 if $gcc_cv_objdump -R conftest
2> /dev
/null \
28565 |
grep 'DISP32' > /dev
/null
2>&1; then
28568 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
28573 echo "configure: failed program was" >&5
28576 rm -f conftest.o conftest.s
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28580 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28581 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28583 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28589 # unaligned pcrel relocs
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28592 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28593 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
28594 $as_echo_n "(cached) " >&6
28596 gcc_cv_as_sparc_offsetable_lo10
=no
28597 if test x
$gcc_cv_as != x
; then
28599 or %g1, %lo(ab) + 12, %g1
28600 or %g1, %lo(ab + 12), %g1' > conftest.s
28601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28603 (eval $ac_try) 2>&5
28605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28606 test $ac_status = 0; }; }
28608 if test x
$gcc_cv_objdump != x \
28609 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
28610 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
28611 gcc_cv_as_sparc_offsetable_lo10
=yes
28614 echo "configure: failed program was" >&5
28617 rm -f conftest.o conftest.s
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28621 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28622 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28624 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28630 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28631 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
28632 $as_echo_n "(cached) " >&6
28634 gcc_cv_as_sparc_fmaf
=no
28635 if test x
$gcc_cv_as != x
; then
28637 .register %g2, #scratch
28638 .register %g3, #scratch
28640 fmaddd %f0, %f2, %f4, %f6
28641 addxccc %g1, %g2, %g3
28642 fsrl32 %f2, %f4, %f8
28643 fnaddd %f10, %f12, %f14' > conftest.s
28644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28646 (eval $ac_try) 2>&5
28648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28649 test $ac_status = 0; }; }
28651 gcc_cv_as_sparc_fmaf
=yes
28653 echo "configure: failed program was" >&5
28656 rm -f conftest.o conftest.s
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28660 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28661 if test $gcc_cv_as_sparc_fmaf = yes; then
28663 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28669 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28670 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
28671 $as_echo_n "(cached) " >&6
28673 gcc_cv_as_sparc_sparc4
=no
28674 if test x
$gcc_cv_as != x
; then
28676 .register %g2, #scratch
28677 .register %g3, #scratch
28680 1: cwbneg %g2, %g3, 1f
28683 aes_kexpand0 %f4, %f6, %f8
28684 des_round %f38, %f40, %f42, %f44
28685 camellia_f %f54, %f56, %f58, %f60
28686 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28689 (eval $ac_try) 2>&5
28691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692 test $ac_status = 0; }; }
28694 gcc_cv_as_sparc_sparc4
=yes
28696 echo "configure: failed program was" >&5
28699 rm -f conftest.o conftest.s
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28703 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28704 if test $gcc_cv_as_sparc_sparc4 = yes; then
28706 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28712 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28713 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
28714 $as_echo_n "(cached) " >&6
28716 gcc_cv_as_sparc_sparc5
=no
28717 if test x
$gcc_cv_as != x
; then
28719 .register %g2, #scratch
28720 .register %g3, #scratch
28722 subxc %g1, %g2, %g3
28723 fpadd8 %f0, %f2, %f4' > conftest.s
28724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28726 (eval $ac_try) 2>&5
28728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28729 test $ac_status = 0; }; }
28731 gcc_cv_as_sparc_sparc5
=yes
28733 echo "configure: failed program was" >&5
28736 rm -f conftest.o conftest.s
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28740 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28741 if test $gcc_cv_as_sparc_sparc5 = yes; then
28743 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28749 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28750 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
28751 $as_echo_n "(cached) " >&6
28753 gcc_cv_as_sparc_sparc6
=no
28754 if test x
$gcc_cv_as != x
; then
28756 .register %g2, #scratch
28757 .register %g3, #scratch
28760 fpsll64x %f0, %f2, %f4' > conftest.s
28761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28763 (eval $ac_try) 2>&5
28765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28766 test $ac_status = 0; }; }
28768 gcc_cv_as_sparc_sparc6
=yes
28770 echo "configure: failed program was" >&5
28773 rm -f conftest.o conftest.s
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28777 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28778 if test $gcc_cv_as_sparc_sparc6 = yes; then
28780 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28786 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28787 if ${gcc_cv_as_sparc_leon+:} false
; then :
28788 $as_echo_n "(cached) " >&6
28790 gcc_cv_as_sparc_leon
=no
28791 if test x
$gcc_cv_as != x
; then
28793 .register %g2, #scratch
28794 .register %g3, #scratch
28798 casa [%g2] 0xb, %g3, %g1' > conftest.s
28799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28801 (eval $ac_try) 2>&5
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; }
28806 gcc_cv_as_sparc_leon
=yes
28808 echo "configure: failed program was" >&5
28811 rm -f conftest.o conftest.s
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28815 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28816 if test $gcc_cv_as_sparc_leon = yes; then
28818 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28824 i
[34567]86-*-* | x86_64-
*-*)
28827 # Full C++ conformance when using a shared libstdc++-v3 requires some
28828 # support from the Cygwin DLL, which in more recent versions exports
28829 # wrappers to aid in interposing and redirecting operators new, delete,
28830 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28831 # are configuring for a version of Cygwin that exports the wrappers.
28832 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
28833 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28834 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
28835 gcc_ac_cygwin_dll_wrappers
=yes
28837 gcc_ac_cygwin_dll_wrappers
=no
28841 # Can't check presence of libc functions during cross-compile, so
28842 # we just have to assume we're building for an up-to-date target.
28843 gcc_ac_cygwin_dll_wrappers
=yes
28846 cat >>confdefs.h
<<_ACEOF
28847 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28852 cygwin
* | pe | mingw32
*)
28853 # Recent binutils allows the three-operand form of ".comm" on PE. This
28854 # definition is used unconditionally to initialise the default state of
28855 # the target option variable that governs usage of the feature.
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28857 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28858 if ${gcc_cv_as_comm_has_align+:} false
; then :
28859 $as_echo_n "(cached) " >&6
28861 gcc_cv_as_comm_has_align
=no
28862 if test x
$gcc_cv_as != x
; then
28863 $as_echo '.comm foo,1,32' > conftest.s
28864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28866 (eval $ac_try) 2>&5
28868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28869 test $ac_status = 0; }; }
28871 gcc_cv_as_comm_has_align
=yes
28873 echo "configure: failed program was" >&5
28876 rm -f conftest.o conftest.s
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
28880 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
28884 cat >>confdefs.h
<<_ACEOF
28885 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
28888 # Used for DWARF 2 in PE
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
28890 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
28891 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
28892 $as_echo_n "(cached) " >&6
28894 gcc_cv_as_ix86_pe_secrel32
=no
28895 if test x
$gcc_cv_as != x
; then
28899 .secrel32 foo' > conftest.s
28900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28902 (eval $ac_try) 2>&5
28904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28905 test $ac_status = 0; }; }
28907 if test x
$gcc_cv_ld != x \
28908 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
28909 gcc_cv_as_ix86_pe_secrel32
=yes
28913 echo "configure: failed program was" >&5
28916 rm -f conftest.o conftest.s
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
28920 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
28921 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
28923 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
28927 # Test if the assembler supports the extended form of the .section
28928 # directive that specifies section alignment. LTO support uses this,
28929 # but normally only after installation, so we warn but don't fail the
28930 # configure if LTO is enabled but the assembler does not support it.
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
28932 $as_echo_n "checking assembler for .section with alignment... " >&6; }
28933 if ${gcc_cv_as_section_has_align+:} false
; then :
28934 $as_echo_n "(cached) " >&6
28936 gcc_cv_as_section_has_align
=no
28937 if test x
$gcc_cv_as != x
; then
28938 $as_echo '.section lto_test,"dr0"' > conftest.s
28939 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
28940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28941 (eval $ac_try) 2>&5
28943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28944 test $ac_status = 0; }; }
28946 gcc_cv_as_section_has_align
=yes
28948 echo "configure: failed program was" >&5
28951 rm -f conftest.o conftest.s
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
28955 $as_echo "$gcc_cv_as_section_has_align" >&6; }
28958 if test x
$gcc_cv_as_section_has_align != xyes
; then
28959 case ",$enable_languages," in
28961 { $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
28962 $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;}
28969 darwin2
* | darwin19
*)
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
28971 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
28972 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
28973 $as_echo_n "(cached) " >&6
28975 gcc_cv_as_mllvm_x86_pad_for_align
=no
28976 if test x
$gcc_cv_as != x
; then
28977 $as_echo '.text' > conftest.s
28978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
28979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28980 (eval $ac_try) 2>&5
28982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28983 test $ac_status = 0; }; }
28985 gcc_cv_as_mllvm_x86_pad_for_align
=yes
28987 echo "configure: failed program was" >&5
28990 rm -f conftest.o conftest.s
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
28994 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
28995 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
28997 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29005 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29006 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
29007 $as_echo_n "(cached) " >&6
29009 gcc_cv_as_ix86_xbrace_comment
=no
29010 if test x
$gcc_cv_as != x
; then
29011 $as_echo '.text' > conftest.s
29012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29014 (eval $ac_try) 2>&5
29016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29017 test $ac_status = 0; }; }
29019 gcc_cv_as_ix86_xbrace_comment
=yes
29021 echo "configure: failed program was" >&5
29024 rm -f conftest.o conftest.s
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29028 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29029 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29031 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29037 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29038 if ${gcc_cv_as_ix86_filds+:} false
; then :
29039 $as_echo_n "(cached) " >&6
29041 gcc_cv_as_ix86_filds
=no
29042 if test x
$gcc_cv_as != x
; then
29043 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29046 (eval $ac_try) 2>&5
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; }
29051 gcc_cv_as_ix86_filds
=yes
29053 echo "configure: failed program was" >&5
29056 rm -f conftest.o conftest.s
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29060 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29061 if test $gcc_cv_as_ix86_filds = yes; then
29063 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29069 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29070 if ${gcc_cv_as_ix86_fildq+:} false
; then :
29071 $as_echo_n "(cached) " >&6
29073 gcc_cv_as_ix86_fildq
=no
29074 if test x
$gcc_cv_as != x
; then
29075 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29078 (eval $ac_try) 2>&5
29080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29081 test $ac_status = 0; }; }
29083 gcc_cv_as_ix86_fildq
=yes
29085 echo "configure: failed program was" >&5
29088 rm -f conftest.o conftest.s
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29092 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29093 if test $gcc_cv_as_ix86_fildq = yes; then
29095 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29101 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29102 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
29103 $as_echo_n "(cached) " >&6
29105 gcc_cv_as_ix86_cmov_sun_syntax
=no
29106 if test x
$gcc_cv_as != x
; then
29107 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29110 (eval $ac_try) 2>&5
29112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29113 test $ac_status = 0; }; }
29115 gcc_cv_as_ix86_cmov_sun_syntax
=yes
29117 echo "configure: failed program was" >&5
29120 rm -f conftest.o conftest.s
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29124 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29125 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29127 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29133 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29134 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
29135 $as_echo_n "(cached) " >&6
29137 gcc_cv_as_ix86_ffreep
=no
29138 if test x
$gcc_cv_as != x
; then
29139 $as_echo 'ffreep %st(1)' > conftest.s
29140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29142 (eval $ac_try) 2>&5
29144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29145 test $ac_status = 0; }; }
29147 gcc_cv_as_ix86_ffreep
=yes
29149 echo "configure: failed program was" >&5
29152 rm -f conftest.o conftest.s
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29156 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29157 if test $gcc_cv_as_ix86_ffreep = yes; then
29159 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29165 $as_echo_n "checking assembler for .quad directive... " >&6; }
29166 if ${gcc_cv_as_ix86_quad+:} false
; then :
29167 $as_echo_n "(cached) " >&6
29169 gcc_cv_as_ix86_quad
=no
29170 if test x
$gcc_cv_as != x
; then
29171 $as_echo '.quad 0' > conftest.s
29172 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29174 (eval $ac_try) 2>&5
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; }
29179 gcc_cv_as_ix86_quad
=yes
29181 echo "configure: failed program was" >&5
29184 rm -f conftest.o conftest.s
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29188 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29189 if test $gcc_cv_as_ix86_quad = yes; then
29191 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29197 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29198 if ${gcc_cv_as_ix86_sahf+:} false
; then :
29199 $as_echo_n "(cached) " >&6
29201 gcc_cv_as_ix86_sahf
=no
29202 if test x
$gcc_cv_as != x
; then
29205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29207 (eval $ac_try) 2>&5
29209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29210 test $ac_status = 0; }; }
29212 gcc_cv_as_ix86_sahf
=yes
29214 echo "configure: failed program was" >&5
29217 rm -f conftest.o conftest.s
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29221 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29222 if test $gcc_cv_as_ix86_sahf = yes; then
29224 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29230 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29231 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
29232 $as_echo_n "(cached) " >&6
29234 gcc_cv_as_ix86_interunit_movq
=no
29235 if test x
$gcc_cv_as != x
; then
29238 movq %rax, %xmm0' > conftest.s
29239 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; }
29246 gcc_cv_as_ix86_interunit_movq
=yes
29248 echo "configure: failed program was" >&5
29251 rm -f conftest.o conftest.s
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29255 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29259 cat >>confdefs.h
<<_ACEOF
29260 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29265 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29266 if ${gcc_cv_as_ix86_hle+:} false
; then :
29267 $as_echo_n "(cached) " >&6
29269 gcc_cv_as_ix86_hle
=no
29270 if test x
$gcc_cv_as != x
; then
29271 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29274 (eval $ac_try) 2>&5
29276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29277 test $ac_status = 0; }; }
29279 gcc_cv_as_ix86_hle
=yes
29281 echo "configure: failed program was" >&5
29284 rm -f conftest.o conftest.s
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29288 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29289 if test $gcc_cv_as_ix86_hle = yes; then
29291 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29297 $as_echo_n "checking assembler for swap suffix... " >&6; }
29298 if ${gcc_cv_as_ix86_swap+:} false
; then :
29299 $as_echo_n "(cached) " >&6
29301 gcc_cv_as_ix86_swap
=no
29302 if test x
$gcc_cv_as != x
; then
29303 $as_echo 'movl.s %esp, %ebp' > conftest.s
29304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29306 (eval $ac_try) 2>&5
29308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309 test $ac_status = 0; }; }
29311 gcc_cv_as_ix86_swap
=yes
29313 echo "configure: failed program was" >&5
29316 rm -f conftest.o conftest.s
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29320 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29321 if test $gcc_cv_as_ix86_swap = yes; then
29323 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29329 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29330 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
29331 $as_echo_n "(cached) " >&6
29333 gcc_cv_as_ix86_diff_sect_delta
=no
29334 if test x
$gcc_cv_as != x
; then
29335 $as_echo '.section .rodata
29341 .L2: nop' > conftest.s
29342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344 (eval $ac_try) 2>&5
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; }
29349 gcc_cv_as_ix86_diff_sect_delta
=yes
29351 echo "configure: failed program was" >&5
29354 rm -f conftest.o conftest.s
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29358 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29359 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29361 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29367 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29368 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
29369 $as_echo_n "(cached) " >&6
29371 gcc_cv_as_ix86_rep_lock_prefix
=no
29372 if test x
$gcc_cv_as != x
; then
29373 $as_echo 'rep movsl
29378 lock addl %edi, (%eax,%esi)
29379 lock orl $0, (%esp)' > conftest.s
29380 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29382 (eval $ac_try) 2>&5
29384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29385 test $ac_status = 0; }; }
29387 gcc_cv_as_ix86_rep_lock_prefix
=yes
29389 echo "configure: failed program was" >&5
29392 rm -f conftest.o conftest.s
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29396 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29397 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29399 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29405 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29406 if ${gcc_cv_as_ix86_ud2+:} false
; then :
29407 $as_echo_n "(cached) " >&6
29409 gcc_cv_as_ix86_ud2
=no
29410 if test x
$gcc_cv_as != x
; then
29411 $as_echo 'ud2' > conftest.s
29412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29414 (eval $ac_try) 2>&5
29416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29417 test $ac_status = 0; }; }
29419 gcc_cv_as_ix86_ud2
=yes
29421 echo "configure: failed program was" >&5
29424 rm -f conftest.o conftest.s
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29428 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29429 if test $gcc_cv_as_ix86_ud2 = yes; then
29431 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29436 # Enforce 32-bit output with gas and gld.
29437 if test x
$gas = xyes
; then
29438 as_ix86_gas_32_opt
="--32"
29440 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29441 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
29442 ld_ix86_gld_32_opt
="-melf_i386_sol2"
29444 ld_ix86_gld_32_opt
="-melf_i386"
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29449 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29450 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
29451 $as_echo_n "(cached) " >&6
29453 gcc_cv_as_ix86_tlsgdplt
=no
29454 if test x
$gcc_cv_as != x
; then
29455 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29458 (eval $ac_try) 2>&5
29460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29461 test $ac_status = 0; }; }
29463 if test x
$gcc_cv_ld != x \
29464 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29465 gcc_cv_as_ix86_tlsgdplt
=yes
29469 echo "configure: failed program was" >&5
29472 rm -f conftest.o conftest.s
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29476 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29477 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29479 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29485 .section .tdata,"aw'$tls_section_flag'",@progbits
29487 .section .text,"ax",@progbits
29488 call tls_ld@tlsldmplt'
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29491 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29492 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
29493 $as_echo_n "(cached) " >&6
29495 gcc_cv_as_ix86_tlsldmplt
=no
29496 if test x
$gcc_cv_as != x
; then
29497 $as_echo "$conftest_s" > conftest.s
29498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29500 (eval $ac_try) 2>&5
29502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29503 test $ac_status = 0; }; }
29505 if test x
$gcc_cv_ld != x \
29506 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
29507 gcc_cv_as_ix86_tlsldmplt
=yes
29511 echo "configure: failed program was" >&5
29514 rm -f conftest.o conftest.s
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29518 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29522 cat >>confdefs.h
<<_ACEOF
29523 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29528 .section .text,"ax",@progbits
29530 .type _start, @function
29532 leal value@tlsldm(%ebx), %eax
29533 call ___tls_get_addr@plt
29535 .section .tdata,"aw'$tls_section_flag'",@progbits
29536 .type value, @object
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29539 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29540 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
29541 $as_echo_n "(cached) " >&6
29543 gcc_cv_as_ix86_tlsldm
=no
29544 if test x
$gcc_cv_as != x
; then
29545 $as_echo "$conftest_s" > conftest.s
29546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29548 (eval $ac_try) 2>&5
29550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29551 test $ac_status = 0; }; }
29553 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29554 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
29555 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
29556 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
29557 gcc_cv_as_ix86_tlsldm
=yes
29562 echo "configure: failed program was" >&5
29565 rm -f conftest.o conftest.s
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29569 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29573 cat >>confdefs.h
<<_ACEOF
29574 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29588 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29589 if ${gcc_cv_as_ix86_got32x+:} false
; then :
29590 $as_echo_n "(cached) " >&6
29592 gcc_cv_as_ix86_got32x
=no
29593 if test x
$gcc_cv_as != x
; then
29594 $as_echo "$conftest_s" > conftest.s
29595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29597 (eval $ac_try) 2>&5
29599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29600 test $ac_status = 0; }; }
29602 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29603 && test x
$gcc_cv_readelf != x \
29604 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29605 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
29606 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29607 if $gcc_cv_objdump -dw conftest
2>&1 \
29608 |
grep 0xffffff > /dev
/null
2>&1; then
29609 gcc_cv_as_ix86_got32x
=no
29611 gcc_cv_as_ix86_got32x
=yes
29616 echo "configure: failed program was" >&5
29619 rm -f conftest.o conftest.s
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29623 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29627 cat >>confdefs.h
<<_ACEOF
29628 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29632 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29633 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29634 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29635 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_x86_64_sol2
> /dev
/null
; then
29636 ld_ix86_gld_64_opt
="-melf_x86_64_sol2"
29638 ld_ix86_gld_64_opt
="-melf_x86_64"
29641 # Enforce 64-bit output with gas and gld.
29642 if test x
$gas = xyes
; then
29643 as_ix86_gas_64_opt
="--64"
29648 .type _start, @function
29650 addq %r23,foo@GOTTPOFF(%rip), %r15
29651 .section .tdata,"awT",@progbits
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29656 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29657 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false
; then :
29658 $as_echo_n "(cached) " >&6
29660 gcc_cv_as_x86_64_code_6_gottpoff
=no
29661 if test x
$gcc_cv_as != x
; then
29662 $as_echo "$conftest_s" > conftest.s
29663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29665 (eval $ac_try) 2>&5
29667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29668 test $ac_status = 0; }; }
29670 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
29671 && test x
$gcc_cv_readelf != x \
29672 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
29673 |
grep R_X86_64_CODE_6_GOTTPOFF
> /dev
/null
2>&1 \
29674 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29675 if $gcc_cv_objdump -dw conftest
2>&1 \
29676 |
grep "add \+\$0xf\+8,%r23,%r15" > /dev
/null
2>&1; then
29677 gcc_cv_as_x86_64_code_6_gottpoff
=yes
29679 gcc_cv_as_x86_64_code_6_gottpoff
=no
29684 echo "configure: failed program was" >&5
29687 rm -f conftest.o conftest.s
29690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29691 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29695 cat >>confdefs.h
<<_ACEOF
29696 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29701 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29702 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
29703 $as_echo_n "(cached) " >&6
29705 gcc_cv_as_ix86_gotoff_in_data
=no
29706 if test x
$gcc_cv_as != x
; then
29711 .long .L0@GOTOFF' > conftest.s
29712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29714 (eval $ac_try) 2>&5
29716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29717 test $ac_status = 0; }; }
29719 gcc_cv_as_ix86_gotoff_in_data
=yes
29721 echo "configure: failed program was" >&5
29724 rm -f conftest.o conftest.s
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29728 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29732 cat >>confdefs.h
<<_ACEOF
29733 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29738 .section .text,"ax",@progbits
29740 .type _start, @function
29742 leal ld@tlsldm(%ecx), %eax
29743 call *___tls_get_addr@GOT(%ecx)
29744 leal gd@tlsgd(%ecx), %eax
29745 call *___tls_get_addr@GOT(%ecx)
29747 .section .tdata,"aw'$tls_section_flag'",@progbits
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29756 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29757 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
29758 $as_echo_n "(cached) " >&6
29760 gcc_cv_as_ix86_tls_get_addr_via_got
=no
29761 if test x
$gcc_cv_as != x
; then
29762 $as_echo "$conftest_s" > conftest.s
29763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29765 (eval $ac_try) 2>&5
29767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29768 test $ac_status = 0; }; }
29770 if test x
$gcc_cv_ld != x \
29771 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
29772 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
29776 echo "configure: failed program was" >&5
29779 rm -f conftest.o conftest.s
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29783 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29787 cat >>confdefs.h
<<_ACEOF
29788 #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`
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29795 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29796 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
29797 $as_echo_n "(cached) " >&6
29799 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
29800 if test x
$gcc_cv_as != x
; then
29802 addl r15 = @ltoffx(x#), gp
29804 ld8.mov r16 = [r15], x#
29806 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29808 (eval $ac_try) 2>&5
29810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29811 test $ac_status = 0; }; }
29813 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
29815 echo "configure: failed program was" >&5
29818 rm -f conftest.o conftest.s
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29822 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29823 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29825 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29837 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29838 if ${gcc_cv_as_machine_directive+:} false
; then :
29839 $as_echo_n "(cached) " >&6
29841 gcc_cv_as_machine_directive
=no
29842 if test x
$gcc_cv_as != x
; then
29843 $as_echo ' .machine ppc7400' > conftest.s
29844 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29846 (eval $ac_try) 2>&5
29848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29849 test $ac_status = 0; }; }
29851 gcc_cv_as_machine_directive
=yes
29853 echo "configure: failed program was" >&5
29856 rm -f conftest.o conftest.s
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29860 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29863 if test x
$gcc_cv_as_machine_directive != xyes
; then
29864 echo "*** This target requires an assembler supporting \".machine\"" >&2
29865 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
29866 test x
$build = x
$target && exit 1
29872 *-*-aix*) conftest_s
=' .machine "pwr5"
29875 *-*-darwin*) conftest_s
=' .text
29877 *) conftest_s
=' .machine power4
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
29883 $as_echo_n "checking assembler for mfcr field support... " >&6; }
29884 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
29885 $as_echo_n "(cached) " >&6
29887 gcc_cv_as_powerpc_mfcrf
=no
29888 if test x
$gcc_cv_as != x
; then
29889 $as_echo "$conftest_s" > conftest.s
29890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29892 (eval $ac_try) 2>&5
29894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29895 test $ac_status = 0; }; }
29897 gcc_cv_as_powerpc_mfcrf
=yes
29899 echo "configure: failed program was" >&5
29902 rm -f conftest.o conftest.s
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
29906 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
29907 if test $gcc_cv_as_powerpc_mfcrf = yes; then
29909 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
29915 *-*-aix*) conftest_s
=' .machine "pwr10"
29918 *-*-darwin*) conftest_s
=' .text
29920 *) conftest_s
=' .machine power10
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
29926 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
29927 if ${gcc_cv_as_power10_htm+:} false
; then :
29928 $as_echo_n "(cached) " >&6
29930 gcc_cv_as_power10_htm
=no
29931 if test x
$gcc_cv_as != x
; then
29932 $as_echo "$conftest_s" > conftest.s
29933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29935 (eval $ac_try) 2>&5
29937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29938 test $ac_status = 0; }; }
29940 gcc_cv_as_power10_htm
=yes
29942 echo "configure: failed program was" >&5
29945 rm -f conftest.o conftest.s
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
29949 $as_echo "$gcc_cv_as_power10_htm" >&6; }
29950 if test $gcc_cv_as_power10_htm = yes; then
29952 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
29958 *-*-aix*) conftest_s
=' .csect .text[PR]
29960 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
29964 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
29965 *) conftest_s
=' .text
29967 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
29971 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
29972 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
29973 $as_echo_n "(cached) " >&6
29975 gcc_cv_as_powerpc_rel16
=no
29976 if test x
$gcc_cv_as != x
; then
29977 $as_echo "$conftest_s" > conftest.s
29978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
29979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29980 (eval $ac_try) 2>&5
29982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29983 test $ac_status = 0; }; }
29985 gcc_cv_as_powerpc_rel16
=yes
29987 echo "configure: failed program was" >&5
29990 rm -f conftest.o conftest.s
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
29994 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
29995 if test $gcc_cv_as_powerpc_rel16 = yes; then
29997 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30003 *-*-aix*) conftest_s
=' .machine "pwr7"
30006 *) conftest_s
=' .machine power7
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30012 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30013 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
30014 $as_echo_n "(cached) " >&6
30016 gcc_cv_as_powerpc_vsx
=no
30017 if test x
$gcc_cv_as != x
; then
30018 $as_echo "$conftest_s" > conftest.s
30019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30021 (eval $ac_try) 2>&5
30023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30024 test $ac_status = 0; }; }
30026 gcc_cv_as_powerpc_vsx
=yes
30028 echo "configure: failed program was" >&5
30031 rm -f conftest.o conftest.s
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30035 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30036 if test $gcc_cv_as_powerpc_vsx = yes; then
30038 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30044 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30045 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
30046 $as_echo_n "(cached) " >&6
30048 gcc_cv_as_powerpc_gnu_attribute
=no
30049 if test x
$gcc_cv_as != x
; then
30050 $as_echo '.gnu_attribute 4,1' > conftest.s
30051 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30053 (eval $ac_try) 2>&5
30055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30056 test $ac_status = 0; }; }
30058 gcc_cv_as_powerpc_gnu_attribute
=yes
30060 echo "configure: failed program was" >&5
30063 rm -f conftest.o conftest.s
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30067 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30068 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30070 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30076 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30077 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
30078 $as_echo_n "(cached) " >&6
30080 gcc_cv_as_powerpc_entry_markers
=no
30081 if test x
$gcc_cv_as != x
; then
30082 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30085 (eval $ac_try) 2>&5
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; }
30090 gcc_cv_as_powerpc_entry_markers
=yes
30092 echo "configure: failed program was" >&5
30095 rm -f conftest.o conftest.s
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30099 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30100 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30102 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30108 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30109 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
30110 $as_echo_n "(cached) " >&6
30112 gcc_cv_as_powerpc_pltseq_markers
=no
30113 if test x
$gcc_cv_as != x
; then
30114 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -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_pltseq_markers
=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_pltseq_markers" >&5
30131 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30132 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30134 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30142 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30143 if ${gcc_cv_as_aix_ref+:} false
; then :
30144 $as_echo_n "(cached) " >&6
30146 gcc_cv_as_aix_ref
=no
30147 if test x
$gcc_cv_as != x
; then
30148 $as_echo ' .csect stuff[rw]
30154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30156 (eval $ac_try) 2>&5
30158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30159 test $ac_status = 0; }; }
30161 gcc_cv_as_aix_ref
=yes
30163 echo "configure: failed program was" >&5
30166 rm -f conftest.o conftest.s
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30170 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30171 if test $gcc_cv_as_aix_ref = yes; then
30173 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30179 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30180 if ${gcc_cv_as_aix_dwloc+:} false
; then :
30181 $as_echo_n "(cached) " >&6
30183 gcc_cv_as_aix_dwloc
=no
30184 if test x
$gcc_cv_as != x
; then
30185 $as_echo ' .dwsect 0xA0000
30189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30191 (eval $ac_try) 2>&5
30193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30194 test $ac_status = 0; }; }
30196 gcc_cv_as_aix_dwloc
=yes
30198 echo "configure: failed program was" >&5
30201 rm -f conftest.o conftest.s
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30205 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30206 if test $gcc_cv_as_aix_dwloc = yes; then
30208 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30218 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30219 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false
; then :
30220 $as_echo_n "(cached) " >&6
30222 gcc_cv_as_mips_explicit_relocs_pcrel
=no
30223 if test x
$gcc_cv_as != x
; then
30224 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30227 (eval $ac_try) 2>&5
30229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30230 test $ac_status = 0; }; }
30232 gcc_cv_as_mips_explicit_relocs_pcrel
=yes
30234 echo "configure: failed program was" >&5
30237 rm -f conftest.o conftest.s
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30241 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30242 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30244 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30249 if test x
$gcc_cv_as_mips_explicit_relocs_pcrel = xno
; then \
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30251 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30252 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
30253 $as_echo_n "(cached) " >&6
30255 gcc_cv_as_mips_explicit_relocs
=no
30256 if test x
$gcc_cv_as != x
; then
30257 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30260 (eval $ac_try) 2>&5
30262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30263 test $ac_status = 0; }; }
30265 gcc_cv_as_mips_explicit_relocs
=yes
30267 echo "configure: failed program was" >&5
30270 rm -f conftest.o conftest.s
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30274 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30275 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30277 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30283 if test x
$gcc_cv_as_mips_explicit_relocs = xno
; then \
30285 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30290 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30291 if ${gcc_cv_as_mips_no_shared+:} false
; then :
30292 $as_echo_n "(cached) " >&6
30294 gcc_cv_as_mips_no_shared
=no
30295 if test x
$gcc_cv_as != x
; then
30296 $as_echo 'nop' > conftest.s
30297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30299 (eval $ac_try) 2>&5
30301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30302 test $ac_status = 0; }; }
30304 gcc_cv_as_mips_no_shared
=yes
30306 echo "configure: failed program was" >&5
30309 rm -f conftest.o conftest.s
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30313 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30314 if test $gcc_cv_as_mips_no_shared = yes; then
30316 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30322 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30323 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
30324 $as_echo_n "(cached) " >&6
30326 gcc_cv_as_mips_gnu_attribute
=no
30327 if test x
$gcc_cv_as != x
; then
30328 $as_echo '.gnu_attribute 4,1' > conftest.s
30329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30331 (eval $ac_try) 2>&5
30333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30334 test $ac_status = 0; }; }
30336 gcc_cv_as_mips_gnu_attribute
=yes
30338 echo "configure: failed program was" >&5
30341 rm -f conftest.o conftest.s
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30345 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30346 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30348 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30354 $as_echo_n "checking assembler for .module support... " >&6; }
30355 if ${gcc_cv_as_mips_dot_module+:} false
; then :
30356 $as_echo_n "(cached) " >&6
30358 gcc_cv_as_mips_dot_module
=no
30359 if test x
$gcc_cv_as != x
; then
30360 $as_echo '.module mips2
30361 .module fp=xx' > conftest.s
30362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -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_dot_module
=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_dot_module" >&5
30378 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30379 if test $gcc_cv_as_mips_dot_module = yes; then
30381 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30385 if test x
$gcc_cv_as_mips_dot_module = xno \
30386 && test x
$with_fp_32 != x
; then
30387 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30391 $as_echo_n "checking assembler for .micromips support... " >&6; }
30392 if ${gcc_cv_as_micromips_support+:} false
; then :
30393 $as_echo_n "(cached) " >&6
30395 gcc_cv_as_micromips_support
=no
30396 if test x
$gcc_cv_as != x
; then
30397 $as_echo '.set micromips' > conftest.s
30398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30400 (eval $ac_try) 2>&5
30402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30403 test $ac_status = 0; }; }
30405 gcc_cv_as_micromips_support
=yes
30407 echo "configure: failed program was" >&5
30410 rm -f conftest.o conftest.s
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30414 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30415 if test $gcc_cv_as_micromips_support = yes; then
30417 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30423 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30424 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
30425 $as_echo_n "(cached) " >&6
30427 gcc_cv_as_mips_dtprelword
=no
30428 if test x
$gcc_cv_as != x
; then
30429 $as_echo '.section .tdata,"awT",@progbits
30433 .dtprelword x+0x8000' > conftest.s
30434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30436 (eval $ac_try) 2>&5
30438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30439 test $ac_status = 0; }; }
30441 gcc_cv_as_mips_dtprelword
=yes
30443 echo "configure: failed program was" >&5
30446 rm -f conftest.o conftest.s
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30450 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30451 if test $gcc_cv_as_mips_dtprelword = yes; then
30453 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30459 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30460 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
30461 $as_echo_n "(cached) " >&6
30463 gcc_cv_as_mips_dspr1_mult
=no
30464 if test x
$gcc_cv_as != x
; then
30465 $as_echo ' .set mips32r2
30473 multu $ac3,$4,$5' > conftest.s
30474 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30476 (eval $ac_try) 2>&5
30478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30479 test $ac_status = 0; }; }
30481 gcc_cv_as_mips_dspr1_mult
=yes
30483 echo "configure: failed program was" >&5
30486 rm -f conftest.o conftest.s
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30490 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30491 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30493 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30499 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30500 gcc_cv_as_ld_jalr_reloc
=no
30501 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30502 if test $in_tree_ld = yes ; then
30503 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 \
30504 && test $in_tree_ld_is_elf = yes; then
30505 gcc_cv_as_ld_jalr_reloc
=yes
30507 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30508 echo ' .ent x' > conftest.s
30509 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30510 echo ' lw $25,%call16(y)($28)' >> conftest.s
30511 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30512 echo '1: jalr $25' >> conftest.s
30513 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30514 echo '1: jalr $25' >> conftest.s
30515 echo ' .end x' >> conftest.s
30516 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
30517 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
30518 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
30519 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
30520 gcc_cv_as_ld_jalr_reloc
=yes
30526 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30527 if test x
$target_cpu_default = x
; then
30528 target_cpu_default
=MASK_RELAX_PIC_CALLS
30530 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30534 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30537 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30538 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
30539 $as_echo_n "(cached) " >&6
30541 gcc_cv_ld_mips_personality_relaxation
=no
30542 if test $in_tree_ld = yes ; then
30543 if test "$gcc_cv_gld_major_version" -eq 2 \
30544 -a "$gcc_cv_gld_minor_version" -ge 21 \
30545 -o "$gcc_cv_gld_major_version" -gt 2; then
30546 gcc_cv_ld_mips_personality_relaxation
=yes
30548 elif test x
$gcc_cv_as != x \
30549 -a x
$gcc_cv_ld != x \
30550 -a x
$gcc_cv_readelf != x
; then
30551 cat > conftest.s
<<EOF
30553 .cfi_personality 0x80,indirect_ptr
30560 .section .data,"aw",@progbits
30564 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
30565 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
30566 if $gcc_cv_readelf -d conftest
2>&1 \
30567 |
grep TEXTREL
> /dev
/null
2>&1; then
30569 elif $gcc_cv_readelf --relocs conftest
2>&1 \
30570 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
30573 gcc_cv_ld_mips_personality_relaxation
=yes
30577 rm -f conftest.s conftest.o conftest
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30580 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30581 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
30583 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30588 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30589 if ${gcc_cv_as_mips_nan+:} false
; then :
30590 $as_echo_n "(cached) " >&6
30592 gcc_cv_as_mips_nan
=no
30593 if test x
$gcc_cv_as != x
; then
30594 $as_echo '' > conftest.s
30595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30597 (eval $ac_try) 2>&5
30599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30600 test $ac_status = 0; }; }
30602 gcc_cv_as_mips_nan
=yes
30604 echo "configure: failed program was" >&5
30607 rm -f conftest.o conftest.s
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30611 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30612 if test $gcc_cv_as_mips_nan = yes; then
30614 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30618 if test x
$gcc_cv_as_mips_nan = xno \
30619 && test x
$with_nan != x
; then
30620 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30624 # Earlier GAS versions generically support .gnu_attribute, but the
30625 # msp430 assembler will not do anything with it.
30626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30627 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30628 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
30629 $as_echo_n "(cached) " >&6
30631 gcc_cv_as_msp430_gnu_attribute
=no
30632 if test x
$gcc_cv_as != x
; then
30633 $as_echo '.gnu_attribute 4,1' > conftest.s
30634 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30636 (eval $ac_try) 2>&5
30638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30639 test $ac_status = 0; }; }
30641 gcc_cv_as_msp430_gnu_attribute
=yes
30643 echo "configure: failed program was" >&5
30646 rm -f conftest.o conftest.s
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30650 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30651 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30653 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30658 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30659 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
30660 $as_echo_n "(cached) " >&6
30662 gcc_cv_as_msp430_mspabi_attribute
=no
30663 if test x
$gcc_cv_as != x
; then
30664 $as_echo '.mspabi_attribute 4,2' > conftest.s
30665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30667 (eval $ac_try) 2>&5
30669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30670 test $ac_status = 0; }; }
30672 gcc_cv_as_msp430_mspabi_attribute
=yes
30674 echo "configure: failed program was" >&5
30677 rm -f conftest.o conftest.s
30680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30681 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30682 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30684 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30688 if test x
$enable_newlib_nano_formatted_io = xyes
; then
30690 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30695 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30696 # syntax that is documented in the ABI specification.
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30698 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30699 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
30700 $as_echo_n "(cached) " >&6
30702 gcc_cv_as_nios2_gotoff_relocation
=no
30703 if test x
$gcc_cv_as != x
; then
30704 $as_echo ' .extern foo
30706 .long %gotoff(foo)' > conftest.s
30707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30709 (eval $ac_try) 2>&5
30711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; }
30714 gcc_cv_as_nios2_gotoff_relocation
=yes
30716 echo "configure: failed program was" >&5
30719 rm -f conftest.o conftest.s
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30723 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30724 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30726 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30733 $as_echo_n "checking assembler for .attribute support... " >&6; }
30734 if ${gcc_cv_as_riscv_attribute+:} false
; then :
30735 $as_echo_n "(cached) " >&6
30737 gcc_cv_as_riscv_attribute
=no
30738 if test x
$gcc_cv_as != x
; then
30739 $as_echo '.attribute stack_align,4' > conftest.s
30740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30742 (eval $ac_try) 2>&5
30744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30745 test $ac_status = 0; }; }
30747 gcc_cv_as_riscv_attribute
=yes
30749 echo "configure: failed program was" >&5
30752 rm -f conftest.o conftest.s
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30756 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30757 if test $gcc_cv_as_riscv_attribute = yes; then
30759 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30764 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30765 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
30766 $as_echo_n "(cached) " >&6
30768 gcc_cv_as_riscv_isa_spec
=no
30769 if test x
$gcc_cv_as != x
; then
30770 $as_echo '' > conftest.s
30771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30773 (eval $ac_try) 2>&5
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; }
30778 gcc_cv_as_riscv_isa_spec
=yes
30780 echo "configure: failed program was" >&5
30783 rm -f conftest.o conftest.s
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30787 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30788 if test $gcc_cv_as_riscv_isa_spec = yes; then
30790 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30795 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30796 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
30797 $as_echo_n "(cached) " >&6
30799 gcc_cv_as_riscv_march_zifencei
=no
30800 if test x
$gcc_cv_as != x
; then
30801 $as_echo '' > conftest.s
30802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30804 (eval $ac_try) 2>&5
30806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30807 test $ac_status = 0; }; }
30809 gcc_cv_as_riscv_march_zifencei
=yes
30811 echo "configure: failed program was" >&5
30814 rm -f conftest.o conftest.s
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30818 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30819 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30821 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30828 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30829 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
30830 $as_echo_n "(cached) " >&6
30832 gcc_cv_as_loongarch_dtprelword
=no
30833 if test x
$gcc_cv_as != x
; then
30834 $as_echo '' > conftest.s
30835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30837 (eval $ac_try) 2>&5
30839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30840 test $ac_status = 0; }; }
30842 .section .tdata
,"awT",@progbits
30846 .dtprelword x
+0x8000
30848 echo "configure: failed program was" >&5
30851 rm -f conftest.o conftest.s
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30855 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30857 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30859 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30863 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30864 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
30865 $as_echo_n "(cached) " >&6
30867 gcc_cv_as_loongarch_explicit_relocs
=no
30868 if test x
$gcc_cv_as != x
; then
30869 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30872 (eval $ac_try) 2>&5
30874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30875 test $ac_status = 0; }; }
30877 gcc_cv_as_loongarch_explicit_relocs
=yes
30879 echo "configure: failed program was" >&5
30882 rm -f conftest.o conftest.s
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30886 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30887 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30889 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30894 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30895 if ${gcc_cv_as_loongarch_call36+:} false
; then :
30896 $as_echo_n "(cached) " >&6
30898 gcc_cv_as_loongarch_call36
=no
30899 if test x
$gcc_cv_as != x
; then
30900 $as_echo 'pcaddu18i $r1, %call36(a)
30901 jirl $r1, $r1, 0' > conftest.s
30902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30904 (eval $ac_try) 2>&5
30906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30907 test $ac_status = 0; }; }
30909 gcc_cv_as_loongarch_call36
=yes
30911 echo "configure: failed program was" >&5
30914 rm -f conftest.o conftest.s
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
30918 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
30919 if test $gcc_cv_as_loongarch_call36 = yes; then
30921 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
30926 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
30927 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
30928 $as_echo_n "(cached) " >&6
30930 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
30931 if test x
$gcc_cv_as != x
; then
30932 $as_echo '.cfi_startproc
30933 .cfi_personality 0x9b,a
30935 .cfi_endproc' > conftest.s
30936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30938 (eval $ac_try) 2>&5
30940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30941 test $ac_status = 0; }; }
30943 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
30945 echo "configure: failed program was" >&5
30948 rm -f conftest.o conftest.s
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
30952 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
30953 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
30955 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
30960 $as_echo_n "checking assembler for -mrelax option... " >&6; }
30961 if ${gcc_cv_as_loongarch_relax+:} false
; then :
30962 $as_echo_n "(cached) " >&6
30964 gcc_cv_as_loongarch_relax
=no
30965 if test x
$gcc_cv_as != x
; then
30966 $as_echo '.text' > conftest.s
30967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
30968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30969 (eval $ac_try) 2>&5
30971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30972 test $ac_status = 0; }; }
30974 gcc_cv_as_loongarch_relax
=yes
30976 echo "configure: failed program was" >&5
30979 rm -f conftest.o conftest.s
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
30983 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
30984 if test $gcc_cv_as_loongarch_relax = yes; then
30986 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
30991 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
30992 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false
; then :
30993 $as_echo_n "(cached) " >&6
30995 gcc_cv_as_loongarch_cond_branch_relax
=no
30996 if test x
$gcc_cv_as != x
; then
31001 beq $a0,$a1,a' > conftest.s
31002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31004 (eval $ac_try) 2>&5
31006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31007 test $ac_status = 0; }; }
31009 gcc_cv_as_loongarch_cond_branch_relax
=yes
31011 echo "configure: failed program was" >&5
31014 rm -f conftest.o conftest.s
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31018 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31019 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31021 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31026 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31027 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false
; then :
31028 $as_echo_n "(cached) " >&6
31030 gcc_cv_as_loongarch_tls_le_relaxation_support
=no
31031 if test x
$gcc_cv_as != x
; then
31032 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31035 (eval $ac_try) 2>&5
31037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31038 test $ac_status = 0; }; }
31040 gcc_cv_as_loongarch_tls_le_relaxation_support
=yes
31042 echo "configure: failed program was" >&5
31045 rm -f conftest.o conftest.s
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31049 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31050 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31052 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31059 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31060 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
31061 $as_echo_n "(cached) " >&6
31063 gcc_cv_as_s390_gnu_attribute
=no
31064 if test x
$gcc_cv_as != x
; then
31065 $as_echo '.gnu_attribute 8,1' > conftest.s
31066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31068 (eval $ac_try) 2>&5
31070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31071 test $ac_status = 0; }; }
31073 gcc_cv_as_s390_gnu_attribute
=yes
31075 echo "configure: failed program was" >&5
31078 rm -f conftest.o conftest.s
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31082 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31083 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31085 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31090 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31091 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
31092 $as_echo_n "(cached) " >&6
31094 gcc_cv_as_s390_machine_machinemode
=no
31095 if test x
$gcc_cv_as != x
; then
31096 $as_echo ' .machinemode push
31099 .machine pop' > 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_s390_machine_machinemode
=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_s390_machine_machinemode" >&5
31116 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31117 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31119 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31124 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31125 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
31126 $as_echo_n "(cached) " >&6
31128 gcc_cv_as_s390_architecture_modifiers
=no
31129 if test x
$gcc_cv_as != x
; then
31130 $as_echo ' .machine z13+vx ' > 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_s390_architecture_modifiers
=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_s390_architecture_modifiers" >&5
31147 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31148 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31150 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31155 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31156 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
31157 $as_echo_n "(cached) " >&6
31159 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
31160 if test x
$gcc_cv_as != x
; then
31161 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31164 (eval $ac_try) 2>&5
31166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31167 test $ac_status = 0; }; }
31169 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
31171 echo "configure: failed program was" >&5
31174 rm -f conftest.o conftest.s
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31178 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31179 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31181 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31186 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31187 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
31188 $as_echo_n "(cached) " >&6
31190 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
31191 if test x
$gcc_cv_as != x
; then
31192 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31195 (eval $ac_try) 2>&5
31197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31198 test $ac_status = 0; }; }
31200 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
31202 echo "configure: failed program was" >&5
31205 rm -f conftest.o conftest.s
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31209 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31210 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31212 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31220 # Mips, LoongArch and HP-UX need the GNU assembler.
31221 # Linux on IA64 might be able to use the Intel assembler.
31224 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
31225 if test x
$gas_flag = xyes \
31226 ||
test x
"$host" != x
"$build" \
31227 ||
test ! -x "$gcc_cv_as" \
31228 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
31231 echo "*** This configuration requires the GNU assembler" >&2
31237 # AMD GCN needs the LLVM assembler and linker.
31238 # Test that LLVM is at least 13.0.1.
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31242 $as_echo_n "checking llvm assembler version... " >&6; }
31243 gcc_cv_as_version
="unknown"
31244 if test x
$gcc_cv_as != x
; then
31245 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31246 case "$gcc_cv_as_version" in
31247 13.0.
[1-9]*) ;; # 13.0.1+
31248 13.
[1-9]*) ;; # 13.1+
31249 1[4-9]*) ;; # 14..19
31250 [2-9][0-9]*) ;; # 20..99
31251 [1-9][0-9][0-9]*) ;; # 100+
31252 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
31253 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31257 $as_echo "$gcc_cv_as_version, ok" >&6; }
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31264 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31265 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
31266 $as_echo_n "(cached) " >&6
31268 gcc_cv_as_arm_option_extensions
=no
31269 if test x
$gcc_cv_as != x
; then
31273 vmov.f32 s0, s1' > conftest.s
31274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31276 (eval $ac_try) 2>&5
31278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31279 test $ac_status = 0; }; }
31281 gcc_cv_as_arm_option_extensions
=yes
31283 echo "configure: failed program was" >&5
31286 rm -f conftest.o conftest.s
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31290 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31291 if test $gcc_cv_as_arm_option_extensions = yes; then
31293 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31299 # ??? Not all targets support dwarf2 debug_line, even within a version
31300 # of gas. Moreover, we need to emit a valid instruction to trigger any
31301 # info to the output file. So, as supported targets are added to gas 2.11,
31302 # add some instruction here to (also) show we expect this might work.
31303 # ??? Once 2.11 is released, probably need to add first known working
31304 # version to the per-target configury.
31305 case "$cpu_type" in
31306 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31307 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31308 | visium | xstormy16 | xtensa
)
31318 if test x
"$insn" != x
; then
31320 .file 1 \"conftest.s\"
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31324 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31325 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
31326 $as_echo_n "(cached) " >&6
31328 gcc_cv_as_dwarf2_debug_line
=no
31329 if test x
$gcc_cv_as != x
; then
31330 $as_echo "$conftest_s" > conftest.s
31331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31333 (eval $ac_try) 2>&5
31335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31336 test $ac_status = 0; }; }
31338 if test x
$gcc_cv_objdump != x \
31339 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
31340 |
grep debug_line
> /dev
/null
2>&1; then
31341 gcc_cv_as_dwarf2_debug_line
=yes
31342 elif test x
$gcc_cv_otool != x \
31343 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
31344 |
grep debug_line
> /dev
/null
2>&1; then
31345 gcc_cv_as_dwarf2_debug_line
=yes
31348 echo "configure: failed program was" >&5
31351 rm -f conftest.o conftest.s
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31355 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31359 # The .debug_line file table must be in the exact order that
31360 # we specified the files, since these indices are also used
31361 # by DW_AT_decl_file. Approximate this test by testing if
31362 # the assembler bitches if the same index is assigned twice.
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31364 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31365 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
31366 $as_echo_n "(cached) " >&6
31368 gcc_cv_as_dwarf2_file_buggy
=no
31369 if test x
$gcc_cv_as != x
; then
31370 $as_echo ' .file 1 "foo.s"
31371 .file 1 "bar.s"' > conftest.s
31372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_dwarf2_file_buggy
=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_dwarf2_file_buggy" >&5
31388 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31392 if test $gcc_cv_as_dwarf2_debug_line = yes \
31393 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
31395 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31398 if test $gcc_cv_as_leb128 = yes; then
31400 .file 1 \"conftest.s\"
31401 .loc 1 3 0 view .LVU1
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31408 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31409 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
31410 $as_echo_n "(cached) " >&6
31412 gcc_cv_as_dwarf2_debug_view
=no
31413 if test x
$gcc_cv_as != x
; then
31414 $as_echo "$conftest_s" > conftest.s
31415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31417 (eval $ac_try) 2>&5
31419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31420 test $ac_status = 0; }; }
31422 gcc_cv_as_dwarf2_debug_view
=yes
31424 echo "configure: failed program was" >&5
31427 rm -f conftest.o conftest.s
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31431 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31432 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31434 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31442 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31443 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
31444 $as_echo_n "(cached) " >&6
31446 gcc_cv_as_gdwarf2_flag
=no
31447 if test x
$gcc_cv_as != x
; then
31448 $as_echo "$insn" > conftest.s
31449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31451 (eval $ac_try) 2>&5
31453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31454 test $ac_status = 0; }; }
31456 gcc_cv_as_gdwarf2_flag
=yes
31458 echo "configure: failed program was" >&5
31461 rm -f conftest.o conftest.s
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31465 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31466 if test $gcc_cv_as_gdwarf2_flag = yes; then
31468 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31474 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31475 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
31476 $as_echo_n "(cached) " >&6
31478 gcc_cv_as_gdwarf_5_flag
=no
31479 if test x
$gcc_cv_as != x
; then
31480 $as_echo "$insn" > conftest.s
31481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31483 (eval $ac_try) 2>&5
31485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31486 test $ac_status = 0; }; }
31488 if test x
$gcc_cv_objdump != x \
31489 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
31490 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
31491 gcc_cv_as_gdwarf_5_flag
=yes;
31494 echo "configure: failed program was" >&5
31497 rm -f conftest.o conftest.s
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31501 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31502 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31504 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31510 win32 | pe | cygwin
* | mingw32
*)
31511 section_flags
=\"dr
\"
31512 function_type
=".def foo; .scl 2; .type 32; .endef"
31515 section_flags
=\"\",%progbits
31516 function_type
=".type foo, %function"
31517 function_size
=".size foo, .-foo";;
31519 dwarf4_debug_info_size
=0x46
31520 dwarf4_high_pc_form
=7
31521 dwarf4_debug_aranges_size
=0x2c
31523 for dwarf4_addr_size
in 8 4; do
31539 .section .debug_info,$section_flags
31541 .4byte $dwarf4_debug_info_size
31543 .4byte .Ldebug_abbrev0
31544 .byte 0x$dwarf4_addr_size
31546 .ascii \"GNU C17\\0\"
31550 .${dwarf4_addr_size}byte .Ltext0
31551 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31552 .4byte .Ldebug_line0
31558 .${dwarf4_addr_size}byte .LFB0
31559 .${dwarf4_addr_size}byte .LFE0-.LFB0
31563 .section .debug_abbrev,$section_flags
31579 .byte 0x$dwarf4_high_pc_form
31600 .byte 0x$dwarf4_high_pc_form
31606 .section .debug_aranges,$section_flags
31607 .4byte $dwarf4_debug_aranges_size
31609 .4byte .Ldebug_info0
31614 .${dwarf4_addr_size}byte .Ltext0
31615 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31616 .${dwarf4_addr_size}byte 0
31617 .${dwarf4_addr_size}byte 0
31618 .section .debug_line,$section_flags
31620 .4byte .LELT0-.LSLT0
31623 .4byte .LELTP0-.LASLTP0
31651 .byte 0x$dwarf4_line_sz
31653 .${dwarf4_addr_size}byte .LM1
31658 .byte 0x$dwarf4_line_sz
31660 .${dwarf4_addr_size}byte .LM2
31665 .byte 0x$dwarf4_line_sz
31667 .${dwarf4_addr_size}byte .Letext0
31672 .section .debug_str,$section_flags
31676 if test $dwarf4_addr_size = 4; then
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31678 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31679 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
31680 $as_echo_n "(cached) " >&6
31682 gcc_cv_as_debug_line_32_flag
=no
31683 if test x
$gcc_cv_as != x
; then
31684 $as_echo "$conftest_s" > conftest.s
31685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31687 (eval $ac_try) 2>&5
31689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31690 test $ac_status = 0; }; }
31692 gcc_cv_as_debug_line_32_flag
=yes
31694 echo "configure: failed program was" >&5
31697 rm -f conftest.o conftest.s
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31701 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31702 if test $gcc_cv_as_debug_line_32_flag = yes; then
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31708 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31709 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
31710 $as_echo_n "(cached) " >&6
31712 gcc_cv_as_debug_line_64_flag
=no
31713 if test x
$gcc_cv_as != x
; then
31714 $as_echo "$conftest_s" > conftest.s
31715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31717 (eval $ac_try) 2>&5
31719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31720 test $ac_status = 0; }; }
31722 gcc_cv_as_debug_line_64_flag
=yes
31724 echo "configure: failed program was" >&5
31727 rm -f conftest.o conftest.s
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31731 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31732 if test $gcc_cv_as_debug_line_64_flag = yes; then
31737 if test $dwarf4_success = yes; then
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31740 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31741 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
31742 $as_echo_n "(cached) " >&6
31744 gcc_cv_as_dwarf_4_debug_line_flag
=no
31745 if test x
$gcc_cv_as != x
; then
31746 $as_echo "$conftest_s" > conftest.s
31747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31749 (eval $ac_try) 2>&5
31751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31752 test $ac_status = 0; }; }
31754 gcc_cv_as_dwarf_4_debug_line_flag
=yes
31756 echo "configure: failed program was" >&5
31759 rm -f conftest.o conftest.s
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31763 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31764 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31770 dwarf4_debug_info_size
=0x36
31771 dwarf4_high_pc_form
=6
31772 dwarf4_debug_aranges_size
=0x1c
31776 if test $dwarf4_success = yes; then
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31795 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31796 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
31797 $as_echo_n "(cached) " >&6
31799 gcc_cv_as_dwarf_4_app_flag
=no
31800 if test x
$gcc_cv_as != x
; then
31801 $as_echo "$conftest_s" > conftest.s
31802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31804 (eval $ac_try) 2>&5
31806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31807 test $ac_status = 0; }; }
31809 gcc_cv_as_dwarf_4_app_flag
=yes
31811 echo "configure: failed program was" >&5
31814 rm -f conftest.o conftest.s
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31818 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31819 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31825 if test $dwarf4_success = yes; then
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31836 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31837 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
31838 $as_echo_n "(cached) " >&6
31840 gcc_cv_as_working_gdwarf_n_flag
=no
31841 if test x
$gcc_cv_as != x
; then
31842 $as_echo "$conftest_s" > conftest.s
31843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31845 (eval $ac_try) 2>&5
31847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31848 test $ac_status = 0; }; }
31850 if test x
$gcc_cv_objdump != x \
31851 && $gcc_cv_objdump -W conftest.o
2>&1 \
31852 |
grep conftest.s
> /dev
/null
2>&1; then
31853 gcc_cv_as_working_gdwarf_n_flag
=no
31855 gcc_cv_as_working_gdwarf_n_flag
=yes
31858 echo "configure: failed program was" >&5
31861 rm -f conftest.o conftest.s
31864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31865 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31868 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31870 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31876 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31877 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
31878 $as_echo_n "(cached) " >&6
31880 gcc_cv_as_debug_prefix_map_flag
=no
31881 if test x
$gcc_cv_as != x
; then
31882 $as_echo "$insn" > conftest.s
31883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31885 (eval $ac_try) 2>&5
31887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31888 test $ac_status = 0; }; }
31890 gcc_cv_as_debug_prefix_map_flag
=yes
31892 echo "configure: failed program was" >&5
31895 rm -f conftest.o conftest.s
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31899 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31900 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31902 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
31909 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
31910 if ${gcc_cv_as_compress_debug+:} false
; then :
31911 $as_echo_n "(cached) " >&6
31913 gcc_cv_as_compress_debug
=no
31914 if test x
$gcc_cv_as != x
; then
31915 $as_echo '' > conftest.s
31916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31918 (eval $ac_try) 2>&5
31920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31921 test $ac_status = 0; }; }
31923 # gas compiled without zlib cannot compress debug sections and warns
31924 # about it, but still exits successfully. So check for this, too.
31925 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
31927 gcc_cv_as_compress_debug
=0
31928 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
31930 gcc_cv_as_compress_debug
=1
31931 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
31932 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
31933 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
31934 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
31936 gcc_cv_as_compress_debug
=2
31939 gcc_cv_as_compress_debug
=0
31942 echo "configure: failed program was" >&5
31945 rm -f conftest.o conftest.s
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
31949 $as_echo "$gcc_cv_as_compress_debug" >&6; }
31953 cat >>confdefs.h
<<_ACEOF
31954 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
31958 cat >>confdefs.h
<<_ACEOF
31959 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
31963 cat >>confdefs.h
<<_ACEOF
31964 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
31969 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
31970 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
31971 $as_echo_n "(cached) " >&6
31973 gcc_cv_as_lcomm_with_alignment
=no
31974 if test x
$gcc_cv_as != x
; then
31975 $as_echo '.lcomm bar,4,16' > conftest.s
31976 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31978 (eval $ac_try) 2>&5
31980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31981 test $ac_status = 0; }; }
31983 gcc_cv_as_lcomm_with_alignment
=yes
31985 echo "configure: failed program was" >&5
31988 rm -f conftest.o conftest.s
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
31992 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
31993 if test $gcc_cv_as_lcomm_with_alignment = yes; then
31995 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32000 if test x
$with_sysroot = x
&& test x
$host = x
$target \
32001 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32002 && test "$prefix" != "NONE"; then
32004 cat >>confdefs.h
<<_ACEOF
32005 #define PREFIX_INCLUDE_DIR "$prefix/include"
32010 # Determine the version of glibc, if any, used on the target.
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32012 $as_echo_n "checking for target glibc version... " >&6; }
32014 # Check whether --with-glibc-version was given.
32015 if test "${with_glibc_version+set}" = set; then :
32016 withval
=$with_glibc_version;
32017 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32018 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32019 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32021 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
32025 glibc_version_major
=0
32026 glibc_version_minor
=0
32027 if test -f $target_header_dir/features.h \
32028 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32029 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32030 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32031 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32036 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32038 cat >>confdefs.h
<<_ACEOF
32039 #define TARGET_GLIBC_MAJOR $glibc_version_major
32043 cat >>confdefs.h
<<_ACEOF
32044 #define TARGET_GLIBC_MINOR $glibc_version_minor
32048 # Check whether --enable-gnu-unique-object was given.
32049 if test "${enable_gnu_unique_object+set}" = set; then :
32050 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32052 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32057 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32058 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
32059 $as_echo_n "(cached) " >&6
32061 gcc_cv_as_gnu_unique_object
=no
32062 if test x
$gcc_cv_as != x
; then
32063 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32066 (eval $ac_try) 2>&5
32068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32069 test $ac_status = 0; }; }
32071 gcc_cv_as_gnu_unique_object
=yes
32073 echo "configure: failed program was" >&5
32076 rm -f conftest.o conftest.s
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32080 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32081 if test $gcc_cv_as_gnu_unique_object = yes; then
32082 # We need to unquote above to to use the definition from config.gcc.
32083 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32085 if test $glibc_version_major -gt 2 \
32086 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32087 enable_gnu_unique_object
=yes
32094 if test x
$enable_gnu_unique_object = xyes
; then
32096 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32101 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32102 if ${gcc_cv_as_line_zero+:} false
; then :
32103 $as_echo_n "(cached) " >&6
32105 gcc_cv_as_line_zero
=no
32106 if test "x$gcc_cv_as" != x
; then
32107 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32108 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32110 (eval $ac_try) 2>&5
32112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32113 test $ac_status = 0; }; } &&
32114 test "x`cat conftest.out`" = x
32116 gcc_cv_as_line_zero
=yes
32118 echo "configure: failed program was" >&5
32120 echo "configure: error output was" >&5
32121 cat conftest.out
>&5
32123 rm -f conftest.o conftest.s conftest.out
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32127 $as_echo "$gcc_cv_as_line_zero" >&6; }
32128 if test "x$gcc_cv_as_line_zero" = xyes
; then
32130 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32135 $as_echo_n "checking support for thin archives... " >&6; }
32136 thin_archive_support
=no
32137 echo 'int main (void) { return 0; }' > conftest.c
32138 if ($AR --version |
sed 1q |
grep "GNU ar" \
32139 && $CC $CFLAGS -c conftest.c \
32140 && $AR rcT conftest.a conftest.o \
32141 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
32142 thin_archive_support
=yes
32144 rm -f conftest.c conftest.o conftest.a conftest
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32146 $as_echo "$thin_archive_support" >&6; }
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32150 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32151 gcc_cv_ld_eh_frame_hdr
=no
32152 if test $in_tree_ld = yes ; then
32153 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 \
32154 && test $in_tree_ld_is_elf = yes; then
32155 gcc_cv_ld_eh_frame_hdr
=yes
32157 elif test x
$gcc_cv_ld != x
; then
32158 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32159 # Check if linker supports --eh-frame-hdr option
32160 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
32161 gcc_cv_ld_eh_frame_hdr
=yes
32166 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32167 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
32168 gcc_cv_ld_eh_frame_hdr
=yes
32175 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
32177 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32181 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32184 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32185 gcc_cv_ld_eh_frame_ciev3
=no
32186 if test $in_tree_ld = yes ; then
32187 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 \
32188 && test $in_tree_ld_is_elf = yes; then
32189 gcc_cv_ld_eh_frame_ciev3
=yes
32191 elif test x
$gcc_cv_ld != x
; then
32192 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32193 gcc_cv_ld_eh_frame_ciev3
=yes
32194 if test 0"$ld_date" -lt 20040513; then
32195 if test -n "$ld_date"; then
32196 # If there was date string, but was earlier than 2004-05-13, fail
32197 gcc_cv_ld_eh_frame_ciev3
=no
32198 elif test "$ld_vers_major" -lt 2; then
32199 gcc_cv_ld_eh_frame_ciev3
=no
32200 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32201 gcc_cv_ld_eh_frame_ciev3
=no
32207 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32208 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
32209 gcc_cv_ld_eh_frame_ciev3
=yes
32216 cat >>confdefs.h
<<_ACEOF
32217 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32221 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32224 $as_echo_n "checking linker position independent executable support... " >&6; }
32226 if test $in_tree_ld = yes ; then
32228 # Full PIE support on Solaris was only introduced in gld 2.26.
32229 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
32230 *) gcc_gld_pie_min_version
=15 ;;
32232 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 \
32233 && test $in_tree_ld_is_elf = yes; then
32236 elif test x
$gcc_cv_ld != x
; then
32237 # Check if linker supports -pie option
32238 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
32242 if echo "$ld_ver" |
grep GNU
> /dev
/null \
32243 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32250 *-*-solaris2.1
[1-9]*)
32251 # Solaris 11.3 added PIE support.
32252 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
32259 if test x
"$gcc_cv_ld_pie" = xyes
; then
32261 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32265 $as_echo "$gcc_cv_ld_pie" >&6; }
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32268 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32269 gcc_cv_ld_pie_copyreloc
=no
32270 if test $gcc_cv_ld_pie = yes ; then
32271 if test $in_tree_ld = yes ; then
32272 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
32273 gcc_cv_ld_pie_copyreloc
=yes
32275 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32276 # Check if linker supports -pie option with copy reloc
32278 i?
86-*-linux* | x86_64-
*-linux*)
32279 cat > conftest1.s
<<EOF
32282 .type a_glob, @object
32287 cat > conftest2.s
<<EOF
32290 .type main, @function
32292 movl %eax, a_glob(%rip)
32295 .section .data.rel,"aw",@progbits
32300 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32301 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
32302 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32303 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
32304 gcc_cv_ld_pie_copyreloc
=yes
32306 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32312 cat >>confdefs.h
<<_ACEOF
32313 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32317 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32320 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32321 gcc_cv_ld_eh_gc_sections
=no
32322 if test $in_tree_ld = yes ; then
32323 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 \
32324 && test $in_tree_ld_is_elf = yes; then
32325 gcc_cv_ld_eh_gc_sections
=yes
32327 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
32328 cat > conftest.s
<<EOF
32331 .type _start, @function
32334 .size _start, .-_start
32335 .section .text.foo,"ax",@progbits
32336 .type foo, @function
32340 .section .gcc_except_table.foo,"a",@progbits
32343 .section .eh_frame,"a",@progbits
32346 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32347 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32348 |
grep "gc-sections option ignored" > /dev
/null
; then
32349 gcc_cv_ld_eh_gc_sections
=no
32350 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32351 |
grep gcc_except_table
> /dev
/null
; then
32352 gcc_cv_ld_eh_gc_sections
=yes
32353 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32354 if test x
$gcc_cv_as_comdat_group != xyes
; then
32355 gcc_cv_ld_eh_gc_sections
=no
32356 cat > conftest.s
<<EOF
32359 .type _start, @function
32362 .size _start, .-_start
32363 .section .gnu.linkonce.t.foo,"ax",@progbits
32364 .type foo, @function
32368 .section .gcc_except_table.foo,"a",@progbits
32371 .section .eh_frame,"a",@progbits
32374 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32375 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32376 |
grep "gc-sections option ignored" > /dev
/null
; then
32377 gcc_cv_ld_eh_gc_sections
=no
32378 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32379 |
grep gcc_except_table
> /dev
/null
; then
32380 gcc_cv_ld_eh_gc_sections
=yes
32386 rm -f conftest.s conftest.o conftest
32390 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32391 gcc_cv_ld_eh_gc_sections
=no
32394 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
32396 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32400 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32403 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32404 gcc_cv_ld_eh_gc_sections_bug
=no
32405 if test $in_tree_ld = yes ; then
32406 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 \
32407 && test $in_tree_ld_is_elf = yes; then
32408 gcc_cv_ld_eh_gc_sections_bug
=yes
32410 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
32411 gcc_cv_ld_eh_gc_sections_bug
=yes
32412 cat > conftest.s
<<EOF
32415 .type _start, @function
32418 .size _start, .-_start
32419 .section .text.startup.foo,"ax",@progbits
32420 .type foo, @function
32424 .section .gcc_except_table.foo,"a",@progbits
32427 .section .eh_frame,"a",@progbits
32430 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
32431 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
32432 |
grep "gc-sections option ignored" > /dev
/null
; then
32434 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
32435 |
grep gcc_except_table
> /dev
/null
; then
32436 gcc_cv_ld_eh_gc_sections_bug
=no
32439 rm -f conftest.s conftest.o conftest
32441 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
32443 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32447 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32450 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32451 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32452 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
32453 gcc_cv_ld_compress_debug
=1
32454 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
32455 # Detect zstd debug section compression support
32456 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
32457 gcc_cv_ld_compress_debug
=2
32460 case "${target}" in
32462 # Introduced in Solaris 11.2.
32463 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
32464 gcc_cv_ld_compress_debug
=1
32465 gcc_cv_ld_compress_debug_option
="-z compress-sections"
32467 gcc_cv_ld_compress_debug
=0
32471 # Assume linkers other than GNU ld don't support compessed debug
32473 gcc_cv_ld_compress_debug
=0
32478 cat >>confdefs.h
<<_ACEOF
32479 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32483 cat >>confdefs.h
<<_ACEOF
32484 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32488 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32490 if test x
"$ld64_flag" = x
"yes"; then
32492 # Set defaults for possibly untestable items.
32493 gcc_cv_ld64_export_dynamic
=0
32494 gcc_cv_ld64_platform_version
=0
32495 gcc_cv_ld64_demangle
=0
32497 if test "$build" = "$host"; then
32503 # On Darwin, because of FAT library support, it is often possible to execute
32504 # exes from compatible archs even when the host differs from the build system.
32505 case "$build","$host" in
32506 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
32507 darwin_try_test
=1;;
32511 # If the configurer specified a minimum ld64 version to be supported, then use
32512 # that to determine feature support.
32513 if test x
"${gcc_cv_ld64_version}" != x
; then
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32515 $as_echo_n "checking ld64 specified version... " >&6; }
32516 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32518 $as_echo "$gcc_cv_ld64_major" >&6; }
32519 if test "$gcc_cv_ld64_major" -ge 97; then
32520 gcc_cv_ld64_demangle
=1
32522 if test "$gcc_cv_ld64_major" -ge 236; then
32523 gcc_cv_ld64_export_dynamic
=1
32525 if test "$gcc_cv_ld64_major" -ge 512; then
32526 gcc_cv_ld64_platform_version
=1
32528 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32529 # If the version was not specified, try to find it.
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32531 $as_echo_n "checking linker version... " >&6; }
32532 if test x
"${gcc_cv_ld64_version}" = x
; then
32533 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32534 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32537 $as_echo "$gcc_cv_ld64_version" >&6; }
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32540 $as_echo_n "checking linker for -demangle support... " >&6; }
32541 gcc_cv_ld64_demangle
=1
32542 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32543 gcc_cv_ld64_demangle
=0
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32546 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32549 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32550 gcc_cv_ld64_export_dynamic
=1
32551 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32552 gcc_cv_ld64_export_dynamic
=0
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32555 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32558 $as_echo_n "checking linker for -platform_version support... " >&6; }
32559 gcc_cv_ld64_platform_version
=1
32560 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
32561 gcc_cv_ld64_platform_version
=0
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32564 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32567 if test x
"${gcc_cv_ld64_version}" != x
; then
32569 cat >>confdefs.h
<<_ACEOF
32570 #define LD64_VERSION "${gcc_cv_ld64_version}"
32576 cat >>confdefs.h
<<_ACEOF
32577 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32582 cat >>confdefs.h
<<_ACEOF
32583 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32588 cat >>confdefs.h
<<_ACEOF
32589 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32594 if test x
"$dsymutil_flag" = x
"yes"; then
32596 # If the user specified a dsymutil path, then we will already have the
32597 # version string, otherwise, pick it up.
32598 if test x
"$gcc_cv_dsymutil" = x
; then
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32600 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32601 dsymutil_vers
="tool unspecified"
32602 elif test x
"$dsymutil_vers" = x
; then
32603 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32606 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32608 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32609 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
32610 dsymutil_kind
=DWARFUTILS
32611 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32612 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
32613 dsymutil_kind
=CLANG
32614 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32615 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
32617 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32619 dsymutil_kind
=DET_UNKNOWN
32620 dsymutil_vers
="0.0"
32622 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32623 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32624 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32625 if test x
"${dsymutil_minor}" = x
; then
32628 if test x
"${dsymutil_tiny}" = x
; then
32632 cat >>confdefs.h
<<_ACEOF
32633 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32637 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32641 win32 | pe | cygwin* | mingw32*)
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
32643 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
32644 gcc_cv_ld_broken_pe_dwarf5=yes
32645 if test $in_tree_ld = yes ; then
32646 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32647 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32648 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32649 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32650 gcc_cv_ld_broken_pe_dwarf5=no
32653 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32654 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32655 gcc_cv_ld_broken_pe_dwarf5=no
32658 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32660 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32664 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32667 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32668 gcc_cv_ld_disable_dynamicbase
=no
32669 if test $in_tree_ld = yes; then
32670 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 \
32671 gcc_cv_ld_disable_dynamicbase
=yes
32674 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
32675 gcc_cv_ld_disable_dynamicbase
=yes
32678 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
32680 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32684 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32693 $as_echo_n "checking linker --as-needed support... " >&6; }
32694 if ${gcc_cv_ld_as_needed+:} false
; then :
32695 $as_echo_n "(cached) " >&6
32697 gcc_cv_ld_as_needed
=no
32698 gcc_cv_ld_as_needed_option
='--as-needed'
32699 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
32700 if test $in_tree_ld = yes ; then
32701 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 \
32702 && test $in_tree_ld_is_elf = yes; then
32703 gcc_cv_ld_as_needed
=yes
32704 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32705 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32706 gcc_cv_ld_no_as_needed_option
='--pop-state'
32709 elif test x
$gcc_cv_ld != x
; then
32710 # Check if linker supports --as-needed and --no-as-needed options
32711 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
32712 gcc_cv_ld_as_needed
=yes
32713 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
32714 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
32715 && echo "$ld_ver" |
grep GNU
> /dev
/null \
32716 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32717 # Use these options only when both ld.bfd and ld.gold support
32718 # --push-state/--pop-state, which unfortunately wasn't added
32719 # at the same time.
32720 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
32721 gcc_cv_ld_no_as_needed_option
='--pop-state'
32724 case "$target:$gnu_ld" in
32726 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32728 gcc_cv_ld_as_needed
=yes
32729 gcc_cv_ld_as_needed_option
="-z ignore"
32730 gcc_cv_ld_no_as_needed_option
="-z record"
32734 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32735 # dl_iterate_phdr, i.e. since Solaris 11.
32737 *-*-solaris2.1
[1-9]*)
32739 i?
86-*-* | x86_64-
*-*)
32740 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
32741 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32742 gcc_cv_ld_as_needed
=no
32748 gcc_cv_ld_as_needed
=no
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32754 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32755 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
32757 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32760 cat >>confdefs.h
<<_ACEOF
32761 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32765 cat >>confdefs.h
<<_ACEOF
32766 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32772 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32773 saved_LDFLAGS
="$LDFLAGS"
32774 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
32775 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32777 /* end confdefs.h. */
32778 int main(void) {return 0;}
32780 if ac_fn_cxx_try_link
"$LINENO"; then :
32781 gcc_cv_ld_clearcap
=yes; break
32783 gcc_cv_ld_clearcap
=no
32785 rm -f core conftest.err conftest.
$ac_objext \
32786 conftest
$ac_exeext conftest.
$ac_ext
32788 LDFLAGS
="$saved_LDFLAGS"
32789 if test "x$gcc_cv_ld_clearcap" = xyes
; then
32791 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32793 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32797 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32803 emul_name
="-melf32lppc"
32806 emul_name
="-melf32ppc"
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32810 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32811 if ${gcc_cv_ld_ppc_attr+:} false
; then :
32812 $as_echo_n "(cached) " >&6
32814 gcc_cv_ld_ppc_attr
=no
32815 if test x
"$ld_is_gold" = xyes
; then
32816 gcc_cv_ld_ppc_attr
=yes
32817 elif test $in_tree_ld = yes ; then
32818 if test "$gcc_cv_gld_major_version" -eq 2 \
32819 -a "$gcc_cv_gld_minor_version" -ge 28 \
32820 -o "$gcc_cv_gld_major_version" -gt 2; then
32821 gcc_cv_ld_ppc_attr
=yes
32823 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32824 # check that merging the long double .gnu_attribute doesn't warn
32825 cat > conftest1.s
<<EOF
32828 cat > conftest2.s
<<EOF
32831 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32832 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32833 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
32834 && test ! -s conftest.err
; then
32835 gcc_cv_ld_ppc_attr
=yes
32837 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32842 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32843 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
32845 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32851 case "$target:$tm_file" in
32852 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
32855 emul_name
="-melf64lppc"
32858 emul_name
="-melf64ppc"
32861 emul_name
="-melf64lppc_fbsd"
32864 emul_name
="-melf64ppc_fbsd"
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32868 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32869 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
32870 $as_echo_n "(cached) " >&6
32872 gcc_cv_ld_no_dot_syms
=no
32873 if test x
"$ld_is_gold" = xyes
; then
32874 gcc_cv_ld_no_dot_syms
=yes
32875 elif test $in_tree_ld = yes ; then
32876 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
32877 gcc_cv_ld_no_dot_syms
=yes
32879 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32880 cat > conftest1.s
<<EOF
32884 cat > conftest2.s
<<EOF
32885 .section ".opd","aw"
32888 .type foo,@function
32890 .quad .LEfoo,.TOC.@tocbase,0
32896 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
32897 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
32898 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
32899 gcc_cv_ld_no_dot_syms
=yes
32901 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32906 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32907 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
32909 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32914 $as_echo_n "checking linker large toc support... " >&6; }
32915 if ${gcc_cv_ld_large_toc+:} false
; then :
32916 $as_echo_n "(cached) " >&6
32918 gcc_cv_ld_large_toc
=no
32919 if test x
"$ld_is_gold" = xyes
; then
32920 gcc_cv_ld_large_toc
=yes
32921 elif test $in_tree_ld = yes ; then
32922 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
32923 gcc_cv_ld_large_toc
=yes
32925 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
32926 cat > conftest.s
<<EOF
32927 .section ".tbss","awT",@nobits
32933 addis 9,13,ie0@got@tprel@ha
32934 ld 9,ie0@got@tprel@l(9)
32936 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
32937 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
32938 gcc_cv_ld_large_toc
=yes
32940 rm -f conftest conftest.o conftest.s
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
32945 $as_echo "$gcc_cv_ld_large_toc" >&6; }
32946 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
32948 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
32953 $as_echo_n "checking linker toc pointer alignment... " >&6; }
32954 if ${gcc_cv_ld_toc_align+:} false
; then :
32955 $as_echo_n "(cached) " >&6
32957 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
32958 cat > conftest.s
<<EOF
32963 .section .data.rel.ro,"aw",@progbits
32968 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
32969 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
32970 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)) }'`
32972 rm -f conftest conftest.o conftest.s
32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
32977 $as_echo "$gcc_cv_ld_toc_align" >&6; }
32978 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
32980 cat >>confdefs.h
<<_ACEOF
32981 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
32990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32991 $as_echo_n "checking linker large toc support... " >&6; }
32992 if ${gcc_cv_ld_large_toc+:} false
; then :
32993 $as_echo_n "(cached) " >&6
32995 gcc_cv_ld_large_toc
=no
32996 if test x
$gcc_cv_as != x
; then
32997 cat > conftest.s
<<EOF
33007 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
33008 gcc_cv_ld_large_toc
=yes
33010 rm -f conftest conftest.o conftest.s
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33015 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33016 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
33018 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33025 $as_echo_n "checking linker --build-id support... " >&6; }
33026 if ${gcc_cv_ld_buildid+:} false
; then :
33027 $as_echo_n "(cached) " >&6
33029 gcc_cv_ld_buildid
=no
33030 if test $in_tree_ld = yes ; then
33031 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33032 "$gcc_cv_gld_minor_version" -ge 18 -o \
33033 "$gcc_cv_gld_major_version" -gt 2 \
33034 && test $in_tree_ld_is_elf = yes; then
33035 gcc_cv_ld_buildid
=yes
33037 elif test x
$gcc_cv_ld != x
; then
33038 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
33039 gcc_cv_ld_buildid
=yes
33043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33044 $as_echo "$gcc_cv_ld_buildid" >&6; }
33045 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33047 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33051 # Check whether --enable-linker-build-id was given.
33052 if test "${enable_linker_build_id+set}" = set; then :
33053 enableval
=$enable_linker_build_id;
33055 enable_linker_build_id
=no
33059 if test x
"$enable_linker_build_id" = xyes
; then
33060 if test x
"$gcc_cv_ld_buildid" = xyes
; then
33062 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33066 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33070 # In binutils 2.21, GNU ld gained support for new emulations fully
33071 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33073 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33074 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
33075 $as_echo_n "(cached) " >&6
33077 gcc_cv_ld_sol2_emulation
=no
33078 if test $in_tree_ld = yes ; then
33079 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33080 "$gcc_cv_gld_minor_version" -ge 21 -o \
33081 "$gcc_cv_gld_major_version" -gt 2 \
33082 && test $in_tree_ld_is_elf = yes; then
33083 gcc_cv_ld_sol2_emulation
=yes
33085 elif test x
$gcc_cv_ld != x
; then
33086 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
33087 grep _sol2
> /dev
/null
; then
33088 gcc_cv_ld_sol2_emulation
=yes
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33093 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33094 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
33096 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33101 $as_echo_n "checking linker --sysroot support... " >&6; }
33102 if ${gcc_cv_ld_sysroot+:} false
; then :
33103 $as_echo_n "(cached) " >&6
33105 gcc_cv_ld_sysroot
=no
33106 if test $in_tree_ld = yes ; then
33107 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
33108 gcc_cv_ld_sysroot
=yes
33110 elif test x
$gcc_cv_ld != x
; then
33111 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
33112 gcc_cv_ld_sysroot
=yes
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33117 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33118 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
33120 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33126 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33128 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33129 if ${gcc_cv_solaris_crts+:} false
; then :
33130 $as_echo_n "(cached) " >&6
33132 gcc_cv_solaris_crts
=no
33133 if test x
$host != x
$target; then
33134 if test "x$with_sysroot" = xyes
; then
33135 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
33137 target_sysroot
="${with_sysroot}"
33140 target_libdir
="$target_sysroot/usr/lib"
33141 # At the time they were added, gcrt1.o became a symlink for backwards
33142 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33144 i?
86-*-solaris2* | x86_64-
*-solaris2*)
33145 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
33147 sparc
*-*-solaris2*)
33148 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
33152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33153 $as_echo "$gcc_cv_solaris_crts" >&6; }
33156 if test x
$gcc_cv_solaris_crts = xyes
; then
33158 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33162 # Check whether --enable-libssp was given.
33163 if test "${enable_libssp+set}" = set; then :
33164 enableval
=$enable_libssp; case "${enableval}" in
33168 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
33174 # Test for stack protector support in target C library.
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33176 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33177 if ${gcc_cv_libc_provides_ssp+:} false
; then :
33178 $as_echo_n "(cached) " >&6
33180 gcc_cv_libc_provides_ssp
=no
33181 if test "x$enable_libssp" = "xno"; then
33182 gcc_cv_libc_provides_ssp
=yes
33183 elif test "x$enable_libssp" = "xyes"; then
33184 gcc_cv_libc_provides_ssp
=no
33188 # All versions of musl provide stack protector
33189 gcc_cv_libc_provides_ssp
=yes;;
33190 *-*-linux* |
*-*-kfreebsd*-gnu)
33191 # glibc 2.4 and later provides __stack_chk_fail and
33192 # either __stack_chk_guard, or TLS access to stack guard canary.
33194 if test $glibc_version_major -gt 2 \
33195 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33196 gcc_cv_libc_provides_ssp
=yes
33199 if test -f $target_header_dir/features.h \
33200 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33201 $target_header_dir/features.h
> /dev
/null
; then
33202 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33203 $target_header_dir/features.h
> /dev
/null
&& \
33204 test -f $target_header_dir/bits
/uClibc_config.h
&& \
33205 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33206 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
33207 gcc_cv_libc_provides_ssp
=yes
33209 # all versions of Bionic support stack protector
33210 elif test -f $target_header_dir/sys
/cdefs.h \
33211 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33212 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
33213 gcc_cv_libc_provides_ssp
=yes
33218 # Avoid complicated tests (see
33219 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33220 # simply assert that glibc does provide this, which is true for all
33221 # realistically usable GNU/Hurd configurations.
33222 # All supported versions of musl provide it as well
33223 gcc_cv_libc_provides_ssp
=yes;;
33224 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
33225 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33226 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
33227 gcc_cv_libc_provides_ssp
=yes
33229 echo "no __stack_chk_fail on this target"
33233 *) gcc_cv_libc_provides_ssp
=no
;;
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33238 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33240 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33242 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33246 # Check whether --enable-default-ssp was given.
33247 # Check whether --enable-default-ssp was given.
33248 if test "${enable_default_ssp+set}" = set; then :
33249 enableval
=$enable_default_ssp;
33250 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
33252 ia64
*-*-*) enable_default_ssp
=no
;;
33253 *) enable_default_ssp
=$enableval ;;
33256 enable_default_ssp
=no
33259 enable_default_ssp
=no
33262 if test x
$enable_default_ssp = xyes
; then
33264 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33269 # Test for <sys/sdt.h> on the target.
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33272 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33273 if ${gcc_cv_sys_sdt_h+:} false
; then :
33274 $as_echo_n "(cached) " >&6
33277 gcc_cv_sys_sdt_h
=no
33278 if test -f $target_header_dir/sys
/sdt.h
; then
33279 gcc_cv_sys_sdt_h
=yes
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33284 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33285 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
33288 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33293 # Check if TFmode long double should be used by default or not.
33294 # Some glibc targets used DFmode long double, but with glibc 2.4
33295 # and later they can use TFmode.
33297 powerpc
*-*-linux* | \
33298 sparc
*-*-linux* | \
33302 # Check whether --with-long-double-128 was given.
33303 if test "${with_long_double_128+set}" = set; then :
33304 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
33308 s390
*-*-linux-musl*)
33309 gcc_cv_target_ldbl128
=yes
33311 powerpc
*-*-linux-musl*)
33312 gcc_cv_target_ldbl128
=no
33316 if test $glibc_version_major -gt 2 \
33317 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33318 gcc_cv_target_ldbl128
=yes
33321 gcc_cv_target_ldbl128
=no
33322 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33323 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
33324 && gcc_cv_target_ldbl128
=yes
33335 if test x
$gcc_cv_target_ldbl128 = xyes
; then
33337 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33341 # Check if TFmode long double target should use the IBM extended double or IEEE
33342 # 128-bit floating point formats if long doubles are 128-bits long. The long
33343 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33344 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33347 # Check whether --with-long-double-format was given.
33348 if test "${with_long_double_format+set}" = set; then :
33349 withval
=$with_long_double_format;
33350 case "$target:$with_long_double_format" in
33351 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
33354 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
33355 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33356 case "$with_cpu" in
33357 power7 | power8 | power9 | power1
*)
33361 as_fn_error $?
"Configuration option --with-long-double-format is only \
33362 supported if the default cpu is power7 or newer" "$LINENO" 5
33363 with_long_double_format
=""
33367 powerpc64
*-*-linux*:*)
33368 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33369 with_long_double_format
=""
33372 as_fn_error $?
"Configure option --with-long-double-format is only supported \
33373 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33374 with_long_double_format
=""
33380 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33381 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33382 gcc_cv_libc_provides_hwcap_in_tcb
=no
33386 if test $glibc_version_major -gt 2 \
33387 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33388 gcc_cv_libc_provides_hwcap_in_tcb
=yes
33392 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
33394 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33398 # Check if the target LIBC handles PT_GNU_STACK.
33399 gcc_cv_libc_gnustack
=unknown
33401 mips
*-*-linux-musl*)
33402 gcc_cv_libc_gnustack
=yes
33406 if test $glibc_version_major -gt 2 \
33407 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33408 gcc_cv_libc_gnustack
=yes
33412 if test x
$gcc_cv_libc_gnustack = xyes
; then
33414 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33419 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33420 gcc_cv_target_dl_iterate_phdr
=unknown
33423 gcc_cv_target_dl_iterate_phdr
=yes
33425 *-*-dragonfly* |
*-*-freebsd*)
33426 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
33427 gcc_cv_target_dl_iterate_phdr
=yes
33429 gcc_cv_target_dl_iterate_phdr
=no
33433 gcc_cv_target_dl_iterate_phdr
=yes
33437 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
33439 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33443 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33445 # We no longer support different GC mechanisms. Emit an error if
33446 # the user configures with --with-gc.
33448 # Check whether --with-gc was given.
33449 if test "${with_gc+set}" = set; then :
33450 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33454 # Libraries to use on the host. This will normally be set by the top
33455 # level Makefile. Here we simply capture the value for our Makefile.
33456 if test -z "${HOST_LIBS+set}"; then
33461 # Use the system's zlib library.
33463 # Use the system's zlib library.
33464 zlibdir
="-L\$(top_builddir)/../zlib"
33465 zlibinc
="-I\$(top_srcdir)/../zlib"
33467 # Check whether --with-system-zlib was given.
33468 if test "${with_system_zlib+set}" = set; then :
33469 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33483 # Check whether --enable-maintainer-mode was given.
33484 if test "${enable_maintainer_mode+set}" = set; then :
33485 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33492 $as_echo "$maintainer_mode" >&6; }
33494 if test "$maintainer_mode" = "yes"; then
33500 if test -z "$CTAGS"; then
33504 if test -z "$ETAGS"; then
33508 if test -z "$CSCOPE"; then
33514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33515 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33516 # Check whether --enable-link-mutex was given.
33517 if test "${enable_link_mutex+set}" = set; then :
33518 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33524 $as_echo "$do_link_mutex" >&6; }
33526 if test "$do_link_mutex" = "yes"; then
33528 { $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
33529 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33531 DO_LINK_MUTEX
=false
33536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33537 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33538 # Check whether --enable-link-serialization was given.
33539 if test "${enable_link_serialization+set}" = set; then :
33540 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
33542 do_link_serialization
=no
33545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33546 $as_echo "$do_link_serialization" >&6; }
33548 case "$do_link_serialization" in
33550 DO_LINK_SERIALIZATION
=1;;
33551 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
33552 DO_LINK_SERIALIZATION
=$do_link_serialization;;
33554 DO_LINK_SERIALIZATION
=;;
33556 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33564 # Make empty files to contain the specs and options for each language.
33565 # Then add #include lines to for a compiler that has specs and/or options.
33571 # These (without "all_") are set in each config-lang.in.
33572 # `language' must be a single word so is spelled singularly.
33575 all_outputs
='Makefile'
33576 # List of language configure and makefile fragments.
33577 all_lang_configurefrags
=
33578 all_lang_makefrags
=
33579 # Additional files for gengtype
33580 all_gtfiles
="$target_gtfiles"
33582 # These are the languages that are set in --enable-languages,
33583 # and are available in the GCC tree.
33584 all_selected_languages
=
33586 # Add the language fragments.
33587 # Languages are added via two mechanisms. Some information must be
33588 # recorded in makefile variables, these are defined in config-lang.in.
33589 # We accumulate them and plug them into the main Makefile.
33590 # The other mechanism is a set of hooks for each of the main targets
33591 # like `clean', `install', etc.
33593 language_hooks
="Make-hooks"
33595 for lang
in ${srcdir}/*/config-lang.
in
33597 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33599 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33600 if test "x$lang_alias" = x
33602 echo "$lang doesn't set \$language." 1>&2
33605 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33606 subdirs
="$subdirs $subdir"
33608 # $gcc_subdir is where the gcc integration files are to be found
33609 # for a language, both for internal compiler purposes (compiler
33610 # sources implementing front-end to GCC tree converters), and for
33611 # build infrastructure purposes (Make-lang.in, etc.)
33613 # This will be <subdir> (relative to $srcdir) if a line like
33614 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33615 # is found in <langdir>/config-lang.in, and will remain <langdir>
33618 # Except for the language alias (fetched above), the regular
33619 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33620 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33621 # only this and the language alias.
33623 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33624 if [ "$gcc_subdir" = "" ]; then
33625 gcc_subdir
="$subdir"
33628 case ",$enable_languages," in
33630 all_selected_languages
="$all_selected_languages $lang_alias"
33631 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
33632 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33643 .
${srcdir}/$gcc_subdir/config-lang.
in
33644 if test "x$language" = x
33646 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33651 case ",$enable_languages," in
33652 *,$lang_alias,*) ;;
33654 for i
in $subdir_requires; do
33655 test -f "${srcdir}/$i/config-lang.in" && continue
33663 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33664 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
33665 # Put c/Make-lang.in fragment first to match serialization languages order.
33666 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33668 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33670 if test -f $srcdir/$gcc_subdir/lang.opt
; then
33671 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33672 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33674 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
33675 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33677 all_languages
="$all_languages $language"
33678 all_compilers
="$all_compilers $compilers"
33679 all_outputs
="$all_outputs $outputs"
33680 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
33681 case ",$enable_languages," in
33684 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33694 for language
in $all_selected_languages
33696 check_languages
="$check_languages check-$language"
33699 selftest_languages
=
33700 for language
in $all_selected_languages
33702 selftest_languages
="$selftest_languages selftest-$language"
33705 # We link each language in with a set of hooks, reached indirectly via
33706 # lang.${target}. Only do so for selected languages.
33710 target_list
="all.cross start.encap rest.encap tags \
33711 install-common install-man install-info install-dvi install-pdf \
33712 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33713 mostlyclean clean distclean maintainer-clean install-plugin"
33715 for t
in $target_list
33718 for lang
in $all_selected_languages
33722 echo "lang.$t: $x" >> Make-hooks
33725 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33726 echo "SERIAL_LIST =" >> Make-hooks
33727 echo else >> Make-hooks
33731 serialization_languages
=c
33732 for lang
in $all_selected_languages
33734 test $lang = c
&& continue
33735 if test $lang = lto
; then
33736 serialization_languages
="$serialization_languages lto1 lto2"
33738 serialization_languages
="$serialization_languages $lang"
33741 for lang
in $serialization_languages
33743 test $lang = c
&& continue
33744 lang_cnt
=`expr $lang_cnt + 1`
33745 lang_list
=" $prev$lang_list"
33748 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33749 echo endif
>> Make-hooks
33750 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33751 echo "INDEX.c = 0" >> Make-hooks
33753 for lang
in $serialization_languages
33755 test $lang = c
&& continue
33756 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33757 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33758 lang_cnt
=`expr $lang_cnt - 1`
33759 lang_idx
=`expr $lang_idx + 1`
33763 # Option include files
33766 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
33767 option_includes
="option-includes.mk"
33776 echo "dir ." > .gdbinit
33777 echo "dir ${srcdir}" >> .gdbinit
33778 if test x
$gdb_needs_out_file_path = xyes
33780 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33782 if test "x$subdirs" != x
; then
33785 echo "dir ${srcdir}/$s" >> .gdbinit
33788 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33789 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33791 # Put a breakpoint on __asan_report_error to help with debugging buffer
33794 *-fsanitize=address
*)
33795 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33799 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33803 # Find a directory in which to install a shared libgcc.
33805 # Check whether --enable-version-specific-runtime-libs was given.
33806 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33807 enableval
=$enable_version_specific_runtime_libs;
33811 # Substitute configuration variables
33885 if test x
${build} = x
${host} ; then
33886 if test x
${host} = x
${target} ; then
33887 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33889 echo "Links are now set up to build a cross-compiler" 1>&2
33890 echo " from ${host} to ${target}." 1>&2
33893 if test x
${host} = x
${target} ; then
33894 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33895 echo " for ${target}." 1>&2
33897 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33898 echo " from ${host} to ${target}." 1>&2
33907 if test "x${ISLLIBS}" != "x" ; then
33909 $as_echo "#define HAVE_isl 1" >>confdefs.h
33913 # Check for plugin support
33914 # Check whether --enable-plugin was given.
33915 if test "${enable_plugin+set}" = set; then :
33916 enableval
=$enable_plugin; enable_plugin
=$enableval
33918 enable_plugin
=yes; default_plugin
=yes
33927 # Since plugin support under MinGW is not as straightforward as on
33928 # other platforms (e.g., we have to link import library, etc), we
33929 # only enable it if explicitly requested.
33930 if test x
"$default_plugin" = x
"yes"; then
33932 elif test x
"$enable_plugin" = x
"yes"; then
33933 # Use make's target variable to derive import library name.
33934 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
33939 if test x
$build = x
$host; then
33940 export_sym_check
="nm${exeext} -g"
33941 elif test x
$host = x
$target; then
33942 export_sym_check
="$gcc_cv_nm -g"
33948 if test x
$build = x
$host; then
33949 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
33950 elif test x
$host = x
$target; then
33951 export_sym_check
="$gcc_cv_objdump -T"
33953 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
33958 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
33961 $as_echo_n "checking for exported symbols... " >&6; }
33962 if test "x$export_sym_check" != x
; then
33963 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
33964 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
33965 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
33966 : # No need to use a flag
33967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33968 $as_echo "yes" >&6; }
33970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33971 $as_echo "yes" >&6; }
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
33973 $as_echo_n "checking for -rdynamic... " >&6; }
33974 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
33975 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
33976 plugin_rdynamic
=yes
33977 pluginlibs
="-rdynamic"
33982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
33983 $as_echo "$plugin_rdynamic" >&6; }
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
33987 $as_echo "unable to check" >&6; }
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
33993 $as_echo_n "checking for library containing dlopen... " >&6; }
33994 if ${ac_cv_search_dlopen+:} false
; then :
33995 $as_echo_n "(cached) " >&6
33997 ac_func_search_save_LIBS
=$LIBS
33998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33999 /* end confdefs.h. */
34001 /* Override any GCC internal prototype to avoid an error.
34002 Use char because int might match the return type of a GCC
34003 builtin and then its argument prototype would still apply. */
34016 for ac_lib
in '' dl
; do
34017 if test -z "$ac_lib"; then
34018 ac_res
="none required"
34021 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
34023 if ac_fn_cxx_try_link
"$LINENO"; then :
34024 ac_cv_search_dlopen
=$ac_res
34026 rm -f core conftest.err conftest.
$ac_objext \
34028 if ${ac_cv_search_dlopen+:} false
; then :
34032 if ${ac_cv_search_dlopen+:} false
; then :
34035 ac_cv_search_dlopen
=no
34037 rm conftest.
$ac_ext
34038 LIBS
=$ac_func_search_save_LIBS
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34041 $as_echo "$ac_cv_search_dlopen" >&6; }
34042 ac_res
=$ac_cv_search_dlopen
34043 if test "$ac_res" != no
; then :
34044 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
34048 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
34049 pluginlibs
="$pluginlibs -ldl"
34053 # Check that we can build shared objects with -fPIC -shared
34054 saved_LDFLAGS
="$LDFLAGS"
34055 saved_CFLAGS
="$CFLAGS"
34056 saved_CXXFLAGS
="$CXXFLAGS"
34059 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34060 CFLAGS
="$CFLAGS -fPIC"
34061 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34062 CXXFLAGS
="$CXXFLAGS -fPIC"
34063 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
34066 CFLAGS
="$CFLAGS -fPIC"
34067 CXXFLAGS
="$CXXFLAGS -fPIC"
34068 LDFLAGS
="$LDFLAGS -fPIC -shared"
34071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34072 $as_echo_n "checking for -fPIC -shared... " >&6; }
34073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34074 /* end confdefs.h. */
34084 if ac_fn_cxx_try_link
"$LINENO"; then :
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34086 $as_echo "yes" >&6; }; have_pic_shared
=yes
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34089 $as_echo "no" >&6; }; have_pic_shared
=no
34091 rm -f core conftest.err conftest.
$ac_objext \
34092 conftest
$ac_exeext conftest.
$ac_ext
34093 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
34097 LDFLAGS
="$saved_LDFLAGS"
34098 CFLAGS
="$saved_CFLAGS"
34099 CXXFLAGS
="$saved_CXXFLAGS"
34101 # If plugin support had been requested but not available, fail.
34102 if test x
"$enable_plugin" = x
"no" ; then
34103 if test x
"$default_plugin" != x
"yes"; then
34105 Building GCC with plugin support requires a host that supports
34106 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34113 if test x
"$enable_plugin" = x
"yes"; then
34115 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34120 # Enable --enable-host-shared
34121 # Check whether --enable-host-shared was given.
34122 if test "${enable_host_shared+set}" = set; then :
34123 enableval
=$enable_host_shared;
34128 # Enable --enable-host-pie
34129 # Check whether --enable-host-pie was given.
34130 if test "${enable_host_pie+set}" = set; then :
34131 enableval
=$enable_host_pie;
34136 # Enable --enable-host-bind-now
34137 # Check whether --enable-host-bind-now was given.
34138 if test "${enable_host_bind_now+set}" = set; then :
34139 enableval
=$enable_host_bind_now;
34144 # Check whether --enable-libquadmath-support was given.
34145 if test "${enable_libquadmath_support+set}" = set; then :
34146 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
34148 ENABLE_LIBQUADMATH_SUPPORT
=yes
34151 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34153 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34158 # Specify what hash style to use by default.
34160 # Check whether --with-linker-hash-style was given.
34161 if test "${with_linker_hash_style+set}" = set; then :
34162 withval
=$with_linker_hash_style; case x
"$withval" in
34164 LINKER_HASH_STYLE
=sysv
34167 LINKER_HASH_STYLE
=gnu
34170 LINKER_HASH_STYLE
=both
34173 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34177 LINKER_HASH_STYLE
=''
34180 if test x
"${LINKER_HASH_STYLE}" != x
; then
34182 cat >>confdefs.h
<<_ACEOF
34183 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34188 # Specify what should be the default of -fdiagnostics-color option.
34190 # Check whether --with-diagnostics-color was given.
34191 if test "${with_diagnostics_color+set}" = set; then :
34192 withval
=$with_diagnostics_color; case x
"$withval" in
34194 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
34197 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34200 DIAGNOSTICS_COLOR_DEFAULT
=-1
34203 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
34206 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34210 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
34214 cat >>confdefs.h
<<_ACEOF
34215 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34219 # Specify what should be the default of -fdiagnostics-urls option.
34221 # Check whether --with-diagnostics-urls was given.
34222 if test "${with_diagnostics_urls+set}" = set; then :
34223 withval
=$with_diagnostics_urls; case x
"$withval" in
34225 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
34228 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34231 DIAGNOSTICS_URLS_DEFAULT
=-1
34234 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
34237 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34241 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
34245 cat >>confdefs.h
<<_ACEOF
34246 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34250 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34251 # of jit/jit-playback.cc.
34252 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34253 echo "gcc_driver_version: ${gcc_driver_version}"
34254 cat > gcc-driver-name.h
<<EOF
34255 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34258 # Check whether --enable-default-pie was given.
34259 # Check whether --enable-default-pie was given.
34260 if test "${enable_default_pie+set}" = set; then :
34261 enableval
=$enable_default_pie; enable_default_pie
=$enableval
34263 enable_default_pie
=no
34266 if test x
$enable_default_pie = xyes
; then
34268 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34273 # Check if -fno-PIE works.
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34275 $as_echo_n "checking for -fno-PIE option... " >&6; }
34276 if ${gcc_cv_c_no_fpie+:} false
; then :
34277 $as_echo_n "(cached) " >&6
34279 saved_CXXFLAGS
="$CXXFLAGS"
34280 CXXFLAGS
="$CXXFLAGS -fno-PIE"
34281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34282 /* end confdefs.h. */
34283 int main(void) {return 0;}
34285 if ac_fn_cxx_try_compile
"$LINENO"; then :
34286 gcc_cv_c_no_fpie
=yes
34288 gcc_cv_c_no_fpie
=no
34290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34291 CXXFLAGS
="$saved_CXXFLAGS"
34293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34294 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34296 # Check if -no-pie works.
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34298 $as_echo_n "checking for -no-pie option... " >&6; }
34299 if ${gcc_cv_no_pie+:} false
; then :
34300 $as_echo_n "(cached) " >&6
34302 saved_LDFLAGS
="$LDFLAGS"
34303 LDFLAGS
="$LDFLAGS -no-pie"
34304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34305 /* end confdefs.h. */
34306 int main(void) {return 0;}
34308 if ac_fn_cxx_try_link
"$LINENO"; then :
34313 rm -f core conftest.err conftest.
$ac_objext \
34314 conftest
$ac_exeext conftest.
$ac_ext
34315 LDFLAGS
="$saved_LDFLAGS"
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34318 $as_echo "$gcc_cv_no_pie" >&6; }
34320 if test x
$enable_host_shared = xyes
; then
34322 elif test x
$enable_host_pie = xyes
; then
34324 elif test x
$gcc_cv_c_no_fpie = xyes
; then
34332 if test x
$enable_host_pie = xyes
; then
34334 elif test x
$gcc_cv_no_pie = xyes
; then
34340 if test x
$enable_host_bind_now = xyes
; then
34341 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
34346 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34347 # Check whether --enable-cet was given.
34348 if test "${enable_cet+set}" = set; then :
34349 enableval
=$enable_cet;
34350 case "$enableval" in
34352 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34361 $as_echo_n "checking for CET support... " >&6; }
34364 i
[34567]86-*-linux* | x86_64-
*-linux*)
34366 cet_save_CFLAGS
="$CFLAGS"
34367 CFLAGS
="$CFLAGS -fcf-protection"
34368 case "$enable_cet" in
34370 # Check if target supports multi-byte NOPs
34371 # and if compiler and assembler support CET.
34372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34373 /* end confdefs.h. */
34379 #if !defined(__SSE2__)
34380 #error target does not support multi-byte NOPs
34389 if ac_fn_cxx_try_compile
"$LINENO"; then :
34394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34397 # Check if compiler and assembler support CET.
34398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34399 /* end confdefs.h. */
34409 if ac_fn_cxx_try_compile
"$LINENO"; then :
34414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34415 if test $support_cet = "no"; then
34416 if test x
$enable_bootstrap != xno \
34417 && test -z "${with_build_subdir}" \
34418 && (test ! -f ..
/stage_current \
34419 ||
test `cat ../stage_current` != "stage1"); then
34420 # Require CET support only for the final GCC build.
34421 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34423 # Don't enable CET without CET support for non-bootstrap
34424 # build, in stage1 nor for build support.
34430 CFLAGS
="$cet_save_CFLAGS"
34438 cet_save_CFLAGS
="$CFLAGS"
34439 CFLAGS
="$CFLAGS -fcf-protection=none"
34440 cet_save_LDFLAGS
="$LDFLAGS"
34441 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34442 if test x
$may_have_cet = xyes
; then
34443 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34445 /* end confdefs.h. */
34455 if ac_fn_cxx_try_link
"$LINENO"; then :
34460 rm -f core conftest.err conftest.
$ac_objext \
34461 conftest
$ac_exeext conftest.
$ac_ext
34464 if test x
$may_have_cet = xyes
; then
34465 if test x
$cross_compiling = xno
; then
34466 if test "$cross_compiling" = yes; then :
34467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34469 as_fn_error $?
"cannot run test program while cross compiling
34470 See \`config.log' for more details" "$LINENO" 5; }
34472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34473 /* end confdefs.h. */
34483 if ac_fn_cxx_try_run
"$LINENO"; then :
34484 have_multi_byte_nop
=yes
34486 have_multi_byte_nop
=no
34488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34493 if test x
$have_multi_byte_nop = xyes
; then
34494 if test "$cross_compiling" = yes; then :
34495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34497 as_fn_error $?
"cannot run test program while cross compiling
34498 See \`config.log' for more details" "$LINENO" 5; }
34500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34501 /* end confdefs.h. */
34509 __attribute__ ((noinline, noclone))
34510 xxx (void (*f) (void))
34516 __attribute__ ((noinline, noclone))
34530 if ac_fn_cxx_try_run
"$LINENO"; then :
34535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
34536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
34540 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
34541 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34545 # Enable CET in cross compiler if possible so that it will run on both
34546 # CET and non-CET hosts.
34549 if test x
$enable_cet = xyes
; then
34550 CET_HOST_FLAGS
="-fcf-protection"
34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34552 $as_echo "yes" >&6; }
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34555 $as_echo "no" >&6; }
34557 CFLAGS
="$cet_save_CFLAGS"
34558 LDFLAGS
="$cet_save_LDFLAGS"
34560 case x
$enable_languages in
34569 # Check linker supports '-z bndplt'
34570 ld_bndplt_support
=no
34571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34572 $as_echo_n "checking linker -z bndplt option... " >&6; }
34573 if test x
"$ld_is_gold" = xno
; then
34574 if test $in_tree_ld = yes ; then
34575 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
34576 ld_bndplt_support
=yes
34578 elif test x
$gcc_cv_ld != x
; then
34579 # Check if linker supports -z bndplt option
34580 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
34581 ld_bndplt_support
=yes
34585 if test x
"$ld_bndplt_support" = xyes
; then
34587 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34591 $as_echo "$ld_bndplt_support" >&6; }
34593 # Check linker supports '--push-state'/'--pop-state'
34594 ld_pushpopstate_support
=no
34595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34596 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34597 if test x
"$ld_is_gold" = xno
; then
34598 if test $in_tree_ld = yes ; then
34599 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
34600 ld_pushpopstate_support
=yes
34602 elif test x
$gcc_cv_ld != x
; then
34603 # Check if linker supports --push-state/--pop-state options
34604 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
34605 ld_pushpopstate_support
=yes
34609 if test x
"$ld_pushpopstate_support" = xyes
; then
34611 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34615 $as_echo "$ld_pushpopstate_support" >&6; }
34617 # On s390, float_t has historically been statically defined as double for no
34618 # good reason. To comply with the C standard in the light of this definition,
34619 # gcc has evaluated float expressions in double precision when in
34620 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34621 # a smooth transition towards the new model used by most architectures, where
34622 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34623 # float_t from that, this behavior can be configured with
34624 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34625 # the old model. When omitted, native builds and cross compiles that have target
34626 # libc headers will detect whether libc clamps float_t to double and in that
34627 # case maintain the old model. Otherwise, they will default to the new model.
34628 # Check whether --enable-s390-excess-float-precision was given.
34629 if test "${enable_s390_excess_float_precision+set}" = set; then :
34630 enableval
=$enable_s390_excess_float_precision;
34632 enable_s390_excess_float_precision
=auto
34638 if test x
"$enable_s390_excess_float_precision" = xauto
; then
34639 # Can we autodetect the behavior of the target libc?
34640 if test "$target" = "$host" -a "$host" = "$build"; then
34641 enable_s390_excess_float_precision
=autodetect
34642 elif test "x$with_headers" != xno
; then
34643 # cross build. are target headers available?
34644 # carefully coerce the build-system compiler to use target headers
34645 saved_CXXFLAGS
="$CXXFLAGS"
34646 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34647 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34648 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34650 /* end confdefs.h. */
34655 if ac_fn_cxx_try_compile
"$LINENO"; then :
34656 enable_s390_excess_float_precision
=autodetect
34658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34659 CXXFLAGS
="$saved_CXXFLAGS"
34662 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
34663 saved_CXXFLAGS
="$CXXFLAGS"
34664 if ! test "$target" = "$host" -a "$host" = "$build"; then
34665 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
34666 unset CROSS_TEST_CXXFLAGS
34668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34669 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34670 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
34671 $as_echo_n "(cached) " >&6
34674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
34675 /* end confdefs.h. */
34677 #define __FLT_EVAL_METHOD__ 0
34679 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34682 if ac_fn_cxx_try_compile
"$LINENO"; then :
34683 gcc_cv_float_t_clamped_to_double
=yes
34685 gcc_cv_float_t_clamped_to_double
=no
34687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34690 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34691 CXXFLAGS
="$saved_CXXFLAGS"
34692 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
34694 # no way to detect behavior of target libc, default to new model
34695 enable_s390_excess_float_precision
=no
34700 if test x
"$enable_s390_excess_float_precision" = xyes
; then
34702 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34708 # Check if the linker supports '-z now'
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34711 $as_echo_n "checking linker -z now option... " >&6; }
34712 if test x
"$ld_is_gold" = xyes
; then
34714 elif test $in_tree_ld = yes ; then
34715 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
34718 elif test x
$gcc_cv_ld != x
; then
34719 # Check if linker supports -z now
34720 if $gcc_cv_ld --help 2>&1 |
grep -- '-z now' > /dev
/null
; then
34725 cat >>confdefs.h
<<_ACEOF
34726 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34730 $as_echo "$ld_now_support" >&6; }
34732 # Check if the linker supports '-z relro'
34733 ld_relro_support
=no
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34735 $as_echo_n "checking linker -z relro option... " >&6; }
34736 if test x
"$ld_is_gold" = xyes
; then
34737 ld_relro_support
=yes
34738 elif test $in_tree_ld = yes ; then
34739 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
34740 ld_relro_support
=yes
34742 elif test x
$gcc_cv_ld != x
; then
34743 # Check if linker supports -z relro
34744 if $gcc_cv_ld --help 2>&1 |
grep -- '-z relro' > /dev
/null
; then
34745 ld_relro_support
=yes
34749 cat >>confdefs.h
<<_ACEOF
34750 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34754 $as_echo "$ld_relro_support" >&6; }
34758 # -fhardened is only supported on GNU/Linux.
34759 fhardened_support
=yes
34762 fhardened_support
=no
34767 cat >>confdefs.h
<<_ACEOF
34768 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34772 $as_echo "$fhardened_support" >&6; }
34774 # Configure the subdirectories
34775 # AC_CONFIG_SUBDIRS($subdirs)
34777 # Create the Makefile
34778 # and configure language subdirectories
34779 ac_config_files
="$ac_config_files $all_outputs"
34782 ac_config_commands
="$ac_config_commands default"
34784 cat >confcache
<<\_ACEOF
34785 # This file is a shell script that caches the results of configure
34786 # tests run on this system so they can be shared between configure
34787 # scripts and configure runs, see configure's option --config-cache.
34788 # It is not useful on other systems. If it contains results you don't
34789 # want to keep, you may remove or edit it.
34791 # config.status only pays attention to the cache file if you give it
34792 # the --recheck option to rerun configure.
34794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34796 # following values.
34800 # The following way of writing the cache mishandles newlines in values,
34801 # but we know of no workaround that is simple, portable, and efficient.
34802 # So, we kill variables containing newlines.
34803 # Ultrix sh set writes to stderr and can't be redirected directly,
34804 # and sets the high bit in the cache file unless we assign to the vars.
34806 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34807 eval ac_val
=\$
$ac_var
34811 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34815 _ | IFS | as_nl
) ;; #(
34816 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
34817 *) { eval $ac_var=; unset $ac_var;} ;;
34823 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34824 *${as_nl}ac_space
=\
*)
34825 # `set' does not quote correctly, so add quotes: double-quote
34826 # substitution turns \\\\ into \\, and sed turns \\ into \.
34829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34832 # `set' quotes correctly as required by POSIX, so do not add quotes.
34833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34846 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
34847 if test -w "$cache_file"; then
34848 if test "x$cache_file" != "x/dev/null"; then
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34850 $as_echo "$as_me: updating cache $cache_file" >&6;}
34851 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
34852 cat confcache
>"$cache_file"
34854 case $cache_file in #(
34856 mv -f confcache
"$cache_file"$$
&&
34857 mv -f "$cache_file"$$
"$cache_file" ;; #(
34859 mv -f confcache
"$cache_file" ;;
34864 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34865 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34870 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
34871 # Let make expand exec_prefix.
34872 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
34874 DEFS
=-DHAVE_CONFIG_H
34879 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
34880 # 1. Remove the extension, and $U if already installed.
34881 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
34882 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
34883 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34884 # will be set to the directory where LIBOBJS objects are built.
34885 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34886 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
34888 LIBOBJS
=$ac_libobjs
34890 LTLIBOBJS
=$ac_ltlibobjs
34894 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34895 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34899 : "${CONFIG_STATUS=./config.status}"
34901 ac_clean_files_save
=$ac_clean_files
34902 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
34903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34904 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34906 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34908 # Generated by $as_me.
34909 # Run this file to recreate the current configuration.
34910 # Compiler output produced by configure, useful for debugging
34911 # configure, is in config.log if it exists.
34914 ac_cs_recheck=false
34917 SHELL=\${CONFIG_SHELL-$SHELL}
34920 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
34921 ## -------------------- ##
34922 ## M4sh Initialization. ##
34923 ## -------------------- ##
34925 # Be more Bourne compatible
34926 DUALCASE
=1; export DUALCASE
# for MKS sh
34927 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
34930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34931 # is contrary to our usage. Disable this feature.
34932 alias -g '${1+"$@"}'='"$@"'
34933 setopt NO_GLOB_SUBST
34935 case `(set -o) 2>/dev/null` in #(
34947 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34948 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34951 # Prefer a ksh shell builtin over an external printf program on Solaris,
34952 # but without wasting forks for bash or zsh.
34953 if test -z "$BASH_VERSION$ZSH_VERSION" \
34954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34955 as_echo='print
-r --'
34956 as_echo_n='print
-rn --'
34957 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34958 as_echo='printf %s
\n'
34959 as_echo_n='printf %s
'
34961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34962 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
34963 as_echo_n='/usr
/ucb
/echo -n'
34965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34966 as_echo_n_body='eval
34970 expr "X$arg" : "X\\(.*\\)$as_nl";
34971 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34973 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
34975 export as_echo_n_body
34976 as_echo_n='sh
-c $as_echo_n_body as_echo
'
34978 export as_echo_body
34979 as_echo='sh
-c $as_echo_body as_echo
'
34982 # The user is always right.
34983 if test "${PATH_SEPARATOR+set}" != set; then
34985 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34986 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34993 # We need space, tab and new line, in precisely that order. Quoting is
34994 # there to prevent editors from complaining about space-tab.
34995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34996 # splitting by setting IFS to empty value.)
34999 # Find who we are. Look in the path if we contain no directory separator.
35002 *[\\/]* ) as_myself=$0 ;;
35003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35004 for as_dir in $PATH
35007 test -z "$as_dir" && as_dir=.
35008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35014 # We did not find ourselves, most probably we were run as `sh COMMAND'
35015 # in which case we are not to be found in the path.
35016 if test "x$as_myself" = x
; then
35019 if test ! -f "$as_myself"; then
35020 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35024 # Unset variables that we do not need and which cause bugs (e.g. in
35025 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35026 # suppresses any "Segmentation fault" message there. '((' could
35027 # trigger a bug in pdksh 5.2.14.
35028 for as_var
in BASH_ENV ENV MAIL MAILPATH
35029 do eval test x\
${$as_var+set} = xset \
35030 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
35043 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
35046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35047 # ----------------------------------------
35048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35050 # script with STATUS, using 1 if that was 0.
35053 as_status
=$1; test $as_status -eq 0 && as_status
=1
35055 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
35056 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35058 $as_echo "$as_me: error: $2" >&2
35059 as_fn_exit
$as_status
35063 # as_fn_set_status STATUS
35064 # -----------------------
35065 # Set $? to STATUS, without forking.
35066 as_fn_set_status
()
35069 } # as_fn_set_status
35071 # as_fn_exit STATUS
35072 # -----------------
35073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35077 as_fn_set_status
$1
35083 # Portably unset VAR.
35086 { eval $1=; unset $1;}
35088 as_unset
=as_fn_unset
35089 # as_fn_append VAR VALUE
35090 # ----------------------
35091 # Append the text in VALUE to the end of the definition contained in VAR. Take
35092 # advantage of any shell optimizations that allow amortized linear growth over
35093 # repeated appends, instead of the typical quadratic growth present in naive
35095 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
35096 eval 'as_fn_append ()
35107 # as_fn_arith ARG...
35108 # ------------------
35109 # Perform arithmetic evaluation on the ARGs, and store the result in the
35110 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35111 # must be portable across $(()) and expr.
35112 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
35113 eval 'as_fn_arith ()
35120 as_val
=`expr "$@" || test $? -eq 1`
35125 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
35126 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
35132 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35133 as_basename
=basename
35138 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
35144 as_me
=`$as_basename -- "$0" ||
35145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35146 X"$0" : 'X\(//\)$' \| \
35147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35149 sed '/^.*\/\([^/][^/]*\)\/*$/{
35163 # Avoid depending upon Character Ranges.
35164 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35165 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35166 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
35167 as_cr_digits
='0123456789'
35168 as_cr_alnum
=$as_cr_Letters$as_cr_digits
35170 ECHO_C
= ECHO_N
= ECHO_T
=
35171 case `echo -n x` in #(((((
35173 case `echo 'xy\c'` in
35174 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
35176 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
35183 rm -f conf$$ conf$$.exe conf$$.
file
35184 if test -d conf$$.dir
; then
35185 rm -f conf$$.dir
/conf$$.
file
35188 mkdir conf$$.dir
2>/dev
/null
35190 if (echo >conf$$.
file) 2>/dev
/null
; then
35191 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
35193 # ... but there are two gotchas:
35194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35196 # In both cases, we have to default to `cp -pR'.
35197 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
35199 elif ln conf$$.
file conf$$
2>/dev
/null
; then
35207 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
35208 rmdir conf$$.dir
2>/dev
/null
35213 # Create "$as_dir" as a directory, including parents if necessary.
35218 -*) as_dir
=.
/$as_dir;;
35220 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
35224 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35225 *) as_qdir
=$as_dir;;
35227 as_dirs
="'$as_qdir' $as_dirs"
35228 as_dir
=`$as_dirname -- "$as_dir" ||
35229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35230 X"$as_dir" : 'X\(//\)[^/]' \| \
35231 X"$as_dir" : 'X\(//\)$' \| \
35232 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35233 $as_echo X"$as_dir" |
35234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35238 /^X\(\/\/\)[^/].*/{
35251 test -d "$as_dir" && break
35253 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
35254 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
35258 if mkdir
-p .
2>/dev
/null
; then
35259 as_mkdir_p
='mkdir -p "$as_dir"'
35261 test -d .
/-p && rmdir .
/-p
35266 # as_fn_executable_p FILE
35267 # -----------------------
35268 # Test if FILE is an executable regular file.
35269 as_fn_executable_p
()
35271 test -f "$1" && test -x "$1"
35272 } # as_fn_executable_p
35273 as_test_x
='test -x'
35274 as_executable_p
=as_fn_executable_p
35276 # Sed expression to map a string onto a valid CPP name.
35277 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35279 # Sed expression to map a string onto a valid variable name.
35280 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35284 ## ----------------------------------- ##
35285 ## Main body of $CONFIG_STATUS script. ##
35286 ## ----------------------------------- ##
35288 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
35290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35291 # Save the log message, to keep $0 and so on meaningful, and to
35292 # report actual input values of CONFIG_FILES etc. instead of their
35293 # values after options handling.
35295 This file was extended by $as_me, which was
35296 generated by GNU Autoconf 2.69. Invocation command line was
35298 CONFIG_FILES = $CONFIG_FILES
35299 CONFIG_HEADERS = $CONFIG_HEADERS
35300 CONFIG_LINKS = $CONFIG_LINKS
35301 CONFIG_COMMANDS = $CONFIG_COMMANDS
35304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35309 case $ac_config_files in *"
35310 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
35313 case $ac_config_headers in *"
35314 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
35318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35319 # Files that config.status was made for.
35320 config_files="$ac_config_files"
35321 config_headers="$ac_config_headers"
35322 config_links="$ac_config_links"
35323 config_commands="$ac_config_commands"
35327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35329 \`$as_me' instantiates files and other configuration actions
35330 from templates according to the current configuration. Unless the files
35331 and actions are specified as TAGs, all are instantiated by default.
35333 Usage: $0 [OPTION]... [TAG]...
35335 -h, --help print this help, then exit
35336 -V, --version print version number and configuration settings, then exit
35337 --config print configuration, then exit
35338 -q, --quiet, --silent
35339 do not print progress messages
35340 -d, --debug don't remove temporary files
35341 --recheck update $as_me by reconfiguring in the same conditions
35342 --file=FILE[:TEMPLATE]
35343 instantiate the configuration file FILE
35344 --header=FILE[:TEMPLATE]
35345 instantiate the configuration header FILE
35347 Configuration files:
35350 Configuration headers:
35353 Configuration links:
35356 Configuration commands:
35359 Report bugs to the package provider."
35362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35363 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35366 configured by $0, generated by GNU Autoconf 2.69,
35367 with options \\"\$ac_cs_config\\"
35369 Copyright (C) 2012 Free Software Foundation, Inc.
35370 This config.status script is free software; the Free Software Foundation
35371 gives unlimited permission to copy, distribute and modify it."
35377 test -n "\$AWK" || AWK=awk
35380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35381 # The default lists apply if the user does not specify any file.
35387 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35388 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
35392 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
35404 # Handling of the options.
35405 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
35407 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
35408 $as_echo "$ac_cs_version"; exit ;;
35409 --config |
--confi |
--conf |
--con |
--co |
--c )
35410 $as_echo "$ac_cs_config"; exit ;;
35411 --debug |
--debu |
--deb |
--de |
--d |
-d )
35413 --file |
--fil |
--fi |
--f )
35416 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35417 '') as_fn_error $?
"missing file argument" ;;
35419 as_fn_append CONFIG_FILES
" '$ac_optarg'"
35420 ac_need_defaults
=false
;;
35421 --header |
--heade |
--head |
--hea )
35424 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35426 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
35427 ac_need_defaults
=false
;;
35429 # Conflict between --help and --header
35430 as_fn_error $?
"ambiguous option: \`$1'
35431 Try \`$0 --help' for more information.";;
35432 --help |
--hel |
-h )
35433 $as_echo "$ac_cs_usage"; exit ;;
35434 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
35435 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
35438 # This is an error.
35439 -*) as_fn_error $?
"unrecognized option: \`$1'
35440 Try \`$0 --help' for more information." ;;
35442 *) as_fn_append ac_config_targets
" $1"
35443 ac_need_defaults
=false
;;
35449 ac_configure_extra_args
=
35451 if $ac_cs_silent; then
35453 ac_configure_extra_args
="$ac_configure_extra_args --silent"
35457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35458 if \$ac_cs_recheck; then
35459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35462 CONFIG_SHELL='$SHELL'
35463 export CONFIG_SHELL
35468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35473 ## Running $as_me. ##
35479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35483 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35484 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35485 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35486 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35488 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35489 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35490 LINGUAS="${LINGUAS-%UNSET%}"
35496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35498 # Handling of arguments.
35499 for ac_config_target
in $ac_config_targets
35501 case $ac_config_target in
35502 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
35503 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
35504 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
35505 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
35506 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
35507 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35508 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
35509 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35510 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35511 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
35512 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
35514 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35519 # If the user did not use the arguments to specify the items to instantiate,
35520 # then the envvar interface is used. Set only those that are not.
35521 # We use the long form for the default assignment because of an extremely
35522 # bizarre bug on SunOS 4.1.3.
35523 if $ac_need_defaults; then
35524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
35525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
35526 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
35527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
35530 # Have a temporary directory for convenience. Make it in the build tree
35531 # simply because there is no reason against having it here, and in addition,
35532 # creating and moving files from /tmp can sometimes cause problems.
35533 # Hook for its removal unless debugging.
35534 # Note that there is a small window in which the directory will not be cleaned:
35535 # after its creation but before its name has been assigned to `$tmp'.
35539 trap 'exit_status=$?
35540 : "${ac_tmp:=$tmp}"
35541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35543 trap 'as_fn_exit 1' 1 2 13 15
35545 # Create a (secure) tmp directory for tmp files.
35548 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35552 tmp
=.
/conf$$
-$RANDOM
35553 (umask 077 && mkdir
"$tmp")
35554 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
35557 # Set up the scripts for CONFIG_FILES section.
35558 # No need to generate them if there are no CONFIG_FILES.
35559 # This happens for instance with `./config.status config.h'.
35560 if test -n "$CONFIG_FILES"; then
35562 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
35563 ac_cs_awk_getline
=:
35564 ac_cs_awk_pipe_init
=
35565 ac_cs_awk_read_file
='
35566 while ((getline aline < (F[key])) > 0)
35569 ac_cs_awk_pipe_fini
=
35571 ac_cs_awk_getline
=false
35572 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
35573 ac_cs_awk_read_file
='
35575 print "cat " F[key] " &&"
35576 '$ac_cs_awk_pipe_init
35577 # The final `:' finishes the AND list.
35578 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
35580 ac_cr
=`echo X | tr X '\015'`
35581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35582 # But we know of no other shell where ac_cr would be empty at this
35583 # point, so we can use a bashism as a fallback.
35584 if test "x$ac_cr" = x
; then
35585 eval ac_cr
=\$
\'\\r
\'
35587 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35591 ac_cs_awk_cr
=$ac_cr
35594 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35597 # Create commands to substitute file output variables.
35599 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35600 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35601 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
35604 } >conf$
$files.sh
&&
35605 . .
/conf$
$files.sh ||
35606 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
35607 rm -f conf$
$files.sh
35610 echo "cat >conf$$subs.awk <<_ACEOF" &&
35611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35613 } >conf$$subs.sh ||
35614 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35617 for ac_last_try in false false false false false :; do
35618 . ./conf$$subs.sh ||
35619 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35621 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
35622 if test $ac_delim_n = $ac_delim_num; then
35624 elif $ac_last_try; then
35625 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
35627 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35630 rm -f conf$$subs.sh
35632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35633 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
35637 s/^/S["/; s
/!.
*/"]=/
35647 s/\(.\{148\}\)..*/\1/
35649 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
35654 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35661 s/\(.\{148\}\)..*/\1/
35663 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
35667 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
35672 ' <conf$$subs.awk | sed '
35677 ' >>$CONFIG_STATUS || ac_write_fail=1
35678 rm -f conf$$subs.awk
35679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35681 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
35682 for (key in S) S_is_set[key] = 1
35684 \$ac_cs_awk_pipe_init
35688 nfields = split(line, field, "@
")
35690 len = length(field[1])
35691 for (i = 2; i < nfields; i++) {
35693 keylen = length(key)
35694 if (S_is_set[key]) {
35696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35697 len += length(value) + length(field[++i])
35702 if (nfields == 3 && !substed) {
35704 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35705 \$ac_cs_awk_read_file
35711 \$ac_cs_awk_pipe_fini
35714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35715 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35716 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
35719 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
35720 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
35723 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35724 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
35725 # trailing colons and then remove the whole line if VPATH becomes empty
35726 # (actually we leave an empty line to preserve line numbers).
35727 if test "x
$srcdir" = x.; then
35728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35747 fi # test -n "$CONFIG_FILES"
35749 # Set up the scripts for CONFIG_HEADERS section.
35750 # No need to generate them if there are no CONFIG_HEADERS.
35751 # This happens for instance with `./config.status Makefile'.
35752 if test -n "$CONFIG_HEADERS"; then
35753 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35757 # Transform confdefs.h into an awk script `defines.awk', embedded as
35758 # here-document in config.status, that substitutes the proper values into
35759 # config.h.in to produce config.h.
35761 # Create a delimiter string that does not exist in confdefs.h, to ease
35762 # handling of long lines.
35764 for ac_last_try in false false :; do
35765 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35766 if test -z "$ac_tt"; then
35768 elif $ac_last_try; then
35769 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35771 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35775 # For the awk script, D is an array of macro values keyed by name,
35776 # likewise P contains macro parameters if any. Preserve backslash
35777 # newline sequences.
35779 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35781 s/.\{148\}/&'"$ac_delim"'/g
35784 s/^[ ]*#[ ]*define[ ][ ]*/ /
35791 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35793 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35797 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35798 D["\
1"]=" \
3\\\\\\n
"\\/p
35800 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35805 s/.\{148\}/&'"$ac_delim"'/g
35810 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35813 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35815 ' <confdefs.h | sed '
35816 s/'"$ac_delim"'/"\\\
35817 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35820 for (key in D) D_is_set[key] = 1
35823 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35825 split(line, arg, " ")
35826 if (arg[1] == "#") {
35830 defundef
= substr
(arg
[1], 2)
35833 split(mac1
, mac2
, "(") #)
35835 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35836 if (D_is_set
[macro
]) {
35837 # Preserve the white space surrounding the "#".
35838 print prefix
"define", macro P
[macro
] D
[macro
]
35841 # Replace #undef with comments. This is necessary, for example,
35842 # in the case of _POSIX_SOURCE, which is predefined and required
35843 # on some systems where configure will not decide to define it.
35844 if (defundef
== "undef") {
35845 print
"/*", prefix defundef
, macro
, "*/"
35853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35854 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35855 fi # test -n "$CONFIG_HEADERS"
35858 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35863 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35865 case $ac_mode$ac_tag in
35867 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35868 :[FH
]-) ac_tag
=-:-;;
35869 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35886 -) ac_f
="$ac_tmp/stdin";;
35887 *) # Look for the file first in the build tree, then in the source tree
35888 # (if the path is not absolute). The absolute path cannot be DOS-style,
35889 # because $ac_f cannot contain `:'.
35893 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35895 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35897 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35898 as_fn_append ac_file_inputs
" '$ac_f'"
35901 # Let's still pretend it is `configure' which instantiates (i.e., don't
35902 # use $as_me), people would be surprised to read:
35903 # /* config.h. Generated by config.status. */
35904 configure_input
='Generated from '`
35905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35907 if test x
"$ac_file" != x-
; then
35908 configure_input
="$ac_file. $configure_input"
35909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35910 $as_echo "$as_me: creating $ac_file" >&6;}
35912 # Neutralize special characters interpreted by sed in replacement strings.
35913 case $configure_input in #(
35914 *\
&* |
*\|
* |
*\\* )
35915 ac_sed_conf_input
=`$as_echo "$configure_input" |
35916 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35917 *) ac_sed_conf_input
=$configure_input;;
35921 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
35922 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
35927 ac_dir
=`$as_dirname -- "$ac_file" ||
35928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35929 X"$ac_file" : 'X\(//\)[^/]' \| \
35930 X"$ac_file" : 'X\(//\)$' \| \
35931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35932 $as_echo X"$ac_file" |
35933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35937 /^X\(\/\/\)[^/].*/{
35950 as_dir
="$ac_dir"; as_fn_mkdir_p
35954 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35956 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35957 # A ".." for each directory in $ac_dir_suffix.
35958 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35959 case $ac_top_builddir_sub in
35960 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35961 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35964 ac_abs_top_builddir
=$ac_pwd
35965 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35966 # for backward compatibility:
35967 ac_top_builddir
=$ac_top_build_prefix
35970 .
) # We are building in place.
35972 ac_top_srcdir
=$ac_top_builddir_sub
35973 ac_abs_top_srcdir
=$ac_pwd ;;
35974 [\\/]* | ?
:[\\/]* ) # Absolute name.
35975 ac_srcdir
=$srcdir$ac_dir_suffix;
35976 ac_top_srcdir
=$srcdir
35977 ac_abs_top_srcdir
=$srcdir ;;
35978 *) # Relative name.
35979 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35980 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35981 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35983 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35993 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35994 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35999 # If the template does not know about datarootdir, expand it.
36000 # FIXME: This hack should be removed a few years after 2.60.
36001 ac_datarootdir_hack
=; ac_datarootdir_seen
=
36012 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36013 *datarootdir
*) ac_datarootdir_seen
=yes;;
36014 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36016 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36019 ac_datarootdir_hack='
36020 s&@datadir@&$datadir&g
36021 s&@docdir@&$docdir&g
36022 s&@infodir@&$infodir&g
36023 s&@localedir@&$localedir&g
36024 s&@mandir@&$mandir&g
36025 s&\\\${datarootdir}&$datarootdir&g' ;;
36029 # Neutralize VPATH when `$srcdir' = `.'.
36030 # Shell code in configure.ac might set extrasub.
36031 # FIXME: do we really want to maintain this feature?
36032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36033 ac_sed_extra="$ac_vpsub
36036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36038 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
36039 s|@configure_input@|
$ac_sed_conf_input|
;t t
36040 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
36041 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
36042 s
&@srcdir@
&$ac_srcdir&;t t
36043 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
36044 s
&@top_srcdir@
&$ac_top_srcdir&;t t
36045 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
36046 s
&@builddir@
&$ac_builddir&;t t
36047 s
&@abs_builddir@
&$ac_abs_builddir&;t t
36048 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
36049 s
&@INSTALL@
&$ac_INSTALL&;t t
36050 $ac_datarootdir_hack
36052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36053 if $ac_cs_awk_getline; then
36054 $AWK -f "$ac_tmp/subs.
awk"
36056 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
36058 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
36060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36061 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
36062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36063 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
36065 which seems to be undefined. Please make sure it is defined" >&5
36066 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
36067 which seems to be undefined. Please make sure it is defined" >&2;}
36069 rm -f "$ac_tmp/stdin"
36071 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36072 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36080 if test x"$ac_file" != x-; then
36082 $as_echo "/* $configure_input */" \
36083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36084 } >"$ac_tmp/config.h" \
36085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36086 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36087 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36091 mv "$ac_tmp/config.h" "$ac_file" \
36092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36095 $as_echo "/* $configure_input */" \
36096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36097 || as_fn_error $? "could not create -" "$LINENO" 5
36105 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
36108 # Prefer the file from the source tree if names are identical.
36109 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36110 ac_source=$srcdir/$ac_source
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36114 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36116 if test ! -r "$ac_source"; then
36117 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36121 # Try a relative symlink, then a hard link, then a copy.
36123 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36124 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36126 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36127 ln "$ac_source" "$ac_file" 2>/dev/null ||
36128 cp -p "$ac_source" "$ac_file" ||
36129 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36133 $as_echo "$as_me: executing $ac_file commands" >&6;}
36138 case $ac_file$ac_mode in
36139 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36141 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36142 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36144 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36147 for ac_file in $CONFIG_FILES; do
36148 # Support "outfile[:infile[:infile...]]"
36150 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
36152 # PO directories have a Makefile.in generated from Makefile.in.in.
36153 case "$ac_file" in */Makefile.in)
36154 # Adjust a relative srcdir.
36155 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
36156 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
36157 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
36158 # In autoconf-2.13 it is called $ac_given_srcdir.
36159 # In autoconf-2.50 it is called $srcdir.
36160 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36161 case "$ac_given_srcdir" in
36162 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
36163 /*) top_srcdir="$ac_given_srcdir" ;;
36164 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36166 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36167 rm -f "$ac_dir/POTFILES"
36168 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36169 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36170 POMAKEFILEDEPS="POTFILES.in"
36171 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36172 # on $ac_dir but don't depend on user-specified configuration
36174 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36175 # The LINGUAS file contains the set of available languages.
36176 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36177 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36179 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36180 # Hide the ALL_LINGUAS assigment from automake.
36181 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36182 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36184 # The set of available languages was given in configure.ac.
36185 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36187 case "$ac_given_srcdir" in
36189 *) srcdirpre
='$(srcdir)/' ;;
36195 for lang
in $ALL_LINGUAS; do
36196 POFILES
="$POFILES $srcdirpre$lang.po"
36197 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36198 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36199 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36201 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36202 # environment variable.
36204 if test -n "$ALL_LINGUAS"; then
36205 for presentlang
in $ALL_LINGUAS; do
36207 if test "%UNSET%" != "$LINGUAS"; then
36208 desiredlanguages
="$LINGUAS"
36210 desiredlanguages
="$ALL_LINGUAS"
36212 for desiredlang
in $desiredlanguages; do
36213 # Use the presentlang catalog if desiredlang is
36214 # a. equal to presentlang, or
36215 # b. a variant of presentlang (because in this case,
36216 # presentlang can be used as a fallback for messages
36217 # which are not translated in the desiredlang catalog).
36218 case "$desiredlang" in
36219 "$presentlang"*) useit
=yes;;
36222 if test $useit = yes; then
36223 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36228 if test -n "$INST_LINGUAS"; then
36229 for lang
in $INST_LINGUAS; do
36230 CATALOGS
="$CATALOGS $lang.gmo"
36233 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36234 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"
36235 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36236 if test -f "$f"; then
36238 *.orig |
*.bak |
*~
) ;;
36239 *) cat "$f" >> "$ac_dir/Makefile" ;;
36247 "as":F
) chmod +x as
;;
36248 "collect-ld":F
) chmod +x collect-ld
;;
36249 "nm":F
) chmod +x nm
;;
36250 "dsymutil":F
) chmod +x dsymutil
;;
36252 case ${CONFIG_HEADERS} in
36253 *auto-host.h
:config.
in*)
36256 # Make sure all the subdirs exist.
36257 for d
in $subdirs doc build common c-family
36259 test -d $d || mkdir
$d
36269 ac_clean_files
=$ac_clean_files_save
36271 test $ac_write_fail = 0 ||
36272 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36275 # configure is writing to config.log, and then calls config.status.
36276 # config.status does its own redirection, appending to config.log.
36277 # Unfortunately, on DOS this fails, as config.log is still kept open
36278 # by configure, so config.status won't be able to write to it; its
36279 # output is simply discarded. So we exec the FD to /dev/null,
36280 # effectively closing config.log, so it can be properly (re)opened and
36281 # appended to by config.status. When coming back to configure, we
36282 # need to make the FD available again.
36283 if test "$no_create" != yes; then
36285 ac_config_status_args
=
36286 test "$silent" = yes &&
36287 ac_config_status_args
="$ac_config_status_args --quiet"
36289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36292 # would make configure fail if this is the last instruction.
36293 $ac_cs_success || as_fn_exit
1
36295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36297 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}