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.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
662 common_out_object_file
678 gcc_gxx_include_dir_add_sysroot
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
688 TM_MULTILIB_EXCEPTIONS_CONFIG
698 build_xm_include_list
700 build_install_headers_dir
702 all_selected_languages
705 all_lang_configurefrags
721 ld_version_script_option
726 ORIGINAL_NM_FOR_TARGET
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
733 ORIGINAL_AS_FOR_TARGET
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
762 BUILD_SYSTEM_HEADER_DIR
782 NATIVE_SYSTEM_HEADER_DIR
819 omp_device_property_deps
820 omp_device_properties
822 real_target_noncanonical
823 enable_as_accelerator
839 valgrind_path_defines
869 CROSS_SYSTEM_HEADER_DIR
870 TARGET_SYSTEM_ROOT_DEFINE
872 SYSROOT_CFLAGS_FOR_TARGET
918 program_transform_name
929 ac_subst_files
='option_includes
932 enable_option_checking
935 with_native_system_header_dir
940 enable_generated_files_in_srcdir
947 enable_build_format_warnings
951 enable_gather_detailed_mem_stats
952 enable_valgrind_annotations
956 with_stack_clash_protection_guard_size
971 with_documentation_root_url
972 with_changes_root_url
975 with_multilib_generator
982 enable_sjlj_exceptions
983 with_gcc_major_version_only
985 enable_mingw_wildcard
986 enable_large_address_aware
987 enable_leading_mingw64_underscores
990 enable_win32_registry
998 enable_gnu_indirect_function
999 enable_initfini_array
1001 enable_newlib_nano_formatted_io
1002 enable_standard_branch_protection
1003 enable_fix_cortex_a53_835769
1004 enable_fix_cortex_a53_843419
1006 enable_gnu_unique_object
1007 enable_linker_build_id
1010 with_long_double_128
1011 with_long_double_format
1014 enable_maintainer_mode
1016 enable_version_specific_runtime_libs
1019 enable_libquadmath_support
1020 with_linker_hash_style
1021 with_diagnostics_color
1022 with_diagnostics_urls
1026 ac_precious_vars
='build_alias
1045 # Initialize some variables set by options.
1047 ac_init_version
=false
1048 ac_unrecognized_opts
=
1049 ac_unrecognized_sep
=
1050 # The variables have the same names as the options, with
1051 # dashes changed to underlines.
1052 cache_file
=/dev
/null
1059 program_transform_name
=s
,x
,x
,
1067 # Installation directory options.
1068 # These are left unexpanded so users can "make install exec_prefix=/foo"
1069 # and all the variables that are supposed to be based on exec_prefix
1070 # by default will actually change.
1071 # Use braces instead of parens because sh, perl, etc. also accept them.
1072 # (The list follows the same order as the GNU Coding Standards.)
1073 bindir
='${exec_prefix}/bin'
1074 sbindir
='${exec_prefix}/sbin'
1075 libexecdir
='${exec_prefix}/libexec'
1076 datarootdir
='${prefix}/share'
1077 datadir
='${datarootdir}'
1078 sysconfdir
='${prefix}/etc'
1079 sharedstatedir
='${prefix}/com'
1080 localstatedir
='${prefix}/var'
1081 includedir
='${prefix}/include'
1082 oldincludedir
='/usr/include'
1083 docdir
='${datarootdir}/doc/${PACKAGE}'
1084 infodir
='${datarootdir}/info'
1089 libdir
='${exec_prefix}/lib'
1090 localedir
='${datarootdir}/locale'
1091 mandir
='${datarootdir}/man'
1097 # If the previous option needs an argument, assign it.
1098 if test -n "$ac_prev"; then
1099 eval $ac_prev=\
$ac_option
1105 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1110 # Accept the important Cygnus configure options, so we can diagnose typos.
1112 case $ac_dashdash$ac_option in
1116 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1118 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1119 bindir
=$ac_optarg ;;
1121 -build |
--build |
--buil |
--bui |
--bu)
1122 ac_prev
=build_alias
;;
1123 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1124 build_alias
=$ac_optarg ;;
1126 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1127 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1128 ac_prev
=cache_file
;;
1129 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1130 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1131 cache_file
=$ac_optarg ;;
1133 --config-cache |
-C)
1134 cache_file
=config.cache
;;
1136 -datadir |
--datadir |
--datadi |
--datad)
1138 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1139 datadir
=$ac_optarg ;;
1141 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1142 |
--dataroo |
--dataro |
--datar)
1143 ac_prev
=datarootdir
;;
1144 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1145 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1146 datarootdir
=$ac_optarg ;;
1148 -disable-* |
--disable-*)
1149 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1152 as_fn_error $?
"invalid feature name: $ac_useropt"
1153 ac_useropt_orig
=$ac_useropt
1154 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "enable_
$ac_useropt"
1159 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1160 ac_unrecognized_sep
=', ';;
1162 eval enable_
$ac_useropt=no
;;
1164 -docdir |
--docdir |
--docdi |
--doc |
--do)
1166 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1167 docdir
=$ac_optarg ;;
1169 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1171 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1172 dvidir
=$ac_optarg ;;
1174 -enable-* |
--enable-*)
1175 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1178 as_fn_error $?
"invalid feature name: $ac_useropt"
1179 ac_useropt_orig
=$ac_useropt
1180 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "enable_
$ac_useropt"
1185 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1186 ac_unrecognized_sep
=', ';;
1188 eval enable_
$ac_useropt=\
$ac_optarg ;;
1190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1192 |
--exec |
--exe |
--ex)
1193 ac_prev
=exec_prefix
;;
1194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1196 |
--exec=* |
--exe=* |
--ex=*)
1197 exec_prefix
=$ac_optarg ;;
1199 -gas |
--gas |
--ga |
--g)
1200 # Obsolete; use --with-gas.
1203 -help |
--help |
--hel |
--he |
-h)
1204 ac_init_help
=long
;;
1205 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1206 ac_init_help
=recursive
;;
1207 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1208 ac_init_help
=short
;;
1210 -host |
--host |
--hos |
--ho)
1211 ac_prev
=host_alias
;;
1212 -host=* |
--host=* |
--hos=* |
--ho=*)
1213 host_alias
=$ac_optarg ;;
1215 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1217 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1219 htmldir
=$ac_optarg ;;
1221 -includedir |
--includedir |
--includedi |
--included |
--include \
1222 |
--includ |
--inclu |
--incl |
--inc)
1223 ac_prev
=includedir
;;
1224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1226 includedir
=$ac_optarg ;;
1228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1231 infodir
=$ac_optarg ;;
1233 -libdir |
--libdir |
--libdi |
--libd)
1235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1236 libdir
=$ac_optarg ;;
1238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1239 |
--libexe |
--libex |
--libe)
1240 ac_prev
=libexecdir
;;
1241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1242 |
--libexe=* |
--libex=* |
--libe=*)
1243 libexecdir
=$ac_optarg ;;
1245 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1246 ac_prev
=localedir
;;
1247 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1248 localedir
=$ac_optarg ;;
1250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1251 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1252 ac_prev
=localstatedir
;;
1253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1255 localstatedir
=$ac_optarg ;;
1257 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1259 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1260 mandir
=$ac_optarg ;;
1262 -nfp |
--nfp |
--nf)
1263 # Obsolete; use --without-fp.
1266 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1267 |
--no-cr |
--no-c |
-n)
1270 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1271 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1274 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1275 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1276 |
--oldin |
--oldi |
--old |
--ol |
--o)
1277 ac_prev
=oldincludedir
;;
1278 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1279 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1280 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1281 oldincludedir
=$ac_optarg ;;
1283 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1285 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1286 prefix
=$ac_optarg ;;
1288 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1289 |
--program-pre |
--program-pr |
--program-p)
1290 ac_prev
=program_prefix
;;
1291 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1292 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1293 program_prefix
=$ac_optarg ;;
1295 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1296 |
--program-suf |
--program-su |
--program-s)
1297 ac_prev
=program_suffix
;;
1298 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1299 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1300 program_suffix
=$ac_optarg ;;
1302 -program-transform-name |
--program-transform-name \
1303 |
--program-transform-nam |
--program-transform-na \
1304 |
--program-transform-n |
--program-transform- \
1305 |
--program-transform |
--program-transfor \
1306 |
--program-transfo |
--program-transf \
1307 |
--program-trans |
--program-tran \
1308 |
--progr-tra |
--program-tr |
--program-t)
1309 ac_prev
=program_transform_name
;;
1310 -program-transform-name=* |
--program-transform-name=* \
1311 |
--program-transform-nam=* |
--program-transform-na=* \
1312 |
--program-transform-n=* |
--program-transform-=* \
1313 |
--program-transform=* |
--program-transfor=* \
1314 |
--program-transfo=* |
--program-transf=* \
1315 |
--program-trans=* |
--program-tran=* \
1316 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1317 program_transform_name
=$ac_optarg ;;
1319 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1321 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1322 pdfdir
=$ac_optarg ;;
1324 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1326 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1329 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1330 |
-silent |
--silent |
--silen |
--sile |
--sil)
1333 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1335 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1337 sbindir
=$ac_optarg ;;
1339 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1340 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1341 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1343 ac_prev
=sharedstatedir
;;
1344 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1345 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1346 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1348 sharedstatedir
=$ac_optarg ;;
1350 -site |
--site |
--sit)
1352 -site=* |
--site=* |
--sit=*)
1355 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1357 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1358 srcdir
=$ac_optarg ;;
1360 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1361 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1362 ac_prev
=sysconfdir
;;
1363 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1364 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1365 sysconfdir
=$ac_optarg ;;
1367 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1368 ac_prev
=target_alias
;;
1369 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1370 target_alias
=$ac_optarg ;;
1372 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1375 -version |
--version |
--versio |
--versi |
--vers |
-V)
1376 ac_init_version
=: ;;
1379 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1382 as_fn_error $?
"invalid package name: $ac_useropt"
1383 ac_useropt_orig
=$ac_useropt
1384 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1389 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390 ac_unrecognized_sep
=', ';;
1392 eval with_
$ac_useropt=\
$ac_optarg ;;
1394 -without-* |
--without-*)
1395 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1398 as_fn_error $?
"invalid package name: $ac_useropt"
1399 ac_useropt_orig
=$ac_useropt
1400 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1405 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406 ac_unrecognized_sep
=', ';;
1408 eval with_
$ac_useropt=no
;;
1411 # Obsolete; use --with-x.
1414 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1415 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1416 ac_prev
=x_includes
;;
1417 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1418 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1419 x_includes
=$ac_optarg ;;
1421 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1422 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1423 ac_prev
=x_libraries
;;
1424 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1425 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1426 x_libraries
=$ac_optarg ;;
1428 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1433 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1434 # Reject names that are not valid shell variable names.
1435 case $ac_envvar in #(
1436 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1437 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1439 eval $ac_envvar=\
$ac_optarg
1440 export $ac_envvar ;;
1443 # FIXME: should be removed in autoconf 3.0.
1444 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1446 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1453 if test -n "$ac_prev"; then
1454 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1455 as_fn_error $?
"missing argument to $ac_option"
1458 if test -n "$ac_unrecognized_opts"; then
1459 case $enable_option_checking in
1461 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1462 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1466 # Check all directory arguments for consistency.
1467 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468 datadir sysconfdir sharedstatedir localstatedir includedir \
1469 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470 libdir localedir mandir
1472 eval ac_val
=\$
$ac_var
1473 # Remove trailing slashes.
1476 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477 eval $ac_var=\
$ac_val;;
1479 # Be sure to have absolute directory names.
1481 [\\/$
]* | ?
:[\\/]* ) continue;;
1482 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1484 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1492 target
=$target_alias
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x
; then
1496 if test "x$build_alias" = x
; then
1497 cross_compiling
=maybe
1498 elif test "x$build_alias" != "x$host_alias"; then
1504 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1506 test "$silent" = yes && exec 6>/dev
/null
1509 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di
=`ls -di .` &&
1511 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $?
"working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $?
"pwd does not report name of working directory"
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted
=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir
=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1549 ac_srcdir_defaulted
=no
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1553 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1555 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1567 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1569 for ac_var
in $ac_precious_vars; do
1570 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1572 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1577 # Report the --help message.
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1583 \`configure' configures this package to adapt to many kinds of systems.
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1590 Defaults for the options are specified in brackets.
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1614 For better control, use the options below.
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --libdir=DIR object code libraries [EPREFIX/lib]
1624 --includedir=DIR C header files [PREFIX/include]
1625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1628 --infodir=DIR info documentation [DATAROOTDIR/info]
1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1630 --mandir=DIR man documentation [DATAROOTDIR/man]
1631 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1632 --htmldir=DIR html documentation [DOCDIR]
1633 --dvidir=DIR dvi documentation [DOCDIR]
1634 --pdfdir=DIR pdf documentation [DOCDIR]
1635 --psdir=DIR ps documentation [DOCDIR]
1641 --program-prefix=PREFIX prepend PREFIX to installed program names
1642 --program-suffix=SUFFIX append SUFFIX to installed program names
1643 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1646 --build=BUILD configure
for building on BUILD
[guessed
]
1647 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1648 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1652 if test -n "$ac_init_help"; then
1657 --disable-option-checking ignore unrecognized
--enable/--with options
1658 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1659 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1660 --enable-generated-files-in-srcdir
1661 put copies of generated files
in source dir intended
1662 for creating
source tarballs
for users without
1663 texinfo bison or flex
1664 --disable-largefile omit support
for large files
1665 --disable-build-format-warnings
1666 don
't use -Wformat while building GCC
1667 --enable-werror-always enable -Werror despite compiler version
1668 --enable-checking[=LIST]
1669 enable expensive run-time checks. With LIST, enable
1670 only specific categories of checks. Categories are:
1671 yes,no,all,none,release. Flags are:
1672 assert,df,extra,fold,gc,gcac,gimple,misc,
1673 rtlflag,rtl,runtime,tree,valgrind,types
1674 --enable-coverage[=LEVEL]
1675 enable compiler's code coverage collection. Use to
1676 measure compiler performance and
locate unused parts
1677 of the compiler. With LEVEL
, specify optimization.
1678 Values are opt
, noopt
, default is noopt
1679 --enable-gather-detailed-mem-stats
1680 enable detailed memory allocation stats gathering
1681 --enable-valgrind-annotations
1682 enable valgrind runtime interaction
1683 --enable-multilib enable library support
for multiple ABIs
1684 --enable-multiarch enable support
for multiarch paths
1685 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1686 --enable-decimal-float={no
,yes,bid
,dpd
}
1687 enable decimal float extension to C. Selecting
'bid'
1688 or
'dpd' choses
which decimal floating point format
1690 --enable-fixed-point enable fixed-point arithmetic extension to C
1691 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1693 --enable-tls enable or disable generation of tls code overriding
1694 the assembler check
for tls support
1695 --enable-vtable-verify enable vtable verification feature
1696 --disable-analyzer disable
-fanalyzer static analyzer
1697 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1698 GNU Objective-C runtime
1699 --disable-shared don't provide a shared libgcc
1700 --disable-gcov don
't provide libgcov and related host tools
1701 --enable-languages=LIST specify which front-ends to build
1702 --disable-rpath do not hardcode runtime library paths
1703 --enable-sjlj-exceptions
1704 arrange to use setjmp/longjmp exception handling
1705 --enable-secureplt enable -msecure-plt by default for PowerPC
1706 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1707 Default to platform configuration
1708 --enable-large-address-aware
1709 Link mingw executables with --large-address-aware
1710 --enable-leading-mingw64-underscores
1711 enable leading underscores on 64 bit mingw targets
1712 --enable-cld enable -mcld by default for 32bit x86
1713 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1714 --disable-win32-registry
1715 disable lookup of installation paths in the Registry
1717 --enable-win32-registry enable registry lookup (default)
1718 --enable-win32-registry=KEY
1719 use KEY instead of GCC version as the last portion
1721 --enable-shared[=PKGS] build shared libraries [default=yes]
1722 --enable-static[=PKGS] build static libraries [default=yes]
1723 --enable-fast-install[=PKGS]
1724 optimize for fast installation [default=yes]
1725 --disable-libtool-lock avoid locking (might break parallel builds)
1726 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1727 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1728 --enable-gnu-indirect-function
1729 enable the use of the @gnu_indirect_function to
1731 --enable-initfini-array use .init_array/.fini_array sections
1732 --enable-comdat enable COMDAT group support
1733 --enable-newlib-nano-formatted-io
1734 Use nano version formatted IO
1736 --enable-standard-branch-protection
1737 enable Branch Target Identification Mechanism and
1738 Return Address Signing by default for AArch64
1739 --disable-standard-branch-protection
1740 disable Branch Target Identification Mechanism and
1741 Return Address Signing by default for AArch64
1744 --enable-fix-cortex-a53-835769
1745 enable workaround for AArch64 Cortex-A53 erratum
1747 --disable-fix-cortex-a53-835769
1748 disable workaround for AArch64 Cortex-A53 erratum
1752 --enable-fix-cortex-a53-843419
1753 enable workaround for AArch64 Cortex-A53 erratum
1755 --disable-fix-cortex-a53-843419
1756 disable workaround for AArch64 Cortex-A53 erratum
1759 --enable-gnu-unique-object
1760 enable the use of the @gnu_unique_object ELF
1761 extension on glibc systems
1762 --enable-linker-build-id
1763 compiler will always pass --build-id to linker
1764 --enable-libssp enable linking against libssp
1765 --enable-default-ssp enable Stack Smashing Protection as default
1766 --enable-maintainer-mode
1767 enable make rules and dependencies not useful (and
1768 sometimes confusing) to the casual installer
1769 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1770 thrashing on the build machine
1771 --enable-version-specific-runtime-libs
1772 specify that runtime libraries should be installed
1773 in a compiler-specific directory
1774 --enable-plugin enable plugin support
1775 --enable-host-shared build host code as shared libraries
1776 --disable-libquadmath-support
1777 disable libquadmath support for Fortran
1778 --enable-default-pie enable Position Independent Executable as default
1779 --enable-cet enable Intel CET in host libraries [default=auto]
1782 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1783 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1784 --with-build-libsubdir=DIR Directory where to find libraries for build system
1785 --with-local-prefix=DIR specifies directory to put local include
1786 --with-native-system-header-dir=dir
1787 use dir as the directory to look for standard
1788 system header files in. Defaults to /usr/include.
1789 --with-build-sysroot=sysroot
1790 use sysroot as the system root during the build
1791 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1792 --with-gxx-include-dir=DIR
1793 specifies directory to put g++ header files
1794 --with-cpp-install-dir=DIR
1795 install the user visible C preprocessor in DIR
1796 (relative to PREFIX) as well as PREFIX/bin
1797 --with-gnu-ld arrange to work with GNU ld
1798 --with-ld arrange to use the specified ld (full pathname)
1799 --with-demangler-in-ld try to use demangler in GNU ld
1800 --with-gnu-as arrange to work with GNU as
1801 --with-as arrange to use the specified as (full pathname)
1802 --with-stabs arrange to use stabs instead of host debug format
1803 --with-stack-clash-protection-guard-size=size
1804 Set the default stack clash protection guard size
1805 for specific targets as a power of two in bytes.
1806 --with-dwarf2 force the default debug format to be DWARF 2
1807 --with-specs=SPECS add SPECS to driver command-line processing
1808 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1809 --with-bugurl=URL Direct users to URL to report a bug
1810 --with-documentation-root-url=URL
1811 Root for documentation URLs
1812 --with-changes-root-url=URL
1813 Root for GCC changes URLs
1814 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1815 --with-multilib-generator
1816 Multi-libs configuration string (RISC-V only)
1817 --with-zstd=PATH specify prefix directory for installed zstd library.
1818 Equivalent to --with-zstd-include=PATH/include plus
1819 --with-zstd-lib=PATH/lib
1820 --with-zstd-include=PATH
1821 specify directory for installed zstd include files
1822 --with-zstd-lib=PATH specify directory for the installed zstd library
1823 --with-gnu-ld assume the C compiler uses GNU ld default=no
1824 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1825 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1826 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1827 --with-gcc-major-version-only
1828 use only GCC major number
in filesystem paths
1829 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1831 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1832 --with-plugin-ld=[ARG
] specify the plugin linker
1833 --with-glibc-version=M.N
1834 assume GCC used with glibc version M.N or later
1835 --with-long-double-128 use
128-bit long double by default
1836 --with-long-double-format={ieee
,ibm
}
1837 Specify whether PowerPC long double uses IEEE or IBM format
1839 --with-gc={page
,zone
} this option is not supported anymore. It used to
1840 choose the garbage collection mechanism to use with
1842 --with-system-zlib use installed libz
1843 --with-linker-hash-style={sysv
,gnu
,both
}
1844 specify the linker
hash style
1845 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1846 specify the default of
-fdiagnostics-color option
1847 auto-if-env stands
for -fdiagnostics-color=auto
if
1848 GCC_COLOR environment variable is present and
1849 -fdiagnostics-color=never otherwise
1850 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1851 specify the default of
-fdiagnostics-urls option
1852 auto-if-env stands
for -fdiagnostics-urls=auto
if
1853 GCC_URLS or TERM_URLS environment variable is
1854 present and
-fdiagnostics-urls=never otherwise
1856 Some influential environment variables
:
1857 CC C compiler
command
1858 CFLAGS C compiler flags
1859 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1860 nonstandard directory
<lib dir
>
1861 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1862 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1863 you have headers
in a nonstandard directory
<include dir
>
1864 CXX C
++ compiler
command
1865 CXXFLAGS C
++ compiler flags
1866 CXXCPP C
++ preprocessor
1868 GMPLIBS How to link GMP
1869 GMPINC How to
find GMP include files
1870 ISLLIBS How to link isl
1871 ISLINC How to
find isl include files
1873 Use these variables to override the choices made by
`configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1876 Report bugs to the package provider.
1881 if test "$ac_init_help" = "recursive"; then
1882 # If there are subdirs, report their specific --help.
1883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884 test -d "$ac_dir" ||
1885 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1892 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1893 # A ".." for each directory in $ac_dir_suffix.
1894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1895 case $ac_top_builddir_sub in
1896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1906 .) # We are building in place.
1908 ac_top_srcdir=$ac_top_builddir_sub
1909 ac_abs_top_srcdir=$ac_pwd ;;
1910 [\\/]* | ?:[\\/]* ) # Absolute name.
1911 ac_srcdir=$srcdir$ac_dir_suffix;
1912 ac_top_srcdir=$srcdir
1913 ac_abs_top_srcdir=$srcdir ;;
1915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916 ac_top_srcdir=$ac_top_build_prefix$srcdir
1917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1921 cd "$ac_dir" || { ac_status=$?; continue; }
1922 # Check for guested configure.
1923 if test -f "$ac_srcdir/configure.gnu"; then
1925 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926 elif test -f "$ac_srcdir/configure"; then
1928 $SHELL "$ac_srcdir/configure" --help=recursive
1930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1932 cd "$ac_pwd" || { ac_status=$?; break; }
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1940 generated by GNU Autoconf 2.69
1942 Copyright (C) 2012 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1963 *) ac_try_echo
=$ac_try;;
1965 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1969 if test -s conftest.err
; then
1970 grep -v '^ *+' conftest.err
>conftest.er1
1971 cat conftest.er1
>&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.
$ac_objext; then :
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.
$ac_ext >&5
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status
$ac_retval
1989 } # ac_fn_c_try_compile
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile
()
1996 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1997 rm -f conftest.
$ac_objext
1998 if { { ac_try
="$ac_compile"
2000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_cxx_try_compile
2029 # ac_fn_cxx_try_cpp LINENO
2030 # ------------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_cpp ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_cpp conftest.$ac_ext"
2037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2038 *) ac_try_echo
=$ac_try;;
2040 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2044 if test -s conftest.err
; then
2045 grep -v '^ *+' conftest.err
>conftest.er1
2046 cat conftest.er1
>&5
2047 mv -f conftest.er1 conftest.err
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } > conftest.i
&& {
2051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2052 test ! -s conftest.err
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.
$ac_ext >&5
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status
$ac_retval
2064 } # ac_fn_cxx_try_cpp
2066 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2067 # ---------------------------------------------------------
2068 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069 # the include files in INCLUDES and setting the cache variable VAR
2071 ac_fn_cxx_check_header_mongrel
()
2073 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2074 if eval \
${$3+:} false
; then :
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval \
${$3+:} false
; then :
2078 $as_echo_n "(cached) " >&6
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2084 # Is the header compilable?
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086 $as_echo_n "checking $2 usability... " >&6; }
2087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2092 if ac_fn_cxx_try_compile
"$LINENO"; then :
2093 ac_header_compiler
=yes
2095 ac_header_compiler
=no
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099 $as_echo "$ac_header_compiler" >&6; }
2101 # Is the header present?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103 $as_echo_n "checking $2 presence... " >&6; }
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2108 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2109 ac_header_preproc
=yes
2111 ac_header_preproc
=no
2113 rm -f conftest.err conftest.i conftest.
$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115 $as_echo "$ac_header_preproc" >&6; }
2117 # So? What about this header?
2118 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \
${$3+:} false
; then :
2141 $as_echo_n "(cached) " >&6
2143 eval "$3=\$ac_header_compiler"
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_cxx_check_header_mongrel
2153 # ac_fn_cxx_try_run LINENO
2154 # ------------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_cxx_try_run
()
2159 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2160 if { { ac_try
="$ac_link"
2162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2173 *) ac_try_echo
=$ac_try;;
2175 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.
$ac_ext >&5
2187 ac_retval
=$ac_status
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status
$ac_retval
2193 } # ac_fn_cxx_try_run
2195 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2196 # ---------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_cxx_check_header_compile
()
2201 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \
${$3+:} false
; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2212 if ac_fn_cxx_try_compile
"$LINENO"; then :
2217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_cxx_check_header_compile
2226 # ac_fn_c_try_cpp LINENO
2227 # ----------------------
2228 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2231 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2232 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2241 if test -s conftest.err; then
2242 grep -v '^ *+' conftest.err >conftest.er1
2243 cat conftest.er1 >&5
2244 mv -f conftest.er1 conftest.err
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; } > conftest.i && {
2248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2249 test ! -s conftest.err
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2263 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2264 # ----------------------------------------------
2265 # Tries to find the compile-time value of EXPR in a program that includes
2266 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2268 ac_fn_cxx_compute_int ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 if test "$cross_compiling" = yes; then
2272 # Depending upon the size, compute the lo and hi bounds.
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 static int test_array [1 - 2 * !(($2) >= 0)];
2281 return test_array [0];
2287 if ac_fn_cxx_try_compile "$LINENO"; then :
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2298 return test_array [0];
2304 if ac_fn_cxx_try_compile "$LINENO"; then :
2305 ac_hi=$ac_mid; break
2307 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2308 if test $ac_lo -le $ac_mid; then
2312 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2323 static int test_array [1 - 2 * !(($2) < 0)];
2325 return test_array [0];
2331 if ac_fn_cxx_try_compile "$LINENO"; then :
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2340 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2342 return test_array [0];
2348 if ac_fn_cxx_try_compile "$LINENO"; then :
2349 ac_lo=$ac_mid; break
2351 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2352 if test $ac_mid -le $ac_hi; then
2356 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 # Binary search between lo and hi bounds.
2367 while test "x$ac_lo" != "x$ac_hi"; do
2368 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2377 return test_array [0];
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2386 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2398 static long int longval () { return $2; }
2399 static unsigned long int ulongval () { return $2; }
2406 FILE *f = fopen ("conftest.val", "w");
2411 long int i = longval ();
2414 fprintf (f, "%ld", i);
2418 unsigned long int i = ulongval ();
2421 fprintf (f, "%lu", i);
2423 /* Do not output a trailing newline, as this causes \r\n confusion
2424 on some platforms. */
2425 return ferror (f) || fclose (f) != 0;
2431 if ac_fn_cxx_try_run "$LINENO"; then :
2432 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2437 conftest.$ac_objext conftest.beam conftest.$ac_ext
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 as_fn_set_status $ac_retval
2444 } # ac_fn_cxx_compute_int
2446 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2447 # ---------------------------------------------
2448 # Tests whether TYPE exists after having included INCLUDES, setting cache
2449 # variable VAR accordingly.
2450 ac_fn_cxx_check_type ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2471 if ac_fn_cxx_try_compile "$LINENO"; then :
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2484 if ac_fn_cxx_try_compile "$LINENO"; then :
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498 } # ac_fn_cxx_check_type
2500 # ac_fn_c_find_intX_t LINENO BITS VAR
2501 # -----------------------------------
2502 # Finds a signed integer type with width BITS, setting cache variable VAR
2504 ac_fn_c_find_intX_t ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2508 $as_echo_n "checking for int$2_t... " >&6; }
2509 if eval \${$3+:} false; then :
2510 $as_echo_n "(cached) " >&6
2513 # Order is important - never check a type that is potentially smaller
2514 # than half of the expected target width.
2515 for ac_type in int$2_t 'int' 'long int' \
2516 'long long int' 'short int' 'signed char'; do
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $ac_includes_default
2520 enum { N = $2 / 2 - 1 };
2524 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2526 return test_array [0];
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2540 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2541 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2543 return test_array [0];
2549 if ac_fn_cxx_try_compile "$LINENO"; then :
2556 eval "$3=\$ac_type" ;;
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 if eval test \"x\$"$3"\" = x"no"; then :
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2574 } # ac_fn_c_find_intX_t
2576 # ac_fn_cxx_try_link LINENO
2577 # -------------------------
2578 # Try to link conftest.$ac_ext, and return whether this succeeded.
2579 ac_fn_cxx_try_link ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2586 *) ac_try_echo
=$ac_try;;
2588 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589 $as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2592 if test -s conftest.err
; then
2593 grep -v '^ *+' conftest.err
>conftest.er1
2594 cat conftest.er1
>&5
2595 mv -f conftest.er1 conftest.err
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_cxx_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest
$ac_exeext && {
2602 test "$cross_compiling" = yes ||
2603 test -x conftest
$ac_exeext
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.
$ac_ext >&5
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 as_fn_set_status
$ac_retval
2620 } # ac_fn_cxx_try_link
2622 # ac_fn_c_find_uintX_t LINENO BITS VAR
2623 # ------------------------------------
2624 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2626 ac_fn_c_find_uintX_t
()
2628 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2630 $as_echo_n "checking for uint$2_t... " >&6; }
2631 if eval \
${$3+:} false
; then :
2632 $as_echo_n "(cached) " >&6
2635 # Order is important - never check a type that is potentially smaller
2636 # than half of the expected target width.
2637 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2638 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $ac_includes_default
2645 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2647 return test_array [0];
2653 if ac_fn_cxx_try_compile
"$LINENO"; then :
2658 eval "$3=\$ac_type" ;;
2661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2662 if eval test \"x\$
"$3"\" = x
"no"; then :
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671 $as_echo "$ac_res" >&6; }
2672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674 } # ac_fn_c_find_uintX_t
2676 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2677 # ------------------------------------------------
2678 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2679 ac_fn_cxx_check_header_preproc
()
2681 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \
${$3+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2691 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2696 rm -f conftest.err conftest.i conftest.
$ac_ext
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700 $as_echo "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2703 } # ac_fn_cxx_check_header_preproc
2705 # ac_fn_cxx_check_func LINENO FUNC VAR
2706 # ------------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_cxx_check_func
()
2710 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \
${$3+:} false
; then :
2714 $as_echo_n "(cached) " >&6
2716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2720 #define $2 innocuous_$2
2722 /* System header to define __stub macros and hopefully few prototypes,
2723 which can conflict with char $2 (); below.
2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 <limits.h> exists even on freestanding compilers. */
2728 # include <limits.h>
2730 # include <assert.h>
2735 /* Override any GCC internal prototype to avoid an error.
2736 Use char because int might match the return type of a GCC
2737 builtin and then its argument prototype would still apply. */
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined __stub_$2 || defined __stub___$2
2757 if ac_fn_cxx_try_link
"$LINENO"; then :
2762 rm -f core conftest.err conftest.
$ac_objext \
2763 conftest
$ac_exeext conftest.
$ac_ext
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2770 } # ac_fn_cxx_check_func
2772 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2773 # -----------------------------------------------
2774 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2776 ac_fn_cxx_check_decl
()
2778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2779 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2780 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2782 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2783 if eval \
${$3+:} false
; then :
2784 $as_echo_n "(cached) " >&6
2786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2792 #ifndef $as_decl_name
2794 (void) $as_decl_use;
2796 (void) $as_decl_name;
2804 if ac_fn_cxx_try_compile
"$LINENO"; then :
2809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816 } # ac_fn_cxx_check_decl
2818 # ac_fn_c_try_link LINENO
2819 # -----------------------
2820 # Try to link conftest.$ac_ext, and return whether this succeeded.
2823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2824 rm -f conftest.
$ac_objext conftest
$ac_exeext
2825 if { { ac_try
="$ac_link"
2827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link") 2>conftest.err
2834 if test -s conftest.err; then
2835 grep -v '^ *+' conftest.err >conftest.er1
2836 cat conftest.er1 >&5
2837 mv -f conftest.er1 conftest.err
2839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840 test $ac_status = 0; } && {
2841 test -z "$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest$ac_exeext && {
2844 test "$cross_compiling" = yes ||
2845 test -x conftest$ac_exeext
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2856 # interfere with the next link command; also delete a directory that is
2857 # left behind by Apple's compiler. We do this before executing the actions.
2858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2860 as_fn_set_status $ac_retval
2862 } # ac_fn_c_try_link
2864 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2865 # ----------------------------------------------
2866 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2867 ac_fn_c_check_header_preproc ()
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if eval \${$3+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2879 if ac_fn_c_try_cpp "$LINENO"; then :
2884 rm -f conftest.err conftest.i conftest.$ac_ext
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2891 } # ac_fn_c_check_header_preproc
2893 # ac_fn_c_check_func LINENO FUNC VAR
2894 # ----------------------------------
2895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2896 ac_fn_c_check_func ()
2898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 $as_echo_n "checking for $2... " >&6; }
2901 if eval \${$3+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2908 #define $2 innocuous_$2
2910 /* System header to define __stub macros and hopefully few prototypes,
2911 which can conflict with char $2 (); below.
2912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913 <limits.h> exists even on freestanding compilers. */
2916 # include <limits.h>
2918 # include <assert.h>
2923 /* Override any GCC internal prototype to avoid an error.
2924 Use char because int might match the return type of a GCC
2925 builtin and then its argument prototype would still apply. */
2930 /* The GNU C library defines this for functions which it implements
2931 to always fail with ENOSYS. Some functions are actually named
2932 something starting with __ and the normal name is an alias. */
2933 #if defined __stub_$2 || defined __stub___$2
2945 if ac_fn_c_try_link "$LINENO"; then :
2950 rm -f core conftest.err conftest.$ac_objext \
2951 conftest$ac_exeext conftest.$ac_ext
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955 $as_echo "$ac_res" >&6; }
2956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2958 } # ac_fn_c_check_func
2959 cat >config.log <<_ACEOF
2960 This file contains any messages produced by compilers while
2961 running configure, to aid debugging if configure makes a mistake.
2963 It was created by $as_me, which was
2964 generated by GNU Autoconf 2.69. Invocation command line was
2976 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2977 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2978 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2979 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2980 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2982 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2983 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2985 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2986 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2987 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2988 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2989 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2990 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2991 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 $as_echo "PATH: $as_dir"
3016 # Keep a trace of the command line.
3017 # Strip out --no-create and --no-recursion so they do not pile up.
3018 # Strip out --silent because we don't want to record it for future runs.
3019 # Also quote any args containing shell meta-characters.
3020 # Make two passes to allow for proper duplicate-argument suppression.
3024 ac_must_keep_next=false
3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3032 | -silent | --silent | --silen | --sile | --sil)
3035 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3040 as_fn_append ac_configure_args1 " '$ac_arg'"
3041 if test $ac_must_keep_next = true; then
3042 ac_must_keep_next=false # Got value, back to normal.
3045 *=* | --config-cache | -C | -disable-* | --disable-* \
3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3048 | -with-* | --with-* | -without-* | --without-* | --x)
3049 case "$ac_configure_args0 " in
3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3053 -* ) ac_must_keep_next=true ;;
3056 as_fn_append ac_configure_args " '$ac_arg'"
3061 { ac_configure_args0=; unset ac_configure_args0;}
3062 { ac_configure_args1=; unset ac_configure_args1;}
3064 # When interrupted or exit'd, cleanup temporary files, and complete
3065 # config.log. We remove comments because anyway the quotes in there
3066 # would cause problems or look ugly.
3067 # WARNING: Use '\'' to represent an apostrophe within the trap.
3068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3069 trap 'exit_status=$?
3070 # Save into config.log some information that might help in debugging.
3074 $as_echo "## ---------------- ##
3075 ## Cache variables. ##
3076 ## ---------------- ##"
3078 # The following way of writing the cache mishandles newlines in values,
3080 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3081 eval ac_val=\$$ac_var
3085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3089 _ | IFS | as_nl) ;; #(
3090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3091 *) { eval $ac_var=; unset $ac_var;} ;;
3096 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3097 *${as_nl}ac_space=\ *)
3099 "s/'\''/'\''\\\\'\'''\''/g;
3100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3110 $as_echo "## ----------------- ##
3111 ## Output variables. ##
3112 ## ----------------- ##"
3114 for ac_var in $ac_subst_vars
3116 eval ac_val=\$$ac_var
3118 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3120 $as_echo "$ac_var='\''$ac_val'\''"
3124 if test -n "$ac_subst_files"; then
3125 $as_echo "## ------------------- ##
3126 ## File substitutions. ##
3127 ## ------------------- ##"
3129 for ac_var in $ac_subst_files
3131 eval ac_val=\$$ac_var
3133 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135 $as_echo "$ac_var='\''$ac_val'\''"
3140 if test -s confdefs.h; then
3141 $as_echo "## ----------- ##
3148 test "$ac_signal" != 0 &&
3149 $as_echo "$as_me: caught signal $ac_signal"
3150 $as_echo "$as_me: exit $exit_status"
3152 rm -f core *.core core.conftest.* &&
3153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3156 for ac_signal in 1 2 13 15; do
3157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3162 rm -f -r conftest* confdefs.h
3164 $as_echo "/* confdefs.h */" > confdefs.h
3166 # Predefined preprocessor variables.
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_NAME "$PACKAGE_NAME"
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE_STRING "$PACKAGE_STRING"
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_URL "$PACKAGE_URL"
3193 # Let the site file select an alternate cache file if it wants to.
3194 # Prefer an explicitly selected file to automatically selected ones.
3197 if test -n "$CONFIG_SITE"; then
3198 # We do not want a PATH search for config.site.
3199 case $CONFIG_SITE in #((
3200 -*) ac_site_file1=./$CONFIG_SITE;;
3201 */*) ac_site_file1=$CONFIG_SITE;;
3202 *) ac_site_file1=./$CONFIG_SITE;;
3204 elif test "x$prefix" != xNONE; then
3205 ac_site_file1=$prefix/share/config.site
3206 ac_site_file2=$prefix/etc/config.site
3208 ac_site_file1=$ac_default_prefix/share/config.site
3209 ac_site_file2=$ac_default_prefix/etc/config.site
3211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3213 test "x$ac_site_file" = xNONE && continue
3214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3217 sed 's/^/| /' "$ac_site_file" >&5
3219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "failed to load site
script $ac_site_file
3222 See \
`config.log' for more details" "$LINENO" 5; }
3226 if test -r "$cache_file"; then
3227 # Some versions of bash will fail to source /dev/null (special files
3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3231 $as_echo "$as_me: loading cache $cache_file" >&6;}
3233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3234 *) . "./$cache_file";;
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3239 $as_echo "$as_me: creating cache $cache_file" >&6;}
3243 # Check that the precious variables saved in the cache have kept the same
3245 ac_cache_corrupted=false
3246 for ac_var in $ac_precious_vars; do
3247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3248 eval ac_new_set=\$ac_env_${ac_var}_set
3249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3250 eval ac_new_val=\$ac_env_${ac_var}_value
3251 case $ac_old_set,$ac_new_set in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3254 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3258 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3259 ac_cache_corrupted=: ;;
3262 if test "x$ac_old_val" != "x$ac_new_val"; then
3263 # differences in whitespace do not lead to failure.
3264 ac_old_val_w=`echo x
$ac_old_val`
3265 ac_new_val_w=`echo x
$ac_new_val`
3266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3269 ac_cache_corrupted=:
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3273 eval $ac_var=\$ac_old_val
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3276 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3281 # Pass precious variables to config.status.
3282 if test "$ac_new_set" = set; then
3284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3285 *) ac_arg=$ac_var=$ac_new_val ;;
3287 case " $ac_configure_args " in
3288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3293 if $ac_cache_corrupted; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3298 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3300 ## -------------------- ##
3301 ## Main body of script. ##
3302 ## -------------------- ##
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3318 gcc_version=`cat $srcdir/BASE-VER
`
3320 # Determine the host, build, and target systems
3322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3323 if test -f "$ac_dir/install-sh"; then
3325 ac_install_sh="$ac_aux_dir/install-sh -c"
3327 elif test -f "$ac_dir/install.sh"; then
3329 ac_install_sh="$ac_aux_dir/install.sh -c"
3331 elif test -f "$ac_dir/shtool"; then
3333 ac_install_sh="$ac_aux_dir/shtool install -c"
3337 if test -z "$ac_aux_dir"; then
3338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3341 # These three variables are undocumented and unsupported,
3342 # and are intended to be withdrawn in a future Autoconf release.
3343 # They can cause serious problems if a builder's source tree is in a directory
3344 # whose full name contains unusual characters.
3345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3350 # Make sure we can run config.sub.
3351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3355 $as_echo_n "checking build system type... " >&6; }
3356 if ${ac_cv_build+:} false; then :
3357 $as_echo_n "(cached) " >&6
3359 ac_build_alias=$build_alias
3360 test "x$ac_build_alias" = x &&
3361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3362 test "x$ac_build_alias" = x &&
3363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3369 $as_echo "$ac_cv_build" >&6; }
3370 case $ac_cv_build in
3372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3375 ac_save_IFS=$IFS; IFS='-'
3381 # Remember, the first character of IFS is used to create $*,
3382 # except with old shells:
3385 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3389 $as_echo_n "checking host system type... " >&6; }
3390 if ${ac_cv_host+:} false; then :
3391 $as_echo_n "(cached) " >&6
3393 if test "x$host_alias" = x; then
3394 ac_cv_host=$ac_cv_build
3396 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3402 $as_echo "$ac_cv_host" >&6; }
3405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3408 ac_save_IFS=$IFS; IFS='-'
3414 # Remember, the first character of IFS is used to create $*,
3415 # except with old shells:
3418 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3422 $as_echo_n "checking target system type... " >&6; }
3423 if ${ac_cv_target+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test "x$target_alias" = x; then
3427 ac_cv_target=$ac_cv_host
3429 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3435 $as_echo "$ac_cv_target" >&6; }
3436 case $ac_cv_target in
3438 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3440 target=$ac_cv_target
3441 ac_save_IFS=$IFS; IFS='-'
3447 # Remember, the first character of IFS is used to create $*,
3448 # except with old shells:
3451 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3454 # The aliases save the names the user supplied, while $host etc.
3455 # will get canonicalized.
3456 test -n "$target_alias" &&
3457 test "$program_prefix$program_suffix$program_transform_name" = \
3459 program_prefix=${target_alias}-
3461 # Determine the noncanonical host name, for Ada.
3462 case ${build_alias} in
3463 "") build_noncanonical=${build} ;;
3464 *) build_noncanonical=${build_alias} ;;
3467 case ${host_alias} in
3468 "") host_noncanonical=${build_noncanonical} ;;
3469 *) host_noncanonical=${host_alias} ;;
3475 # Determine the noncanonical target name, for directory use.
3476 case ${target_alias} in
3477 "") target_noncanonical=${host_noncanonical} ;;
3478 *) target_noncanonical=${target_alias} ;;
3484 # Used for constructing correct paths for offload compilers.
3485 real_target_noncanonical=${target_noncanonical}
3488 # Determine the target- and build-specific subdirectories
3490 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3491 # have matching libraries, they should use host libraries: Makefile.tpl
3492 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3493 # However, they still use the build modules, because the corresponding
3494 # host modules (e.g. bison) are only built for the host when bootstrap
3496 # - build_subdir is where we find build modules, and never changes.
3497 # - build_libsubdir is where we find build libraries, and can be overridden.
3499 # Prefix 'build-' so this never conflicts with target_subdir.
3500 build_subdir="build-${build_noncanonical}"
3502 # Check whether --with-build-libsubdir was given.
3503 if test "${with_build_libsubdir+set}" = set; then :
3504 withval=$with_build_libsubdir; build_libsubdir="$withval"
3506 build_libsubdir="$build_subdir"
3509 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3510 if ( test $srcdir = . && test -d gcc ) \
3511 || test -d $srcdir/../host-${host_noncanonical}; then
3512 host_subdir="host-${host_noncanonical}"
3517 target_subdir=${target_noncanonical}
3520 # Set program_transform_name
3521 test "$program_prefix" != NONE &&
3522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3523 # Use a double $ so make ignores it.
3524 test "$program_suffix" != NONE &&
3525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3526 # Double any \ or $.
3527 # By default was `s
,x
,x
', remove it if useless.
3528 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3532 # Check for bogus environment variables.
3533 # Test if LIBRARY_PATH contains the notation for the current directory
3534 # since this would lead to problems installing/building glibc.
3535 # LIBRARY_PATH contains the current directory if one of the following
3537 # - one of the terminals (":" and ";") is the first or last sign
3538 # - two terminals occur directly after each other
3539 # - the path contains an element with a dot in it
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3541 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3542 case ${LIBRARY_PATH} in
3543 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3544 library_path_setting="contains current directory"
3547 library_path_setting="ok"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3551 $as_echo "$library_path_setting" >&6; }
3552 if test "$library_path_setting" != "ok"; then
3554 *** LIBRARY_PATH shouldn't contain the current directory when
3555 *** building gcc. Please change the environment variable
3556 *** and run configure again.
" "$LINENO" 5
3559 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # GCC_EXEC_PREFIX contains the current directory if one of the following
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3567 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3568 case ${GCC_EXEC_PREFIX} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 gcc_exec_prefix_setting="contains current directory
"
3573 gcc_exec_prefix_setting="ok
"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3577 $as_echo "$gcc_exec_prefix_setting" >&6; }
3578 if test "$gcc_exec_prefix_setting" != "ok
"; then
3580 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again." "$LINENO" 5
3589 # Specify the local prefix
3592 # Check whether --with-local-prefix was given.
3593 if test "${with_local_prefix+set}" = set; then :
3594 withval=$with_local_prefix; case "${withval}" in
3595 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3597 *) local_prefix=$with_local_prefix ;;
3602 # Default local prefix if it is empty
3603 if test x$local_prefix = x; then
3604 local_prefix=/usr/local
3608 # Check whether --with-native-system-header-dir was given.
3609 if test "${with_native_system_header_dir+set}" = set; then :
3610 withval=$with_native_system_header_dir;
3611 case ${with_native_system_header_dir} in
3612 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3613 /* | [A-Za-z]:[\\/]*) ;;
3614 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3616 configured_native_system_header_dir="${withval}"
3619 configured_native_system_header_dir=
3624 # Check whether --with-build-sysroot was given.
3625 if test "${with_build_sysroot+set}" = set; then :
3626 withval=$with_build_sysroot; if test x"$withval" != x ; then
3627 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3630 SYSROOT_CFLAGS_FOR_TARGET=
3635 if test "x$prefix" = xNONE; then
3636 test_prefix=/usr/local
3640 if test "x$exec_prefix" = xNONE; then
3641 test_exec_prefix=$test_prefix
3643 test_exec_prefix=$exec_prefix
3647 # Check whether --with-sysroot was given.
3648 if test "${with_sysroot+set}" = set; then :
3649 withval=$with_sysroot;
3650 case ${with_sysroot} in
3652 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3654 case ${with_sysroot} in
3655 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3656 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3659 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3660 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3662 case ${TARGET_SYSTEM_ROOT} in
3663 "${test_prefix}"|"${test_prefix}/"*|\
3664 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3665 '${prefix}'|'${prefix}/'*|\
3666 '${exec_prefix}'|'${exec_prefix}/'*)
3667 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3668 TARGET_SYSTEM_ROOT_DEFINE="$t"
3675 TARGET_SYSTEM_ROOT_DEFINE=
3676 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3684 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3685 # passed in by the toplevel make and thus we'd get different behavior
3686 # depending on where we built the sources.
3687 gcc_gxx_include_dir
=
3688 # Specify the g++ header file directory
3690 # Check whether --with-gxx-include-dir was given.
3691 if test "${with_gxx_include_dir+set}" = set; then :
3692 withval
=$with_gxx_include_dir; case "${withval}" in
3693 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3695 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3700 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3701 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3702 # relative to the sysroot.
3703 gcc_gxx_include_dir_add_sysroot
=0
3705 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3706 if test x
${gcc_gxx_include_dir} = x
; then
3707 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3708 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3710 libstdcxx_incdir
='include/c++/$(version)'
3711 if test x
$host != x
$target; then
3712 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3714 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3716 elif test "${with_sysroot+set}" = set; then
3717 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3718 if test "${gcc_gxx_without_sysroot}"; then
3719 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3720 gcc_gxx_include_dir_add_sysroot
=1
3725 # Check whether --with-cpp_install_dir was given.
3726 if test "${with_cpp_install_dir+set}" = set; then :
3727 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3728 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3729 elif test x
$withval != xno
; then
3730 cpp_install_dir
=$withval
3735 # We would like to our source tree to be readonly. However when releases or
3736 # pre-releases are generated, the flex/bison generated files as well as the
3737 # various formats of manuals need to be included along with the rest of the
3738 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3742 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3743 # Check whether --enable-generated-files-in-srcdir was given.
3744 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3745 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3747 generated_files_in_srcdir
=no
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3752 $as_echo "$generated_files_in_srcdir" >&6; }
3754 if test "$generated_files_in_srcdir" = "yes"; then
3761 # -------------------
3762 # Find default linker
3763 # -------------------
3767 # Check whether --with-gnu-ld was given.
3768 if test "${with_gnu_ld+set}" = set; then :
3769 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3776 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3780 # With pre-defined ld
3782 # Check whether --with-ld was given.
3783 if test "${with_ld+set}" = set; then :
3784 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3787 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3788 if test ! -x "$DEFAULT_LINKER"; then
3789 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3790 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3792 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3796 cat >>confdefs.h
<<_ACEOF
3797 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3803 $as_echo_n "checking whether a default linker was specified... " >&6; }
3804 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3805 if test x
"$gnu_ld_flag" = x
"no"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3807 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3810 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3817 # With demangler in GNU ld
3819 # Check whether --with-demangler-in-ld was given.
3820 if test "${with_demangler_in_ld+set}" = set; then :
3821 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3827 # ----------------------
3828 # Find default assembler
3829 # ----------------------
3833 # Check whether --with-gnu-as was given.
3834 if test "${with_gnu_as+set}" = set; then :
3835 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3842 # Check whether --with-as was given.
3843 if test "${with_as+set}" = set; then :
3844 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3847 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3848 if test ! -x "$DEFAULT_ASSEMBLER"; then
3849 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3850 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3854 cat >>confdefs.h
<<_ACEOF
3855 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3861 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3862 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3863 if test x
"$gas_flag" = x
"no"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3865 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3868 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3879 # If a non-executable a.out is present (e.g. created by GNU as above even if
3880 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3881 # file, even when creating an executable, so an execution test fails.
3882 # Remove possible default executable files to avoid this.
3884 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3885 # Autoconf includes it.
3886 rm -f a.out a.exe b.out
3888 # Find the native compiler
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3894 if test -n "$ac_tool_prefix"; then
3895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3896 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false
; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC
="$CC" # Let the user override the test.
3905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir
=.
3910 for ac_exec_ext
in '' $ac_executable_extensions; do
3911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3933 if test -z "$ac_cv_prog_CC"; then
3935 # Extract the first word of "gcc", so it can be a program name with args.
3936 set dummy gcc
; ac_word
=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$ac_ct_CC"; then
3943 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_ac_ct_CC
="gcc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3963 if test -n "$ac_ct_CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3965 $as_echo "$ac_ct_CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3971 if test "x$ac_ct_CC" = x
; then
3974 case $cross_compiling:$ac_tool_warned in
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978 ac_tool_warned
=yes ;;
3986 if test -z "$CC"; then
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3989 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_CC+:} false
; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC
="$CC" # Let the user override the test.
3998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir
=.
4003 for ac_exec_ext
in '' $ac_executable_extensions; do
4004 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4027 if test -z "$CC"; then
4028 # Extract the first word of "cc", so it can be a program name with args.
4029 set dummy cc
; ac_word
=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_CC+:} false
; then :
4033 $as_echo_n "(cached) " >&6
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC
="$CC" # Let the user override the test.
4039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir
=.
4044 for ac_exec_ext
in '' $ac_executable_extensions; do
4045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4047 ac_prog_rejected
=yes
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test $ac_prog_rejected = yes; then
4059 # We found a bogon in the path, so make sure we never use it.
4060 set dummy
$ac_cv_prog_CC
4062 if test $# != 0; then
4063 # We chose a different compiler from the bogus one.
4064 # However, it has the same basename, so the bogon will be chosen
4065 # first if we set CC to just the basename; use the full file name.
4067 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog
in cl.exe
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CC+:} false
; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC
="$CC" # Let the user override the test.
4097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir
=.
4102 for ac_exec_ext
in '' $ac_executable_extensions; do
4103 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 $as_echo "$CC" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$CC" && break
4127 if test -z "$CC"; then
4129 for ac_prog
in cl.exe
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy
$ac_prog; ac_word
=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$ac_ct_CC"; then
4139 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir
=.
4146 for ac_exec_ext
in '' $ac_executable_extensions; do
4147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CC
="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161 $as_echo "$ac_ct_CC" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$ac_ct_CC" && break
4171 if test "x$ac_ct_CC" = x
; then
4174 case $cross_compiling:$ac_tool_warned in
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned
=yes ;;
4187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error $?
"no acceptable C compiler found in \$PATH
4190 See \`config.log' for more details" "$LINENO" 5; }
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4196 for ac_option
in --version -v -V -qversion; do
4197 { { ac_try
="$ac_compiler $ac_option >&5"
4199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4206 if test -s conftest.err; then
4208 ... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
4212 rm -f conftest.er1 conftest.err
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4228 ac_clean_files_save=$ac_clean_files
4229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4230 # Try to create an executable without -o first, disregard a.out.
4231 # It will help us diagnose broken compilers, and finding out an intuition
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4234 $as_echo_n "checking whether the C compiler works... " >&6; }
4235 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4237 # The possible output files:
4238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4241 for ac_file in $ac_files
4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4250 if { { ac_try="$ac_link_default"
4252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4253 *) ac_try_echo
=$ac_try;;
4255 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_link_default") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }; then :
4261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4264 # so that the user can short-circuit this test for compilers unknown to
4266 for ac_file
in $ac_files ''
4268 test -f "$ac_file" ||
continue
4270 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4273 # We found the default executable, but exeext='' is most
4277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4279 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4281 # We set ac_cv_exeext here because the later test for it is not
4282 # safe: cross compilers may not add the suffix if given an `-o'
4283 # argument, so we may need to know it at that point already.
4284 # Even if this section looks crufty: it has the advantage of
4291 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4296 if test -z "$ac_file"; then :
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.
$ac_ext >&5
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error
77 "C compiler cannot create executables
4305 See \`config.log' for more details" "$LINENO" 5; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308 $as_echo "yes" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 $as_echo_n "checking for C compiler default output file name... " >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4313 $as_echo "$ac_file" >&6; }
4314 ac_exeext
=$ac_cv_exeext
4316 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4317 ac_clean_files
=$ac_clean_files_save
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4319 $as_echo_n "checking for suffix of executables... " >&6; }
4320 if { { ac_try
="$ac_link"
4322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link") 2>&5
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4332 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4333 # work properly (i.e., refer to `conftest.exe'), while it won't with
4335 for ac_file
in conftest.exe conftest conftest.
*; do
4336 test -f "$ac_file" ||
continue
4338 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4339 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4348 See \`config.log' for more details" "$LINENO" 5; }
4350 rm -f conftest conftest
$ac_cv_exeext
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4352 $as_echo "$ac_cv_exeext" >&6; }
4354 rm -f conftest.
$ac_ext
4355 EXEEXT
=$ac_cv_exeext
4357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4363 FILE *f = fopen ("conftest.out", "w");
4364 return ferror (f) || fclose (f) != 0;
4370 ac_clean_files
="$ac_clean_files conftest.out"
4371 # Check that the compiler produces executables we can run. If not, either
4372 # the compiler is broken, or we cross compile.
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4374 $as_echo_n "checking whether we are cross compiling... " >&6; }
4375 if test "$cross_compiling" != yes; then
4376 { { ac_try
="$ac_link"
4378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_link") 2>&5
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }
4387 if { ac_try='./conftest$ac_cv_exeext'
4388 { { case "(($ac_try" in
4389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4390 *) ac_try_echo
=$ac_try;;
4392 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_try") 2>&5
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }; }; then
4400 if test "$cross_compiling" = maybe
; then
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $?
"cannot run C compiled programs.
4406 If you meant to cross compile, use \`--host'.
4407 See \`config.log' for more details" "$LINENO" 5; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4412 $as_echo "$cross_compiling" >&6; }
4414 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4415 ac_clean_files
=$ac_clean_files_save
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4417 $as_echo_n "checking for suffix of object files... " >&6; }
4418 if ${ac_cv_objext+:} false
; then :
4419 $as_echo_n "(cached) " >&6
4421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4432 rm -f conftest.o conftest.obj
4433 if { { ac_try
="$ac_compile"
4435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_compile") 2>&5
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 for ac_file in conftest.o conftest.obj conftest.*; do
4445 test -f "$ac_file" || continue;
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4453 $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4459 See \
`config.log' for more details" "$LINENO" 5; }
4461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4464 $as_echo "$ac_cv_objext" >&6; }
4465 OBJEXT=$ac_cv_objext
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4469 if ${ac_cv_c_compiler_gnu+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4486 if ac_fn_c_try_compile "$LINENO"; then :
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4497 if test $ac_compiler_gnu = yes; then
4502 ac_test_CFLAGS=${CFLAGS+set}
4503 ac_save_CFLAGS=$CFLAGS
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4506 if ${ac_cv_prog_cc_g+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 ac_save_c_werror_flag=$ac_c_werror_flag
4510 ac_c_werror_flag=yes
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4524 if ac_fn_c_try_compile "$LINENO"; then :
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_c_werror_flag=$ac_save_c_werror_flag
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4555 if ac_fn_c_try_compile "$LINENO"; then :
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4566 $as_echo "$ac_cv_prog_cc_g" >&6; }
4567 if test "$ac_test_CFLAGS" = set; then
4568 CFLAGS=$ac_save_CFLAGS
4569 elif test $ac_cv_prog_cc_g = yes; then
4570 if test "$GCC" = yes; then
4576 if test "$GCC" = yes; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4584 if ${ac_cv_prog_cc_c89+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 ac_cv_prog_cc_c89=no
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4595 struct buf { int x; };
4596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4597 static char *e (p, i)
4603 static char *f (char * (*g) (char **, int), char **p, ...)
4608 s = g (p, va_arg (v,int));
4613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4614 function prototypes and stuff, but not '\xHH' hex character constants.
4615 These don't provoke an error unfortunately, instead are silently treated
4616 as 'x'. The following induces an error, until -std is added to get
4617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4618 array size at least. It's necessary to write '\x00'==0 to get something
4619 that's true only with -std. */
4620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4623 inside strings and character constants. */
4625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4627 int test (int i, double x);
4628 struct s1 {int (*f) (int a);};
4629 struct s2 {int (*f) (double a);};
4630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4644 CC="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_c89=$ac_arg
4648 rm -f core conftest.err conftest.$ac_objext
4649 test "x$ac_cv_prog_cc_c89" != "xno" && break
4651 rm -f conftest.$ac_ext
4656 case "x$ac_cv_prog_cc_c89" in
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4659 $as_echo "none needed" >&6; } ;;
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4662 $as_echo "unsupported" >&6; } ;;
4664 CC="$CC $ac_cv_prog_cc_c89"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4668 if test "x$ac_cv_prog_cc_c89" != xno; then :
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679 ac_cpp='$CXXCPP $CPPFLAGS'
4680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683 if test -z "$CXX"; then
4684 if test -n "$CCC"; then
4687 if test -n "$ac_tool_prefix"; then
4688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_CXX+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$CXX"; then
4698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test -n "$CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4720 $as_echo "$CXX" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$CXX" && break
4730 if test -z "$CXX"; then
4732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$ac_ct_CXX"; then
4742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_CXX="$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4762 if test -n "$ac_ct_CXX"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4764 $as_echo "$ac_ct_CXX" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4771 test -n "$ac_ct_CXX" && break
4774 if test "x$ac_ct_CXX" = x; then
4777 case $cross_compiling:$ac_tool_warned in
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4789 # Provide some information about the compiler.
4790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4793 for ac_option in --version -v -V -qversion; do
4794 { { ac_try="$ac_compiler $ac_option >&5"
4796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4797 *) ac_try_echo
=$ac_try;;
4799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4800 $as_echo "$ac_try_echo"; } >&5
4801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4803 if test -s conftest.err
; then
4805 ... rest of stderr output deleted ...
4806 10q' conftest.err
>conftest.er1
4807 cat conftest.er1
>&5
4809 rm -f conftest.er1 conftest.err
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4815 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4816 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4817 $as_echo_n "(cached) " >&6
4819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4833 if ac_fn_cxx_try_compile
"$LINENO"; then :
4838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4843 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4844 if test $ac_compiler_gnu = yes; then
4849 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4850 ac_save_CXXFLAGS
=$CXXFLAGS
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4852 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4853 if ${ac_cv_prog_cxx_g+:} false
; then :
4854 $as_echo_n "(cached) " >&6
4856 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4857 ac_cxx_werror_flag
=yes
4860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4871 if ac_fn_cxx_try_compile
"$LINENO"; then :
4872 ac_cv_prog_cxx_g
=yes
4875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4886 if ac_fn_cxx_try_compile
"$LINENO"; then :
4889 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4902 if ac_fn_cxx_try_compile
"$LINENO"; then :
4903 ac_cv_prog_cxx_g
=yes
4905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4910 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4913 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4914 if test "$ac_test_CXXFLAGS" = set; then
4915 CXXFLAGS
=$ac_save_CXXFLAGS
4916 elif test $ac_cv_prog_cxx_g = yes; then
4917 if test "$GXX" = yes; then
4923 if test "$GXX" = yes; then
4930 ac_cpp
='$CPP $CPPFLAGS'
4931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4938 if test -n "$ac_tool_prefix"; then
4939 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4940 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_GNATBIND+:} false
; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -n "$GNATBIND"; then
4947 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 GNATBIND
=$ac_cv_prog_GNATBIND
4967 if test -n "$GNATBIND"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4969 $as_echo "$GNATBIND" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4977 if test -z "$ac_cv_prog_GNATBIND"; then
4978 ac_ct_GNATBIND
=$GNATBIND
4979 # Extract the first word of "gnatbind", so it can be a program name with args.
4980 set dummy gnatbind
; ac_word
=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$ac_ct_GNATBIND"; then
4987 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir
=.
4994 for ac_exec_ext
in '' $ac_executable_extensions; do
4995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5007 if test -n "$ac_ct_GNATBIND"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5009 $as_echo "$ac_ct_GNATBIND" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5015 if test "x$ac_ct_GNATBIND" = x
; then
5018 case $cross_compiling:$ac_tool_warned in
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5022 ac_tool_warned
=yes ;;
5024 GNATBIND
=$ac_ct_GNATBIND
5027 GNATBIND
="$ac_cv_prog_GNATBIND"
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5032 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$GNATMAKE"; then
5039 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 for ac_exec_ext
in '' $ac_executable_extensions; do
5047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 GNATMAKE
=$ac_cv_prog_GNATMAKE
5059 if test -n "$GNATMAKE"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5061 $as_echo "$GNATMAKE" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5069 if test -z "$ac_cv_prog_GNATMAKE"; then
5070 ac_ct_GNATMAKE
=$GNATMAKE
5071 # Extract the first word of "gnatmake", so it can be a program name with args.
5072 set dummy gnatmake
; ac_word
=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$ac_ct_GNATMAKE"; then
5079 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5099 if test -n "$ac_ct_GNATMAKE"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5101 $as_echo "$ac_ct_GNATMAKE" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5107 if test "x$ac_ct_GNATMAKE" = x
; then
5110 case $cross_compiling:$ac_tool_warned in
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned
=yes ;;
5116 GNATMAKE
=$ac_ct_GNATMAKE
5119 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5123 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5124 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5125 $as_echo_n "(cached) " >&6
5127 cat >conftest.adb
<<EOF
5128 procedure conftest is begin null; end conftest;
5130 acx_cv_cc_gcc_supports_ada
=no
5131 # There is a bug in old released versions of GCC which causes the
5132 # driver to exit successfully when the appropriate language module
5133 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5134 # Therefore we must check for the error message as well as an
5135 # unsuccessful exit.
5136 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5137 # given a .adb file, but produce no object file. So we must check
5138 # if an object file was really produced to guard against this.
5139 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5140 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5141 acx_cv_cc_gcc_supports_ada
=yes
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5146 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5148 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5155 # Do configure tests with the C++ compiler, since that's what we build with.
5157 ac_cpp
='$CXXCPP $CPPFLAGS'
5158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5163 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5164 # optimizations to be activated explicitly by the toplevel.
5166 */prev-gcc
/xgcc
*) ;;
5167 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5168 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5173 # Determine PICFLAG for target gnatlib.
5179 # PIC is the default on some targets or must not be used.
5181 # For darwin, common symbols are not allowed in MH_DYLIB files
5183 # If we are using a compiler supporting mdynamic-no-pic
5184 # and the option has been tested as safe to add, then cancel
5185 # it here, since the code generated is incompatible with shared
5187 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5188 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5192 # PIC is the default.
5195 # PIC is the default for 64-bit PA HP-UX.
5197 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5199 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5201 i
[34567]86-*-interix[3-9]*)
5202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5203 # Instead, we relocate shared libraries at runtime.
5205 i
[34567]86-*-nto-qnx*)
5206 # QNX uses GNU C++, but need to define -shared option too, otherwise
5208 PICFLAG_FOR_TARGET
='-fPIC -shared'
5210 i
[34567]86-pc-msdosdjgpp*)
5211 # DJGPP does not support shared libraries at all.
5214 # On IA64 HP-UX, PIC is the default but the pic flag
5215 # sets the default TLS model and affects inlining.
5216 PICFLAG_FOR_TARGET
=-fPIC
5219 # PIC is the default.
5221 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5222 # All AIX code is PIC.
5225 # Some targets support both -fPIC and -fpic, but prefer the latter.
5227 i
[34567]86-*-* | x86_64-
*-*)
5228 PICFLAG_FOR_TARGET
=-fpic
5230 # FIXME: Override -fPIC default in libgcc only?
5231 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5232 PICFLAG_FOR_TARGET
=-fpic
5234 # FIXME: Simplify to sh*-*-netbsd*?
5235 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5236 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5237 PICFLAG_FOR_TARGET
=-fpic
5239 # Default to -fPIC unless specified otherwise.
5241 PICFLAG_FOR_TARGET
=-fPIC
5245 # If the user explicitly uses -fpic/-fPIC, keep that.
5246 case "${CFLAGS_FOR_TARGET}" in
5248 PICFLAG_FOR_TARGET
=-fpic
5251 PICFLAG_FOR_TARGET
=-fPIC
5257 # -------------------------
5258 # Check C compiler features
5259 # -------------------------
5263 ac_cpp
='$CXXCPP $CPPFLAGS'
5264 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5268 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5269 if test -z "$CXXCPP"; then
5270 if ${ac_cv_prog_CXXCPP+:} false
; then :
5271 $as_echo_n "(cached) " >&6
5273 # Double quotes because CXXCPP needs to be expanded
5274 for CXXCPP
in "$CXX -E" "/lib/cpp"
5277 for ac_cxx_preproc_warn_flag
in '' yes
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5288 # include <limits.h>
5290 # include <assert.h>
5294 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5297 # Broken: fails on valid input.
5300 rm -f conftest.err conftest.i conftest.
$ac_ext
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5308 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5309 # Broken: success on invalid input.
5312 # Passes both tests.
5316 rm -f conftest.err conftest.i conftest.
$ac_ext
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.
$ac_ext
5321 if $ac_preproc_ok; then :
5326 ac_cv_prog_CXXCPP
=$CXXCPP
5329 CXXCPP
=$ac_cv_prog_CXXCPP
5331 ac_cv_prog_CXXCPP
=$CXXCPP
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5334 $as_echo "$CXXCPP" >&6; }
5336 for ac_cxx_preproc_warn_flag
in '' yes
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5347 # include <limits.h>
5349 # include <assert.h>
5353 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5356 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.i conftest.
$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5367 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5368 # Broken: success on invalid input.
5371 # Passes both tests.
5375 rm -f conftest.err conftest.i conftest.
$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.
$ac_ext
5380 if $ac_preproc_ok; then :
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5390 ac_cpp
='$CXXCPP $CPPFLAGS'
5391 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found
=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_prog
in grep ggrep
; do
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p
"$ac_path_GREP" ||
continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5417 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5420 $as_echo_n 0123456789 >"conftest.in"
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5428 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5429 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP
="$ac_path_GREP"
5433 ac_path_GREP_max
=$ac_count
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5438 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5441 $ac_path_GREP_found && break 3
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 ac_cv_path_GREP
=$GREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP
="$ac_cv_path_GREP"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false
; then :
5462 $as_echo_n "(cached) " >&6
5464 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5465 then ac_cv_path_EGREP
="$GREP -E"
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found
=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_prog
in egrep; do
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5483 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5486 $as_echo_n 0123456789 >"conftest.in"
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5495 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP
="$ac_path_EGREP"
5499 ac_path_EGREP_max
=$ac_count
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5507 $ac_path_EGREP_found && break 3
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 ac_cv_path_EGREP
=$EGREP
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP
="$ac_cv_path_EGREP"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5546 if ac_fn_cxx_try_compile
"$LINENO"; then :
5547 ac_cv_header_stdc
=yes
5549 ac_cv_header_stdc
=no
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev
/null
2>&1; then :
5564 ac_cv_header_stdc
=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev
/null
2>&1; then :
5581 ac_cv_header_stdc
=no
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5619 if ac_fn_cxx_try_run
"$LINENO"; then :
5622 ac_cv_header_stdc
=no
5624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5640 inttypes.h stdint.h unistd.h
5642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5645 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5646 cat >>confdefs.h
<<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5664 if test "$MINIX" = yes; then
5666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5672 $as_echo "#define _MINIX 1" >>confdefs.h
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5679 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5685 # define __EXTENSIONS__ 1
5686 $ac_includes_default
5695 if ac_fn_cxx_try_compile
"$LINENO"; then :
5696 ac_cv_safe_to_define___extensions__
=yes
5698 ac_cv_safe_to_define___extensions__
=no
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5704 test $ac_cv_safe_to_define___extensions__ = yes &&
5705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5718 ac_cpp
='$CPP $CPPFLAGS'
5719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5723 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5724 # On Suns, sometimes $CPP names a directory.
5725 if test -n "$CPP" && test -d "$CPP"; then
5728 if test -z "$CPP"; then
5729 if ${ac_cv_prog_CPP+:} false
; then :
5730 $as_echo_n "(cached) " >&6
5732 # Double quotes because CPP needs to be expanded
5733 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5736 for ac_c_preproc_warn_flag
in '' yes
5738 # Use a header file that comes with gcc, so configuring glibc
5739 # with a fresh cross-compiler works.
5740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 # <limits.h> exists even on freestanding compilers.
5742 # On the NeXT, cc -E runs the code through the compiler's parser,
5743 # not just through cpp. "Syntax error" is here to catch this case.
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5747 # include <limits.h>
5749 # include <assert.h>
5753 if ac_fn_c_try_cpp
"$LINENO"; then :
5756 # Broken: fails on valid input.
5759 rm -f conftest.err conftest.i conftest.
$ac_ext
5761 # OK, works on sane cases. Now check whether nonexistent headers
5762 # can be detected and how.
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <ac_nonexistent.h>
5767 if ac_fn_c_try_cpp
"$LINENO"; then :
5768 # Broken: success on invalid input.
5771 # Passes both tests.
5775 rm -f conftest.err conftest.i conftest.
$ac_ext
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.i conftest.err conftest.
$ac_ext
5780 if $ac_preproc_ok; then :
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5793 $as_echo "$CPP" >&6; }
5795 for ac_c_preproc_warn_flag
in '' yes
5797 # Use a header file that comes with gcc, so configuring glibc
5798 # with a fresh cross-compiler works.
5799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 # <limits.h> exists even on freestanding compilers.
5801 # On the NeXT, cc -E runs the code through the compiler's parser,
5802 # not just through cpp. "Syntax error" is here to catch this case.
5803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5806 # include <limits.h>
5808 # include <assert.h>
5812 if ac_fn_c_try_cpp
"$LINENO"; then :
5815 # Broken: fails on valid input.
5818 rm -f conftest.err conftest.i conftest.
$ac_ext
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5826 if ac_fn_c_try_cpp
"$LINENO"; then :
5827 # Broken: success on invalid input.
5830 # Passes both tests.
5834 rm -f conftest.err conftest.i conftest.
$ac_ext
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.i conftest.err conftest.
$ac_ext
5839 if $ac_preproc_ok; then :
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details" "$LINENO" 5; }
5849 ac_cpp
='$CXXCPP $CPPFLAGS'
5850 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5855 $as_echo_n "checking for inline... " >&6; }
5856 if ${ac_cv_c_inline+:} false
; then :
5857 $as_echo_n "(cached) " >&6
5860 for ac_kw
in inline __inline__ __inline
; do
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5865 static $ac_kw foo_t static_foo () {return 0; }
5866 $ac_kw foo_t foo () {return 0; }
5870 if ac_fn_cxx_try_compile
"$LINENO"; then :
5871 ac_cv_c_inline
=$ac_kw
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 test "$ac_cv_c_inline" != no
&& break
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5879 $as_echo "$ac_cv_c_inline" >&6; }
5881 case $ac_cv_c_inline in
5884 case $ac_cv_c_inline in
5886 *) ac_val
=$ac_cv_c_inline;;
5888 cat >>confdefs.h
<<_ACEOF
5890 #define inline $ac_val
5897 # Check whether --enable-largefile was given.
5898 if test "${enable_largefile+set}" = set; then :
5899 enableval
=$enable_largefile;
5902 if test "$enable_largefile" != no
; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5905 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5906 if ${ac_cv_sys_largefile_CC+:} false
; then :
5907 $as_echo_n "(cached) " >&6
5909 ac_cv_sys_largefile_CC
=no
5910 if test "$GCC" != yes; then
5913 # IRIX 6.2 and later do not support large files by default,
5914 # so use the C compiler's -n32 option if that helps.
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <sys/types.h>
5918 /* Check that off_t can represent 2**63 - 1 correctly.
5919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5920 since some C++ compilers masquerading as C compilers
5921 incorrectly reject 9223372036854775807. */
5922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924 && LARGE_OFF_T % 2147483647 == 1)
5934 if ac_fn_cxx_try_compile
"$LINENO"; then :
5937 rm -f core conftest.err conftest.
$ac_objext
5939 if ac_fn_cxx_try_compile
"$LINENO"; then :
5940 ac_cv_sys_largefile_CC
=' -n32'; break
5942 rm -f core conftest.err conftest.
$ac_objext
5946 rm -f conftest.
$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5950 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5951 if test "$ac_cv_sys_largefile_CC" != no
; then
5952 CC
=$CC$ac_cv_sys_largefile_CC
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5956 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5957 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 /* Check that off_t can represent 2**63 - 1 correctly.
5965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5966 since some C++ compilers masquerading as C compilers
5967 incorrectly reject 9223372036854775807. */
5968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5970 && LARGE_OFF_T % 2147483647 == 1)
5980 if ac_fn_cxx_try_compile
"$LINENO"; then :
5981 ac_cv_sys_file_offset_bits
=no
; break
5983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #define _FILE_OFFSET_BITS 64
5987 #include <sys/types.h>
5988 /* Check that off_t can represent 2**63 - 1 correctly.
5989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5990 since some C++ compilers masquerading as C compilers
5991 incorrectly reject 9223372036854775807. */
5992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5994 && LARGE_OFF_T % 2147483647 == 1)
6004 if ac_fn_cxx_try_compile
"$LINENO"; then :
6005 ac_cv_sys_file_offset_bits
=64; break
6007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6008 ac_cv_sys_file_offset_bits
=unknown
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6013 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6014 case $ac_cv_sys_file_offset_bits in #(
6017 cat >>confdefs.h
<<_ACEOF
6018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6023 if test $ac_cv_sys_file_offset_bits = unknown
; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6025 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6026 if ${ac_cv_sys_large_files+:} false
; then :
6027 $as_echo_n "(cached) " >&6
6030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 /* Check that off_t can represent 2**63 - 1 correctly.
6034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6035 since some C++ compilers masquerading as C compilers
6036 incorrectly reject 9223372036854775807. */
6037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6039 && LARGE_OFF_T % 2147483647 == 1)
6049 if ac_fn_cxx_try_compile
"$LINENO"; then :
6050 ac_cv_sys_large_files
=no
; break
6052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #define _LARGE_FILES 1
6056 #include <sys/types.h>
6057 /* Check that off_t can represent 2**63 - 1 correctly.
6058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6059 since some C++ compilers masquerading as C compilers
6060 incorrectly reject 9223372036854775807. */
6061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6063 && LARGE_OFF_T % 2147483647 == 1)
6073 if ac_fn_cxx_try_compile
"$LINENO"; then :
6074 ac_cv_sys_large_files
=1; break
6076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6077 ac_cv_sys_large_files
=unknown
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6082 $as_echo "$ac_cv_sys_large_files" >&6; }
6083 case $ac_cv_sys_large_files in #(
6086 cat >>confdefs.h
<<_ACEOF
6087 #define _LARGE_FILES $ac_cv_sys_large_files
6098 # sizeof(char) is 1 by definition.
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6104 $as_echo_n "checking size of void *... " >&6; }
6105 if ${ac_cv_sizeof_void_p+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6108 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6111 if test "$ac_cv_type_void_p" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error
77 "cannot compute sizeof (void *)
6115 See \`config.log' for more details" "$LINENO" 5; }
6117 ac_cv_sizeof_void_p
=0
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6123 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6127 cat >>confdefs.h
<<_ACEOF
6128 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6137 $as_echo_n "checking size of short... " >&6; }
6138 if ${ac_cv_sizeof_short+:} false
; then :
6139 $as_echo_n "(cached) " >&6
6141 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6144 if test "$ac_cv_type_short" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error
77 "cannot compute sizeof (short)
6148 See \`config.log' for more details" "$LINENO" 5; }
6150 ac_cv_sizeof_short
=0
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6156 $as_echo "$ac_cv_sizeof_short" >&6; }
6160 cat >>confdefs.h
<<_ACEOF
6161 #define SIZEOF_SHORT $ac_cv_sizeof_short
6165 # The cast to long int works around a bug in the HP C Compiler
6166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168 # This bug is HP SR number 8606223364.
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6170 $as_echo_n "checking size of int... " >&6; }
6171 if ${ac_cv_sizeof_int+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6177 if test "$ac_cv_type_int" = yes; then
6178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180 as_fn_error
77 "cannot compute sizeof (int)
6181 See \`config.log' for more details" "$LINENO" 5; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6189 $as_echo "$ac_cv_sizeof_int" >&6; }
6193 cat >>confdefs.h
<<_ACEOF
6194 #define SIZEOF_INT $ac_cv_sizeof_int
6198 # The cast to long int works around a bug in the HP C Compiler
6199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6201 # This bug is HP SR number 8606223364.
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6203 $as_echo_n "checking size of long... " >&6; }
6204 if ${ac_cv_sizeof_long+:} false
; then :
6205 $as_echo_n "(cached) " >&6
6207 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6210 if test "$ac_cv_type_long" = yes; then
6211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6213 as_fn_error
77 "cannot compute sizeof (long)
6214 See \`config.log' for more details" "$LINENO" 5; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6222 $as_echo "$ac_cv_sizeof_long" >&6; }
6226 cat >>confdefs.h
<<_ACEOF
6227 #define SIZEOF_LONG $ac_cv_sizeof_long
6231 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6232 if test "x$ac_cv_type_long_long" = xyes
; then :
6234 cat >>confdefs.h
<<_ACEOF
6235 #define HAVE_LONG_LONG 1
6238 # The cast to long int works around a bug in the HP C Compiler
6239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6241 # This bug is HP SR number 8606223364.
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6243 $as_echo_n "checking size of long long... " >&6; }
6244 if ${ac_cv_sizeof_long_long+:} false
; then :
6245 $as_echo_n "(cached) " >&6
6247 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6250 if test "$ac_cv_type_long_long" = yes; then
6251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6253 as_fn_error
77 "cannot compute sizeof (long long)
6254 See \`config.log' for more details" "$LINENO" 5; }
6256 ac_cv_sizeof_long_long
=0
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6262 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6266 cat >>confdefs.h
<<_ACEOF
6267 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6273 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6274 case $ac_cv_c_int8_t in #(
6278 cat >>confdefs.h
<<_ACEOF
6279 #define int8_t $ac_cv_c_int8_t
6284 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6285 case $ac_cv_c_int16_t in #(
6289 cat >>confdefs.h
<<_ACEOF
6290 #define int16_t $ac_cv_c_int16_t
6295 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6296 case $ac_cv_c_int32_t in #(
6300 cat >>confdefs.h
<<_ACEOF
6301 #define int32_t $ac_cv_c_int32_t
6306 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6307 case $ac_cv_c_int64_t in #(
6311 cat >>confdefs.h
<<_ACEOF
6312 #define int64_t $ac_cv_c_int64_t
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6319 $as_echo_n "checking for unsigned long long int... " >&6; }
6320 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6321 $as_echo_n "(cached) " >&6
6323 ac_cv_type_unsigned_long_long_int
=yes
6324 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6328 /* For now, do not test the preprocessor; as of 2007 there are too many
6329 implementations with broken preprocessors. Perhaps this can
6330 be revisited in 2012. In the meantime, code should not expect
6331 #if to work with literals wider than 32 bits. */
6332 /* Test literals. */
6333 long long int ll = 9223372036854775807ll;
6334 long long int nll = -9223372036854775807LL;
6335 unsigned long long int ull = 18446744073709551615ULL;
6336 /* Test constant expressions. */
6337 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6339 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6345 /* Test availability of runtime routines for shift and division. */
6346 long long int llmax = 9223372036854775807ll;
6347 unsigned long long int ullmax = 18446744073709551615ull;
6348 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6349 | (llmax / ll) | (llmax % ll)
6350 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6351 | (ullmax / ull) | (ullmax % ull));
6357 if ac_fn_cxx_try_link
"$LINENO"; then :
6360 ac_cv_type_unsigned_long_long_int
=no
6362 rm -f core conftest.err conftest.
$ac_objext \
6363 conftest
$ac_exeext conftest.
$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6367 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6368 if test $ac_cv_type_unsigned_long_long_int = yes; then
6370 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6377 $as_echo_n "checking for long long int... " >&6; }
6378 if ${ac_cv_type_long_long_int+:} false
; then :
6379 $as_echo_n "(cached) " >&6
6381 ac_cv_type_long_long_int
=yes
6382 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6383 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6384 if test $ac_cv_type_long_long_int = yes; then
6385 if test "$cross_compiling" = yes; then :
6388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6393 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6394 # define LLONG_MAX (HALF - 1 + HALF)
6399 long long int n = 1;
6403 long long int m = n << i;
6406 if (LLONG_MAX / 2 < m)
6414 if ac_fn_cxx_try_run
"$LINENO"; then :
6417 ac_cv_type_long_long_int
=no
6419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6427 $as_echo "$ac_cv_type_long_long_int" >&6; }
6428 if test $ac_cv_type_long_long_int = yes; then
6430 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6436 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6437 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6439 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6442 test $ac_cv_type_long_long_int = yes \
6443 && ac_type
='long long int' \
6444 || ac_type
='long int'
6446 cat >>confdefs.h
<<_ACEOF
6447 #define intmax_t $ac_type
6454 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6455 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6457 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6460 for ac_type
in 'int' 'long int' 'long long int'; do
6461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 $ac_includes_default
6467 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6469 return test_array [0];
6475 if ac_fn_cxx_try_compile
"$LINENO"; then :
6477 cat >>confdefs.h
<<_ACEOF
6478 #define intptr_t $ac_type
6483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6484 test -z "$ac_type" && break
6489 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6490 case $ac_cv_c_uint8_t in #(
6494 $as_echo "#define _UINT8_T 1" >>confdefs.h
6497 cat >>confdefs.h
<<_ACEOF
6498 #define uint8_t $ac_cv_c_uint8_t
6503 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6504 case $ac_cv_c_uint16_t in #(
6509 cat >>confdefs.h
<<_ACEOF
6510 #define uint16_t $ac_cv_c_uint16_t
6515 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6516 case $ac_cv_c_uint32_t in #(
6520 $as_echo "#define _UINT32_T 1" >>confdefs.h
6523 cat >>confdefs.h
<<_ACEOF
6524 #define uint32_t $ac_cv_c_uint32_t
6529 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6530 case $ac_cv_c_uint64_t in #(
6534 $as_echo "#define _UINT64_T 1" >>confdefs.h
6537 cat >>confdefs.h
<<_ACEOF
6538 #define uint64_t $ac_cv_c_uint64_t
6545 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6546 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6548 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6551 test $ac_cv_type_unsigned_long_long_int = yes \
6552 && ac_type
='unsigned long long int' \
6553 || ac_type
='unsigned long int'
6555 cat >>confdefs.h
<<_ACEOF
6556 #define uintmax_t $ac_type
6563 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6564 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6566 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6569 for ac_type
in 'unsigned int' 'unsigned long int' \
6570 'unsigned long long int'; do
6571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 $ac_includes_default
6577 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6579 return test_array [0];
6585 if ac_fn_cxx_try_compile
"$LINENO"; then :
6587 cat >>confdefs.h
<<_ACEOF
6588 #define uintptr_t $ac_type
6593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 test -z "$ac_type" && break
6611 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6612 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6615 # check what underlying integer type int64_t uses
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6617 $as_echo_n "checking for int64_t underlying type... " >&6; }
6618 if ${ac_cv_int64_t_type+:} false
; then :
6619 $as_echo_n "(cached) " >&6
6622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6625 #ifdef HAVE_STDINT_H
6628 template <typename T> struct X { };
6630 struct X<long> { typedef long t; };
6640 if ac_fn_cxx_try_compile
"$LINENO"; then :
6641 ac_cv_int64_t_type
=long
6643 ac_cv_int64_t_type
="long long"
6645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6648 $as_echo "$ac_cv_int64_t_type" >&6; }
6649 if test "$ac_cv_int64_t_type" = "long"; then
6651 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6657 #ifdef HAVE_STDINT_H
6660 template <typename T> struct X { };
6662 struct X<long long> { typedef long long t; };
6672 if ac_fn_cxx_try_compile
"$LINENO"; then :
6675 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6681 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6682 if ${ac_cv_std_swap_in_utility+:} false
; then :
6683 $as_echo_n "(cached) " >&6
6686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6694 int a, b; std::swap(a,b);
6699 if ac_fn_cxx_try_compile
"$LINENO"; then :
6700 ac_cv_std_swap_in_utility
=yes
6702 ac_cv_std_swap_in_utility
=no
6704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6707 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6708 if test $ac_cv_std_swap_in_utility = yes; then
6710 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6714 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6715 # If the host compiler is affected by the bug, and we build with optimization
6716 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6717 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6718 # Since there is no reliable feature check for the presence of this bug,
6719 # we simply use a GCC version number check. (This should never trigger for
6720 # stages 2 or 3 of a native bootstrap.)
6722 if test "$GCC" = yes; then
6723 saved_CXXFLAGS
="$CXXFLAGS"
6725 # The following test compilation will succeed if and only if $CXX accepts
6726 # -fno-strict-aliasing *and* is older than GCC 4.3.
6727 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6729 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6733 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6734 #error compiler not affected by placement new aliasing bug
6738 if ac_fn_cxx_try_compile
"$LINENO"; then :
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6740 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6747 CXXFLAGS
="$saved_CXXFLAGS"
6753 # ---------------------
6754 # Warnings and checking
6755 # ---------------------
6757 # Check $CC warning features (if it's GCC).
6758 # We want to use -pedantic, but we don't want warnings about
6761 # * overlong strings
6762 # * C++11 narrowing conversions in { }
6763 # So, we only use -pedantic if we can disable those warnings.
6765 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6766 # Check whether --enable-build-format-warnings was given.
6767 if test "${enable_build_format_warnings+set}" = set; then :
6768 enableval
=$enable_build_format_warnings;
6770 enable_build_format_warnings
=yes
6773 if test $enable_build_format_warnings = no
; then :
6779 ac_cpp
='$CXXCPP $CPPFLAGS'
6780 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6785 save_CXXFLAGS
="$CXXFLAGS"
6786 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6787 # Do the check with the no- prefix removed since gcc silently
6788 # accepts any -Wno-* option on purpose
6789 case $real_option in
6790 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6791 *) option
=$real_option ;;
6793 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6796 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6797 if eval \
${$as_acx_Woption+:} false
; then :
6798 $as_echo_n "(cached) " >&6
6801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6812 if ac_fn_cxx_try_compile
"$LINENO"; then :
6813 eval "$as_acx_Woption=yes"
6815 eval "$as_acx_Woption=no"
6817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6820 eval ac_res
=\$
$as_acx_Woption
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6822 $as_echo "$ac_res" >&6; }
6823 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6824 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6827 CXXFLAGS
="$save_CXXFLAGS"
6829 ac_cpp
='$CXXCPP $CPPFLAGS'
6830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6837 ac_cpp
='$CPP $CPPFLAGS'
6838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6843 save_CFLAGS
="$CFLAGS"
6844 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6845 # Do the check with the no- prefix removed since gcc silently
6846 # accepts any -Wno-* option on purpose
6847 case $real_option in
6848 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6849 *) option
=$real_option ;;
6851 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6854 $as_echo_n "checking whether $CC supports $option... " >&6; }
6855 if eval \
${$as_acx_Woption+:} false
; then :
6856 $as_echo_n "(cached) " >&6
6859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6870 if ac_fn_c_try_compile
"$LINENO"; then :
6871 eval "$as_acx_Woption=yes"
6873 eval "$as_acx_Woption=no"
6875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6878 eval ac_res
=\$
$as_acx_Woption
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6882 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6885 CFLAGS
="$save_CFLAGS"
6887 ac_cpp
='$CXXCPP $CPPFLAGS'
6888 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6894 ac_cpp
='$CXXCPP $CPPFLAGS'
6895 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6900 save_CXXFLAGS
="$CXXFLAGS"
6901 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6902 # Do the check with the no- prefix removed since gcc silently
6903 # accepts any -Wno-* option on purpose
6904 case $real_option in
6905 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6906 *) option
=$real_option ;;
6908 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6911 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6912 if eval \
${$as_acx_Woption+:} false
; then :
6913 $as_echo_n "(cached) " >&6
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6927 if ac_fn_cxx_try_compile
"$LINENO"; then :
6928 eval "$as_acx_Woption=yes"
6930 eval "$as_acx_Woption=no"
6932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 eval ac_res
=\$
$as_acx_Woption
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937 $as_echo "$ac_res" >&6; }
6938 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6939 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6942 CXXFLAGS
="$save_CXXFLAGS"
6944 ac_cpp
='$CXXCPP $CPPFLAGS'
6945 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6951 ac_cpp
='$CPP $CPPFLAGS'
6952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6957 save_CFLAGS
="$CFLAGS"
6958 for real_option
in -Wold-style-definition -Wc++-compat; do
6959 # Do the check with the no- prefix removed since gcc silently
6960 # accepts any -Wno-* option on purpose
6961 case $real_option in
6962 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6963 *) option
=$real_option ;;
6965 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6968 $as_echo_n "checking whether $CC supports $option... " >&6; }
6969 if eval \
${$as_acx_Woption+:} false
; then :
6970 $as_echo_n "(cached) " >&6
6973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6984 if ac_fn_c_try_compile
"$LINENO"; then :
6985 eval "$as_acx_Woption=yes"
6987 eval "$as_acx_Woption=no"
6989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6992 eval ac_res
=\$
$as_acx_Woption
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6994 $as_echo "$ac_res" >&6; }
6995 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6996 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6999 CFLAGS
="$save_CFLAGS"
7001 ac_cpp
='$CXXCPP $CPPFLAGS'
7002 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7008 ac_cpp
='$CXXCPP $CPPFLAGS'
7009 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7013 # Do the check with the no- prefix removed from the warning options
7014 # since gcc silently accepts any -Wno-* option on purpose
7015 if test "$GXX" = yes; then :
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7017 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7018 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7019 $as_echo_n "(cached) " >&6
7021 save_CXXFLAGS
="$CXXFLAGS"
7022 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7034 if ac_fn_cxx_try_compile
"$LINENO"; then :
7035 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7037 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7040 CXXFLAGS
="$save_CXXFLAGS"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7043 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7044 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7045 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7050 ac_cpp
='$CXXCPP $CPPFLAGS'
7051 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7057 ac_cpp
='$CXXCPP $CPPFLAGS'
7058 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7062 # Check whether --enable-werror-always was given.
7063 if test "${enable_werror_always+set}" = set; then :
7064 enableval
=$enable_werror_always;
7066 enable_werror_always
=no
7069 if test $enable_werror_always = yes; then :
7070 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7074 ac_cpp
='$CXXCPP $CPPFLAGS'
7075 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7081 # The above macros do nothing if the compiler is not GCC. However, the
7082 # Makefile has more goo to add other flags, so these variables are used
7083 # to enable warnings only for GCC.
7086 if test "x$GCC" = "xyes"; then
7087 warn_cflags
='$(GCC_WARN_CFLAGS)'
7088 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7093 # Disable exceptions and RTTI if building with g++
7095 ac_cpp
='$CPP $CPPFLAGS'
7096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7101 save_CFLAGS
="$CFLAGS"
7102 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7103 # Do the check with the no- prefix removed since gcc silently
7104 # accepts any -Wno-* option on purpose
7105 case $real_option in
7106 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7107 *) option
=$real_option ;;
7109 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7112 $as_echo_n "checking whether $CC supports $option... " >&6; }
7113 if eval \
${$as_acx_Woption+:} false
; then :
7114 $as_echo_n "(cached) " >&6
7117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7128 if ac_fn_c_try_compile
"$LINENO"; then :
7129 eval "$as_acx_Woption=yes"
7131 eval "$as_acx_Woption=no"
7133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7136 eval ac_res
=\$
$as_acx_Woption
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7138 $as_echo "$ac_res" >&6; }
7139 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7140 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7143 CFLAGS
="$save_CFLAGS"
7145 ac_cpp
='$CXXCPP $CPPFLAGS'
7146 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7152 # Enable expensive internal checks
7154 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7158 # Check whether --enable-checking was given.
7159 if test "${enable_checking+set}" = set; then :
7160 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7163 # Determine the default checks.
7164 if test x
$is_release = x
; then
7165 ac_checking_flags
=yes,extra
7167 ac_checking_flags
=release
7171 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7172 for check
in release
$ac_checking_flags
7175 # these set all the flags to specific states
7176 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7177 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7178 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7179 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7180 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7181 ac_types_checking
=1 ;;
7182 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7183 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7184 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7185 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7186 ac_tree_checking
= ; ac_valgrind_checking
= ;
7187 ac_types_checking
= ;;
7188 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7189 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7190 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7191 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7192 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7193 ac_types_checking
=1 ;;
7194 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7195 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7196 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7197 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7198 ac_tree_checking
= ; ac_valgrind_checking
= ;
7199 ac_types_checking
= ;;
7200 # these enable particular checks
7201 assert
) ac_assert_checking
=1 ;;
7202 df
) ac_df_checking
=1 ;;
7203 extra
) ac_extra_checking
=1 ;;
7204 fold) ac_fold_checking
=1 ;;
7205 gc
) ac_gc_checking
=1 ;;
7206 gcac
) ac_gc_always_collect
=1 ;;
7207 gimple
) ac_gimple_checking
=1 ;;
7208 misc
) ac_checking
=1 ;;
7209 rtl
) ac_rtl_checking
=1 ;;
7210 rtlflag
) ac_rtlflag_checking
=1 ;;
7211 runtime
) ac_runtime_checking
=1 ;;
7212 tree
) ac_tree_checking
=1 ;;
7213 types
) ac_types_checking
=1 ;;
7214 valgrind
) ac_valgrind_checking
=1 ;;
7215 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7221 if test x
$ac_checking != x
; then
7223 $as_echo "#define CHECKING_P 1" >>confdefs.h
7225 nocommon_flag
=-fno-common
7227 $as_echo "#define CHECKING_P 0" >>confdefs.h
7231 if test x
$ac_extra_checking != x
; then
7233 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7236 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7239 if test x
$ac_df_checking != x
; then
7241 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7244 if test x
$ac_assert_checking != x
; then
7246 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7249 if test x
$ac_gimple_checking != x
; then
7251 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7255 if test x
$ac_runtime_checking != x
; then
7257 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7260 if test x
$ac_tree_checking != x
; then
7262 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7266 if test x
$ac_types_checking != x
; then
7268 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7272 if test x
$ac_rtl_checking != x
; then
7274 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7277 if test x
$ac_rtlflag_checking != x
; then
7279 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7282 if test x
$ac_gc_checking != x
; then
7284 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7287 if test x
$ac_gc_always_collect != x
; then
7289 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7292 if test x
$ac_fold_checking != x
; then
7294 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7297 valgrind_path_defines
=
7300 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7301 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7309 # It is certainly possible that there's valgrind but no valgrind.h.
7310 # GCC relies on making annotations so we must have both.
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7312 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <valgrind/memcheck.h>
7316 #ifndef VALGRIND_DISCARD
7317 #error VALGRIND_DISCARD not defined
7320 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7321 gcc_cv_header_valgrind_memcheck_h
=yes
7323 gcc_cv_header_valgrind_memcheck_h
=no
7325 rm -f conftest.err conftest.i conftest.
$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7327 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7329 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #include <memcheck.h>
7333 #ifndef VALGRIND_DISCARD
7334 #error VALGRIND_DISCARD not defined
7337 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7338 gcc_cv_header_memcheck_h
=yes
7340 gcc_cv_header_memcheck_h
=no
7342 rm -f conftest.err conftest.i conftest.
$ac_ext
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7344 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7345 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7347 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7350 if test $gcc_cv_header_memcheck_h = yes; then
7352 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7356 if test x
$ac_valgrind_checking != x
; then
7358 # Prepare PATH_SEPARATOR.
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361 echo "#! /bin/sh" >conf$$.sh
7362 echo "exit 0" >>conf$$.sh
7364 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7372 # Find out how to test for executable files. Don't use a zero-byte file,
7373 # as systems may use methods other than mode bits to determine executability.
7374 cat >conf$$.
file <<_ASEOF
7378 chmod +x conf$$.
file
7379 if test -x conf$$.
file >/dev
/null
2>&1; then
7380 ac_executable_p
="test -x"
7382 ac_executable_p
="test -f"
7386 # Extract the first word of "valgrind", so it can be a program name with args.
7387 set dummy valgrind
; ac_word
=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_path_valgrind_path+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7393 case "$valgrind_path" in
7395 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7398 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7399 for ac_dir
in $PATH; do
7401 test -z "$ac_dir" && ac_dir
=.
7402 for ac_exec_ext
in '' $ac_executable_extensions; do
7403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7404 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7405 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7415 valgrind_path
="$ac_cv_path_valgrind_path"
7416 if test -n "$valgrind_path"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7418 $as_echo "$valgrind_path" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7424 if test "x$valgrind_path" = "x" \
7425 ||
(test $have_valgrind_h = no \
7426 && test $gcc_cv_header_memcheck_h = no \
7427 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7428 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7430 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7431 valgrind_command
="$valgrind_path -q"
7433 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7439 # Enable code coverage collection
7440 # Check whether --enable-coverage was given.
7441 if test "${enable_coverage+set}" = set; then :
7442 enableval
=$enable_coverage; case "${enableval}" in
7444 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7447 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7450 # a.k.a. --disable-coverage
7454 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7463 # Check whether --enable-gather-detailed-mem-stats was given.
7464 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7465 enableval
=$enable_gather_detailed_mem_stats;
7467 enable_gather_detailed_mem_stats
=no
7470 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7472 cat >>confdefs.h
<<_ACEOF
7473 #define GATHER_STATISTICS $gather_stats
7477 # Check whether --enable-valgrind-annotations was given.
7478 if test "${enable_valgrind_annotations+set}" = set; then :
7479 enableval
=$enable_valgrind_annotations;
7481 enable_valgrind_annotations
=no
7484 if test x
$enable_valgrind_annotations != xno \
7485 ||
test x
$ac_valgrind_checking != x
; then
7486 if (test $have_valgrind_h = no \
7487 && test $gcc_cv_header_memcheck_h = no \
7488 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7489 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7492 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7496 # -------------------------------
7497 # Miscenalleous configure options
7498 # -------------------------------
7502 # Check whether --with-stabs was given.
7503 if test "${with_stabs+set}" = set; then :
7504 withval
=$with_stabs; stabs
="$with_stabs"
7510 # Determine whether or not multilibs are enabled.
7511 # Check whether --enable-multilib was given.
7512 if test "${enable_multilib+set}" = set; then :
7513 enableval
=$enable_multilib;
7520 # Determine whether or not multiarch is enabled.
7521 # Check whether --enable-multiarch was given.
7522 if test "${enable_multiarch+set}" = set; then :
7523 enableval
=$enable_multiarch; case "${enableval}" in
7524 yes|no|auto
) enable_multiarch
=$enableval;;
7525 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7528 enable_multiarch
=auto
7531 if test x
${enable_multiarch} = xauto
; then
7532 if test x
${with_native_system_header_dir} != x
; then
7533 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7536 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7537 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7542 $as_echo_n "checking for multiarch configuration... " >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7545 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7547 # needed for setting the multiarch name for soft-float/hard-float ABIs
7551 # default stack clash protection guard size as power of twos in bytes.
7552 # Please keep these in sync with params.def.
7556 # Keep the default value when the option is not used to 0, this allows us to
7557 # distinguish between the cases where the user specifially set a value via
7558 # configure and when the normal default value is used.
7560 # Check whether --with-stack-clash-protection-guard-size was given.
7561 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7562 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7564 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7567 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7568 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7569 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7570 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
7574 cat >>confdefs.h
<<_ACEOF
7575 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7579 # Enable __cxa_atexit for C++.
7580 # Check whether --enable-__cxa_atexit was given.
7581 if test "${enable___cxa_atexit+set}" = set; then :
7582 enableval
=$enable___cxa_atexit;
7586 # Enable C extension for decimal float if target supports it.
7588 # Check whether --enable-decimal-float was given.
7589 if test "${enable_decimal_float+set}" = set; then :
7590 enableval
=$enable_decimal_float;
7591 case $enable_decimal_float in
7592 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7593 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7594 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7600 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7601 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7602 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7603 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7604 enable_decimal_float
=yes
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7608 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7609 enable_decimal_float
=no
7616 # x86's use BID format instead of DPD
7617 case x
$enable_decimal_float in
7620 i?
86*-*-* | x86_64
*-*-*)
7621 enable_decimal_float
=bid
7624 enable_decimal_float
=dpd
7627 default_decimal_float
=$enable_decimal_float
7630 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7631 # dependency on libdecnumber.
7632 default_decimal_float
=dpd
7639 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7641 cat >>confdefs.h
<<_ACEOF
7642 #define ENABLE_DECIMAL_FLOAT $dfp
7646 # Use default_decimal_float for dependency.
7647 enable_decimal_float
=$default_decimal_float
7649 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7651 cat >>confdefs.h
<<_ACEOF
7652 #define ENABLE_DECIMAL_BID_FORMAT $bid
7656 # Enable C extension for fixed-point arithmetic.
7657 # Check whether --enable-fixed-point was given.
7658 if test "${enable_fixed_point+set}" = set; then :
7659 enableval
=$enable_fixed_point;
7664 enable_fixed_point
=yes
7668 enable_fixed_point
=yes
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7672 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7673 enable_fixed_point
=no
7681 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7683 cat >>confdefs.h
<<_ACEOF
7684 #define ENABLE_FIXED_POINT $fixedpoint
7689 # Pass with no value to take the default
7690 # Pass with a value to specify a thread package
7691 # Check whether --enable-threads was given.
7692 if test "${enable_threads+set}" = set; then :
7693 enableval
=$enable_threads;
7699 # Check whether --enable-tls was given.
7700 if test "${enable_tls+set}" = set; then :
7701 enableval
=$enable_tls;
7704 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7705 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7713 # Check whether --enable-vtable-verify was given.
7714 if test "${enable_vtable_verify+set}" = set; then :
7715 enableval
=$enable_vtable_verify;
7717 enable_vtable_verify
=no
7720 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7722 cat >>confdefs.h
<<_ACEOF
7723 #define ENABLE_VTABLE_VERIFY $vtable_verify
7727 # Check whether --enable-analyzer was given.
7728 if test "${enable_analyzer+set}" = set; then :
7729 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7739 cat >>confdefs.h
<<_ACEOF
7740 #define ENABLE_ANALYZER $analyzer
7744 # Check whether --enable-objc-gc was given.
7745 if test "${enable_objc_gc+set}" = set; then :
7746 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7757 # Check whether --with-dwarf2 was given.
7758 if test "${with_dwarf2+set}" = set; then :
7759 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7765 # Check whether --enable-shared was given.
7766 if test "${enable_shared+set}" = set; then :
7767 enableval
=$enable_shared;
7768 case $enable_shared in
7772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7773 for pkg
in $enableval; do
7774 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7788 # Check whether --enable-gcov was given.
7789 if test "${enable_gcov+set}" = set; then :
7790 enableval
=$enable_gcov;
7798 # Check whether --with-specs was given.
7799 if test "${with_specs+set}" = set; then :
7800 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7810 # Check whether --with-pkgversion was given.
7811 if test "${with_pkgversion+set}" = set; then :
7812 withval
=$with_pkgversion; case "$withval" in
7813 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7815 *) PKGVERSION
="($withval) " ;;
7826 # Check whether --with-bugurl was given.
7827 if test "${with_bugurl+set}" = set; then :
7828 withval
=$with_bugurl; case "$withval" in
7829 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7832 *) BUGURL
="$withval"
7836 BUGURL
="https://gcc.gnu.org/bugs/"
7846 REPORT_BUGS_TO
="<$BUGURL>"
7847 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7854 # Allow overriding the default URL for documentation
7856 # Check whether --with-documentation-root-url was given.
7857 if test "${with_documentation_root_url+set}" = set; then :
7858 withval
=$with_documentation_root_url; case "$withval" in
7859 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7860 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7861 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
7862 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
7865 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
7870 cat >>confdefs.h
<<_ACEOF
7871 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7875 # Allow overriding the default URL for GCC changes
7877 # Check whether --with-changes-root-url was given.
7878 if test "${with_changes_root_url+set}" = set; then :
7879 withval
=$with_changes_root_url; case "$withval" in
7880 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7881 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7882 */) CHANGES_ROOT_URL
="$withval" ;;
7883 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
7886 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
7891 cat >>confdefs.h
<<_ACEOF
7892 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7896 # Sanity check enable_languages in case someone does not run the toplevel
7897 # configure # script.
7898 # Check whether --enable-languages was given.
7899 if test "${enable_languages+set}" = set; then :
7900 enableval
=$enable_languages; case ,${enable_languages}, in
7902 # go safe -- we cannot be much sure without the toplevel
7904 # analysis of which target libs are present and usable
7908 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7913 enable_languages
=c
,${enable_languages}
7921 # If top-level libada has been disabled, then wire in install-gnatlib
7922 # invocation with `make install', so that one can build and install
7923 # the library manually with `make -C gcc all gnatlib gnattools install'.
7924 if test x
"$enable_libada" = xno
; then
7925 gnat_install_lib
=gnat-install-lib
7931 if test x
"$enable_as_accelerator_for" != x
; then
7933 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7935 enable_as_accelerator
=yes
7938 # In this case we expect offload compiler to be built as native, so we
7939 # need to rename the driver to avoid clashes with host's drivers.
7940 program_transform_name
="s&^&${target}-&" ;;
7942 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7943 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7944 accel_dir_suffix
=/accel
/${target_noncanonical}
7945 real_target_noncanonical
=${enable_as_accelerator_for}
7951 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7952 tgt
=`echo $tgt | sed 's/=.*//'`
7956 *-intelmic-* |
*-intelmicemul-*)
7957 omp_device_property
=omp-device-properties-i386
7958 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7961 omp_device_property
=omp-device-properties-gcn
7962 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7965 omp_device_property
=omp-device-properties-nvptx
7966 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7969 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
7972 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7973 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7975 if test x
"$offload_targets" = x
; then
7976 offload_targets
=$tgt
7978 offload_targets
="$offload_targets,$tgt"
7985 cat >>confdefs.h
<<_ACEOF
7986 #define OFFLOAD_TARGETS "$offload_targets"
7989 if test x
"$enable_offloading" != x
; then
7991 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7995 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8000 # Check whether --with-multilib-list was given.
8001 if test "${with_multilib_list+set}" = set; then :
8002 withval
=$with_multilib_list; :
8004 with_multilib_list
=default
8009 # Check whether --with-multilib-generator was given.
8010 if test "${with_multilib_generator+set}" = set; then :
8011 withval
=$with_multilib_generator; :
8013 with_multilib_generator
=default
8017 # -------------------------
8018 # Checks for other programs
8019 # -------------------------
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8024 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8025 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8026 $as_echo_n "(cached) " >&6
8028 cat >conftest.
make <<\_ACEOF
8031 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8033 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8036 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8038 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8042 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044 $as_echo "yes" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 SET_MAKE
="MAKE=${MAKE-make}"
8053 # Find some useful tools
8054 for ac_prog
in gawk mawk nawk
awk
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy
$ac_prog; ac_word
=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_AWK+:} false
; then :
8061 $as_echo_n "(cached) " >&6
8063 if test -n "$AWK"; then
8064 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir
=.
8071 for ac_exec_ext
in '' $ac_executable_extensions; do
8072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_AWK
="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 if test -n "$AWK"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8086 $as_echo "$AWK" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8093 test -n "$AWK" && break
8096 # We need awk to create options.c and options.h.
8097 # Bail out if it's missing.
8099 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8103 $as_echo_n "checking whether ln -s works... " >&6; }
8104 if ${gcc_cv_prog_LN_S+:} false
; then :
8105 $as_echo_n "(cached) " >&6
8107 rm -f conftestdata_t
8108 echo >conftestdata_f
8109 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8111 gcc_cv_prog_LN_S
="ln -s"
8113 if ln conftestdata_f conftestdata_t
2>/dev
/null
8117 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8119 gcc_cv_prog_LN_S
="cp -p"
8125 rm -f conftestdata_f conftestdata_t
8128 LN_S
="$gcc_cv_prog_LN_S"
8129 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8133 if test "$gcc_cv_prog_LN_S" = "ln"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8135 $as_echo "no, using ln" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8138 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8143 $as_echo_n "checking whether ln works... " >&6; }
8144 if ${acx_cv_prog_LN+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8147 rm -f conftestdata_t
8148 echo >conftestdata_f
8149 if ln conftestdata_f conftestdata_t
2>/dev
/null
8155 rm -f conftestdata_f conftestdata_t
8158 if test $acx_cv_prog_LN = no
; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8161 $as_echo "no, using $LN" >&6; }
8163 LN
="$acx_cv_prog_LN"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8165 $as_echo "yes" >&6; }
8168 if test -n "$ac_tool_prefix"; then
8169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8170 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_RANLIB+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8176 if test -n "$RANLIB"; then
8177 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir
=.
8184 for ac_exec_ext
in '' $ac_executable_extensions; do
8185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 RANLIB
=$ac_cv_prog_RANLIB
8197 if test -n "$RANLIB"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8199 $as_echo "$RANLIB" >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 if test -z "$ac_cv_prog_RANLIB"; then
8208 ac_ct_RANLIB
=$RANLIB
8209 # Extract the first word of "ranlib", so it can be a program name with args.
8210 set dummy ranlib
; ac_word
=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8214 $as_echo_n "(cached) " >&6
8216 if test -n "$ac_ct_RANLIB"; then
8217 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8223 test -z "$as_dir" && as_dir
=.
8224 for ac_exec_ext
in '' $ac_executable_extensions; do
8225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8237 if test -n "$ac_ct_RANLIB"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8239 $as_echo "$ac_ct_RANLIB" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8245 if test "x$ac_ct_RANLIB" = x
; then
8248 case $cross_compiling:$ac_tool_warned in
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned
=yes ;;
8254 RANLIB
=$ac_ct_RANLIB
8257 RANLIB
="$ac_cv_prog_RANLIB"
8263 # Find a good install program. We prefer a C program (faster),
8264 # so one script is as good as another. But avoid the broken or
8265 # incompatible versions:
8266 # SysV /etc/install, /usr/sbin/install
8267 # SunOS /usr/etc/install
8268 # IRIX /sbin/install
8270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8272 # ./install, which can be erroneously created by make from ./install.sh.
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8274 $as_echo_n "checking for a BSD compatible install... " >&6; }
8275 if test -z "$INSTALL"; then
8276 if ${ac_cv_path_install+:} false
; then :
8277 $as_echo_n "(cached) " >&6
8279 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8280 for ac_dir
in $PATH; do
8281 # Account for people who put trailing slashes in PATH elements.
8283 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8285 # OSF1 and SCO ODT 3.0 have their own names for install.
8286 for ac_prog
in ginstall scoinst
install; do
8287 if test -f $ac_dir/$ac_prog; then
8288 if test $ac_prog = install &&
8289 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8290 # AIX install. It has an incompatible calling convention.
8291 # OSF/1 installbsd also uses dspmsg, but is usable.
8294 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8305 if test "${ac_cv_path_install+set}" = set; then
8306 INSTALL
="$ac_cv_path_install"
8308 # As a last resort, use the slow shell script. We don't cache a
8309 # path for INSTALL within a source directory, because that will
8310 # break other packages using the cache if that directory is
8311 # removed, or if the path is relative.
8312 INSTALL
="$ac_install_sh"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8316 $as_echo "$INSTALL" >&6; }
8318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8319 # It thinks the first close brace ends the variable substitution.
8320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8322 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8325 # See if cmp has --ignore-initial.
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8327 $as_echo_n "checking for cmp's capabilities... " >&6; }
8328 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8329 $as_echo_n "(cached) " >&6
8333 gcc_cv_prog_cmp_skip
=slowcompare
8334 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8335 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8338 gcc_cv_prog_cmp_skip
=gnucompare
8341 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8342 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8343 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8346 gcc_cv_prog_cmp_skip
=fastcompare
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8354 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8355 make_compare_target
=$gcc_cv_prog_cmp_skip
8359 # See if we have the mktemp command.
8360 # Extract the first word of "mktemp", so it can be a program name with args.
8361 set dummy mktemp
; ac_word
=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8365 $as_echo_n "(cached) " >&6
8367 if test -n "$have_mktemp_command"; then
8368 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir
=.
8375 for ac_exec_ext
in '' $ac_executable_extensions; do
8376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_have_mktemp_command
="yes"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8388 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8389 if test -n "$have_mktemp_command"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8391 $as_echo "$have_mktemp_command" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 # See if makeinfo has been installed and is modern enough
8400 # that we can use it.
8402 # Extract the first word of "makeinfo", so it can be a program name with args.
8403 set dummy makeinfo
; ac_word
=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8407 $as_echo_n "(cached) " >&6
8409 if test -n "$MAKEINFO"; then
8410 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir
=.
8417 for ac_exec_ext
in '' $ac_executable_extensions; do
8418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_MAKEINFO
="makeinfo"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 MAKEINFO
=$ac_cv_prog_MAKEINFO
8430 if test -n "$MAKEINFO"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8432 $as_echo "$MAKEINFO" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8439 if test -n "$MAKEINFO"; then
8440 # Found it, now check the version.
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8442 $as_echo_n "checking for modern makeinfo... " >&6; }
8443 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8444 $as_echo_n "(cached) " >&6
8446 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8447 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8449 case $ac_prog_version in
8450 '') gcc_cv_prog_makeinfo_modern
=no
;;
8451 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8452 *) gcc_cv_prog_makeinfo_modern
=no
;;
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8457 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8459 gcc_cv_prog_makeinfo_modern
=no
8461 if test $gcc_cv_prog_makeinfo_modern = no
; then
8462 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8465 if test $gcc_cv_prog_makeinfo_modern = no
; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8467 *** Makeinfo is missing or too old.
8468 *** Info documentation will not be built." >&5
8469 $as_echo "$as_me: WARNING:
8470 *** Makeinfo is missing or too old.
8471 *** Info documentation will not be built." >&2;}
8478 # Is pod2man recent enough to regenerate manpages?
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8480 $as_echo_n "checking for recent Pod::Man... " >&6; }
8481 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8484 GENERATED_MANPAGES
=generated-manpages
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8492 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8497 # Extract the first word of "$ac_prog", so it can be a program name with args.
8498 set dummy
$ac_prog; ac_word
=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_FLEX+:} false
; then :
8502 $as_echo_n "(cached) " >&6
8504 if test -n "$FLEX"; then
8505 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir
=.
8512 for ac_exec_ext
in '' $ac_executable_extensions; do
8513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_FLEX
="$ac_prog"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 FLEX
=$ac_cv_prog_FLEX
8525 if test -n "$FLEX"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8527 $as_echo "$FLEX" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8534 test -n "$FLEX" && break
8536 test -n "$FLEX" || FLEX
="$MISSING flex"
8540 for ac_prog
in bison
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy
$ac_prog; ac_word
=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_BISON+:} false
; then :
8547 $as_echo_n "(cached) " >&6
8549 if test -n "$BISON"; then
8550 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8556 test -z "$as_dir" && as_dir
=.
8557 for ac_exec_ext
in '' $ac_executable_extensions; do
8558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_BISON
="$ac_prog"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 BISON
=$ac_cv_prog_BISON
8570 if test -n "$BISON"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8572 $as_echo "$BISON" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8579 test -n "$BISON" && break
8581 test -n "$BISON" || BISON
="$MISSING bison"
8584 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8585 # check for build == host before using them.
8588 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8589 && test -d ..
/binutils
; then
8590 NM
='${objdir}/../binutils/nm-new'
8592 # Extract the first word of "nm", so it can be a program name with args.
8593 set dummy nm
; ac_word
=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_NM+:} false
; then :
8597 $as_echo_n "(cached) " >&6
8599 if test -n "$NM"; then
8600 ac_cv_prog_NM
="$NM" # Let the user override the test.
8602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir
=.
8607 for ac_exec_ext
in '' $ac_executable_extensions; do
8608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8621 if test -n "$NM"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8623 $as_echo "$NM" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8633 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8634 && test -d ..
/binutils
; then
8635 AR
='${objdir}/../binutils/ar'
8637 # Extract the first word of "ar", so it can be a program name with args.
8638 set dummy
ar; ac_word
=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_AR+:} false
; then :
8642 $as_echo_n "(cached) " >&6
8644 if test -n "$AR"; then
8645 ac_cv_prog_AR
="$AR" # Let the user override the test.
8647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir
=.
8652 for ac_exec_ext
in '' $ac_executable_extensions; do
8653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8666 if test -n "$AR"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8668 $as_echo "$AR" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8677 # The jit documentation looks better if built with sphinx, but can be
8678 # built with texinfo if sphinx is not available.
8679 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8680 # Extract the first word of "sphinx-build", so it can be a program name with args.
8681 set dummy sphinx-build
; ac_word
=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8687 if test -n "$doc_build_sys"; then
8688 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8694 test -z "$as_dir" && as_dir
=.
8695 for ac_exec_ext
in '' $ac_executable_extensions; do
8696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_doc_build_sys
="sphinx"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8708 doc_build_sys
=$ac_cv_prog_doc_build_sys
8709 if test -n "$doc_build_sys"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8711 $as_echo "$doc_build_sys" >&6; }
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 # --------------------
8720 # Checks for C headers
8721 # --------------------
8723 # Need to reject headers which give warnings, so that the -Werror bootstrap
8724 # works later. *sigh* This needs to come before all header checks.
8726 ac_c_preproc_warn_flag
=yes
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8729 $as_echo_n "checking for ANSI C header files... " >&6; }
8730 if ${ac_cv_header_stdc+:} false
; then :
8731 $as_echo_n "(cached) " >&6
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8748 if ac_fn_cxx_try_compile
"$LINENO"; then :
8749 ac_cv_header_stdc
=yes
8751 ac_cv_header_stdc
=no
8753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8755 if test $ac_cv_header_stdc = yes; then
8756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "memchr" >/dev
/null
2>&1; then :
8766 ac_cv_header_stdc
=no
8772 if test $ac_cv_header_stdc = yes; then
8773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780 $EGREP "free" >/dev
/null
2>&1; then :
8783 ac_cv_header_stdc
=no
8789 if test $ac_cv_header_stdc = yes; then
8790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8791 if test "$cross_compiling" = yes; then :
8794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8798 #if ((' ' & 0x0FF) == 0x020)
8799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8802 # define ISLOWER(c) \
8803 (('a' <= (c) && (c) <= 'i') \
8804 || ('j' <= (c) && (c) <= 'r') \
8805 || ('s' <= (c) && (c) <= 'z'))
8806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8814 for (i = 0; i < 256; i++)
8815 if (XOR (islower (i), ISLOWER (i))
8816 || toupper (i) != TOUPPER (i))
8821 if ac_fn_cxx_try_run
"$LINENO"; then :
8824 ac_cv_header_stdc
=no
8826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8833 $as_echo "$ac_cv_header_stdc" >&6; }
8834 if test $ac_cv_header_stdc = yes; then
8836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8841 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8842 if ${ac_cv_header_time+:} false
; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <sys/types.h>
8848 #include <sys/time.h>
8854 if ((struct tm *) 0)
8860 if ac_fn_cxx_try_compile
"$LINENO"; then :
8861 ac_cv_header_time
=yes
8863 ac_cv_header_time
=no
8865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8868 $as_echo "$ac_cv_header_time" >&6; }
8869 if test $ac_cv_header_time = yes; then
8871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8876 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8877 if ${gcc_cv_header_string+:} false
; then :
8878 $as_echo_n "(cached) " >&6
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8883 #include <strings.h>
8892 if ac_fn_cxx_try_compile
"$LINENO"; then :
8893 gcc_cv_header_string
=yes
8895 gcc_cv_header_string
=no
8897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8900 $as_echo "$gcc_cv_header_string" >&6; }
8901 if test $gcc_cv_header_string = yes; then
8903 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8908 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8909 if ${ac_cv_header_sys_wait_h+:} false
; then :
8910 $as_echo_n "(cached) " >&6
8912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 #include <sys/wait.h>
8917 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8920 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8928 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8933 if ac_fn_cxx_try_compile
"$LINENO"; then :
8934 ac_cv_header_sys_wait_h
=yes
8936 ac_cv_header_sys_wait_h
=no
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8941 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8942 if test $ac_cv_header_sys_wait_h = yes; then
8944 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8949 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8950 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8951 $as_echo_n "(cached) " >&6
8953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #include <termios.h>
8962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8963 $EGREP "yes" >/dev
/null
2>&1; then :
8964 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8966 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8972 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8974 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8976 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8977 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8978 $as_echo_n "(cached) " >&6
8980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/ioctl.h>
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "yes" >/dev
/null
2>&1; then :
8991 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8993 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8999 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9001 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9003 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9008 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9009 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9010 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9013 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9014 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9015 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9016 cat >>confdefs.h
<<_ACEOF
9017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 # Check for thread headers.
9025 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9026 if test "x$ac_cv_header_thread_h" = xyes
; then :
9032 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9033 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9040 # These tests can't be done till we know if we have limits.h.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9042 $as_echo_n "checking for CHAR_BIT... " >&6; }
9043 if ${gcc_cv_decl_char_bit+:} false
; then :
9044 $as_echo_n "(cached) " >&6
9046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #ifdef HAVE_LIMITS_H
9055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9056 $EGREP "found" >/dev
/null
2>&1; then :
9057 gcc_cv_decl_char_bit
=yes
9059 gcc_cv_decl_char_bit
=no
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9066 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9067 if test $gcc_cv_decl_char_bit = no
; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9069 $as_echo_n "checking number of bits in a byte... " >&6; }
9070 if ${gcc_cv_c_nbby+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9075 while test $i -lt 65; do
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9083 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9084 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9090 if ac_fn_cxx_try_compile
"$LINENO"; then :
9091 gcc_cv_c_nbby
=$i; break
9093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9100 $as_echo "$gcc_cv_c_nbby" >&6; }
9101 if test $gcc_cv_c_nbby = failed
; then
9102 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9105 cat >>confdefs.h
<<_ACEOF
9106 #define CHAR_BIT $gcc_cv_c_nbby
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9112 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9113 if ${ac_cv_c_bigendian+:} false
; then :
9114 $as_echo_n "(cached) " >&6
9116 ac_cv_c_bigendian
=unknown
9117 # See if we're dealing with a universal compiler.
9118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #ifndef __APPLE_CC__
9121 not a universal capable compiler
9126 if ac_fn_cxx_try_compile
"$LINENO"; then :
9128 # Check for potential -arch flags. It is not universal unless
9129 # there are at least two -arch flags with different values.
9132 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9133 if test -n "$ac_prev"; then
9135 i?
86 | x86_64 | ppc | ppc64
)
9136 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9139 ac_cv_c_bigendian
=universal
9145 elif test "x$ac_word" = "x-arch"; then
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9151 if test $ac_cv_c_bigendian = unknown
; then
9152 # See if sys/param.h defines the BYTE_ORDER macro.
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9156 #include <sys/param.h>
9161 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9162 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9171 if ac_fn_cxx_try_compile
"$LINENO"; then :
9172 # It does; now see whether it defined to BIG_ENDIAN or not.
9173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <sys/types.h>
9176 #include <sys/param.h>
9181 #if BYTE_ORDER != BIG_ENDIAN
9189 if ac_fn_cxx_try_compile
"$LINENO"; then :
9190 ac_cv_c_bigendian
=yes
9192 ac_cv_c_bigendian
=no
9194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 if test $ac_cv_c_bigendian = unknown
; then
9199 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9207 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9215 if ac_fn_cxx_try_compile
"$LINENO"; then :
9216 # It does; now see whether it defined to _BIG_ENDIAN or not.
9217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9232 if ac_fn_cxx_try_compile
"$LINENO"; then :
9233 ac_cv_c_bigendian
=yes
9235 ac_cv_c_bigendian
=no
9237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9241 if test $ac_cv_c_bigendian = unknown
; then
9242 # Compile a test program.
9243 if test "$cross_compiling" = yes; then :
9244 # Try to guess by grepping values from an object file.
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 short int ascii_mm[] =
9248 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9249 short int ascii_ii[] =
9250 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9251 int use_ascii (int i) {
9252 return ascii_mm[i] + ascii_ii[i];
9254 short int ebcdic_ii[] =
9255 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9256 short int ebcdic_mm[] =
9257 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9258 int use_ebcdic (int i) {
9259 return ebcdic_mm[i] + ebcdic_ii[i];
9266 return use_ascii (foo) == use_ebcdic (foo);
9271 if ac_fn_cxx_try_compile
"$LINENO"; then :
9272 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9273 ac_cv_c_bigendian
=yes
9275 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9276 if test "$ac_cv_c_bigendian" = unknown
; then
9277 ac_cv_c_bigendian
=no
9279 # finding both strings is unlikely to happen, but who knows?
9280 ac_cv_c_bigendian
=unknown
9284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 $ac_includes_default
9293 /* Are we little or big endian? From Harbison&Steele. */
9297 char c[sizeof (long int)];
9300 return u.c[sizeof (long int) - 1] == 1;
9306 if ac_fn_cxx_try_run
"$LINENO"; then :
9307 ac_cv_c_bigendian
=no
9309 ac_cv_c_bigendian
=yes
9311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9318 $as_echo "$ac_cv_c_bigendian" >&6; }
9319 case $ac_cv_c_bigendian in #(
9321 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9327 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9331 as_fn_error $?
"unknown endianness
9332 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9336 # ----------------------
9337 # Checks for C++ headers
9338 # ----------------------
9341 ac_cpp
='$CXXCPP $CPPFLAGS'
9342 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9343 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9344 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9346 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9347 if test -z "$CXXCPP"; then
9348 if ${ac_cv_prog_CXXCPP+:} false
; then :
9349 $as_echo_n "(cached) " >&6
9351 # Double quotes because CXXCPP needs to be expanded
9352 for CXXCPP
in "$CXX -E" "/lib/cpp"
9355 for ac_cxx_preproc_warn_flag
in '' yes
9357 # Use a header file that comes with gcc, so configuring glibc
9358 # with a fresh cross-compiler works.
9359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 # <limits.h> exists even on freestanding compilers.
9361 # On the NeXT, cc -E runs the code through the compiler's parser,
9362 # not just through cpp. "Syntax error" is here to catch this case.
9363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9366 # include <limits.h>
9368 # include <assert.h>
9372 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9375 # Broken: fails on valid input.
9378 rm -f conftest.err conftest.i conftest.
$ac_ext
9380 # OK, works on sane cases. Now check whether nonexistent headers
9381 # can be detected and how.
9382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <ac_nonexistent.h>
9386 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9387 # Broken: success on invalid input.
9390 # Passes both tests.
9394 rm -f conftest.err conftest.i conftest.
$ac_ext
9397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9398 rm -f conftest.i conftest.err conftest.
$ac_ext
9399 if $ac_preproc_ok; then :
9404 ac_cv_prog_CXXCPP
=$CXXCPP
9407 CXXCPP
=$ac_cv_prog_CXXCPP
9409 ac_cv_prog_CXXCPP
=$CXXCPP
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9412 $as_echo "$CXXCPP" >&6; }
9414 for ac_cxx_preproc_warn_flag
in '' yes
9416 # Use a header file that comes with gcc, so configuring glibc
9417 # with a fresh cross-compiler works.
9418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 # <limits.h> exists even on freestanding compilers.
9420 # On the NeXT, cc -E runs the code through the compiler's parser,
9421 # not just through cpp. "Syntax error" is here to catch this case.
9422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9425 # include <limits.h>
9427 # include <assert.h>
9431 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9434 # Broken: fails on valid input.
9437 rm -f conftest.err conftest.i conftest.
$ac_ext
9439 # OK, works on sane cases. Now check whether nonexistent headers
9440 # can be detected and how.
9441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #include <ac_nonexistent.h>
9445 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9446 # Broken: success on invalid input.
9449 # Passes both tests.
9453 rm -f conftest.err conftest.i conftest.
$ac_ext
9456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9457 rm -f conftest.i conftest.err conftest.
$ac_ext
9458 if $ac_preproc_ok; then :
9461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9464 See \`config.log' for more details" >&5
9465 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9466 See \`config.log' for more details" >&2;}; }
9470 ac_cpp
='$CXXCPP $CPPFLAGS'
9471 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9476 for ac_header
in unordered_map
9478 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9479 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9480 cat >>confdefs.h
<<_ACEOF
9481 #define HAVE_UNORDERED_MAP 1
9487 for ac_header
in tr1/unordered_map
9489 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9490 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9491 cat >>confdefs.h
<<_ACEOF
9492 #define HAVE_TR1_UNORDERED_MAP 1
9498 for ac_header
in ext
/hash_map
9500 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9501 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9502 cat >>confdefs.h
<<_ACEOF
9503 #define HAVE_EXT_HASH_MAP 1
9511 # Dependency checking.
9514 rm -rf .tst
2>/dev
/null
9515 mkdir .tst
2>/dev
/null
9516 if test -d .tst
; then
9521 rmdir .tst
2>/dev
/null
9523 DEPDIR
="${am__leading_dot}deps"
9525 ac_config_commands
="$ac_config_commands depdir"
9528 ac_config_commands
="$ac_config_commands gccdepdir"
9531 depcc
="$CXX" am_compiler_list
=
9533 am_depcomp
=$ac_aux_dir/depcomp
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9535 $as_echo_n "checking dependency style of $depcc... " >&6; }
9536 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9537 $as_echo_n "(cached) " >&6
9539 if test -f "$am_depcomp"; then
9540 # We make a subdir and do the tests there. Otherwise we can end up
9541 # making bogus files that we don't know about and never remove. For
9542 # instance it was reported that on HP-UX the gcc test will end up
9543 # making a dummy file named `D' -- because `-MD' means `put the output
9546 # Copy depcomp to subdir because otherwise we won't find it if we're
9547 # using a relative directory.
9548 cp "$am_depcomp" conftest.dir
9550 # We will build objects and dependencies in a subdirectory because
9551 # it helps to detect inapplicable dependency modes. For instance
9552 # both Tru64's cc and ICC support -MD to output dependencies as a
9553 # side effect of compilation, but ICC will put the dependencies in
9554 # the current directory while Tru64 will put them in the object
9558 am_cv_CXX_dependencies_compiler_type
=none
9559 if test "$am_compiler_list" = ""; then
9560 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9562 for depmode
in $am_compiler_list; do
9563 if test $depmode = none
; then break; fi
9565 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9566 # Setup a source with many dependencies, because some compilers
9567 # like to wrap large dependency lists on column 80 (with \), and
9568 # we should not choose a depcomp mode which is confused by this.
9570 # We need to recreate these files for each test, as the compiler may
9571 # overwrite some of them when testing with obscure command lines.
9572 # This happens at least with the AIX C compiler.
9574 for i
in 1 2 3 4 5 6; do
9575 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9577 # Solaris 8's {/usr,}/bin/sh.
9578 touch sub
/conftst
$i.h
9580 echo "include sub/conftest.Po" > confmf
9582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9583 # mode. It turns out that the SunPro C++ compiler does not properly
9584 # handle `-M -o', and we need to detect this.
9585 depcmd
="depmode=$depmode \
9586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9589 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9590 if env
$depcmd > conftest.err
2>&1 &&
9591 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9592 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9593 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9594 # icc doesn't choke on unknown options, it will just issue warnings
9595 # or remarks (even with -Werror). So we grep stderr for any message
9596 # that says an option was ignored or not supported.
9597 # When given -MP, icc 7.0 and 7.1 complain thusly:
9598 # icc: Command line warning: ignoring option '-M'; no argument required
9599 # The diagnosis changed in icc 8.0:
9600 # icc: Command line remark: option '-MP' not supported
9601 if (grep 'ignoring option' conftest.err ||
9602 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9603 am_cv_CXX_dependencies_compiler_type
=$depmode
9604 $as_echo "$as_me:$LINENO: success" >&5
9608 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9609 sed -e 's/^/| /' < conftest.err
>&5
9615 am_cv_CXX_dependencies_compiler_type
=none
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9620 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9621 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9622 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9623 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9633 # These libraries may be used by collect2.
9634 # We may need a special search path to get them linked.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9636 $as_echo_n "checking for collect2 libraries... " >&6; }
9637 if ${gcc_cv_collect2_libs+:} false
; then :
9638 $as_echo_n "(cached) " >&6
9641 for libs
in '' -lld -lmld \
9642 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9643 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9664 if ac_fn_cxx_try_link
"$LINENO"; then :
9665 gcc_cv_collect2_libs
="$libs"; break
9667 rm -f core conftest.err conftest.
$ac_objext \
9668 conftest
$ac_exeext conftest.
$ac_ext
9671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9674 $as_echo "$gcc_cv_collect2_libs" >&6; }
9675 case $gcc_cv_collect2_libs in
9677 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9681 # When building Ada code on Alpha, we need exc_resume which is usually in
9682 # -lexc. So test for it.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9686 $as_echo_n "checking for library containing exc_resume... " >&6; }
9687 if ${ac_cv_search_exc_resume+:} false
; then :
9688 $as_echo_n "(cached) " >&6
9690 ac_func_search_save_LIBS
=$LIBS
9691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9704 return exc_resume ();
9709 for ac_lib
in '' exc
; do
9710 if test -z "$ac_lib"; then
9711 ac_res
="none required"
9714 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9716 if ac_fn_cxx_try_link
"$LINENO"; then :
9717 ac_cv_search_exc_resume
=$ac_res
9719 rm -f core conftest.err conftest.
$ac_objext \
9721 if ${ac_cv_search_exc_resume+:} false
; then :
9725 if ${ac_cv_search_exc_resume+:} false
; then :
9728 ac_cv_search_exc_resume
=no
9731 LIBS
=$ac_func_search_save_LIBS
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9734 $as_echo "$ac_cv_search_exc_resume" >&6; }
9735 ac_res
=$ac_cv_search_exc_resume
9736 if test "$ac_res" != no
; then :
9737 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9745 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9749 $as_echo_n "checking for library containing kstat_open... " >&6; }
9750 if ${ac_cv_search_kstat_open+:} false
; then :
9751 $as_echo_n "(cached) " >&6
9753 ac_func_search_save_LIBS
=$LIBS
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9767 return kstat_open ();
9772 for ac_lib
in '' kstat
; do
9773 if test -z "$ac_lib"; then
9774 ac_res
="none required"
9777 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9779 if ac_fn_cxx_try_link
"$LINENO"; then :
9780 ac_cv_search_kstat_open
=$ac_res
9782 rm -f core conftest.err conftest.
$ac_objext \
9784 if ${ac_cv_search_kstat_open+:} false
; then :
9788 if ${ac_cv_search_kstat_open+:} false
; then :
9791 ac_cv_search_kstat_open
=no
9794 LIBS
=$ac_func_search_save_LIBS
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9797 $as_echo "$ac_cv_search_kstat_open" >&6; }
9798 ac_res
=$ac_cv_search_kstat_open
9799 if test "$ac_res" != no
; then :
9800 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9804 EXTRA_GCC_LIBS
="$LIBS"
9808 # Some systems put ldexp and frexp in libm instead of libc; assume
9809 # they're both in the same place. jcf-dump needs them.
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9813 $as_echo_n "checking for library containing ldexp... " >&6; }
9814 if ${ac_cv_search_ldexp+:} false
; then :
9815 $as_echo_n "(cached) " >&6
9817 ac_func_search_save_LIBS
=$LIBS
9818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9836 for ac_lib
in '' m
; do
9837 if test -z "$ac_lib"; then
9838 ac_res
="none required"
9841 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9843 if ac_fn_cxx_try_link
"$LINENO"; then :
9844 ac_cv_search_ldexp
=$ac_res
9846 rm -f core conftest.err conftest.
$ac_objext \
9848 if ${ac_cv_search_ldexp+:} false
; then :
9852 if ${ac_cv_search_ldexp+:} false
; then :
9855 ac_cv_search_ldexp
=no
9858 LIBS
=$ac_func_search_save_LIBS
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9861 $as_echo "$ac_cv_search_ldexp" >&6; }
9862 ac_res
=$ac_cv_search_ldexp
9863 if test "$ac_res" != no
; then :
9864 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9872 # Some systems need dlopen
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9876 $as_echo_n "checking for library containing dlopen... " >&6; }
9877 if ${ac_cv_search_dlopen+:} false
; then :
9878 $as_echo_n "(cached) " >&6
9880 ac_func_search_save_LIBS
=$LIBS
9881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9899 for ac_lib
in '' dl
; do
9900 if test -z "$ac_lib"; then
9901 ac_res
="none required"
9904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9906 if ac_fn_cxx_try_link
"$LINENO"; then :
9907 ac_cv_search_dlopen
=$ac_res
9909 rm -f core conftest.err conftest.
$ac_objext \
9911 if ${ac_cv_search_dlopen+:} false
; then :
9915 if ${ac_cv_search_dlopen+:} false
; then :
9918 ac_cv_search_dlopen
=no
9921 LIBS
=$ac_func_search_save_LIBS
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9924 $as_echo "$ac_cv_search_dlopen" >&6; }
9925 ac_res
=$ac_cv_search_dlopen
9926 if test "$ac_res" != no
; then :
9927 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9935 # Use <inttypes.h> only if it exists,
9936 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9939 $as_echo_n "checking for inttypes.h... " >&6; }
9940 if ${gcc_cv_header_inttypes_h+:} false
; then :
9941 $as_echo_n "(cached) " >&6
9943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #define __STDC_FORMAT_MACROS
9946 #include <sys/types.h>
9947 #include <inttypes.h>
9959 if ac_fn_cxx_try_compile
"$LINENO"; then :
9960 gcc_cv_header_inttypes_h
=yes
9962 gcc_cv_header_inttypes_h
=no
9964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9968 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9969 if test $gcc_cv_header_inttypes_h = yes; then
9971 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9975 # Look for the ZSTD package.
9985 # Check whether --with-zstd was given.
9986 if test "${with_zstd+set}" = set; then :
9991 # Check whether --with-zstd-include was given.
9992 if test "${with_zstd_include+set}" = set; then :
9993 withval
=$with_zstd_include;
9997 # Check whether --with-zstd-lib was given.
9998 if test "${with_zstd_lib+set}" = set; then :
9999 withval
=$with_zstd_lib;
10002 case "x$with_zstd" in
10008 *) ZSTD_INCLUDE
=$with_zstd/include
10009 ZSTD_LIB
=$with_zstd/lib
10013 if test "x$with_zstd" != xno
; then
10014 if test "x$with_zstd_include" != x
; then
10015 ZSTD_INCLUDE
=$with_zstd_include
10017 if test "x$with_zstd_lib" != x
; then
10018 ZSTD_LIB
=$with_zstd_lib
10020 if test "x$ZSTD_INCLUDE" != x \
10021 && test "x$ZSTD_INCLUDE" != xno
; then
10022 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10024 if test "x$ZSTD_LIB" != x \
10025 && test "x$ZSTD_LIB" != xno
; then
10026 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10029 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10030 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10033 $as_echo_n "checking for zstd.h... " >&6; }
10034 if ${gcc_cv_header_zstd_h+:} false
; then :
10035 $as_echo_n "(cached) " >&6
10037 # We require version 1.3.0 or later. This is the first version that has
10038 # ZSTD_getFrameContentSize.
10039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10042 #if ZSTD_VERSION_NUMBER < 10300
10043 #error "need zstd 1.3.0 or better"
10053 if ac_fn_cxx_try_compile
"$LINENO"; then :
10054 gcc_cv_header_zstd_h
=yes
10056 gcc_cv_header_zstd_h
=no
10058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10062 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10063 if test $gcc_cv_header_zstd_h = yes; then
10065 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10067 elif test "x$with_zstd" != x
; then
10068 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10071 # LTO can use zstd compression algorithm
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10075 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10076 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10077 $as_echo_n "(cached) " >&6
10079 ac_func_search_save_LIBS
=$LIBS
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10089 char ZSTD_compress ();
10093 return ZSTD_compress ();
10098 for ac_lib
in '' zstd
; do
10099 if test -z "$ac_lib"; then
10100 ac_res
="none required"
10103 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10105 if ac_fn_cxx_try_link
"$LINENO"; then :
10106 ac_cv_search_ZSTD_compress
=$ac_res
10108 rm -f core conftest.err conftest.
$ac_objext \
10110 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10114 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10117 ac_cv_search_ZSTD_compress
=no
10119 rm conftest.
$ac_ext
10120 LIBS
=$ac_func_search_save_LIBS
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10123 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10124 ac_res
=$ac_cv_search_ZSTD_compress
10125 if test "$ac_res" != no
; then :
10126 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10137 for ac_func
in times clock kill getrlimit setrlimit atoq \
10138 popen sysconf strsignal getrusage nl_langinfo \
10139 gettimeofday mbstowcs wcswidth mmap setlocale \
10140 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
10142 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10144 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10145 cat >>confdefs.h
<<_ACEOF
10146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10153 if test x
$ac_cv_func_mbstowcs = xyes
; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10155 $as_echo_n "checking whether mbstowcs works... " >&6; }
10156 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10157 $as_echo_n "(cached) " >&6
10159 if test "$cross_compiling" = yes; then :
10160 gcc_cv_func_mbstowcs_works
=yes
10162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <stdlib.h>
10167 mbstowcs(0, "", 0);
10171 if ac_fn_cxx_try_run
"$LINENO"; then :
10172 gcc_cv_func_mbstowcs_works
=yes
10174 gcc_cv_func_mbstowcs_works
=no
10176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10182 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10183 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10185 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10190 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10191 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10195 cat >>confdefs.h
<<_ACEOF
10196 #define ssize_t int
10201 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10202 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10206 cat >>confdefs.h
<<_ACEOF
10207 #define caddr_t char *
10214 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10215 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10216 gcc_header_sys_mman_h
=yes
10218 gcc_header_sys_mman_h
=no
10221 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10222 if test "x$ac_cv_func_mmap" = xyes
; then :
10228 if test "$gcc_header_sys_mman_h" != yes \
10229 ||
test "$gcc_func_mmap" != yes; then
10230 gcc_cv_func_mmap_file
=no
10231 gcc_cv_func_mmap_dev_zero
=no
10232 gcc_cv_func_mmap_anon
=no
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10235 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10236 if ${gcc_cv_func_mmap_file+:} false
; then :
10237 $as_echo_n "(cached) " >&6
10239 # Add a system to this blacklist if
10240 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10241 # memory area containing the same data that you'd get if you applied
10242 # read() to the same fd. The only system known to have a problem here
10243 # is VMS, where text files have record structure.
10246 gcc_cv_func_mmap_file
=no
;;
10248 gcc_cv_func_mmap_file
=yes;;
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10252 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10254 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10255 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10256 $as_echo_n "(cached) " >&6
10258 # Add a system to this blacklist if it has mmap() but /dev/zero
10259 # does not exist, or if mmapping /dev/zero does not give anonymous
10260 # zeroed pages with both the following properties:
10261 # 1. If you map N consecutive pages in with one call, and then
10262 # unmap any subset of those pages, the pages that were not
10263 # explicitly unmapped remain accessible.
10264 # 2. If you map two adjacent blocks of memory and then unmap them
10265 # both at once, they must both go away.
10266 # Systems known to be in this category are Windows (all variants),
10269 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10270 gcc_cv_func_mmap_dev_zero
=no
;;
10272 gcc_cv_func_mmap_dev_zero
=yes;;
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10276 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10278 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10280 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10281 if ${gcc_cv_decl_map_anon+:} false
; then :
10282 $as_echo_n "(cached) " >&6
10284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 #include <sys/types.h>
10287 #include <sys/mman.h>
10288 #include <unistd.h>
10290 #ifndef MAP_ANONYMOUS
10291 #define MAP_ANONYMOUS MAP_ANON
10297 int n = MAP_ANONYMOUS;
10302 if ac_fn_cxx_try_compile
"$LINENO"; then :
10303 gcc_cv_decl_map_anon
=yes
10305 gcc_cv_decl_map_anon
=no
10307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10310 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10312 if test $gcc_cv_decl_map_anon = no
; then
10313 gcc_cv_func_mmap_anon
=no
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10316 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10317 if ${gcc_cv_func_mmap_anon+:} false
; then :
10318 $as_echo_n "(cached) " >&6
10320 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10321 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10322 # doesn't give anonymous zeroed pages with the same properties listed
10323 # above for use of /dev/zero.
10324 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10326 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10327 gcc_cv_func_mmap_anon
=no
;;
10329 gcc_cv_func_mmap_anon
=yes;;
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10333 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10337 if test $gcc_cv_func_mmap_file = yes; then
10339 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10342 if test $gcc_cv_func_mmap_dev_zero = yes; then
10344 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10347 if test $gcc_cv_func_mmap_anon = yes; then
10349 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10356 # Under VMS, vfork works very differently than on Unix. The standard test
10357 # won't work, and it isn't easily adaptable. It makes more sense to
10359 ac_cv_func_vfork_works
=yes
10362 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10363 if test "x$ac_cv_type_pid_t" = xyes
; then :
10367 cat >>confdefs.h
<<_ACEOF
10373 for ac_header
in vfork.h
10375 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10376 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10377 cat >>confdefs.h
<<_ACEOF
10378 #define HAVE_VFORK_H 1
10384 for ac_func
in fork vfork
10386 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10388 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10389 cat >>confdefs.h
<<_ACEOF
10390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10396 if test "x$ac_cv_func_fork" = xyes
; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10398 $as_echo_n "checking for working fork... " >&6; }
10399 if ${ac_cv_func_fork_works+:} false
; then :
10400 $as_echo_n "(cached) " >&6
10402 if test "$cross_compiling" = yes; then :
10403 ac_cv_func_fork_works
=cross
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 $ac_includes_default
10412 /* By Ruediger Kuhlmann. */
10413 return fork () < 0;
10419 if ac_fn_cxx_try_run
"$LINENO"; then :
10420 ac_cv_func_fork_works
=yes
10422 ac_cv_func_fork_works
=no
10424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10430 $as_echo "$ac_cv_func_fork_works" >&6; }
10433 ac_cv_func_fork_works
=$ac_cv_func_fork
10435 if test "x$ac_cv_func_fork_works" = xcross
; then
10437 *-*-amigaos* |
*-*-msdosdjgpp*)
10438 # Override, as these systems have only a dummy fork() stub
10439 ac_cv_func_fork_works
=no
10442 ac_cv_func_fork_works
=yes
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10448 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10449 if test "x$ac_cv_func_vfork" = xyes
; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10451 $as_echo_n "checking for working vfork... " >&6; }
10452 if ${ac_cv_func_vfork_works+:} false
; then :
10453 $as_echo_n "(cached) " >&6
10455 if test "$cross_compiling" = yes; then :
10456 ac_cv_func_vfork_works
=cross
10458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 /* Thanks to Paul Eggert for this test. */
10461 $ac_includes_default
10462 #include <sys/wait.h>
10463 #ifdef HAVE_VFORK_H
10464 # include <vfork.h>
10466 /* On some sparc systems, changes by the child to local and incoming
10467 argument registers are propagated back to the parent. The compiler
10468 is told about this with #include <vfork.h>, but some compilers
10469 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10470 static variable whose address is put into a register that is
10471 clobbered by the vfork. */
10474 sparc_address_test (int arg)
10476 sparc_address_test (arg) int arg;
10479 static pid_t child;
10497 pid_t parent = getpid ();
10500 sparc_address_test (0);
10505 /* Here is another test for sparc vfork register problems. This
10506 test uses lots of local variables, at least as many local
10507 variables as main has allocated so far including compiler
10508 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10509 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10510 reuse the register of parent for one of the local variables,
10511 since it will think that parent can't possibly be used any more
10512 in this routine. Assigning to the local variable will thus
10513 munge parent in the parent process. */
10515 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10516 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10517 /* Convince the compiler that p..p7 are live; otherwise, it might
10518 use the same hardware register for all 8 local variables. */
10519 if (p != p1 || p != p2 || p != p3 || p != p4
10520 || p != p5 || p != p6 || p != p7)
10523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10524 from child file descriptors. If the child closes a descriptor
10525 before it execs or exits, this munges the parent's descriptor
10526 as well. Test for this by closing stdout in the child. */
10527 _exit(close(fileno(stdout)) != 0);
10532 while (wait(&status) != child)
10535 /* Was there some problem with vforking? */
10538 /* Did the child fail? (This shouldn't happen.) */
10541 /* Did the vfork/compiler bug occur? */
10542 || parent != getpid()
10544 /* Did the file descriptor bug occur? */
10545 || fstat(fileno(stdout), &st) != 0
10550 if ac_fn_cxx_try_run
"$LINENO"; then :
10551 ac_cv_func_vfork_works
=yes
10553 ac_cv_func_vfork_works
=no
10555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10561 $as_echo "$ac_cv_func_vfork_works" >&6; }
10564 if test "x$ac_cv_func_fork_works" = xcross
; then
10565 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10570 if test "x$ac_cv_func_vfork_works" = xyes
; then
10572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10576 $as_echo "#define vfork fork" >>confdefs.h
10579 if test "x$ac_cv_func_fork_works" = xyes
; then
10581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10587 if test "X$prefix" = "XNONE"; then
10588 acl_final_prefix
="$ac_default_prefix"
10590 acl_final_prefix
="$prefix"
10592 if test "X$exec_prefix" = "XNONE"; then
10593 acl_final_exec_prefix
='${prefix}'
10595 acl_final_exec_prefix
="$exec_prefix"
10597 acl_save_prefix
="$prefix"
10598 prefix
="$acl_final_prefix"
10599 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10600 prefix
="$acl_save_prefix"
10603 # Check whether --with-gnu-ld was given.
10604 if test "${with_gnu_ld+set}" = set; then :
10605 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10610 # Prepare PATH_SEPARATOR.
10611 # The user is always right.
10612 if test "${PATH_SEPARATOR+set}" != set; then
10613 echo "#! /bin/sh" >conf$$.sh
10614 echo "exit 0" >>conf$$.sh
10616 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10624 if test "$GCC" = yes; then
10625 # Check if gcc -print-prog-name=ld gives a path.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10627 $as_echo_n "checking for ld used by GCC... " >&6; }
10630 # gcc leaves a trailing carriage return which upsets mingw
10631 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10633 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10636 # Accept absolute paths.
10637 [\\/]* |
[A-Za-z
]:[\\/]*)
10638 re_direlt
='/[^/][^/]*/\.\./'
10639 # Canonicalize the path of ld
10640 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10641 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10642 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10644 test -z "$LD" && LD
="$ac_prog"
10647 # If it fails, then pretend we aren't using GCC.
10651 # If it is relative, then search for the first ld in PATH.
10652 with_gnu_ld
=unknown
10655 elif test "$with_gnu_ld" = yes; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10657 $as_echo_n "checking for GNU ld... " >&6; }
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10660 $as_echo_n "checking for non-GNU ld... " >&6; }
10662 if ${acl_cv_path_LD+:} false
; then :
10663 $as_echo_n "(cached) " >&6
10665 if test -z "$LD"; then
10666 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10667 for ac_dir
in $PATH; do
10668 test -z "$ac_dir" && ac_dir
=.
10669 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10670 acl_cv_path_LD
="$ac_dir/$ac_prog"
10671 # Check to see if the program is GNU ld. I'd rather use --version,
10672 # but apparently some GNU ld's only accept -v.
10673 # Break only if it was the GNU/non-GNU ld that we prefer.
10674 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10675 test "$with_gnu_ld" != no
&& break
10677 test "$with_gnu_ld" != yes && break
10683 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10687 LD
="$acl_cv_path_LD"
10688 if test -n "$LD"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10690 $as_echo "$LD" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10695 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10698 if ${acl_cv_prog_gnu_ld+:} false
; then :
10699 $as_echo_n "(cached) " >&6
10701 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10702 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10703 acl_cv_prog_gnu_ld
=yes
10705 acl_cv_prog_gnu_ld
=no
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10709 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10710 with_gnu_ld
=$acl_cv_prog_gnu_ld
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10715 $as_echo_n "checking for shared library run path origin... " >&6; }
10716 if ${acl_cv_rpath+:} false
; then :
10717 $as_echo_n "(cached) " >&6
10720 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10723 rm -f .
/conftest.sh
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10728 $as_echo "$acl_cv_rpath" >&6; }
10730 libext
="$acl_cv_libext"
10731 shlibext
="$acl_cv_shlibext"
10732 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10733 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10734 hardcode_direct
="$acl_cv_hardcode_direct"
10735 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10736 # Check whether --enable-rpath was given.
10737 if test "${enable_rpath+set}" = set; then :
10738 enableval
=$enable_rpath; :
10752 acl_save_prefix
="$prefix"
10753 prefix
="$acl_final_prefix"
10754 acl_save_exec_prefix
="$exec_prefix"
10755 exec_prefix
="$acl_final_exec_prefix"
10757 eval additional_includedir
=\"$includedir\"
10758 eval additional_libdir
=\"$libdir\"
10760 exec_prefix
="$acl_save_exec_prefix"
10761 prefix
="$acl_save_prefix"
10764 # Check whether --with-libiconv-prefix was given.
10765 if test "${with_libiconv_prefix+set}" = set; then :
10766 withval
=$with_libiconv_prefix;
10767 if test "X$withval" = "Xno"; then
10770 if test "X$withval" = "X"; then
10772 acl_save_prefix
="$prefix"
10773 prefix
="$acl_final_prefix"
10774 acl_save_exec_prefix
="$exec_prefix"
10775 exec_prefix
="$acl_final_exec_prefix"
10777 eval additional_includedir
=\"$includedir\"
10778 eval additional_libdir
=\"$libdir\"
10780 exec_prefix
="$acl_save_exec_prefix"
10781 prefix
="$acl_save_prefix"
10784 additional_includedir
="$withval/include"
10785 additional_libdir
="$withval/lib"
10792 # Check whether --with-libiconv-type was given.
10793 if test "${with_libiconv_type+set}" = set; then :
10794 withval
=$with_libiconv_type; with_libiconv_type
=$withval
10796 with_libiconv_type
=auto
10799 lib_type
=`eval echo \$with_libiconv_type`
10806 names_already_handled
=
10807 names_next_round
='iconv '
10808 while test -n "$names_next_round"; do
10809 names_this_round
="$names_next_round"
10811 for name
in $names_this_round; do
10813 for n
in $names_already_handled; do
10814 if test "$n" = "$name"; then
10815 already_handled
=yes
10819 if test -z "$already_handled"; then
10820 names_already_handled
="$names_already_handled $name"
10821 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10822 eval value
=\"\
$HAVE_LIB$uppername\"
10823 if test -n "$value"; then
10824 if test "$value" = yes; then
10825 eval value
=\"\
$LIB$uppername\"
10826 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10827 eval value
=\"\
$LTLIB$uppername\"
10828 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10837 if test $use_additional = yes; then
10838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10839 found_dir
="$additional_libdir"
10840 found_so
="$additional_libdir/lib$name.$shlibext"
10841 if test -f "$additional_libdir/lib$name.la"; then
10842 found_la
="$additional_libdir/lib$name.la"
10844 elif test x
$lib_type != xshared
; then
10845 if test -f "$additional_libdir/lib$name.$libext"; then
10846 found_dir
="$additional_libdir"
10847 found_a
="$additional_libdir/lib$name.$libext"
10848 if test -f "$additional_libdir/lib$name.la"; then
10849 found_la
="$additional_libdir/lib$name.la"
10854 if test "X$found_dir" = "X"; then
10855 for x
in $LDFLAGS $LTLIBICONV; do
10857 acl_save_prefix
="$prefix"
10858 prefix
="$acl_final_prefix"
10859 acl_save_exec_prefix
="$exec_prefix"
10860 exec_prefix
="$acl_final_exec_prefix"
10862 exec_prefix
="$acl_save_exec_prefix"
10863 prefix
="$acl_save_prefix"
10867 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10870 found_so
="$dir/lib$name.$shlibext"
10871 if test -f "$dir/lib$name.la"; then
10872 found_la
="$dir/lib$name.la"
10874 elif test x
$lib_type != xshared
; then
10875 if test -f "$dir/lib$name.$libext"; then
10877 found_a
="$dir/lib$name.$libext"
10878 if test -f "$dir/lib$name.la"; then
10879 found_la
="$dir/lib$name.la"
10885 if test "X$found_dir" != "X"; then
10890 if test "X$found_dir" != "X"; then
10891 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10892 if test "X$found_so" != "X"; then
10893 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10894 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10897 for x
in $ltrpathdirs; do
10898 if test "X$x" = "X$found_dir"; then
10903 if test -z "$haveit"; then
10904 ltrpathdirs
="$ltrpathdirs $found_dir"
10906 if test "$hardcode_direct" = yes; then
10907 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10910 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10912 for x
in $rpathdirs; do
10913 if test "X$x" = "X$found_dir"; then
10918 if test -z "$haveit"; then
10919 rpathdirs
="$rpathdirs $found_dir"
10923 for x
in $LDFLAGS $LIBICONV; do
10925 acl_save_prefix
="$prefix"
10926 prefix
="$acl_final_prefix"
10927 acl_save_exec_prefix
="$exec_prefix"
10928 exec_prefix
="$acl_final_exec_prefix"
10930 exec_prefix
="$acl_save_exec_prefix"
10931 prefix
="$acl_save_prefix"
10933 if test "X$x" = "X-L$found_dir"; then
10938 if test -z "$haveit"; then
10939 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10941 if test "$hardcode_minus_L" != no
; then
10942 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10944 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10950 if test "X$found_a" != "X"; then
10951 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10953 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10956 additional_includedir
=
10957 case "$found_dir" in
10959 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10960 additional_includedir
="$basedir/include"
10963 if test "X$additional_includedir" != "X"; then
10964 if test "X$additional_includedir" != "X/usr/include"; then
10966 if test "X$additional_includedir" = "X/usr/local/include"; then
10967 if test -n "$GCC"; then
10969 linux
*) haveit
=yes;;
10973 if test -z "$haveit"; then
10974 for x
in $CPPFLAGS $INCICONV; do
10976 acl_save_prefix
="$prefix"
10977 prefix
="$acl_final_prefix"
10978 acl_save_exec_prefix
="$exec_prefix"
10979 exec_prefix
="$acl_final_exec_prefix"
10981 exec_prefix
="$acl_save_exec_prefix"
10982 prefix
="$acl_save_prefix"
10984 if test "X$x" = "X-I$additional_includedir"; then
10989 if test -z "$haveit"; then
10990 if test -d "$additional_includedir"; then
10991 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10997 if test -n "$found_la"; then
10998 save_libdir
="$libdir"
10999 case "$found_la" in
11000 */* |
*\\*) .
"$found_la" ;;
11001 *) .
"./$found_la" ;;
11003 libdir
="$save_libdir"
11004 for dep
in $dependency_libs; do
11007 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11008 if test "X$additional_libdir" != "X/usr/lib"; then
11010 if test "X$additional_libdir" = "X/usr/local/lib"; then
11011 if test -n "$GCC"; then
11013 linux
*) haveit
=yes;;
11017 if test -z "$haveit"; then
11019 for x
in $LDFLAGS $LIBICONV; do
11021 acl_save_prefix
="$prefix"
11022 prefix
="$acl_final_prefix"
11023 acl_save_exec_prefix
="$exec_prefix"
11024 exec_prefix
="$acl_final_exec_prefix"
11026 exec_prefix
="$acl_save_exec_prefix"
11027 prefix
="$acl_save_prefix"
11029 if test "X$x" = "X-L$additional_libdir"; then
11034 if test -z "$haveit"; then
11035 if test -d "$additional_libdir"; then
11036 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11040 for x
in $LDFLAGS $LTLIBICONV; do
11042 acl_save_prefix
="$prefix"
11043 prefix
="$acl_final_prefix"
11044 acl_save_exec_prefix
="$exec_prefix"
11045 exec_prefix
="$acl_final_exec_prefix"
11047 exec_prefix
="$acl_save_exec_prefix"
11048 prefix
="$acl_save_prefix"
11050 if test "X$x" = "X-L$additional_libdir"; then
11055 if test -z "$haveit"; then
11056 if test -d "$additional_libdir"; then
11057 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11064 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11065 if test "$enable_rpath" != no
; then
11067 for x
in $rpathdirs; do
11068 if test "X$x" = "X$dir"; then
11073 if test -z "$haveit"; then
11074 rpathdirs
="$rpathdirs $dir"
11077 for x
in $ltrpathdirs; do
11078 if test "X$x" = "X$dir"; then
11083 if test -z "$haveit"; then
11084 ltrpathdirs
="$ltrpathdirs $dir"
11089 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11092 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11095 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11096 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11102 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11103 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11104 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11106 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11107 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11114 if test "X$rpathdirs" != "X"; then
11115 if test -n "$hardcode_libdir_separator"; then
11117 for found_dir
in $rpathdirs; do
11118 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11120 acl_save_libdir
="$libdir"
11122 eval flag
=\"$hardcode_libdir_flag_spec\"
11123 libdir
="$acl_save_libdir"
11124 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11126 for found_dir
in $rpathdirs; do
11127 acl_save_libdir
="$libdir"
11128 libdir
="$found_dir"
11129 eval flag
=\"$hardcode_libdir_flag_spec\"
11130 libdir
="$acl_save_libdir"
11131 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11135 if test "X$ltrpathdirs" != "X"; then
11136 for found_dir
in $ltrpathdirs; do
11137 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11148 $as_echo_n "checking for iconv... " >&6; }
11149 if ${am_cv_func_iconv+:} false
; then :
11150 $as_echo_n "(cached) " >&6
11153 am_cv_func_iconv
="no, consider installing GNU libiconv"
11155 am_save_CPPFLAGS
="$CPPFLAGS"
11156 CPPFLAGS
="$CPPFLAGS $INCICONV"
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 #include <stdlib.h>
11164 iconv_t cd = iconv_open("","");
11165 iconv(cd,NULL,NULL,NULL,NULL);
11171 if ac_fn_cxx_try_link
"$LINENO"; then :
11172 am_cv_func_iconv
=yes
11174 rm -f core conftest.err conftest.
$ac_objext \
11175 conftest
$ac_exeext conftest.
$ac_ext
11176 CPPFLAGS
="$am_save_CPPFLAGS"
11178 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11179 for _libs
in .libs _libs
; do
11180 am_save_CPPFLAGS
="$CPPFLAGS"
11181 am_save_LIBS
="$LIBS"
11182 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11183 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <stdlib.h>
11191 iconv_t cd = iconv_open("","");
11192 iconv(cd,NULL,NULL,NULL,NULL);
11198 if ac_fn_cxx_try_link
"$LINENO"; then :
11199 INCICONV
="-I../libiconv/include"
11200 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11201 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11202 am_cv_lib_iconv
=yes
11203 am_cv_func_iconv
=yes
11205 rm -f core conftest.err conftest.
$ac_objext \
11206 conftest
$ac_exeext conftest.
$ac_ext
11207 CPPFLAGS
="$am_save_CPPFLAGS"
11208 LIBS
="$am_save_LIBS"
11209 if test "$am_cv_func_iconv" = "yes"; then
11215 if test "$am_cv_func_iconv" != yes; then
11216 am_save_CPPFLAGS
="$CPPFLAGS"
11217 am_save_LIBS
="$LIBS"
11218 CPPFLAGS
="$CPPFLAGS $INCICONV"
11219 LIBS
="$LIBS $LIBICONV"
11220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 #include <stdlib.h>
11227 iconv_t cd = iconv_open("","");
11228 iconv(cd,NULL,NULL,NULL,NULL);
11234 if ac_fn_cxx_try_link
"$LINENO"; then :
11235 am_cv_lib_iconv
=yes
11236 am_cv_func_iconv
=yes
11238 rm -f core conftest.err conftest.
$ac_objext \
11239 conftest
$ac_exeext conftest.
$ac_ext
11240 CPPFLAGS
="$am_save_CPPFLAGS"
11241 LIBS
="$am_save_LIBS"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11246 $as_echo "$am_cv_func_iconv" >&6; }
11247 if test "$am_cv_func_iconv" = yes; then
11249 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11252 if test "$am_cv_lib_iconv" = yes; then
11254 for element
in $INCICONV; do
11256 for x
in $CPPFLAGS; do
11258 acl_save_prefix
="$prefix"
11259 prefix
="$acl_final_prefix"
11260 acl_save_exec_prefix
="$exec_prefix"
11261 exec_prefix
="$acl_final_exec_prefix"
11263 exec_prefix
="$acl_save_exec_prefix"
11264 prefix
="$acl_save_prefix"
11266 if test "X$x" = "X$element"; then
11271 if test -z "$haveit"; then
11272 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11277 $as_echo_n "checking how to link with libiconv... " >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11279 $as_echo "$LIBICONV" >&6; }
11287 if test "$am_cv_func_iconv" = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11289 $as_echo_n "checking for iconv declaration... " >&6; }
11290 if ${am_cv_proto_iconv+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 #include <stdlib.h>
11303 #if defined(__STDC__) || defined(__cplusplus)
11304 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11317 if ac_fn_cxx_try_compile
"$LINENO"; then :
11318 am_cv_proto_iconv_arg1
=""
11320 am_cv_proto_iconv_arg1
="const"
11322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11323 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11326 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11328 }$am_cv_proto_iconv" >&5
11330 }$am_cv_proto_iconv" >&6; }
11332 cat >>confdefs.h
<<_ACEOF
11333 #define ICONV_CONST $am_cv_proto_iconv_arg1
11339 # Until we have in-tree GNU iconv:
11341 if test -f "$LTLIBICONV"; then
11342 LIBICONV_DEP
=$LTLIBICONV
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11349 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11350 $as_echo_n "(cached) " >&6
11352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <locale.h>
11363 if ac_fn_cxx_try_link
"$LINENO"; then :
11364 am_cv_val_LC_MESSAGES
=yes
11366 am_cv_val_LC_MESSAGES
=no
11368 rm -f core conftest.err conftest.
$ac_objext \
11369 conftest
$ac_exeext conftest.
$ac_ext
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11373 if test $am_cv_val_LC_MESSAGES = yes; then
11375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11383 if ${am_cv_langinfo_codeset+:} false
; then :
11384 $as_echo_n "(cached) " >&6
11386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388 #include <langinfo.h>
11392 char* cs = nl_langinfo(CODESET);
11397 if ac_fn_cxx_try_link
"$LINENO"; then :
11398 am_cv_langinfo_codeset
=yes
11400 am_cv_langinfo_codeset
=no
11402 rm -f core conftest.err conftest.
$ac_objext \
11403 conftest
$ac_exeext conftest.
$ac_ext
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11407 $as_echo "$am_cv_langinfo_codeset" >&6; }
11408 if test $am_cv_langinfo_codeset = yes; then
11410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11415 # We will need to find libiberty.h and ansidecl.h
11416 saved_CFLAGS
="$CFLAGS"
11417 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11418 saved_CXXFLAGS
="$CXXFLAGS"
11419 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11421 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11422 # normal autoconf function for these. But force definition of
11423 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11424 # basename handling in libiberty.h.
11425 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11426 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11427 #undef HAVE_DECL_BASENAME
11428 #define HAVE_DECL_BASENAME 1
11429 #include \"ansidecl.h\"
11430 #include \"system.h\"
11432 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11438 cat >>confdefs.h
<<_ACEOF
11439 #define HAVE_DECL_BASENAME $ac_have_decl
11441 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11442 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11443 #undef HAVE_DECL_BASENAME
11444 #define HAVE_DECL_BASENAME 1
11445 #include \"ansidecl.h\"
11446 #include \"system.h\"
11448 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11454 cat >>confdefs.h
<<_ACEOF
11455 #define HAVE_DECL_STRSTR $ac_have_decl
11459 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11460 madvise stpcpy strnlen strsignal strverscmp \
11461 strtol strtoul strtoll strtoull setenv unsetenv \
11462 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11463 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
11465 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11468 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11469 $as_echo_n "(cached) " >&6
11471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 #define $ac_tr_decl 1
11476 #include "ansidecl.h"
11477 #include "system.h"
11483 char *(*pfn) = (char *(*)) $ac_func ;
11489 if ac_fn_cxx_try_compile
"$LINENO"; then :
11490 eval "gcc_cv_have_decl_$ac_func=yes"
11492 eval "gcc_cv_have_decl_$ac_func=no"
11494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11497 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11500 #define $ac_tr_decl 1
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11506 #define $ac_tr_decl 0
11514 for ac_func
in getrlimit setrlimit getrusage
11516 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11518 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11519 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11520 $as_echo_n "(cached) " >&6
11522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11525 #define $ac_tr_decl 1
11527 #include "ansidecl.h"
11528 #include "system.h"
11529 #ifdef HAVE_SYS_RESOURCE_H
11530 #include <sys/resource.h>
11538 char *(*pfn) = (char *(*)) $ac_func ;
11544 if ac_fn_cxx_try_compile
"$LINENO"; then :
11545 eval "gcc_cv_have_decl_$ac_func=yes"
11547 eval "gcc_cv_have_decl_$ac_func=no"
11549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11552 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11555 #define $ac_tr_decl 1
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11561 #define $ac_tr_decl 0
11569 for ac_func
in mallinfo mallinfo2
11571 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11573 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11574 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11575 $as_echo_n "(cached) " >&6
11577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 #define $ac_tr_decl 1
11582 #include "ansidecl.h"
11583 #include "system.h"
11584 #ifdef HAVE_MALLOC_H
11585 #include <malloc.h>
11593 char *(*pfn) = (char *(*)) $ac_func ;
11599 if ac_fn_cxx_try_compile
"$LINENO"; then :
11600 eval "gcc_cv_have_decl_$ac_func=yes"
11602 eval "gcc_cv_have_decl_$ac_func=no"
11604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11610 #define $ac_tr_decl 1
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11616 #define $ac_tr_decl 0
11624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11627 #include "ansidecl.h"
11628 #include "system.h"
11629 #ifdef HAVE_SYS_RESOURCE_H
11630 #include <sys/resource.h>
11641 if ac_fn_cxx_try_compile
"$LINENO"; then :
11645 $as_echo "#define rlim_t long" >>confdefs.h
11648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11650 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11651 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11652 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11653 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11654 for ac_func
in ldgetname
11656 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11658 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11659 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11660 $as_echo_n "(cached) " >&6
11662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11665 #define $ac_tr_decl 1
11667 #include "ansidecl.h"
11668 #include "system.h"
11669 #ifdef HAVE_LDFCN_H
11680 char *(*pfn) = (char *(*)) $ac_func ;
11686 if ac_fn_cxx_try_compile
"$LINENO"; then :
11687 eval "gcc_cv_have_decl_$ac_func=yes"
11689 eval "gcc_cv_have_decl_$ac_func=no"
11691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11694 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11696 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11697 #define $ac_tr_decl 1
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11703 #define $ac_tr_decl 0
11711 for ac_func
in times
11713 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11716 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11717 $as_echo_n "(cached) " >&6
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 #define $ac_tr_decl 1
11724 #include "ansidecl.h"
11725 #include "system.h"
11726 #ifdef HAVE_SYS_TIMES_H
11727 #include <sys/times.h>
11735 char *(*pfn) = (char *(*)) $ac_func ;
11741 if ac_fn_cxx_try_compile
"$LINENO"; then :
11742 eval "gcc_cv_have_decl_$ac_func=yes"
11744 eval "gcc_cv_have_decl_$ac_func=no"
11746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11752 #define $ac_tr_decl 1
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11758 #define $ac_tr_decl 0
11766 for ac_func
in sigaltstack
11768 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11770 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11771 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11772 $as_echo_n "(cached) " >&6
11774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11777 #define $ac_tr_decl 1
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #include <signal.h>
11788 char *(*pfn) = (char *(*)) $ac_func ;
11794 if ac_fn_cxx_try_compile
"$LINENO"; then :
11795 eval "gcc_cv_have_decl_$ac_func=yes"
11797 eval "gcc_cv_have_decl_$ac_func=no"
11799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11802 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11805 #define $ac_tr_decl 1
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11811 #define $ac_tr_decl 0
11819 # More time-related stuff.
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11821 $as_echo_n "checking for struct tms... " >&6; }
11822 if ${ac_cv_struct_tms+:} false
; then :
11823 $as_echo_n "(cached) " >&6
11826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 #include "ansidecl.h"
11830 #include "system.h"
11831 #ifdef HAVE_SYS_TIMES_H
11832 #include <sys/times.h>
11843 if ac_fn_cxx_try_compile
"$LINENO"; then :
11844 ac_cv_struct_tms
=yes
11846 ac_cv_struct_tms
=no
11848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11851 $as_echo "$ac_cv_struct_tms" >&6; }
11852 if test $ac_cv_struct_tms = yes; then
11854 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11858 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11859 # revisit after autoconf 2.50.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11861 $as_echo_n "checking for clock_t... " >&6; }
11862 if ${gcc_cv_type_clock_t+:} false
; then :
11863 $as_echo_n "(cached) " >&6
11866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11869 #include "ansidecl.h"
11870 #include "system.h"
11880 if ac_fn_cxx_try_compile
"$LINENO"; then :
11881 gcc_cv_type_clock_t
=yes
11883 gcc_cv_type_clock_t
=no
11885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11888 $as_echo "$gcc_cv_type_clock_t" >&6; }
11889 if test $gcc_cv_type_clock_t = yes; then
11891 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11895 # Check if F_SETLKW is supported by fcntl.
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11897 $as_echo_n "checking for F_SETLKW... " >&6; }
11898 if ${ac_cv_f_setlkw+:} false
; then :
11899 $as_echo_n "(cached) " >&6
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11915 return fcntl (1, F_SETLKW, &fl);
11920 if ac_fn_cxx_try_compile
"$LINENO"; then :
11925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11928 $as_echo "$ac_cv_f_setlkw" >&6; }
11929 if test $ac_cv_f_setlkw = yes; then
11931 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11935 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11936 CFLAGS
="$saved_CFLAGS"
11937 CXXFLAGS
="$saved_CXXFLAGS"
11939 # mkdir takes a single argument on some systems.
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11941 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11942 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11943 $as_echo_n "(cached) " >&6
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 #include <sys/types.h>
11949 #ifdef HAVE_SYS_STAT_H
11950 # include <sys/stat.h>
11952 #ifdef HAVE_UNISTD_H
11953 # include <unistd.h>
11955 #ifdef HAVE_DIRECT_H
11956 # include <direct.h>
11966 if ac_fn_cxx_try_compile
"$LINENO"; then :
11967 gcc_cv_mkdir_takes_one_arg
=no
11969 gcc_cv_mkdir_takes_one_arg
=yes
11971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11974 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11975 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11977 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11988 # With Setjmp/Longjmp based exception handling.
11989 # Check whether --enable-sjlj-exceptions was given.
11990 if test "${enable_sjlj_exceptions+set}" = set; then :
11991 enableval
=$enable_sjlj_exceptions; case $target in
11993 if test $enableval != yes; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11995 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12000 force_sjlj_exceptions
=yes
12004 force_sjlj_exceptions
=yes
12008 force_sjlj_exceptions
=yes
12012 force_sjlj_exceptions
=no
12017 if test $force_sjlj_exceptions = yes; then
12018 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12020 cat >>confdefs.h
<<_ACEOF
12021 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12026 # --------------------------------------------------------
12027 # Build, host, and target specific configuration fragments
12028 # --------------------------------------------------------
12030 # Collect build-machine-specific information.
12031 .
${srcdir}/config.build ||
exit 1
12033 # Collect host-machine-specific information.
12034 .
${srcdir}/config.
host ||
exit 1
12038 # Collect target-machine-specific information.
12039 .
${srcdir}/config.gcc ||
exit 1
12041 extra_objs
="${host_extra_objs} ${extra_objs}"
12042 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12044 # Default the target-machine variables that were not explicitly set.
12045 if test x
"$tm_file" = x
12046 then tm_file
=$cpu_type/$cpu_type.h
; fi
12048 if test x
"$extra_headers" = x
12049 then extra_headers
=; fi
12051 if test x
$md_file = x
12052 then md_file
=$cpu_type/$cpu_type.md
; fi
12054 if test x
$out_file = x
12055 then out_file
=$cpu_type/$cpu_type.c
; fi
12057 if test x
"$tmake_file" = x
12058 then tmake_file
=$cpu_type/t-
$cpu_type
12061 # Support --enable-initfini-array.
12062 if test x
$enable_initfini_array != xno
; then
12063 tm_file
="${tm_file} initfini-array.h"
12066 if test x
"$dwarf2" = xyes
12067 then tm_file
="$tm_file tm-dwarf2.h"
12070 # Say what files are being used for the output code and MD file.
12071 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12072 echo "Using \`$srcdir/config/$md_file' as machine description file."
12074 # If any of the xm_file variables contain nonexistent files, warn
12075 # about them and drop them.
12078 for x
in $build_xm_file; do
12079 if test -f $srcdir/config
/$x
12081 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12082 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12085 build_xm_file
="$bx"
12088 for x
in $host_xm_file; do
12089 if test -f $srcdir/config
/$x
12091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12098 for x
in $xm_file; do
12099 if test -f $srcdir/config
/$x
12101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12108 for f
in $tm_file; do
12111 if test $count = ax
; then
12112 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12114 echo "Using the following target machine macro files:"
12115 for f
in $tm_file; do
12116 echo " $srcdir/config/$f"
12120 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12122 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12126 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12128 cat >>confdefs.h
<<_ACEOF
12129 #define HAVE_GNU_LD $gnu_ld_bool
12133 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12135 cat >>confdefs.h
<<_ACEOF
12136 #define HAVE_GNU_AS $gnu_as_bool
12141 for f
in $host_xm_file; do
12144 if test $count = a
; then
12146 elif test $count = ax
; then
12147 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12149 echo "Using the following host machine macro files:"
12150 for f
in $host_xm_file; do
12151 echo " $srcdir/config/$f"
12154 echo "Using ${out_host_hook_obj} for host machine hooks."
12156 if test "$host_xm_file" != "$build_xm_file"; then
12158 for f
in $build_xm_file; do
12161 if test $count = a
; then
12163 elif test $count = ax
; then
12164 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12166 echo "Using the following build machine macro files:"
12167 for f
in $build_xm_file; do
12168 echo " $srcdir/config/$f"
12173 if test -n "$configured_native_system_header_dir"; then
12174 native_system_header_dir
=$configured_native_system_header_dir
12176 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12180 powerpc
*-*-darwin*)
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12182 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12183 if ${gcc_cv_mcontext_underscores+:} false
; then :
12184 $as_echo_n "(cached) " >&6
12186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 #include <sys/cdefs.h>
12190 #include <sys/signal.h>
12191 #include <ucontext.h>
12192 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12195 if ac_fn_cxx_try_compile
"$LINENO"; then :
12196 gcc_cv_mcontext_underscores
=no
12198 gcc_cv_mcontext_underscores
=yes
12200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12203 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12204 if test $gcc_cv_mcontext_underscores = yes; then
12206 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12216 # Check if a valid thread package
12217 case ${enable_threads} in
12220 target_thread_file
='single'
12224 target_thread_file
='single'
12226 aix | dce | lynx | mipssde | posix | rtems | \
12227 single | tpf | vxworks | win32
)
12228 target_thread_file
=${enable_threads}
12231 echo "${enable_threads} is an unknown thread package" 1>&2
12236 if test x
${thread_file} = x
; then
12237 # No thread file set by target-specific clauses in config.gcc,
12238 # so use file chosen by default logic above
12239 thread_file
=${target_thread_file}
12247 if test x
$enable___cxa_atexit = xyes || \
12248 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12249 if test x
$host = x
$target; then
12251 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12252 # keyed to flag_use_cxa_atexit
12260 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12261 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12264 echo "__cxa_atexit can't be enabled on this target"
12270 # We can't check for __cxa_atexit when building a cross, so assume
12274 if test x
$use_cxa_atexit = xyes
; then
12276 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12283 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12286 cat >>confdefs.h
<<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12292 # Convert extra_options into a form suitable for Makefile use.
12295 for f
in $extra_options; do
12296 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12297 all_opt_files
="$all_opt_files $srcdir/config/$f"
12301 # auto-host.h is the file containing items generated by autoconf and is
12302 # the first file included by config.h.
12303 # If host=build, it is correct to have bconfig include auto-host.h
12304 # as well. If host!=build, we are in error and need to do more
12305 # work to find out the build config parameters.
12306 if test x
$host = x
$build
12308 build_auto
=auto-host.h
12309 HAVE_AUTO_BUILD
='# '
12311 # We create a subdir, then run autoconf in the subdir.
12312 # To prevent recursion we set host and build for the new
12313 # invocation of configure to the build for this invocation
12320 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12321 *) realsrcdir
=..
/${srcdir};;
12323 # Clearing GMPINC is necessary to prevent host headers being
12324 # used by the build compiler. Defining GENERATOR_FILE stops
12325 # system.h from including gmp.h.
12326 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12327 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12328 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12329 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12330 ${realsrcdir}/configure \
12331 --enable-languages=${enable_languages-all} \
12332 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12333 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12334 --target=$target_alias --host=$build_alias \
12335 --build=$build_alias ||
exit # retaining $tempdir
12337 # We just finished tests for the build machine, so rename
12338 # the file auto-build.h in the gcc directory.
12339 mv auto-host.h ..
/auto-build.h
12342 build_auto
=auto-build.h
12348 tm_file
="${tm_file} defaults.h"
12349 tm_p_file
="${tm_p_file} tm-preds.h"
12350 tm_d_file
="${tm_d_file} defaults.h"
12351 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12352 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12353 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12354 # put this back in temporarily.
12355 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12361 # Compile in configure arguments.
12362 if test -f configargs.h
; then
12363 # Being re-configured.
12364 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12365 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12366 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12367 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12370 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12373 # Double all backslashes and backslash all quotes to turn
12374 # gcc_config_arguments into a C string.
12375 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12376 $gcc_config_arguments
12378 gcc_config_arguments_str
=`cat conftest.out`
12381 cat > configargs.h
<<EOF
12382 /* Generated automatically. */
12383 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12384 static const char thread_model[] = "$thread_file";
12386 static const struct {
12387 const char *name, *value;
12388 } configure_default_options[] = $configure_default_options;
12391 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12392 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12393 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12394 if test -f $srcdir/REVISION
; then
12395 gcc_REVISION
=`cat $srcdir/REVISION`
12399 cat > plugin-version.h
<<EOF
12400 #include "configargs.h"
12402 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12403 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12404 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12405 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12407 static char basever[] = "$gcc_BASEVER";
12408 static char datestamp[] = "$gcc_DATESTAMP";
12409 static char devphase[] = "$gcc_DEVPHASE";
12410 static char revision[] = "$gcc_REVISION";
12412 /* FIXME plugins: We should make the version information more precise.
12413 One way to do is to add a checksum. */
12415 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12416 devphase, revision,
12417 configuration_arguments};
12420 # Determine what GCC version number to use in filesystem paths.
12422 get_gcc_base_ver
="cat"
12424 # Check whether --with-gcc-major-version-only was given.
12425 if test "${with_gcc_major_version_only+set}" = set; then :
12426 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12427 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12435 # Internationalization
12436 # If we haven't got the data from the intl directory,
12437 # assume NLS is disabled.
12446 if test -f ..
/intl
/config.intl
; then
12447 . ..
/intl
/config.intl
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12450 $as_echo_n "checking whether NLS is requested... " >&6; }
12451 if test x
"$USE_NLS" != xyes
; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12458 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12462 $as_echo_n "checking for catalogs to be installed... " >&6; }
12463 # Look for .po and .gmo files in the source directory.
12466 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12467 # If there aren't any .gmo files the shell will give us the
12468 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12470 case "$cat" in *\
**)
12473 # The quadruple backslash is collapsed to a double backslash
12474 # by the backticks, then collapsed again by the double quotes,
12475 # leaving us with one backslash in the sed expression (right
12476 # before the dot that mustn't act as a wildcard).
12477 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12478 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12479 # The user is allowed to set LINGUAS to a list of languages to
12480 # install catalogs for. If it's empty that means "all of them."
12481 if test "x$LINGUAS" = x
; then
12482 CATALOGS
="$CATALOGS $cat"
12483 XLINGUAS
="$XLINGUAS $lang"
12485 case "$LINGUAS" in *$lang*)
12486 CATALOGS
="$CATALOGS $cat"
12487 XLINGUAS
="$XLINGUAS $lang"
12492 LINGUAS
="$XLINGUAS"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12494 $as_echo "$LINGUAS" >&6; }
12507 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12508 # -liconv on the link line twice.
12509 case "$LIBINTL" in *$LIBICONV*)
12513 # Check whether --enable-secureplt was given.
12514 if test "${enable_secureplt+set}" = set; then :
12515 enableval
=$enable_secureplt;
12519 # Check whether --enable-mingw-wildcard was given.
12520 if test "${enable_mingw_wildcard+set}" = set; then :
12521 enableval
=$enable_mingw_wildcard;
12523 enable_mingw_wildcard
=platform
12526 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12528 cat >>confdefs.h
<<_ACEOF
12529 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12534 # Check whether --enable-large-address-aware was given.
12535 if test "${enable_large_address_aware+set}" = set; then :
12536 enableval
=$enable_large_address_aware;
12539 if test x
"$enable_large_address_aware" = xyes
; then :
12541 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12545 # Check whether --enable-leading-mingw64-underscores was given.
12546 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12547 enableval
=$enable_leading_mingw64_underscores;
12550 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12552 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12556 # Check whether --enable-cld was given.
12557 if test "${enable_cld+set}" = set; then :
12558 enableval
=$enable_cld;
12564 # Check whether --enable-frame-pointer was given.
12565 if test "${enable_frame_pointer+set}" = set; then :
12566 enableval
=$enable_frame_pointer;
12570 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12571 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12572 enable_frame_pointer
=no
12575 enable_frame_pointer
=yes
12583 i
[34567]86-*-* | x86_64-
*-*)
12584 if test "x$enable_cld" = xyes
; then
12585 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12587 if test "x$enable_frame_pointer" = xyes
; then
12588 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12593 # Windows32 Registry support for specifying GCC installation paths.
12594 # Check whether --enable-win32-registry was given.
12595 if test "${enable_win32_registry+set}" = set; then :
12596 enableval
=$enable_win32_registry;
12601 win32 | pe | cygwin
* | mingw32
*)
12602 if test "x$enable_win32_registry" != xno
; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12604 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12605 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12606 $as_echo_n "(cached) " >&6
12608 ac_func_search_save_LIBS
=$LIBS
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12618 char RegOpenKeyExA ();
12622 return RegOpenKeyExA ();
12627 for ac_lib
in '' advapi32
; do
12628 if test -z "$ac_lib"; then
12629 ac_res
="none required"
12632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12634 if ac_fn_cxx_try_link
"$LINENO"; then :
12635 ac_cv_search_RegOpenKeyExA
=$ac_res
12637 rm -f core conftest.err conftest.
$ac_objext \
12639 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12643 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12646 ac_cv_search_RegOpenKeyExA
=no
12648 rm conftest.
$ac_ext
12649 LIBS
=$ac_func_search_save_LIBS
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12652 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12653 ac_res
=$ac_cv_search_RegOpenKeyExA
12654 if test "$ac_res" != no
; then :
12655 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12658 enable_win32_registry
=no
12663 if test "x$enable_win32_registry" != xno
; then
12665 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12668 if test "x$enable_win32_registry" != xyes \
12669 && test "x$enable_win32_registry" != x
; then
12671 cat >>confdefs.h
<<_ACEOF
12672 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12680 # Get an absolute path to the GCC top-level source directory
12681 holddir
=`${PWDCMD-pwd}`
12683 topdir
=`${PWDCMD-pwd}`
12686 # Conditionalize the makefile for this host machine.
12688 for f
in ${host_xmake_file}
12690 if test -f ${srcdir}/config
/$f
12692 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12696 # Conditionalize the makefile for this target machine.
12698 for f
in ${tmake_file}
12700 if test -f ${srcdir}/config
/$f
12702 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12705 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12707 out_object_file
=`basename $out_file .c`.o
12708 common_out_object_file
=`basename $common_out_file .c`.o
12710 tm_file_list
="options.h"
12711 tm_include_list
="options.h insn-constants.h"
12712 for f
in $tm_file; do
12715 f
=`echo $f | sed 's/^..//'`
12716 tm_file_list
="${tm_file_list} $f"
12717 tm_include_list
="${tm_include_list} $f"
12720 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12721 tm_include_list
="${tm_include_list} $f"
12724 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12725 tm_include_list
="${tm_include_list} config/$f"
12732 for f
in $tm_p_file; do
12735 tm_p_file_list
="${tm_p_file_list} $f"
12736 tm_p_include_list
="${tm_p_include_list} $f"
12739 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12740 tm_p_include_list
="${tm_p_include_list} config/$f"
12745 tm_d_include_list
="options.h insn-constants.h"
12746 for f
in $tm_d_file; do
12749 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12750 tm_d_include_list
="${tm_d_include_list} $f"
12753 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12754 tm_d_include_list
="${tm_d_include_list} config/$f"
12761 for f
in $xm_file; do
12764 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12765 xm_include_list
="${xm_include_list} $f"
12768 xm_file_list
="${xm_file_list} $f"
12769 xm_include_list
="${xm_include_list} $f"
12772 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12773 xm_include_list
="${xm_include_list} config/$f"
12779 host_xm_include_list
=
12780 for f
in $host_xm_file; do
12783 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12784 host_xm_include_list
="${host_xm_include_list} $f"
12787 host_xm_file_list
="${host_xm_file_list} $f"
12788 host_xm_include_list
="${host_xm_include_list} $f"
12791 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12792 host_xm_include_list
="${host_xm_include_list} config/$f"
12797 build_xm_file_list
=
12798 for f
in $build_xm_file; do
12801 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12802 build_xm_include_list
="${build_xm_include_list} $f"
12804 auto-build.h | auto-host.h
)
12805 build_xm_file_list
="${build_xm_file_list} $f"
12806 build_xm_include_list
="${build_xm_include_list} $f"
12809 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12810 build_xm_include_list
="${build_xm_include_list} config/$f"
12815 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12816 # cross-compiler which does not use the native headers and libraries.
12817 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12820 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12821 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12823 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12824 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12825 if test "x$with_build_sysroot" != x
; then
12826 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12828 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12831 if test x
$host != x
$target
12833 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12835 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12836 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12837 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12840 if test "x$with_build_sysroot" != "x"; then
12841 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12842 elif test "x$with_sysroot" = x
; then
12843 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12844 elif test "x$with_sysroot" = xyes
; then
12845 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12847 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12850 target_header_dir
=${native_system_header_dir}
12853 # If this is a cross-compiler that does not
12854 # have its own set of headers then define
12857 # If this is using newlib, without having the headers available now,
12858 # then define inhibit_libc in LIBGCC2_CFLAGS.
12859 # This prevents libgcc2 from containing any code which requires libc
12861 : ${inhibit_libc=false}
12862 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12863 test x
$with_newlib = xyes
; } &&
12864 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12869 # When building gcc with a cross-compiler, we need to adjust things so
12870 # that the generator programs are still built with the native compiler.
12871 # Also, we cannot run fixincludes.
12873 # These are the normal (build=host) settings:
12874 CC_FOR_BUILD
='$(CC)'
12875 CXX_FOR_BUILD
='$(CXX)'
12876 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12877 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12878 BUILD_LDFLAGS
='$(LDFLAGS)'
12879 STMP_FIXINC
=stmp-fixinc
12881 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12882 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12884 # And these apply if build != host, or we are generating coverage data
12885 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12887 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12888 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12889 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12891 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12892 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12893 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12894 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12899 # Expand extra_headers to include complete path.
12900 # This substitutes for lots of t-* files.
12901 extra_headers_list
=
12902 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12903 for file in ${extra_headers} ; do
12904 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12907 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12908 if test x
"$use_gcc_tgmath" = xyes
12909 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12912 # Define collect2 in Makefile.
12913 case $host_can_use_collect2 in
12915 *) collect2
='collect2$(exeext)' ;;
12919 # Add a definition of USE_COLLECT2 if system wants one.
12920 case $use_collect2 in
12921 no
) use_collect2
= ;;
12924 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12925 xm_defines
="${xm_defines} USE_COLLECT2"
12926 case $host_can_use_collect2 in
12928 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12935 cat >>confdefs.h
<<_ACEOF
12936 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12940 # ---------------------------
12941 # Assembler & linker features
12942 # ---------------------------
12944 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12945 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12946 # However when ld-new is first executed from the build tree, libtool will
12947 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12948 # to the build tree. While doing this we need to use the previous-stage
12949 # linker, or we have an infinite loop. The presence of a shell script as
12950 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12951 # the gcc/collect-ld script. So we need to know how libtool works, or
12952 # exec-tool will fail.
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12963 macro_version
='2.2.7a'
12964 macro_revision
='1.3134'
12978 ltmain
="$ac_aux_dir/ltmain.sh"
12980 # Backslashify metacharacters that are still active within
12981 # double-quoted strings.
12982 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12984 # Same as above, but do not quote variable references.
12985 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12987 # Sed substitution to delay expansion of an escaped shell variable in a
12988 # double_quote_subst'ed string.
12989 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12991 # Sed substitution to delay expansion of an escaped single quote.
12992 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12994 # Sed substitution to avoid accidental globbing in evaled expressions
12995 no_glob_subst
='s/\*/\\\*/g'
12997 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13002 $as_echo_n "checking how to print strings... " >&6; }
13003 # Test print first, because it will be a builtin if present.
13004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13010 # Use this function as a fallback that always works.
13011 func_fallback_echo ()
13013 eval 'cat <<_LTECHO_EOF
13017 ECHO='func_fallback_echo
'
13020 # func_echo_all arg...
13021 # Invoke $ECHO with all args, space-separated.
13028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13029 $as_echo "printf" >&6; } ;;
13030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13031 $as_echo "print -r" >&6; } ;;
13032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13033 $as_echo "cat" >&6; } ;;
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13051 if ${ac_cv_path_SED+:} false; then :
13052 $as_echo_n "(cached) " >&6
13054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13055 for ac_i in 1 2 3 4 5 6 7; do
13056 ac_script="$ac_script$as_nl$ac_script"
13058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13059 { ac_script=; unset ac_script;}
13060 if test -z "$SED"; then
13061 ac_path_SED_found=false
13062 # Loop through the user's path and
test for each of PROGNAME-LIST
13063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13064 for as_dir
in $PATH
13067 test -z "$as_dir" && as_dir
=.
13068 for ac_prog
in sed gsed
; do
13069 for ac_exec_ext
in '' $ac_executable_extensions; do
13070 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13071 as_fn_executable_p
"$ac_path_SED" ||
continue
13072 # Check for GNU ac_path_SED and select it if it is found.
13073 # Check for GNU $ac_path_SED
13074 case `"$ac_path_SED" --version 2>&1` in
13076 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13079 $as_echo_n 0123456789 >"conftest.in"
13082 cat "conftest.in" "conftest.in" >"conftest.tmp"
13083 mv "conftest.tmp" "conftest.in"
13084 cp "conftest.in" "conftest.nl"
13085 $as_echo '' >> "conftest.nl"
13086 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13087 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13088 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13089 if test $ac_count -gt ${ac_path_SED_max-0}; then
13090 # Best one so far, save it but keep looking for a better one
13091 ac_cv_path_SED
="$ac_path_SED"
13092 ac_path_SED_max
=$ac_count
13094 # 10*(2^10) chars as input seems more than enough
13095 test $ac_count -gt 10 && break
13097 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13100 $ac_path_SED_found && break 3
13105 if test -z "$ac_cv_path_SED"; then
13106 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13109 ac_cv_path_SED
=$SED
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13114 $as_echo "$ac_cv_path_SED" >&6; }
13115 SED
="$ac_cv_path_SED"
13118 test -z "$SED" && SED
=sed
13119 Xsed
="$SED -e 1s/^X//"
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13132 $as_echo_n "checking for fgrep... " >&6; }
13133 if ${ac_cv_path_FGREP+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13137 then ac_cv_path_FGREP
="$GREP -F"
13139 if test -z "$FGREP"; then
13140 ac_path_FGREP_found
=false
13141 # Loop through the user's path and test for each of PROGNAME-LIST
13142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13143 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13146 test -z "$as_dir" && as_dir
=.
13147 for ac_prog
in fgrep
; do
13148 for ac_exec_ext
in '' $ac_executable_extensions; do
13149 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13150 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13151 # Check for GNU ac_path_FGREP and select it if it is found.
13152 # Check for GNU $ac_path_FGREP
13153 case `"$ac_path_FGREP" --version 2>&1` in
13155 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13158 $as_echo_n 0123456789 >"conftest.in"
13161 cat "conftest.in" "conftest.in" >"conftest.tmp"
13162 mv "conftest.tmp" "conftest.in"
13163 cp "conftest.in" "conftest.nl"
13164 $as_echo 'FGREP' >> "conftest.nl"
13165 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13166 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13167 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13169 # Best one so far, save it but keep looking for a better one
13170 ac_cv_path_FGREP
="$ac_path_FGREP"
13171 ac_path_FGREP_max
=$ac_count
13173 # 10*(2^10) chars as input seems more than enough
13174 test $ac_count -gt 10 && break
13176 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13179 $ac_path_FGREP_found && break 3
13184 if test -z "$ac_cv_path_FGREP"; then
13185 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13188 ac_cv_path_FGREP
=$FGREP
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13194 $as_echo "$ac_cv_path_FGREP" >&6; }
13195 FGREP
="$ac_cv_path_FGREP"
13198 test -z "$GREP" && GREP
=grep
13218 # Check whether --with-gnu-ld was given.
13219 if test "${with_gnu_ld+set}" = set; then :
13220 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13226 if test "$GCC" = yes; then
13227 # Check if gcc -print-prog-name=ld gives a path.
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13229 $as_echo_n "checking for ld used by $CC... " >&6; }
13232 # gcc leaves a trailing carriage return which upsets mingw
13233 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13235 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13238 # Accept absolute paths.
13240 re_direlt
='/[^/][^/]*/\.\./'
13241 # Canonicalize the pathname of ld
13242 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13243 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13244 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13246 test -z "$LD" && LD
="$ac_prog"
13249 # If it fails, then pretend we aren't using GCC.
13253 # If it is relative, then search for the first ld in PATH.
13254 with_gnu_ld
=unknown
13257 elif test "$with_gnu_ld" = yes; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13259 $as_echo_n "checking for GNU ld... " >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13262 $as_echo_n "checking for non-GNU ld... " >&6; }
13264 if ${lt_cv_path_LD+:} false
; then :
13265 $as_echo_n "(cached) " >&6
13267 if test -z "$LD"; then
13268 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13269 for ac_dir
in $PATH; do
13271 test -z "$ac_dir" && ac_dir
=.
13272 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13273 lt_cv_path_LD
="$ac_dir/$ac_prog"
13274 # Check to see if the program is GNU ld. I'd rather use --version,
13275 # but apparently some variants of GNU ld only accept -v.
13276 # Break only if it was the GNU/non-GNU ld that we prefer.
13277 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13278 *GNU
* |
*'with BFD'*)
13279 test "$with_gnu_ld" != no
&& break
13282 test "$with_gnu_ld" != yes && break
13289 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13293 LD
="$lt_cv_path_LD"
13294 if test -n "$LD"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13296 $as_echo "$LD" >&6; }
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13301 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13304 if ${lt_cv_prog_gnu_ld+:} false
; then :
13305 $as_echo_n "(cached) " >&6
13307 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13308 case `$LD -v 2>&1 </dev/null` in
13309 *GNU
* |
*'with BFD'*)
13310 lt_cv_prog_gnu_ld
=yes
13313 lt_cv_prog_gnu_ld
=no
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13319 with_gnu_ld
=$lt_cv_prog_gnu_ld
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13331 if ${lt_cv_path_NM+:} false
; then :
13332 $as_echo_n "(cached) " >&6
13334 if test -n "$NM"; then
13335 # Let the user override the test.
13336 lt_cv_path_NM
="$NM"
13338 lt_nm_to_check
="${ac_tool_prefix}nm"
13339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13340 lt_nm_to_check
="$lt_nm_to_check nm"
13342 for lt_tmp_nm
in $lt_nm_to_check; do
13343 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13344 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13346 test -z "$ac_dir" && ac_dir
=.
13347 tmp_nm
="$ac_dir/$lt_tmp_nm"
13348 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13349 # Check to see if the nm accepts a BSD-compat flag.
13350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13351 # nm: unknown option "B" ignored
13352 # Tru64's nm complains that /dev/null is an invalid object file
13353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13354 */dev
/null
* |
*'Invalid file or object type'*)
13355 lt_cv_path_NM
="$tmp_nm -B"
13359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13361 lt_cv_path_NM
="$tmp_nm -p"
13365 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13366 continue # so that we can try to find one that supports BSD flags
13375 : ${lt_cv_path_NM=no}
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13379 $as_echo "$lt_cv_path_NM" >&6; }
13380 if test "$lt_cv_path_NM" != "no"; then
13381 NM
="$lt_cv_path_NM"
13383 # Didn't find any BSD compatible name lister, look for dumpbin.
13384 if test -n "$DUMPBIN"; then :
13385 # Let the user override the test.
13387 if test -n "$ac_tool_prefix"; then
13388 for ac_prog
in dumpbin
"link -dump"
13390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13391 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13395 $as_echo_n "(cached) " >&6
13397 if test -n "$DUMPBIN"; then
13398 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13401 for as_dir
in $PATH
13404 test -z "$as_dir" && as_dir
=.
13405 for ac_exec_ext
in '' $ac_executable_extensions; do
13406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 DUMPBIN
=$ac_cv_prog_DUMPBIN
13418 if test -n "$DUMPBIN"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13420 $as_echo "$DUMPBIN" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13427 test -n "$DUMPBIN" && break
13430 if test -z "$DUMPBIN"; then
13431 ac_ct_DUMPBIN
=$DUMPBIN
13432 for ac_prog
in dumpbin
"link -dump"
13434 # Extract the first word of "$ac_prog", so it can be a program name with args.
13435 set dummy
$ac_prog; ac_word
=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13439 $as_echo_n "(cached) " >&6
13441 if test -n "$ac_ct_DUMPBIN"; then
13442 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13445 for as_dir
in $PATH
13448 test -z "$as_dir" && as_dir
=.
13449 for ac_exec_ext
in '' $ac_executable_extensions; do
13450 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13462 if test -n "$ac_ct_DUMPBIN"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13464 $as_echo "$ac_ct_DUMPBIN" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13471 test -n "$ac_ct_DUMPBIN" && break
13474 if test "x$ac_ct_DUMPBIN" = x
; then
13477 case $cross_compiling:$ac_tool_warned in
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned
=yes ;;
13483 DUMPBIN
=$ac_ct_DUMPBIN
13487 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13489 DUMPBIN
="$DUMPBIN -symbols"
13497 if test "$DUMPBIN" != ":"; then
13501 test -z "$NM" && NM
=nm
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13510 if ${lt_cv_nm_interface+:} false
; then :
13511 $as_echo_n "(cached) " >&6
13513 lt_cv_nm_interface
="BSD nm"
13514 echo "int some_variable = 0;" > conftest.
$ac_ext
13515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13516 (eval "$ac_compile" 2>conftest.err
)
13517 cat conftest.err
>&5
13518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13520 cat conftest.err
>&5
13521 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13522 cat conftest.out
>&5
13523 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13524 lt_cv_nm_interface
="MS dumpbin"
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13529 $as_echo "$lt_cv_nm_interface" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13532 $as_echo_n "checking whether ln -s works... " >&6; }
13534 if test "$LN_S" = "ln -s"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 $as_echo "yes" >&6; }
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13539 $as_echo "no, using $LN_S" >&6; }
13542 # find the maximum length of command line arguments
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13545 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13546 $as_echo_n "(cached) " >&6
13553 # On DJGPP, this test can blow up pretty badly due to problems in libc
13554 # (any single argument exceeding 2000 bytes causes a buffer overrun
13555 # during glob expansion). Even if it were fixed, the result of this
13556 # check would be larger than it should be.
13557 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13561 # Under GNU Hurd, this test is not required because there is
13562 # no limit to the length of command line arguments.
13563 # Libtool will interpret -1 as no limit whatsoever
13564 lt_cv_sys_max_cmd_len
=-1;
13567 cygwin
* | mingw
* | cegcc
*)
13568 # On Win9x/ME, this test blows up -- it succeeds, but takes
13569 # about 5 minutes as the teststring grows exponentially.
13570 # Worse, since 9x/ME are not pre-emptively multitasking,
13571 # you end up with a "frozen" computer, even though with patience
13572 # the test eventually succeeds (with a max line length of 256k).
13573 # Instead, let's just punt: use the minimum linelength reported by
13574 # all of the supported platforms: 8192 (on NT/2K/XP).
13575 lt_cv_sys_max_cmd_len
=8192;
13579 # On MiNT this can take a long time and run out of memory.
13580 lt_cv_sys_max_cmd_len
=8192;
13584 # On AmigaOS with pdksh, this test takes hours, literally.
13585 # So we just punt and use a minimum line length of 8192.
13586 lt_cv_sys_max_cmd_len
=8192;
13589 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13590 # This has been around since 386BSD, at least. Likely further.
13591 if test -x /sbin
/sysctl
; then
13592 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13593 elif test -x /usr
/sbin
/sysctl
; then
13594 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13596 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13598 # And add a safety zone
13599 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13600 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13605 lt_cv_sys_max_cmd_len
=196608
13609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13611 # nice to cause kernel panics so lets avoid the loop below.
13612 # First set a reasonable default.
13613 lt_cv_sys_max_cmd_len
=16384
13615 if test -x /sbin
/sysconfig
; then
13616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13617 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13622 lt_cv_sys_max_cmd_len
=102400
13624 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13625 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13626 if test -n "$kargmax"; then
13627 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13629 lt_cv_sys_max_cmd_len
=32768
13633 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13634 if test -n "$lt_cv_sys_max_cmd_len"; then
13635 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13636 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13638 # Make teststring a little bigger before we do anything with it.
13639 # a 1K string should be a reasonable start.
13640 for i
in 1 2 3 4 5 6 7 8 ; do
13641 teststring
=$teststring$teststring
13643 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13644 # If test is not a shell built-in, we'll probably end up computing a
13645 # maximum length that is only half of the actual maximum length, but
13647 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13648 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13649 test $i != 17 # 1/2 MB should be enough
13652 teststring
=$teststring$teststring
13654 # Only check the string length outside the loop.
13655 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13657 # Add a significant safety factor because C++ compilers can tack on
13658 # massive amounts of additional arguments before passing them to the
13659 # linker. It appears as though 1/2 is a usable value.
13660 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13667 if test -n $lt_cv_sys_max_cmd_len ; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13672 $as_echo "none" >&6; }
13674 max_cmd_len
=$lt_cv_sys_max_cmd_len
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13687 # Try some XSI features
13689 ( _lt_dummy
="a/b/c"
13690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13692 && eval 'test $(( 1 + 1 )) -eq 2 \
13693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13696 $as_echo "$xsi_shell" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13700 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13702 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13704 && lt_shell_append=yes
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13706 $as_echo "$lt_shell_append" >&6; }
13709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13719 # test EBCDIC or ASCII
13720 case `echo X|tr X '\101'` in
13721 A) # ASCII based system
13722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13723 lt_SP2NL='tr \040 \012'
13724 lt_NL2SP='tr \015\012 \040\040'
13726 *) # EBCDIC based system
13727 lt_SP2NL='tr \100 \n'
13728 lt_NL2SP='tr \r\n \100\100'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13741 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13742 if ${lt_cv_ld_reload_flag+:} false; then :
13743 $as_echo_n "(cached
) " >&6
13745 lt_cv_ld_reload_flag='-r'
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13749 reload_flag=$lt_cv_ld_reload_flag
13750 case $reload_flag in
13752 *) reload_flag=" $reload_flag" ;;
13754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13757 if test "$GCC" = yes; then
13758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13773 if test -n "$ac_tool_prefix"; then
13774 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13777 $as_echo_n "checking
for $ac_word...
" >&6; }
13778 if ${ac_cv_prog_OBJDUMP+:} false; then :
13779 $as_echo_n "(cached
) " >&6
13781 if test -n "$OBJDUMP"; then
13782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13801 OBJDUMP=$ac_cv_prog_OBJDUMP
13802 if test -n "$OBJDUMP"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13804 $as_echo "$OBJDUMP" >&6; }
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13807 $as_echo "no
" >&6; }
13812 if test -z "$ac_cv_prog_OBJDUMP"; then
13813 ac_ct_OBJDUMP=$OBJDUMP
13814 # Extract the first word of "objdump
", so it can be a program name with args.
13815 set dummy objdump; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13817 $as_echo_n "checking
for $ac_word...
" >&6; }
13818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13819 $as_echo_n "(cached
) " >&6
13821 if test -n "$ac_ct_OBJDUMP"; then
13822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13842 if test -n "$ac_ct_OBJDUMP"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13844 $as_echo "$ac_ct_OBJDUMP" >&6; }
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13847 $as_echo "no
" >&6; }
13850 if test "x
$ac_ct_OBJDUMP" = x; then
13853 case $cross_compiling:$ac_tool_warned in
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13856 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13857 ac_tool_warned=yes ;;
13859 OBJDUMP=$ac_ct_OBJDUMP
13862 OBJDUMP="$ac_cv_prog_OBJDUMP"
13865 test -z "$OBJDUMP" && OBJDUMP=objdump
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13876 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13877 if ${lt_cv_deplibs_check_method+:} false; then :
13878 $as_echo_n "(cached
) " >&6
13880 lt_cv_file_magic_cmd='$MAGIC_CMD'
13881 lt_cv_file_magic_test_file=
13882 lt_cv_deplibs_check_method='unknown'
13883 # Need to set the preceding variable on all platforms that support
13884 # interlibrary dependencies.
13885 # 'none' -- dependencies not supported.
13886 # `unknown' -- same as none, but documents that we really don't know.
13887 # 'pass_all' -- all dependencies passed with no checks.
13888 # 'test_compile' -- check by making test program.
13889 # 'file_magic [[regex]]' -- check by looking for files in library path
13890 # which responds to the $file_magic_cmd with a given extended regex.
13891 # If you have `file' or equivalent on your system and you're not sure
13892 # whether `pass_all' will *always* work, you probably want this one.
13896 lt_cv_deplibs_check_method=pass_all
13900 lt_cv_deplibs_check_method=pass_all
13904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13905 lt_cv_file_magic_cmd='/usr/bin/file -L'
13906 lt_cv_file_magic_test_file=/shlib/libc.so
13910 # func_win32_libid is a shell function defined in ltmain.sh
13911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13912 lt_cv_file_magic_cmd='func_win32_libid'
13916 # Base MSYS/MinGW do not provide the 'file' command needed by
13917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13918 # unless we find 'file', for example because we are cross-compiling.
13919 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13920 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13922 lt_cv_file_magic_cmd='func_win32_libid'
13924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13925 lt_cv_file_magic_cmd='$OBJDUMP -f'
13930 # use the weaker test based on 'objdump'. See mingw*.
13931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13932 lt_cv_file_magic_cmd='$OBJDUMP -f'
13935 darwin* | rhapsody*)
13936 lt_cv_deplibs_check_method=pass_all
13939 freebsd* | dragonfly*)
13940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13943 # Not sure whether the presence of OpenBSD here was a mistake.
13944 # Let's accept both of them until this is cleared up.
13945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13946 lt_cv_file_magic_cmd=/usr/bin/file
13947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13951 lt_cv_deplibs_check_method=pass_all
13956 lt_cv_deplibs_check_method=pass_all
13960 lt_cv_deplibs_check_method=pass_all
13963 hpux10.20* | hpux11*)
13964 lt_cv_file_magic_cmd=/usr/bin/file
13967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13971 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]'
13972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13986 irix5* | irix6* | nonstopux*)
13988 *-32|*"-32 ") libmagic=32-bit;;
13989 *-n32|*"-n32 ") libmagic=N32;;
13990 *-64|*"-64 ") libmagic=64-bit;;
13991 *) libmagic=never-match;;
13993 lt_cv_deplibs_check_method=pass_all
13996 # This must be Linux ELF.
13997 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13998 lt_cv_deplibs_check_method=pass_all
14002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14011 lt_cv_file_magic_cmd=/usr/bin/file
14012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14016 lt_cv_deplibs_check_method=pass_all
14020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14027 osf3* | osf4* | osf5*)
14028 lt_cv_deplibs_check_method=pass_all
14032 lt_cv_deplibs_check_method=pass_all
14036 lt_cv_deplibs_check_method=pass_all
14039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14040 lt_cv_deplibs_check_method=pass_all
14044 case $host_vendor in
14046 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]'
14047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14050 lt_cv_deplibs_check_method=pass_all
14053 lt_cv_file_magic_cmd='/bin/file'
14054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14057 lt_cv_file_magic_cmd='/bin/file'
14058 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14059 lt_cv_file_magic_test_file=/lib/libc.so
14062 lt_cv_deplibs_check_method=pass_all
14065 lt_cv_deplibs_check_method=pass_all
14071 lt_cv_deplibs_check_method=pass_all
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14077 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14078 file_magic_cmd=$lt_cv_file_magic_cmd
14079 deplibs_check_method=$lt_cv_deplibs_check_method
14080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14093 if test -n "$ac_tool_prefix"; then
14094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14095 set dummy ${ac_tool_prefix}ar; ac_word=$2
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14097 $as_echo_n "checking
for $ac_word...
" >&6; }
14098 if ${ac_cv_prog_AR+:} false; then :
14099 $as_echo_n "(cached
) " >&6
14101 if test -n "$AR"; then
14102 ac_cv_prog_AR="$AR" # Let the user override the test.
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111 ac_cv_prog_AR="${ac_tool_prefix}ar"
14112 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 if test -n "$AR"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14124 $as_echo "$AR" >&6; }
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14127 $as_echo "no
" >&6; }
14132 if test -z "$ac_cv_prog_AR"; then
14134 # Extract the first word of "ar", so it can be a program name with args.
14135 set dummy ar; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14137 $as_echo_n "checking
for $ac_word...
" >&6; }
14138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14139 $as_echo_n "(cached
) " >&6
14141 if test -n "$ac_ct_AR"; then
14142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14151 ac_cv_prog_ac_ct_AR="ar"
14152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14162 if test -n "$ac_ct_AR"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14164 $as_echo "$ac_ct_AR" >&6; }
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14167 $as_echo "no
" >&6; }
14170 if test "x
$ac_ct_AR" = x; then
14173 case $cross_compiling:$ac_tool_warned in
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14176 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14177 ac_tool_warned=yes ;;
14182 AR="$ac_cv_prog_AR"
14185 test -z "$AR" && AR=ar
14186 test -z "$AR_FLAGS" && AR_FLAGS=cru
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}strip; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14202 $as_echo_n "checking
for $ac_word...
" >&6; }
14203 if ${ac_cv_prog_STRIP+:} false; then :
14204 $as_echo_n "(cached
) " >&6
14206 if test -n "$STRIP"; then
14207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14226 STRIP=$ac_cv_prog_STRIP
14227 if test -n "$STRIP"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14229 $as_echo "$STRIP" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14232 $as_echo "no
" >&6; }
14237 if test -z "$ac_cv_prog_STRIP"; then
14239 # Extract the first word of "strip
", so it can be a program name with args.
14240 set dummy strip; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14242 $as_echo_n "checking
for $ac_word...
" >&6; }
14243 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14244 $as_echo_n "(cached
) " >&6
14246 if test -n "$ac_ct_STRIP"; then
14247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_STRIP="strip
"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14267 if test -n "$ac_ct_STRIP"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14269 $as_echo "$ac_ct_STRIP" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14272 $as_echo "no
" >&6; }
14275 if test "x
$ac_ct_STRIP" = x; then
14278 case $cross_compiling:$ac_tool_warned in
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14281 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14282 ac_tool_warned=yes ;;
14287 STRIP="$ac_cv_prog_STRIP"
14290 test -z "$STRIP" && STRIP=:
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14301 $as_echo_n "checking
for $ac_word...
" >&6; }
14302 if ${ac_cv_prog_RANLIB+:} false; then :
14303 $as_echo_n "(cached
) " >&6
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14328 $as_echo "$RANLIB" >&6; }
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14331 $as_echo "no
" >&6; }
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib
", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14341 $as_echo_n "checking
for $ac_word...
" >&6; }
14342 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14343 $as_echo_n "(cached
) " >&6
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14368 $as_echo "$ac_ct_RANLIB" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14371 $as_echo "no
" >&6; }
14374 if test "x
$ac_ct_RANLIB" = x; then
14377 case $cross_compiling:$ac_tool_warned in
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14380 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14381 ac_tool_warned=yes ;;
14383 RANLIB=$ac_ct_RANLIB
14386 RANLIB="$ac_cv_prog_RANLIB"
14389 test -z "$RANLIB" && RANLIB=:
14396 # Determine commands to create old-style static archives.
14397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14398 old_postinstall_cmds='chmod 644 $oldlib'
14399 old_postuninstall_cmds=
14401 if test -n "$RANLIB"; then
14404 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14407 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14410 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14415 lock_old_archive_extraction=yes ;;
14417 lock_old_archive_extraction=no ;;
14458 # If no C compiler was specified, use CC.
14461 # If no C compiler flags were specified, use CFLAGS.
14462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14464 # Allow CC to be a program name with arguments.
14468 # Check for command to grab the raw symbol name followed by C symbol from nm.
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14470 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14471 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14472 $as_echo_n "(cached
) " >&6
14475 # These are sane defaults that work on at least a few old systems.
14476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14478 # Character class describing NM global symbol codes.
14479 symcode='[BCDEGRST]'
14481 # Regexp to match symbols that can be accessed directly from C.
14482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14484 # Define system-specific variables.
14489 cygwin* | mingw* | pw32* | cegcc*)
14490 symcode='[ABCDGISTW]'
14493 if test "$host_cpu" = ia64; then
14494 symcode='[ABCDEGRST]'
14497 irix* | nonstopux*)
14498 symcode='[BCDEGRST]'
14501 symcode='[BCDEGQRST]'
14512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14520 # If we're using GNU nm, then use its standard symbol codes.
14521 case `$NM -V 2>&1` in
14522 *GNU* | *'with BFD'*)
14523 symcode='[ABCDGIRSTW]' ;;
14526 # Transform an extracted symbol line into a proper C declaration.
14527 # Some systems (esp. on ia64) link data and code symbols differently,
14528 # so use this general approach.
14529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14531 # Transform an extracted symbol line into symbol name and symbol address
14532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14533 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'"
14535 # Handle CRLF in mingw tool chain
14539 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14543 # Try without a prefix underscore, then with it.
14544 for ac_symprfx in "" "_
"; do
14546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14547 symxfrm="\\1 $ac_symprfx\\2 \\2"
14549 # Write the raw and C identifiers.
14550 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14551 # Fake it for dumpbin and say T for any non-static function
14552 # and D for any global variable.
14553 # Also find C++ and __fastcall symbols from MSVC++,
14554 # which start with @ or ?.
14555 lt_cv_sys_global_symbol_pipe="$AWK '"\
14556 " {last_section=section; section=\$ 3};"\
14557 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14558 " \$ 0!~/External *\|/{next};"\
14559 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14560 " {if(hide[section]) next};"\
14561 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14562 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14563 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14564 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14565 " ' prfx
=^
$ac_symprfx"
14567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14570 # Check to see that the pipe works correctly.
14574 cat > conftest.$ac_ext <<_LT_EOF
14579 void nm_test_func(void);
14580 void nm_test_func(void){}
14584 int main(){nm_test_var='a';nm_test_func();return(0);}
14587 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14591 test $ac_status = 0; }; then
14592 # Now try to grab the symbols.
14594 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14598 test $ac_status = 0; } && test -s "$nlist"; then
14599 # Try sorting and uniquifying the output.
14600 if sort "$nlist" | uniq > "$nlist"T; then
14601 mv -f "$nlist"T "$nlist"
14606 # Make sure that we snagged all the symbols we need.
14607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14609 cat <<_LT_EOF > conftest.$ac_ext
14615 # Now generate the symbol file.
14616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14618 cat <<_LT_EOF >> conftest.$ac_ext
14620 /* The mapping between symbol names and symbols. */
14625 lt__PROGRAM__LTX_preloaded_symbols[] =
14627 { "@PROGRAM@
", (void *) 0 },
14629 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14630 cat <<\_LT_EOF >> conftest.$ac_ext
14634 /* This works around a problem in FreeBSD linker */
14635 #ifdef FREEBSD_WORKAROUND
14636 static const void *lt_preloaded_setup() {
14637 return lt__PROGRAM__LTX_preloaded_symbols;
14645 # Now try linking the two files.
14646 mv conftest.$ac_objext conftstm.$ac_objext
14647 lt_save_LIBS="$LIBS"
14648 lt_save_CFLAGS="$CFLAGS"
14649 LIBS="conftstm.
$ac_objext"
14650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14651 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14652 (eval $ac_link) 2>&5
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14655 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14658 LIBS="$lt_save_LIBS"
14659 CFLAGS="$lt_save_CFLAGS"
14661 echo "cannot
find nm_test_func
in $nlist" >&5
14664 echo "cannot
find nm_test_var
in $nlist" >&5
14667 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14670 echo "$progname: failed program was
:" >&5
14671 cat conftest.$ac_ext >&5
14673 rm -rf conftest* conftst*
14675 # Do not use the global_symbol_pipe unless it works.
14676 if test "$pipe_works" = yes; then
14679 lt_cv_sys_global_symbol_pipe=
14685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14686 lt_cv_sys_global_symbol_to_cdecl=
14688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14690 $as_echo "failed
" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14693 $as_echo "ok
" >&6; }
14717 # Check whether --enable-libtool-lock was given.
14718 if test "${enable_libtool_lock+set}" = set; then :
14719 enableval=$enable_libtool_lock;
14722 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14724 # Some flags need to be propagated to the compiler or linker for good
14728 # Find out which ABI we are using.
14729 echo 'int i;' > conftest.$ac_ext
14730 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14731 (eval $ac_compile) 2>&5
14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 case `/usr/bin/file conftest.$ac_objext` in
14737 HPUX_IA64_MODE="32"
14740 HPUX_IA64_MODE="64"
14747 # Find out which ABI we are using.
14748 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14750 (eval $ac_compile) 2>&5
14752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14753 test $ac_status = 0; }; then
14754 if test "$lt_cv_prog_gnu_ld" = yes; then
14755 case `/usr/bin/file conftest.$ac_objext` in
14757 LD="${LD-ld} -melf32bsmip"
14760 LD="${LD-ld} -melf32bmipn32"
14763 LD="${LD-ld} -melf64bmip"
14767 case `/usr/bin/file conftest.$ac_objext` in
14783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14785 # Find out which ABI we are using.
14786 echo 'int i;' > conftest.$ac_ext
14787 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14788 (eval $ac_compile) 2>&5
14790 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14791 test $ac_status = 0; }; then
14792 case `/usr/bin/file conftest.o` in
14795 x86_64-*kfreebsd*-gnu)
14796 LD="${LD-ld} -m elf_i386_fbsd
"
14799 case `/usr/bin/file conftest.o` in
14801 LD="${LD-ld} -m elf32_x86_64
"
14804 LD="${LD-ld} -m elf_i386
"
14808 powerpc64le-*linux*)
14809 LD="${LD-ld} -m elf32lppclinux
"
14812 LD="${LD-ld} -m elf32ppclinux
"
14815 LD="${LD-ld} -m elf_s390
"
14818 LD="${LD-ld} -m elf32_sparc
"
14824 x86_64-*kfreebsd*-gnu)
14825 LD="${LD-ld} -m elf_x86_64_fbsd
"
14828 LD="${LD-ld} -m elf_x86_64
"
14831 LD="${LD-ld} -m elf64lppc
"
14834 LD="${LD-ld} -m elf64ppc
"
14836 s390*-*linux*|s390*-*tpf*)
14837 LD="${LD-ld} -m elf64_s390
"
14840 LD="${LD-ld} -m elf64_sparc
"
14850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14851 SAVE_CFLAGS="$CFLAGS"
14852 CFLAGS="$CFLAGS -belf"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14854 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14855 if ${lt_cv_cc_needs_belf+:} false; then :
14856 $as_echo_n "(cached
) " >&6
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 lt_cv_cc_needs_belf=yes
14878 lt_cv_cc_needs_belf=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14883 ac_cpp='$CPP $CPPFLAGS'
14884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14893 CFLAGS="$SAVE_CFLAGS"
14897 # Find out which ABI we are using.
14898 echo 'int i;' > conftest.$ac_ext
14899 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14900 (eval $ac_compile) 2>&5
14902 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14903 test $ac_status = 0; }; then
14904 case `/usr/bin/file conftest.o` in
14906 case $lt_cv_prog_gnu_ld in
14907 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14909 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14921 need_locks="$enable_libtool_lock"
14925 rhapsody* | darwin*)
14926 if test -n "$ac_tool_prefix"; then
14927 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14930 $as_echo_n "checking
for $ac_word...
" >&6; }
14931 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14932 $as_echo_n "(cached
) " >&6
14934 if test -n "$DSYMUTIL"; then
14935 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14941 test -z "$as_dir" && as_dir=.
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14954 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14955 if test -n "$DSYMUTIL"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14957 $as_echo "$DSYMUTIL" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14960 $as_echo "no
" >&6; }
14965 if test -z "$ac_cv_prog_DSYMUTIL"; then
14966 ac_ct_DSYMUTIL=$DSYMUTIL
14967 # Extract the first word of "dsymutil
", so it can be a program name with args.
14968 set dummy dsymutil; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14970 $as_echo_n "checking
for $ac_word...
" >&6; }
14971 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14972 $as_echo_n "(cached
) " >&6
14974 if test -n "$ac_ct_DSYMUTIL"; then
14975 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14994 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14995 if test -n "$ac_ct_DSYMUTIL"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14997 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15000 $as_echo "no
" >&6; }
15003 if test "x
$ac_ct_DSYMUTIL" = x; then
15006 case $cross_compiling:$ac_tool_warned in
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15009 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15010 ac_tool_warned=yes ;;
15012 DSYMUTIL=$ac_ct_DSYMUTIL
15015 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15018 if test -n "$ac_tool_prefix"; then
15019 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15020 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15022 $as_echo_n "checking
for $ac_word...
" >&6; }
15023 if ${ac_cv_prog_NMEDIT+:} false; then :
15024 $as_echo_n "(cached
) " >&6
15026 if test -n "$NMEDIT"; then
15027 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15046 NMEDIT=$ac_cv_prog_NMEDIT
15047 if test -n "$NMEDIT"; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15049 $as_echo "$NMEDIT" >&6; }
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15052 $as_echo "no
" >&6; }
15057 if test -z "$ac_cv_prog_NMEDIT"; then
15058 ac_ct_NMEDIT=$NMEDIT
15059 # Extract the first word of "nmedit
", so it can be a program name with args.
15060 set dummy nmedit; ac_word=$2
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15062 $as_echo_n "checking
for $ac_word...
" >&6; }
15063 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15064 $as_echo_n "(cached
) " >&6
15066 if test -n "$ac_ct_NMEDIT"; then
15067 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15070 for as_dir in $PATH
15073 test -z "$as_dir" && as_dir=.
15074 for ac_exec_ext in '' $ac_executable_extensions; do
15075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15076 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15086 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15087 if test -n "$ac_ct_NMEDIT"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15089 $as_echo "$ac_ct_NMEDIT" >&6; }
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15092 $as_echo "no
" >&6; }
15095 if test "x
$ac_ct_NMEDIT" = x; then
15098 case $cross_compiling:$ac_tool_warned in
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15101 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15102 ac_tool_warned=yes ;;
15104 NMEDIT=$ac_ct_NMEDIT
15107 NMEDIT="$ac_cv_prog_NMEDIT"
15110 if test -n "$ac_tool_prefix"; then
15111 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15114 $as_echo_n "checking
for $ac_word...
" >&6; }
15115 if ${ac_cv_prog_LIPO+:} false; then :
15116 $as_echo_n "(cached
) " >&6
15118 if test -n "$LIPO"; then
15119 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15125 test -z "$as_dir" && as_dir=.
15126 for ac_exec_ext in '' $ac_executable_extensions; do
15127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15138 LIPO=$ac_cv_prog_LIPO
15139 if test -n "$LIPO"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15141 $as_echo "$LIPO" >&6; }
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15144 $as_echo "no
" >&6; }
15149 if test -z "$ac_cv_prog_LIPO"; then
15151 # Extract the first word of "lipo
", so it can be a program name with args.
15152 set dummy lipo; ac_word=$2
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15154 $as_echo_n "checking
for $ac_word...
" >&6; }
15155 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15156 $as_echo_n "(cached
) " >&6
15158 if test -n "$ac_ct_LIPO"; then
15159 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162 for as_dir in $PATH
15165 test -z "$as_dir" && as_dir=.
15166 for ac_exec_ext in '' $ac_executable_extensions; do
15167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15168 ac_cv_prog_ac_ct_LIPO="lipo
"
15169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15179 if test -n "$ac_ct_LIPO"; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15181 $as_echo "$ac_ct_LIPO" >&6; }
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15184 $as_echo "no
" >&6; }
15187 if test "x
$ac_ct_LIPO" = x; then
15190 case $cross_compiling:$ac_tool_warned in
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15193 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15194 ac_tool_warned=yes ;;
15199 LIPO="$ac_cv_prog_LIPO"
15202 if test -n "$ac_tool_prefix"; then
15203 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15204 set dummy ${ac_tool_prefix}otool; ac_word=$2
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15206 $as_echo_n "checking
for $ac_word...
" >&6; }
15207 if ${ac_cv_prog_OTOOL+:} false; then :
15208 $as_echo_n "(cached
) " >&6
15210 if test -n "$OTOOL"; then
15211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15214 for as_dir in $PATH
15217 test -z "$as_dir" && as_dir=.
15218 for ac_exec_ext in '' $ac_executable_extensions; do
15219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15230 OTOOL=$ac_cv_prog_OTOOL
15231 if test -n "$OTOOL"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15233 $as_echo "$OTOOL" >&6; }
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15236 $as_echo "no
" >&6; }
15241 if test -z "$ac_cv_prog_OTOOL"; then
15243 # Extract the first word of "otool
", so it can be a program name with args.
15244 set dummy otool; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15246 $as_echo_n "checking
for $ac_word...
" >&6; }
15247 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15248 $as_echo_n "(cached
) " >&6
15250 if test -n "$ac_ct_OTOOL"; then
15251 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_prog_ac_ct_OTOOL="otool
"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15270 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15271 if test -n "$ac_ct_OTOOL"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15273 $as_echo "$ac_ct_OTOOL" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15276 $as_echo "no
" >&6; }
15279 if test "x
$ac_ct_OTOOL" = x; then
15282 case $cross_compiling:$ac_tool_warned in
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15285 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15286 ac_tool_warned=yes ;;
15291 OTOOL="$ac_cv_prog_OTOOL"
15294 if test -n "$ac_tool_prefix"; then
15295 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15296 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15298 $as_echo_n "checking
for $ac_word...
" >&6; }
15299 if ${ac_cv_prog_OTOOL64+:} false; then :
15300 $as_echo_n "(cached
) " >&6
15302 if test -n "$OTOOL64"; then
15303 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15322 OTOOL64=$ac_cv_prog_OTOOL64
15323 if test -n "$OTOOL64"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15325 $as_echo "$OTOOL64" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15328 $as_echo "no
" >&6; }
15333 if test -z "$ac_cv_prog_OTOOL64"; then
15334 ac_ct_OTOOL64=$OTOOL64
15335 # Extract the first word of "otool64
", so it can be a program name with args.
15336 set dummy otool64; ac_word=$2
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15338 $as_echo_n "checking
for $ac_word...
" >&6; }
15339 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15340 $as_echo_n "(cached
) " >&6
15342 if test -n "$ac_ct_OTOOL64"; then
15343 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15362 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15363 if test -n "$ac_ct_OTOOL64"; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15365 $as_echo "$ac_ct_OTOOL64" >&6; }
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15368 $as_echo "no
" >&6; }
15371 if test "x
$ac_ct_OTOOL64" = x; then
15374 case $cross_compiling:$ac_tool_warned in
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15377 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15378 ac_tool_warned=yes ;;
15380 OTOOL64=$ac_ct_OTOOL64
15383 OTOOL64="$ac_cv_prog_OTOOL64"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15413 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15414 if ${lt_cv_apple_cc_single_mod+:} false; then :
15415 $as_echo_n "(cached
) " >&6
15417 lt_cv_apple_cc_single_mod=no
15418 if test -z "${LT_MULTI_MODULE}"; then
15419 # By default we will add the -single_module flag. You can override
15420 # by either setting the environment variable LT_MULTI_MODULE
15421 # non-empty at configure time, or by adding -multi_module to the
15423 rm -rf libconftest.dylib*
15424 echo "int foo
(void
){return 1;}" > conftest.c
15425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15426 -dynamiclib -Wl,-single_module conftest.c
" >&5
15427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15430 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15431 lt_cv_apple_cc_single_mod=yes
15433 cat conftest.err >&5
15435 rm -rf libconftest.dylib*
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15440 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15442 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15443 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15444 $as_echo_n "(cached
) " >&6
15446 lt_cv_ld_exported_symbols_list=no
15447 save_LDFLAGS=$LDFLAGS
15448 echo "_main
" > conftest.sym
15449 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15461 if ac_fn_c_try_link "$LINENO"; then :
15462 lt_cv_ld_exported_symbols_list=yes
15464 lt_cv_ld_exported_symbols_list=no
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468 LDFLAGS="$save_LDFLAGS"
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15474 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15475 if ${lt_cv_ld_force_load+:} false; then :
15476 $as_echo_n "(cached
) " >&6
15478 lt_cv_ld_force_load=no
15479 cat > conftest.c << _LT_EOF
15480 int forced_loaded() { return 2;}
15482 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15483 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15484 echo "$AR cru libconftest.a conftest.o
" >&5
15485 $AR cru libconftest.a conftest.o 2>&5
15486 cat > conftest.c << _LT_EOF
15487 int main() { return 0;}
15489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15492 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15493 lt_cv_ld_force_load=yes
15495 cat conftest.err >&5
15497 rm -f conftest.err libconftest.a conftest conftest.c
15498 rm -rf conftest.dSYM
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15502 $as_echo "$lt_cv_ld_force_load" >&6; }
15504 rhapsody* | darwin1.[012])
15505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15508 darwin*) # darwin 5.x on
15509 # if running on 10.5 or later, the deployment target defaults
15510 # to the OS version, if on x86, and 10.4, the deployment
15511 # target defaults to 10.4. Don't you love it?
15512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15523 _lt_dar_single_mod='$single_module'
15525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15530 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15531 _lt_dsymutil='~$DSYMUTIL $lib || :'
15539 for ac_header in dlfcn.h
15541 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15542 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_DLFCN_H 1
15561 enable_win32_dll=no
15564 # Check whether --enable-shared was given.
15565 if test "${enable_shared+set}" = set; then :
15566 enableval=$enable_shared; p=${PACKAGE-default}
15568 yes) enable_shared=yes ;;
15569 no) enable_shared=no ;;
15572 # Look at the argument we got. We use all the common list separators.
15573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15574 for pkg in $enableval; do
15576 if test "X
$pkg" = "X
$p"; then
15595 # Check whether --enable-static was given.
15596 if test "${enable_static+set}" = set; then :
15597 enableval=$enable_static; p=${PACKAGE-default}
15599 yes) enable_static=yes ;;
15600 no) enable_static=no ;;
15603 # Look at the argument we got. We use all the common list separators.
15604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15605 for pkg in $enableval; do
15607 if test "X
$pkg" = "X
$p"; then
15627 # Check whether --with-pic was given.
15628 if test "${with_pic+set}" = set; then :
15629 withval=$with_pic; pic_mode="$withval"
15635 test -z "$pic_mode" && pic_mode=default
15643 # Check whether --enable-fast-install was given.
15644 if test "${enable_fast_install+set}" = set; then :
15645 enableval=$enable_fast_install; p=${PACKAGE-default}
15647 yes) enable_fast_install=yes ;;
15648 no) enable_fast_install=no ;;
15650 enable_fast_install=no
15651 # Look at the argument we got. We use all the common list separators.
15652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15653 for pkg in $enableval; do
15655 if test "X
$pkg" = "X
$p"; then
15656 enable_fast_install=yes
15663 enable_fast_install=yes
15676 # This can be used to rebuild libtool when needed
15677 LIBTOOL_DEPS="$ltmain"
15679 # Always use our own libtool.
15680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15707 test -z "$LN_S" && LN_S="ln -s"
15722 if test -n "${ZSH_VERSION+set}" ; then
15723 setopt NO_GLOB_SUBST
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15727 $as_echo_n "checking
for objdir...
" >&6; }
15728 if ${lt_cv_objdir+:} false; then :
15729 $as_echo_n "(cached
) " >&6
15731 rm -f .libs 2>/dev/null
15732 mkdir .libs 2>/dev/null
15733 if test -d .libs; then
15736 # MS-DOS does not allow filenames that begin with a dot.
15739 rmdir .libs 2>/dev/null
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15742 $as_echo "$lt_cv_objdir" >&6; }
15743 objdir=$lt_cv_objdir
15749 cat >>confdefs.h <<_ACEOF
15750 #define LT_OBJDIR "$lt_cv_objdir/"
15758 # AIX sometimes has problems with the GCC collect2 program. For some
15759 # reason, if we set the COLLECT_NAMES environment variable, the problems
15760 # vanish in a puff of smoke.
15761 if test "X
${COLLECT_NAMES+set}" != Xset; then
15763 export COLLECT_NAMES
15768 # Global variables:
15770 can_build_shared=yes
15772 # All known linkers require a `.a' archive for static linking (except MSVC,
15773 # which needs '.lib').
15776 with_gnu_ld="$lt_cv_prog_gnu_ld"
15779 old_CFLAGS="$CFLAGS"
15781 # Set sane defaults for various variables
15782 test -z "$CC" && CC=cc
15783 test -z "$LTCC" && LTCC=$CC
15784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15785 test -z "$LD" && LD=ld
15786 test -z "$ac_objext" && ac_objext=o
15788 for cc_temp in $compiler""; do
15790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15796 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15799 # Only perform the check for file, if the check method requires it
15800 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15801 case $deplibs_check_method in
15803 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15805 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15806 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15807 $as_echo_n "(cached
) " >&6
15811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15814 lt_save_MAGIC_CMD="$MAGIC_CMD"
15815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15816 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15817 for ac_dir in $ac_dummy; do
15819 test -z "$ac_dir" && ac_dir=.
15820 if test -f $ac_dir/${ac_tool_prefix}file; then
15821 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15822 if test -n "$file_magic_test_file"; then
15823 case $deplibs_check_method in
15825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15828 $EGREP "$file_magic_regex" > /dev/null; then
15833 *** Warning: the command libtool uses to detect shared libraries,
15834 *** $file_magic_cmd, produces output that libtool cannot recognize.
15835 *** The result is that libtool may fail to recognize shared libraries
15836 *** as such. This will affect the creation of libtool libraries that
15837 *** depend on shared libraries, but programs linked with such libtool
15838 *** libraries will work regardless of this problem. Nevertheless, you
15839 *** may want to report the problem to your system manager and/or to
15840 *** bug-libtool@gnu.org
15850 MAGIC_CMD="$lt_save_MAGIC_CMD"
15855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15856 if test -n "$MAGIC_CMD"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15858 $as_echo "$MAGIC_CMD" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15861 $as_echo "no
" >&6; }
15868 if test -z "$lt_cv_path_MAGIC_CMD"; then
15869 if test -n "$ac_tool_prefix"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15871 $as_echo_n "checking
for file...
" >&6; }
15872 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15873 $as_echo_n "(cached
) " >&6
15877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15880 lt_save_MAGIC_CMD="$MAGIC_CMD"
15881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15882 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15883 for ac_dir in $ac_dummy; do
15885 test -z "$ac_dir" && ac_dir=.
15886 if test -f $ac_dir/file; then
15887 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15888 if test -n "$file_magic_test_file"; then
15889 case $deplibs_check_method in
15891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15894 $EGREP "$file_magic_regex" > /dev/null; then
15899 *** Warning: the command libtool uses to detect shared libraries,
15900 *** $file_magic_cmd, produces output that libtool cannot recognize.
15901 *** The result is that libtool may fail to recognize shared libraries
15902 *** as such. This will affect the creation of libtool libraries that
15903 *** depend on shared libraries, but programs linked with such libtool
15904 *** libraries will work regardless of this problem. Nevertheless, you
15905 *** may want to report the problem to your system manager and/or to
15906 *** bug-libtool@gnu.org
15916 MAGIC_CMD="$lt_save_MAGIC_CMD"
15921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15922 if test -n "$MAGIC_CMD"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15924 $as_echo "$MAGIC_CMD" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15927 $as_echo "no
" >&6; }
15940 # Use C for the default configuration in the libtool script
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15950 # Source file extension for C test sources.
15953 # Object file extension for compiled C test sources.
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="int some_variable
= 0;"
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='int main(){return(0);}'
15969 # If no C compiler was specified, use CC.
15972 # If no C compiler flags were specified, use CFLAGS.
15973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15975 # Allow CC to be a program name with arguments.
15978 # Save the default compiler, since it gets overwritten when the other
15979 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15980 compiler_DEFAULT=$CC
15982 # save warnings/boilerplate of simple test code
15983 ac_outfile=conftest.$ac_objext
15984 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15985 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15986 _lt_compiler_boilerplate=`cat conftest.err`
15989 ac_outfile=conftest.$ac_objext
15990 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15991 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15992 _lt_linker_boilerplate=`cat conftest.err`
15997 ## There is no encapsulation within the following macros, do not change
15998 ## the running order or otherwise move them around unless you know exactly
15999 ## what you are doing...
16000 if test -n "$compiler"; then
16002 lt_prog_compiler_no_builtin_flag=
16004 if test "$GCC" = yes; then
16005 case $cc_basename in
16007 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16009 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16013 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16014 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16015 $as_echo_n "(cached
) " >&6
16017 lt_cv_prog_compiler_rtti_exceptions=no
16018 ac_outfile=conftest.$ac_objext
16019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16020 lt_compiler_flag="-fno-rtti -fno-exceptions"
16021 # Insert the option either (1) after the last *FLAGS variable, or
16022 # (2) before a word containing "conftest.
", or (3) at the end.
16023 # Note that $ac_compile itself does not contain backslashes and begins
16024 # with a dollar sign (not a hyphen), so the echo should work correctly.
16025 # The option is referenced via a variable to avoid confusing sed.
16026 lt_compile=`echo "$ac_compile" | $SED \
16027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029 -e 's:$: $lt_compiler_flag:'`
16030 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16031 (eval "$lt_compile" 2>conftest.err)
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16035 if (exit $ac_status) && test -s "$ac_outfile"; then
16036 # The compiler can only warn and ignore the option if not recognized
16037 # So say no if there are warnings other than the usual output.
16038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16041 lt_cv_prog_compiler_rtti_exceptions=yes
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16048 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16050 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16063 lt_prog_compiler_wl=
16064 lt_prog_compiler_pic=
16065 lt_prog_compiler_static=
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16068 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16070 if test "$GCC" = yes; then
16071 lt_prog_compiler_wl='-Wl,'
16072 lt_prog_compiler_static='-static'
16076 # All AIX code is PIC.
16077 if test "$host_cpu" = ia64; then
16078 # AIX 5 now supports IA64 processor
16079 lt_prog_compiler_static='-Bstatic'
16081 lt_prog_compiler_pic='-fPIC'
16087 # see comment about AmigaOS4 .so support
16088 lt_prog_compiler_pic='-fPIC'
16091 # FIXME: we need at least 68020 code to build shared libraries, but
16092 # adding the `-m68020' flag to GCC prevents building anything better,
16094 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16100 # PIC is the default for these OSes.
16103 mingw* | cygwin* | pw32* | os2* | cegcc*)
16104 # This hack is so that the source file can tell whether it is being
16105 # built for inclusion in a dll (and should export symbols for example).
16106 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16107 # (--disable-auto-import) libraries
16108 lt_prog_compiler_pic='-DDLL_EXPORT'
16111 darwin* | rhapsody*)
16112 # PIC is the default on this platform
16113 # Common symbols not allowed in MH_DYLIB files
16114 lt_prog_compiler_pic='-fno-common'
16118 # PIC is the default for Haiku.
16119 # The "-static" flag exists, but is broken.
16120 lt_prog_compiler_static=
16124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16126 # sets the default TLS model and affects inlining.
16132 lt_prog_compiler_pic='-fPIC'
16138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16139 # Instead, we relocate shared libraries at runtime.
16143 # Just because we use GCC doesn't mean we suddenly get shared libraries
16144 # on systems that don't support them.
16145 lt_prog_compiler_can_build_shared=no
16150 # QNX uses GNU C++, but need to define -shared option too, otherwise
16151 # it will coredump.
16152 lt_prog_compiler_pic='-fPIC -shared'
16156 if test -d /usr/nec; then
16157 lt_prog_compiler_pic=-Kconform_pic
16162 lt_prog_compiler_pic='-fPIC'
16166 case $cc_basename in
16167 nvcc*) # Cuda Compiler Driver 2.2
16168 lt_prog_compiler_wl='-Xlinker '
16169 lt_prog_compiler_pic='-Xcompiler -fPIC'
16173 # PORTME Check for flag to pass linker flags through the system compiler.
16176 lt_prog_compiler_wl='-Wl,'
16177 if test "$host_cpu" = ia64; then
16178 # AIX 5 now supports IA64 processor
16179 lt_prog_compiler_static='-Bstatic'
16181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16185 mingw* | cygwin* | pw32* | os2* | cegcc*)
16186 # This hack is so that the source file can tell whether it is being
16187 # built for inclusion in a dll (and should export symbols for example).
16188 lt_prog_compiler_pic='-DDLL_EXPORT'
16191 hpux9* | hpux10* | hpux11*)
16192 lt_prog_compiler_wl='-Wl,'
16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194 # not for PA HP-UX.
16200 lt_prog_compiler_pic='+Z'
16203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16204 lt_prog_compiler_static='${wl}-a ${wl}archive'
16207 irix5* | irix6* | nonstopux*)
16208 lt_prog_compiler_wl='-Wl,'
16209 # PIC (with -KPIC) is the default.
16210 lt_prog_compiler_static='-non_shared'
16213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16214 case $cc_basename in
16215 # old Intel for x86_64 which still supported -KPIC.
16217 lt_prog_compiler_wl='-Wl,'
16218 lt_prog_compiler_pic='-KPIC'
16219 lt_prog_compiler_static='-static'
16221 # icc used to be incompatible with GCC.
16222 # ICC 10 doesn't accept -KPIC any more.
16224 lt_prog_compiler_wl='-Wl,'
16225 lt_prog_compiler_pic='-fPIC'
16226 lt_prog_compiler_static='-static'
16228 # Lahey Fortran 8.1.
16230 lt_prog_compiler_wl='-Wl,'
16231 lt_prog_compiler_pic='--shared'
16232 lt_prog_compiler_static='--static'
16234 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16235 # Portland Group compilers (*not* the Pentium gcc compiler,
16236 # which looks to be a dead project)
16237 lt_prog_compiler_wl='-Wl,'
16238 lt_prog_compiler_pic='-fpic'
16239 lt_prog_compiler_static='-Bstatic'
16242 lt_prog_compiler_wl='-Wl,'
16243 # All Alpha code is PIC.
16244 lt_prog_compiler_static='-non_shared'
16246 xl* | bgxl* | bgf* | mpixl*)
16247 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16248 lt_prog_compiler_wl='-Wl,'
16249 lt_prog_compiler_pic='-qpic'
16250 lt_prog_compiler_static='-qstaticlink'
16253 case `$CC -V 2>&1 | sed 5q` in
16254 *Sun\ F* | *Sun*Fortran*)
16255 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16256 lt_prog_compiler_pic='-KPIC'
16257 lt_prog_compiler_static='-Bstatic'
16258 lt_prog_compiler_wl=''
16262 lt_prog_compiler_pic='-KPIC'
16263 lt_prog_compiler_static='-Bstatic'
16264 lt_prog_compiler_wl='-Wl,'
16272 lt_prog_compiler_pic='-KPIC'
16273 lt_prog_compiler_static='-Bstatic'
16277 # QNX uses GNU C++, but need to define -shared option too, otherwise
16278 # it will coredump.
16279 lt_prog_compiler_pic='-fPIC -shared'
16282 osf3* | osf4* | osf5*)
16283 lt_prog_compiler_wl='-Wl,'
16284 # All OSF/1 code is PIC.
16285 lt_prog_compiler_static='-non_shared'
16289 lt_prog_compiler_static='-non_shared'
16293 lt_prog_compiler_pic='-KPIC'
16294 lt_prog_compiler_static='-Bstatic'
16295 case $cc_basename in
16296 f77* | f90* | f95*)
16297 lt_prog_compiler_wl='-Qoption ld ';;
16299 lt_prog_compiler_wl='-Wl,';;
16304 lt_prog_compiler_wl='-Qoption ld '
16305 lt_prog_compiler_pic='-PIC'
16306 lt_prog_compiler_static='-Bstatic'
16309 sysv4 | sysv4.2uw2* | sysv4.3*)
16310 lt_prog_compiler_wl='-Wl,'
16311 lt_prog_compiler_pic='-KPIC'
16312 lt_prog_compiler_static='-Bstatic'
16316 if test -d /usr/nec ;then
16317 lt_prog_compiler_pic='-Kconform_pic'
16318 lt_prog_compiler_static='-Bstatic'
16322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16323 lt_prog_compiler_wl='-Wl,'
16324 lt_prog_compiler_pic='-KPIC'
16325 lt_prog_compiler_static='-Bstatic'
16329 lt_prog_compiler_wl='-Wl,'
16330 lt_prog_compiler_can_build_shared=no
16334 lt_prog_compiler_pic='-pic'
16335 lt_prog_compiler_static='-Bstatic'
16339 lt_prog_compiler_can_build_shared=no
16345 # For platforms which do not support PIC, -DPIC is meaningless:
16347 lt_prog_compiler_pic=
16350 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16354 $as_echo "$lt_prog_compiler_pic" >&6; }
16362 # Check to make sure the PIC flag actually works.
16364 if test -n "$lt_prog_compiler_pic"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16366 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16367 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16368 $as_echo_n "(cached
) " >&6
16370 lt_cv_prog_compiler_pic_works=no
16371 ac_outfile=conftest.$ac_objext
16372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16374 # Insert the option either (1) after the last *FLAGS variable, or
16375 # (2) before a word containing "conftest.
", or (3) at the end.
16376 # Note that $ac_compile itself does not contain backslashes and begins
16377 # with a dollar sign (not a hyphen), so the echo should work correctly.
16378 # The option is referenced via a variable to avoid confusing sed.
16379 lt_compile=`echo "$ac_compile" | $SED \
16380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16382 -e 's:$: $lt_compiler_flag:'`
16383 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16384 (eval "$lt_compile" 2>conftest.err)
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16388 if (exit $ac_status) && test -s "$ac_outfile"; then
16389 # The compiler can only warn and ignore the option if not recognized
16390 # So say no if there are warnings other than the usual output.
16391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16394 lt_cv_prog_compiler_pic_works=yes
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16401 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16403 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16404 case $lt_prog_compiler_pic in
16406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16409 lt_prog_compiler_pic=
16410 lt_prog_compiler_can_build_shared=no
16421 # Check to make sure the static flag actually works.
16423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16425 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16426 if ${lt_cv_prog_compiler_static_works+:} false; then :
16427 $as_echo_n "(cached
) " >&6
16429 lt_cv_prog_compiler_static_works=no
16430 save_LDFLAGS="$LDFLAGS"
16431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16434 # The linker can only warn and ignore the option if not recognized
16435 # So say no if there are warnings
16436 if test -s conftest.err; then
16437 # Append any errors to the config.log.
16438 cat conftest.err 1>&5
16439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16441 if diff conftest.exp conftest.er2 >/dev/null; then
16442 lt_cv_prog_compiler_static_works=yes
16445 lt_cv_prog_compiler_static_works=yes
16449 LDFLAGS="$save_LDFLAGS"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16453 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16455 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16458 lt_prog_compiler_static=
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16468 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16469 if ${lt_cv_prog_compiler_c_o+:} false; then :
16470 $as_echo_n "(cached
) " >&6
16472 lt_cv_prog_compiler_c_o=no
16473 $RM -r conftest 2>/dev/null
16477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16479 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.
", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 lt_compile=`echo "$ac_compile" | $SED \
16485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487 -e 's:$: $lt_compiler_flag:'`
16488 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16489 (eval "$lt_compile" 2>out/conftest.err)
16491 cat out/conftest.err >&5
16492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings
16497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_c_o=yes
16505 # SGI C++ compiler will create directory out/ii_files/ for
16506 # template instantiation
16507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16508 $RM out/* && rmdir out
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16515 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16523 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16524 if ${lt_cv_prog_compiler_c_o+:} false; then :
16525 $as_echo_n "(cached
) " >&6
16527 lt_cv_prog_compiler_c_o=no
16528 $RM -r conftest 2>/dev/null
16532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16534 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.
", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 lt_compile=`echo "$ac_compile" | $SED \
16540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16542 -e 's:$: $lt_compiler_flag:'`
16543 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16544 (eval "$lt_compile" 2>out/conftest.err)
16546 cat out/conftest.err >&5
16547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16555 lt_cv_prog_compiler_c_o=yes
16560 # SGI C++ compiler will create directory out/ii_files/ for
16561 # template instantiation
16562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16563 $RM out/* && rmdir out
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16575 hard_links="nottested
"
16576 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16577 # do not overwrite the value of need_locks provided by the user
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16579 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16584 ln conftest.a conftest.b 2>&5 || hard_links=no
16585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16587 $as_echo "$hard_links" >&6; }
16588 if test "$hard_links" = no; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16590 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16603 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16606 allow_undefined_flag=
16607 always_export_symbols=no
16609 archive_expsym_cmds=
16610 compiler_needs_object=no
16611 enable_shared_with_static_runtimes=no
16612 export_dynamic_flag_spec=
16613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614 hardcode_automatic=no
16616 hardcode_direct_absolute=no
16617 hardcode_libdir_flag_spec=
16618 hardcode_libdir_flag_spec_ld=
16619 hardcode_libdir_separator=
16620 hardcode_minus_L=no
16621 hardcode_shlibpath_var=unsupported
16623 link_all_deplibs=unknown
16625 module_expsym_cmds=
16626 old_archive_from_new_cmds=
16627 old_archive_from_expsyms_cmds=
16628 thread_safe_flag_spec=
16629 whole_archive_flag_spec=
16630 # include_expsyms should be a list of space-separated symbols to be *always*
16631 # included in the symbol list
16633 # exclude_expsyms can be an extended regexp of symbols to exclude
16634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16636 # as well as any symbol that contains `d'.
16637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16639 # platforms (ab)use it in PIC code, but their linkers get confused if
16640 # the symbol is explicitly referenced. Since portable code cannot
16641 # rely on this symbol name, it's probably fine to never include it in
16642 # preloaded symbol tables.
16643 # Exclude shared library initialization/finalization symbols.
16644 extract_expsyms_cmds=
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16649 # When not using gcc, we currently assume that we are using
16650 # Microsoft Visual C++.
16651 if test "$GCC" != yes; then
16656 # we just hope/assume this is gcc and not c89 (= MSVC++)
16666 # On some targets, GNU ld is compatible enough with the native linker
16667 # that we're better off using the native interface for both.
16668 lt_use_gnu_ld_interface=no
16669 if test "$with_gnu_ld" = yes; then
16672 # The AIX port of GNU ld has always aspired to compatibility
16673 # with the native linker. However, as the warning in the GNU ld
16674 # block says, versions before 2.19.5* couldn't really create working
16675 # shared libraries, regardless of the interface used.
16676 case `$LD -v 2>&1` in
16677 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16678 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16679 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16681 lt_use_gnu_ld_interface=yes
16686 lt_use_gnu_ld_interface=yes
16691 if test "$lt_use_gnu_ld_interface" = yes; then
16692 # If archive_cmds runs LD, not CC, wlarc should be empty
16695 # Set some defaults for GNU ld with shared library support. These
16696 # are reset later if shared libraries are not supported. Putting them
16697 # here allows them to be overridden if necessary.
16698 runpath_var=LD_RUN_PATH
16699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16700 export_dynamic_flag_spec='${wl}--export-dynamic'
16701 # ancient GNU ld didn't support --whole-archive et. al.
16702 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16705 whole_archive_flag_spec=
16707 supports_anon_versioning=no
16708 case `$LD -v 2>&1` in
16709 *GNU\ gold*) supports_anon_versioning=yes ;;
16710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16713 *\ 2.11.*) ;; # other 2.11 versions
16714 *) supports_anon_versioning=yes ;;
16717 # See if GNU ld supports shared libraries.
16720 # On AIX/PPC, the GNU linker is very broken
16721 if test "$host_cpu" != ia64; then
16725 *** Warning: the GNU linker, at least up to release 2.19, is reported
16726 *** to be unable to reliably create shared libraries on AIX.
16727 *** Therefore, libtool is disabling shared libraries support. If you
16728 *** really care for shared libraries, you may want to install binutils
16729 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16730 *** You will then need to restart the configuration process.
16739 # see comment about AmigaOS4 .so support
16740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741 archive_expsym_cmds=''
16744 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)'
16745 hardcode_libdir_flag_spec
='-L$libdir'
16746 hardcode_minus_L
=yes
16752 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16753 allow_undefined_flag
=unsupported
16754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16755 # support --undefined. This deserves some investigation. FIXME
16756 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16762 cygwin
* | mingw
* | pw32
* | cegcc
*)
16763 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16764 # as there is no search path for DLLs.
16765 hardcode_libdir_flag_spec
='-L$libdir'
16766 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16767 allow_undefined_flag
=unsupported
16768 always_export_symbols
=no
16769 enable_shared_with_static_runtimes
=yes
16770 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16772 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16773 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16774 # If the export-symbols file already is a .def file (1st line
16775 # is EXPORTS), use it as is; otherwise, prepend...
16776 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16777 cp $export_symbols $output_objdir/$soname.def;
16779 echo EXPORTS > $output_objdir/$soname.def;
16780 cat $export_symbols >> $output_objdir/$soname.def;
16782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16789 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16790 link_all_deplibs
=yes
16795 hardcode_shlibpath_var
=no
16796 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16797 export_dynamic_flag_spec
='${wl}-E'
16798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16799 # Instead, shared libraries are loaded at an image base (0x10000000 by
16800 # default) and relocated if they conflict, which is a slow very memory
16801 # consuming and fragmenting process. To avoid this, we pick a random,
16802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16804 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16805 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'
16808 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16810 if test "$host_os" = linux-dietlibc
; then
16811 case $cc_basename in
16812 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16815 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16816 && test "$tmp_diet" = no
16818 tmp_addflag
=' $pic_flag'
16819 tmp_sharedflag
='-shared'
16820 case $cc_basename,$host_cpu in
16821 pgcc
*) # Portland Group C compiler
16822 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'
16823 tmp_addflag
=' $pic_flag'
16825 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16826 # Portland Group f77 and f90 compilers
16827 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'
16828 tmp_addflag
=' $pic_flag -Mnomain' ;;
16829 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16830 tmp_addflag
=' -i_dynamic' ;;
16831 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16832 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16833 ifc
* | ifort
*) # Intel Fortran compiler
16834 tmp_addflag
=' -nofor_main' ;;
16835 lf95
*) # Lahey Fortran 8.1
16836 whole_archive_flag_spec
=
16837 tmp_sharedflag
='--shared' ;;
16838 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16839 tmp_sharedflag
='-qmkshrobj'
16841 nvcc
*) # Cuda Compiler Driver 2.2
16842 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'
16843 compiler_needs_object
=yes
16846 case `$CC -V 2>&1 | sed 5q` in
16847 *Sun\ C
*) # Sun C 5.9
16848 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'
16849 compiler_needs_object
=yes
16850 tmp_sharedflag
='-G' ;;
16851 *Sun\ F
*) # Sun Fortran 8.3
16852 tmp_sharedflag
='-G' ;;
16854 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16856 if test "x$supports_anon_versioning" = xyes
; then
16857 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16859 echo "local: *; };" >> $output_objdir/$libname.ver~
16860 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16863 case $cc_basename in
16864 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16866 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16867 hardcode_libdir_flag_spec
=
16868 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16869 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16870 if test "x$supports_anon_versioning" = xyes
; then
16871 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16873 echo "local: *; };" >> $output_objdir/$libname.ver~
16874 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16884 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16885 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16888 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16889 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16894 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16898 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16899 *** create shared libraries on Solaris systems. Therefore, libtool
16900 *** is disabling shared libraries support. We urge you to upgrade GNU
16901 *** binutils to release 2.9.1 or newer. Another option is to modify
16902 *** your PATH or compiler configuration so that the native linker is
16903 *** used, and then restart.
16906 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16907 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16914 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16915 case `$LD -v 2>&1` in
16916 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16920 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16921 *** reliably create shared libraries on SCO systems. Therefore, libtool
16922 *** is disabling shared libraries support. We urge you to upgrade GNU
16923 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16924 *** your PATH or compiler configuration so that the native linker is
16925 *** used, and then restart.
16930 # For security reasons, it is highly recommended that you always
16931 # use absolute paths for naming shared libraries, and exclude the
16932 # DT_RUNPATH tag from executables and libraries. But doing so
16933 # requires that you compile everything twice, which is a pain.
16934 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16935 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16936 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16937 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16946 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16948 hardcode_direct
=yes
16949 hardcode_shlibpath_var
=no
16953 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16954 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16962 if test "$ld_shlibs" = no
; then
16964 hardcode_libdir_flag_spec
=
16965 export_dynamic_flag_spec
=
16966 whole_archive_flag_spec
=
16969 # PORTME fill in a description of your system's linker (not GNU ld)
16972 allow_undefined_flag
=unsupported
16973 always_export_symbols
=yes
16974 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'
16975 # Note: this linker hardcodes the directories in LIBPATH if there
16976 # are no directories specified by -L.
16977 hardcode_minus_L
=yes
16978 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16979 # Neither direct hardcoding nor static linking is supported with a
16981 hardcode_direct
=unsupported
16986 if test "$host_cpu" = ia64
; then
16987 # On IA64, the linker does run time linking by default, so we don't
16988 # have to do anything special.
16989 aix_use_runtimelinking
=no
16990 exp_sym_flag
='-Bexport'
16993 # If we're using GNU nm, then we don't want the "-C" option.
16994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16995 # Also, AIX nm treats weak defined symbols like other global
16996 # defined symbols, whereas GNU nm marks them as "W".
16997 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16998 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'
17000 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'
17002 aix_use_runtimelinking
=no
17004 # Test if we are trying to use run time linking or normal
17005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17006 # need to do runtime linking.
17007 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17008 for ld_flag
in $LDFLAGS; do
17009 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17010 aix_use_runtimelinking
=yes
17017 exp_sym_flag
='-bexport'
17018 no_entry_flag
='-bnoentry'
17021 # When large executables or shared objects are built, AIX ld can
17022 # have problems creating the table of contents. If linking a library
17023 # or program results in "error TOC overflow" add -mminimal-toc to
17024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17028 hardcode_direct
=yes
17029 hardcode_direct_absolute
=yes
17030 hardcode_libdir_separator
=':'
17031 link_all_deplibs
=yes
17032 file_list_spec
='${wl}-f,'
17034 if test "$GCC" = yes; then
17035 case $host_os in aix4.
[012]|aix4.
[012].
*)
17036 # We only want to do this on AIX 4.2 and lower, the check
17037 # below for broken collect2 doesn't work under 4.3+
17038 collect2name
=`${CC} -print-prog-name=collect2`
17039 if test -f "$collect2name" &&
17040 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17042 # We have reworked collect2
17045 # We have old collect2
17046 hardcode_direct
=unsupported
17047 # It fails to find uninstalled libraries when the uninstalled
17048 # path is not listed in the libpath. Setting hardcode_minus_L
17049 # to unsupported forces relinking
17050 hardcode_minus_L
=yes
17051 hardcode_libdir_flag_spec
='-L$libdir'
17052 hardcode_libdir_separator
=
17056 shared_flag
='-shared'
17057 if test "$aix_use_runtimelinking" = yes; then
17058 shared_flag
="$shared_flag "'${wl}-G'
17062 if test "$host_cpu" = ia64
; then
17063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17064 # chokes on -Wl,-G. The following line is correct:
17067 if test "$aix_use_runtimelinking" = yes; then
17068 shared_flag
='${wl}-G'
17070 shared_flag
='${wl}-bM:SRE'
17075 export_dynamic_flag_spec
='${wl}-bexpall'
17076 # It seems that -bexpall does not export symbols beginning with
17077 # underscore (_), so it is better to generate a list of symbols to export.
17078 always_export_symbols
=yes
17079 if test "$aix_use_runtimelinking" = yes; then
17080 # Warning - without using the other runtime loading flags (-brtl),
17081 # -berok will link without error, but may produce a broken library.
17082 allow_undefined_flag
='-berok'
17083 # Determine the default libpath from the value encoded in an
17084 # empty executable.
17085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17096 if ac_fn_c_try_link
"$LINENO"; then :
17098 lt_aix_libpath_sed
='
17099 /Import File Strings/,/^$/ {
17105 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17106 # Check for a 64-bit object if we didn't find anything.
17107 if test -z "$aix_libpath"; then
17108 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17111 rm -f core conftest.err conftest.
$ac_objext \
17112 conftest
$ac_exeext conftest.
$ac_ext
17113 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17115 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17116 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"
17118 if test "$host_cpu" = ia64
; then
17119 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17120 allow_undefined_flag
="-z nodefs"
17121 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"
17123 # Determine the default libpath from the value encoded in an
17124 # empty executable.
17125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17136 if ac_fn_c_try_link
"$LINENO"; then :
17138 lt_aix_libpath_sed
='
17139 /Import File Strings/,/^$/ {
17145 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17146 # Check for a 64-bit object if we didn't find anything.
17147 if test -z "$aix_libpath"; then
17148 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17151 rm -f core conftest.err conftest.
$ac_objext \
17152 conftest
$ac_exeext conftest.
$ac_ext
17153 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17155 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17156 # Warning - without using the other run time loading flags,
17157 # -berok will link without error, but may produce a broken library.
17158 no_undefined_flag
=' ${wl}-bernotok'
17159 allow_undefined_flag
=' ${wl}-berok'
17160 if test "$with_gnu_ld" = yes; then
17161 # We only use this code for GNU lds that support --whole-archive.
17162 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17164 # Exported symbols can be pulled into shared objects from archives
17165 whole_archive_flag_spec
='$convenience'
17167 archive_cmds_need_lc
=yes
17168 # This is similar to how AIX traditionally builds its shared libraries.
17169 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'
17177 # see comment about AmigaOS4 .so support
17178 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17179 archive_expsym_cmds
=''
17182 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)'
17183 hardcode_libdir_flag_spec
='-L$libdir'
17184 hardcode_minus_L
=yes
17190 export_dynamic_flag_spec
=-rdynamic
17193 cygwin
* | mingw
* | pw32
* | cegcc
*)
17194 # When not using gcc, we currently assume that we are using
17195 # Microsoft Visual C++.
17196 # hardcode_libdir_flag_spec is actually meaningless, as there is
17197 # no search path for DLLs.
17198 hardcode_libdir_flag_spec
=' '
17199 allow_undefined_flag
=unsupported
17200 # Tell ltmain to make .lib files, not .a files.
17202 # Tell ltmain to make .dll files, not .so files.
17204 # FIXME: Setting linknames here is a bad hack.
17205 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17206 # The linker will automatically build a .lib file if we build a DLL.
17207 old_archive_from_new_cmds
='true'
17208 # FIXME: Should let the user specify the lib program.
17209 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17210 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17211 enable_shared_with_static_runtimes
=yes
17214 darwin
* | rhapsody
*)
17217 archive_cmds_need_lc
=no
17219 hardcode_automatic
=yes
17220 hardcode_shlibpath_var
=unsupported
17221 if test "$lt_cv_ld_force_load" = "yes"; then
17222 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\"`'
17224 whole_archive_flag_spec
=''
17226 link_all_deplibs
=yes
17227 allow_undefined_flag
="$_lt_dar_allow_undefined"
17228 case $cc_basename in
17229 ifort
*) _lt_dar_can_shared
=yes ;;
17230 *) _lt_dar_can_shared
=$GCC ;;
17232 if test "$_lt_dar_can_shared" = "yes"; then
17233 output_verbose_link_cmd
=func_echo_all
17234 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17235 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17237 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}"
17246 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247 hardcode_libdir_flag_spec
='-L$libdir'
17248 hardcode_shlibpath_var
=no
17251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17252 # support. Future versions do this automatically, but an explicit c++rt0.o
17253 # does not break anything, and helps significantly (at the cost of a little
17256 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17257 hardcode_libdir_flag_spec
='-R$libdir'
17258 hardcode_direct
=yes
17259 hardcode_shlibpath_var
=no
17262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17264 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17265 hardcode_direct
=yes
17266 hardcode_minus_L
=yes
17267 hardcode_shlibpath_var
=no
17270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17271 freebsd
* | dragonfly
*)
17272 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17273 hardcode_libdir_flag_spec
='-R$libdir'
17274 hardcode_direct
=yes
17275 hardcode_shlibpath_var
=no
17279 if test "$GCC" = yes; then
17280 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'
17282 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'
17284 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator
=:
17286 hardcode_direct
=yes
17288 # hardcode_minus_L: Not really in the search PATH,
17289 # but as the default location of the library.
17290 hardcode_minus_L
=yes
17291 export_dynamic_flag_spec
='${wl}-E'
17295 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17296 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17300 if test "$with_gnu_ld" = no
; then
17301 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17302 hardcode_libdir_flag_spec_ld
='+b $libdir'
17303 hardcode_libdir_separator
=:
17304 hardcode_direct
=yes
17305 hardcode_direct_absolute
=yes
17306 export_dynamic_flag_spec
='${wl}-E'
17307 # hardcode_minus_L: Not really in the search PATH,
17308 # but as the default location of the library.
17309 hardcode_minus_L
=yes
17314 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17317 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17323 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17329 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17336 # Older versions of the 11.00 compiler do not understand -b yet
17337 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17339 $as_echo_n "checking if $CC understands -b... " >&6; }
17340 if ${lt_cv_prog_compiler__b+:} false
; then :
17341 $as_echo_n "(cached) " >&6
17343 lt_cv_prog_compiler__b
=no
17344 save_LDFLAGS
="$LDFLAGS"
17345 LDFLAGS
="$LDFLAGS -b"
17346 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17347 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17348 # The linker can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test -s conftest.err
; then
17351 # Append any errors to the config.log.
17352 cat conftest.err
1>&5
17353 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17354 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17355 if diff conftest.exp conftest.er2
>/dev
/null
; then
17356 lt_cv_prog_compiler__b
=yes
17359 lt_cv_prog_compiler__b
=yes
17363 LDFLAGS
="$save_LDFLAGS"
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17367 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17369 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17370 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17372 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17378 if test "$with_gnu_ld" = no
; then
17379 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17380 hardcode_libdir_separator
=:
17385 hardcode_shlibpath_var
=no
17388 hardcode_direct
=yes
17389 hardcode_direct_absolute
=yes
17390 export_dynamic_flag_spec
='${wl}-E'
17392 # hardcode_minus_L: Not really in the search PATH,
17393 # but as the default location of the library.
17394 hardcode_minus_L
=yes
17400 irix5
* | irix6
* | nonstopux
*)
17401 if test "$GCC" = yes; then
17402 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'
17403 # Try to use the -exported_symbol ld option, if it does not
17404 # work, assume that -exports_file does not work either and
17405 # implicitly export all symbols.
17406 save_LDFLAGS
="$LDFLAGS"
17407 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17412 if ac_fn_c_try_link
"$LINENO"; then :
17413 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'
17416 rm -f core conftest.err conftest.
$ac_objext \
17417 conftest
$ac_exeext conftest.
$ac_ext
17418 LDFLAGS
="$save_LDFLAGS"
17420 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'
17421 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'
17423 archive_cmds_need_lc
='no'
17424 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17425 hardcode_libdir_separator
=:
17427 link_all_deplibs
=yes
17431 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17432 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17434 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17436 hardcode_libdir_flag_spec
='-R$libdir'
17437 hardcode_direct
=yes
17438 hardcode_shlibpath_var
=no
17442 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct
=yes
17444 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17445 hardcode_libdir_separator
=:
17446 hardcode_shlibpath_var
=no
17453 if test -f /usr
/libexec
/ld.so
; then
17454 hardcode_direct
=yes
17455 hardcode_shlibpath_var
=no
17456 hardcode_direct_absolute
=yes
17457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17458 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17459 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17460 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17461 export_dynamic_flag_spec
='${wl}-E'
17464 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17465 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17466 hardcode_libdir_flag_spec
='-R$libdir'
17469 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17470 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17480 hardcode_libdir_flag_spec
='-L$libdir'
17481 hardcode_minus_L
=yes
17482 allow_undefined_flag
=unsupported
17483 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'
17484 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17488 if test "$GCC" = yes; then
17489 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17490 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'
17492 allow_undefined_flag
=' -expect_unresolved \*'
17493 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'
17495 archive_cmds_need_lc
='no'
17496 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17497 hardcode_libdir_separator
=:
17500 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17501 if test "$GCC" = yes; then
17502 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17503 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'
17504 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17506 allow_undefined_flag
=' -expect_unresolved \*'
17507 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'
17508 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~
17509 $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'
17511 # Both c and cxx compiler support -rpath directly
17512 hardcode_libdir_flag_spec
='-rpath $libdir'
17514 archive_cmds_need_lc
='no'
17515 hardcode_libdir_separator
=:
17519 no_undefined_flag
=' -z defs'
17520 if test "$GCC" = yes; then
17522 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17524 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17526 case `$CC -V 2>&1` in
17529 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17535 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17537 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17541 hardcode_libdir_flag_spec
='-R$libdir'
17542 hardcode_shlibpath_var
=no
17544 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17546 # The compiler driver will combine and reorder linker options,
17547 # but understands `-z linker_flag'. GCC discards it without `$wl',
17548 # but is careful enough not to reorder.
17549 # Supported since Solaris 2.6 (maybe 2.5.1?)
17550 if test "$GCC" = yes; then
17551 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17553 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17557 link_all_deplibs
=yes
17561 if test "x$host_vendor" = xsequent
; then
17562 # Use $CC to link under sequent, because it throws in some extra .o
17563 # files that make .init and .fini sections work.
17564 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17566 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17568 hardcode_libdir_flag_spec
='-L$libdir'
17569 hardcode_direct
=yes
17570 hardcode_minus_L
=yes
17571 hardcode_shlibpath_var
=no
17575 case $host_vendor in
17577 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578 hardcode_direct
=yes # is this really true???
17581 ## LD is ld it makes a PLAMLIB
17582 ## CC just makes a GrossModule.
17583 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17584 reload_cmds
='$CC -r -o $output$reload_objs'
17588 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17592 runpath_var
='LD_RUN_PATH'
17593 hardcode_shlibpath_var
=no
17597 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598 hardcode_shlibpath_var
=no
17599 export_dynamic_flag_spec
='-Bexport'
17603 if test -d /usr
/nec
; then
17604 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_shlibpath_var
=no
17606 runpath_var
=LD_RUN_PATH
17607 hardcode_runpath_var
=yes
17612 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17613 no_undefined_flag
='${wl}-z,text'
17614 archive_cmds_need_lc
=no
17615 hardcode_shlibpath_var
=no
17616 runpath_var
='LD_RUN_PATH'
17618 if test "$GCC" = yes; then
17619 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17620 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17622 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17623 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17627 sysv5
* | sco3.2v5
* | sco5v6
*)
17628 # Note: We can NOT use -z defs as we might desire, because we do not
17629 # link with -lc, and that would cause any symbols used from libc to
17630 # always be unresolved, which means just about no library would
17631 # ever link correctly. If we're not using GNU ld we use -z text
17632 # though, which does catch some bad symbols but isn't as heavy-handed
17634 no_undefined_flag
='${wl}-z,text'
17635 allow_undefined_flag
='${wl}-z,nodefs'
17636 archive_cmds_need_lc
=no
17637 hardcode_shlibpath_var
=no
17638 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17639 hardcode_libdir_separator
=':'
17640 link_all_deplibs
=yes
17641 export_dynamic_flag_spec
='${wl}-Bexport'
17642 runpath_var
='LD_RUN_PATH'
17644 if test "$GCC" = yes; then
17645 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17648 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17655 hardcode_libdir_flag_spec
='-L$libdir'
17656 hardcode_shlibpath_var
=no
17664 if test x
$host_vendor = xsni
; then
17666 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17667 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17674 $as_echo "$ld_shlibs" >&6; }
17675 test "$ld_shlibs" = no
&& can_build_shared
=no
17677 with_gnu_ld
=$with_gnu_ld
17694 # Do we need to explicitly link libc?
17696 case "x$archive_cmds_need_lc" in
17698 # Assume -lc should be added
17699 archive_cmds_need_lc
=yes
17701 if test "$enable_shared" = yes && test "$GCC" = yes; then
17702 case $archive_cmds in
17704 # FIXME: we may have to deal with multi-command sequences.
17707 # Test whether the compiler implicitly links with -lc since on some
17708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17709 # to ld, don't add -lc before -lgcc.
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17712 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17713 $as_echo_n "(cached) " >&6
17716 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17719 (eval $ac_compile) 2>&5
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; } 2>conftest.err
; then
17725 libobjs
=conftest.
$ac_objext
17727 wl
=$lt_prog_compiler_wl
17728 pic_flag
=$lt_prog_compiler_pic
17734 lt_save_allow_undefined_flag
=$allow_undefined_flag
17735 allow_undefined_flag
=
17736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17737 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; }
17742 lt_cv_archive_cmds_need_lc
=no
17744 lt_cv_archive_cmds_need_lc
=yes
17746 allow_undefined_flag
=$lt_save_allow_undefined_flag
17748 cat conftest.err
1>&5
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17754 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17755 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17921 if test "$GCC" = yes; then
17923 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17924 *) lt_awk_arg
="/^libraries:/" ;;
17927 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17928 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17930 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17931 case $lt_search_path_spec in
17933 # if the path contains ";" then we assume it to be the separator
17934 # otherwise default to the standard path separator (i.e. ":") - it is
17935 # assumed that no part of a normal pathname contains ";" but that should
17936 # okay in the real world where ";" in dirpaths is itself problematic.
17937 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17940 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17943 # Ok, now we have the path, separated by spaces, we can step through it
17944 # and add multilib dir if necessary.
17945 lt_tmp_lt_search_path_spec
=
17946 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17947 for lt_sys_path
in $lt_search_path_spec; do
17948 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17949 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17951 test -d "$lt_sys_path" && \
17952 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17955 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17956 BEGIN {RS=" "; FS="/|\n";} {
17959 for (lt_i = NF; lt_i > 0; lt_i--) {
17960 if ($lt_i != "" && $lt_i != ".") {
17961 if ($lt_i == "..") {
17964 if (lt_count == 0) {
17965 lt_foo="/" $lt_i lt_foo;
17972 if (lt_foo != "") { lt_freq[lt_foo]++; }
17973 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17975 # AWK program above erroneously prepends '/' to C:/dos/paths
17978 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17979 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17981 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17983 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17985 library_names_spec
=
17986 libname_spec
='lib$name'
17990 postuninstall_cmds
=
17994 shlibpath_overrides_runpath
=unknown
17996 dynamic_linker
="$host_os ld.so"
17997 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17998 need_lib_prefix
=unknown
17999 hardcode_into_libs
=no
18001 # when you set need_version to no, make sure it does not cause -set_version
18002 # flags to be left without arguments
18003 need_version
=unknown
18008 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18009 shlibpath_var
=LIBPATH
18011 # AIX 3 has no versioning support, so we append a major version to the name.
18012 soname_spec
='${libname}${release}${shared_ext}$major'
18019 hardcode_into_libs
=yes
18020 if test "$host_cpu" = ia64
; then
18021 # AIX 5 supports IA64
18022 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18023 shlibpath_var
=LD_LIBRARY_PATH
18025 # With GCC up to 2.95.x, collect2 would create an import file
18026 # for dependence libraries. The import file would start with
18027 # the line `#! .'. This would cause the generated library to
18028 # depend on `.', always an invalid library. This was fixed in
18029 # development snapshots of GCC prior to 3.0.
18031 aix4 | aix4.
[01] | aix4.
[01].
*)
18032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18034 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18037 can_build_shared
=no
18041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18042 # soname into executable. Probably we can add versioning support to
18043 # collect2, so additional links can be useful in future.
18044 if test "$aix_use_runtimelinking" = yes; then
18045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18046 # instead of lib<name>.a to let people know that these are not
18047 # typical AIX shared libraries.
18048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 # We preserve .a as extension for shared libraries through AIX4.2
18051 # and later when we are not doing run time linking.
18052 library_names_spec
='${libname}${release}.a $libname.a'
18053 soname_spec
='${libname}${release}${shared_ext}$major'
18055 shlibpath_var
=LIBPATH
18062 # Since July 2007 AmigaOS4 officially supports .so libraries.
18063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067 library_names_spec
='$libname.ixlibrary $libname.a'
18068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18069 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'
18075 library_names_spec
='${libname}${shared_ext}'
18076 dynamic_linker
="$host_os ld.so"
18077 shlibpath_var
=LIBRARY_PATH
18083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec
='${libname}${release}${shared_ext}$major'
18085 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18086 shlibpath_var
=LD_LIBRARY_PATH
18087 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18088 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18089 # the default ld.so.conf also contains /usr/contrib/lib and
18090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18091 # libtool to hard-code these into programs
18094 cygwin
* | mingw
* | pw32
* | cegcc
*)
18095 version_type
=windows
18100 case $GCC,$host_os in
18101 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18102 library_names_spec
='$libname.dll.a'
18103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18104 postinstall_cmds
='base_file=`basename \${file}`~
18105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18106 dldir=$destdir/`dirname \$dlpath`~
18107 test -d \$dldir || mkdir -p \$dldir~
18108 $install_prog $dir/$dlname \$dldir/$dlname~
18109 chmod a+x \$dldir/$dlname~
18110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18113 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18114 dlpath=$dir/\$dldll~
18116 shlibpath_overrides_runpath
=yes
18120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18121 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18123 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18126 # MinGW DLLs use traditional 'lib' prefix
18127 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18130 # pw32 DLLs use 'pw' prefix rather than 'lib'
18131 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18137 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18140 dynamic_linker
='Win32 ld.exe'
18141 # FIXME: first we should search . and the directory the executable is in
18145 darwin
* | rhapsody
*)
18146 dynamic_linker
="$host_os dyld"
18147 version_type
=darwin
18150 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18151 soname_spec
='${libname}${release}${major}$shared_ext'
18152 shlibpath_overrides_runpath
=yes
18153 shlibpath_var
=DYLD_LIBRARY_PATH
18154 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18156 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18157 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18165 soname_spec
='${libname}${release}${shared_ext}$major'
18166 shlibpath_var
=LD_LIBRARY_PATH
18169 freebsd
* | dragonfly
*)
18170 # DragonFly does not have aout. When/if they implement a new
18171 # versioning mechanism, adjust this.
18172 if test -x /usr
/bin
/objformat
; then
18173 objformat
=`/usr/bin/objformat`
18176 freebsd
[23].
*) objformat
=aout
;;
18177 *) objformat
=elf
;;
18180 version_type
=freebsd-
$objformat
18181 case $version_type in
18183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18188 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18192 shlibpath_var
=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath
=yes
18197 freebsd3.
[01]* | freebsdelf3.
[01]*)
18198 shlibpath_overrides_runpath
=yes
18199 hardcode_into_libs
=yes
18201 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18202 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18203 shlibpath_overrides_runpath
=no
18204 hardcode_into_libs
=yes
18206 *) # from 4.6 on, and DragonFly
18207 shlibpath_overrides_runpath
=yes
18208 hardcode_into_libs
=yes
18217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18218 soname_spec
='${libname}${release}${shared_ext}$major'
18219 shlibpath_var
=LD_LIBRARY_PATH
18220 hardcode_into_libs
=yes
18227 dynamic_linker
="$host_os runtime_loader"
18228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18229 soname_spec
='${libname}${release}${shared_ext}$major'
18230 shlibpath_var
=LIBRARY_PATH
18231 shlibpath_overrides_runpath
=yes
18232 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18233 hardcode_into_libs
=yes
18236 hpux9
* | hpux10
* | hpux11
*)
18237 # Give a soname corresponding to the major version so that dld.sl refuses to
18238 # link against other versions.
18245 hardcode_into_libs
=yes
18246 dynamic_linker
="$host_os dld.so"
18247 shlibpath_var
=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec
='${libname}${release}${shared_ext}$major'
18251 if test "X$HPUX_IA64_MODE" = X32
; then
18252 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18254 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18256 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18260 hardcode_into_libs
=yes
18261 dynamic_linker
="$host_os dld.sl"
18262 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18263 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec
='${libname}${release}${shared_ext}$major'
18266 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18267 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18271 dynamic_linker
="$host_os dld.sl"
18272 shlibpath_var
=SHLIB_PATH
18273 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec
='${libname}${release}${shared_ext}$major'
18278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18279 postinstall_cmds
='chmod 555 $lib'
18280 # or fails outright, so override atomically:
18281 install_override_mode
=555
18288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18289 soname_spec
='${libname}${release}${shared_ext}$major'
18290 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18291 shlibpath_var
=LD_LIBRARY_PATH
18292 shlibpath_overrides_runpath
=no
18293 hardcode_into_libs
=yes
18296 irix5
* | irix6
* | nonstopux
*)
18298 nonstopux
*) version_type
=nonstopux
;;
18300 if test "$lt_cv_prog_gnu_ld" = yes; then
18308 soname_spec
='${libname}${release}${shared_ext}$major'
18309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18311 irix5
* | nonstopux
*)
18312 libsuff
= shlibsuff
=
18315 case $LD in # libtool.m4 will add one of these switches to LD
18316 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18317 libsuff
= shlibsuff
= libmagic
=32-bit;;
18318 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18319 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18320 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18321 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18322 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18326 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18327 shlibpath_overrides_runpath
=no
18328 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18329 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18330 hardcode_into_libs
=yes
18333 # No shared lib support for Linux oldld, aout, or coff.
18334 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18338 # This must be Linux ELF.
18340 # uclinux* changes (here and below) have been submitted to the libtool
18341 # project, but have not yet been accepted: they are GCC-local changes
18342 # for the time being. (See
18343 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18344 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec
='${libname}${release}${shared_ext}$major'
18350 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18351 shlibpath_var
=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath
=no
18354 # Some binutils ld are patched to set DT_RUNPATH
18355 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18356 $as_echo_n "(cached) " >&6
18358 lt_cv_shlibpath_overrides_runpath
=no
18359 save_LDFLAGS
=$LDFLAGS
18360 save_libdir
=$libdir
18361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18374 if ac_fn_c_try_link
"$LINENO"; then :
18375 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18376 lt_cv_shlibpath_overrides_runpath
=yes
18379 rm -f core conftest.err conftest.
$ac_objext \
18380 conftest
$ac_exeext conftest.
$ac_ext
18381 LDFLAGS
=$save_LDFLAGS
18382 libdir
=$save_libdir
18386 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18388 # This implies no fast_install, which is unacceptable.
18389 # Some rework will be needed to allow for fast_install
18390 # before this can be enabled.
18391 hardcode_into_libs
=yes
18393 # Append ld.so.conf contents to the search path
18394 if test -f /etc
/ld.so.conf
; then
18395 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' ' '`
18396 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18399 # We used to test for /lib/ld.so.1 and disable shared libraries on
18400 # powerpc, because MkLinux only supported shared libraries with the
18401 # GNU dynamic linker. Since this was broken with cross compilers,
18402 # most powerpc-linux boxes support dynamic linking these days and
18403 # people can always --disable-shared, the test was removed, and we
18404 # assume the GNU/Linux dynamic linker is in use.
18405 dynamic_linker
='GNU/Linux ld.so'
18412 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18414 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18415 dynamic_linker
='NetBSD (a.out) ld.so'
18417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18418 soname_spec
='${libname}${release}${shared_ext}$major'
18419 dynamic_linker
='NetBSD ld.elf_so'
18421 shlibpath_var
=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath
=yes
18423 hardcode_into_libs
=yes
18428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 shlibpath_var
=LD_LIBRARY_PATH
18430 shlibpath_overrides_runpath
=yes
18437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec
='${libname}${release}${shared_ext}$major'
18439 shlibpath_var
=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath
=no
18441 hardcode_into_libs
=yes
18442 dynamic_linker
='ldqnx.so'
18447 sys_lib_dlsearch_path_spec
="/usr/lib"
18449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18451 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18452 *) need_version
=no
;;
18454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18455 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18456 shlibpath_var
=LD_LIBRARY_PATH
18457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18459 openbsd2.
[89] | openbsd2.
[89].
*)
18460 shlibpath_overrides_runpath
=no
18463 shlibpath_overrides_runpath
=yes
18467 shlibpath_overrides_runpath
=yes
18472 libname_spec
='$name'
18475 library_names_spec
='$libname${shared_ext} $libname.a'
18476 dynamic_linker
='OS/2 ld.exe'
18477 shlibpath_var
=LIBPATH
18480 osf3
* | osf4
* | osf5
*)
18484 soname_spec
='${libname}${release}${shared_ext}$major'
18485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486 shlibpath_var
=LD_LIBRARY_PATH
18487 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18488 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec
='${libname}${release}${shared_ext}$major'
18501 shlibpath_var
=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath
=yes
18503 hardcode_into_libs
=yes
18504 # ldd complains unless libraries are executable
18505 postinstall_cmds
='chmod +x $lib'
18510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18511 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18512 shlibpath_var
=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath
=yes
18514 if test "$with_gnu_ld" = yes; then
18522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 soname_spec
='${libname}${release}${shared_ext}$major'
18524 shlibpath_var
=LD_LIBRARY_PATH
18525 case $host_vendor in
18527 shlibpath_overrides_runpath
=no
18529 runpath_var
=LD_RUN_PATH
18537 shlibpath_overrides_runpath
=no
18538 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18544 if test -d /usr
/nec
;then
18546 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18547 soname_spec
='$libname${shared_ext}.$major'
18548 shlibpath_var
=LD_LIBRARY_PATH
18552 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18553 version_type
=freebsd-elf
18556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18557 soname_spec
='${libname}${release}${shared_ext}$major'
18558 shlibpath_var
=LD_LIBRARY_PATH
18559 shlibpath_overrides_runpath
=yes
18560 hardcode_into_libs
=yes
18561 if test "$with_gnu_ld" = yes; then
18562 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18564 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18567 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18571 sys_lib_dlsearch_path_spec
='/usr/lib'
18575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580 shlibpath_var
=LD_LIBRARY_PATH
18581 shlibpath_overrides_runpath
=no
18582 hardcode_into_libs
=yes
18587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec
='${libname}${release}${shared_ext}$major'
18589 shlibpath_var
=LD_LIBRARY_PATH
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18597 $as_echo "$dynamic_linker" >&6; }
18598 test "$dynamic_linker" = no
&& can_build_shared
=no
18600 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18601 if test "$GCC" = yes; then
18602 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18605 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18606 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18608 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18609 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18706 if test -n "$hardcode_libdir_flag_spec" ||
18707 test -n "$runpath_var" ||
18708 test "X$hardcode_automatic" = "Xyes" ; then
18710 # We can hardcode non-existent directories.
18711 if test "$hardcode_direct" != no
&&
18712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18713 # have to relink, otherwise we might link with an installed library
18714 # when we should be linking with a yet-to-be-installed one
18715 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18716 test "$hardcode_minus_L" != no
; then
18717 # Linking always hardcodes the temporary library directory.
18718 hardcode_action
=relink
18720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18721 hardcode_action
=immediate
18724 # We cannot hardcode anything, or else we can only hardcode existing
18726 hardcode_action
=unsupported
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18729 $as_echo "$hardcode_action" >&6; }
18731 if test "$hardcode_action" = relink ||
18732 test "$inherit_rpath" = yes; then
18733 # Fast installation is not supported
18734 enable_fast_install
=no
18735 elif test "$shlibpath_overrides_runpath" = yes ||
18736 test "$enable_shared" = no
; then
18737 # Fast installation is not necessary
18738 enable_fast_install
=needless
18746 if test "x$enable_dlopen" != xyes
; then
18747 enable_dlopen
=unknown
18748 enable_dlopen_self
=unknown
18749 enable_dlopen_self_static
=unknown
18756 lt_cv_dlopen
="load_add_on"
18758 lt_cv_dlopen_self
=yes
18761 mingw
* | pw32
* | cegcc
*)
18762 lt_cv_dlopen
="LoadLibrary"
18767 lt_cv_dlopen
="dlopen"
18772 # if libdl is installed we need to link against it
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18775 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18776 $as_echo_n "(cached) " >&6
18778 ac_check_lib_save_LIBS
=$LIBS
18780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18798 if ac_fn_c_try_link
"$LINENO"; then :
18799 ac_cv_lib_dl_dlopen
=yes
18801 ac_cv_lib_dl_dlopen
=no
18803 rm -f core conftest.err conftest.
$ac_objext \
18804 conftest
$ac_exeext conftest.
$ac_ext
18805 LIBS
=$ac_check_lib_save_LIBS
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18809 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18810 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18813 lt_cv_dlopen
="dyld"
18815 lt_cv_dlopen_self
=yes
18822 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18823 if test "x$ac_cv_func_shl_load" = xyes
; then :
18824 lt_cv_dlopen
="shl_load"
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18827 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18828 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18829 $as_echo_n "(cached) " >&6
18831 ac_check_lib_save_LIBS
=$LIBS
18833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18846 return shl_load ();
18851 if ac_fn_c_try_link
"$LINENO"; then :
18852 ac_cv_lib_dld_shl_load
=yes
18854 ac_cv_lib_dld_shl_load
=no
18856 rm -f core conftest.err conftest.
$ac_objext \
18857 conftest
$ac_exeext conftest.
$ac_ext
18858 LIBS
=$ac_check_lib_save_LIBS
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18861 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18862 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18863 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18865 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18866 if test "x$ac_cv_func_dlopen" = xyes
; then :
18867 lt_cv_dlopen
="dlopen"
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18871 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18872 $as_echo_n "(cached) " >&6
18874 ac_check_lib_save_LIBS
=$LIBS
18876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18894 if ac_fn_c_try_link
"$LINENO"; then :
18895 ac_cv_lib_dl_dlopen
=yes
18897 ac_cv_lib_dl_dlopen
=no
18899 rm -f core conftest.err conftest.
$ac_objext \
18900 conftest
$ac_exeext conftest.
$ac_ext
18901 LIBS
=$ac_check_lib_save_LIBS
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18905 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18906 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18909 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18910 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18911 $as_echo_n "(cached) " >&6
18913 ac_check_lib_save_LIBS
=$LIBS
18914 LIBS
="-lsvld $LIBS"
18915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18933 if ac_fn_c_try_link
"$LINENO"; then :
18934 ac_cv_lib_svld_dlopen
=yes
18936 ac_cv_lib_svld_dlopen
=no
18938 rm -f core conftest.err conftest.
$ac_objext \
18939 conftest
$ac_exeext conftest.
$ac_ext
18940 LIBS
=$ac_check_lib_save_LIBS
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18943 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18944 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18945 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18948 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18949 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18950 $as_echo_n "(cached) " >&6
18952 ac_check_lib_save_LIBS
=$LIBS
18954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18967 return dld_link ();
18972 if ac_fn_c_try_link
"$LINENO"; then :
18973 ac_cv_lib_dld_dld_link
=yes
18975 ac_cv_lib_dld_dld_link
=no
18977 rm -f core conftest.err conftest.
$ac_objext \
18978 conftest
$ac_exeext conftest.
$ac_ext
18979 LIBS
=$ac_check_lib_save_LIBS
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18982 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18983 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18984 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19005 if test "x$lt_cv_dlopen" != xno
; then
19011 case $lt_cv_dlopen in
19013 save_CPPFLAGS
="$CPPFLAGS"
19014 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19016 save_LDFLAGS
="$LDFLAGS"
19017 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19020 LIBS
="$lt_cv_dlopen_libs $LIBS"
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19023 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19024 if ${lt_cv_dlopen_self+:} false
; then :
19025 $as_echo_n "(cached) " >&6
19027 if test "$cross_compiling" = yes; then :
19028 lt_cv_dlopen_self
=cross
19030 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19031 lt_status
=$lt_dlunknown
19032 cat > conftest.
$ac_ext <<_LT_EOF
19033 #line 19033 "configure"
19034 #include "confdefs.h"
19043 # define LT_DLGLOBAL RTLD_GLOBAL
19046 # define LT_DLGLOBAL DL_GLOBAL
19048 # define LT_DLGLOBAL 0
19052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19053 find out it does not work in some platform. */
19054 #ifndef LT_DLLAZY_OR_NOW
19056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19059 # define LT_DLLAZY_OR_NOW DL_LAZY
19062 # define LT_DLLAZY_OR_NOW RTLD_NOW
19065 # define LT_DLLAZY_OR_NOW DL_NOW
19067 # define LT_DLLAZY_OR_NOW 0
19074 /* When -fvisbility=hidden is used, assume the code has been annotated
19075 correspondingly for the symbols needed. */
19076 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19077 void fnord () __attribute__((visibility("default")));
19080 void fnord () { int i=42; }
19083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19084 int status = $lt_dlunknown;
19088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19092 else puts (dlerror ());
19094 /* dlclose (self); */
19102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19103 (eval $ac_link) 2>&5
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19107 (.
/conftest
; exit; ) >&5 2>/dev
/null
19109 case x
$lt_status in
19110 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19111 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19112 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19115 # compilation failed
19116 lt_cv_dlopen_self
=no
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19124 $as_echo "$lt_cv_dlopen_self" >&6; }
19126 if test "x$lt_cv_dlopen_self" = xyes
; then
19127 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19129 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19130 if ${lt_cv_dlopen_self_static+:} false
; then :
19131 $as_echo_n "(cached) " >&6
19133 if test "$cross_compiling" = yes; then :
19134 lt_cv_dlopen_self_static
=cross
19136 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19137 lt_status
=$lt_dlunknown
19138 cat > conftest.
$ac_ext <<_LT_EOF
19139 #line 19139 "configure"
19140 #include "confdefs.h"
19149 # define LT_DLGLOBAL RTLD_GLOBAL
19152 # define LT_DLGLOBAL DL_GLOBAL
19154 # define LT_DLGLOBAL 0
19158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19159 find out it does not work in some platform. */
19160 #ifndef LT_DLLAZY_OR_NOW
19162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19165 # define LT_DLLAZY_OR_NOW DL_LAZY
19168 # define LT_DLLAZY_OR_NOW RTLD_NOW
19171 # define LT_DLLAZY_OR_NOW DL_NOW
19173 # define LT_DLLAZY_OR_NOW 0
19180 /* When -fvisbility=hidden is used, assume the code has been annotated
19181 correspondingly for the symbols needed. */
19182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19183 void fnord () __attribute__((visibility("default")));
19186 void fnord () { int i=42; }
19189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19190 int status = $lt_dlunknown;
19194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19198 else puts (dlerror ());
19200 /* dlclose (self); */
19208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19209 (eval $ac_link) 2>&5
19211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19212 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19213 (.
/conftest
; exit; ) >&5 2>/dev
/null
19215 case x
$lt_status in
19216 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19217 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19218 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19221 # compilation failed
19222 lt_cv_dlopen_self_static
=no
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19230 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19233 CPPFLAGS
="$save_CPPFLAGS"
19234 LDFLAGS
="$save_LDFLAGS"
19239 case $lt_cv_dlopen_self in
19240 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19241 *) enable_dlopen_self
=unknown
;;
19244 case $lt_cv_dlopen_self_static in
19245 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19246 *) enable_dlopen_self_static
=unknown
;;
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19269 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19270 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19271 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19272 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274 $as_echo "yes" >&6; }
19276 # FIXME - insert some real tests, host_os isn't really good enough
19279 if test -n "$STRIP" ; then
19280 striplib
="$STRIP -x"
19281 old_striplib
="$STRIP -S"
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19283 $as_echo "yes" >&6; }
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19291 $as_echo "no" >&6; }
19307 # Report which library types will actually be built
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19309 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19311 $as_echo "$can_build_shared" >&6; }
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19314 $as_echo_n "checking whether to build shared libraries... " >&6; }
19315 test "$can_build_shared" = "no" && enable_shared
=no
19317 # On AIX, shared libraries and static libraries use the same namespace, and
19318 # are all built from PIC.
19321 test "$enable_shared" = yes && enable_static
=no
19322 if test -n "$RANLIB"; then
19323 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19324 postinstall_cmds
='$RANLIB $lib'
19329 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19330 test "$enable_shared" = yes && enable_static
=no
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19335 $as_echo "$enable_shared" >&6; }
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19338 $as_echo_n "checking whether to build static libraries... " >&6; }
19339 # Make sure either enable_shared or enable_static is yes.
19340 test "$enable_shared" = yes || enable_static
=yes
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19342 $as_echo "$enable_static" >&6; }
19349 ac_cpp
='$CXXCPP $CPPFLAGS'
19350 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19356 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19357 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19358 (test "X$CXX" != "Xg++"))) ; then
19360 ac_cpp
='$CXXCPP $CPPFLAGS'
19361 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19365 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19366 if test -z "$CXXCPP"; then
19367 if ${ac_cv_prog_CXXCPP+:} false
; then :
19368 $as_echo_n "(cached) " >&6
19370 # Double quotes because CXXCPP needs to be expanded
19371 for CXXCPP
in "$CXX -E" "/lib/cpp"
19373 ac_preproc_ok
=false
19374 for ac_cxx_preproc_warn_flag
in '' yes
19376 # Use a header file that comes with gcc, so configuring glibc
19377 # with a fresh cross-compiler works.
19378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19379 # <limits.h> exists even on freestanding compilers.
19380 # On the NeXT, cc -E runs the code through the compiler's parser,
19381 # not just through cpp. "Syntax error" is here to catch this case.
19382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19385 # include <limits.h>
19387 # include <assert.h>
19391 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19394 # Broken: fails on valid input.
19397 rm -f conftest.err conftest.i conftest.
$ac_ext
19399 # OK, works on sane cases. Now check whether nonexistent headers
19400 # can be detected and how.
19401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 #include <ac_nonexistent.h>
19405 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19406 # Broken: success on invalid input.
19409 # Passes both tests.
19413 rm -f conftest.err conftest.i conftest.
$ac_ext
19416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19417 rm -f conftest.i conftest.err conftest.
$ac_ext
19418 if $ac_preproc_ok; then :
19423 ac_cv_prog_CXXCPP
=$CXXCPP
19426 CXXCPP
=$ac_cv_prog_CXXCPP
19428 ac_cv_prog_CXXCPP
=$CXXCPP
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19431 $as_echo "$CXXCPP" >&6; }
19432 ac_preproc_ok
=false
19433 for ac_cxx_preproc_warn_flag
in '' yes
19435 # Use a header file that comes with gcc, so configuring glibc
19436 # with a fresh cross-compiler works.
19437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19438 # <limits.h> exists even on freestanding compilers.
19439 # On the NeXT, cc -E runs the code through the compiler's parser,
19440 # not just through cpp. "Syntax error" is here to catch this case.
19441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 # include <limits.h>
19446 # include <assert.h>
19450 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19453 # Broken: fails on valid input.
19456 rm -f conftest.err conftest.i conftest.
$ac_ext
19458 # OK, works on sane cases. Now check whether nonexistent headers
19459 # can be detected and how.
19460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 #include <ac_nonexistent.h>
19464 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19465 # Broken: success on invalid input.
19468 # Passes both tests.
19472 rm -f conftest.err conftest.i conftest.
$ac_ext
19475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19476 rm -f conftest.i conftest.err conftest.
$ac_ext
19477 if $ac_preproc_ok; then :
19480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19482 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19483 See \`config.log' for more details" "$LINENO" 5; }
19487 ac_cpp
='$CXXCPP $CPPFLAGS'
19488 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19493 _lt_caught_CXX_error
=yes
19497 ac_cpp
='$CXXCPP $CPPFLAGS'
19498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19502 archive_cmds_need_lc_CXX
=no
19503 allow_undefined_flag_CXX
=
19504 always_export_symbols_CXX
=no
19505 archive_expsym_cmds_CXX
=
19506 compiler_needs_object_CXX
=no
19507 export_dynamic_flag_spec_CXX
=
19508 hardcode_direct_CXX
=no
19509 hardcode_direct_absolute_CXX
=no
19510 hardcode_libdir_flag_spec_CXX
=
19511 hardcode_libdir_flag_spec_ld_CXX
=
19512 hardcode_libdir_separator_CXX
=
19513 hardcode_minus_L_CXX
=no
19514 hardcode_shlibpath_var_CXX
=unsupported
19515 hardcode_automatic_CXX
=no
19516 inherit_rpath_CXX
=no
19518 module_expsym_cmds_CXX
=
19519 link_all_deplibs_CXX
=unknown
19520 old_archive_cmds_CXX
=$old_archive_cmds
19521 reload_flag_CXX
=$reload_flag
19522 reload_cmds_CXX
=$reload_cmds
19523 no_undefined_flag_CXX
=
19524 whole_archive_flag_spec_CXX
=
19525 enable_shared_with_static_runtimes_CXX
=no
19527 # Source file extension for C++ test sources.
19530 # Object file extension for compiled C++ test sources.
19534 # No sense in running all these tests if we already determined that
19535 # the CXX compiler isn't working. Some variables (like enable_shared)
19536 # are currently assumed to apply to all compilers on this platform,
19537 # and will be corrupted by setting them based on a non-working compiler.
19538 if test "$_lt_caught_CXX_error" != yes; then
19539 # Code to be used in simple compile tests
19540 lt_simple_compile_test_code
="int some_variable = 0;"
19542 # Code to be used in simple link tests
19543 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19552 # If no C compiler was specified, use CC.
19555 # If no C compiler flags were specified, use CFLAGS.
19556 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19558 # Allow CC to be a program name with arguments.
19562 # save warnings/boilerplate of simple test code
19563 ac_outfile
=conftest.
$ac_objext
19564 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19565 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19566 _lt_compiler_boilerplate
=`cat conftest.err`
19569 ac_outfile
=conftest.
$ac_objext
19570 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19571 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_linker_boilerplate
=`cat conftest.err`
19576 # Allow CC to be a program name with arguments.
19581 lt_save_with_gnu_ld
=$with_gnu_ld
19582 lt_save_path_LD
=$lt_cv_path_LD
19583 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19584 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19586 $as_unset lt_cv_prog_gnu_ld
19588 if test -n "${lt_cv_path_LDCXX+set}"; then
19589 lt_cv_path_LD
=$lt_cv_path_LDCXX
19591 $as_unset lt_cv_path_LD
19593 test -z "${LDCXX+set}" || LD
=$LDCXX
19597 for cc_temp
in $compiler""; do
19599 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19600 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19605 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19608 if test -n "$compiler"; then
19609 # We don't want -fno-exception when compiling C++ code, so set the
19610 # no_builtin_flag separately
19611 if test "$GXX" = yes; then
19612 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19614 lt_prog_compiler_no_builtin_flag_CXX
=
19617 if test "$GXX" = yes; then
19618 # Set up default GNU C++ configuration
19622 # Check whether --with-gnu-ld was given.
19623 if test "${with_gnu_ld+set}" = set; then :
19624 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19630 if test "$GCC" = yes; then
19631 # Check if gcc -print-prog-name=ld gives a path.
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19633 $as_echo_n "checking for ld used by $CC... " >&6; }
19636 # gcc leaves a trailing carriage return which upsets mingw
19637 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19639 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19642 # Accept absolute paths.
19644 re_direlt
='/[^/][^/]*/\.\./'
19645 # Canonicalize the pathname of ld
19646 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19647 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19648 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19650 test -z "$LD" && LD
="$ac_prog"
19653 # If it fails, then pretend we aren't using GCC.
19657 # If it is relative, then search for the first ld in PATH.
19658 with_gnu_ld
=unknown
19661 elif test "$with_gnu_ld" = yes; then
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19663 $as_echo_n "checking for GNU ld... " >&6; }
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19666 $as_echo_n "checking for non-GNU ld... " >&6; }
19668 if ${lt_cv_path_LD+:} false
; then :
19669 $as_echo_n "(cached) " >&6
19671 if test -z "$LD"; then
19672 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19673 for ac_dir
in $PATH; do
19675 test -z "$ac_dir" && ac_dir
=.
19676 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19677 lt_cv_path_LD
="$ac_dir/$ac_prog"
19678 # Check to see if the program is GNU ld. I'd rather use --version,
19679 # but apparently some variants of GNU ld only accept -v.
19680 # Break only if it was the GNU/non-GNU ld that we prefer.
19681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19682 *GNU
* |
*'with BFD'*)
19683 test "$with_gnu_ld" != no
&& break
19686 test "$with_gnu_ld" != yes && break
19693 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19697 LD
="$lt_cv_path_LD"
19698 if test -n "$LD"; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19700 $as_echo "$LD" >&6; }
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703 $as_echo "no" >&6; }
19705 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19708 if ${lt_cv_prog_gnu_ld+:} false
; then :
19709 $as_echo_n "(cached) " >&6
19711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19712 case `$LD -v 2>&1 </dev/null` in
19713 *GNU
* |
*'with BFD'*)
19714 lt_cv_prog_gnu_ld
=yes
19717 lt_cv_prog_gnu_ld
=no
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19723 with_gnu_ld
=$lt_cv_prog_gnu_ld
19731 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19732 # archiving commands below assume that GNU ld is being used.
19733 if test "$with_gnu_ld" = yes; then
19734 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19737 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19738 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19740 # If archive_cmds runs LD, not CC, wlarc should be empty
19741 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19742 # investigate it a little bit more. (MM)
19745 # ancient GNU ld didn't support --whole-archive et. al.
19746 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19747 $GREP 'no-whole-archive' > /dev
/null
; then
19748 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19750 whole_archive_flag_spec_CXX
=
19756 # A generic and very simple default shared library creation
19757 # command for GNU C++ for the case where it uses the native
19758 # linker, instead of GNU ld. If possible, this setting should
19759 # overridden to take advantage of the native linker features on
19760 # the platform it is being used on.
19761 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19764 # Commands to make compiler produce verbose output that lists
19765 # what "hidden" libraries, object files and flags are used when
19766 # linking a shared library.
19767 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19775 # PORTME: fill in a description of your system's C++ link characteristics
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19781 # FIXME: insert proper C++ library support
19785 if test "$host_cpu" = ia64
; then
19786 # On IA64, the linker does run time linking by default, so we don't
19787 # have to do anything special.
19788 aix_use_runtimelinking
=no
19789 exp_sym_flag
='-Bexport'
19792 aix_use_runtimelinking
=no
19794 # Test if we are trying to use run time linking or normal
19795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19796 # need to do runtime linking.
19797 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19798 for ld_flag
in $LDFLAGS; do
19801 aix_use_runtimelinking
=yes
19809 exp_sym_flag
='-bexport'
19810 no_entry_flag
='-bnoentry'
19813 # When large executables or shared objects are built, AIX ld can
19814 # have problems creating the table of contents. If linking a library
19815 # or program results in "error TOC overflow" add -mminimal-toc to
19816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19819 archive_cmds_CXX
=''
19820 hardcode_direct_CXX
=yes
19821 hardcode_direct_absolute_CXX
=yes
19822 hardcode_libdir_separator_CXX
=':'
19823 link_all_deplibs_CXX
=yes
19824 file_list_spec_CXX
='${wl}-f,'
19826 if test "$GXX" = yes; then
19827 case $host_os in aix4.
[012]|aix4.
[012].
*)
19828 # We only want to do this on AIX 4.2 and lower, the check
19829 # below for broken collect2 doesn't work under 4.3+
19830 collect2name
=`${CC} -print-prog-name=collect2`
19831 if test -f "$collect2name" &&
19832 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19834 # We have reworked collect2
19837 # We have old collect2
19838 hardcode_direct_CXX
=unsupported
19839 # It fails to find uninstalled libraries when the uninstalled
19840 # path is not listed in the libpath. Setting hardcode_minus_L
19841 # to unsupported forces relinking
19842 hardcode_minus_L_CXX
=yes
19843 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19844 hardcode_libdir_separator_CXX
=
19847 shared_flag
='-shared'
19848 if test "$aix_use_runtimelinking" = yes; then
19849 shared_flag
="$shared_flag "'${wl}-G'
19853 if test "$host_cpu" = ia64
; then
19854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19855 # chokes on -Wl,-G. The following line is correct:
19858 if test "$aix_use_runtimelinking" = yes; then
19859 shared_flag
='${wl}-G'
19861 shared_flag
='${wl}-bM:SRE'
19866 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19867 # It seems that -bexpall does not export symbols beginning with
19868 # underscore (_), so it is better to generate a list of symbols to
19870 always_export_symbols_CXX
=yes
19871 if test "$aix_use_runtimelinking" = yes; then
19872 # Warning - without using the other runtime loading flags (-brtl),
19873 # -berok will link without error, but may produce a broken library.
19874 allow_undefined_flag_CXX
='-berok'
19875 # Determine the default libpath from the value encoded in an empty
19877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19888 if ac_fn_cxx_try_link
"$LINENO"; then :
19890 lt_aix_libpath_sed
='
19891 /Import File Strings/,/^$/ {
19897 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19898 # Check for a 64-bit object if we didn't find anything.
19899 if test -z "$aix_libpath"; then
19900 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19903 rm -f core conftest.err conftest.
$ac_objext \
19904 conftest
$ac_exeext conftest.
$ac_ext
19905 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19907 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19909 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"
19911 if test "$host_cpu" = ia64
; then
19912 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19913 allow_undefined_flag_CXX
="-z nodefs"
19914 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"
19916 # Determine the default libpath from the value encoded in an
19917 # empty executable.
19918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19929 if ac_fn_cxx_try_link
"$LINENO"; then :
19931 lt_aix_libpath_sed
='
19932 /Import File Strings/,/^$/ {
19938 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19939 # Check for a 64-bit object if we didn't find anything.
19940 if test -z "$aix_libpath"; then
19941 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19944 rm -f core conftest.err conftest.
$ac_objext \
19945 conftest
$ac_exeext conftest.
$ac_ext
19946 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19948 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19949 # Warning - without using the other run time loading flags,
19950 # -berok will link without error, but may produce a broken library.
19951 no_undefined_flag_CXX
=' ${wl}-bernotok'
19952 allow_undefined_flag_CXX
=' ${wl}-berok'
19953 if test "$with_gnu_ld" = yes; then
19954 # We only use this code for GNU lds that support --whole-archive.
19955 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19957 # Exported symbols can be pulled into shared objects from archives
19958 whole_archive_flag_spec_CXX
='$convenience'
19960 archive_cmds_need_lc_CXX
=yes
19961 # This is similar to how AIX traditionally builds its shared
19963 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'
19969 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19970 allow_undefined_flag_CXX
=unsupported
19971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19972 # support --undefined. This deserves some investigation. FIXME
19973 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19980 case $cc_basename in
19982 # FIXME: insert proper C++ library support
19988 cygwin
* | mingw
* | pw32
* | cegcc
*)
19989 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19990 # as there is no search path for DLLs.
19991 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19992 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19993 allow_undefined_flag_CXX
=unsupported
19994 always_export_symbols_CXX
=no
19995 enable_shared_with_static_runtimes_CXX
=yes
19997 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19998 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'
19999 # If the export-symbols file already is a .def file (1st line
20000 # is EXPORTS), use it as is; otherwise, prepend...
20001 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20002 cp $export_symbols $output_objdir/$soname.def;
20004 echo EXPORTS > $output_objdir/$soname.def;
20005 cat $export_symbols >> $output_objdir/$soname.def;
20007 $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'
20012 darwin
* | rhapsody
*)
20015 archive_cmds_need_lc_CXX
=no
20016 hardcode_direct_CXX
=no
20017 hardcode_automatic_CXX
=yes
20018 hardcode_shlibpath_var_CXX
=unsupported
20019 if test "$lt_cv_ld_force_load" = "yes"; then
20020 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\"`'
20022 whole_archive_flag_spec_CXX
=''
20024 link_all_deplibs_CXX
=yes
20025 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20026 case $cc_basename in
20027 ifort
*) _lt_dar_can_shared
=yes ;;
20028 *) _lt_dar_can_shared
=$GCC ;;
20030 if test "$_lt_dar_can_shared" = "yes"; then
20031 output_verbose_link_cmd
=func_echo_all
20032 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20033 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20034 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20035 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}"
20036 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20037 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20038 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}"
20048 case $cc_basename in
20050 # FIXME: insert proper C++ library support
20054 # Green Hills C++ Compiler
20055 # FIXME: insert proper C++ library support
20059 # FIXME: insert proper C++ library support
20066 # C++ shared libraries reported to be fairly broken before
20072 archive_cmds_need_lc_CXX
=no
20075 freebsd
* | dragonfly
*)
20076 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20085 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20086 link_all_deplibs_CXX
=yes
20090 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20091 hardcode_libdir_separator_CXX
=:
20092 export_dynamic_flag_spec_CXX
='${wl}-E'
20093 hardcode_direct_CXX
=yes
20094 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20095 # but as the default
20096 # location of the library.
20098 case $cc_basename in
20100 # FIXME: insert proper C++ library support
20104 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'
20105 # Commands to make compiler produce verbose output that lists
20106 # what "hidden" libraries, object files and flags are used when
20107 # linking a shared library.
20109 # There doesn't appear to be a way to prevent this compiler from
20110 # explicitly linking system object files so we need to strip them
20111 # from the output so that they don't get included in the library
20113 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"'
20116 if test "$GXX" = yes; then
20117 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'
20119 # FIXME: insert proper C++ library support
20127 if test $with_gnu_ld = no
; then
20128 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20129 hardcode_libdir_separator_CXX
=:
20135 export_dynamic_flag_spec_CXX
='${wl}-E'
20141 hardcode_direct_CXX
=no
20142 hardcode_shlibpath_var_CXX
=no
20145 hardcode_direct_CXX
=yes
20146 hardcode_direct_absolute_CXX
=yes
20147 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20148 # but as the default
20149 # location of the library.
20153 case $cc_basename in
20155 # FIXME: insert proper C++ library support
20161 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20164 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20167 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20170 # Commands to make compiler produce verbose output that lists
20171 # what "hidden" libraries, object files and flags are used when
20172 # linking a shared library.
20174 # There doesn't appear to be a way to prevent this compiler from
20175 # explicitly linking system object files so we need to strip them
20176 # from the output so that they don't get included in the library
20178 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"'
20181 if test "$GXX" = yes; then
20182 if test $with_gnu_ld = no
; then
20185 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20188 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20191 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'
20196 # FIXME: insert proper C++ library support
20204 hardcode_direct_CXX
=no
20205 hardcode_shlibpath_var_CXX
=no
20206 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20207 export_dynamic_flag_spec_CXX
='${wl}-E'
20208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20209 # Instead, shared libraries are loaded at an image base (0x10000000 by
20210 # default) and relocated if they conflict, which is a slow very memory
20211 # consuming and fragmenting process. To avoid this, we pick a random,
20212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20214 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'
20215 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'
20218 case $cc_basename in
20221 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'
20223 # Archives containing C++ object files must be created using
20224 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20225 # necessary to make sure instantiated templates are included
20227 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20230 if test "$GXX" = yes; then
20231 if test "$with_gnu_ld" = no
; then
20232 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'
20234 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'
20237 link_all_deplibs_CXX
=yes
20240 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20241 hardcode_libdir_separator_CXX
=:
20242 inherit_rpath_CXX
=yes
20245 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20246 case $cc_basename in
20248 # Kuck and Associates, Inc. (KAI) C++ Compiler
20250 # KCC will only create a shared library if the output file
20251 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20252 # to its proper name (with version) after linking.
20253 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'
20254 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'
20255 # Commands to make compiler produce verbose output that lists
20256 # what "hidden" libraries, object files and flags are used when
20257 # linking a shared library.
20259 # There doesn't appear to be a way to prevent this compiler from
20260 # explicitly linking system object files so we need to strip them
20261 # from the output so that they don't get included in the library
20263 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"'
20265 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20266 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20268 # Archives containing C++ object files must be created using
20269 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20270 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20275 # version 8.0 and above of icpc choke on multiply defined symbols
20276 # if we add $predep_objects and $postdep_objects, however 7.1 and
20277 # earlier do not add the objects themselves.
20278 case `$CC -V 2>&1` in
20280 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20281 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'
20283 *) # Version 8.0 or newer
20286 ia64
*) tmp_idyn
=' -i_dynamic';;
20288 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20289 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'
20292 archive_cmds_need_lc_CXX
=no
20293 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20294 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20295 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20298 # Portland Group C++ compiler
20300 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20301 prelink_cmds_CXX
='tpldir=Template.dir~
20303 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20304 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20305 old_archive_cmds_CXX
='tpldir=Template.dir~
20307 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20308 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20310 archive_cmds_CXX
='tpldir=Template.dir~
20312 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20313 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20314 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20316 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20317 $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'
20319 *) # Version 6 and above use weak symbols
20320 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20321 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'
20325 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20326 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20327 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'
20331 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20332 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'
20334 runpath_var
=LD_RUN_PATH
20335 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20336 hardcode_libdir_separator_CXX
=:
20338 # Commands to make compiler produce verbose output that lists
20339 # what "hidden" libraries, object files and flags are used when
20340 # linking a shared library.
20342 # There doesn't appear to be a way to prevent this compiler from
20343 # explicitly linking system object files so we need to strip them
20344 # from the output so that they don't get included in the library
20346 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'
20348 xl
* | mpixl
* | bgxl
*)
20349 # IBM XL 8.0 on PPC, with GNU ld
20350 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20351 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20352 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20353 if test "x$supports_anon_versioning" = xyes
; then
20354 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20356 echo "local: *; };" >> $output_objdir/$libname.ver~
20357 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20361 case `$CC -V 2>&1 | sed 5q` in
20364 no_undefined_flag_CXX
=' -zdefs'
20365 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20366 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'
20367 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20368 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'
20369 compiler_needs_object_CXX
=yes
20371 # Not sure whether something based on
20372 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20374 output_verbose_link_cmd
='func_echo_all'
20376 # Archives containing C++ object files must be created using
20377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20378 # necessary to make sure instantiated templates are included
20380 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20388 # FIXME: insert proper C++ library support
20393 # FIXME: insert proper C++ library support
20398 case $cc_basename in
20400 # FIXME: insert proper C++ library support
20404 # FIXME: insert proper C++ library support
20411 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20412 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20414 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20415 hardcode_direct_CXX
=yes
20416 hardcode_shlibpath_var_CXX
=no
20418 # Workaround some broken pre-1.5 toolchains
20419 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20427 # C++ shared libraries are fairly broken
20432 if test -f /usr
/libexec
/ld.so
; then
20433 hardcode_direct_CXX
=yes
20434 hardcode_shlibpath_var_CXX
=no
20435 hardcode_direct_absolute_CXX
=yes
20436 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20437 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20439 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20440 export_dynamic_flag_spec_CXX
='${wl}-E'
20441 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20443 output_verbose_link_cmd
=func_echo_all
20449 osf3
* | osf4
* | osf5
*)
20450 case $cc_basename in
20452 # Kuck and Associates, Inc. (KAI) C++ Compiler
20454 # KCC will only create a shared library if the output file
20455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20456 # to its proper name (with version) after linking.
20457 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'
20459 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20460 hardcode_libdir_separator_CXX
=:
20462 # Archives containing C++ object files must be created using
20463 # the KAI C++ compiler.
20465 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20466 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20470 # Rational C++ 2.4.1
20471 # FIXME: insert proper C++ library support
20477 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20478 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'
20479 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20482 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20483 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'
20484 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20485 echo "-hidden">> $lib.exp~
20486 $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~
20488 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20492 hardcode_libdir_separator_CXX
=:
20494 # Commands to make compiler produce verbose output that lists
20495 # what "hidden" libraries, object files and flags are used when
20496 # linking a shared library.
20498 # There doesn't appear to be a way to prevent this compiler from
20499 # explicitly linking system object files so we need to strip them
20500 # from the output so that they don't get included in the library
20502 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"'
20505 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20506 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20509 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'
20512 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'
20516 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20517 hardcode_libdir_separator_CXX
=:
20519 # Commands to make compiler produce verbose output that lists
20520 # what "hidden" libraries, object files and flags are used when
20521 # linking a shared library.
20522 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20525 # FIXME: insert proper C++ library support
20533 # FIXME: insert proper C++ library support
20538 case $cc_basename in
20541 # FIXME: insert proper C++ library support
20546 # FIXME: insert proper C++ library support
20550 # FIXME: insert proper C++ library support
20557 case $cc_basename in
20559 # Sun C++ 4.2, 5.x and Centerline C++
20560 archive_cmds_need_lc_CXX
=yes
20561 no_undefined_flag_CXX
=' -zdefs'
20562 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20563 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20564 $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'
20566 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20567 hardcode_shlibpath_var_CXX
=no
20569 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20571 # The compiler driver will combine and reorder linker options,
20572 # but understands `-z linker_flag'.
20573 # Supported since Solaris 2.6 (maybe 2.5.1?)
20574 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20577 link_all_deplibs_CXX
=yes
20579 output_verbose_link_cmd
='func_echo_all'
20581 # Archives containing C++ object files must be created using
20582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20583 # necessary to make sure instantiated templates are included
20585 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20588 # Green Hills C++ Compiler
20589 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20591 # The C++ compiler must be used to create the archive.
20592 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20595 # GNU C++ compiler with Solaris linker
20596 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20597 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20598 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20599 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20600 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20601 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20603 # Commands to make compiler produce verbose output that lists
20604 # what "hidden" libraries, object files and flags are used when
20605 # linking a shared library.
20606 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20608 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20610 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20611 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20612 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20614 # Commands to make compiler produce verbose output that lists
20615 # what "hidden" libraries, object files and flags are used when
20616 # linking a shared library.
20617 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20620 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20622 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20624 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20632 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20633 no_undefined_flag_CXX
='${wl}-z,text'
20634 archive_cmds_need_lc_CXX
=no
20635 hardcode_shlibpath_var_CXX
=no
20636 runpath_var
='LD_RUN_PATH'
20638 case $cc_basename in
20640 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20641 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20644 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20645 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20650 sysv5
* | sco3.2v5
* | sco5v6
*)
20651 # Note: We can NOT use -z defs as we might desire, because we do not
20652 # link with -lc, and that would cause any symbols used from libc to
20653 # always be unresolved, which means just about no library would
20654 # ever link correctly. If we're not using GNU ld we use -z text
20655 # though, which does catch some bad symbols but isn't as heavy-handed
20657 no_undefined_flag_CXX
='${wl}-z,text'
20658 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20659 archive_cmds_need_lc_CXX
=no
20660 hardcode_shlibpath_var_CXX
=no
20661 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20662 hardcode_libdir_separator_CXX
=':'
20663 link_all_deplibs_CXX
=yes
20664 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20665 runpath_var
='LD_RUN_PATH'
20667 case $cc_basename in
20669 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20670 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20671 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20672 '"$old_archive_cmds_CXX"
20673 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20674 '"$reload_cmds_CXX"
20677 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20678 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20684 case $cc_basename in
20686 # NonStop-UX NCC 3.20
20687 # FIXME: insert proper C++ library support
20691 # FIXME: insert proper C++ library support
20698 # FIXME: insert proper C++ library support
20703 # FIXME: insert proper C++ library support
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20709 $as_echo "$ld_shlibs_CXX" >&6; }
20710 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20716 ## There is no encapsulation within the following macros, do not change
20717 ## the running order or otherwise move them around unless you know exactly
20718 ## what you are doing...
20719 # Dependencies to place before and after the object being linked:
20720 predep_objects_CXX
=
20721 postdep_objects_CXX
=
20724 compiler_lib_search_path_CXX
=
20726 cat > conftest.
$ac_ext <<_LT_EOF
20730 Foo (void) { a = 0; }
20736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20737 (eval $ac_compile) 2>&5
20739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20740 test $ac_status = 0; }; then
20741 # Parse the compiler output and extract the necessary
20742 # objects, libraries and library flags.
20744 # Sentinel used to keep track of whether or not we are before
20745 # the conftest object file.
20746 pre_test_object_deps_done
=no
20748 for p
in `eval "$output_verbose_link_cmd"`; do
20752 # Some compilers place space between "-{L,R}" and the path.
20753 # Remove the space.
20754 if test $p = "-L" ||
20755 test $p = "-R"; then
20762 if test "$pre_test_object_deps_done" = no
; then
20765 # Internal compiler library paths should come after those
20766 # provided the user. The postdeps already come after the
20767 # user supplied libs so there is no need to process them.
20768 if test -z "$compiler_lib_search_path_CXX"; then
20769 compiler_lib_search_path_CXX
="${prev}${p}"
20771 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20774 # The "-l" case would never come before the object being
20775 # linked, so don't bother handling this case.
20778 if test -z "$postdeps_CXX"; then
20779 postdeps_CXX
="${prev}${p}"
20781 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20787 # This assumes that the test object file only shows up
20788 # once in the compiler output.
20789 if test "$p" = "conftest.$objext"; then
20790 pre_test_object_deps_done
=yes
20794 if test "$pre_test_object_deps_done" = no
; then
20795 if test -z "$predep_objects_CXX"; then
20796 predep_objects_CXX
="$p"
20798 predep_objects_CXX
="$predep_objects_CXX $p"
20801 if test -z "$postdep_objects_CXX"; then
20802 postdep_objects_CXX
="$p"
20804 postdep_objects_CXX
="$postdep_objects_CXX $p"
20809 *) ;; # Ignore the rest.
20817 echo "libtool.m4: error: problem compiling CXX test program"
20820 $RM -f confest.
$objext
20822 # PORTME: override above test on systems where it is broken
20825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20826 # hack all around it, let's just trust "g++" to DTRT.
20827 predep_objects_CXX
=
20828 postdep_objects_CXX
=
20833 case `$CC -V 2>&1 | sed 5q` in
20837 # The more standards-conforming stlport4 library is
20838 # incompatible with the Cstd library. Avoid specifying
20839 # it if it's in CXXFLAGS. Ignore libCrun as
20840 # -library=stlport4 depends on it.
20841 case " $CXX $CXXFLAGS " in
20842 *" -library=stlport4 "*)
20843 solaris_use_stlport4
=yes
20847 if test "$solaris_use_stlport4" != yes; then
20848 postdeps_CXX
='-library=Cstd -library=Crun'
20855 case $cc_basename in
20857 # The more standards-conforming stlport4 library is
20858 # incompatible with the Cstd library. Avoid specifying
20859 # it if it's in CXXFLAGS. Ignore libCrun as
20860 # -library=stlport4 depends on it.
20861 case " $CXX $CXXFLAGS " in
20862 *" -library=stlport4 "*)
20863 solaris_use_stlport4
=yes
20867 # Adding this requires a known-good setup of shared libraries for
20868 # Sun compiler versions before 5.6, else PIC objects from an old
20869 # archive will be linked into the output, leading to subtle bugs.
20870 if test "$solaris_use_stlport4" != yes; then
20871 postdeps_CXX
='-library=Cstd -library=Crun'
20879 case " $postdeps_CXX " in
20880 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20882 compiler_lib_search_dirs_CXX
=
20883 if test -n "${compiler_lib_search_path_CXX}"; then
20884 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20917 lt_prog_compiler_wl_CXX
=
20918 lt_prog_compiler_pic_CXX
=
20919 lt_prog_compiler_static_CXX
=
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20922 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20924 # C++ specific cases for pic, static, wl, etc.
20925 if test "$GXX" = yes; then
20926 lt_prog_compiler_wl_CXX
='-Wl,'
20927 lt_prog_compiler_static_CXX
='-static'
20931 # All AIX code is PIC.
20932 if test "$host_cpu" = ia64
; then
20933 # AIX 5 now supports IA64 processor
20934 lt_prog_compiler_static_CXX
='-Bstatic'
20936 lt_prog_compiler_pic_CXX
='-fPIC'
20942 # see comment about AmigaOS4 .so support
20943 lt_prog_compiler_pic_CXX
='-fPIC'
20946 # FIXME: we need at least 68020 code to build shared libraries, but
20947 # adding the `-m68020' flag to GCC prevents building anything better,
20949 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20954 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20955 # PIC is the default for these OSes.
20957 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20958 # This hack is so that the source file can tell whether it is being
20959 # built for inclusion in a dll (and should export symbols for example).
20960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20961 # (--disable-auto-import) libraries
20962 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20964 darwin
* | rhapsody
*)
20965 # PIC is the default on this platform
20966 # Common symbols not allowed in MH_DYLIB files
20967 lt_prog_compiler_pic_CXX
='-fno-common'
20970 # DJGPP does not support shared libraries at all
20971 lt_prog_compiler_pic_CXX
=
20974 # PIC is the default for Haiku.
20975 # The "-static" flag exists, but is broken.
20976 lt_prog_compiler_static_CXX
=
20979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20980 # Instead, we relocate shared libraries at runtime.
20983 if test -d /usr
/nec
; then
20984 lt_prog_compiler_pic_CXX
=-Kconform_pic
20988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20990 # sets the default TLS model and affects inlining.
20995 lt_prog_compiler_pic_CXX
='-fPIC'
21000 # QNX uses GNU C++, but need to define -shared option too, otherwise
21001 # it will coredump.
21002 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21005 lt_prog_compiler_pic_CXX
='-fPIC'
21011 # All AIX code is PIC.
21012 if test "$host_cpu" = ia64
; then
21013 # AIX 5 now supports IA64 processor
21014 lt_prog_compiler_static_CXX
='-Bstatic'
21016 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21020 case $cc_basename in
21022 # Green Hills C++ Compiler
21023 # _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"
21028 case $cc_basename in
21030 lt_prog_compiler_pic_CXX
='-KPIC'
21033 # Green Hills C++ Compiler
21034 lt_prog_compiler_pic_CXX
='-pic'
21040 freebsd
* | dragonfly
*)
21041 # FreeBSD uses GNU C++
21043 hpux9
* | hpux10
* | hpux11
*)
21044 case $cc_basename in
21046 lt_prog_compiler_wl_CXX
='-Wl,'
21047 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21048 if test "$host_cpu" != ia64
; then
21049 lt_prog_compiler_pic_CXX
='+Z'
21053 lt_prog_compiler_wl_CXX
='-Wl,'
21054 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21060 lt_prog_compiler_pic_CXX
='+Z'
21069 # This is c89, which is MS Visual C++ (no shared libs)
21070 # Anyone wants to do a port?
21072 irix5
* | irix6
* | nonstopux
*)
21073 case $cc_basename in
21075 lt_prog_compiler_wl_CXX
='-Wl,'
21076 lt_prog_compiler_static_CXX
='-non_shared'
21077 # CC pic flag -KPIC is the default.
21083 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21084 case $cc_basename in
21087 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21088 lt_prog_compiler_pic_CXX
='-fPIC'
21091 # old Intel C++ for x86_64 which still supported -KPIC.
21092 lt_prog_compiler_wl_CXX
='-Wl,'
21093 lt_prog_compiler_pic_CXX
='-KPIC'
21094 lt_prog_compiler_static_CXX
='-static'
21097 # Intel C++, used to be incompatible with GCC.
21098 # ICC 10 doesn't accept -KPIC any more.
21099 lt_prog_compiler_wl_CXX
='-Wl,'
21100 lt_prog_compiler_pic_CXX
='-fPIC'
21101 lt_prog_compiler_static_CXX
='-static'
21104 # Portland Group C++ compiler
21105 lt_prog_compiler_wl_CXX
='-Wl,'
21106 lt_prog_compiler_pic_CXX
='-fpic'
21107 lt_prog_compiler_static_CXX
='-Bstatic'
21111 # Make sure the PIC flag is empty. It appears that all Alpha
21112 # Linux and Compaq Tru64 Unix objects are PIC.
21113 lt_prog_compiler_pic_CXX
=
21114 lt_prog_compiler_static_CXX
='-non_shared'
21116 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21117 # IBM XL 8.0, 9.0 on PPC and BlueGene
21118 lt_prog_compiler_wl_CXX
='-Wl,'
21119 lt_prog_compiler_pic_CXX
='-qpic'
21120 lt_prog_compiler_static_CXX
='-qstaticlink'
21123 case `$CC -V 2>&1 | sed 5q` in
21126 lt_prog_compiler_pic_CXX
='-KPIC'
21127 lt_prog_compiler_static_CXX
='-Bstatic'
21128 lt_prog_compiler_wl_CXX
='-Qoption ld '
21139 case $cc_basename in
21141 lt_prog_compiler_pic_CXX
='-W c,exportall'
21150 # QNX uses GNU C++, but need to define -shared option too, otherwise
21151 # it will coredump.
21152 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21154 osf3
* | osf4
* | osf5
*)
21155 case $cc_basename in
21157 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21160 # Rational C++ 2.4.1
21161 lt_prog_compiler_pic_CXX
='-pic'
21164 # Digital/Compaq C++
21165 lt_prog_compiler_wl_CXX
='-Wl,'
21166 # Make sure the PIC flag is empty. It appears that all Alpha
21167 # Linux and Compaq Tru64 Unix objects are PIC.
21168 lt_prog_compiler_pic_CXX
=
21169 lt_prog_compiler_static_CXX
='-non_shared'
21178 case $cc_basename in
21180 # Sun C++ 4.2, 5.x and Centerline C++
21181 lt_prog_compiler_pic_CXX
='-KPIC'
21182 lt_prog_compiler_static_CXX
='-Bstatic'
21183 lt_prog_compiler_wl_CXX
='-Qoption ld '
21186 # Green Hills C++ Compiler
21187 lt_prog_compiler_pic_CXX
='-PIC'
21194 case $cc_basename in
21197 lt_prog_compiler_pic_CXX
='-pic'
21198 lt_prog_compiler_static_CXX
='-Bstatic'
21202 lt_prog_compiler_pic_CXX
='-pic'
21208 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21209 case $cc_basename in
21211 lt_prog_compiler_wl_CXX
='-Wl,'
21212 lt_prog_compiler_pic_CXX
='-KPIC'
21213 lt_prog_compiler_static_CXX
='-Bstatic'
21218 case $cc_basename in
21220 # NonStop-UX NCC 3.20
21221 lt_prog_compiler_pic_CXX
='-KPIC'
21230 lt_prog_compiler_can_build_shared_CXX
=no
21236 # For platforms which do not support PIC, -DPIC is meaningless:
21238 lt_prog_compiler_pic_CXX
=
21241 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21245 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21250 # Check to make sure the PIC flag actually works.
21252 if test -n "$lt_prog_compiler_pic_CXX"; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21255 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21256 $as_echo_n "(cached) " >&6
21258 lt_cv_prog_compiler_pic_works_CXX
=no
21259 ac_outfile
=conftest.
$ac_objext
21260 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21261 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21262 # Insert the option either (1) after the last *FLAGS variable, or
21263 # (2) before a word containing "conftest.", or (3) at the end.
21264 # Note that $ac_compile itself does not contain backslashes and begins
21265 # with a dollar sign (not a hyphen), so the echo should work correctly.
21266 # The option is referenced via a variable to avoid confusing sed.
21267 lt_compile
=`echo "$ac_compile" | $SED \
21268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270 -e 's:$: $lt_compiler_flag:'`
21271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21272 (eval "$lt_compile" 2>conftest.err
)
21274 cat conftest.err
>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 if (exit $ac_status) && test -s "$ac_outfile"; then
21277 # The compiler can only warn and ignore the option if not recognized
21278 # So say no if there are warnings other than the usual output.
21279 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21280 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21281 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21282 lt_cv_prog_compiler_pic_works_CXX
=yes
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21291 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21292 case $lt_prog_compiler_pic_CXX in
21294 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21297 lt_prog_compiler_pic_CXX
=
21298 lt_prog_compiler_can_build_shared_CXX
=no
21306 # Check to make sure the static flag actually works.
21308 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21310 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21311 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21312 $as_echo_n "(cached) " >&6
21314 lt_cv_prog_compiler_static_works_CXX
=no
21315 save_LDFLAGS
="$LDFLAGS"
21316 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21317 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21318 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21319 # The linker can only warn and ignore the option if not recognized
21320 # So say no if there are warnings
21321 if test -s conftest.err
; then
21322 # Append any errors to the config.log.
21323 cat conftest.err
1>&5
21324 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21325 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21326 if diff conftest.exp conftest.er2
>/dev
/null
; then
21327 lt_cv_prog_compiler_static_works_CXX
=yes
21330 lt_cv_prog_compiler_static_works_CXX
=yes
21334 LDFLAGS
="$save_LDFLAGS"
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21338 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21340 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21343 lt_prog_compiler_static_CXX
=
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21351 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21352 $as_echo_n "(cached) " >&6
21354 lt_cv_prog_compiler_c_o_CXX
=no
21355 $RM -r conftest
2>/dev
/null
21359 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21361 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21362 # Insert the option either (1) after the last *FLAGS variable, or
21363 # (2) before a word containing "conftest.", or (3) at the end.
21364 # Note that $ac_compile itself does not contain backslashes and begins
21365 # with a dollar sign (not a hyphen), so the echo should work correctly.
21366 lt_compile
=`echo "$ac_compile" | $SED \
21367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21369 -e 's:$: $lt_compiler_flag:'`
21370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21371 (eval "$lt_compile" 2>out
/conftest.err
)
21373 cat out
/conftest.err
>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21377 # The compiler can only warn and ignore the option if not recognized
21378 # So say no if there are warnings
21379 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21380 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21381 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21382 lt_cv_prog_compiler_c_o_CXX
=yes
21387 # SGI C++ compiler will create directory out/ii_files/ for
21388 # template instantiation
21389 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21390 $RM out
/* && rmdir out
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21397 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21403 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21404 $as_echo_n "(cached) " >&6
21406 lt_cv_prog_compiler_c_o_CXX
=no
21407 $RM -r conftest
2>/dev
/null
21411 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21413 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21414 # Insert the option either (1) after the last *FLAGS variable, or
21415 # (2) before a word containing "conftest.", or (3) at the end.
21416 # Note that $ac_compile itself does not contain backslashes and begins
21417 # with a dollar sign (not a hyphen), so the echo should work correctly.
21418 lt_compile
=`echo "$ac_compile" | $SED \
21419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21421 -e 's:$: $lt_compiler_flag:'`
21422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21423 (eval "$lt_compile" 2>out
/conftest.err
)
21425 cat out
/conftest.err
>&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21429 # The compiler can only warn and ignore the option if not recognized
21430 # So say no if there are warnings
21431 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21432 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21433 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21434 lt_cv_prog_compiler_c_o_CXX
=yes
21439 # SGI C++ compiler will create directory out/ii_files/ for
21440 # template instantiation
21441 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21442 $RM out
/* && rmdir out
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21449 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21454 hard_links
="nottested"
21455 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21456 # do not overwrite the value of need_locks provided by the user
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21458 $as_echo_n "checking if we can lock with hard links... " >&6; }
21461 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21463 ln conftest.a conftest.b
2>&5 || hard_links
=no
21464 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21466 $as_echo "$hard_links" >&6; }
21467 if test "$hard_links" = no
; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21469 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21481 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21484 # If we're using GNU nm, then we don't want the "-C" option.
21485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21486 # Also, AIX nm treats weak defined symbols like other global defined
21487 # symbols, whereas GNU nm marks them as "W".
21488 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21489 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'
21491 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'
21495 export_symbols_cmds_CXX
="$ltdll_cmds"
21497 cygwin
* | mingw
* | cegcc
*)
21498 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'
21501 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21504 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21507 $as_echo "$ld_shlibs_CXX" >&6; }
21508 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21510 with_gnu_ld_CXX
=$with_gnu_ld
21518 # Do we need to explicitly link libc?
21520 case "x$archive_cmds_need_lc_CXX" in
21522 # Assume -lc should be added
21523 archive_cmds_need_lc_CXX
=yes
21525 if test "$enable_shared" = yes && test "$GCC" = yes; then
21526 case $archive_cmds_CXX in
21528 # FIXME: we may have to deal with multi-command sequences.
21531 # Test whether the compiler implicitly links with -lc since on some
21532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21533 # to ld, don't add -lc before -lgcc.
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21536 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21537 $as_echo_n "(cached) " >&6
21540 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21543 (eval $ac_compile) 2>&5
21545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21546 test $ac_status = 0; } 2>conftest.err
; then
21549 libobjs
=conftest.
$ac_objext
21551 wl
=$lt_prog_compiler_wl_CXX
21552 pic_flag
=$lt_prog_compiler_pic_CXX
21558 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21559 allow_undefined_flag_CXX
=
21560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21561 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21564 test $ac_status = 0; }
21566 lt_cv_archive_cmds_need_lc_CXX
=no
21568 lt_cv_archive_cmds_need_lc_CXX
=yes
21570 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21572 cat conftest.err
1>&5
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21578 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21579 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21650 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21652 library_names_spec
=
21653 libname_spec
='lib$name'
21657 postuninstall_cmds
=
21661 shlibpath_overrides_runpath
=unknown
21663 dynamic_linker
="$host_os ld.so"
21664 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21665 need_lib_prefix
=unknown
21666 hardcode_into_libs
=no
21668 # when you set need_version to no, make sure it does not cause -set_version
21669 # flags to be left without arguments
21670 need_version
=unknown
21675 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21676 shlibpath_var
=LIBPATH
21678 # AIX 3 has no versioning support, so we append a major version to the name.
21679 soname_spec
='${libname}${release}${shared_ext}$major'
21686 hardcode_into_libs
=yes
21687 if test "$host_cpu" = ia64
; then
21688 # AIX 5 supports IA64
21689 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21690 shlibpath_var
=LD_LIBRARY_PATH
21692 # With GCC up to 2.95.x, collect2 would create an import file
21693 # for dependence libraries. The import file would start with
21694 # the line `#! .'. This would cause the generated library to
21695 # depend on `.', always an invalid library. This was fixed in
21696 # development snapshots of GCC prior to 3.0.
21698 aix4 | aix4.
[01] | aix4.
[01].
*)
21699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21701 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21704 can_build_shared
=no
21708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21709 # soname into executable. Probably we can add versioning support to
21710 # collect2, so additional links can be useful in future.
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21713 # instead of lib<name>.a to let people know that these are not
21714 # typical AIX shared libraries.
21715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21717 # We preserve .a as extension for shared libraries through AIX4.2
21718 # and later when we are not doing run time linking.
21719 library_names_spec
='${libname}${release}.a $libname.a'
21720 soname_spec
='${libname}${release}${shared_ext}$major'
21722 shlibpath_var
=LIBPATH
21729 # Since July 2007 AmigaOS4 officially supports .so libraries.
21730 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21734 library_names_spec
='$libname.ixlibrary $libname.a'
21735 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21736 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'
21742 library_names_spec
='${libname}${shared_ext}'
21743 dynamic_linker
="$host_os ld.so"
21744 shlibpath_var
=LIBRARY_PATH
21750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21751 soname_spec
='${libname}${release}${shared_ext}$major'
21752 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21753 shlibpath_var
=LD_LIBRARY_PATH
21754 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21755 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21756 # the default ld.so.conf also contains /usr/contrib/lib and
21757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21758 # libtool to hard-code these into programs
21761 cygwin
* | mingw
* | pw32
* | cegcc
*)
21762 version_type
=windows
21767 case $GCC,$host_os in
21768 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21769 library_names_spec
='$libname.dll.a'
21770 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21771 postinstall_cmds
='base_file=`basename \${file}`~
21772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21773 dldir=$destdir/`dirname \$dlpath`~
21774 test -d \$dldir || mkdir -p \$dldir~
21775 $install_prog $dir/$dlname \$dldir/$dlname~
21776 chmod a+x \$dldir/$dlname~
21777 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21778 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21780 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
21783 shlibpath_overrides_runpath
=yes
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21796 # pw32 DLLs use 'pw' prefix rather than 'lib'
21797 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21803 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21806 dynamic_linker
='Win32 ld.exe'
21807 # FIXME: first we should search . and the directory the executable is in
21811 darwin
* | rhapsody
*)
21812 dynamic_linker
="$host_os dyld"
21813 version_type
=darwin
21816 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21817 soname_spec
='${libname}${release}${major}$shared_ext'
21818 shlibpath_overrides_runpath
=yes
21819 shlibpath_var
=DYLD_LIBRARY_PATH
21820 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21822 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21830 soname_spec
='${libname}${release}${shared_ext}$major'
21831 shlibpath_var
=LD_LIBRARY_PATH
21834 freebsd
* | dragonfly
*)
21835 # DragonFly does not have aout. When/if they implement a new
21836 # versioning mechanism, adjust this.
21837 if test -x /usr
/bin
/objformat
; then
21838 objformat
=`/usr/bin/objformat`
21841 freebsd
[23].
*) objformat
=aout
;;
21842 *) objformat
=elf
;;
21845 version_type
=freebsd-
$objformat
21846 case $version_type in
21848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21853 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21857 shlibpath_var
=LD_LIBRARY_PATH
21860 shlibpath_overrides_runpath
=yes
21862 freebsd3.
[01]* | freebsdelf3.
[01]*)
21863 shlibpath_overrides_runpath
=yes
21864 hardcode_into_libs
=yes
21866 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21867 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21868 shlibpath_overrides_runpath
=no
21869 hardcode_into_libs
=yes
21871 *) # from 4.6 on, and DragonFly
21872 shlibpath_overrides_runpath
=yes
21873 hardcode_into_libs
=yes
21882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21883 soname_spec
='${libname}${release}${shared_ext}$major'
21884 shlibpath_var
=LD_LIBRARY_PATH
21885 hardcode_into_libs
=yes
21892 dynamic_linker
="$host_os runtime_loader"
21893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21894 soname_spec
='${libname}${release}${shared_ext}$major'
21895 shlibpath_var
=LIBRARY_PATH
21896 shlibpath_overrides_runpath
=yes
21897 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21898 hardcode_into_libs
=yes
21901 hpux9
* | hpux10
* | hpux11
*)
21902 # Give a soname corresponding to the major version so that dld.sl refuses to
21903 # link against other versions.
21910 hardcode_into_libs
=yes
21911 dynamic_linker
="$host_os dld.so"
21912 shlibpath_var
=LD_LIBRARY_PATH
21913 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21915 soname_spec
='${libname}${release}${shared_ext}$major'
21916 if test "X$HPUX_IA64_MODE" = X32
; then
21917 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21919 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21921 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21925 hardcode_into_libs
=yes
21926 dynamic_linker
="$host_os dld.sl"
21927 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21928 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 soname_spec
='${libname}${release}${shared_ext}$major'
21931 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21932 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21936 dynamic_linker
="$host_os dld.sl"
21937 shlibpath_var
=SHLIB_PATH
21938 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21940 soname_spec
='${libname}${release}${shared_ext}$major'
21943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21944 postinstall_cmds
='chmod 555 $lib'
21945 # or fails outright, so override atomically:
21946 install_override_mode
=555
21953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21954 soname_spec
='${libname}${release}${shared_ext}$major'
21955 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21956 shlibpath_var
=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath
=no
21958 hardcode_into_libs
=yes
21961 irix5
* | irix6
* | nonstopux
*)
21963 nonstopux
*) version_type
=nonstopux
;;
21965 if test "$lt_cv_prog_gnu_ld" = yes; then
21973 soname_spec
='${libname}${release}${shared_ext}$major'
21974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21976 irix5
* | nonstopux
*)
21977 libsuff
= shlibsuff
=
21980 case $LD in # libtool.m4 will add one of these switches to LD
21981 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21982 libsuff
= shlibsuff
= libmagic
=32-bit;;
21983 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21984 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21985 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21986 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21987 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21991 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21992 shlibpath_overrides_runpath
=no
21993 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21994 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21995 hardcode_into_libs
=yes
21998 # No shared lib support for Linux oldld, aout, or coff.
21999 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22003 # This must be Linux ELF.
22005 # uclinux* changes (here and below) have been submitted to the libtool
22006 # project, but have not yet been accepted: they are GCC-local changes
22007 # for the time being. (See
22008 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22009 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
22013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22014 soname_spec
='${libname}${release}${shared_ext}$major'
22015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22016 shlibpath_var
=LD_LIBRARY_PATH
22017 shlibpath_overrides_runpath
=no
22019 # Some binutils ld are patched to set DT_RUNPATH
22020 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22021 $as_echo_n "(cached) " >&6
22023 lt_cv_shlibpath_overrides_runpath
=no
22024 save_LDFLAGS
=$LDFLAGS
22025 save_libdir
=$libdir
22026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22039 if ac_fn_cxx_try_link
"$LINENO"; then :
22040 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22041 lt_cv_shlibpath_overrides_runpath
=yes
22044 rm -f core conftest.err conftest.
$ac_objext \
22045 conftest
$ac_exeext conftest.
$ac_ext
22046 LDFLAGS
=$save_LDFLAGS
22047 libdir
=$save_libdir
22051 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22053 # This implies no fast_install, which is unacceptable.
22054 # Some rework will be needed to allow for fast_install
22055 # before this can be enabled.
22056 hardcode_into_libs
=yes
22058 # Append ld.so.conf contents to the search path
22059 if test -f /etc
/ld.so.conf
; then
22060 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' ' '`
22061 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22064 # We used to test for /lib/ld.so.1 and disable shared libraries on
22065 # powerpc, because MkLinux only supported shared libraries with the
22066 # GNU dynamic linker. Since this was broken with cross compilers,
22067 # most powerpc-linux boxes support dynamic linking these days and
22068 # people can always --disable-shared, the test was removed, and we
22069 # assume the GNU/Linux dynamic linker is in use.
22070 dynamic_linker
='GNU/Linux ld.so'
22077 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22079 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22080 dynamic_linker
='NetBSD (a.out) ld.so'
22082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22083 soname_spec
='${libname}${release}${shared_ext}$major'
22084 dynamic_linker
='NetBSD ld.elf_so'
22086 shlibpath_var
=LD_LIBRARY_PATH
22087 shlibpath_overrides_runpath
=yes
22088 hardcode_into_libs
=yes
22093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 shlibpath_var
=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath
=yes
22102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22103 soname_spec
='${libname}${release}${shared_ext}$major'
22104 shlibpath_var
=LD_LIBRARY_PATH
22105 shlibpath_overrides_runpath
=no
22106 hardcode_into_libs
=yes
22107 dynamic_linker
='ldqnx.so'
22112 sys_lib_dlsearch_path_spec
="/usr/lib"
22114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22116 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22117 *) need_version
=no
;;
22119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22120 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22121 shlibpath_var
=LD_LIBRARY_PATH
22122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22124 openbsd2.
[89] | openbsd2.
[89].
*)
22125 shlibpath_overrides_runpath
=no
22128 shlibpath_overrides_runpath
=yes
22132 shlibpath_overrides_runpath
=yes
22137 libname_spec
='$name'
22140 library_names_spec
='$libname${shared_ext} $libname.a'
22141 dynamic_linker
='OS/2 ld.exe'
22142 shlibpath_var
=LIBPATH
22145 osf3
* | osf4
* | osf5
*)
22149 soname_spec
='${libname}${release}${shared_ext}$major'
22150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22151 shlibpath_var
=LD_LIBRARY_PATH
22152 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22153 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22165 soname_spec
='${libname}${release}${shared_ext}$major'
22166 shlibpath_var
=LD_LIBRARY_PATH
22167 shlibpath_overrides_runpath
=yes
22168 hardcode_into_libs
=yes
22169 # ldd complains unless libraries are executable
22170 postinstall_cmds
='chmod +x $lib'
22175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22176 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22177 shlibpath_var
=LD_LIBRARY_PATH
22178 shlibpath_overrides_runpath
=yes
22179 if test "$with_gnu_ld" = yes; then
22187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22188 soname_spec
='${libname}${release}${shared_ext}$major'
22189 shlibpath_var
=LD_LIBRARY_PATH
22190 case $host_vendor in
22192 shlibpath_overrides_runpath
=no
22194 runpath_var
=LD_RUN_PATH
22202 shlibpath_overrides_runpath
=no
22203 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22209 if test -d /usr
/nec
;then
22211 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22212 soname_spec
='$libname${shared_ext}.$major'
22213 shlibpath_var
=LD_LIBRARY_PATH
22217 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22218 version_type
=freebsd-elf
22221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22222 soname_spec
='${libname}${release}${shared_ext}$major'
22223 shlibpath_var
=LD_LIBRARY_PATH
22224 shlibpath_overrides_runpath
=yes
22225 hardcode_into_libs
=yes
22226 if test "$with_gnu_ld" = yes; then
22227 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22229 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22232 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22236 sys_lib_dlsearch_path_spec
='/usr/lib'
22240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22245 shlibpath_var
=LD_LIBRARY_PATH
22246 shlibpath_overrides_runpath
=no
22247 hardcode_into_libs
=yes
22252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22253 soname_spec
='${libname}${release}${shared_ext}$major'
22254 shlibpath_var
=LD_LIBRARY_PATH
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22262 $as_echo "$dynamic_linker" >&6; }
22263 test "$dynamic_linker" = no
&& can_build_shared
=no
22265 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22266 if test "$GCC" = yes; then
22267 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22270 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22271 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22273 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22274 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22316 hardcode_action_CXX
=
22317 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22318 test -n "$runpath_var_CXX" ||
22319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22321 # We can hardcode non-existent directories.
22322 if test "$hardcode_direct_CXX" != no
&&
22323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22324 # have to relink, otherwise we might link with an installed library
22325 # when we should be linking with a yet-to-be-installed one
22326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22327 test "$hardcode_minus_L_CXX" != no
; then
22328 # Linking always hardcodes the temporary library directory.
22329 hardcode_action_CXX
=relink
22331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22332 hardcode_action_CXX
=immediate
22335 # We cannot hardcode anything, or else we can only hardcode existing
22337 hardcode_action_CXX
=unsupported
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22340 $as_echo "$hardcode_action_CXX" >&6; }
22342 if test "$hardcode_action_CXX" = relink ||
22343 test "$inherit_rpath_CXX" = yes; then
22344 # Fast installation is not supported
22345 enable_fast_install
=no
22346 elif test "$shlibpath_overrides_runpath" = yes ||
22347 test "$enable_shared" = no
; then
22348 # Fast installation is not necessary
22349 enable_fast_install
=needless
22358 fi # test -n "$compiler"
22364 with_gnu_ld
=$lt_save_with_gnu_ld
22365 lt_cv_path_LDCXX
=$lt_cv_path_LD
22366 lt_cv_path_LD
=$lt_save_path_LD
22367 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22368 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22369 fi # test "$_lt_caught_CXX_error" != yes
22372 ac_cpp
='$CXXCPP $CPPFLAGS'
22373 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22374 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22375 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22392 # Only expand once:
22398 # Identify the assembler which will work hand-in-glove with the newly
22399 # built GCC, so that we can examine its features. This is the assembler
22400 # which will be driven by the driver program.
22402 # If build != host, and we aren't building gas in-tree, we identify a
22403 # build->target assembler and hope that it will have the same features
22404 # as the host->target assembler we'll be using.
22405 gcc_cv_gas_major_version
=
22406 gcc_cv_gas_minor_version
=
22407 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22409 if ${gcc_cv_as+:} false
; then :
22413 if test -x "$DEFAULT_ASSEMBLER"; then
22414 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22415 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22416 && test -f ..
/gas
/Makefile \
22417 && test x
$build = x
$host; then
22418 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22419 elif test -x as
$build_exeext; then
22420 # Build using assembler in the current directory.
22421 gcc_cv_as
=.
/as
$build_exeext
22422 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22423 gcc_cv_as
="$AS_FOR_TARGET"
22425 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22426 set dummy
$AS_FOR_TARGET; ac_word
=$2
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22428 $as_echo_n "checking for $ac_word... " >&6; }
22429 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22430 $as_echo_n "(cached) " >&6
22434 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22438 for as_dir
in $PATH
22441 test -z "$as_dir" && as_dir
=.
22442 for ac_exec_ext
in '' $ac_executable_extensions; do
22443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22444 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22455 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22456 if test -n "$gcc_cv_as"; then
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22458 $as_echo "$gcc_cv_as" >&6; }
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22461 $as_echo "no" >&6; }
22468 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22470 case "$ORIGINAL_AS_FOR_TARGET" in
22471 .
/as | .
/as
$build_exeext) ;;
22472 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22477 $as_echo_n "checking what assembler to use... " >&6; }
22478 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22479 # Single tree build which includes gas. We want to prefer it
22480 # over whatever linker top-level may have detected, since
22481 # we'll use what we're building after installation anyway.
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22483 $as_echo "newly built gas" >&6; }
22485 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22486 for f
in $gcc_cv_as_bfd_srcdir/configure \
22487 $gcc_cv_as_gas_srcdir/configure \
22488 $gcc_cv_as_gas_srcdir/configure.ac \
22489 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22490 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22491 if test x
$gcc_cv_gas_version != x
; then
22495 case $gcc_cv_gas_version in
22497 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22499 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22500 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22501 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22502 case $gcc_cv_gas_patch_version in
22503 "") gcc_cv_gas_patch_version
="0" ;;
22505 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22506 + $gcc_cv_gas_minor_version \) \* 1000 \
22507 + $gcc_cv_gas_patch_version`
22509 in_tree_gas_is_elf
=no
22510 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22511 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22512 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22514 in_tree_gas_is_elf
=yes
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22518 $as_echo "$gcc_cv_as" >&6; }
22523 # Check whether --enable-ld was given.
22524 if test "${enable_ld+set}" = set; then :
22525 enableval
=$enable_ld; case "${enableval}" in
22533 install_gold_as_default
=no
22534 # Check whether --enable-gold was given.
22535 if test "${enable_gold+set}" = set; then :
22536 enableval
=$enable_gold; case "${enableval}" in
22538 install_gold_as_default
=yes
22541 if test x
${default_ld} != x
; then
22542 install_gold_as_default
=yes
22548 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22554 # Identify the linker which will work hand-in-glove with the newly
22555 # built GCC, so that we can examine its features. This is the linker
22556 # which will be driven by the driver program.
22558 # If build != host, and we aren't building gas in-tree, we identify a
22559 # build->target linker and hope that it will have the same features
22560 # as the host->target linker we'll be using.
22561 gcc_cv_gld_major_version
=
22562 gcc_cv_gld_minor_version
=
22563 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22564 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22565 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22567 if ${gcc_cv_ld+:} false
; then :
22571 if test -x "$DEFAULT_LINKER"; then
22572 gcc_cv_ld
="$DEFAULT_LINKER"
22573 elif test $install_gold_as_default = yes \
22574 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22575 && test -f ..
/gold
/Makefile \
22576 && test x
$build = x
$host; then
22577 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22578 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22579 && test -f ..
/ld
/Makefile \
22580 && test x
$build = x
$host; then
22581 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22582 elif test -x collect-ld
$build_exeext; then
22583 # Build using linker in the current directory.
22584 gcc_cv_ld
=.
/collect-ld
$build_exeext
22585 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22586 gcc_cv_ld
="$LD_FOR_TARGET"
22588 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22589 set dummy
$LD_FOR_TARGET; ac_word
=$2
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22591 $as_echo_n "checking for $ac_word... " >&6; }
22592 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22593 $as_echo_n "(cached) " >&6
22597 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22601 for as_dir
in $PATH
22604 test -z "$as_dir" && as_dir
=.
22605 for ac_exec_ext
in '' $ac_executable_extensions; do
22606 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22607 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22618 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22619 if test -n "$gcc_cv_ld"; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22621 $as_echo "$gcc_cv_ld" >&6; }
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22624 $as_echo "no" >&6; }
22631 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22632 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22633 # if the PLUGIN_LD is set ld-new, just have it as ld
22634 # as that is the installed named.
22635 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22636 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22637 PLUGIN_LD_SUFFIX
=ld
22640 # Check whether --with-plugin-ld was given.
22641 if test "${with_plugin_ld+set}" = set; then :
22642 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22643 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22644 PLUGIN_LD_SUFFIX
="$withval"
22650 cat >>confdefs.h
<<_ACEOF
22651 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22655 # Check to see if we are using gold instead of ld
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22657 $as_echo_n "checking whether we are using gold... " >&6; }
22659 if test x
$gcc_cv_ld != x
; then
22660 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22661 |
grep "GNU gold" > /dev
/null
; then
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22666 $as_echo "$ld_is_gold" >&6; }
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22669 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22670 # Check to see if default ld is not gold, but gold is
22671 # available and has support for split stack. If gcc was configured
22672 # with gold then no checking is done.
22674 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22676 # For platforms other than powerpc64*, enable as appropriate.
22678 gold_non_default
=no
22679 ld_gold
=`which ${gcc_cv_ld}.gold`
22680 # Make sure this gold has minimal split stack support
22681 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22682 ld_vers
=`$ld_gold --version | sed 1q`
22683 gold_vers
=`echo $ld_vers | sed -n \
22684 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22686 # check that the gold version contains the complete split stack support
22687 # on powerpc64 big and little endian
22689 case "$gold_vers" in
22690 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22692 *) gold_non_default
=no
22698 if test $gold_non_default = yes; then
22700 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22705 $as_echo "$gold_non_default" >&6; }
22707 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22709 case "$ORIGINAL_LD_FOR_TARGET" in
22710 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22711 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22716 $as_echo_n "checking what linker to use... " >&6; }
22717 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22718 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22719 # Single tree build which includes ld. We want to prefer it
22720 # over whatever linker top-level may have detected, since
22721 # we'll use what we're building after installation anyway.
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22723 $as_echo "newly built ld" >&6; }
22725 in_tree_ld_is_elf
=no
22726 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22727 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22728 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22729 in_tree_ld_is_elf
=yes
22730 elif test "$ld_is_gold" = yes; then
22731 in_tree_ld_is_elf
=yes
22733 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
22735 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22736 if test x
$gcc_cv_gld_version != x
; then
22740 case $gcc_cv_gld_version in
22742 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22744 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22745 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22746 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22747 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22750 $as_echo "$gcc_cv_ld" >&6; }
22752 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22753 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22754 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22760 # Figure out what nm we will be using.
22761 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22762 if ${gcc_cv_nm+:} false
; then :
22766 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22767 && test -f ..
/binutils
/Makefile \
22768 && test x
$build = x
$host; then
22769 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22770 elif test -x nm
$build_exeext; then
22771 gcc_cv_nm
=.
/nm
$build_exeext
22772 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22773 gcc_cv_nm
="$NM_FOR_TARGET"
22775 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22776 set dummy
$NM_FOR_TARGET; ac_word
=$2
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22778 $as_echo_n "checking for $ac_word... " >&6; }
22779 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22780 $as_echo_n "(cached) " >&6
22784 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22788 for as_dir
in $PATH
22791 test -z "$as_dir" && as_dir
=.
22792 for ac_exec_ext
in '' $ac_executable_extensions; do
22793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22794 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22805 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22806 if test -n "$gcc_cv_nm"; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22808 $as_echo "$gcc_cv_nm" >&6; }
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22811 $as_echo "no" >&6; }
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22819 $as_echo_n "checking what nm to use... " >&6; }
22820 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22821 # Single tree build which includes binutils.
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22823 $as_echo "newly built nm" >&6; }
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22827 $as_echo "$gcc_cv_nm" >&6; }
22831 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22833 case "$ORIGINAL_NM_FOR_TARGET" in
22834 .
/nm | .
/nm
$build_exeext) ;;
22835 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22840 # Figure out what objdump we will be using.
22841 if ${gcc_cv_objdump+:} false
; then :
22845 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22846 && test -f ..
/binutils
/Makefile \
22847 && test x
$build = x
$host; then
22848 # Single tree build which includes binutils.
22849 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22850 elif test -x objdump
$build_exeext; then
22851 gcc_cv_objdump
=.
/objdump
$build_exeext
22852 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22853 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22855 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22856 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22858 $as_echo_n "checking for $ac_word... " >&6; }
22859 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22860 $as_echo_n "(cached) " >&6
22862 case $gcc_cv_objdump in
22864 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22868 for as_dir
in $PATH
22871 test -z "$as_dir" && as_dir
=.
22872 for ac_exec_ext
in '' $ac_executable_extensions; do
22873 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22874 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22885 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22886 if test -n "$gcc_cv_objdump"; then
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22888 $as_echo "$gcc_cv_objdump" >&6; }
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891 $as_echo "no" >&6; }
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22899 $as_echo_n "checking what objdump to use... " >&6; }
22900 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22901 # Single tree build which includes binutils.
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22903 $as_echo "newly built objdump" >&6; }
22904 elif test x
$gcc_cv_objdump = x
; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22906 $as_echo "not found" >&6; }
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22909 $as_echo "$gcc_cv_objdump" >&6; }
22912 # Figure out what readelf we will be using.
22913 if ${gcc_cv_readelf+:} false
; then :
22917 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22918 && test -f ..
/binutils
/Makefile \
22919 && test x
$build = x
$host; then
22920 # Single tree build which includes binutils.
22921 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22922 elif test -x readelf
$build_exeext; then
22923 gcc_cv_readelf
=.
/readelf
$build_exeext
22924 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22925 gcc_cv_readelf
="$READELF_FOR_TARGET"
22927 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22928 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22930 $as_echo_n "checking for $ac_word... " >&6; }
22931 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22932 $as_echo_n "(cached) " >&6
22934 case $gcc_cv_readelf in
22936 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22940 for as_dir
in $PATH
22943 test -z "$as_dir" && as_dir
=.
22944 for ac_exec_ext
in '' $ac_executable_extensions; do
22945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22946 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22957 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22958 if test -n "$gcc_cv_readelf"; then
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22960 $as_echo "$gcc_cv_readelf" >&6; }
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963 $as_echo "no" >&6; }
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22971 $as_echo_n "checking what readelf to use... " >&6; }
22972 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22973 # Single tree build which includes binutils.
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22975 $as_echo "newly built readelf" >&6; }
22976 elif test x
$gcc_cv_readelf = x
; then
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22978 $as_echo "not found" >&6; }
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22981 $as_echo "$gcc_cv_readelf" >&6; }
22984 # Figure out what otool we will be using.
22985 if ${gcc_cv_otool+:} false
; then :
22989 if test -x otool
$build_exeext; then
22990 gcc_cv_otool
=.
/otool
$build_exeext
22991 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22992 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22994 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22995 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22997 $as_echo_n "checking for $ac_word... " >&6; }
22998 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22999 $as_echo_n "(cached) " >&6
23001 case $gcc_cv_otool in
23003 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23007 for as_dir
in $PATH
23010 test -z "$as_dir" && as_dir
=.
23011 for ac_exec_ext
in '' $ac_executable_extensions; do
23012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23013 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23024 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23025 if test -n "$gcc_cv_otool"; then
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23027 $as_echo "$gcc_cv_otool" >&6; }
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23038 $as_echo_n "checking what otool to use... " >&6; }
23039 if test x
$gcc_cv_otool = x
; then
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23041 $as_echo "not found" >&6; }
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23044 $as_echo "$gcc_cv_otool" >&6; }
23047 # Figure out what assembler alignment features are present.
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23049 $as_echo_n "checking assembler flags... " >&6; }
23050 if ${gcc_cv_as_flags+:} false
; then :
23051 $as_echo_n "(cached) " >&6
23054 i
[34567]86-*-linux*)
23055 gcc_cv_as_flags
=--32
23057 x86_64-
*-linux-gnux32)
23058 gcc_cv_as_flags
=--x32
23061 gcc_cv_as_flags
=--64
23063 powerpc
*-*-darwin*)
23064 gcc_cv_as_flags
="-arch ppc"
23067 gcc_cv_as_flags
=" "
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23072 $as_echo "$gcc_cv_as_flags" >&6; }
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23075 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23076 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23077 $as_echo_n "(cached) " >&6
23079 gcc_cv_as_balign_and_p2align
=no
23080 if test $in_tree_gas = yes; then
23081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23082 then gcc_cv_as_balign_and_p2align
=yes
23084 elif test x
$gcc_cv_as != x
; then
23085 $as_echo '.balign 4
23086 .p2align 2' > conftest.s
23087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }
23094 gcc_cv_as_balign_and_p2align
=yes
23096 echo "configure: failed program was" >&5
23099 rm -f conftest.o conftest.s
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23103 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23104 if test $gcc_cv_as_balign_and_p2align = yes; then
23106 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23112 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23113 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23114 $as_echo_n "(cached) " >&6
23116 gcc_cv_as_max_skip_p2align
=no
23117 if test $in_tree_gas = yes; then
23118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23119 then gcc_cv_as_max_skip_p2align
=yes
23121 elif test x
$gcc_cv_as != x
; then
23122 $as_echo '.p2align 4,,7' > conftest.s
23123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23125 (eval $ac_try) 2>&5
23127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128 test $ac_status = 0; }; }
23130 gcc_cv_as_max_skip_p2align
=yes
23132 echo "configure: failed program was" >&5
23135 rm -f conftest.o conftest.s
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23139 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23140 if test $gcc_cv_as_max_skip_p2align = yes; then
23142 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23148 $as_echo_n "checking assembler for .literal16... " >&6; }
23149 if ${gcc_cv_as_literal16+:} false
; then :
23150 $as_echo_n "(cached) " >&6
23152 gcc_cv_as_literal16
=no
23153 if test $in_tree_gas = yes; then
23154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23155 then gcc_cv_as_literal16
=yes
23157 elif test x
$gcc_cv_as != x
; then
23158 $as_echo '.literal16' > conftest.s
23159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23166 gcc_cv_as_literal16
=yes
23168 echo "configure: failed program was" >&5
23171 rm -f conftest.o conftest.s
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23175 $as_echo "$gcc_cv_as_literal16" >&6; }
23176 if test $gcc_cv_as_literal16 = yes; then
23178 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23184 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23185 if ${gcc_cv_as_subsection_m1+:} false
; then :
23186 $as_echo_n "(cached) " >&6
23188 gcc_cv_as_subsection_m1
=no
23189 if test $in_tree_gas = yes; then
23190 if test $in_tree_gas_is_elf = yes \
23191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23192 then gcc_cv_as_subsection_m1
=yes
23194 elif test x
$gcc_cv_as != x
; then
23195 $as_echo 'conftest_label1: .word 0
23197 conftest_label2: .word 0
23198 .previous' > conftest.s
23199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23206 if test x
$gcc_cv_nm != x
; then
23207 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23208 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23209 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23211 else gcc_cv_as_subsection_m1
=yes
23213 rm -f conftest.nm1 conftest.nm2
23216 echo "configure: failed program was" >&5
23219 rm -f conftest.o conftest.s
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23223 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23224 if test $gcc_cv_as_subsection_m1 = yes; then
23226 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23232 $as_echo_n "checking assembler for .weak... " >&6; }
23233 if ${gcc_cv_as_weak+:} false
; then :
23234 $as_echo_n "(cached) " >&6
23237 if test $in_tree_gas = yes; then
23238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23239 then gcc_cv_as_weak
=yes
23241 elif test x
$gcc_cv_as != x
; then
23242 $as_echo ' .weak foobar' > conftest.s
23243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23252 echo "configure: failed program was" >&5
23255 rm -f conftest.o conftest.s
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23259 $as_echo "$gcc_cv_as_weak" >&6; }
23260 if test $gcc_cv_as_weak = yes; then
23262 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23268 $as_echo_n "checking assembler for .weakref... " >&6; }
23269 if ${gcc_cv_as_weakref+:} false
; then :
23270 $as_echo_n "(cached) " >&6
23272 gcc_cv_as_weakref
=no
23273 if test $in_tree_gas = yes; then
23274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23275 then gcc_cv_as_weakref
=yes
23277 elif test x
$gcc_cv_as != x
; then
23278 $as_echo ' .weakref foobar, barfnot' > conftest.s
23279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23286 gcc_cv_as_weakref
=yes
23288 echo "configure: failed program was" >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23295 $as_echo "$gcc_cv_as_weakref" >&6; }
23296 if test $gcc_cv_as_weakref = yes; then
23298 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23304 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23305 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23306 $as_echo_n "(cached) " >&6
23308 gcc_cv_as_nsubspa_comdat
=no
23309 if test $in_tree_gas = yes; then
23310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23311 then gcc_cv_as_nsubspa_comdat
=yes
23313 elif test x
$gcc_cv_as != x
; then
23314 $as_echo ' .SPACE $TEXT$
23315 .NSUBSPA $CODE$,COMDAT' > conftest.s
23316 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }
23323 gcc_cv_as_nsubspa_comdat
=yes
23325 echo "configure: failed program was" >&5
23328 rm -f conftest.o conftest.s
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23332 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23333 if test $gcc_cv_as_nsubspa_comdat = yes; then
23335 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23340 # .hidden needs to be supported in both the assembler and the linker,
23341 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23342 # This is irritatingly difficult to feature test for; we have to check the
23343 # date string after the version number. If we've got an in-tree
23344 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23346 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23347 case "${target}" in
23349 conftest_s
=' .globl foobar,hidden'
23352 conftest_s
=' .hidden foobar
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23357 $as_echo_n "checking assembler for .hidden... " >&6; }
23358 if ${gcc_cv_as_hidden+:} false
; then :
23359 $as_echo_n "(cached) " >&6
23361 gcc_cv_as_hidden
=no
23362 if test $in_tree_gas = yes; then
23363 if test $in_tree_gas_is_elf = yes \
23364 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23365 then gcc_cv_as_hidden
=yes
23367 elif test x
$gcc_cv_as != x
; then
23368 $as_echo "$conftest_s" > conftest.s
23369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23376 gcc_cv_as_hidden
=yes
23378 echo "configure: failed program was" >&5
23381 rm -f conftest.o conftest.s
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23385 $as_echo "$gcc_cv_as_hidden" >&6; }
23388 case "${target}" in
23390 # Darwin as has some visibility support, though with a different syntax.
23391 gcc_cv_as_hidden
=yes
23395 # gnu_indirect_function type is an extension proposed at
23396 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23397 # selection of function implementation
23398 # Check whether --enable-gnu-indirect-function was given.
23399 if test "${enable_gnu_indirect_function+set}" = set; then :
23400 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23402 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23403 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23406 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23410 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23412 cat >>confdefs.h
<<_ACEOF
23413 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23418 if test $in_tree_ld != yes ; then
23419 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23420 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23421 if test x
"$ld_is_gold" = xyes
; then
23422 # GNU gold --version looks like this:
23424 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23426 # We extract the binutils version which is more familiar and specific
23427 # than the gold version.
23428 ld_vers
=`echo $ld_ver | sed -n \
23429 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23431 # GNU ld --version looks like this:
23433 # GNU ld (GNU Binutils) 2.21.51.20110225
23434 ld_vers
=`echo $ld_ver | sed -n \
23435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23437 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'`
23438 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23439 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23440 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23442 case "${target}" in
23444 # Solaris 2 ld -V output looks like this for a regular version:
23446 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23448 # but test versions add stuff at the end:
23450 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23452 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23453 # numbers can be used in ld.so.1 feature checks even if a different
23454 # linker is configured.
23455 ld_ver
=`$gcc_cv_ld -V 2>&1`
23456 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23457 ld_vers
=`echo $ld_ver | sed -n \
23458 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23459 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23460 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23468 $as_echo_n "checking linker for .hidden support... " >&6; }
23469 if ${gcc_cv_ld_hidden+:} false
; then :
23470 $as_echo_n "(cached) " >&6
23472 if test $in_tree_ld = yes ; then
23473 gcc_cv_ld_hidden
=no
23474 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 \
23475 && test $in_tree_ld_is_elf = yes; then
23476 gcc_cv_ld_hidden
=yes
23479 gcc_cv_ld_hidden
=yes
23480 if test x
"$ld_is_gold" = xyes
; then
23482 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23483 if test 0"$ld_date" -lt 20020404; then
23484 if test -n "$ld_date"; then
23485 # If there was date string, but was earlier than 2002-04-04, fail
23486 gcc_cv_ld_hidden
=no
23487 elif test -z "$ld_vers"; then
23488 # If there was no date string nor ld version number, something is wrong
23489 gcc_cv_ld_hidden
=no
23491 test -z "$ld_vers_patch" && ld_vers_patch
=0
23492 if test "$ld_vers_major" -lt 2; then
23493 gcc_cv_ld_hidden
=no
23494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23495 gcc_cv_ld_hidden
="no"
23496 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23497 gcc_cv_ld_hidden
=no
23502 case "${target}" in
23504 gcc_cv_ld_hidden
=yes
23507 # Darwin ld has some visibility support.
23508 gcc_cv_ld_hidden
=yes
23510 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23511 gcc_cv_ld_hidden
=yes
23514 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23515 # .symbolic was only added in Solaris 9 12/02.
23516 gcc_cv_ld_hidden
=yes
23519 gcc_cv_ld_hidden
=no
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23526 $as_echo "$gcc_cv_ld_hidden" >&6; }
23527 libgcc_visibility
=no
23530 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23531 libgcc_visibility
=yes
23533 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23538 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23539 gcc_cv_ld_ro_rw_mix
=unknown
23540 if test $in_tree_ld = yes ; then
23541 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 \
23542 && test $in_tree_ld_is_elf = yes; then
23543 gcc_cv_ld_ro_rw_mix
=read-write
23545 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23546 echo '.section myfoosect, "a"' > conftest1.s
23547 echo '.section myfoosect, "aw"' > conftest2.s
23548 echo '.byte 1' >> conftest2.s
23549 echo '.section myfoosect, "a"' > conftest3.s
23550 echo '.byte 0' >> conftest3.s
23551 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23552 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23553 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23554 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23555 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23556 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23557 | sed -e '/myfoosect/!d' -e N`
23558 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23559 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23560 gcc_cv_ld_ro_rw_mix
=read-only
23562 gcc_cv_ld_ro_rw_mix
=read-write
23566 rm -f conftest.
* conftest
[123].
*
23568 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23570 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23574 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23576 # Check whether --enable-initfini-array was given.
23577 if test "${enable_initfini_array+set}" = set; then :
23578 enableval
=$enable_initfini_array;
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23582 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23583 if ${gcc_cv_initfini_array+:} false
; then :
23584 $as_echo_n "(cached) " >&6
23586 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23587 case "${target}" in
23589 if test "$cross_compiling" = yes; then :
23590 gcc_cv_initfini_array
=no
23592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23596 #error Not an ELF OS
23598 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23599 if it can be used. */
23601 int main (void) { return x; }
23602 int foo (void) { x = 0; }
23603 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23606 if ac_fn_cxx_try_run
"$LINENO"; then :
23607 gcc_cv_initfini_array
=yes
23609 gcc_cv_initfini_array
=no
23611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23616 gcc_cv_initfini_array
=no
23617 if test $in_tree_ld = yes ; then
23618 if test "$gcc_cv_gld_major_version" -eq 2 \
23619 -a "$gcc_cv_gld_minor_version" -ge 22 \
23620 -o "$gcc_cv_gld_major_version" -gt 2 \
23621 && test $in_tree_ld_is_elf = yes; then
23622 gcc_cv_initfini_array
=yes
23624 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23625 case $target:$gas in
23628 sh_type
='%progbits'
23630 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23632 sh_type
='@progbits'
23634 sparc
*-*-solaris2*:no
)
23636 sh_type
='#progbits'
23640 case "$target:$gnu_ld" in
23642 cat > conftest.s
<<EOF
23643 .section .dtors,$sh_flags,$sh_type
23645 .byte 'A', 'A', 'A', 'A'
23646 .section .ctors,$sh_flags,$sh_type
23648 .byte 'B', 'B', 'B', 'B'
23649 .section .fini_array.65530,$sh_flags,$sh_type
23651 .byte 'C', 'C', 'C', 'C'
23652 .section .init_array.65530,$sh_flags,$sh_type
23654 .byte 'D', 'D', 'D', 'D'
23655 .section .dtors.64528,$sh_flags,$sh_type
23657 .byte 'E', 'E', 'E', 'E'
23658 .section .ctors.64528,$sh_flags,$sh_type
23660 .byte 'F', 'F', 'F', 'F'
23661 .section .fini_array.01005,$sh_flags,$sh_type
23663 .byte 'G', 'G', 'G', 'G'
23664 .section .init_array.01005,$sh_flags,$sh_type
23666 .byte 'H', 'H', 'H', 'H'
23671 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23672 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23673 && $gcc_cv_objdump -s -j .init_array conftest \
23674 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23675 && $gcc_cv_objdump -s -j .fini_array conftest \
23676 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23677 gcc_cv_initfini_array
=yes
23681 # When Solaris ld added constructor priority support, it was
23682 # decided to only handle .init_array.N/.fini_array.N since
23683 # there was no need for backwards compatibility with
23684 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23685 # sections with correct execution order resp. to
23686 # .init_array/.fini_array, while gld merges them into
23687 # .init_array/.fini_array.
23688 cat > conftest.s
<<EOF
23689 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23691 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23692 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23694 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23695 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23697 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23698 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23700 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23705 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23706 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23707 && $gcc_cv_objdump -s -j .init_array conftest \
23708 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23709 && $gcc_cv_objdump -s -j .fini_array conftest \
23710 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23711 gcc_cv_initfini_array
=yes
23715 rm -f conftest conftest.
*
23717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23721 # error Not an ELF OS
23723 #include <stdlib.h>
23724 #if defined __GLIBC_PREREQ
23725 # if __GLIBC_PREREQ (2, 4)
23727 # error GLIBC 2.4 required
23730 # if defined __sun__ && defined __svr4__
23731 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23733 # error The C library not known to support .init_array/.fini_array
23738 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23741 gcc_cv_initfini_array
=no
23743 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23747 $as_echo_n "checking cross compile... guessing... " >&6; }
23748 gcc_cv_initfini_array
=no
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23752 $as_echo "$gcc_cv_initfini_array" >&6; }
23753 enable_initfini_array
=$gcc_cv_initfini_array
23758 cat >>confdefs.h
<<_ACEOF
23759 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23764 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23766 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23767 if ${gcc_cv_as_leb128+:} false
; then :
23768 $as_echo_n "(cached) " >&6
23770 gcc_cv_as_leb128
=no
23771 if test $in_tree_gas = yes; then
23772 if test $in_tree_gas_is_elf = yes \
23773 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23774 then gcc_cv_as_leb128
=yes
23776 elif test x
$gcc_cv_as != x
; then
23783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23785 (eval $ac_try) 2>&5
23787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23788 test $ac_status = 0; }; }
23790 # GAS versions before 2.11 do not support uleb128,
23791 # despite appearing to.
23792 # ??? There exists an elf-specific test that will crash
23793 # the assembler. Perhaps it's better to figure out whether
23794 # arbitrary sections are supported and try the test.
23795 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23796 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23797 as_vers
=`echo $as_ver | sed -n \
23798 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23799 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23800 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23801 if test $as_major -eq 2 && test $as_minor -lt 11
23803 else gcc_cv_as_leb128
=yes
23807 echo "configure: failed program was" >&5
23810 rm -f conftest.o conftest.s
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23814 $as_echo "$gcc_cv_as_leb128" >&6; }
23815 if test $gcc_cv_as_leb128 = yes; then
23817 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23820 if test $gcc_cv_as_leb128 != yes; then
23822 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23826 # Determine if an .eh_frame section is read-only.
23827 gcc_fn_eh_frame_ro
() {
23828 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23829 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23830 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23833 # Check if we have assembler support for unwind directives.
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23835 $as_echo_n "checking assembler for cfi directives... " >&6; }
23836 if ${gcc_cv_as_cfi_directive+:} false
; then :
23837 $as_echo_n "(cached) " >&6
23839 gcc_cv_as_cfi_directive
=no
23840 if test x
$gcc_cv_as != x
; then
23846 .cfi_escape 1, 2, 3, 4, 5
23847 .cfi_endproc' > conftest.s
23848 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23850 (eval $ac_try) 2>&5
23852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23853 test $ac_status = 0; }; }
23857 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23858 # read-only and read-write sections, we need to make sure that the
23859 # assembler used emits read-write .eh_frame sections.
23860 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23861 gcc_cv_as_cfi_directive
=yes
23862 elif test "x$gcc_cv_objdump" = x
; then
23863 # No objdump, err on the side of caution.
23864 gcc_cv_as_cfi_directive
=no
23866 if test x
$gas = xyes
; then
23874 sparc
*-*-solaris2.
*)
23875 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23876 if gcc_fn_eh_frame_ro
$as_32_opt \
23877 || gcc_fn_eh_frame_ro
$as_64_opt; then
23878 gcc_cv_as_cfi_directive
=no
23880 gcc_cv_as_cfi_directive
=yes
23883 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23884 # On Solaris/x86, make sure that GCC and assembler agree on using
23885 # read-only .eh_frame sections for 64-bit.
23886 if gcc_fn_eh_frame_ro
$as_32_opt; then
23887 gcc_cv_as_cfi_directive
=no
23888 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23889 gcc_cv_as_cfi_directive
=yes
23891 gcc_cv_as_cfi_directive
=no
23898 gcc_cv_as_cfi_directive
=yes
23902 echo "configure: failed program was" >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23909 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23912 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23914 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23915 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23916 $as_echo_n "(cached) " >&6
23918 gcc_cv_as_cfi_advance_working
=no
23919 if test x
$gcc_cv_as != x
; then
23922 .cfi_adjust_cfa_offset 64
23924 .cfi_adjust_cfa_offset 128
23925 .cfi_endproc' > conftest.s
23926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23934 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23935 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23936 gcc_cv_as_cfi_advance_working
=yes
23940 echo "configure: failed program was" >&5
23943 rm -f conftest.o conftest.s
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23947 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23951 # no objdump, err on the side of caution
23952 gcc_cv_as_cfi_advance_working
=no
23956 cat >>confdefs.h
<<_ACEOF
23957 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23958 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23964 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23965 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23966 $as_echo_n "(cached) " >&6
23968 gcc_cv_as_cfi_personality_directive
=no
23969 if test x
$gcc_cv_as != x
; then
23972 .cfi_personality 0, symbol
23973 .cfi_endproc' > conftest.s
23974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23981 gcc_cv_as_cfi_personality_directive
=yes
23983 echo "configure: failed program was" >&5
23986 rm -f conftest.o conftest.s
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23990 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23994 cat >>confdefs.h
<<_ACEOF
23995 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24000 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24001 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24002 $as_echo_n "(cached) " >&6
24004 gcc_cv_as_cfi_sections_directive
=no
24005 if test x
$gcc_cv_as != x
; then
24007 .cfi_sections .debug_frame, .eh_frame
24009 .cfi_endproc' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24018 win32 | pe | cygwin
* | mingw32
*)
24019 # Need to check that we generated the correct relocation for the
24020 # .debug_frame section. This was fixed for binutils 2.21.
24021 gcc_cv_as_cfi_sections_directive
=no
24022 if test "x$gcc_cv_objdump" != x
; then
24023 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24024 grep secrel
> /dev
/null
; then
24025 gcc_cv_as_cfi_sections_directive
=yes
24030 gcc_cv_as_cfi_sections_directive
=yes
24034 echo "configure: failed program was" >&5
24037 rm -f conftest.o conftest.s
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24041 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24046 cat >>confdefs.h
<<_ACEOF
24047 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24051 # GAS versions up to and including 2.11.0 may mis-optimize
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24054 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24055 if ${gcc_cv_as_eh_frame+:} false
; then :
24056 $as_echo_n "(cached) " >&6
24058 gcc_cv_as_eh_frame
=no
24059 if test $in_tree_gas = yes; then
24060 if test $in_tree_gas_is_elf = yes \
24061 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24062 then gcc_cv_as_eh_frame
=yes
24064 elif test x
$gcc_cv_as != x
; then
24071 .section .eh_frame,"aw",@progbits
24073 .4byte .LECIE1-.LSCIE1
24087 .4byte .LEFDE1-.LASFDE1
24089 .4byte .LASFDE1-__FRAME_BEGIN__
24096 .LEFDE1:' > conftest.s
24097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24104 cat > conftest.lit
<<EOF
24105 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24106 0010 01000000 12000000 18000000 00000000 ................
24107 0020 08000000 04080000 0044 .........D
24109 cat > conftest.big
<<EOF
24110 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24111 0010 00000001 00000012 00000018 00000000 ................
24112 0020 00000008 04000000 0844 .........D
24114 # If the assembler didn't choke, and we can objdump,
24115 # and we got the correct data, then succeed.
24116 # The text in the here-document typically retains its unix-style line
24117 # endings, while the output of objdump will use host line endings.
24118 # Therefore, use diff -b for the comparisons.
24119 if test x
$gcc_cv_objdump != x \
24120 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24121 |
tail -3 > conftest.got \
24122 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24123 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24125 gcc_cv_as_eh_frame
=yes
24126 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }; then
24132 gcc_cv_as_eh_frame
=buggy
24134 # Uh oh, what do we do now?
24135 gcc_cv_as_eh_frame
=no
24138 echo "configure: failed program was" >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24145 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24149 if test $gcc_cv_as_eh_frame = buggy
; then
24151 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24155 # Test if the assembler supports the section flag 'e' or #exclude for
24156 # specifying an excluded section.
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24158 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24159 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24160 $as_echo_n "(cached) " >&6
24162 gcc_cv_as_section_exclude_e
=no
24163 if test $in_tree_gas = yes; then
24164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24165 then gcc_cv_as_section_exclude_e
=yes
24167 elif test x
$gcc_cv_as != x
; then
24168 $as_echo '.section foo1,"e"
24169 .byte 0,0,0,0' > conftest.s
24170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24177 gcc_cv_as_section_exclude_e
=yes
24179 echo "configure: failed program was" >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24186 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24189 if test $gcc_cv_as_section_exclude_e = no
; then
24190 case "${target}" in
24191 # Solaris as uses #exclude instead.
24193 case "${target}" in
24194 sparc
*-*-solaris2*)
24195 conftest_s
='.section "foo1", #exclude'
24197 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24198 conftest_s
='.section foo1, #exclude'
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24204 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24205 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24206 $as_echo_n "(cached) " >&6
24208 gcc_cv_as_section_exclude_hash
=no
24209 if test x
$gcc_cv_as != x
; then
24210 $as_echo "$conftest_s
24211 .byte 0,0,0,0" > conftest.s
24212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24219 gcc_cv_as_section_exclude_hash
=yes
24221 echo "configure: failed program was" >&5
24224 rm -f conftest.o conftest.s
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24228 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24233 cat >>confdefs.h
<<_ACEOF
24234 #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`
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24239 $as_echo_n "checking assembler for section merging support... " >&6; }
24240 if ${gcc_cv_as_shf_merge+:} false
; then :
24241 $as_echo_n "(cached) " >&6
24243 gcc_cv_as_shf_merge
=no
24244 if test $in_tree_gas = yes; then
24245 if test $in_tree_gas_is_elf = yes \
24246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24247 then gcc_cv_as_shf_merge
=yes
24249 elif test x
$gcc_cv_as != x
; then
24250 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24258 gcc_cv_as_shf_merge
=yes
24260 echo "configure: failed program was" >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24267 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24270 if test $gcc_cv_as_shf_merge = no
; then
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24272 $as_echo_n "checking assembler for section merging support... " >&6; }
24273 if ${gcc_cv_as_shf_merge+:} false
; then :
24274 $as_echo_n "(cached) " >&6
24276 gcc_cv_as_shf_merge
=no
24277 if test $in_tree_gas = yes; then
24278 if test $in_tree_gas_is_elf = yes \
24279 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24280 then gcc_cv_as_shf_merge
=yes
24282 elif test x
$gcc_cv_as != x
; then
24283 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286 (eval $ac_try) 2>&5
24288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289 test $ac_status = 0; }; }
24291 gcc_cv_as_shf_merge
=yes
24293 echo "configure: failed program was" >&5
24296 rm -f conftest.o conftest.s
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24300 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24305 cat >>confdefs.h
<<_ACEOF
24306 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24310 gcc_cv_ld_aligned_shf_merge
=yes
24312 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24314 sparc
*-*-solaris2.11
*)
24315 if test x
"$gnu_ld" = xno \
24316 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24317 gcc_cv_ld_aligned_shf_merge
=no
24322 cat >>confdefs.h
<<_ACEOF
24323 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24328 $as_echo_n "checking assembler for stabs directive... " >&6; }
24329 if ${gcc_cv_as_stabs_directive+:} false
; then :
24330 $as_echo_n "(cached) " >&6
24332 gcc_cv_as_stabs_directive
=no
24333 if test x
$gcc_cv_as != x
; then
24334 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24342 gcc_cv_as_stabs_directive
=yes
24344 echo "configure: failed program was" >&5
24347 rm -f conftest.o conftest.s
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24351 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24352 if test $gcc_cv_as_stabs_directive = yes; then
24354 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24360 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24361 if ${gcc_cv_as_comdat_group+:} false
; then :
24362 $as_echo_n "(cached) " >&6
24364 gcc_cv_as_comdat_group
=no
24365 if test $in_tree_gas = yes; then
24366 if test $in_tree_gas_is_elf = yes \
24367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24368 then gcc_cv_as_comdat_group
=yes
24370 elif test x
$gcc_cv_as != x
; then
24371 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24379 gcc_cv_as_comdat_group
=yes
24381 echo "configure: failed program was" >&5
24384 rm -f conftest.o conftest.s
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24388 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24391 if test $gcc_cv_as_comdat_group = yes; then
24392 gcc_cv_as_comdat_group_percent
=no
24393 gcc_cv_as_comdat_group_group
=no
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24396 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24397 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24398 $as_echo_n "(cached) " >&6
24400 gcc_cv_as_comdat_group_percent
=no
24401 if test $in_tree_gas = yes; then
24402 if test $in_tree_gas_is_elf = yes \
24403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24404 then gcc_cv_as_comdat_group_percent
=yes
24406 elif test x
$gcc_cv_as != x
; then
24407 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410 (eval $ac_try) 2>&5
24412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413 test $ac_status = 0; }; }
24415 gcc_cv_as_comdat_group_percent
=yes
24417 echo "configure: failed program was" >&5
24420 rm -f conftest.o conftest.s
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24424 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24427 if test $gcc_cv_as_comdat_group_percent = yes; then
24428 gcc_cv_as_comdat_group_group
=no
24430 case "${target}" in
24431 # Sun as uses a completely different syntax.
24433 case "${target}" in
24434 sparc
*-*-solaris2*)
24436 .group foo,".text%foo",#comdat
24437 .section ".text%foo", #alloc,#execinstr,#progbits
24442 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24444 .group foo,.text%foo,#comdat
24445 .section .text%foo, "ax", @progbits
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24452 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24453 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24454 $as_echo_n "(cached) " >&6
24456 gcc_cv_as_comdat_group_group
=no
24457 if test x
$gcc_cv_as != x
; then
24458 $as_echo "$conftest_s" > conftest.s
24459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24466 gcc_cv_as_comdat_group_group
=yes
24468 echo "configure: failed program was" >&5
24471 rm -f conftest.o conftest.s
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24475 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24480 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24481 gcc_cv_as_comdat_group_group
=no
24485 if test x
"$ld_is_gold" = xyes
; then
24487 elif test $in_tree_ld = yes ; then
24489 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 \
24490 && test $in_tree_ld_is_elf = yes; then
24493 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24495 if test 0"$ld_date" -lt 20050308; then
24496 if test -n "$ld_date"; then
24497 # If there was date string, but was earlier than 2005-03-08, fail
24499 elif test "$ld_vers_major" -lt 2; then
24501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24506 case "${target}" in
24507 *-*-solaris2.1
[1-9]*)
24509 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24510 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24513 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24514 # least ld version 1.2267.
24515 if test "$ld_vers_major" -gt 1; then
24517 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24519 elif test "$ld_vers_minor" -ge 2267; then
24524 # Assume linkers other than GNU ld don't support COMDAT group.
24529 # Allow overriding the automatic COMDAT group tests above.
24530 # Check whether --enable-comdat was given.
24531 if test "${enable_comdat+set}" = set; then :
24532 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24535 if test $comdat_group = no
; then
24536 gcc_cv_as_comdat_group
=no
24537 gcc_cv_as_comdat_group_percent
=no
24538 gcc_cv_as_comdat_group_group
=no
24541 cat >>confdefs.h
<<_ACEOF
24542 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24543 || test $gcc_cv_as_comdat_group_percent = yes \
24544 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24548 # Restrict this test to Solaris/x86: other targets define this statically.
24549 case "${target}" in
24550 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24552 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24553 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24554 hidden_linkonce
=yes
24556 case "${target}" in
24557 # Full support for hidden thunks in linkonce sections only appeared in
24558 # Solaris 11/OpenSolaris.
24559 *-*-solaris2.1
[1-9]*)
24560 hidden_linkonce
=yes
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24568 $as_echo "$hidden_linkonce" >&6; }
24570 cat >>confdefs.h
<<_ACEOF
24571 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24578 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24579 if ${gcc_cv_as_is_stmt+:} false
; then :
24580 $as_echo_n "(cached) " >&6
24582 gcc_cv_as_is_stmt
=no
24583 if test $in_tree_gas = yes; then
24584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24585 then gcc_cv_as_is_stmt
=yes
24587 elif test x
$gcc_cv_as != x
; then
24590 .loc 1 1 0 is_stmt 1' > conftest.s
24591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24598 gcc_cv_as_is_stmt
=yes
24600 echo "configure: failed program was" >&5
24603 rm -f conftest.o conftest.s
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24607 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24608 if test $gcc_cv_as_is_stmt = yes; then
24610 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24616 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24617 if ${gcc_cv_as_discriminator+:} false
; then :
24618 $as_echo_n "(cached) " >&6
24620 gcc_cv_as_discriminator
=no
24621 if test $in_tree_gas = yes; then
24622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24623 then gcc_cv_as_discriminator
=yes
24625 elif test x
$gcc_cv_as != x
; then
24628 .loc 1 1 0 discriminator 1' > conftest.s
24629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24631 (eval $ac_try) 2>&5
24633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24634 test $ac_status = 0; }; }
24636 gcc_cv_as_discriminator
=yes
24638 echo "configure: failed program was" >&5
24641 rm -f conftest.o conftest.s
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24645 $as_echo "$gcc_cv_as_discriminator" >&6; }
24646 if test $gcc_cv_as_discriminator = yes; then
24648 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24653 # Catch the newlib flag of the same name so we can gate GCC features on it.
24654 # Check whether --enable-newlib-nano-formatted-io was given.
24655 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24656 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24660 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24666 # Thread-local storage - the check is heavily parameterized.
24674 .section ".tdata","awT",@progbits
24677 ldq $27,__tls_get_addr($29) !literal!1
24678 lda $16,foo($29) !tlsgd!1
24679 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24680 ldq $27,__tls_get_addr($29) !literal!2
24681 lda $16,foo($29) !tlsldm!2
24682 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24683 ldq $1,foo($29) !gotdtprel
24684 ldah $2,foo($29) !dtprelhi
24685 lda $3,foo($2) !dtprello
24686 lda $4,foo($29) !dtprel
24687 ldq $1,foo($29) !gottprel
24688 ldah $2,foo($29) !tprelhi
24689 lda $3,foo($2) !tprello
24690 lda $4,foo($29) !tprel'
24693 tls_as_opt
=--fatal-warnings
24697 add_s r0,r0, @foo@tpoff'
24701 cris-
*-*|crisv32-
*-*)
24703 .section ".tdata","awT",@progbits
24710 tls_as_opt
=--fatal-warnings
24714 .section ".tdata","awT",@progbits
24717 call #gettlsoff(x)'
24726 .section ".tdata","awT",@progbits
24730 addil LT%foo-$tls_gdidx$,gp
24731 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24734 addil LT%foo-$tls_ldidx$,gp
24736 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24737 addil LR%foo-$tls_dtpoff$,%ret0
24738 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24740 addil LT%foo-$tls_ieoff$,gp
24741 ldw RT%foo-$tls_ieoff$(%r1),%t2
24744 addil LR%foo-$tls_leoff$,%t1
24745 ldo RR%foo-$tls_leoff$(%r1),%t2'
24748 tls_as_opt
=--fatal-warnings
24752 .section ".tdata","awT",%progbits
24755 .word foo(gottpoff)
24763 i
[34567]86-*-* | x86_64-
*-*)
24765 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24772 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24774 .section .tdata,"awt",@progbits'
24779 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24783 .section ".tdata","awT",@progbits'
24787 tls_as_opt
="--fatal-warnings"
24791 if test x
$on_solaris = xyes
; then
24793 yes) tls_as_opt
="$tls_as_opt --32" ;;
24796 conftest_s
="$conftest_s
24800 leal foo@tlsgd(,%ebx,1), %eax
24801 leal foo@tlsldm(%ebx), %eax
24802 leal foo@dtpoff(%eax), %edx
24803 movl foo@gottpoff(%ebx), %eax
24804 subl foo@gottpoff(%ebx), %eax
24805 addl foo@gotntpoff(%ebx), %eax
24806 movl foo@indntpoff, %eax
24807 movl \$foo@tpoff, %eax
24808 subl \$foo@tpoff, %eax
24809 leal foo@ntpoff(%ecx), %eax"
24812 if test x
$on_solaris = xyes
; then
24814 yes) tls_as_opt
="$tls_as_opt --64" ;;
24815 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24818 conftest_s
="$conftest_s
24822 leaq foo@tlsgd(%rip), %rdi
24823 leaq foo@tlsld(%rip), %rdi
24824 leaq foo@dtpoff(%rax), %rdx
24825 movq foo@gottpoff(%rip), %rax
24826 movq \$foo@tpoff, %rax"
24832 .section ".tdata","awT",@progbits
24835 addl r16 = @ltoff(@dtpmod(foo#)), gp
24836 addl r17 = @ltoff(@dtprel(foo#)), gp
24837 addl r18 = @ltoff(@tprel(foo#)), gp
24838 addl r19 = @dtprel(foo#), gp
24839 adds r21 = @dtprel(foo#), r13
24840 movl r23 = @dtprel(foo#)
24841 addl r20 = @tprel(foo#), gp
24842 adds r22 = @tprel(foo#), r13
24843 movl r24 = @tprel(foo#)'
24846 tls_as_opt
=--fatal-warnings
24850 .section .tdata,"awT",@progbits
24854 addik r5,r20,x@TLSGD
24855 addik r5,r20,x@TLSLDM'
24858 tls_as_opt
='--fatal-warnings'
24862 .section .tdata,"awT",@progbits
24866 addiu $4, $28, %tlsgd(x)
24867 addiu $4, $28, %tlsldm(x)
24868 lui $4, %dtprel_hi(x)
24869 addiu $4, $4, %dtprel_lo(x)
24870 lw $4, %gottprel(x)($28)
24871 lui $4, %tprel_hi(x)
24872 addiu $4, $4, %tprel_lo(x)'
24875 tls_as_opt
='-32 --fatal-warnings'
24879 .section .tdata,"awT",@progbits
24884 move.l x@TLSGD(%a5),%a0
24885 move.l x@TLSLDM(%a5),%a0
24886 move.l x@TLSLDO(%a5),%a0
24887 move.l x@TLSIE(%a5),%a0
24888 move.l x@TLSLE(%a5),%a0'
24891 tls_as_opt
='--fatal-warnings'
24895 .section ".tdata","awT",@progbits'
24898 tls_as_opt
="--fatal-warnings"
24902 .section ".tdata","awT",%progbits
24906 add x0, x0, #:tlsgd_lo12:x
24911 tls_as_opt
='--fatal-warnings'
24915 .section ".tdata","awT",@progbits
24918 l.movhi r3, tpoffha(foo)
24920 l.lwz r4, tpofflo(foo)(r3)'
24923 tls_as_opt
=--fatal-warnings
24927 .extern __get_tpointer
24945 .section ".tdata","awT",@progbits
24953 addi 3,2,ld0@got@tlsgd
24959 addi 3,2,x1@got@tlsld
24965 addis 9,3,x2@dtprel@ha
24966 addi 9,9,x2@dtprel@l
24969 ld 9,x3@got@dtprel(2)
24975 tls_as_opt
="-a64 --fatal-warnings"
24979 .section ".tdata","awT",@progbits
24987 addi 3,31,ld0@got@tlsgd
24989 addi 3,31,x1@got@tlsld
24992 addis 9,3,x2@dtprel@ha
24993 addi 9,9,x2@dtprel@l
24994 lwz 9,x3@got@tprel(31)
24997 addis 9,2,x2@tprel@ha
24998 addi 9,9,x2@tprel@l'
25001 tls_as_opt
="-a32 --fatal-warnings"
25005 .section .tdata,"awT",@progbits
25009 call __tls_get_addr'
25012 tls_as_opt
='--fatal-warnings'
25016 .section ".tdata","awT",@progbits
25023 .long foo@GOTNTPOFF
25024 .long foo@INDNTPOFF
25025 l %r1,foo@GOTNTPOFF(%r12)
25026 l %r1,0(%r1):tls_load:foo
25027 bas %r14,0(%r1,%r13):tls_gdcall:foo
25028 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25031 tls_as_opt
="-m31 --fatal-warnings"
25035 .section ".tdata","awT",@progbits
25042 .quad foo@GOTNTPOFF
25043 lg %r1,foo@GOTNTPOFF(%r12)
25044 larl %r1,foo@INDNTPOFF
25045 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25046 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25049 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25051 sh-
*-* | sh
[123456789lbe
]*-*-*)
25053 .section ".tdata","awT",@progbits
25063 tls_as_opt
=--fatal-warnings
25067 sparc
*-sun-solaris2.
*)
25074 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25076 .section ".tdata",#alloc,#write,#tls'
25081 .section ".tdata","awT",@progbits'
25084 tls_as_opt
="-32 --fatal-warnings"
25086 conftest_s
="$conftest_s
25089 sethi %tgd_hi22(foo), %o0
25090 add %o0, %tgd_lo10(foo), %o1
25091 add %l7, %o1, %o0, %tgd_add(foo)
25092 call __tls_get_addr, %tgd_call(foo)
25093 sethi %tldm_hi22(foo), %l1
25094 add %l1, %tldm_lo10(foo), %l2
25095 add %l7, %l2, %o0, %tldm_add(foo)
25096 call __tls_get_addr, %tldm_call(foo)
25097 sethi %tldo_hix22(foo), %l3
25098 xor %l3, %tldo_lox10(foo), %l4
25099 add %o0, %l4, %l5, %tldo_add(foo)
25100 sethi %tie_hi22(foo), %o3
25101 add %o3, %tie_lo10(foo), %o3
25102 ld [%l7 + %o3], %o2, %tie_ld(foo)
25103 add %g7, %o2, %o4, %tie_add(foo)
25104 sethi %tle_hix22(foo), %l1
25105 xor %l1, %tle_lox10(foo), %o5
25106 ld [%g7 + %o5], %o1"
25110 .section ".tdata","awT",@progbits
25113 addli r0, zero, tls_gd(foo)
25114 auli r0, zero, tls_gd_ha16(foo)
25115 addli r0, r0, tls_gd_lo16(foo)
25117 addli r0, zero, tls_ie(foo)
25118 auli r0, r0, tls_ie_ha16(foo)
25119 addli r0, r0, tls_ie_lo16(foo)'
25122 tls_as_opt
="--fatal-warnings"
25126 .section ".tdata","awT",@progbits
25129 shl16insli r0, zero, hw0_last_tls_gd(foo)
25130 shl16insli r0, zero, hw1_last_tls_gd(foo)
25131 shl16insli r0, r0, hw0_tls_gd(foo)
25133 shl16insli r0, zero, hw1_last_tls_ie(foo)
25134 shl16insli r0, r0, hw0_tls_ie(foo)'
25137 tls_as_opt
="--fatal-warnings"
25141 .section ".tdata","awT",@progbits
25144 movi a8, foo@TLSFUNC
25145 movi a10, foo@TLSARG
25146 callx8.tls a8, foo@TLSCALL'
25152 if test "x$enable_tls" = xno
; then
25153 : # TLS explicitly disabled.
25154 elif test "x$enable_tls" = xyes
; then
25155 set_have_as_tls
=yes # TLS explicitly enabled.
25156 elif test -z "$tls_first_major"; then
25157 : # If we don't have a check, assume no support.
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25160 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25161 if ${gcc_cv_as_tls+:} false
; then :
25162 $as_echo_n "(cached) " >&6
25165 if test $in_tree_gas = yes; then
25166 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25167 then gcc_cv_as_tls
=yes
25169 elif test x
$gcc_cv_as != x
; then
25170 $as_echo "$conftest_s" > conftest.s
25171 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25173 (eval $ac_try) 2>&5
25175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25176 test $ac_status = 0; }; }
25180 echo "configure: failed program was" >&5
25183 rm -f conftest.o conftest.s
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25187 $as_echo "$gcc_cv_as_tls" >&6; }
25188 if test $gcc_cv_as_tls = yes; then
25189 set_have_as_tls
=yes
25193 if test $set_have_as_tls = yes ; then
25195 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25199 # Target-specific assembler checks.
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25202 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25203 gcc_cv_ld_static_dynamic
=no
25204 gcc_cv_ld_static_option
='-Bstatic'
25205 gcc_cv_ld_dynamic_option
='-Bdynamic'
25206 if test $in_tree_ld = yes ; then
25207 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
25208 gcc_cv_ld_static_dynamic
=yes
25210 elif test x
$gcc_cv_ld != x
; then
25211 # Check if linker supports -Bstatic/-Bdynamic option
25212 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25213 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25214 gcc_cv_ld_static_dynamic
=yes
25217 # AIX ld uses -b flags
25218 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25219 gcc_cv_ld_static_dynamic
=yes
25220 gcc_cv_ld_static_option
="-bstatic"
25221 gcc_cv_ld_dynamic_option
="-bdynamic"
25223 # HP-UX ld uses -a flags to select between shared and archive.
25225 if test x
"$gnu_ld" = xno
; then
25226 gcc_cv_ld_static_dynamic
=yes
25227 gcc_cv_ld_static_option
="-aarchive_shared"
25228 gcc_cv_ld_dynamic_option
="-adefault"
25231 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25233 gcc_cv_ld_static_dynamic
=yes
25238 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25240 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25243 cat >>confdefs.h
<<_ACEOF
25244 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25248 cat >>confdefs.h
<<_ACEOF
25249 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25254 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25257 $as_echo_n "checking linker --version-script option... " >&6; }
25258 gcc_cv_ld_version_script
=no
25259 ld_version_script_option
=''
25260 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25261 gcc_cv_ld_version_script
=yes
25262 ld_version_script_option
='--version-script'
25263 elif test x
$gcc_cv_ld != x
; then
25265 # Solaris 2 ld always supports -M. It also supports a subset of
25266 # --version-script since Solaris 11.4, but requires
25267 # -z gnu-version-script-compat to activate.
25269 gcc_cv_ld_version_script
=yes
25270 ld_version_script_option
='-M'
25274 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25276 $as_echo "$gcc_cv_ld_version_script" >&6; }
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25280 $as_echo_n "checking linker soname option... " >&6; }
25281 gcc_cv_ld_soname
=no
25282 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25283 gcc_cv_ld_soname
=yes
25284 ld_soname_option
='-soname'
25285 elif test x
$gcc_cv_ld != x
; then
25288 gcc_cv_ld_soname
=yes
25289 ld_soname_option
='-install_name'
25291 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25292 # ld compatiblity since some Solaris 10 update.
25294 gcc_cv_ld_soname
=yes
25295 ld_soname_option
='-h'
25299 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25301 $as_echo "$gcc_cv_ld_soname" >&6; }
25304 if test x
"$demangler_in_ld" = xyes
; then
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25306 $as_echo_n "checking linker --demangle support... " >&6; }
25307 gcc_cv_ld_demangle
=no
25308 if test $in_tree_ld = yes; then
25309 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 \
25310 gcc_cv_ld_demangle
=yes
25312 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25313 # Check if the GNU linker supports --demangle option
25314 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25315 gcc_cv_ld_demangle
=yes
25318 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25320 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25324 $as_echo "$gcc_cv_ld_demangle" >&6; }
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25328 $as_echo_n "checking linker plugin support... " >&6; }
25329 gcc_cv_lto_plugin
=0
25330 if test -f liblto_plugin.la
; then
25331 save_ld_ver
="$ld_ver"
25332 save_ld_vers_major
="$ld_vers_major"
25333 save_ld_vers_minor
="$ld_vers_minor"
25334 save_ld_is_gold
="$ld_is_gold"
25338 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25340 # FIXME: ld_is_gold?
25341 ld_vers_major
="$gcc_cv_gld_major_version"
25342 ld_vers_minor
="$gcc_cv_gld_minor_version"
25344 # Determine plugin linker version.
25345 # FIXME: Partial duplicate from above, generalize.
25346 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25347 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25348 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25350 ld_vers
=`echo $ld_ver | sed -n \
25351 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25353 ld_vers
=`echo $ld_ver | sed -n \
25354 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25356 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25357 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25361 # Determine plugin support.
25362 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25363 # Require GNU ld or gold 2.21+ for plugin support by default.
25364 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25365 gcc_cv_lto_plugin
=2
25366 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25367 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25368 gcc_cv_lto_plugin
=1
25372 ld_ver
="$save_ld_ver"
25373 ld_vers_major
="$save_ld_vers_major"
25374 ld_vers_minor
="$save_ld_vers_minor"
25375 ld_is_gold
="$save_ld_is_gold"
25378 cat >>confdefs.h
<<_ACEOF
25379 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25383 $as_echo "$gcc_cv_lto_plugin" >&6; }
25385 # Target OS-specific assembler checks.
25387 case "$target_os" in
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25390 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25391 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_mmacosx_version_min
=no
25395 if test x
$gcc_cv_as != x
; then
25396 $as_echo '.text' > conftest.s
25397 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25404 gcc_cv_as_mmacosx_version_min
=yes
25406 echo "configure: failed program was" >&5
25409 rm -f conftest.o conftest.s
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25413 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25414 if test $gcc_cv_as_mmacosx_version_min = yes; then
25416 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25423 # Target CPU-specific assembler checks.
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25428 $as_echo_n "checking assembler for -mabi option... " >&6; }
25429 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25430 $as_echo_n "(cached) " >&6
25432 gcc_cv_as_aarch64_mabi
=no
25433 if test x
$gcc_cv_as != x
; then
25434 $as_echo '.text' > conftest.s
25435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25442 gcc_cv_as_aarch64_mabi
=yes
25444 echo "configure: failed program was" >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25451 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25454 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25456 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25459 if test x
$with_abi = xilp32
; then
25460 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25461 Upgrade the Assembler." "$LINENO" 5
25463 if test x
"$with_multilib_list" = xdefault
; then
25464 TM_MULTILIB_CONFIG
=lp64
25466 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25467 for aarch64_multilib
in ${aarch64_multilibs}; do
25468 case ${aarch64_multilib} in
25470 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25471 Upgrade the Assembler." "$LINENO" 5
25479 # Check if we have binutils support for relocations types needed by -fpic
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25481 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25482 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25483 $as_echo_n "(cached) " >&6
25485 gcc_cv_as_aarch64_picreloc
=no
25486 if test x
$gcc_cv_as != x
; then
25489 ldr x0, [x2, #:gotpage_lo15:globalsym]
25491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25498 gcc_cv_as_aarch64_picreloc
=yes
25500 echo "configure: failed program was" >&5
25503 rm -f conftest.o conftest.s
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25507 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25508 if test $gcc_cv_as_aarch64_picreloc = yes; then
25510 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25514 # Enable Branch Target Identification Mechanism and Return Address
25515 # Signing by default.
25516 # Check whether --enable-standard-branch-protection was given.
25517 if test "${enable_standard_branch_protection+set}" = set; then :
25518 enableval
=$enable_standard_branch_protection;
25521 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25526 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25527 Valid choices are 'yes' and 'no'." "$LINENO" 5
25533 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25534 # Check whether --enable-fix-cortex-a53-835769 was given.
25535 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25536 enableval
=$enable_fix_cortex_a53_835769;
25539 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25544 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25545 Valid choices are 'yes' and 'no'." "$LINENO" 5
25552 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25553 # Check whether --enable-fix-cortex-a53-843419 was given.
25554 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25555 enableval
=$enable_fix_cortex_a53_843419;
25558 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25563 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25564 Valid choices are 'yes' and 'no'." "$LINENO" 5
25573 # All TARGET_ABI_OSF targets.
25574 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25576 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25577 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25578 $as_echo_n "(cached) " >&6
25580 gcc_cv_as_alpha_explicit_relocs
=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25583 then gcc_cv_as_alpha_explicit_relocs
=yes
25585 elif test x
$gcc_cv_as != x
; then
25586 $as_echo ' .set nomacro
25588 extbl $3, $2, $3 !lituse_bytoff!1
25589 ldq $2, a($29) !literal!1
25590 ldq $4, b($29) !literal!2
25591 ldq_u $3, 0($2) !lituse_base!1
25592 ldq $27, f($29) !literal!5
25593 jsr $26, ($27), f !lituse_jsr!5
25594 ldah $29, 0($26) !gpdisp!3
25595 lda $0, c($29) !gprel
25596 ldah $1, d($29) !gprelhigh
25597 lda $1, d($1) !gprellow
25598 lda $29, 0($29) !gpdisp!3' > conftest.s
25599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25601 (eval $ac_try) 2>&5
25603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25604 test $ac_status = 0; }; }
25606 gcc_cv_as_alpha_explicit_relocs
=yes
25608 echo "configure: failed program was" >&5
25611 rm -f conftest.o conftest.s
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25615 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25616 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25618 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25623 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25624 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25625 $as_echo_n "(cached) " >&6
25627 gcc_cv_as_alpha_jsrdirect_relocs
=no
25628 if test $in_tree_gas = yes; then
25629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25630 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25632 elif test x
$gcc_cv_as != x
; then
25633 $as_echo ' .set nomacro
25635 ldq $27, a($29) !literal!1
25636 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25644 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25646 echo "configure: failed program was" >&5
25649 rm -f conftest.o conftest.s
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25653 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25654 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25656 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25664 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25665 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25666 $as_echo_n "(cached) " >&6
25668 gcc_cv_as_avr_mlink_relax
=no
25669 if test x
$gcc_cv_as != x
; then
25670 $as_echo '.text' > conftest.s
25671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25673 (eval $ac_try) 2>&5
25675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25676 test $ac_status = 0; }; }
25678 gcc_cv_as_avr_mlink_relax
=yes
25680 echo "configure: failed program was" >&5
25683 rm -f conftest.o conftest.s
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25687 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25688 if test $gcc_cv_as_avr_mlink_relax = yes; then
25690 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25696 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25697 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25698 $as_echo_n "(cached) " >&6
25700 gcc_cv_as_avr_mrmw
=no
25701 if test x
$gcc_cv_as != x
; then
25702 $as_echo '.text' > conftest.s
25703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25710 gcc_cv_as_avr_mrmw
=yes
25712 echo "configure: failed program was" >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25719 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25720 if test $gcc_cv_as_avr_mrmw = yes; then
25722 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25728 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25729 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25730 $as_echo_n "(cached) " >&6
25732 gcc_cv_as_avr_mgccisr
=no
25733 if test x
$gcc_cv_as != x
; then
25739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25746 gcc_cv_as_avr_mgccisr
=yes
25748 echo "configure: failed program was" >&5
25751 rm -f conftest.o conftest.s
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25755 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25756 if test $gcc_cv_as_avr_mgccisr = yes; then
25758 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25763 # Check how default linker description file implements .rodata for
25764 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25765 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25767 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25768 cat > conftest.s
<<EOF
25769 .section .rodata,"a",@progbits
25771 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25776 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
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; }; }
25794 if test -s conftest.nm
25796 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25798 $as_echo "yes" >&6; }
25800 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25804 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25805 echo "$as_me: nm output was" >&5
25806 cat conftest.nm
>&5
25807 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25808 { $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
25809 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25813 $as_echo "test failed" >&6; }
25814 echo "$as_me: failed program was" >&5
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25817 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25819 rm -f conftest.s conftest.o conftest.elf conftest.nm
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25824 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25825 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_cris_no_mul_bug
=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25831 then gcc_cv_as_cris_no_mul_bug
=yes
25833 elif test x
$gcc_cv_as != x
; then
25834 $as_echo '.text' > conftest.s
25835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25842 gcc_cv_as_cris_no_mul_bug
=yes
25844 echo "configure: failed program was" >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25851 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25852 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25854 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25862 $as_echo_n "checking assembler for -relax option... " >&6; }
25863 if ${gcc_cv_as_sparc_relax+:} false
; then :
25864 $as_echo_n "(cached) " >&6
25866 gcc_cv_as_sparc_relax
=no
25867 if test x
$gcc_cv_as != x
; then
25868 $as_echo '.text' > conftest.s
25869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25876 gcc_cv_as_sparc_relax
=yes
25878 echo "configure: failed program was" >&5
25881 rm -f conftest.o conftest.s
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25885 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25886 if test $gcc_cv_as_sparc_relax = yes; then
25888 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25894 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25895 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25896 $as_echo_n "(cached) " >&6
25898 gcc_cv_as_sparc_gotdata_op
=no
25899 if test x
$gcc_cv_as != x
; then
25905 sethi %gdop_hix22(foo), %g1
25906 xor %g1, %gdop_lox10(foo), %g1
25907 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25915 if test x
$gcc_cv_ld != x \
25916 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25917 if test x
$gcc_cv_objdump != x
; then
25918 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25919 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25920 gcc_cv_as_sparc_gotdata_op
=no
25922 gcc_cv_as_sparc_gotdata_op
=yes
25928 echo "configure: failed program was" >&5
25931 rm -f conftest.o conftest.s
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25935 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25936 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25938 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25944 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25945 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25946 $as_echo_n "(cached) " >&6
25948 gcc_cv_as_sparc_ua_pcrel
=no
25949 if test x
$gcc_cv_as != x
; then
25956 .uaword %r_disp32(foo)' > conftest.s
25957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25964 if test x
$gcc_cv_ld != x \
25965 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25966 gcc_cv_as_sparc_ua_pcrel
=yes
25970 echo "configure: failed program was" >&5
25973 rm -f conftest.o conftest.s
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25977 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25978 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25980 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25984 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25985 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25986 $as_echo_n "(cached) " >&6
25988 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25989 if test x
$gcc_cv_as != x
; then
25993 .uaword %r_disp32(foo)
25994 .byte 0x32, 0x33, 0x34
25998 .skip 4' > conftest.s
25999 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26006 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26007 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26008 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26009 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26010 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26011 |
grep 'DISP32' > /dev
/null
2>&1; then
26014 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26019 echo "configure: failed program was" >&5
26022 rm -f conftest.o conftest.s
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26026 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26027 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26029 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26035 # unaligned pcrel relocs
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26038 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26039 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26040 $as_echo_n "(cached) " >&6
26042 gcc_cv_as_sparc_offsetable_lo10
=no
26043 if test x
$gcc_cv_as != x
; then
26045 or %g1, %lo(ab) + 12, %g1
26046 or %g1, %lo(ab + 12), %g1' > conftest.s
26047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26049 (eval $ac_try) 2>&5
26051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052 test $ac_status = 0; }; }
26054 if test x
$gcc_cv_objdump != x \
26055 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26056 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26057 gcc_cv_as_sparc_offsetable_lo10
=yes
26060 echo "configure: failed program was" >&5
26063 rm -f conftest.o conftest.s
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26067 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26068 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26070 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26076 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26077 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26078 $as_echo_n "(cached) " >&6
26080 gcc_cv_as_sparc_fmaf
=no
26081 if test x
$gcc_cv_as != x
; then
26083 .register %g2, #scratch
26084 .register %g3, #scratch
26086 fmaddd %f0, %f2, %f4, %f6
26087 addxccc %g1, %g2, %g3
26088 fsrl32 %f2, %f4, %f8
26089 fnaddd %f10, %f12, %f14' > conftest.s
26090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26092 (eval $ac_try) 2>&5
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; }
26097 gcc_cv_as_sparc_fmaf
=yes
26099 echo "configure: failed program was" >&5
26102 rm -f conftest.o conftest.s
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26106 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26107 if test $gcc_cv_as_sparc_fmaf = yes; then
26109 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26115 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26116 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26117 $as_echo_n "(cached) " >&6
26119 gcc_cv_as_sparc_sparc4
=no
26120 if test x
$gcc_cv_as != x
; then
26122 .register %g2, #scratch
26123 .register %g3, #scratch
26126 1: cwbneg %g2, %g3, 1f
26129 aes_kexpand0 %f4, %f6, %f8
26130 des_round %f38, %f40, %f42, %f44
26131 camellia_f %f54, %f56, %f58, %f60
26132 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26140 gcc_cv_as_sparc_sparc4
=yes
26142 echo "configure: failed program was" >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26149 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26150 if test $gcc_cv_as_sparc_sparc4 = yes; then
26152 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26158 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26159 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26160 $as_echo_n "(cached) " >&6
26162 gcc_cv_as_sparc_sparc5
=no
26163 if test x
$gcc_cv_as != x
; then
26165 .register %g2, #scratch
26166 .register %g3, #scratch
26168 subxc %g1, %g2, %g3
26169 fpadd8 %f0, %f2, %f4' > conftest.s
26170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26172 (eval $ac_try) 2>&5
26174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; }
26177 gcc_cv_as_sparc_sparc5
=yes
26179 echo "configure: failed program was" >&5
26182 rm -f conftest.o conftest.s
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26186 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26187 if test $gcc_cv_as_sparc_sparc5 = yes; then
26189 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26195 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26196 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26197 $as_echo_n "(cached) " >&6
26199 gcc_cv_as_sparc_sparc6
=no
26200 if test x
$gcc_cv_as != x
; then
26202 .register %g2, #scratch
26203 .register %g3, #scratch
26206 fpsll64x %f0, %f2, %f4' > conftest.s
26207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26214 gcc_cv_as_sparc_sparc6
=yes
26216 echo "configure: failed program was" >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26223 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26224 if test $gcc_cv_as_sparc_sparc6 = yes; then
26226 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26232 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26233 if ${gcc_cv_as_sparc_leon+:} false
; then :
26234 $as_echo_n "(cached) " >&6
26236 gcc_cv_as_sparc_leon
=no
26237 if test x
$gcc_cv_as != x
; then
26239 .register %g2, #scratch
26240 .register %g3, #scratch
26244 casa [%g2] 0xb, %g3, %g1' > conftest.s
26245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26247 (eval $ac_try) 2>&5
26249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250 test $ac_status = 0; }; }
26252 gcc_cv_as_sparc_leon
=yes
26254 echo "configure: failed program was" >&5
26257 rm -f conftest.o conftest.s
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26261 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26262 if test $gcc_cv_as_sparc_leon = yes; then
26264 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26270 i
[34567]86-*-* | x86_64-
*-*)
26273 # Full C++ conformance when using a shared libstdc++-v3 requires some
26274 # support from the Cygwin DLL, which in more recent versions exports
26275 # wrappers to aid in interposing and redirecting operators new, delete,
26276 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26277 # are configuring for a version of Cygwin that exports the wrappers.
26278 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26279 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26280 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26281 gcc_ac_cygwin_dll_wrappers
=yes
26283 gcc_ac_cygwin_dll_wrappers
=no
26287 # Can't check presence of libc functions during cross-compile, so
26288 # we just have to assume we're building for an up-to-date target.
26289 gcc_ac_cygwin_dll_wrappers
=yes
26292 cat >>confdefs.h
<<_ACEOF
26293 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26298 cygwin
* | pe | mingw32
*)
26299 # Recent binutils allows the three-operand form of ".comm" on PE. This
26300 # definition is used unconditionally to initialise the default state of
26301 # the target option variable that governs usage of the feature.
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26303 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26304 if ${gcc_cv_as_comm_has_align+:} false
; then :
26305 $as_echo_n "(cached) " >&6
26307 gcc_cv_as_comm_has_align
=no
26308 if test $in_tree_gas = yes; then
26309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26310 then gcc_cv_as_comm_has_align
=yes
26312 elif test x
$gcc_cv_as != x
; then
26313 $as_echo '.comm foo,1,32' > conftest.s
26314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26316 (eval $ac_try) 2>&5
26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; }
26321 gcc_cv_as_comm_has_align
=yes
26323 echo "configure: failed program was" >&5
26326 rm -f conftest.o conftest.s
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26330 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26334 cat >>confdefs.h
<<_ACEOF
26335 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26338 # Used for DWARF 2 in PE
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26340 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26341 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26342 $as_echo_n "(cached) " >&6
26344 gcc_cv_as_ix86_pe_secrel32
=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26347 then gcc_cv_as_ix86_pe_secrel32
=yes
26349 elif test x
$gcc_cv_as != x
; then
26353 .secrel32 foo' > conftest.s
26354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26361 if test x
$gcc_cv_ld != x \
26362 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26363 gcc_cv_as_ix86_pe_secrel32
=yes
26367 echo "configure: failed program was" >&5
26370 rm -f conftest.o conftest.s
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26374 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26375 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26377 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26381 # Test if the assembler supports the extended form of the .section
26382 # directive that specifies section alignment. LTO support uses this,
26383 # but normally only after installation, so we warn but don't fail the
26384 # configure if LTO is enabled but the assembler does not support it.
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26386 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26387 if ${gcc_cv_as_section_has_align+:} false
; then :
26388 $as_echo_n "(cached) " >&6
26390 gcc_cv_as_section_has_align
=no
26391 if test $in_tree_gas = yes; then
26392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26393 then gcc_cv_as_section_has_align
=yes
26395 elif test x
$gcc_cv_as != x
; then
26396 $as_echo '.section lto_test,"dr0"' > conftest.s
26397 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26399 (eval $ac_try) 2>&5
26401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26402 test $ac_status = 0; }; }
26404 gcc_cv_as_section_has_align
=yes
26406 echo "configure: failed program was" >&5
26409 rm -f conftest.o conftest.s
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26413 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26416 if test x
$gcc_cv_as_section_has_align != xyes
; then
26417 case ",$enable_languages," in
26419 { $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
26420 $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;}
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26428 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26429 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26430 $as_echo_n "(cached) " >&6
26432 gcc_cv_as_ix86_xbrace_comment
=no
26433 if test x
$gcc_cv_as != x
; then
26434 $as_echo '.text' > conftest.s
26435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26442 gcc_cv_as_ix86_xbrace_comment
=yes
26444 echo "configure: failed program was" >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26451 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26452 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26454 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26460 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26461 if ${gcc_cv_as_ix86_filds+:} false
; then :
26462 $as_echo_n "(cached) " >&6
26464 gcc_cv_as_ix86_filds
=no
26465 if test x
$gcc_cv_as != x
; then
26466 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26474 gcc_cv_as_ix86_filds
=yes
26476 echo "configure: failed program was" >&5
26479 rm -f conftest.o conftest.s
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26483 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26484 if test $gcc_cv_as_ix86_filds = yes; then
26486 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26492 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26493 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26494 $as_echo_n "(cached) " >&6
26496 gcc_cv_as_ix86_fildq
=no
26497 if test x
$gcc_cv_as != x
; then
26498 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26501 (eval $ac_try) 2>&5
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; }
26506 gcc_cv_as_ix86_fildq
=yes
26508 echo "configure: failed program was" >&5
26511 rm -f conftest.o conftest.s
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26515 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26516 if test $gcc_cv_as_ix86_fildq = yes; then
26518 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26524 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26525 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26526 $as_echo_n "(cached) " >&6
26528 gcc_cv_as_ix86_cmov_sun_syntax
=no
26529 if test x
$gcc_cv_as != x
; then
26530 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; }
26538 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26540 echo "configure: failed program was" >&5
26543 rm -f conftest.o conftest.s
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26547 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26548 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26550 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26556 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26557 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26558 $as_echo_n "(cached) " >&6
26560 gcc_cv_as_ix86_ffreep
=no
26561 if test x
$gcc_cv_as != x
; then
26562 $as_echo 'ffreep %st(1)' > conftest.s
26563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26570 gcc_cv_as_ix86_ffreep
=yes
26572 echo "configure: failed program was" >&5
26575 rm -f conftest.o conftest.s
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26579 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26580 if test $gcc_cv_as_ix86_ffreep = yes; then
26582 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26588 $as_echo_n "checking assembler for .quad directive... " >&6; }
26589 if ${gcc_cv_as_ix86_quad+:} false
; then :
26590 $as_echo_n "(cached) " >&6
26592 gcc_cv_as_ix86_quad
=no
26593 if test x
$gcc_cv_as != x
; then
26594 $as_echo '.quad 0' > conftest.s
26595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26597 (eval $ac_try) 2>&5
26599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }; }
26602 gcc_cv_as_ix86_quad
=yes
26604 echo "configure: failed program was" >&5
26607 rm -f conftest.o conftest.s
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26611 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26612 if test $gcc_cv_as_ix86_quad = yes; then
26614 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26620 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26621 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26622 $as_echo_n "(cached) " >&6
26624 gcc_cv_as_ix86_sahf
=no
26625 if test x
$gcc_cv_as != x
; then
26628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; }
26635 gcc_cv_as_ix86_sahf
=yes
26637 echo "configure: failed program was" >&5
26640 rm -f conftest.o conftest.s
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26644 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26645 if test $gcc_cv_as_ix86_sahf = yes; then
26647 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26653 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26654 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26655 $as_echo_n "(cached) " >&6
26657 gcc_cv_as_ix86_interunit_movq
=no
26658 if test x
$gcc_cv_as != x
; then
26661 movq %rax, %xmm0' > conftest.s
26662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26664 (eval $ac_try) 2>&5
26666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26667 test $ac_status = 0; }; }
26669 gcc_cv_as_ix86_interunit_movq
=yes
26671 echo "configure: failed program was" >&5
26674 rm -f conftest.o conftest.s
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26678 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26682 cat >>confdefs.h
<<_ACEOF
26683 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26688 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26689 if ${gcc_cv_as_ix86_hle+:} false
; then :
26690 $as_echo_n "(cached) " >&6
26692 gcc_cv_as_ix86_hle
=no
26693 if test x
$gcc_cv_as != x
; then
26694 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26697 (eval $ac_try) 2>&5
26699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26700 test $ac_status = 0; }; }
26702 gcc_cv_as_ix86_hle
=yes
26704 echo "configure: failed program was" >&5
26707 rm -f conftest.o conftest.s
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26711 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26712 if test $gcc_cv_as_ix86_hle = yes; then
26714 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26720 $as_echo_n "checking assembler for swap suffix... " >&6; }
26721 if ${gcc_cv_as_ix86_swap+:} false
; then :
26722 $as_echo_n "(cached) " >&6
26724 gcc_cv_as_ix86_swap
=no
26725 if test x
$gcc_cv_as != x
; then
26726 $as_echo 'movl.s %esp, %ebp' > conftest.s
26727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26734 gcc_cv_as_ix86_swap
=yes
26736 echo "configure: failed program was" >&5
26739 rm -f conftest.o conftest.s
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26743 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26744 if test $gcc_cv_as_ix86_swap = yes; then
26746 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26752 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26753 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26754 $as_echo_n "(cached) " >&6
26756 gcc_cv_as_ix86_diff_sect_delta
=no
26757 if test x
$gcc_cv_as != x
; then
26758 $as_echo '.section .rodata
26764 .L2: nop' > conftest.s
26765 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26767 (eval $ac_try) 2>&5
26769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26770 test $ac_status = 0; }; }
26772 gcc_cv_as_ix86_diff_sect_delta
=yes
26774 echo "configure: failed program was" >&5
26777 rm -f conftest.o conftest.s
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26781 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26782 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26784 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26790 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26791 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26792 $as_echo_n "(cached) " >&6
26794 gcc_cv_as_ix86_rep_lock_prefix
=no
26795 if test x
$gcc_cv_as != x
; then
26796 $as_echo 'rep movsl
26801 lock addl %edi, (%eax,%esi)
26802 lock orl $0, (%esp)' > conftest.s
26803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26805 (eval $ac_try) 2>&5
26807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26808 test $ac_status = 0; }; }
26810 gcc_cv_as_ix86_rep_lock_prefix
=yes
26812 echo "configure: failed program was" >&5
26815 rm -f conftest.o conftest.s
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26819 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26820 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26822 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26828 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26829 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26830 $as_echo_n "(cached) " >&6
26832 gcc_cv_as_ix86_ud2
=no
26833 if test x
$gcc_cv_as != x
; then
26834 $as_echo 'ud2' > conftest.s
26835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26837 (eval $ac_try) 2>&5
26839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26840 test $ac_status = 0; }; }
26842 gcc_cv_as_ix86_ud2
=yes
26844 echo "configure: failed program was" >&5
26847 rm -f conftest.o conftest.s
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26851 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26852 if test $gcc_cv_as_ix86_ud2 = yes; then
26854 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26859 # Enforce 32-bit output with gas and gld.
26860 if test x
$gas = xyes
; then
26861 as_ix86_gas_32_opt
="--32"
26863 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26864 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26865 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26867 ld_ix86_gld_32_opt
="-melf_i386"
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26872 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26873 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26874 $as_echo_n "(cached) " >&6
26876 gcc_cv_as_ix86_tlsgdplt
=no
26877 if test x
$gcc_cv_as != x
; then
26878 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26886 if test x
$gcc_cv_ld != x \
26887 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26888 gcc_cv_as_ix86_tlsgdplt
=yes
26892 echo "configure: failed program was" >&5
26895 rm -f conftest.o conftest.s
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26899 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26900 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26902 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26908 .section .tdata,"aw'$tls_section_flag'",@progbits
26910 .section .text,"ax",@progbits
26911 call tls_ld@tlsldmplt'
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26914 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26915 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26916 $as_echo_n "(cached) " >&6
26918 gcc_cv_as_ix86_tlsldmplt
=no
26919 if test x
$gcc_cv_as != x
; then
26920 $as_echo "$conftest_s" > conftest.s
26921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26928 if test x
$gcc_cv_ld != x \
26929 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26930 gcc_cv_as_ix86_tlsldmplt
=yes
26934 echo "configure: failed program was" >&5
26937 rm -f conftest.o conftest.s
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26941 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26945 cat >>confdefs.h
<<_ACEOF
26946 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26951 .section .text,"ax",@progbits
26953 .type _start, @function
26955 leal value@tlsldm(%ebx), %eax
26956 call ___tls_get_addr@plt
26958 .section .tdata,"aw'$tls_section_flag'",@progbits
26959 .type value, @object
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26962 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26963 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26964 $as_echo_n "(cached) " >&6
26966 gcc_cv_as_ix86_tlsldm
=no
26967 if test x
$gcc_cv_as != x
; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26976 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26977 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26978 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26979 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26980 gcc_cv_as_ix86_tlsldm
=yes
26985 echo "configure: failed program was" >&5
26988 rm -f conftest.o conftest.s
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26992 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26996 cat >>confdefs.h
<<_ACEOF
26997 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27011 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27012 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27013 $as_echo_n "(cached) " >&6
27015 gcc_cv_as_ix86_got32x
=no
27016 if test x
$gcc_cv_as != x
; then
27017 $as_echo "$conftest_s" > conftest.s
27018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27020 (eval $ac_try) 2>&5
27022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27023 test $ac_status = 0; }; }
27025 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27026 && test x
$gcc_cv_readelf != x \
27027 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27028 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27029 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27030 if $gcc_cv_objdump -dw conftest
2>&1 \
27031 |
grep 0xffffff > /dev
/null
2>&1; then
27032 gcc_cv_as_ix86_got32x
=no
27034 gcc_cv_as_ix86_got32x
=yes
27039 echo "configure: failed program was" >&5
27042 rm -f conftest.o conftest.s
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27046 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27050 cat >>confdefs.h
<<_ACEOF
27051 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27056 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27057 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27058 $as_echo_n "(cached) " >&6
27060 gcc_cv_as_ix86_gotoff_in_data
=no
27061 if test $in_tree_gas = yes; then
27062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27063 then gcc_cv_as_ix86_gotoff_in_data
=yes
27065 elif test x
$gcc_cv_as != x
; then
27070 .long .L0@GOTOFF' > conftest.s
27071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; }
27078 gcc_cv_as_ix86_gotoff_in_data
=yes
27080 echo "configure: failed program was" >&5
27083 rm -f conftest.o conftest.s
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27087 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27091 cat >>confdefs.h
<<_ACEOF
27092 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27097 .section .text,"ax",@progbits
27099 .type _start, @function
27101 leal ld@tlsldm(%ecx), %eax
27102 call *___tls_get_addr@GOT(%ecx)
27103 leal gd@tlsgd(%ecx), %eax
27104 call *___tls_get_addr@GOT(%ecx)
27106 .section .tdata,"aw'$tls_section_flag'",@progbits
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27115 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27116 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27117 $as_echo_n "(cached) " >&6
27119 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27120 if test x
$gcc_cv_as != x
; then
27121 $as_echo "$conftest_s" > conftest.s
27122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }
27129 if test x
$gcc_cv_ld != x \
27130 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27131 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27135 echo "configure: failed program was" >&5
27138 rm -f conftest.o conftest.s
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27142 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27146 cat >>confdefs.h
<<_ACEOF
27147 #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`
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27154 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27155 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27156 $as_echo_n "(cached) " >&6
27158 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27159 if test $in_tree_gas = yes; then
27160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27161 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27163 elif test x
$gcc_cv_as != x
; then
27165 addl r15 = @ltoffx(x#), gp
27167 ld8.mov r16 = [r15], x#
27169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27176 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27178 echo "configure: failed program was" >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27185 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27186 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27188 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27200 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27201 if ${gcc_cv_as_machine_directive+:} false
; then :
27202 $as_echo_n "(cached) " >&6
27204 gcc_cv_as_machine_directive
=no
27205 if test x
$gcc_cv_as != x
; then
27206 $as_echo ' .machine ppc7400' > conftest.s
27207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27209 (eval $ac_try) 2>&5
27211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27212 test $ac_status = 0; }; }
27214 gcc_cv_as_machine_directive
=yes
27216 echo "configure: failed program was" >&5
27219 rm -f conftest.o conftest.s
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27223 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27226 if test x
$gcc_cv_as_machine_directive != xyes
; then
27227 echo "*** This target requires an assembler supporting \".machine\"" >&2
27228 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27229 test x
$build = x
$target && exit 1
27235 *-*-aix*) conftest_s
=' .machine "pwr5"
27238 *-*-darwin*) conftest_s
=' .text
27240 *) conftest_s
=' .machine power4
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27246 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27247 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27248 $as_echo_n "(cached) " >&6
27250 gcc_cv_as_powerpc_mfcrf
=no
27251 if test $in_tree_gas = yes; then
27252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27253 then gcc_cv_as_powerpc_mfcrf
=yes
27255 elif test x
$gcc_cv_as != x
; then
27256 $as_echo "$conftest_s" > conftest.s
27257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27259 (eval $ac_try) 2>&5
27261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27262 test $ac_status = 0; }; }
27264 gcc_cv_as_powerpc_mfcrf
=yes
27266 echo "configure: failed program was" >&5
27269 rm -f conftest.o conftest.s
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27273 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27274 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27276 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27282 *-*-aix*) conftest_s
=' .csect .text[PR]
27284 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27288 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27289 *) conftest_s
=' .text
27291 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27295 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27296 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27297 $as_echo_n "(cached) " >&6
27299 gcc_cv_as_powerpc_rel16
=no
27300 if test $in_tree_gas = yes; then
27301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27302 then gcc_cv_as_powerpc_rel16
=yes
27304 elif test x
$gcc_cv_as != x
; then
27305 $as_echo "$conftest_s" > conftest.s
27306 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27308 (eval $ac_try) 2>&5
27310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27311 test $ac_status = 0; }; }
27313 gcc_cv_as_powerpc_rel16
=yes
27315 echo "configure: failed program was" >&5
27318 rm -f conftest.o conftest.s
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27322 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27323 if test $gcc_cv_as_powerpc_rel16 = yes; then
27325 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27331 *-*-aix*) conftest_s
=' .machine "pwr7"
27334 *) conftest_s
=' .machine power7
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27340 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27341 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27342 $as_echo_n "(cached) " >&6
27344 gcc_cv_as_powerpc_vsx
=no
27345 if test $in_tree_gas = yes; then
27346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27347 then gcc_cv_as_powerpc_vsx
=yes
27349 elif test x
$gcc_cv_as != x
; then
27350 $as_echo "$conftest_s" > conftest.s
27351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27358 gcc_cv_as_powerpc_vsx
=yes
27360 echo "configure: failed program was" >&5
27363 rm -f conftest.o conftest.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27367 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27368 if test $gcc_cv_as_powerpc_vsx = yes; then
27370 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27376 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27377 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27378 $as_echo_n "(cached) " >&6
27380 gcc_cv_as_powerpc_gnu_attribute
=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27383 then gcc_cv_as_powerpc_gnu_attribute
=yes
27385 elif test x
$gcc_cv_as != x
; then
27386 $as_echo '.gnu_attribute 4,1' > conftest.s
27387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27389 (eval $ac_try) 2>&5
27391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27392 test $ac_status = 0; }; }
27394 gcc_cv_as_powerpc_gnu_attribute
=yes
27396 echo "configure: failed program was" >&5
27399 rm -f conftest.o conftest.s
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27403 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27404 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27406 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27412 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27413 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27414 $as_echo_n "(cached) " >&6
27416 gcc_cv_as_powerpc_entry_markers
=no
27417 if test $in_tree_gas = yes; then
27418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27419 then gcc_cv_as_powerpc_entry_markers
=yes
27421 elif test x
$gcc_cv_as != x
; then
27422 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27430 gcc_cv_as_powerpc_entry_markers
=yes
27432 echo "configure: failed program was" >&5
27435 rm -f conftest.o conftest.s
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27439 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27440 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27442 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27448 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27449 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27450 $as_echo_n "(cached) " >&6
27452 gcc_cv_as_powerpc_pltseq_markers
=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27455 then gcc_cv_as_powerpc_pltseq_markers
=yes
27457 elif test x
$gcc_cv_as != x
; then
27458 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27461 (eval $ac_try) 2>&5
27463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27464 test $ac_status = 0; }; }
27466 gcc_cv_as_powerpc_pltseq_markers
=yes
27468 echo "configure: failed program was" >&5
27471 rm -f conftest.o conftest.s
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27475 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27476 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27478 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27486 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27487 if ${gcc_cv_as_aix_ref+:} false
; then :
27488 $as_echo_n "(cached) " >&6
27490 gcc_cv_as_aix_ref
=no
27491 if test $in_tree_gas = yes; then
27492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27493 then gcc_cv_as_aix_ref
=yes
27495 elif test x
$gcc_cv_as != x
; then
27496 $as_echo ' .csect stuff[rw]
27502 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27504 (eval $ac_try) 2>&5
27506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27507 test $ac_status = 0; }; }
27509 gcc_cv_as_aix_ref
=yes
27511 echo "configure: failed program was" >&5
27514 rm -f conftest.o conftest.s
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27518 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27519 if test $gcc_cv_as_aix_ref = yes; then
27521 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27527 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27528 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27529 $as_echo_n "(cached) " >&6
27531 gcc_cv_as_aix_dwloc
=no
27532 if test $in_tree_gas = yes; then
27533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27534 then gcc_cv_as_aix_dwloc
=yes
27536 elif test x
$gcc_cv_as != x
; then
27537 $as_echo ' .dwsect 0xA0000
27541 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27543 (eval $ac_try) 2>&5
27545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27546 test $ac_status = 0; }; }
27548 gcc_cv_as_aix_dwloc
=yes
27550 echo "configure: failed program was" >&5
27553 rm -f conftest.o conftest.s
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27557 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27558 if test $gcc_cv_as_aix_dwloc = yes; then
27560 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27570 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27571 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27572 $as_echo_n "(cached) " >&6
27574 gcc_cv_as_mips_explicit_relocs
=no
27575 if test $in_tree_gas = yes; then
27576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27577 then gcc_cv_as_mips_explicit_relocs
=yes
27579 elif test x
$gcc_cv_as != x
; then
27580 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27588 gcc_cv_as_mips_explicit_relocs
=yes
27590 echo "configure: failed program was" >&5
27593 rm -f conftest.o conftest.s
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27597 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27598 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27599 if test x
$target_cpu_default = x
27600 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27601 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27607 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27608 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27609 $as_echo_n "(cached) " >&6
27611 gcc_cv_as_mips_no_shared
=no
27612 if test $in_tree_gas = yes; then
27613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27614 then gcc_cv_as_mips_no_shared
=yes
27616 elif test x
$gcc_cv_as != x
; then
27617 $as_echo 'nop' > conftest.s
27618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27620 (eval $ac_try) 2>&5
27622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623 test $ac_status = 0; }; }
27625 gcc_cv_as_mips_no_shared
=yes
27627 echo "configure: failed program was" >&5
27630 rm -f conftest.o conftest.s
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27634 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27635 if test $gcc_cv_as_mips_no_shared = yes; then
27637 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27643 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27644 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27645 $as_echo_n "(cached) " >&6
27647 gcc_cv_as_mips_gnu_attribute
=no
27648 if test $in_tree_gas = yes; then
27649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27650 then gcc_cv_as_mips_gnu_attribute
=yes
27652 elif test x
$gcc_cv_as != x
; then
27653 $as_echo '.gnu_attribute 4,1' > conftest.s
27654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27656 (eval $ac_try) 2>&5
27658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27659 test $ac_status = 0; }; }
27661 gcc_cv_as_mips_gnu_attribute
=yes
27663 echo "configure: failed program was" >&5
27666 rm -f conftest.o conftest.s
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27670 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27671 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27673 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27679 $as_echo_n "checking assembler for .module support... " >&6; }
27680 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27681 $as_echo_n "(cached) " >&6
27683 gcc_cv_as_mips_dot_module
=no
27684 if test x
$gcc_cv_as != x
; then
27685 $as_echo '.module mips2
27686 .module fp=xx' > conftest.s
27687 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27689 (eval $ac_try) 2>&5
27691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27692 test $ac_status = 0; }; }
27694 gcc_cv_as_mips_dot_module
=yes
27696 echo "configure: failed program was" >&5
27699 rm -f conftest.o conftest.s
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27703 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27704 if test $gcc_cv_as_mips_dot_module = yes; then
27706 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27710 if test x
$gcc_cv_as_mips_dot_module = xno \
27711 && test x
$with_fp_32 != x
; then
27712 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27716 $as_echo_n "checking assembler for .micromips support... " >&6; }
27717 if ${gcc_cv_as_micromips_support+:} false
; then :
27718 $as_echo_n "(cached) " >&6
27720 gcc_cv_as_micromips_support
=no
27721 if test x
$gcc_cv_as != x
; then
27722 $as_echo '.set micromips' > conftest.s
27723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27725 (eval $ac_try) 2>&5
27727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; }
27730 gcc_cv_as_micromips_support
=yes
27732 echo "configure: failed program was" >&5
27735 rm -f conftest.o conftest.s
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27739 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27740 if test $gcc_cv_as_micromips_support = yes; then
27742 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27748 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27749 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27750 $as_echo_n "(cached) " >&6
27752 gcc_cv_as_mips_dtprelword
=no
27753 if test $in_tree_gas = yes; then
27754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27755 then gcc_cv_as_mips_dtprelword
=yes
27757 elif test x
$gcc_cv_as != x
; then
27758 $as_echo '.section .tdata,"awT",@progbits
27762 .dtprelword x+0x8000' > conftest.s
27763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765 (eval $ac_try) 2>&5
27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768 test $ac_status = 0; }; }
27770 gcc_cv_as_mips_dtprelword
=yes
27772 echo "configure: failed program was" >&5
27775 rm -f conftest.o conftest.s
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27779 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27780 if test $gcc_cv_as_mips_dtprelword = yes; then
27782 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27788 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27789 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27790 $as_echo_n "(cached) " >&6
27792 gcc_cv_as_mips_dspr1_mult
=no
27793 if test x
$gcc_cv_as != x
; then
27794 $as_echo ' .set mips32r2
27802 multu $ac3,$4,$5' > conftest.s
27803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805 (eval $ac_try) 2>&5
27807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808 test $ac_status = 0; }; }
27810 gcc_cv_as_mips_dspr1_mult
=yes
27812 echo "configure: failed program was" >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27819 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27820 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27822 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27828 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27829 gcc_cv_as_ld_jalr_reloc
=no
27830 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27831 if test $in_tree_ld = yes ; then
27832 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 \
27833 && test $in_tree_ld_is_elf = yes; then
27834 gcc_cv_as_ld_jalr_reloc
=yes
27836 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27837 echo ' .ent x' > conftest.s
27838 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27839 echo ' lw $25,%call16(y)($28)' >> conftest.s
27840 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27841 echo '1: jalr $25' >> conftest.s
27842 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27843 echo '1: jalr $25' >> conftest.s
27844 echo ' .end x' >> conftest.s
27845 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27846 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27847 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27848 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27849 gcc_cv_as_ld_jalr_reloc
=yes
27855 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27856 if test x
$target_cpu_default = x
; then
27857 target_cpu_default
=MASK_RELAX_PIC_CALLS
27859 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27863 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27866 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27867 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27868 $as_echo_n "(cached) " >&6
27870 gcc_cv_ld_mips_personality_relaxation
=no
27871 if test $in_tree_ld = yes ; then
27872 if test "$gcc_cv_gld_major_version" -eq 2 \
27873 -a "$gcc_cv_gld_minor_version" -ge 21 \
27874 -o "$gcc_cv_gld_major_version" -gt 2; then
27875 gcc_cv_ld_mips_personality_relaxation
=yes
27877 elif test x
$gcc_cv_as != x \
27878 -a x
$gcc_cv_ld != x \
27879 -a x
$gcc_cv_readelf != x
; then
27880 cat > conftest.s
<<EOF
27882 .cfi_personality 0x80,indirect_ptr
27889 .section .data,"aw",@progbits
27893 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27894 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27895 if $gcc_cv_readelf -d conftest
2>&1 \
27896 |
grep TEXTREL
> /dev
/null
2>&1; then
27898 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27899 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27902 gcc_cv_ld_mips_personality_relaxation
=yes
27906 rm -f conftest.s conftest.o conftest
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27909 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27910 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27912 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27917 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27918 if ${gcc_cv_as_mips_nan+:} false
; then :
27919 $as_echo_n "(cached) " >&6
27921 gcc_cv_as_mips_nan
=no
27922 if test x
$gcc_cv_as != x
; then
27923 $as_echo '' > conftest.s
27924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }
27931 gcc_cv_as_mips_nan
=yes
27933 echo "configure: failed program was" >&5
27936 rm -f conftest.o conftest.s
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27940 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27941 if test $gcc_cv_as_mips_nan = yes; then
27943 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27947 if test x
$gcc_cv_as_mips_nan = xno \
27948 && test x
$with_nan != x
; then
27949 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27953 # Earlier GAS versions generically support .gnu_attribute, but the
27954 # msp430 assembler will not do anything with it.
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27956 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27957 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27958 $as_echo_n "(cached) " >&6
27960 gcc_cv_as_msp430_gnu_attribute
=no
27961 if test $in_tree_gas = yes; then
27962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27963 then gcc_cv_as_msp430_gnu_attribute
=yes
27965 elif test x
$gcc_cv_as != x
; then
27966 $as_echo '.gnu_attribute 4,1' > conftest.s
27967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27969 (eval $ac_try) 2>&5
27971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27972 test $ac_status = 0; }; }
27974 gcc_cv_as_msp430_gnu_attribute
=yes
27976 echo "configure: failed program was" >&5
27979 rm -f conftest.o conftest.s
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27983 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27984 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27986 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27991 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27992 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27993 $as_echo_n "(cached) " >&6
27995 gcc_cv_as_msp430_mspabi_attribute
=no
27996 if test $in_tree_gas = yes; then
27997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27998 then gcc_cv_as_msp430_mspabi_attribute
=yes
28000 elif test x
$gcc_cv_as != x
; then
28001 $as_echo '.mspabi_attribute 4,2' > conftest.s
28002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28004 (eval $ac_try) 2>&5
28006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28007 test $ac_status = 0; }; }
28009 gcc_cv_as_msp430_mspabi_attribute
=yes
28011 echo "configure: failed program was" >&5
28014 rm -f conftest.o conftest.s
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28018 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28019 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28021 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28025 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28027 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28032 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28033 # syntax that is documented in the ABI specification.
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28035 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28036 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28037 $as_echo_n "(cached) " >&6
28039 gcc_cv_as_nios2_gotoff_relocation
=no
28040 if test x
$gcc_cv_as != x
; then
28041 $as_echo ' .extern foo
28043 .long %gotoff(foo)' > conftest.s
28044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28046 (eval $ac_try) 2>&5
28048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28049 test $ac_status = 0; }; }
28051 gcc_cv_as_nios2_gotoff_relocation
=yes
28053 echo "configure: failed program was" >&5
28056 rm -f conftest.o conftest.s
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28060 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28061 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28063 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28070 $as_echo_n "checking assembler for .attribute support... " >&6; }
28071 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28072 $as_echo_n "(cached) " >&6
28074 gcc_cv_as_riscv_attribute
=no
28075 if test $in_tree_gas = yes; then
28076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28077 then gcc_cv_as_riscv_attribute
=yes
28079 elif test x
$gcc_cv_as != x
; then
28080 $as_echo '.attribute stack_align,4' > conftest.s
28081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28083 (eval $ac_try) 2>&5
28085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28086 test $ac_status = 0; }; }
28088 gcc_cv_as_riscv_attribute
=yes
28090 echo "configure: failed program was" >&5
28093 rm -f conftest.o conftest.s
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28097 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28098 if test $gcc_cv_as_riscv_attribute = yes; then
28100 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28107 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28108 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28109 $as_echo_n "(cached) " >&6
28111 gcc_cv_as_s390_gnu_attribute
=no
28112 if test $in_tree_gas = yes; then
28113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28114 then gcc_cv_as_s390_gnu_attribute
=yes
28116 elif test x
$gcc_cv_as != x
; then
28117 $as_echo '.gnu_attribute 8,1' > conftest.s
28118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28120 (eval $ac_try) 2>&5
28122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28123 test $ac_status = 0; }; }
28125 gcc_cv_as_s390_gnu_attribute
=yes
28127 echo "configure: failed program was" >&5
28130 rm -f conftest.o conftest.s
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28134 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28135 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28137 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28142 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28143 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28144 $as_echo_n "(cached) " >&6
28146 gcc_cv_as_s390_machine_machinemode
=no
28147 if test $in_tree_gas = yes; then
28148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28149 then gcc_cv_as_s390_machine_machinemode
=yes
28151 elif test x
$gcc_cv_as != x
; then
28152 $as_echo ' .machinemode push
28155 .machine pop' > conftest.s
28156 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28158 (eval $ac_try) 2>&5
28160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28161 test $ac_status = 0; }; }
28163 gcc_cv_as_s390_machine_machinemode
=yes
28165 echo "configure: failed program was" >&5
28168 rm -f conftest.o conftest.s
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28172 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28173 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28175 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28180 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28181 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28182 $as_echo_n "(cached) " >&6
28184 gcc_cv_as_s390_architecture_modifiers
=no
28185 if test $in_tree_gas = yes; then
28186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28187 then gcc_cv_as_s390_architecture_modifiers
=yes
28189 elif test x
$gcc_cv_as != x
; then
28190 $as_echo ' .machine z13+vx ' > conftest.s
28191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28193 (eval $ac_try) 2>&5
28195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28196 test $ac_status = 0; }; }
28198 gcc_cv_as_s390_architecture_modifiers
=yes
28200 echo "configure: failed program was" >&5
28203 rm -f conftest.o conftest.s
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28207 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28208 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28210 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28215 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28216 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28217 $as_echo_n "(cached) " >&6
28219 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28220 if test $in_tree_gas = yes; then
28221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28222 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28224 elif test x
$gcc_cv_as != x
; then
28225 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28226 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28228 (eval $ac_try) 2>&5
28230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28231 test $ac_status = 0; }; }
28233 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28235 echo "configure: failed program was" >&5
28238 rm -f conftest.o conftest.s
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28242 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28243 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28245 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28250 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28251 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28252 $as_echo_n "(cached) " >&6
28254 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28255 if test x
$gcc_cv_as != x
; then
28256 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28259 (eval $ac_try) 2>&5
28261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28262 test $ac_status = 0; }; }
28264 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28266 echo "configure: failed program was" >&5
28269 rm -f conftest.o conftest.s
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28273 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28274 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28276 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28284 # Mips and HP-UX need the GNU assembler.
28285 # Linux on IA64 might be able to use the Intel assembler.
28288 mips
*-*-* |
*-*-hpux* )
28289 if test x
$gas_flag = xyes \
28290 ||
test x
"$host" != x
"$build" \
28291 ||
test ! -x "$gcc_cv_as" \
28292 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28295 echo "*** This configuration requires the GNU assembler" >&2
28301 # ??? Not all targets support dwarf2 debug_line, even within a version
28302 # of gas. Moreover, we need to emit a valid instruction to trigger any
28303 # info to the output file. So, as supported targets are added to gas 2.11,
28304 # add some instruction here to (also) show we expect this might work.
28305 # ??? Once 2.11 is released, probably need to add first known working
28306 # version to the per-target configury.
28307 case "$cpu_type" in
28308 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28309 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28310 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28320 if test x
"$insn" != x
; then
28322 .file 1 \"conftest.s\"
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28326 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28327 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28328 $as_echo_n "(cached) " >&6
28330 gcc_cv_as_dwarf2_debug_line
=no
28331 if test $in_tree_gas = yes; then
28332 if test $in_tree_gas_is_elf = yes \
28333 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28334 then gcc_cv_as_dwarf2_debug_line
=yes
28336 elif test x
$gcc_cv_as != x
; then
28337 $as_echo "$conftest_s" > conftest.s
28338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28340 (eval $ac_try) 2>&5
28342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28343 test $ac_status = 0; }; }
28345 if test x
$gcc_cv_objdump != x \
28346 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28347 |
grep debug_line
> /dev
/null
2>&1; then
28348 gcc_cv_as_dwarf2_debug_line
=yes
28349 elif test x
$gcc_cv_otool != x \
28350 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28351 |
grep debug_line
> /dev
/null
2>&1; then
28352 gcc_cv_as_dwarf2_debug_line
=yes
28355 echo "configure: failed program was" >&5
28358 rm -f conftest.o conftest.s
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28362 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28366 # The .debug_line file table must be in the exact order that
28367 # we specified the files, since these indices are also used
28368 # by DW_AT_decl_file. Approximate this test by testing if
28369 # the assembler bitches if the same index is assigned twice.
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28371 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28372 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28373 $as_echo_n "(cached) " >&6
28375 gcc_cv_as_dwarf2_file_buggy
=no
28376 if test x
$gcc_cv_as != x
; then
28377 $as_echo ' .file 1 "foo.s"
28378 .file 1 "bar.s"' > conftest.s
28379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28386 gcc_cv_as_dwarf2_file_buggy
=yes
28388 echo "configure: failed program was" >&5
28391 rm -f conftest.o conftest.s
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28395 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28399 if test $gcc_cv_as_dwarf2_debug_line = yes \
28400 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28402 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28405 if test $gcc_cv_as_leb128 = yes; then
28407 .file 1 \"conftest.s\"
28408 .loc 1 3 0 view .LVU1
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28415 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28416 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28417 $as_echo_n "(cached) " >&6
28419 gcc_cv_as_dwarf2_debug_view
=no
28420 if test $in_tree_gas = yes; then
28421 if test $in_tree_gas_is_elf = yes \
28422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28423 then gcc_cv_as_dwarf2_debug_view
=yes
28425 elif test x
$gcc_cv_as != x
; then
28426 $as_echo "$conftest_s" > conftest.s
28427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28429 (eval $ac_try) 2>&5
28431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432 test $ac_status = 0; }; }
28434 gcc_cv_as_dwarf2_debug_view
=yes
28436 echo "configure: failed program was" >&5
28439 rm -f conftest.o conftest.s
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28443 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28444 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28446 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28454 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28455 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28456 $as_echo_n "(cached) " >&6
28458 gcc_cv_as_gdwarf2_flag
=no
28459 if test $in_tree_gas = yes; then
28460 if test $in_tree_gas_is_elf = yes \
28461 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28462 then gcc_cv_as_gdwarf2_flag
=yes
28464 elif test x
$gcc_cv_as != x
; then
28465 $as_echo "$insn" > conftest.s
28466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28468 (eval $ac_try) 2>&5
28470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28471 test $ac_status = 0; }; }
28473 gcc_cv_as_gdwarf2_flag
=yes
28475 echo "configure: failed program was" >&5
28478 rm -f conftest.o conftest.s
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28482 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28483 if test $gcc_cv_as_gdwarf2_flag = yes; then
28485 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
28491 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
28492 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
28493 $as_echo_n "(cached) " >&6
28495 gcc_cv_as_gdwarf_5_flag
=no
28496 if test $in_tree_gas = yes; then
28497 if test $in_tree_gas_is_elf = yes \
28498 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28499 then gcc_cv_as_gdwarf_5_flag
=yes
28501 elif test x
$gcc_cv_as != x
; then
28502 $as_echo "$insn" > conftest.s
28503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
28504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28505 (eval $ac_try) 2>&5
28507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28508 test $ac_status = 0; }; }
28510 gcc_cv_as_gdwarf_5_flag
=yes
28512 echo "configure: failed program was" >&5
28515 rm -f conftest.o conftest.s
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
28519 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
28520 if test $gcc_cv_as_gdwarf_5_flag = yes; then
28522 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
28527 dwarf4_debug_info_size
=0x46
28528 dwarf4_high_pc_form
=7
28529 dwarf4_debug_aranges_size
=0x2c
28531 for dwarf4_addr_size
in 8 4; do
28538 .type foo, %function
28547 .section .debug_info,\"\",%progbits
28549 .4byte $dwarf4_debug_info_size
28551 .4byte .Ldebug_abbrev0
28552 .byte 0x$dwarf4_addr_size
28554 .ascii \"GNU C17\\0\"
28558 .${dwarf4_addr_size}byte .Ltext0
28559 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28560 .4byte .Ldebug_line0
28566 .${dwarf4_addr_size}byte .LFB0
28567 .${dwarf4_addr_size}byte .LFE0-.LFB0
28571 .section .debug_abbrev,\"\",%progbits
28587 .byte 0x$dwarf4_high_pc_form
28608 .byte 0x$dwarf4_high_pc_form
28614 .section .debug_aranges,\"\",%progbits
28615 .4byte $dwarf4_debug_aranges_size
28617 .4byte .Ldebug_info0
28622 .${dwarf4_addr_size}byte .Ltext0
28623 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28624 .${dwarf4_addr_size}byte 0
28625 .${dwarf4_addr_size}byte 0
28626 .section .debug_line,\"\",%progbits
28628 .4byte .LELT0-.LSLT0
28631 .4byte .LELTP0-.LASLTP0
28659 .byte 0x$dwarf4_line_sz
28661 .${dwarf4_addr_size}byte .LM1
28666 .byte 0x$dwarf4_line_sz
28668 .${dwarf4_addr_size}byte .LM2
28673 .byte 0x$dwarf4_line_sz
28675 .${dwarf4_addr_size}byte .Letext0
28680 .section .debug_str,\"\",%progbits
28684 if test $dwarf4_addr_size = 4; then
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
28686 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
28687 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
28688 $as_echo_n "(cached) " >&6
28690 gcc_cv_as_debug_line_32_flag
=no
28691 if test $in_tree_gas = yes; then
28692 if test $in_tree_gas_is_elf = yes \
28693 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28694 then gcc_cv_as_debug_line_32_flag
=yes
28696 elif test x
$gcc_cv_as != x
; then
28697 $as_echo "$conftest_s" > conftest.s
28698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28700 (eval $ac_try) 2>&5
28702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28703 test $ac_status = 0; }; }
28705 gcc_cv_as_debug_line_32_flag
=yes
28707 echo "configure: failed program was" >&5
28710 rm -f conftest.o conftest.s
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
28714 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
28715 if test $gcc_cv_as_debug_line_32_flag = yes; then
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
28721 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
28722 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
28723 $as_echo_n "(cached) " >&6
28725 gcc_cv_as_debug_line_64_flag
=no
28726 if test $in_tree_gas = yes; then
28727 if test $in_tree_gas_is_elf = yes \
28728 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28729 then gcc_cv_as_debug_line_64_flag
=yes
28731 elif test x
$gcc_cv_as != x
; then
28732 $as_echo "$conftest_s" > conftest.s
28733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28735 (eval $ac_try) 2>&5
28737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28738 test $ac_status = 0; }; }
28740 gcc_cv_as_debug_line_64_flag
=yes
28742 echo "configure: failed program was" >&5
28745 rm -f conftest.o conftest.s
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
28749 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
28750 if test $gcc_cv_as_debug_line_64_flag = yes; then
28755 if test $dwarf4_success = yes; then
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
28758 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
28759 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
28760 $as_echo_n "(cached) " >&6
28762 gcc_cv_as_dwarf_4_debug_line_flag
=no
28763 if test $in_tree_gas = yes; then
28764 if test $in_tree_gas_is_elf = yes \
28765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28766 then gcc_cv_as_dwarf_4_debug_line_flag
=yes
28768 elif test x
$gcc_cv_as != x
; then
28769 $as_echo "$conftest_s" > conftest.s
28770 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28772 (eval $ac_try) 2>&5
28774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775 test $ac_status = 0; }; }
28777 gcc_cv_as_dwarf_4_debug_line_flag
=yes
28779 echo "configure: failed program was" >&5
28782 rm -f conftest.o conftest.s
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
28786 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
28787 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
28793 dwarf4_debug_info_size
=0x36
28794 dwarf4_high_pc_form
=6
28795 dwarf4_debug_aranges_size
=0x1c
28799 if test $dwarf4_success = yes; then
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
28818 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
28819 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
28820 $as_echo_n "(cached) " >&6
28822 gcc_cv_as_dwarf_4_app_flag
=no
28823 if test x
$gcc_cv_as != x
; then
28824 $as_echo "$conftest_s" > conftest.s
28825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28827 (eval $ac_try) 2>&5
28829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28830 test $ac_status = 0; }; }
28832 gcc_cv_as_dwarf_4_app_flag
=yes
28834 echo "configure: failed program was" >&5
28837 rm -f conftest.o conftest.s
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
28841 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
28842 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
28848 if test $dwarf4_success = yes; then
28852 .type foo, %function
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
28859 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
28860 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
28861 $as_echo_n "(cached) " >&6
28863 gcc_cv_as_working_gdwarf_n_flag
=no
28864 if test x
$gcc_cv_as != x
; then
28865 $as_echo "$conftest_s" > conftest.s
28866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28868 (eval $ac_try) 2>&5
28870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28871 test $ac_status = 0; }; }
28873 if test x
$gcc_cv_readelf != x \
28874 && $gcc_cv_readelf -w conftest.o
2>&1 \
28875 |
grep conftest.s
> /dev
/null
2>&1; then
28876 gcc_cv_as_working_gdwarf_n_flag
=no
28878 gcc_cv_as_working_gdwarf_n_flag
=yes
28881 echo "configure: failed program was" >&5
28884 rm -f conftest.o conftest.s
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
28888 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
28891 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
28893 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28899 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28900 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28901 $as_echo_n "(cached) " >&6
28903 gcc_cv_as_gstabs_flag
=no
28904 if test $in_tree_gas = yes; then
28905 if test $in_tree_gas_is_elf = yes \
28906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28907 then gcc_cv_as_gstabs_flag
=yes
28909 elif test x
$gcc_cv_as != x
; then
28910 $as_echo "$insn" > conftest.s
28911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28913 (eval $ac_try) 2>&5
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; }
28918 gcc_cv_as_gstabs_flag
=yes
28920 echo "configure: failed program was" >&5
28923 rm -f conftest.o conftest.s
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28927 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28928 if test $gcc_cv_as_gstabs_flag = yes; then
28930 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28936 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28937 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28938 $as_echo_n "(cached) " >&6
28940 gcc_cv_as_debug_prefix_map_flag
=no
28941 if test $in_tree_gas = yes; then
28942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28943 then gcc_cv_as_debug_prefix_map_flag
=yes
28945 elif test x
$gcc_cv_as != x
; then
28946 $as_echo "$insn" > conftest.s
28947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }
28954 gcc_cv_as_debug_prefix_map_flag
=yes
28956 echo "configure: failed program was" >&5
28959 rm -f conftest.o conftest.s
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28963 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28964 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28966 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28973 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28974 if ${gcc_cv_as_compress_debug+:} false
; then :
28975 $as_echo_n "(cached) " >&6
28977 gcc_cv_as_compress_debug
=no
28978 if test x
$gcc_cv_as != x
; then
28979 $as_echo '' > conftest.s
28980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28982 (eval $ac_try) 2>&5
28984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28985 test $ac_status = 0; }; }
28987 # gas compiled without zlib cannot compress debug sections and warns
28988 # about it, but still exits successfully. So check for this, too.
28989 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28991 gcc_cv_as_compress_debug
=0
28992 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28993 # defaulting to the ELF gABI format.
28994 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28996 gcc_cv_as_compress_debug
=2
28997 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28998 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28999 # Before binutils 2.26, gas only supported --compress-debug-options and
29000 # emitted the traditional GNU format.
29001 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
29003 gcc_cv_as_compress_debug
=1
29004 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29005 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29007 gcc_cv_as_compress_debug
=0
29010 echo "configure: failed program was" >&5
29013 rm -f conftest.o conftest.s
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29017 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29021 cat >>confdefs.h
<<_ACEOF
29022 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29026 cat >>confdefs.h
<<_ACEOF
29027 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29031 cat >>confdefs.h
<<_ACEOF
29032 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29037 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29038 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29039 $as_echo_n "(cached) " >&6
29041 gcc_cv_as_lcomm_with_alignment
=no
29042 if test x
$gcc_cv_as != x
; then
29043 $as_echo '.lcomm bar,4,16' > 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_lcomm_with_alignment
=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_lcomm_with_alignment" >&5
29060 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29061 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29063 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29068 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29069 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29070 && test "$prefix" != "NONE"; then
29072 cat >>confdefs.h
<<_ACEOF
29073 #define PREFIX_INCLUDE_DIR "$prefix/include"
29078 # Determine the version of glibc, if any, used on the target.
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29080 $as_echo_n "checking for target glibc version... " >&6; }
29082 # Check whether --with-glibc-version was given.
29083 if test "${with_glibc_version+set}" = set; then :
29084 withval
=$with_glibc_version;
29085 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29086 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29087 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29089 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29093 glibc_version_major
=0
29094 glibc_version_minor
=0
29095 if test -f $target_header_dir/features.h \
29096 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29097 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29098 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29099 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29104 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29106 cat >>confdefs.h
<<_ACEOF
29107 #define TARGET_GLIBC_MAJOR $glibc_version_major
29111 cat >>confdefs.h
<<_ACEOF
29112 #define TARGET_GLIBC_MINOR $glibc_version_minor
29116 # Check whether --enable-gnu-unique-object was given.
29117 if test "${enable_gnu_unique_object+set}" = set; then :
29118 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29120 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29121 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29125 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29126 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29127 $as_echo_n "(cached) " >&6
29129 gcc_cv_as_gnu_unique_object
=no
29130 if test $in_tree_gas = yes; then
29131 if test $in_tree_gas_is_elf = yes \
29132 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29133 then gcc_cv_as_gnu_unique_object
=yes
29135 elif test x
$gcc_cv_as != x
; then
29136 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29137 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29139 (eval $ac_try) 2>&5
29141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29142 test $ac_status = 0; }; }
29144 gcc_cv_as_gnu_unique_object
=yes
29146 echo "configure: failed program was" >&5
29149 rm -f conftest.o conftest.s
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29153 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29154 if test $gcc_cv_as_gnu_unique_object = yes; then
29155 # We need to unquote above to to use the definition from config.gcc.
29156 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29158 if test $glibc_version_major -gt 2 \
29159 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29160 enable_gnu_unique_object
=yes
29167 if test x
$enable_gnu_unique_object = xyes
; then
29169 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29174 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29175 if ${gcc_cv_as_line_zero+:} false
; then :
29176 $as_echo_n "(cached) " >&6
29178 gcc_cv_as_line_zero
=no
29179 if test $in_tree_gas = yes; then
29180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29181 then gcc_cv_as_line_zero
=yes
29183 elif test "x$gcc_cv_as" != x
; then
29184 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29185 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29187 (eval $ac_try) 2>&5
29189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29190 test $ac_status = 0; }; } &&
29191 test "x`cat conftest.out`" = x
29193 gcc_cv_as_line_zero
=yes
29195 echo "configure: failed program was" >&5
29197 echo "configure: error output was" >&5
29198 cat conftest.out
>&5
29200 rm -f conftest.o conftest.s conftest.out
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29204 $as_echo "$gcc_cv_as_line_zero" >&6; }
29205 if test "x$gcc_cv_as_line_zero" = xyes
; then
29207 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29212 $as_echo_n "checking support for thin archives... " >&6; }
29213 thin_archive_support
=no
29214 echo 'int main (void) { return 0; }' > conftest.c
29215 if ($AR --version |
sed 1q |
grep "GNU ar" \
29216 && $CC $CFLAGS -c conftest.c \
29217 && $AR rcT conftest.a conftest.o \
29218 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29219 thin_archive_support
=yes
29221 rm -f conftest.c conftest.o conftest.a conftest
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29223 $as_echo "$thin_archive_support" >&6; }
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29227 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29228 gcc_cv_ld_eh_frame_hdr
=no
29229 if test $in_tree_ld = yes ; then
29230 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 \
29231 && test $in_tree_ld_is_elf = yes; then
29232 gcc_cv_ld_eh_frame_hdr
=yes
29234 elif test x
$gcc_cv_ld != x
; then
29235 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29236 # Check if linker supports --eh-frame-hdr option
29237 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
29238 gcc_cv_ld_eh_frame_hdr
=yes
29243 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29244 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
29245 gcc_cv_ld_eh_frame_hdr
=yes
29252 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
29254 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29258 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29261 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29262 gcc_cv_ld_eh_frame_ciev3
=no
29263 if test $in_tree_ld = yes ; then
29264 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 \
29265 && test $in_tree_ld_is_elf = yes; then
29266 gcc_cv_ld_eh_frame_ciev3
=yes
29268 elif test x
$gcc_cv_ld != x
; then
29269 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29270 gcc_cv_ld_eh_frame_ciev3
=yes
29271 if test 0"$ld_date" -lt 20040513; then
29272 if test -n "$ld_date"; then
29273 # If there was date string, but was earlier than 2004-05-13, fail
29274 gcc_cv_ld_eh_frame_ciev3
=no
29275 elif test "$ld_vers_major" -lt 2; then
29276 gcc_cv_ld_eh_frame_ciev3
=no
29277 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29278 gcc_cv_ld_eh_frame_ciev3
=no
29284 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29285 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
29286 gcc_cv_ld_eh_frame_ciev3
=yes
29293 cat >>confdefs.h
<<_ACEOF
29294 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29298 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29301 $as_echo_n "checking linker position independent executable support... " >&6; }
29303 if test $in_tree_ld = yes ; then
29305 # Full PIE support on Solaris was only introduced in gld 2.26.
29306 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
29307 *) gcc_gld_pie_min_version
=15 ;;
29309 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 \
29310 && test $in_tree_ld_is_elf = yes; then
29313 elif test x
$gcc_cv_ld != x
; then
29314 # Check if linker supports -pie option
29315 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
29319 if echo "$ld_ver" |
grep GNU
> /dev
/null \
29320 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29327 *-*-solaris2.1
[1-9]*)
29328 # Solaris 11.3 added PIE support.
29329 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
29336 if test x
"$gcc_cv_ld_pie" = xyes
; then
29338 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29342 $as_echo "$gcc_cv_ld_pie" >&6; }
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29345 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29346 gcc_cv_ld_pie_copyreloc
=no
29347 if test $gcc_cv_ld_pie = yes ; then
29348 if test $in_tree_ld = yes ; then
29349 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
29350 gcc_cv_ld_pie_copyreloc
=yes
29352 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29353 # Check if linker supports -pie option with copy reloc
29355 i?
86-*-linux* | x86_64-
*-linux*)
29356 cat > conftest1.s
<<EOF
29359 .type a_glob, @object
29364 cat > conftest2.s
<<EOF
29367 .type main, @function
29369 movl %eax, a_glob(%rip)
29372 .section .data.rel,"aw",@progbits
29377 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29378 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
29379 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29380 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
29381 gcc_cv_ld_pie_copyreloc
=yes
29383 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29389 cat >>confdefs.h
<<_ACEOF
29390 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29394 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29397 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29398 gcc_cv_ld_eh_gc_sections
=no
29399 if test $in_tree_ld = yes ; then
29400 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 \
29401 && test $in_tree_ld_is_elf = yes; then
29402 gcc_cv_ld_eh_gc_sections
=yes
29404 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
29405 cat > conftest.s
<<EOF
29408 .type _start, @function
29411 .size _start, .-_start
29412 .section .text.foo,"ax",@progbits
29413 .type foo, @function
29417 .section .gcc_except_table.foo,"a",@progbits
29420 .section .eh_frame,"a",@progbits
29423 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29424 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29425 |
grep "gc-sections option ignored" > /dev
/null
; then
29426 gcc_cv_ld_eh_gc_sections
=no
29427 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29428 |
grep gcc_except_table
> /dev
/null
; then
29429 gcc_cv_ld_eh_gc_sections
=yes
29430 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29431 if test x
$gcc_cv_as_comdat_group != xyes
; then
29432 gcc_cv_ld_eh_gc_sections
=no
29433 cat > conftest.s
<<EOF
29436 .type _start, @function
29439 .size _start, .-_start
29440 .section .gnu.linkonce.t.foo,"ax",@progbits
29441 .type foo, @function
29445 .section .gcc_except_table.foo,"a",@progbits
29448 .section .eh_frame,"a",@progbits
29451 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29452 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29453 |
grep "gc-sections option ignored" > /dev
/null
; then
29454 gcc_cv_ld_eh_gc_sections
=no
29455 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29456 |
grep gcc_except_table
> /dev
/null
; then
29457 gcc_cv_ld_eh_gc_sections
=yes
29463 rm -f conftest.s conftest.o conftest
29467 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29468 gcc_cv_ld_eh_gc_sections
=no
29471 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
29473 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29477 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29480 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29481 gcc_cv_ld_eh_gc_sections_bug
=no
29482 if test $in_tree_ld = yes ; then
29483 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 \
29484 && test $in_tree_ld_is_elf = yes; then
29485 gcc_cv_ld_eh_gc_sections_bug
=yes
29487 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
29488 gcc_cv_ld_eh_gc_sections_bug
=yes
29489 cat > conftest.s
<<EOF
29492 .type _start, @function
29495 .size _start, .-_start
29496 .section .text.startup.foo,"ax",@progbits
29497 .type foo, @function
29501 .section .gcc_except_table.foo,"a",@progbits
29504 .section .eh_frame,"a",@progbits
29507 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29508 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29509 |
grep "gc-sections option ignored" > /dev
/null
; then
29511 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29512 |
grep gcc_except_table
> /dev
/null
; then
29513 gcc_cv_ld_eh_gc_sections_bug
=no
29516 rm -f conftest.s conftest.o conftest
29518 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
29520 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29524 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29527 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29528 # gold/gld support compressed debug sections since binutils 2.19/2.21
29529 # In binutils 2.26, gld gained support for the ELF gABI format.
29530 if test $in_tree_ld = yes ; then
29531 gcc_cv_ld_compress_debug
=0
29532 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
29533 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29534 gcc_cv_ld_compress_debug
=2
29535 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29536 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
29537 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
29538 gcc_cv_ld_compress_debug
=3
29539 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29540 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
29541 && test $in_tree_ld_is_elf = yes; then
29542 gcc_cv_ld_compress_debug
=1
29544 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29545 if test "$ld_vers_major" -lt 2 \
29546 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29547 gcc_cv_ld_compress_debug
=0
29548 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29549 gcc_cv_ld_compress_debug
=1
29551 gcc_cv_ld_compress_debug
=3
29552 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29554 if test $ld_is_gold = yes; then
29555 gcc_cv_ld_compress_debug
=2
29556 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29559 case "${target}" in
29561 # Introduced in Solaris 11.2.
29562 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29563 gcc_cv_ld_compress_debug
=3
29564 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29566 gcc_cv_ld_compress_debug
=0
29570 # Assume linkers other than GNU ld don't support compessed debug
29572 gcc_cv_ld_compress_debug
=0
29577 cat >>confdefs.h
<<_ACEOF
29578 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29582 cat >>confdefs.h
<<_ACEOF
29583 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29587 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29589 if test x
"$ld64_flag" = x
"yes"; then
29591 # Set defaults for possibly untestable items.
29592 gcc_cv_ld64_export_dynamic
=0
29594 if test "$build" = "$host"; then
29600 # On Darwin, because of FAT library support, it is often possible to execute
29601 # exes from compatible archs even when the host differs from the build system.
29602 case "$build","$host" in
29603 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29604 darwin_try_test
=1;;
29608 # If the configurer specified a minimum ld64 version to be supported, then use
29609 # that to determine feature support.
29610 if test x
"${gcc_cv_ld64_version}" != x
; then
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29612 $as_echo_n "checking ld64 specified version... " >&6; }
29613 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29615 $as_echo "$gcc_cv_ld64_major" >&6; }
29616 if test "$gcc_cv_ld64_major" -ge 236; then
29617 gcc_cv_ld64_export_dynamic
=1
29619 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29620 # If the version was not specified, try to find it.
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29622 $as_echo_n "checking linker version... " >&6; }
29623 if test x
"${gcc_cv_ld64_version}" = x
; then
29624 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29627 $as_echo "$gcc_cv_ld64_version" >&6; }
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29630 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29631 gcc_cv_ld64_export_dynamic
=1
29632 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29633 gcc_cv_ld64_export_dynamic
=0
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29636 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29639 if test x
"${gcc_cv_ld64_version}" != x
; then
29641 cat >>confdefs.h
<<_ACEOF
29642 #define LD64_VERSION "${gcc_cv_ld64_version}"
29648 cat >>confdefs.h
<<_ACEOF
29649 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29659 $as_echo_n "checking linker --as-needed support... " >&6; }
29660 if ${gcc_cv_ld_as_needed+:} false
; then :
29661 $as_echo_n "(cached) " >&6
29663 gcc_cv_ld_as_needed
=no
29664 gcc_cv_ld_as_needed_option
='--as-needed'
29665 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29666 if test $in_tree_ld = yes ; then
29667 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 \
29668 && test $in_tree_ld_is_elf = yes; then
29669 gcc_cv_ld_as_needed
=yes
29670 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29671 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29672 gcc_cv_ld_no_as_needed_option
='--pop-state'
29675 elif test x
$gcc_cv_ld != x
; then
29676 # Check if linker supports --as-needed and --no-as-needed options
29677 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29678 gcc_cv_ld_as_needed
=yes
29679 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29680 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29681 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29682 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29683 # Use these options only when both ld.bfd and ld.gold support
29684 # --push-state/--pop-state, which unfortunately wasn't added
29685 # at the same time.
29686 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29687 gcc_cv_ld_no_as_needed_option
='--pop-state'
29690 case "$target:$gnu_ld" in
29692 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29694 gcc_cv_ld_as_needed
=yes
29695 gcc_cv_ld_as_needed_option
="-z ignore"
29696 gcc_cv_ld_no_as_needed_option
="-z record"
29700 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29701 # dl_iterate_phdr, i.e. since Solaris 11.
29703 *-*-solaris2.1
[1-9]*)
29705 i?
86-*-* | x86_64-
*-*)
29706 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29707 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29708 gcc_cv_ld_as_needed
=no
29714 gcc_cv_ld_as_needed
=no
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29720 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29721 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29723 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29726 cat >>confdefs.h
<<_ACEOF
29727 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29731 cat >>confdefs.h
<<_ACEOF
29732 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29738 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29739 saved_LDFLAGS
="$LDFLAGS"
29740 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29741 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29743 /* end confdefs.h. */
29744 int main(void) {return 0;}
29746 if ac_fn_cxx_try_link
"$LINENO"; then :
29747 gcc_cv_ld_clearcap
=yes; break
29749 gcc_cv_ld_clearcap
=no
29751 rm -f core conftest.err conftest.
$ac_objext \
29752 conftest
$ac_exeext conftest.
$ac_ext
29754 LDFLAGS
="$saved_LDFLAGS"
29755 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29757 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29759 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29763 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29769 emul_name
="-melf32lppc"
29772 emul_name
="-melf32ppc"
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29776 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29777 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29778 $as_echo_n "(cached) " >&6
29780 gcc_cv_ld_ppc_attr
=no
29781 if test x
"$ld_is_gold" = xyes
; then
29782 gcc_cv_ld_ppc_attr
=yes
29783 elif test $in_tree_ld = yes ; then
29784 if test "$gcc_cv_gld_major_version" -eq 2 \
29785 -a "$gcc_cv_gld_minor_version" -ge 28 \
29786 -o "$gcc_cv_gld_major_version" -gt 2; then
29787 gcc_cv_ld_ppc_attr
=yes
29789 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29790 # check that merging the long double .gnu_attribute doesn't warn
29791 cat > conftest1.s
<<EOF
29794 cat > conftest2.s
<<EOF
29797 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29798 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29799 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29800 && test ! -s conftest.err
; then
29801 gcc_cv_ld_ppc_attr
=yes
29803 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29808 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29809 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29811 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29817 case "$target:$tm_file" in
29818 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29821 emul_name
="-melf64lppc"
29824 emul_name
="-melf64ppc"
29827 emul_name
="-melf64ppc_fbsd"
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29831 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29832 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29833 $as_echo_n "(cached) " >&6
29835 gcc_cv_ld_no_dot_syms
=no
29836 if test x
"$ld_is_gold" = xyes
; then
29837 gcc_cv_ld_no_dot_syms
=yes
29838 elif test $in_tree_ld = yes ; then
29839 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
29840 gcc_cv_ld_no_dot_syms
=yes
29842 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29843 cat > conftest1.s
<<EOF
29847 cat > conftest2.s
<<EOF
29848 .section ".opd","aw"
29851 .type foo,@function
29853 .quad .LEfoo,.TOC.@tocbase,0
29859 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29860 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29861 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29862 gcc_cv_ld_no_dot_syms
=yes
29864 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29869 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29870 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29872 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29877 $as_echo_n "checking linker large toc support... " >&6; }
29878 if ${gcc_cv_ld_large_toc+:} false
; then :
29879 $as_echo_n "(cached) " >&6
29881 gcc_cv_ld_large_toc
=no
29882 if test x
"$ld_is_gold" = xyes
; then
29883 gcc_cv_ld_large_toc
=yes
29884 elif test $in_tree_ld = yes ; then
29885 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
29886 gcc_cv_ld_large_toc
=yes
29888 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29889 cat > conftest.s
<<EOF
29890 .section ".tbss","awT",@nobits
29896 addis 9,13,ie0@got@tprel@ha
29897 ld 9,ie0@got@tprel@l(9)
29899 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29900 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29901 gcc_cv_ld_large_toc
=yes
29903 rm -f conftest conftest.o conftest.s
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29908 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29909 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29911 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29916 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29917 if ${gcc_cv_ld_toc_align+:} false
; then :
29918 $as_echo_n "(cached) " >&6
29920 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29921 cat > conftest.s
<<EOF
29926 .section .data.rel.ro,"aw",@progbits
29931 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29932 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29933 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)) }'`
29935 rm -f conftest conftest.o conftest.s
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29940 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29941 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29943 cat >>confdefs.h
<<_ACEOF
29944 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29954 $as_echo_n "checking linker large toc support... " >&6; }
29955 if ${gcc_cv_ld_large_toc+:} false
; then :
29956 $as_echo_n "(cached) " >&6
29958 gcc_cv_ld_large_toc
=no
29959 if test x
$gcc_cv_as != x
; then
29960 cat > conftest.s
<<EOF
29970 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29971 gcc_cv_ld_large_toc
=yes
29973 rm -f conftest conftest.o conftest.s
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29978 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29979 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29981 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29988 $as_echo_n "checking linker --build-id support... " >&6; }
29989 if ${gcc_cv_ld_buildid+:} false
; then :
29990 $as_echo_n "(cached) " >&6
29992 gcc_cv_ld_buildid
=no
29993 if test $in_tree_ld = yes ; then
29994 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29995 "$gcc_cv_gld_minor_version" -ge 18 -o \
29996 "$gcc_cv_gld_major_version" -gt 2 \
29997 && test $in_tree_ld_is_elf = yes; then
29998 gcc_cv_ld_buildid
=yes
30000 elif test x
$gcc_cv_ld != x
; then
30001 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30002 gcc_cv_ld_buildid
=yes
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30007 $as_echo "$gcc_cv_ld_buildid" >&6; }
30008 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30010 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30014 # Check whether --enable-linker-build-id was given.
30015 if test "${enable_linker_build_id+set}" = set; then :
30016 enableval
=$enable_linker_build_id;
30018 enable_linker_build_id
=no
30022 if test x
"$enable_linker_build_id" = xyes
; then
30023 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30025 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30029 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30033 # In binutils 2.21, GNU ld gained support for new emulations fully
30034 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30036 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30037 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30038 $as_echo_n "(cached) " >&6
30040 gcc_cv_ld_sol2_emulation
=no
30041 if test $in_tree_ld = yes ; then
30042 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30043 "$gcc_cv_gld_minor_version" -ge 21 -o \
30044 "$gcc_cv_gld_major_version" -gt 2 \
30045 && test $in_tree_ld_is_elf = yes; then
30046 gcc_cv_ld_sol2_emulation
=yes
30048 elif test x
$gcc_cv_ld != x
; then
30049 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30050 grep _sol2
> /dev
/null
; then
30051 gcc_cv_ld_sol2_emulation
=yes
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30056 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30057 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
30059 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30064 $as_echo_n "checking linker --sysroot support... " >&6; }
30065 if ${gcc_cv_ld_sysroot+:} false
; then :
30066 $as_echo_n "(cached) " >&6
30068 gcc_cv_ld_sysroot
=no
30069 if test $in_tree_ld = yes ; then
30070 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
30071 gcc_cv_ld_sysroot
=yes
30073 elif test x
$gcc_cv_ld != x
; then
30074 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
30075 gcc_cv_ld_sysroot
=yes
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30080 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30081 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
30083 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30089 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30091 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30092 if ${gcc_cv_solaris_crts+:} false
; then :
30093 $as_echo_n "(cached) " >&6
30095 gcc_cv_solaris_crts
=no
30096 if test x
$host != x
$target; then
30097 if test "x$with_sysroot" = xyes
; then
30098 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
30100 target_sysroot
="${with_sysroot}"
30103 target_libdir
="$target_sysroot/usr/lib"
30104 # At the time they were added, gcrt1.o became a symlink for backwards
30105 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30107 i?
86-*-solaris2* | x86_64-
*-solaris2*)
30108 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30110 sparc
*-*-solaris2*)
30111 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30116 $as_echo "$gcc_cv_solaris_crts" >&6; }
30119 if test x
$gcc_cv_solaris_crts = xyes
; then
30121 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30125 # Check whether --enable-libssp was given.
30126 if test "${enable_libssp+set}" = set; then :
30127 enableval
=$enable_libssp; case "${enableval}" in
30131 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30137 # Test for stack protector support in target C library.
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30139 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30140 if ${gcc_cv_libc_provides_ssp+:} false
; then :
30141 $as_echo_n "(cached) " >&6
30143 gcc_cv_libc_provides_ssp
=no
30144 if test "x$enable_libssp" = "xno"; then
30145 gcc_cv_libc_provides_ssp
=yes
30146 elif test "x$enable_libssp" = "xyes"; then
30147 gcc_cv_libc_provides_ssp
=no
30151 # All versions of musl provide stack protector
30152 gcc_cv_libc_provides_ssp
=yes;;
30153 *-*-linux* |
*-*-kfreebsd*-gnu)
30154 # glibc 2.4 and later provides __stack_chk_fail and
30155 # either __stack_chk_guard, or TLS access to stack guard canary.
30157 if test $glibc_version_major -gt 2 \
30158 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30159 gcc_cv_libc_provides_ssp
=yes
30162 if test -f $target_header_dir/features.h \
30163 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30164 $target_header_dir/features.h
> /dev
/null
; then
30165 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30166 $target_header_dir/features.h
> /dev
/null
&& \
30167 test -f $target_header_dir/bits
/uClibc_config.h
&& \
30168 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30169 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
30170 gcc_cv_libc_provides_ssp
=yes
30172 # all versions of Bionic support stack protector
30173 elif test -f $target_header_dir/sys
/cdefs.h \
30174 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30175 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
30176 gcc_cv_libc_provides_ssp
=yes
30181 # Avoid complicated tests (see
30182 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30183 # simply assert that glibc does provide this, which is true for all
30184 # realistically usable GNU/Hurd configurations.
30185 # All supported versions of musl provide it as well
30186 gcc_cv_libc_provides_ssp
=yes;;
30187 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
30188 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30189 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
30190 gcc_cv_libc_provides_ssp
=yes
30192 echo "no __stack_chk_fail on this target"
30196 *) gcc_cv_libc_provides_ssp
=no
;;
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30201 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30203 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30205 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30209 # Check whether --enable-default-ssp was given.
30210 # Check whether --enable-default-ssp was given.
30211 if test "${enable_default_ssp+set}" = set; then :
30212 enableval
=$enable_default_ssp;
30213 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
30215 ia64
*-*-*) enable_default_ssp
=no
;;
30216 *) enable_default_ssp
=$enableval ;;
30219 enable_default_ssp
=no
30222 enable_default_ssp
=no
30225 if test x
$enable_default_ssp = xyes
; then
30227 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30232 # Test for <sys/sdt.h> on the target.
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30235 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30237 if test -f $target_header_dir/sys
/sdt.h
; then
30240 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30244 $as_echo "$have_sys_sdt_h" >&6; }
30246 # Check if TFmode long double should be used by default or not.
30247 # Some glibc targets used DFmode long double, but with glibc 2.4
30248 # and later they can use TFmode.
30250 powerpc
*-*-linux* | \
30251 sparc
*-*-linux* | \
30255 # Check whether --with-long-double-128 was given.
30256 if test "${with_long_double_128+set}" = set; then :
30257 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
30261 s390
*-*-linux-musl*)
30262 gcc_cv_target_ldbl128
=yes
30264 powerpc
*-*-linux-musl*)
30265 gcc_cv_target_ldbl128
=no
30269 if test $glibc_version_major -gt 2 \
30270 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30271 gcc_cv_target_ldbl128
=yes
30274 gcc_cv_target_ldbl128
=no
30275 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30276 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
30277 && gcc_cv_target_ldbl128
=yes
30288 if test x
$gcc_cv_target_ldbl128 = xyes
; then
30290 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30294 # Check if TFmode long double target should use the IBM extended double or IEEE
30295 # 128-bit floating point formats if long doubles are 128-bits long. The long
30296 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30297 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30300 # Check whether --with-long-double-format was given.
30301 if test "${with_long_double_format+set}" = set; then :
30302 withval
=$with_long_double_format;
30303 case "$target:$with_long_double_format" in
30304 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
30307 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
30308 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30309 case "$with_cpu" in
30310 power7 | power8 | power9 | power1
*)
30314 as_fn_error $?
"Configuration option --with-long-double-format is only \
30315 supported if the default cpu is power7 or newer" "$LINENO" 5
30316 with_long_double_format
=""
30320 powerpc64
*-*-linux*:*)
30321 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30322 with_long_double_format
=""
30325 as_fn_error $?
"Configure option --with-long-double-format is only supported \
30326 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30327 with_long_double_format
=""
30333 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30334 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30335 gcc_cv_libc_provides_hwcap_in_tcb
=no
30339 if test $glibc_version_major -gt 2 \
30340 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30341 gcc_cv_libc_provides_hwcap_in_tcb
=yes
30345 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
30347 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30351 # Check if the target LIBC handles PT_GNU_STACK.
30352 gcc_cv_libc_gnustack
=unknown
30356 if test $glibc_version_major -gt 2 \
30357 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30358 gcc_cv_libc_gnustack
=yes
30362 if test x
$gcc_cv_libc_gnustack = xyes
; then
30364 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30369 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30370 gcc_cv_target_dl_iterate_phdr
=unknown
30373 # <link.h> needs both a dl_iterate_phdr declaration and support for
30374 # compilation with largefile support.
30375 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
30376 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
30377 gcc_cv_target_dl_iterate_phdr
=yes
30379 gcc_cv_target_dl_iterate_phdr
=no
30382 *-*-dragonfly* |
*-*-freebsd*)
30383 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
30384 gcc_cv_target_dl_iterate_phdr
=yes
30386 gcc_cv_target_dl_iterate_phdr
=no
30390 gcc_cv_target_dl_iterate_phdr
=yes
30394 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
30396 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30400 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30402 # We no longer support different GC mechanisms. Emit an error if
30403 # the user configures with --with-gc.
30405 # Check whether --with-gc was given.
30406 if test "${with_gc+set}" = set; then :
30407 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30411 # Libraries to use on the host. This will normally be set by the top
30412 # level Makefile. Here we simply capture the value for our Makefile.
30413 if test -z "${HOST_LIBS+set}"; then
30418 # Use the system's zlib library.
30420 # Use the system's zlib library.
30421 zlibdir
="-L\$(top_builddir)/../zlib"
30422 zlibinc
="-I\$(top_srcdir)/../zlib"
30424 # Check whether --with-system-zlib was given.
30425 if test "${with_system_zlib+set}" = set; then :
30426 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30439 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30440 # Check whether --enable-maintainer-mode was given.
30441 if test "${enable_maintainer_mode+set}" = set; then :
30442 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30449 $as_echo "$maintainer_mode" >&6; }
30451 if test "$maintainer_mode" = "yes"; then
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30459 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30460 # Check whether --enable-link-mutex was given.
30461 if test "${enable_link_mutex+set}" = set; then :
30462 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30468 $as_echo "$do_link_mutex" >&6; }
30470 if test "$do_link_mutex" = "yes"; then
30473 DO_LINK_MUTEX
=false
30481 # Make empty files to contain the specs and options for each language.
30482 # Then add #include lines to for a compiler that has specs and/or options.
30488 # These (without "all_") are set in each config-lang.in.
30489 # `language' must be a single word so is spelled singularly.
30492 all_outputs
='Makefile'
30493 # List of language configure and makefile fragments.
30494 all_lang_configurefrags
=
30495 all_lang_makefrags
=
30496 # Additional files for gengtype
30497 all_gtfiles
="$target_gtfiles"
30499 # These are the languages that are set in --enable-languages,
30500 # and are available in the GCC tree.
30501 all_selected_languages
=
30503 # Add the language fragments.
30504 # Languages are added via two mechanisms. Some information must be
30505 # recorded in makefile variables, these are defined in config-lang.in.
30506 # We accumulate them and plug them into the main Makefile.
30507 # The other mechanism is a set of hooks for each of the main targets
30508 # like `clean', `install', etc.
30510 language_hooks
="Make-hooks"
30512 for lang
in ${srcdir}/*/config-lang.
in
30514 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30516 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30517 if test "x$lang_alias" = x
30519 echo "$lang doesn't set \$language." 1>&2
30522 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30523 subdirs
="$subdirs $subdir"
30525 # $gcc_subdir is where the gcc integration files are to be found
30526 # for a language, both for internal compiler purposes (compiler
30527 # sources implementing front-end to GCC tree converters), and for
30528 # build infrastructure purposes (Make-lang.in, etc.)
30530 # This will be <subdir> (relative to $srcdir) if a line like
30531 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30532 # is found in <langdir>/config-lang.in, and will remain <langdir>
30535 # Except for the language alias (fetched above), the regular
30536 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30537 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30538 # only this and the language alias.
30540 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30541 if [ "$gcc_subdir" = "" ]; then
30542 gcc_subdir
="$subdir"
30545 case ",$enable_languages," in
30547 all_selected_languages
="$all_selected_languages $lang_alias"
30548 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
30549 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30560 .
${srcdir}/$gcc_subdir/config-lang.
in
30561 if test "x$language" = x
30563 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30568 case ",$enable_languages," in
30569 *,$lang_alias,*) ;;
30571 for i
in $subdir_requires; do
30572 test -f "${srcdir}/$i/config-lang.in" && continue
30580 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30581 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30582 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30583 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30584 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30586 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30587 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30589 all_languages
="$all_languages $language"
30590 all_compilers
="$all_compilers $compilers"
30591 all_outputs
="$all_outputs $outputs"
30592 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30593 case ",$enable_languages," in
30596 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30606 for language
in $all_selected_languages
30608 check_languages
="$check_languages check-$language"
30611 selftest_languages
=
30612 for language
in $all_selected_languages
30614 selftest_languages
="$selftest_languages selftest-$language"
30617 # We link each language in with a set of hooks, reached indirectly via
30618 # lang.${target}. Only do so for selected languages.
30622 target_list
="all.cross start.encap rest.encap tags \
30623 install-common install-man install-info install-pdf install-html dvi \
30624 pdf html uninstall info man srcextra srcman srcinfo \
30625 mostlyclean clean distclean maintainer-clean install-plugin"
30627 for t
in $target_list
30630 for lang
in $all_selected_languages
30634 echo "lang.$t: $x" >> Make-hooks
30638 # Option include files
30641 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30642 option_includes
="option-includes.mk"
30651 echo "dir ." > .gdbinit
30652 echo "dir ${srcdir}" >> .gdbinit
30653 if test x
$gdb_needs_out_file_path = xyes
30655 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30657 if test "x$subdirs" != x
; then
30660 echo "dir ${srcdir}/$s" >> .gdbinit
30663 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30664 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30666 # Put a breakpoint on __asan_report_error to help with debugging buffer
30669 *-fsanitize=address
*)
30670 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30674 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30678 # Find a directory in which to install a shared libgcc.
30680 # Check whether --enable-version-specific-runtime-libs was given.
30681 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30682 enableval
=$enable_version_specific_runtime_libs;
30686 # Substitute configuration variables
30755 if test x
${build} = x
${host} ; then
30756 if test x
${host} = x
${target} ; then
30757 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30759 echo "Links are now set up to build a cross-compiler" 1>&2
30760 echo " from ${host} to ${target}." 1>&2
30763 if test x
${host} = x
${target} ; then
30764 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30765 echo " for ${target}." 1>&2
30767 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30768 echo " from ${host} to ${target}." 1>&2
30777 if test "x${ISLLIBS}" != "x" ; then
30779 $as_echo "#define HAVE_isl 1" >>confdefs.h
30783 # Check for plugin support
30784 # Check whether --enable-plugin was given.
30785 if test "${enable_plugin+set}" = set; then :
30786 enableval
=$enable_plugin; enable_plugin
=$enableval
30788 enable_plugin
=yes; default_plugin
=yes
30797 # Since plugin support under MinGW is not as straightforward as on
30798 # other platforms (e.g., we have to link import library, etc), we
30799 # only enable it if explicitly requested.
30800 if test x
"$default_plugin" = x
"yes"; then
30802 elif test x
"$enable_plugin" = x
"yes"; then
30803 # Use make's target variable to derive import library name.
30804 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30809 if test x
$build = x
$host; then
30810 export_sym_check
="nm${exeext} -g"
30811 elif test x
$host = x
$target; then
30812 export_sym_check
="$gcc_cv_nm -g"
30818 if test x
$build = x
$host; then
30819 export_sym_check
="objdump${exeext} -T"
30820 elif test x
$host = x
$target; then
30821 export_sym_check
="$gcc_cv_objdump -T"
30828 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30831 $as_echo_n "checking for exported symbols... " >&6; }
30832 if test "x$export_sym_check" != x
; then
30833 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30834 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30835 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30836 : # No need to use a flag
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30838 $as_echo "yes" >&6; }
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30841 $as_echo "yes" >&6; }
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30843 $as_echo_n "checking for -rdynamic... " >&6; }
30844 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30845 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30846 plugin_rdynamic
=yes
30847 pluginlibs
="-rdynamic"
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30853 $as_echo "$plugin_rdynamic" >&6; }
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30857 $as_echo "unable to check" >&6; }
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30863 $as_echo_n "checking for library containing dlopen... " >&6; }
30864 if ${ac_cv_search_dlopen+:} false
; then :
30865 $as_echo_n "(cached) " >&6
30867 ac_func_search_save_LIBS
=$LIBS
30868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h. */
30871 /* Override any GCC internal prototype to avoid an error.
30872 Use char because int might match the return type of a GCC
30873 builtin and then its argument prototype would still apply. */
30886 for ac_lib
in '' dl
; do
30887 if test -z "$ac_lib"; then
30888 ac_res
="none required"
30891 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30893 if ac_fn_cxx_try_link
"$LINENO"; then :
30894 ac_cv_search_dlopen
=$ac_res
30896 rm -f core conftest.err conftest.
$ac_objext \
30898 if ${ac_cv_search_dlopen+:} false
; then :
30902 if ${ac_cv_search_dlopen+:} false
; then :
30905 ac_cv_search_dlopen
=no
30907 rm conftest.
$ac_ext
30908 LIBS
=$ac_func_search_save_LIBS
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30911 $as_echo "$ac_cv_search_dlopen" >&6; }
30912 ac_res
=$ac_cv_search_dlopen
30913 if test "$ac_res" != no
; then :
30914 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30918 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30919 pluginlibs
="$pluginlibs -ldl"
30923 # Check that we can build shared objects with -fPIC -shared
30924 saved_LDFLAGS
="$LDFLAGS"
30925 saved_CFLAGS
="$CFLAGS"
30928 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30929 CFLAGS
="$CFLAGS -fPIC"
30930 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30933 CFLAGS
="$CFLAGS -fPIC"
30934 LDFLAGS
="$LDFLAGS -fPIC -shared"
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30938 $as_echo_n "checking for -fPIC -shared... " >&6; }
30939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30940 /* end confdefs.h. */
30950 if ac_fn_cxx_try_link
"$LINENO"; then :
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30952 $as_echo "yes" >&6; }; have_pic_shared
=yes
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30955 $as_echo "no" >&6; }; have_pic_shared
=no
30957 rm -f core conftest.err conftest.
$ac_objext \
30958 conftest
$ac_exeext conftest.
$ac_ext
30959 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30963 LDFLAGS
="$saved_LDFLAGS"
30964 CFLAGS
="$saved_CFLAGS"
30966 # If plugin support had been requested but not available, fail.
30967 if test x
"$enable_plugin" = x
"no" ; then
30968 if test x
"$default_plugin" != x
"yes"; then
30970 Building GCC with plugin support requires a host that supports
30971 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30978 if test x
"$enable_plugin" = x
"yes"; then
30980 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30985 # Enable --enable-host-shared
30986 # Check whether --enable-host-shared was given.
30987 if test "${enable_host_shared+set}" = set; then :
30988 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30997 # Check whether --enable-libquadmath-support was given.
30998 if test "${enable_libquadmath_support+set}" = set; then :
30999 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
31001 ENABLE_LIBQUADMATH_SUPPORT
=yes
31004 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31006 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31011 # Specify what hash style to use by default.
31013 # Check whether --with-linker-hash-style was given.
31014 if test "${with_linker_hash_style+set}" = set; then :
31015 withval
=$with_linker_hash_style; case x
"$withval" in
31017 LINKER_HASH_STYLE
=sysv
31020 LINKER_HASH_STYLE
=gnu
31023 LINKER_HASH_STYLE
=both
31026 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31030 LINKER_HASH_STYLE
=''
31033 if test x
"${LINKER_HASH_STYLE}" != x
; then
31035 cat >>confdefs.h
<<_ACEOF
31036 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31041 # Specify what should be the default of -fdiagnostics-color option.
31043 # Check whether --with-diagnostics-color was given.
31044 if test "${with_diagnostics_color+set}" = set; then :
31045 withval
=$with_diagnostics_color; case x
"$withval" in
31047 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
31050 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31053 DIAGNOSTICS_COLOR_DEFAULT
=-1
31056 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
31059 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31063 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31067 cat >>confdefs.h
<<_ACEOF
31068 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31072 # Specify what should be the default of -fdiagnostics-urls option.
31074 # Check whether --with-diagnostics-urls was given.
31075 if test "${with_diagnostics_urls+set}" = set; then :
31076 withval
=$with_diagnostics_urls; case x
"$withval" in
31078 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
31081 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31084 DIAGNOSTICS_URLS_DEFAULT
=-1
31087 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
31090 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31094 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31098 cat >>confdefs.h
<<_ACEOF
31099 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31103 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31104 # of jit/jit-playback.c.
31105 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31106 echo "gcc_driver_version: ${gcc_driver_version}"
31107 cat > gcc-driver-name.h
<<EOF
31108 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31111 # Check whether --enable-default-pie was given.
31112 # Check whether --enable-default-pie was given.
31113 if test "${enable_default_pie+set}" = set; then :
31114 enableval
=$enable_default_pie; enable_default_pie
=$enableval
31116 enable_default_pie
=no
31119 if test x
$enable_default_pie = xyes
; then
31121 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31126 # Check if -fno-PIE works.
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31128 $as_echo_n "checking for -fno-PIE option... " >&6; }
31129 if ${gcc_cv_c_no_fpie+:} false
; then :
31130 $as_echo_n "(cached) " >&6
31132 saved_CXXFLAGS
="$CXXFLAGS"
31133 CXXFLAGS
="$CXXFLAGS -fno-PIE"
31134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31135 /* end confdefs.h. */
31136 int main(void) {return 0;}
31138 if ac_fn_cxx_try_compile
"$LINENO"; then :
31139 gcc_cv_c_no_fpie
=yes
31141 gcc_cv_c_no_fpie
=no
31143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31144 CXXFLAGS
="$saved_CXXFLAGS"
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31147 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31148 if test "$gcc_cv_c_no_fpie" = "yes"; then
31149 NO_PIE_CFLAGS
="-fno-PIE"
31153 # Check if -no-pie works.
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31155 $as_echo_n "checking for -no-pie option... " >&6; }
31156 if ${gcc_cv_no_pie+:} false
; then :
31157 $as_echo_n "(cached) " >&6
31159 saved_LDFLAGS
="$LDFLAGS"
31160 LDFLAGS
="$LDFLAGS -no-pie"
31161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31162 /* end confdefs.h. */
31163 int main(void) {return 0;}
31165 if ac_fn_cxx_try_link
"$LINENO"; then :
31170 rm -f core conftest.err conftest.
$ac_objext \
31171 conftest
$ac_exeext conftest.
$ac_ext
31172 LDFLAGS
="$saved_LDFLAGS"
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31175 $as_echo "$gcc_cv_no_pie" >&6; }
31176 if test "$gcc_cv_no_pie" = "yes"; then
31177 NO_PIE_FLAG
="-no-pie"
31181 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31182 # Check whether --enable-cet was given.
31183 if test "${enable_cet+set}" = set; then :
31184 enableval
=$enable_cet;
31185 case "$enableval" in
31187 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31196 $as_echo_n "checking for CET support... " >&6; }
31199 i
[34567]86-*-linux* | x86_64-
*-linux*)
31201 cet_save_CFLAGS
="$CFLAGS"
31202 CFLAGS
="$CFLAGS -fcf-protection"
31203 case "$enable_cet" in
31205 # Check if target supports multi-byte NOPs
31206 # and if compiler and assembler support CET.
31207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h. */
31214 #if !defined(__SSE2__)
31215 #error target does not support multi-byte NOPs
31224 if ac_fn_cxx_try_compile
"$LINENO"; then :
31229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31232 # Check if compiler and assembler support CET.
31233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31234 /* end confdefs.h. */
31244 if ac_fn_cxx_try_compile
"$LINENO"; then :
31249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31250 if test $support_cet = "no"; then
31251 if test x
$enable_bootstrap != xno \
31252 && test -z "${with_build_subdir}" \
31253 && (test ! -f ..
/stage_current \
31254 ||
test `cat ../stage_current` != "stage1"); then
31255 # Require CET support only for the final GCC build.
31256 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31258 # Don't enable CET without CET support for non-bootstrap
31259 # build, in stage1 nor for build support.
31265 CFLAGS
="$cet_save_CFLAGS"
31273 cet_save_CFLAGS
="$CFLAGS"
31274 CFLAGS
="$CFLAGS -fcf-protection=none"
31275 cet_save_LDFLAGS
="$LDFLAGS"
31276 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31277 if test x
$may_have_cet = xyes
; then
31278 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31280 /* end confdefs.h. */
31290 if ac_fn_cxx_try_link
"$LINENO"; then :
31295 rm -f core conftest.err conftest.
$ac_objext \
31296 conftest
$ac_exeext conftest.
$ac_ext
31299 if test x
$may_have_cet = xyes
; then
31300 if test x
$cross_compiling = xno
; then
31301 if test "$cross_compiling" = yes; then :
31302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31304 as_fn_error $?
"cannot run test program while cross compiling
31305 See \`config.log' for more details" "$LINENO" 5; }
31307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31308 /* end confdefs.h. */
31316 __attribute__ ((noinline, noclone))
31317 xxx (void (*f) (void))
31323 __attribute__ ((noinline, noclone))
31337 if ac_fn_cxx_try_run
"$LINENO"; then :
31342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31346 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
31347 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31351 # Enable CET in cross compiler if possible so that it will run on both
31352 # CET and non-CET hosts.
31355 if test x
$enable_cet = xyes
; then
31356 CET_HOST_FLAGS
="-fcf-protection"
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31358 $as_echo "yes" >&6; }
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361 $as_echo "no" >&6; }
31363 CFLAGS
="$cet_save_CFLAGS"
31364 LDFLAGS
="$cet_save_LDFLAGS"
31366 case x
$enable_languages in
31375 # Check linker supports '-z bndplt'
31376 ld_bndplt_support
=no
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31378 $as_echo_n "checking linker -z bndplt option... " >&6; }
31379 if test x
"$ld_is_gold" = xno
; then
31380 if test $in_tree_ld = yes ; then
31381 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
31382 ld_bndplt_support
=yes
31384 elif test x
$gcc_cv_ld != x
; then
31385 # Check if linker supports -a bndplt option
31386 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
31387 ld_bndplt_support
=yes
31391 if test x
"$ld_bndplt_support" = xyes
; then
31393 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31397 $as_echo "$ld_bndplt_support" >&6; }
31399 # Check linker supports '--push-state'/'--pop-state'
31400 ld_pushpopstate_support
=no
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31402 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31403 if test x
"$ld_is_gold" = xno
; then
31404 if test $in_tree_ld = yes ; then
31405 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
31406 ld_pushpopstate_support
=yes
31408 elif test x
$gcc_cv_ld != x
; then
31409 # Check if linker supports --push-state/--pop-state options
31410 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
31411 ld_pushpopstate_support
=yes
31415 if test x
"$ld_pushpopstate_support" = xyes
; then
31417 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31421 $as_echo "$ld_pushpopstate_support" >&6; }
31423 # Configure the subdirectories
31424 # AC_CONFIG_SUBDIRS($subdirs)
31426 # Create the Makefile
31427 # and configure language subdirectories
31428 ac_config_files
="$ac_config_files $all_outputs"
31431 ac_config_commands
="$ac_config_commands default"
31433 cat >confcache
<<\_ACEOF
31434 # This file is a shell script that caches the results of configure
31435 # tests run on this system so they can be shared between configure
31436 # scripts and configure runs, see configure's option --config-cache.
31437 # It is not useful on other systems. If it contains results you don't
31438 # want to keep, you may remove or edit it.
31440 # config.status only pays attention to the cache file if you give it
31441 # the --recheck option to rerun configure.
31443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31445 # following values.
31449 # The following way of writing the cache mishandles newlines in values,
31450 # but we know of no workaround that is simple, portable, and efficient.
31451 # So, we kill variables containing newlines.
31452 # Ultrix sh set writes to stderr and can't be redirected directly,
31453 # and sets the high bit in the cache file unless we assign to the vars.
31455 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31456 eval ac_val
=\$
$ac_var
31460 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31464 _ | IFS | as_nl
) ;; #(
31465 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31466 *) { eval $ac_var=; unset $ac_var;} ;;
31472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31473 *${as_nl}ac_space
=\
*)
31474 # `set' does not quote correctly, so add quotes: double-quote
31475 # substitution turns \\\\ into \\, and sed turns \\ into \.
31478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31481 # `set' quotes correctly as required by POSIX, so do not add quotes.
31482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31495 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31496 if test -w "$cache_file"; then
31497 if test "x$cache_file" != "x/dev/null"; then
31498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31499 $as_echo "$as_me: updating cache $cache_file" >&6;}
31500 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31501 cat confcache
>"$cache_file"
31503 case $cache_file in #(
31505 mv -f confcache
"$cache_file"$$
&&
31506 mv -f "$cache_file"$$
"$cache_file" ;; #(
31508 mv -f confcache
"$cache_file" ;;
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31519 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31520 # Let make expand exec_prefix.
31521 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31523 DEFS
=-DHAVE_CONFIG_H
31528 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31529 # 1. Remove the extension, and $U if already installed.
31530 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31531 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31533 # will be set to the directory where LIBOBJS objects are built.
31534 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31535 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31537 LIBOBJS
=$ac_libobjs
31539 LTLIBOBJS
=$ac_ltlibobjs
31544 : "${CONFIG_STATUS=./config.status}"
31546 ac_clean_files_save
=$ac_clean_files
31547 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31553 # Generated by $as_me.
31554 # Run this file to recreate the current configuration.
31555 # Compiler output produced by configure, useful for debugging
31556 # configure, is in config.log if it exists.
31559 ac_cs_recheck=false
31562 SHELL=\${CONFIG_SHELL-$SHELL}
31565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31566 ## -------------------- ##
31567 ## M4sh Initialization. ##
31568 ## -------------------- ##
31570 # Be more Bourne compatible
31571 DUALCASE
=1; export DUALCASE
# for MKS sh
31572 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31576 # is contrary to our usage. Disable this feature.
31577 alias -g '${1+"$@"}'='"$@"'
31578 setopt NO_GLOB_SUBST
31580 case `(set -o) 2>/dev/null` in #(
31592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31593 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31596 # Prefer a ksh shell builtin over an external printf program on Solaris,
31597 # but without wasting forks for bash or zsh.
31598 if test -z "$BASH_VERSION$ZSH_VERSION" \
31599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31600 as_echo='print
-r --'
31601 as_echo_n='print
-rn --'
31602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31603 as_echo='printf %s
\n'
31604 as_echo_n='printf %s
'
31606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31607 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31608 as_echo_n='/usr
/ucb
/echo -n'
31610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31611 as_echo_n_body='eval
31615 expr "X$arg" : "X\\(.*\\)$as_nl";
31616 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31618 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31620 export as_echo_n_body
31621 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31623 export as_echo_body
31624 as_echo='sh
-c $as_echo_body as_echo
'
31627 # The user is always right.
31628 if test "${PATH_SEPARATOR+set}" != set; then
31630 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31631 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31638 # We need space, tab and new line, in precisely that order. Quoting is
31639 # there to prevent editors from complaining about space-tab.
31640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31641 # splitting by setting IFS to empty value.)
31644 # Find who we are. Look in the path if we contain no directory separator.
31647 *[\\/]* ) as_myself=$0 ;;
31648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in $PATH
31652 test -z "$as_dir" && as_dir=.
31653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31659 # We did not find ourselves, most probably we were run as `sh COMMAND'
31660 # in which case we are not to be found in the path.
31661 if test "x$as_myself" = x
; then
31664 if test ! -f "$as_myself"; then
31665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31669 # Unset variables that we do not need and which cause bugs (e.g. in
31670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31671 # suppresses any "Segmentation fault" message there. '((' could
31672 # trigger a bug in pdksh 5.2.14.
31673 for as_var
in BASH_ENV ENV MAIL MAILPATH
31674 do eval test x\
${$as_var+set} = xset \
31675 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31688 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31692 # ----------------------------------------
31693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31695 # script with STATUS, using 1 if that was 0.
31698 as_status
=$1; test $as_status -eq 0 && as_status
=1
31700 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31703 $as_echo "$as_me: error: $2" >&2
31704 as_fn_exit
$as_status
31708 # as_fn_set_status STATUS
31709 # -----------------------
31710 # Set $? to STATUS, without forking.
31711 as_fn_set_status
()
31714 } # as_fn_set_status
31716 # as_fn_exit STATUS
31717 # -----------------
31718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31722 as_fn_set_status
$1
31728 # Portably unset VAR.
31731 { eval $1=; unset $1;}
31733 as_unset
=as_fn_unset
31734 # as_fn_append VAR VALUE
31735 # ----------------------
31736 # Append the text in VALUE to the end of the definition contained in VAR. Take
31737 # advantage of any shell optimizations that allow amortized linear growth over
31738 # repeated appends, instead of the typical quadratic growth present in naive
31740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31741 eval 'as_fn_append ()
31752 # as_fn_arith ARG...
31753 # ------------------
31754 # Perform arithmetic evaluation on the ARGs, and store the result in the
31755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31756 # must be portable across $(()) and expr.
31757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31758 eval 'as_fn_arith ()
31765 as_val
=`expr "$@" || test $? -eq 1`
31770 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31771 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31777 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31778 as_basename
=basename
31783 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31789 as_me
=`$as_basename -- "$0" ||
31790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31791 X"$0" : 'X\(//\)$' \| \
31792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31794 sed '/^.*\/\([^/][^/]*\)\/*$/{
31808 # Avoid depending upon Character Ranges.
31809 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31810 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31811 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31812 as_cr_digits
='0123456789'
31813 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31815 ECHO_C
= ECHO_N
= ECHO_T
=
31816 case `echo -n x` in #(((((
31818 case `echo 'xy\c'` in
31819 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31821 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31828 rm -f conf$$ conf$$.exe conf$$.
file
31829 if test -d conf$$.dir
; then
31830 rm -f conf$$.dir
/conf$$.
file
31833 mkdir conf$$.dir
2>/dev
/null
31835 if (echo >conf$$.
file) 2>/dev
/null
; then
31836 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31838 # ... but there are two gotchas:
31839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31841 # In both cases, we have to default to `cp -pR'.
31842 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31844 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31852 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31853 rmdir conf$$.dir
2>/dev
/null
31858 # Create "$as_dir" as a directory, including parents if necessary.
31863 -*) as_dir
=.
/$as_dir;;
31865 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31869 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31870 *) as_qdir
=$as_dir;;
31872 as_dirs
="'$as_qdir' $as_dirs"
31873 as_dir
=`$as_dirname -- "$as_dir" ||
31874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31875 X"$as_dir" : 'X\(//\)[^/]' \| \
31876 X"$as_dir" : 'X\(//\)$' \| \
31877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31878 $as_echo X"$as_dir" |
31879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31883 /^X\(\/\/\)[^/].*/{
31896 test -d "$as_dir" && break
31898 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31899 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31903 if mkdir
-p .
2>/dev
/null
; then
31904 as_mkdir_p
='mkdir -p "$as_dir"'
31906 test -d .
/-p && rmdir .
/-p
31911 # as_fn_executable_p FILE
31912 # -----------------------
31913 # Test if FILE is an executable regular file.
31914 as_fn_executable_p
()
31916 test -f "$1" && test -x "$1"
31917 } # as_fn_executable_p
31918 as_test_x
='test -x'
31919 as_executable_p
=as_fn_executable_p
31921 # Sed expression to map a string onto a valid CPP name.
31922 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31924 # Sed expression to map a string onto a valid variable name.
31925 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31929 ## ----------------------------------- ##
31930 ## Main body of $CONFIG_STATUS script. ##
31931 ## ----------------------------------- ##
31933 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31936 # Save the log message, to keep $0 and so on meaningful, and to
31937 # report actual input values of CONFIG_FILES etc. instead of their
31938 # values after options handling.
31940 This file was extended by $as_me, which was
31941 generated by GNU Autoconf 2.69. Invocation command line was
31943 CONFIG_FILES = $CONFIG_FILES
31944 CONFIG_HEADERS = $CONFIG_HEADERS
31945 CONFIG_LINKS = $CONFIG_LINKS
31946 CONFIG_COMMANDS = $CONFIG_COMMANDS
31949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31954 case $ac_config_files in *"
31955 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31958 case $ac_config_headers in *"
31959 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31964 # Files that config.status was made for.
31965 config_files="$ac_config_files"
31966 config_headers="$ac_config_headers"
31967 config_links="$ac_config_links"
31968 config_commands="$ac_config_commands"
31972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31974 \`$as_me' instantiates files and other configuration actions
31975 from templates according to the current configuration. Unless the files
31976 and actions are specified as TAGs, all are instantiated by default.
31978 Usage: $0 [OPTION]... [TAG]...
31980 -h, --help print this help, then exit
31981 -V, --version print version number and configuration settings, then exit
31982 --config print configuration, then exit
31983 -q, --quiet, --silent
31984 do not print progress messages
31985 -d, --debug don't remove temporary files
31986 --recheck update $as_me by reconfiguring in the same conditions
31987 --file=FILE[:TEMPLATE]
31988 instantiate the configuration file FILE
31989 --header=FILE[:TEMPLATE]
31990 instantiate the configuration header FILE
31992 Configuration files:
31995 Configuration headers:
31998 Configuration links:
32001 Configuration commands:
32004 Report bugs to the package provider."
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32011 configured by $0, generated by GNU Autoconf 2.69,
32012 with options \\"\$ac_cs_config\\"
32014 Copyright (C) 2012 Free Software Foundation, Inc.
32015 This config.status script is free software; the Free Software Foundation
32016 gives unlimited permission to copy, distribute and modify it."
32021 test -n "\$AWK" || AWK=awk
32024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32025 # The default lists apply if the user does not specify any file.
32031 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32032 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32036 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32048 # Handling of the options.
32049 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32051 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32052 $as_echo "$ac_cs_version"; exit ;;
32053 --config |
--confi |
--conf |
--con |
--co |
--c )
32054 $as_echo "$ac_cs_config"; exit ;;
32055 --debug |
--debu |
--deb |
--de |
--d |
-d )
32057 --file |
--fil |
--fi |
--f )
32060 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32061 '') as_fn_error $?
"missing file argument" ;;
32063 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32064 ac_need_defaults
=false
;;
32065 --header |
--heade |
--head |
--hea )
32068 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32070 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32071 ac_need_defaults
=false
;;
32073 # Conflict between --help and --header
32074 as_fn_error $?
"ambiguous option: \`$1'
32075 Try \`$0 --help' for more information.";;
32076 --help |
--hel |
-h )
32077 $as_echo "$ac_cs_usage"; exit ;;
32078 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32079 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32082 # This is an error.
32083 -*) as_fn_error $?
"unrecognized option: \`$1'
32084 Try \`$0 --help' for more information." ;;
32086 *) as_fn_append ac_config_targets
" $1"
32087 ac_need_defaults
=false
;;
32093 ac_configure_extra_args
=
32095 if $ac_cs_silent; then
32097 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32102 if \$ac_cs_recheck; then
32103 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32105 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32106 CONFIG_SHELL='$SHELL'
32107 export CONFIG_SHELL
32112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32117 ## Running $as_me. ##
32123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32127 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32128 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32135 # Handling of arguments.
32136 for ac_config_target
in $ac_config_targets
32138 case $ac_config_target in
32139 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
32140 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
32141 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
32142 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
32143 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32144 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
32145 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32146 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
32147 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32149 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32154 # If the user did not use the arguments to specify the items to instantiate,
32155 # then the envvar interface is used. Set only those that are not.
32156 # We use the long form for the default assignment because of an extremely
32157 # bizarre bug on SunOS 4.1.3.
32158 if $ac_need_defaults; then
32159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32161 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
32162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32165 # Have a temporary directory for convenience. Make it in the build tree
32166 # simply because there is no reason against having it here, and in addition,
32167 # creating and moving files from /tmp can sometimes cause problems.
32168 # Hook for its removal unless debugging.
32169 # Note that there is a small window in which the directory will not be cleaned:
32170 # after its creation but before its name has been assigned to `$tmp'.
32174 trap 'exit_status=$?
32175 : "${ac_tmp:=$tmp}"
32176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32178 trap 'as_fn_exit 1' 1 2 13 15
32180 # Create a (secure) tmp directory for tmp files.
32183 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32187 tmp
=.
/conf$$
-$RANDOM
32188 (umask 077 && mkdir
"$tmp")
32189 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32192 # Set up the scripts for CONFIG_FILES section.
32193 # No need to generate them if there are no CONFIG_FILES.
32194 # This happens for instance with `./config.status config.h'.
32195 if test -n "$CONFIG_FILES"; then
32197 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
32198 ac_cs_awk_getline
=:
32199 ac_cs_awk_pipe_init
=
32200 ac_cs_awk_read_file
='
32201 while ((getline aline < (F[key])) > 0)
32204 ac_cs_awk_pipe_fini
=
32206 ac_cs_awk_getline
=false
32207 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
32208 ac_cs_awk_read_file
='
32210 print "cat " F[key] " &&"
32211 '$ac_cs_awk_pipe_init
32212 # The final `:' finishes the AND list.
32213 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
32215 ac_cr
=`echo X | tr X '\015'`
32216 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32217 # But we know of no other shell where ac_cr would be empty at this
32218 # point, so we can use a bashism as a fallback.
32219 if test "x$ac_cr" = x
; then
32220 eval ac_cr
=\$
\'\\r
\'
32222 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32223 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32226 ac_cs_awk_cr
=$ac_cr
32229 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32232 # Create commands to substitute file output variables.
32234 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32235 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32236 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
32239 } >conf$
$files.sh
&&
32240 . .
/conf$
$files.sh ||
32241 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
32242 rm -f conf$
$files.sh
32245 echo "cat >conf$$subs.awk <<_ACEOF" &&
32246 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32248 } >conf$$subs.sh ||
32249 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32250 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32252 for ac_last_try in false false false false false :; do
32253 . ./conf$$subs.sh ||
32254 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32256 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32257 if test $ac_delim_n = $ac_delim_num; then
32259 elif $ac_last_try; then
32260 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32262 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32265 rm -f conf$$subs.sh
32267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32268 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32272 s/^/S["/; s
/!.
*/"]=/
32282 s/\(.\{148\}\)..*/\1/
32284 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32289 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32296 s/\(.\{148\}\)..*/\1/
32298 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32302 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32307 ' <conf$$subs.awk | sed '
32312 ' >>$CONFIG_STATUS || ac_write_fail=1
32313 rm -f conf$$subs.awk
32314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32316 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32317 for (key in S) S_is_set[key] = 1
32319 \$ac_cs_awk_pipe_init
32323 nfields = split(line, field, "@
")
32325 len = length(field[1])
32326 for (i = 2; i < nfields; i++) {
32328 keylen = length(key)
32329 if (S_is_set[key]) {
32331 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32332 len += length(value) + length(field[++i])
32337 if (nfields == 3 && !substed) {
32339 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32340 \$ac_cs_awk_read_file
32346 \$ac_cs_awk_pipe_fini
32349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32350 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32351 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32354 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32355 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32358 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32359 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32360 # trailing colons and then remove the whole line if VPATH becomes empty
32361 # (actually we leave an empty line to preserve line numbers).
32362 if test "x
$srcdir" = x.; then
32363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32382 fi # test -n "$CONFIG_FILES"
32384 # Set up the scripts for CONFIG_HEADERS section.
32385 # No need to generate them if there are no CONFIG_HEADERS.
32386 # This happens for instance with `./config.status Makefile'.
32387 if test -n "$CONFIG_HEADERS"; then
32388 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32392 # Transform confdefs.h into an awk script `defines.awk', embedded as
32393 # here-document in config.status, that substitutes the proper values into
32394 # config.h.in to produce config.h.
32396 # Create a delimiter string that does not exist in confdefs.h, to ease
32397 # handling of long lines.
32399 for ac_last_try in false false :; do
32400 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32401 if test -z "$ac_tt"; then
32403 elif $ac_last_try; then
32404 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32406 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32410 # For the awk script, D is an array of macro values keyed by name,
32411 # likewise P contains macro parameters if any. Preserve backslash
32412 # newline sequences.
32414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32416 s/.\{148\}/&'"$ac_delim"'/g
32419 s/^[ ]*#[ ]*define[ ][ ]*/ /
32426 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32428 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32433 D["\
1"]=" \
3\\\\\\n
"\\/p
32435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32440 s/.\{148\}/&'"$ac_delim"'/g
32445 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32448 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32450 ' <confdefs.h | sed '
32451 s/'"$ac_delim"'/"\\\
32452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32455 for (key in D) D_is_set[key] = 1
32458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32460 split(line, arg, " ")
32461 if (arg[1] == "#") {
32465 defundef
= substr
(arg
[1], 2)
32468 split(mac1
, mac2
, "(") #)
32470 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32471 if (D_is_set
[macro
]) {
32472 # Preserve the white space surrounding the "#".
32473 print prefix
"define", macro P
[macro
] D
[macro
]
32476 # Replace #undef with comments. This is necessary, for example,
32477 # in the case of _POSIX_SOURCE, which is predefined and required
32478 # on some systems where configure will not decide to define it.
32479 if (defundef
== "undef") {
32480 print
"/*", prefix defundef
, macro
, "*/"
32488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32489 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32490 fi # test -n "$CONFIG_HEADERS"
32493 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32498 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32500 case $ac_mode$ac_tag in
32502 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32503 :[FH
]-) ac_tag
=-:-;;
32504 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32521 -) ac_f
="$ac_tmp/stdin";;
32522 *) # Look for the file first in the build tree, then in the source tree
32523 # (if the path is not absolute). The absolute path cannot be DOS-style,
32524 # because $ac_f cannot contain `:'.
32528 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32530 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32532 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32533 as_fn_append ac_file_inputs
" '$ac_f'"
32536 # Let's still pretend it is `configure' which instantiates (i.e., don't
32537 # use $as_me), people would be surprised to read:
32538 # /* config.h. Generated by config.status. */
32539 configure_input
='Generated from '`
32540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32542 if test x
"$ac_file" != x-
; then
32543 configure_input
="$ac_file. $configure_input"
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32545 $as_echo "$as_me: creating $ac_file" >&6;}
32547 # Neutralize special characters interpreted by sed in replacement strings.
32548 case $configure_input in #(
32549 *\
&* |
*\|
* |
*\\* )
32550 ac_sed_conf_input
=`$as_echo "$configure_input" |
32551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32552 *) ac_sed_conf_input
=$configure_input;;
32556 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32557 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32562 ac_dir
=`$as_dirname -- "$ac_file" ||
32563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32564 X"$ac_file" : 'X\(//\)[^/]' \| \
32565 X"$ac_file" : 'X\(//\)$' \| \
32566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32567 $as_echo X"$ac_file" |
32568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32572 /^X\(\/\/\)[^/].*/{
32585 as_dir
="$ac_dir"; as_fn_mkdir_p
32589 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32591 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32592 # A ".." for each directory in $ac_dir_suffix.
32593 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32594 case $ac_top_builddir_sub in
32595 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32596 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32599 ac_abs_top_builddir
=$ac_pwd
32600 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32601 # for backward compatibility:
32602 ac_top_builddir
=$ac_top_build_prefix
32605 .
) # We are building in place.
32607 ac_top_srcdir
=$ac_top_builddir_sub
32608 ac_abs_top_srcdir
=$ac_pwd ;;
32609 [\\/]* | ?
:[\\/]* ) # Absolute name.
32610 ac_srcdir
=$srcdir$ac_dir_suffix;
32611 ac_top_srcdir
=$srcdir
32612 ac_abs_top_srcdir
=$srcdir ;;
32613 *) # Relative name.
32614 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32615 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32616 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32618 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32630 # If the template does not know about datarootdir, expand it.
32631 # FIXME: This hack should be removed a few years after 2.60.
32632 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32644 *datarootdir
*) ac_datarootdir_seen
=yes;;
32645 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32650 ac_datarootdir_hack='
32651 s&@datadir@&$datadir&g
32652 s&@docdir@&$docdir&g
32653 s&@infodir@&$infodir&g
32654 s&@localedir@&$localedir&g
32655 s&@mandir@&$mandir&g
32656 s&\\\${datarootdir}&$datarootdir&g' ;;
32660 # Neutralize VPATH when `$srcdir' = `.'.
32661 # Shell code in configure.ac might set extrasub.
32662 # FIXME: do we really want to maintain this feature?
32663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32664 ac_sed_extra="$ac_vpsub
32667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32669 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32670 s|@configure_input@|
$ac_sed_conf_input|
;t t
32671 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32672 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32673 s
&@srcdir@
&$ac_srcdir&;t t
32674 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32675 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32676 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32677 s
&@builddir@
&$ac_builddir&;t t
32678 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32679 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32680 $ac_datarootdir_hack
32682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32683 if $ac_cs_awk_getline; then
32684 $AWK -f "$ac_tmp/subs.
awk"
32686 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32688 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32693 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32695 which seems to be undefined. Please make sure it is defined" >&5
32696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32697 which seems to be undefined. Please make sure it is defined" >&2;}
32699 rm -f "$ac_tmp/stdin"
32701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32710 if test x"$ac_file" != x-; then
32712 $as_echo "/* $configure_input */" \
32713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32714 } >"$ac_tmp/config.h" \
32715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32721 mv "$ac_tmp/config.h" "$ac_file" \
32722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32725 $as_echo "/* $configure_input */" \
32726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32727 || as_fn_error $? "could not create -" "$LINENO" 5
32735 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32738 # Prefer the file from the source tree if names are identical.
32739 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32740 ac_source=$srcdir/$ac_source
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32744 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32746 if test ! -r "$ac_source"; then
32747 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32751 # Try a relative symlink, then a hard link, then a copy.
32753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32754 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32757 ln "$ac_source" "$ac_file" 2>/dev/null ||
32758 cp -p "$ac_source" "$ac_file" ||
32759 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32763 $as_echo "$as_me: executing $ac_file commands" >&6;}
32768 case $ac_file$ac_mode in
32769 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32771 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32772 for lang in $subdirs c-family common analyzer
32774 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32776 "as":F) chmod +x as ;;
32777 "collect-ld":F) chmod +x collect-ld ;;
32778 "nm":F) chmod +x nm ;;
32780 case ${CONFIG_HEADERS} in
32781 *auto-host.h:config.in*)
32784 # Make sure all the subdirs exist.
32785 for d in $subdirs doc build common c-family
32787 test -d $d || mkdir $d
32797 ac_clean_files=$ac_clean_files_save
32799 test $ac_write_fail = 0 ||
32800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32803 # configure is writing to config.log, and then calls config.status.
32804 # config.status does its own redirection, appending to config.log.
32805 # Unfortunately, on DOS this fails, as config.log is still kept open
32806 # by configure, so config.status won't be able to
write to it
; its
32807 # output is simply discarded. So we exec the FD to /dev/null,
32808 # effectively closing config.log, so it can be properly (re)opened and
32809 # appended to by config.status. When coming back to configure, we
32810 # need to make the FD available again.
32811 if test "$no_create" != yes; then
32813 ac_config_status_args
=
32814 test "$silent" = yes &&
32815 ac_config_status_args
="$ac_config_status_args --quiet"
32817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32820 # would make configure fail if this is the last instruction.
32821 $ac_cs_success || as_fn_exit
1
32823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32825 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}