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
661 common_out_object_file
677 gcc_gxx_include_dir_add_sysroot
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
687 TM_MULTILIB_EXCEPTIONS_CONFIG
697 build_xm_include_list
699 build_install_headers_dir
701 all_selected_languages
719 ld_version_script_option
724 ORIGINAL_NM_FOR_TARGET
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 ORIGINAL_AS_FOR_TARGET
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
760 BUILD_SYSTEM_HEADER_DIR
780 NATIVE_SYSTEM_HEADER_DIR
815 omp_device_property_deps
816 omp_device_properties
818 real_target_noncanonical
819 enable_as_accelerator
821 DOCUMENTATION_ROOT_URL
836 valgrind_path_defines
866 CROSS_SYSTEM_HEADER_DIR
867 TARGET_SYSTEM_ROOT_DEFINE
869 SYSROOT_CFLAGS_FOR_TARGET
915 program_transform_name
926 ac_subst_files
='option_includes
929 enable_option_checking
932 with_native_system_header_dir
937 enable_generated_files_in_srcdir
944 enable_build_format_warnings
948 enable_gather_detailed_mem_stats
949 enable_valgrind_annotations
953 with_stack_clash_protection_guard_size
967 with_documentation_root_url
975 enable_sjlj_exceptions
976 with_gcc_major_version_only
978 enable_mingw_wildcard
979 enable_large_address_aware
980 enable_leading_mingw64_underscores
983 enable_win32_registry
991 enable_gnu_indirect_function
992 enable_initfini_array
994 enable_newlib_nano_formatted_io
995 enable_standard_branch_protection
996 enable_fix_cortex_a53_835769
997 enable_fix_cortex_a53_843419
999 enable_gnu_unique_object
1000 enable_linker_build_id
1003 with_long_double_128
1004 with_long_double_format
1007 enable_maintainer_mode
1009 enable_version_specific_runtime_libs
1012 enable_libquadmath_support
1013 with_linker_hash_style
1014 with_diagnostics_color
1017 ac_precious_vars
='build_alias
1036 # Initialize some variables set by options.
1038 ac_init_version
=false
1039 ac_unrecognized_opts
=
1040 ac_unrecognized_sep
=
1041 # The variables have the same names as the options, with
1042 # dashes changed to underlines.
1043 cache_file
=/dev
/null
1050 program_transform_name
=s
,x
,x
,
1058 # Installation directory options.
1059 # These are left unexpanded so users can "make install exec_prefix=/foo"
1060 # and all the variables that are supposed to be based on exec_prefix
1061 # by default will actually change.
1062 # Use braces instead of parens because sh, perl, etc. also accept them.
1063 # (The list follows the same order as the GNU Coding Standards.)
1064 bindir
='${exec_prefix}/bin'
1065 sbindir
='${exec_prefix}/sbin'
1066 libexecdir
='${exec_prefix}/libexec'
1067 datarootdir
='${prefix}/share'
1068 datadir
='${datarootdir}'
1069 sysconfdir
='${prefix}/etc'
1070 sharedstatedir
='${prefix}/com'
1071 localstatedir
='${prefix}/var'
1072 includedir
='${prefix}/include'
1073 oldincludedir
='/usr/include'
1074 docdir
='${datarootdir}/doc/${PACKAGE}'
1075 infodir
='${datarootdir}/info'
1080 libdir
='${exec_prefix}/lib'
1081 localedir
='${datarootdir}/locale'
1082 mandir
='${datarootdir}/man'
1088 # If the previous option needs an argument, assign it.
1089 if test -n "$ac_prev"; then
1090 eval $ac_prev=\
$ac_option
1096 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101 # Accept the important Cygnus configure options, so we can diagnose typos.
1103 case $ac_dashdash$ac_option in
1107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1110 bindir
=$ac_optarg ;;
1112 -build |
--build |
--buil |
--bui |
--bu)
1113 ac_prev
=build_alias
;;
1114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1115 build_alias
=$ac_optarg ;;
1117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1119 ac_prev
=cache_file
;;
1120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1122 cache_file
=$ac_optarg ;;
1124 --config-cache |
-C)
1125 cache_file
=config.cache
;;
1127 -datadir |
--datadir |
--datadi |
--datad)
1129 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1130 datadir
=$ac_optarg ;;
1132 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1133 |
--dataroo |
--dataro |
--datar)
1134 ac_prev
=datarootdir
;;
1135 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1136 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1137 datarootdir
=$ac_optarg ;;
1139 -disable-* |
--disable-*)
1140 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 as_fn_error $?
"invalid feature name: $ac_useropt"
1144 ac_useropt_orig
=$ac_useropt
1145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "enable_
$ac_useropt"
1150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151 ac_unrecognized_sep
=', ';;
1153 eval enable_
$ac_useropt=no
;;
1155 -docdir |
--docdir |
--docdi |
--doc |
--do)
1157 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1158 docdir
=$ac_optarg ;;
1160 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1162 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1163 dvidir
=$ac_optarg ;;
1165 -enable-* |
--enable-*)
1166 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1169 as_fn_error $?
"invalid feature name: $ac_useropt"
1170 ac_useropt_orig
=$ac_useropt
1171 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "enable_
$ac_useropt"
1176 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177 ac_unrecognized_sep
=', ';;
1179 eval enable_
$ac_useropt=\
$ac_optarg ;;
1181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1183 |
--exec |
--exe |
--ex)
1184 ac_prev
=exec_prefix
;;
1185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1187 |
--exec=* |
--exe=* |
--ex=*)
1188 exec_prefix
=$ac_optarg ;;
1190 -gas |
--gas |
--ga |
--g)
1191 # Obsolete; use --with-gas.
1194 -help |
--help |
--hel |
--he |
-h)
1195 ac_init_help
=long
;;
1196 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1197 ac_init_help
=recursive
;;
1198 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1199 ac_init_help
=short
;;
1201 -host |
--host |
--hos |
--ho)
1202 ac_prev
=host_alias
;;
1203 -host=* |
--host=* |
--hos=* |
--ho=*)
1204 host_alias
=$ac_optarg ;;
1206 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1208 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1210 htmldir
=$ac_optarg ;;
1212 -includedir |
--includedir |
--includedi |
--included |
--include \
1213 |
--includ |
--inclu |
--incl |
--inc)
1214 ac_prev
=includedir
;;
1215 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1216 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1217 includedir
=$ac_optarg ;;
1219 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1221 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1222 infodir
=$ac_optarg ;;
1224 -libdir |
--libdir |
--libdi |
--libd)
1226 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1227 libdir
=$ac_optarg ;;
1229 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1230 |
--libexe |
--libex |
--libe)
1231 ac_prev
=libexecdir
;;
1232 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1233 |
--libexe=* |
--libex=* |
--libe=*)
1234 libexecdir
=$ac_optarg ;;
1236 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1237 ac_prev
=localedir
;;
1238 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1239 localedir
=$ac_optarg ;;
1241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1242 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1243 ac_prev
=localstatedir
;;
1244 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1245 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1246 localstatedir
=$ac_optarg ;;
1248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1251 mandir
=$ac_optarg ;;
1253 -nfp |
--nfp |
--nf)
1254 # Obsolete; use --without-fp.
1257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1258 |
--no-cr |
--no-c |
-n)
1261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1267 |
--oldin |
--oldi |
--old |
--ol |
--o)
1268 ac_prev
=oldincludedir
;;
1269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1272 oldincludedir
=$ac_optarg ;;
1274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1277 prefix
=$ac_optarg ;;
1279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1280 |
--program-pre |
--program-pr |
--program-p)
1281 ac_prev
=program_prefix
;;
1282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1284 program_prefix
=$ac_optarg ;;
1286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1287 |
--program-suf |
--program-su |
--program-s)
1288 ac_prev
=program_suffix
;;
1289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1291 program_suffix
=$ac_optarg ;;
1293 -program-transform-name |
--program-transform-name \
1294 |
--program-transform-nam |
--program-transform-na \
1295 |
--program-transform-n |
--program-transform- \
1296 |
--program-transform |
--program-transfor \
1297 |
--program-transfo |
--program-transf \
1298 |
--program-trans |
--program-tran \
1299 |
--progr-tra |
--program-tr |
--program-t)
1300 ac_prev
=program_transform_name
;;
1301 -program-transform-name=* |
--program-transform-name=* \
1302 |
--program-transform-nam=* |
--program-transform-na=* \
1303 |
--program-transform-n=* |
--program-transform-=* \
1304 |
--program-transform=* |
--program-transfor=* \
1305 |
--program-transfo=* |
--program-transf=* \
1306 |
--program-trans=* |
--program-tran=* \
1307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1308 program_transform_name
=$ac_optarg ;;
1310 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1312 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1313 pdfdir
=$ac_optarg ;;
1315 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1317 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1321 |
-silent |
--silent |
--silen |
--sile |
--sil)
1324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1328 sbindir
=$ac_optarg ;;
1330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1334 ac_prev
=sharedstatedir
;;
1335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1339 sharedstatedir
=$ac_optarg ;;
1341 -site |
--site |
--sit)
1343 -site=* |
--site=* |
--sit=*)
1346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1349 srcdir
=$ac_optarg ;;
1351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1353 ac_prev
=sysconfdir
;;
1354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1356 sysconfdir
=$ac_optarg ;;
1358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1359 ac_prev
=target_alias
;;
1360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1361 target_alias
=$ac_optarg ;;
1363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1366 -version |
--version |
--versio |
--versi |
--vers |
-V)
1367 ac_init_version
=: ;;
1370 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1373 as_fn_error $?
"invalid package name: $ac_useropt"
1374 ac_useropt_orig
=$ac_useropt
1375 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376 case $ac_user_opts in
1380 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1381 ac_unrecognized_sep
=', ';;
1383 eval with_
$ac_useropt=\
$ac_optarg ;;
1385 -without-* |
--without-*)
1386 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1389 as_fn_error $?
"invalid package name: $ac_useropt"
1390 ac_useropt_orig
=$ac_useropt
1391 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1396 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1397 ac_unrecognized_sep
=', ';;
1399 eval with_
$ac_useropt=no
;;
1402 # Obsolete; use --with-x.
1405 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1406 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1407 ac_prev
=x_includes
;;
1408 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1409 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1410 x_includes
=$ac_optarg ;;
1412 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1413 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1414 ac_prev
=x_libraries
;;
1415 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1416 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1417 x_libraries
=$ac_optarg ;;
1419 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1420 Try \`$0 --help' for more information"
1424 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1425 # Reject names that are not valid shell variable names.
1426 case $ac_envvar in #(
1427 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1428 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1430 eval $ac_envvar=\
$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1437 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1444 if test -n "$ac_prev"; then
1445 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1446 as_fn_error $?
"missing argument to $ac_option"
1449 if test -n "$ac_unrecognized_opts"; then
1450 case $enable_option_checking in
1452 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1453 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1457 # Check all directory arguments for consistency.
1458 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1459 datadir sysconfdir sharedstatedir localstatedir includedir \
1460 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1461 libdir localedir mandir
1463 eval ac_val
=\$
$ac_var
1464 # Remove trailing slashes.
1467 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1468 eval $ac_var=\
$ac_val;;
1470 # Be sure to have absolute directory names.
1472 [\\/$
]* | ?
:[\\/]* ) continue;;
1473 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1475 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1478 # There might be people who depend on the old broken behavior: `$host'
1479 # used to hold the argument of --host etc.
1480 # FIXME: To remove some day.
1483 target
=$target_alias
1485 # FIXME: To remove some day.
1486 if test "x$host_alias" != x
; then
1487 if test "x$build_alias" = x
; then
1488 cross_compiling
=maybe
1489 elif test "x$build_alias" != "x$host_alias"; then
1495 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1497 test "$silent" = yes && exec 6>/dev
/null
1500 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1501 ac_ls_di
=`ls -di .` &&
1502 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1503 as_fn_error $?
"working directory cannot be determined"
1504 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1505 as_fn_error $?
"pwd does not report name of working directory"
1508 # Find the source files, if location was not specified.
1509 if test -z "$srcdir"; then
1510 ac_srcdir_defaulted
=yes
1511 # Try the directory containing this script, then the parent directory.
1512 ac_confdir
=`$as_dirname -- "$as_myself" ||
1513 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1514 X"$as_myself" : 'X\(//\)[^/]' \| \
1515 X"$as_myself" : 'X\(//\)$' \| \
1516 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1517 $as_echo X"$as_myself" |
1518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1540 ac_srcdir_defaulted
=no
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1544 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1546 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1548 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1550 # When building in place, set srcdir=.
1551 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554 # Remove unnecessary trailing slashes from srcdir.
1555 # Double slashes in file names in object file debugging info
1556 # mess up M-x gdb in Emacs.
1558 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1560 for ac_var
in $ac_precious_vars; do
1561 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1562 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1563 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1564 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1568 # Report the --help message.
1570 if test "$ac_init_help" = "long"; then
1571 # Omit some internal or obsolete options to make the list less imposing.
1572 # This message is too long to be a string in the A/UX 3.1 sh.
1574 \`configure' configures this package to adapt to many kinds of systems.
1576 Usage: $0 [OPTION]... [VAR=VALUE]...
1578 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1579 VAR=VALUE. See below for descriptions of some of the useful variables.
1581 Defaults for the options are specified in brackets.
1584 -h, --help display this help and exit
1585 --help=short display options specific to this package
1586 --help=recursive display the short help of all the included packages
1587 -V, --version display version information and exit
1588 -q, --quiet, --silent do not print \`checking ...' messages
1589 --cache-file=FILE cache test results in FILE [disabled]
1590 -C, --config-cache alias for \`--cache-file=config.cache'
1591 -n, --no-create do not create output files
1592 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1594 Installation directories:
1595 --prefix=PREFIX install architecture-independent files in PREFIX
1596 [$ac_default_prefix]
1597 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1600 By default, \`make install' will install all the files in
1601 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1602 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1603 for instance \`--prefix=\$HOME'.
1605 For better control, use the options below.
1607 Fine tuning of the installation directories:
1608 --bindir=DIR user executables [EPREFIX/bin]
1609 --sbindir=DIR system admin executables [EPREFIX/sbin]
1610 --libexecdir=DIR program executables [EPREFIX/libexec]
1611 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1612 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1613 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1614 --libdir=DIR object code libraries [EPREFIX/lib]
1615 --includedir=DIR C header files [PREFIX/include]
1616 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1617 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1619 --infodir=DIR info documentation [DATAROOTDIR/info]
1620 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1621 --mandir=DIR man documentation [DATAROOTDIR/man]
1622 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1623 --htmldir=DIR html documentation [DOCDIR]
1624 --dvidir=DIR dvi documentation [DOCDIR]
1625 --pdfdir=DIR pdf documentation [DOCDIR]
1626 --psdir=DIR ps documentation [DOCDIR]
1632 --program-prefix=PREFIX prepend PREFIX to installed program names
1633 --program-suffix=SUFFIX append SUFFIX to installed program names
1634 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1637 --build=BUILD configure
for building on BUILD
[guessed
]
1638 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1639 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1643 if test -n "$ac_init_help"; then
1648 --disable-option-checking ignore unrecognized
--enable/--with options
1649 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1650 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1651 --enable-generated-files-in-srcdir
1652 put copies of generated files
in source dir intended
1653 for creating
source tarballs
for users without
1654 texinfo bison or flex
1655 --disable-largefile omit support
for large files
1656 --disable-build-format-warnings
1657 don
't use -Wformat while building GCC
1658 --enable-werror-always enable -Werror despite compiler version
1659 --enable-checking[=LIST]
1660 enable expensive run-time checks. With LIST, enable
1661 only specific categories of checks. Categories are:
1662 yes,no,all,none,release. Flags are:
1663 assert,df,extra,fold,gc,gcac,gimple,misc,
1664 rtlflag,rtl,runtime,tree,valgrind,types
1665 --enable-coverage[=LEVEL]
1666 enable compiler's code coverage collection. Use to
1667 measure compiler performance and
locate unused parts
1668 of the compiler. With LEVEL
, specify optimization.
1669 Values are opt
, noopt
, default is noopt
1670 --enable-gather-detailed-mem-stats
1671 enable detailed memory allocation stats gathering
1672 --enable-valgrind-annotations
1673 enable valgrind runtime interaction
1674 --enable-multilib enable library support
for multiple ABIs
1675 --enable-multiarch enable support
for multiarch paths
1676 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1677 --enable-decimal-float={no
,yes,bid
,dpd
}
1678 enable decimal float extension to C. Selecting
'bid'
1679 or
'dpd' choses
which decimal floating point format
1681 --enable-fixed-point enable fixed-point arithmetic extension to C
1682 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1684 --enable-tls enable or disable generation of tls code overriding
1685 the assembler check
for tls support
1686 --enable-vtable-verify enable vtable verification feature
1687 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1688 GNU Objective-C runtime
1689 --disable-shared don't provide a shared libgcc
1690 --disable-gcov don
't provide libgcov and related host tools
1691 --enable-languages=LIST specify which front-ends to build
1692 --disable-rpath do not hardcode runtime library paths
1693 --enable-sjlj-exceptions
1694 arrange to use setjmp/longjmp exception handling
1695 --enable-secureplt enable -msecure-plt by default for PowerPC
1696 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1697 Default to platform configuration
1698 --enable-large-address-aware
1699 Link mingw executables with --large-address-aware
1700 --enable-leading-mingw64-underscores
1701 enable leading underscores on 64 bit mingw targets
1702 --enable-cld enable -mcld by default for 32bit x86
1703 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1704 --disable-win32-registry
1705 disable lookup of installation paths in the Registry
1707 --enable-win32-registry enable registry lookup (default)
1708 --enable-win32-registry=KEY
1709 use KEY instead of GCC version as the last portion
1711 --enable-shared[=PKGS] build shared libraries [default=yes]
1712 --enable-static[=PKGS] build static libraries [default=yes]
1713 --enable-fast-install[=PKGS]
1714 optimize for fast installation [default=yes]
1715 --disable-libtool-lock avoid locking (might break parallel builds)
1716 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1717 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1718 --enable-gnu-indirect-function
1719 enable the use of the @gnu_indirect_function to
1721 --enable-initfini-array use .init_array/.fini_array sections
1722 --enable-comdat enable COMDAT group support
1723 --enable-newlib-nano-formatted-io
1724 Use nano version formatted IO
1726 --enable-standard-branch-protection
1727 enable Branch Target Identification Mechanism and
1728 Return Address Signing by default for AArch64
1729 --disable-standard-branch-protection
1730 disable Branch Target Identification Mechanism and
1731 Return Address Signing by default for AArch64
1734 --enable-fix-cortex-a53-835769
1735 enable workaround for AArch64 Cortex-A53 erratum
1737 --disable-fix-cortex-a53-835769
1738 disable workaround for AArch64 Cortex-A53 erratum
1742 --enable-fix-cortex-a53-843419
1743 enable workaround for AArch64 Cortex-A53 erratum
1745 --disable-fix-cortex-a53-843419
1746 disable workaround for AArch64 Cortex-A53 erratum
1749 --enable-gnu-unique-object
1750 enable the use of the @gnu_unique_object ELF
1751 extension on glibc systems
1752 --enable-linker-build-id
1753 compiler will always pass --build-id to linker
1754 --enable-libssp enable linking against libssp
1755 --enable-default-ssp enable Stack Smashing Protection as default
1756 --enable-maintainer-mode
1757 enable make rules and dependencies not useful (and
1758 sometimes confusing) to the casual installer
1759 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1760 thrashing on the build machine
1761 --enable-version-specific-runtime-libs
1762 specify that runtime libraries should be installed
1763 in a compiler-specific directory
1764 --enable-plugin enable plugin support
1765 --enable-host-shared build host code as shared libraries
1766 --disable-libquadmath-support
1767 disable libquadmath support for Fortran
1768 --enable-default-pie enable Position Independent Executable as default
1771 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1772 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1773 --with-build-libsubdir=DIR Directory where to find libraries for build system
1774 --with-local-prefix=DIR specifies directory to put local include
1775 --with-native-system-header-dir=dir
1776 use dir as the directory to look for standard
1777 system header files in. Defaults to /usr/include.
1778 --with-build-sysroot=sysroot
1779 use sysroot as the system root during the build
1780 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1781 --with-gxx-include-dir=DIR
1782 specifies directory to put g++ header files
1783 --with-cpp-install-dir=DIR
1784 install the user visible C preprocessor in DIR
1785 (relative to PREFIX) as well as PREFIX/bin
1786 --with-gnu-ld arrange to work with GNU ld
1787 --with-ld arrange to use the specified ld (full pathname)
1788 --with-demangler-in-ld try to use demangler in GNU ld
1789 --with-gnu-as arrange to work with GNU as
1790 --with-as arrange to use the specified as (full pathname)
1791 --with-stabs arrange to use stabs instead of host debug format
1792 --with-stack-clash-protection-guard-size=size
1793 Set the default stack clash protection guard size
1794 for specific targets as a power of two in bytes.
1795 --with-dwarf2 force the default debug format to be DWARF 2
1796 --with-specs=SPECS add SPECS to driver command-line processing
1797 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1798 --with-bugurl=URL Direct users to URL to report a bug
1799 --with-documentation-root-url=URL
1800 Root for documentation URLs
1801 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1802 --with-zstd=PATH specify prefix directory for installed zstd library.
1803 Equivalent to --with-zstd-include=PATH/include plus
1804 --with-zstd-lib=PATH/lib
1805 --with-zstd-include=PATH
1806 specify directory for installed zstd include files
1807 --with-zstd-lib=PATH specify directory for the installed zstd library
1808 --with-gnu-ld assume the C compiler uses GNU ld default=no
1809 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1810 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1811 --with-gcc-major-version-only
1812 use only GCC major number
in filesystem paths
1813 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1815 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1816 --with-plugin-ld=[ARG
] specify the plugin linker
1817 --with-glibc-version=M.N
1818 assume GCC used with glibc version M.N or later
1819 --with-long-double-128 use
128-bit long double by default
1820 --with-long-double-format={ieee
,ibm
}
1821 Specify whether PowerPC long double uses IEEE or IBM format
1823 --with-gc={page
,zone
} this option is not supported anymore. It used to
1824 choose the garbage collection mechanism to use with
1826 --with-system-zlib use installed libz
1827 --with-linker-hash-style={sysv
,gnu
,both
}
1828 specify the linker
hash style
1829 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1830 specify the default of
-fdiagnostics-color option
1831 auto-if-env stands
for -fdiagnostics-color=auto
if
1832 GCC_COLOR environment variable is present and
1833 -fdiagnostics-color=never otherwise
1835 Some influential environment variables
:
1836 CC C compiler
command
1837 CFLAGS C compiler flags
1838 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1839 nonstandard directory
<lib dir
>
1840 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1841 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1842 you have headers
in a nonstandard directory
<include dir
>
1843 CXX C
++ compiler
command
1844 CXXFLAGS C
++ compiler flags
1845 CXXCPP C
++ preprocessor
1847 GMPLIBS How to link GMP
1848 GMPINC How to
find GMP include files
1849 ISLLIBS How to link isl
1850 ISLINC How to
find isl include files
1852 Use these variables to override the choices made by
`configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1855 Report bugs to the package provider.
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1885 .) # We are building in place.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1919 generated by GNU Autoconf 2.69
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1942 *) ac_try_echo
=$ac_try;;
1944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1948 if test -s conftest.err
; then
1949 grep -v '^ *+' conftest.err
>conftest.er1
1950 cat conftest.er1
>&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.
$ac_objext; then :
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.
$ac_ext >&5
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status
$ac_retval
1968 } # ac_fn_c_try_compile
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile
()
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 rm -f conftest.
$ac_objext
1977 if { { ac_try
="$ac_compile"
1979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_cxx_try_compile
2008 # ac_fn_cxx_try_cpp LINENO
2009 # ------------------------
2010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_cpp ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_cpp conftest.$ac_ext"
2016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2017 *) ac_try_echo
=$ac_try;;
2019 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2023 if test -s conftest.err
; then
2024 grep -v '^ *+' conftest.err
>conftest.er1
2025 cat conftest.er1
>&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } > conftest.i
&& {
2030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.
$ac_ext >&5
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status
$ac_retval
2043 } # ac_fn_cxx_try_cpp
2045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # ---------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2050 ac_fn_cxx_check_header_mongrel
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if eval \
${$3+:} false
; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \
${$3+:} false
; then :
2057 $as_echo_n "(cached) " >&6
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2071 if ac_fn_cxx_try_compile
"$LINENO"; then :
2072 ac_header_compiler
=yes
2074 ac_header_compiler
=no
2076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2088 ac_header_preproc
=yes
2090 ac_header_preproc
=no
2092 rm -f conftest.err conftest.i conftest.
$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \
${$3+:} false
; then :
2120 $as_echo_n "(cached) " >&6
2122 eval "$3=\$ac_header_compiler"
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_cxx_check_header_mongrel
2132 # ac_fn_cxx_try_run LINENO
2133 # ------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2135 # that executables *can* be run.
2136 ac_fn_cxx_try_run
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 if { { ac_try
="$ac_link"
2141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>&5
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2150 { { case "(($ac_try" in
2151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2152 *) ac_try_echo
=$ac_try;;
2154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_try") 2>&5
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; }; }; then :
2162 $as_echo "$as_me: program exited with status $ac_status" >&5
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.
$ac_ext >&5
2166 ac_retval
=$ac_status
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status
$ac_retval
2172 } # ac_fn_cxx_try_run
2174 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2175 # ---------------------------------------------------------
2176 # Tests whether HEADER exists and can be compiled using the include files in
2177 # INCLUDES, setting the cache variable VAR accordingly.
2178 ac_fn_cxx_check_header_compile
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \
${$3+:} false
; then :
2184 $as_echo_n "(cached) " >&6
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2191 if ac_fn_cxx_try_compile
"$LINENO"; then :
2196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_cxx_check_header_compile
2205 # ac_fn_c_try_cpp LINENO
2206 # ----------------------
2207 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2211 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } > conftest.i && {
2227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2228 test ! -s conftest.err
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2242 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2243 # ----------------------------------------------
2244 # Tries to find the compile-time value of EXPR in a program that includes
2245 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2247 ac_fn_cxx_compute_int ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) >= 0)];
2260 return test_array [0];
2266 if ac_fn_cxx_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2284 ac_hi=$ac_mid; break
2286 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2287 if test $ac_lo -le $ac_mid; then
2291 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2302 static int test_array [1 - 2 * !(($2) < 0)];
2304 return test_array [0];
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2321 return test_array [0];
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 ac_lo=$ac_mid; break
2330 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331 if test $ac_mid -le $ac_hi; then
2335 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 return test_array [0];
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2365 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2385 FILE *f = fopen ("conftest.val", "w");
2390 long int i = longval ();
2393 fprintf (f, "%ld", i);
2397 unsigned long int i = ulongval ();
2400 fprintf (f, "%lu", i);
2402 /* Do not output a trailing newline, as this causes \r\n confusion
2403 on some platforms. */
2404 return ferror (f) || fclose (f) != 0;
2410 if ac_fn_cxx_try_run "$LINENO"; then :
2411 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416 conftest.$ac_objext conftest.beam conftest.$ac_ext
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_cxx_compute_int
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if eval \${$3+:} false; then :
2435 $as_echo_n "(cached) " >&6
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 } # ac_fn_cxx_check_type
2479 # ac_fn_c_find_intX_t LINENO BITS VAR
2480 # -----------------------------------
2481 # Finds a signed integer type with width BITS, setting cache variable VAR
2483 ac_fn_c_find_intX_t ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2487 $as_echo_n "checking for int$2_t... " >&6; }
2488 if eval \${$3+:} false; then :
2489 $as_echo_n "(cached) " >&6
2492 # Order is important - never check a type that is potentially smaller
2493 # than half of the expected target width.
2494 for ac_type in int$2_t 'int' 'long int' \
2495 'long long int' 'short int' 'signed char'; do
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $ac_includes_default
2499 enum { N = $2 / 2 - 1 };
2503 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2505 return test_array [0];
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $ac_includes_default
2515 enum { N = $2 / 2 - 1 };
2519 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2520 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2522 return test_array [0];
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2535 eval "$3=\$ac_type" ;;
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if eval test \"x\$"$3"\" = x"no"; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553 } # ac_fn_c_find_intX_t
2555 # ac_fn_cxx_try_link LINENO
2556 # -------------------------
2557 # Try to link conftest.$ac_ext, and return whether this succeeded.
2558 ac_fn_cxx_try_link ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2565 *) ac_try_echo
=$ac_try;;
2567 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2571 if test -s conftest.err
; then
2572 grep -v '^ *+' conftest.err
>conftest.er1
2573 cat conftest.er1
>&5
2574 mv -f conftest.er1 conftest.err
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest
$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 test -x conftest
$ac_exeext
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.
$ac_ext >&5
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 as_fn_set_status
$ac_retval
2599 } # ac_fn_cxx_try_link
2601 # ac_fn_c_find_uintX_t LINENO BITS VAR
2602 # ------------------------------------
2603 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2605 ac_fn_c_find_uintX_t
()
2607 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2609 $as_echo_n "checking for uint$2_t... " >&6; }
2610 if eval \
${$3+:} false
; then :
2611 $as_echo_n "(cached) " >&6
2614 # Order is important - never check a type that is potentially smaller
2615 # than half of the expected target width.
2616 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2617 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 $ac_includes_default
2624 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2626 return test_array [0];
2632 if ac_fn_cxx_try_compile
"$LINENO"; then :
2637 eval "$3=\$ac_type" ;;
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2641 if eval test \"x\$
"$3"\" = x
"no"; then :
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_find_uintX_t
2655 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2656 # ------------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_cxx_check_header_preproc
()
2660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \
${$3+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2670 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2675 rm -f conftest.err conftest.i conftest.
$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2682 } # ac_fn_cxx_check_header_preproc
2684 # ac_fn_cxx_check_func LINENO FUNC VAR
2685 # ------------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_cxx_check_func
()
2689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if eval \
${$3+:} false
; then :
2693 $as_echo_n "(cached) " >&6
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2707 # include <limits.h>
2709 # include <assert.h>
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2736 if ac_fn_cxx_try_link
"$LINENO"; then :
2741 rm -f core conftest.err conftest.
$ac_objext \
2742 conftest
$ac_exeext conftest.
$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2749 } # ac_fn_cxx_check_func
2751 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2752 # -----------------------------------------------
2753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2755 ac_fn_cxx_check_decl
()
2757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2758 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2759 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2762 if eval \
${$3+:} false
; then :
2763 $as_echo_n "(cached) " >&6
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2771 #ifndef $as_decl_name
2773 (void) $as_decl_use;
2775 (void) $as_decl_name;
2783 if ac_fn_cxx_try_compile
"$LINENO"; then :
2788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_decl
2797 # ac_fn_c_try_link LINENO
2798 # -----------------------
2799 # Try to link conftest.$ac_ext, and return whether this succeeded.
2802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2803 rm -f conftest.
$ac_objext conftest
$ac_exeext
2804 if { { ac_try
="$ac_link"
2806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>conftest.err
2813 if test -s conftest.err; then
2814 grep -v '^ *+' conftest.err >conftest.er1
2815 cat conftest.er1 >&5
2816 mv -f conftest.er1 conftest.err
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; } && {
2820 test -z "$ac_c_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest$ac_exeext && {
2823 test "$cross_compiling" = yes ||
2824 test -x conftest$ac_exeext
2828 $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2835 # interfere with the next link command; also delete a directory that is
2836 # left behind by Apple's compiler. We do this before executing the actions.
2837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839 as_fn_set_status $ac_retval
2841 } # ac_fn_c_try_link
2843 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2844 # ----------------------------------------------
2845 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2846 ac_fn_c_check_header_preproc ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2850 $as_echo_n "checking for $2... " >&6; }
2851 if eval \${$3+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2858 if ac_fn_c_try_cpp "$LINENO"; then :
2863 rm -f conftest.err conftest.i conftest.$ac_ext
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870 } # ac_fn_c_check_header_preproc
2872 # ac_fn_c_check_func LINENO FUNC VAR
2873 # ----------------------------------
2874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2875 ac_fn_c_check_func ()
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2879 $as_echo_n "checking for $2... " >&6; }
2880 if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2887 #define $2 innocuous_$2
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $2 (); below.
2891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 <limits.h> exists even on freestanding compilers. */
2895 # include <limits.h>
2897 # include <assert.h>
2902 /* Override any GCC internal prototype to avoid an error.
2903 Use char because int might match the return type of a GCC
2904 builtin and then its argument prototype would still apply. */
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined __stub_$2 || defined __stub___$2
2924 if ac_fn_c_try_link "$LINENO"; then :
2929 rm -f core conftest.err conftest.$ac_objext \
2930 conftest$ac_exeext conftest.$ac_ext
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2934 $as_echo "$ac_res" >&6; }
2935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2937 } # ac_fn_c_check_func
2938 cat >config.log <<_ACEOF
2939 This file contains any messages produced by compilers while
2940 running configure, to aid debugging if configure makes a mistake.
2942 It was created by $as_me, which was
2943 generated by GNU Autoconf 2.69. Invocation command line was
2955 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2956 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2957 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2958 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2959 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2961 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2962 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2964 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2965 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2966 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2967 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2968 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2969 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2970 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 $as_echo "PATH: $as_dir"
2995 # Keep a trace of the command line.
2996 # Strip out --no-create and --no-recursion so they do not pile up.
2997 # Strip out --silent because we don't want to record it for future runs.
2998 # Also quote any args containing shell meta-characters.
2999 # Make two passes to allow for proper duplicate-argument suppression.
3003 ac_must_keep_next=false
3009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3011 | -silent | --silent | --silen | --sile | --sil)
3014 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3019 as_fn_append ac_configure_args1 " '$ac_arg'"
3020 if test $ac_must_keep_next = true; then
3021 ac_must_keep_next=false # Got value, back to normal.
3024 *=* | --config-cache | -C | -disable-* | --disable-* \
3025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3027 | -with-* | --with-* | -without-* | --without-* | --x)
3028 case "$ac_configure_args0 " in
3029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3032 -* ) ac_must_keep_next=true ;;
3035 as_fn_append ac_configure_args " '$ac_arg'"
3040 { ac_configure_args0=; unset ac_configure_args0;}
3041 { ac_configure_args1=; unset ac_configure_args1;}
3043 # When interrupted or exit'd, cleanup temporary files, and complete
3044 # config.log. We remove comments because anyway the quotes in there
3045 # would cause problems or look ugly.
3046 # WARNING: Use '\'' to represent an apostrophe within the trap.
3047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3048 trap 'exit_status=$?
3049 # Save into config.log some information that might help in debugging.
3053 $as_echo "## ---------------- ##
3054 ## Cache variables. ##
3055 ## ---------------- ##"
3057 # The following way of writing the cache mishandles newlines in values,
3059 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3060 eval ac_val=\$$ac_var
3064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3068 _ | IFS | as_nl) ;; #(
3069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3070 *) { eval $ac_var=; unset $ac_var;} ;;
3075 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3076 *${as_nl}ac_space=\ *)
3078 "s/'\''/'\''\\\\'\'''\''/g;
3079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3089 $as_echo "## ----------------- ##
3090 ## Output variables. ##
3091 ## ----------------- ##"
3093 for ac_var in $ac_subst_vars
3095 eval ac_val=\$$ac_var
3097 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3099 $as_echo "$ac_var='\''$ac_val'\''"
3103 if test -n "$ac_subst_files"; then
3104 $as_echo "## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##"
3108 for ac_var in $ac_subst_files
3110 eval ac_val=\$$ac_var
3112 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 $as_echo "$ac_var='\''$ac_val'\''"
3119 if test -s confdefs.h; then
3120 $as_echo "## ----------- ##
3127 test "$ac_signal" != 0 &&
3128 $as_echo "$as_me: caught signal $ac_signal"
3129 $as_echo "$as_me: exit $exit_status"
3131 rm -f core *.core core.conftest.* &&
3132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3135 for ac_signal in 1 2 13 15; do
3136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3141 rm -f -r conftest* confdefs.h
3143 $as_echo "/* confdefs.h */" > confdefs.h
3145 # Predefined preprocessor variables.
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_NAME "$PACKAGE_NAME"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_STRING "$PACKAGE_STRING"
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_URL "$PACKAGE_URL"
3172 # Let the site file select an alternate cache file if it wants to.
3173 # Prefer an explicitly selected file to automatically selected ones.
3176 if test -n "$CONFIG_SITE"; then
3177 # We do not want a PATH search for config.site.
3178 case $CONFIG_SITE in #((
3179 -*) ac_site_file1=./$CONFIG_SITE;;
3180 */*) ac_site_file1=$CONFIG_SITE;;
3181 *) ac_site_file1=./$CONFIG_SITE;;
3183 elif test "x$prefix" != xNONE; then
3184 ac_site_file1=$prefix/share/config.site
3185 ac_site_file2=$prefix/etc/config.site
3187 ac_site_file1=$ac_default_prefix/share/config.site
3188 ac_site_file2=$ac_default_prefix/etc/config.site
3190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3192 test "x$ac_site_file" = xNONE && continue
3193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3196 sed 's/^/| /' "$ac_site_file" >&5
3198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "failed to load site
script $ac_site_file
3201 See \
`config.log' for more details" "$LINENO" 5; }
3205 if test -r "$cache_file"; then
3206 # Some versions of bash will fail to source /dev/null (special files
3207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3210 $as_echo "$as_me: loading cache $cache_file" >&6;}
3212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3213 *) . "./$cache_file";;
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3218 $as_echo "$as_me: creating cache $cache_file" >&6;}
3222 # Check that the precious variables saved in the cache have kept the same
3224 ac_cache_corrupted=false
3225 for ac_var in $ac_precious_vars; do
3226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3227 eval ac_new_set=\$ac_env_${ac_var}_set
3228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3229 eval ac_new_val=\$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3233 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3237 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w=`echo x
$ac_old_val`
3244 ac_new_val_w=`echo x
$ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3248 ac_cache_corrupted=:
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\$ac_old_val
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3264 *) ac_arg=$ac_var=$ac_new_val ;;
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3297 gcc_version=`cat $srcdir/BASE-VER
`
3299 # Determine the host, build, and target systems
3301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3304 ac_install_sh="$ac_aux_dir/install-sh -c"
3306 elif test -f "$ac_dir/install.sh"; then
3308 ac_install_sh="$ac_aux_dir/install.sh -c"
3310 elif test -f "$ac_dir/shtool"; then
3312 ac_install_sh="$ac_aux_dir/shtool install -c"
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 # Make sure we can run config.sub.
3330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3334 $as_echo_n "checking build system type... " >&6; }
3335 if ${ac_cv_build+:} false; then :
3336 $as_echo_n "(cached) " >&6
3338 ac_build_alias=$build_alias
3339 test "x$ac_build_alias" = x &&
3340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3341 test "x$ac_build_alias" = x &&
3342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3348 $as_echo "$ac_cv_build" >&6; }
3349 case $ac_cv_build in
3351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3354 ac_save_IFS=$IFS; IFS='-'
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3364 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3368 $as_echo_n "checking host system type... " >&6; }
3369 if ${ac_cv_host+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 if test "x$host_alias" = x; then
3373 ac_cv_host=$ac_cv_build
3375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3381 $as_echo "$ac_cv_host" >&6; }
3384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3387 ac_save_IFS=$IFS; IFS='-'
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3397 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3401 $as_echo_n "checking target system type... " >&6; }
3402 if ${ac_cv_target+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 if test "x$target_alias" = x; then
3406 ac_cv_target=$ac_cv_host
3408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3414 $as_echo "$ac_cv_target" >&6; }
3415 case $ac_cv_target in
3417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3419 target=$ac_cv_target
3420 ac_save_IFS=$IFS; IFS='-'
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3430 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3433 # The aliases save the names the user supplied, while $host etc.
3434 # will get canonicalized.
3435 test -n "$target_alias" &&
3436 test "$program_prefix$program_suffix$program_transform_name" = \
3438 program_prefix=${target_alias}-
3440 # Determine the noncanonical host name, for Ada.
3441 case ${build_alias} in
3442 "") build_noncanonical=${build} ;;
3443 *) build_noncanonical=${build_alias} ;;
3446 case ${host_alias} in
3447 "") host_noncanonical=${build_noncanonical} ;;
3448 *) host_noncanonical=${host_alias} ;;
3454 # Determine the noncanonical target name, for directory use.
3455 case ${target_alias} in
3456 "") target_noncanonical=${host_noncanonical} ;;
3457 *) target_noncanonical=${target_alias} ;;
3463 # Used for constructing correct paths for offload compilers.
3464 real_target_noncanonical=${target_noncanonical}
3467 # Determine the target- and build-specific subdirectories
3469 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3470 # have matching libraries, they should use host libraries: Makefile.tpl
3471 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3472 # However, they still use the build modules, because the corresponding
3473 # host modules (e.g. bison) are only built for the host when bootstrap
3475 # - build_subdir is where we find build modules, and never changes.
3476 # - build_libsubdir is where we find build libraries, and can be overridden.
3478 # Prefix 'build-' so this never conflicts with target_subdir.
3479 build_subdir="build-${build_noncanonical}"
3481 # Check whether --with-build-libsubdir was given.
3482 if test "${with_build_libsubdir+set}" = set; then :
3483 withval=$with_build_libsubdir; build_libsubdir="$withval"
3485 build_libsubdir="$build_subdir"
3488 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3489 if ( test $srcdir = . && test -d gcc ) \
3490 || test -d $srcdir/../host-${host_noncanonical}; then
3491 host_subdir="host-${host_noncanonical}"
3496 target_subdir=${target_noncanonical}
3499 # Set program_transform_name
3500 test "$program_prefix" != NONE &&
3501 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3502 # Use a double $ so make ignores it.
3503 test "$program_suffix" != NONE &&
3504 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3505 # Double any \ or $.
3506 # By default was `s
,x
,x
', remove it if useless.
3507 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3508 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3511 # Check for bogus environment variables.
3512 # Test if LIBRARY_PATH contains the notation for the current directory
3513 # since this would lead to problems installing/building glibc.
3514 # LIBRARY_PATH contains the current directory if one of the following
3516 # - one of the terminals (":" and ";") is the first or last sign
3517 # - two terminals occur directly after each other
3518 # - the path contains an element with a dot in it
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3520 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3521 case ${LIBRARY_PATH} in
3522 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3523 library_path_setting="contains current directory"
3526 library_path_setting="ok"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3530 $as_echo "$library_path_setting" >&6; }
3531 if test "$library_path_setting" != "ok"; then
3533 *** LIBRARY_PATH shouldn't contain the current directory when
3534 *** building gcc. Please change the environment variable
3535 *** and run configure again.
" "$LINENO" 5
3538 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3539 # since this would lead to problems installing/building glibc.
3540 # GCC_EXEC_PREFIX contains the current directory if one of the following
3542 # - one of the terminals (":" and ";") is the first or last sign
3543 # - two terminals occur directly after each other
3544 # - the path contains an element with a dot in it
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3546 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3547 case ${GCC_EXEC_PREFIX} in
3548 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3549 gcc_exec_prefix_setting="contains current directory
"
3552 gcc_exec_prefix_setting="ok
"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3556 $as_echo "$gcc_exec_prefix_setting" >&6; }
3557 if test "$gcc_exec_prefix_setting" != "ok
"; then
3559 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3560 *** building gcc. Please change the environment variable
3561 *** and run configure again." "$LINENO" 5
3568 # Specify the local prefix
3571 # Check whether --with-local-prefix was given.
3572 if test "${with_local_prefix+set}" = set; then :
3573 withval=$with_local_prefix; case "${withval}" in
3574 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3576 *) local_prefix=$with_local_prefix ;;
3581 # Default local prefix if it is empty
3582 if test x$local_prefix = x; then
3583 local_prefix=/usr/local
3587 # Check whether --with-native-system-header-dir was given.
3588 if test "${with_native_system_header_dir+set}" = set; then :
3589 withval=$with_native_system_header_dir;
3590 case ${with_native_system_header_dir} in
3591 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3592 /* | [A-Za-z]:[\\/]*) ;;
3593 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3595 configured_native_system_header_dir="${withval}"
3598 configured_native_system_header_dir=
3603 # Check whether --with-build-sysroot was given.
3604 if test "${with_build_sysroot+set}" = set; then :
3605 withval=$with_build_sysroot; if test x"$withval" != x ; then
3606 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3609 SYSROOT_CFLAGS_FOR_TARGET=
3614 if test "x$prefix" = xNONE; then
3615 test_prefix=/usr/local
3619 if test "x$exec_prefix" = xNONE; then
3620 test_exec_prefix=$test_prefix
3622 test_exec_prefix=$exec_prefix
3626 # Check whether --with-sysroot was given.
3627 if test "${with_sysroot+set}" = set; then :
3628 withval=$with_sysroot;
3629 case ${with_sysroot} in
3631 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3633 case ${with_sysroot} in
3634 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3635 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3638 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3639 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3641 case ${TARGET_SYSTEM_ROOT} in
3642 "${test_prefix}"|"${test_prefix}/"*|\
3643 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3644 '${prefix}'|'${prefix}/'*|\
3645 '${exec_prefix}'|'${exec_prefix}/'*)
3646 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3647 TARGET_SYSTEM_ROOT_DEFINE="$t"
3654 TARGET_SYSTEM_ROOT_DEFINE=
3655 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3663 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3664 # passed in by the toplevel make and thus we'd get different behavior
3665 # depending on where we built the sources.
3666 gcc_gxx_include_dir
=
3667 # Specify the g++ header file directory
3669 # Check whether --with-gxx-include-dir was given.
3670 if test "${with_gxx_include_dir+set}" = set; then :
3671 withval
=$with_gxx_include_dir; case "${withval}" in
3672 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3674 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3679 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3680 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3681 # relative to the sysroot.
3682 gcc_gxx_include_dir_add_sysroot
=0
3684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3685 if test x
${gcc_gxx_include_dir} = x
; then
3686 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3687 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3689 libstdcxx_incdir
='include/c++/$(version)'
3690 if test x
$host != x
$target; then
3691 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3693 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3695 elif test "${with_sysroot+set}" = set; then
3696 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3697 if test "${gcc_gxx_without_sysroot}"; then
3698 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3699 gcc_gxx_include_dir_add_sysroot
=1
3704 # Check whether --with-cpp_install_dir was given.
3705 if test "${with_cpp_install_dir+set}" = set; then :
3706 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3707 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3708 elif test x
$withval != xno
; then
3709 cpp_install_dir
=$withval
3714 # We would like to our source tree to be readonly. However when releases or
3715 # pre-releases are generated, the flex/bison generated files as well as the
3716 # various formats of manuals need to be included along with the rest of the
3717 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3721 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3722 # Check whether --enable-generated-files-in-srcdir was given.
3723 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3724 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3726 generated_files_in_srcdir
=no
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3731 $as_echo "$generated_files_in_srcdir" >&6; }
3733 if test "$generated_files_in_srcdir" = "yes"; then
3740 # -------------------
3741 # Find default linker
3742 # -------------------
3746 # Check whether --with-gnu-ld was given.
3747 if test "${with_gnu_ld+set}" = set; then :
3748 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3755 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3759 # With pre-defined ld
3761 # Check whether --with-ld was given.
3762 if test "${with_ld+set}" = set; then :
3763 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3766 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3767 if test ! -x "$DEFAULT_LINKER"; then
3768 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3769 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3771 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3775 cat >>confdefs.h
<<_ACEOF
3776 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3782 $as_echo_n "checking whether a default linker was specified... " >&6; }
3783 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3784 if test x
"$gnu_ld_flag" = x
"no"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3786 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3789 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3796 # With demangler in GNU ld
3798 # Check whether --with-demangler-in-ld was given.
3799 if test "${with_demangler_in_ld+set}" = set; then :
3800 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3806 # ----------------------
3807 # Find default assembler
3808 # ----------------------
3812 # Check whether --with-gnu-as was given.
3813 if test "${with_gnu_as+set}" = set; then :
3814 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3821 # Check whether --with-as was given.
3822 if test "${with_as+set}" = set; then :
3823 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3826 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3827 if test ! -x "$DEFAULT_ASSEMBLER"; then
3828 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3829 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3833 cat >>confdefs.h
<<_ACEOF
3834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3840 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3841 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3842 if test x
"$gas_flag" = x
"no"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3844 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3847 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3858 # If a non-executable a.out is present (e.g. created by GNU as above even if
3859 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3860 # file, even when creating an executable, so an execution test fails.
3861 # Remove possible default executable files to avoid this.
3863 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3864 # Autoconf includes it.
3865 rm -f a.out a.exe b.out
3867 # Find the native compiler
3869 ac_cpp
='$CPP $CPPFLAGS'
3870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3875 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_prog_CC+:} false
; then :
3879 $as_echo_n "(cached) " >&6
3881 if test -n "$CC"; then
3882 ac_cv_prog_CC
="$CC" # Let the user override the test.
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir
=.
3889 for ac_exec_ext
in '' $ac_executable_extensions; do
3890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3912 if test -z "$ac_cv_prog_CC"; then
3914 # Extract the first word of "gcc", so it can be a program name with args.
3915 set dummy gcc
; ac_word
=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3919 $as_echo_n "(cached) " >&6
3921 if test -n "$ac_ct_CC"; then
3922 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3928 test -z "$as_dir" && as_dir
=.
3929 for ac_exec_ext
in '' $ac_executable_extensions; do
3930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC
="gcc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 $as_echo "$ac_ct_CC" >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3950 if test "x$ac_ct_CC" = x
; then
3953 case $cross_compiling:$ac_tool_warned in
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned
=yes ;;
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3968 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_CC+:} false
; then :
3972 $as_echo_n "(cached) " >&6
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC
="$CC" # Let the user override the test.
3977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir
=.
3982 for ac_exec_ext
in '' $ac_executable_extensions; do
3983 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997 $as_echo "$CC" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4006 if test -z "$CC"; then
4007 # Extract the first word of "cc", so it can be a program name with args.
4008 set dummy cc
; ac_word
=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false
; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC
="$CC" # Let the user override the test.
4018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir
=.
4023 for ac_exec_ext
in '' $ac_executable_extensions; do
4024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4026 ac_prog_rejected
=yes
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 if test $ac_prog_rejected = yes; then
4038 # We found a bogon in the path, so make sure we never use it.
4039 set dummy
$ac_cv_prog_CC
4041 if test $# != 0; then
4042 # We chose a different compiler from the bogus one.
4043 # However, it has the same basename, so the bogon will be chosen
4044 # first if we set CC to just the basename; use the full file name.
4046 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4052 if test -n "$CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4054 $as_echo "$CC" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4062 if test -z "$CC"; then
4063 if test -n "$ac_tool_prefix"; then
4064 for ac_prog
in cl.exe
4066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4067 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_CC+:} false
; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -n "$CC"; then
4074 ac_cv_prog_CC
="$CC" # Let the user override the test.
4076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4080 test -z "$as_dir" && as_dir
=.
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 if test -n "$CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4096 $as_echo "$CC" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4103 test -n "$CC" && break
4106 if test -z "$CC"; then
4108 for ac_prog
in cl.exe
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy
$ac_prog; ac_word
=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir
=.
4125 for ac_exec_ext
in '' $ac_executable_extensions; do
4126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC
="$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4147 test -n "$ac_ct_CC" && break
4150 if test "x$ac_ct_CC" = x
; then
4153 case $cross_compiling:$ac_tool_warned in
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned
=yes ;;
4166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $?
"no acceptable C compiler found in \$PATH
4169 See \`config.log' for more details" "$LINENO" 5; }
4171 # Provide some information about the compiler.
4172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4175 for ac_option
in --version -v -V -qversion; do
4176 { { ac_try
="$ac_compiler $ac_option >&5"
4178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4185 if test -s conftest.err; then
4187 ... rest of stderr output deleted ...
4188 10q' conftest.err >conftest.er1
4189 cat conftest.er1 >&5
4191 rm -f conftest.er1 conftest.err
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4207 ac_clean_files_save=$ac_clean_files
4208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4209 # Try to create an executable without -o first, disregard a.out.
4210 # It will help us diagnose broken compilers, and finding out an intuition
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4213 $as_echo_n "checking whether the C compiler works... " >&6; }
4214 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4216 # The possible output files:
4217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4220 for ac_file in $ac_files
4223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4229 if { { ac_try="$ac_link_default"
4231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4232 *) ac_try_echo
=$ac_try;;
4234 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link_default") 2>&5
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then :
4240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4242 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4243 # so that the user can short-circuit this test for compilers unknown to
4245 for ac_file
in $ac_files ''
4247 test -f "$ac_file" ||
continue
4249 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4252 # We found the default executable, but exeext='' is most
4256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4258 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260 # We set ac_cv_exeext here because the later test for it is not
4261 # safe: cross compilers may not add the suffix if given an `-o'
4262 # argument, so we may need to know it at that point already.
4263 # Even if this section looks crufty: it has the advantage of
4270 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4275 if test -z "$ac_file"; then :
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 $as_echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4283 as_fn_error
77 "C compiler cannot create executables
4284 See \`config.log' for more details" "$LINENO" 5; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4287 $as_echo "yes" >&6; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4290 $as_echo_n "checking for C compiler default output file name... " >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4292 $as_echo "$ac_file" >&6; }
4293 ac_exeext
=$ac_cv_exeext
4295 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4296 ac_clean_files
=$ac_clean_files_save
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4298 $as_echo_n "checking for suffix of executables... " >&6; }
4299 if { { ac_try
="$ac_link"
4301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_link") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }; then :
4310 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4311 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4312 # work properly (i.e., refer to `conftest.exe'), while it won't with
4314 for ac_file
in conftest.exe conftest conftest.
*; do
4315 test -f "$ac_file" ||
continue
4317 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4318 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4327 See \`config.log' for more details" "$LINENO" 5; }
4329 rm -f conftest conftest
$ac_cv_exeext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4331 $as_echo "$ac_cv_exeext" >&6; }
4333 rm -f conftest.
$ac_ext
4334 EXEEXT
=$ac_cv_exeext
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4342 FILE *f = fopen ("conftest.out", "w");
4343 return ferror (f) || fclose (f) != 0;
4349 ac_clean_files
="$ac_clean_files conftest.out"
4350 # Check that the compiler produces executables we can run. If not, either
4351 # the compiler is broken, or we cross compile.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4353 $as_echo_n "checking whether we are cross compiling... " >&6; }
4354 if test "$cross_compiling" != yes; then
4355 { { ac_try
="$ac_link"
4357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_link") 2>&5
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4366 if { ac_try='./conftest$ac_cv_exeext'
4367 { { case "(($ac_try" in
4368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4369 *) ac_try_echo
=$ac_try;;
4371 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_try") 2>&5
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; }; then
4379 if test "$cross_compiling" = maybe
; then
4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384 as_fn_error $?
"cannot run C compiled programs.
4385 If you meant to cross compile, use \`--host'.
4386 See \`config.log' for more details" "$LINENO" 5; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4391 $as_echo "$cross_compiling" >&6; }
4393 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4394 ac_clean_files
=$ac_clean_files_save
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4396 $as_echo_n "checking for suffix of object files... " >&6; }
4397 if ${ac_cv_objext+:} false
; then :
4398 $as_echo_n "(cached) " >&6
4400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 rm -f conftest.o conftest.obj
4412 if { { ac_try
="$ac_compile"
4414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compile") 2>&5
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; then :
4423 for ac_file in conftest.o conftest.obj conftest.*; do
4424 test -f "$ac_file" || continue;
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4432 $as_echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4438 See \
`config.log' for more details" "$LINENO" 5; }
4440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4443 $as_echo "$ac_cv_objext" >&6; }
4444 OBJEXT=$ac_cv_objext
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4447 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4448 if ${ac_cv_c_compiler_gnu+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4465 if ac_fn_c_try_compile "$LINENO"; then :
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4475 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4476 if test $ac_compiler_gnu = yes; then
4481 ac_test_CFLAGS=${CFLAGS+set}
4482 ac_save_CFLAGS=$CFLAGS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4484 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4485 if ${ac_cv_prog_cc_g+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 ac_save_c_werror_flag=$ac_c_werror_flag
4489 ac_c_werror_flag=yes
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4503 if ac_fn_c_try_compile "$LINENO"; then :
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4518 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_c_werror_flag=$ac_save_c_werror_flag
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4534 if ac_fn_c_try_compile "$LINENO"; then :
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_c_werror_flag=$ac_save_c_werror_flag
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4545 $as_echo "$ac_cv_prog_cc_g" >&6; }
4546 if test "$ac_test_CFLAGS" = set; then
4547 CFLAGS=$ac_save_CFLAGS
4548 elif test $ac_cv_prog_cc_g = yes; then
4549 if test "$GCC" = yes; then
4555 if test "$GCC" = yes; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4562 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4563 if ${ac_cv_prog_cc_c89+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 ac_cv_prog_cc_c89=no
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4574 struct buf { int x; };
4575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4576 static char *e (p, i)
4582 static char *f (char * (*g) (char **, int), char **p, ...)
4587 s = g (p, va_arg (v,int));
4592 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4593 function prototypes and stuff, but not '\xHH' hex character constants.
4594 These don't provoke an error unfortunately, instead are silently treated
4595 as 'x'. The following induces an error, until -std is added to get
4596 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4597 array size at least. It's necessary to write '\x00'==0 to get something
4598 that's true only with -std. */
4599 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4601 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4602 inside strings and character constants. */
4604 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4606 int test (int i, double x);
4607 struct s1 {int (*f) (int a);};
4608 struct s2 {int (*f) (double a);};
4609 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4615 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4620 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4621 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4623 CC="$ac_save_CC $ac_arg"
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625 ac_cv_prog_cc_c89=$ac_arg
4627 rm -f core conftest.err conftest.$ac_objext
4628 test "x$ac_cv_prog_cc_c89" != "xno" && break
4630 rm -f conftest.$ac_ext
4635 case "x$ac_cv_prog_cc_c89" in
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4638 $as_echo "none needed" >&6; } ;;
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4641 $as_echo "unsupported" >&6; } ;;
4643 CC="$CC $ac_cv_prog_cc_c89"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4645 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4647 if test "x$ac_cv_prog_cc_c89" != xno; then :
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 ac_cpp='$CXXCPP $CPPFLAGS'
4659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4662 if test -z "$CXX"; then
4663 if test -n "$CCC"; then
4666 if test -n "$ac_tool_prefix"; then
4667 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if ${ac_cv_prog_CXX+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 if test -n "$CXX"; then
4677 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 if test -n "$CXX"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4699 $as_echo "$CXX" >&6; }
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$CXX" && break
4709 if test -z "$CXX"; then
4711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4713 # Extract the first word of "$ac_prog", so it can be a program name with args.
4714 set dummy $ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$ac_ct_CXX"; then
4721 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_ac_ct_CXX="$ac_prog"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4741 if test -n "$ac_ct_CXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4743 $as_echo "$ac_ct_CXX" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4750 test -n "$ac_ct_CXX" && break
4753 if test "x$ac_ct_CXX" = x; then
4756 case $cross_compiling:$ac_tool_warned in
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4768 # Provide some information about the compiler.
4769 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4772 for ac_option in --version -v -V -qversion; do
4773 { { ac_try="$ac_compiler $ac_option >&5"
4775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4776 *) ac_try_echo
=$ac_try;;
4778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 $as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4782 if test -s conftest.err
; then
4784 ... rest of stderr output deleted ...
4785 10q' conftest.err
>conftest.er1
4786 cat conftest.er1
>&5
4788 rm -f conftest.er1 conftest.err
4789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4790 test $ac_status = 0; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4794 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4795 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4796 $as_echo_n "(cached) " >&6
4798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4812 if ac_fn_cxx_try_compile
"$LINENO"; then :
4817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4818 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4822 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4823 if test $ac_compiler_gnu = yes; then
4828 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4829 ac_save_CXXFLAGS
=$CXXFLAGS
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4831 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4832 if ${ac_cv_prog_cxx_g+:} false
; then :
4833 $as_echo_n "(cached) " >&6
4835 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4836 ac_cxx_werror_flag
=yes
4839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4850 if ac_fn_cxx_try_compile
"$LINENO"; then :
4851 ac_cv_prog_cxx_g
=yes
4854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_cxx_try_compile
"$LINENO"; then :
4868 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4881 if ac_fn_cxx_try_compile
"$LINENO"; then :
4882 ac_cv_prog_cxx_g
=yes
4884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4889 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4892 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4893 if test "$ac_test_CXXFLAGS" = set; then
4894 CXXFLAGS
=$ac_save_CXXFLAGS
4895 elif test $ac_cv_prog_cxx_g = yes; then
4896 if test "$GXX" = yes; then
4902 if test "$GXX" = yes; then
4909 ac_cpp
='$CPP $CPPFLAGS'
4910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4919 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_GNATBIND+:} false
; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -n "$GNATBIND"; then
4926 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_exec_ext
in '' $ac_executable_extensions; do
4934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 GNATBIND
=$ac_cv_prog_GNATBIND
4946 if test -n "$GNATBIND"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4948 $as_echo "$GNATBIND" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4956 if test -z "$ac_cv_prog_GNATBIND"; then
4957 ac_ct_GNATBIND
=$GNATBIND
4958 # Extract the first word of "gnatbind", so it can be a program name with args.
4959 set dummy gnatbind
; ac_word
=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4963 $as_echo_n "(cached) " >&6
4965 if test -n "$ac_ct_GNATBIND"; then
4966 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir
=.
4973 for ac_exec_ext
in '' $ac_executable_extensions; do
4974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4975 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4986 if test -n "$ac_ct_GNATBIND"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4988 $as_echo "$ac_ct_GNATBIND" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4994 if test "x$ac_ct_GNATBIND" = x
; then
4997 case $cross_compiling:$ac_tool_warned in
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned
=yes ;;
5003 GNATBIND
=$ac_ct_GNATBIND
5006 GNATBIND
="$ac_cv_prog_GNATBIND"
5009 if test -n "$ac_tool_prefix"; then
5010 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5011 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -n "$GNATMAKE"; then
5018 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir
=.
5025 for ac_exec_ext
in '' $ac_executable_extensions; do
5026 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 GNATMAKE
=$ac_cv_prog_GNATMAKE
5038 if test -n "$GNATMAKE"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5040 $as_echo "$GNATMAKE" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5048 if test -z "$ac_cv_prog_GNATMAKE"; then
5049 ac_ct_GNATMAKE
=$GNATMAKE
5050 # Extract the first word of "gnatmake", so it can be a program name with args.
5051 set dummy gnatmake
; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$ac_ct_GNATMAKE"; then
5058 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5078 if test -n "$ac_ct_GNATMAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5080 $as_echo "$ac_ct_GNATMAKE" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5086 if test "x$ac_ct_GNATMAKE" = x
; then
5089 case $cross_compiling:$ac_tool_warned in
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned
=yes ;;
5095 GNATMAKE
=$ac_ct_GNATMAKE
5098 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5102 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5103 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5104 $as_echo_n "(cached) " >&6
5106 cat >conftest.adb
<<EOF
5107 procedure conftest is begin null; end conftest;
5109 acx_cv_cc_gcc_supports_ada
=no
5110 # There is a bug in old released versions of GCC which causes the
5111 # driver to exit successfully when the appropriate language module
5112 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5113 # Therefore we must check for the error message as well as an
5114 # unsuccessful exit.
5115 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5116 # given a .adb file, but produce no object file. So we must check
5117 # if an object file was really produced to guard against this.
5118 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5119 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5120 acx_cv_cc_gcc_supports_ada
=yes
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5125 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5127 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5134 # Do configure tests with the C++ compiler, since that's what we build with.
5136 ac_cpp
='$CXXCPP $CPPFLAGS'
5137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5142 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5143 # optimizations to be activated explicitly by the toplevel.
5145 */prev-gcc
/xgcc
*) ;;
5146 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5147 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5152 # Determine PICFLAG for target gnatlib.
5158 # PIC is the default on some targets or must not be used.
5160 # For darwin, common symbols are not allowed in MH_DYLIB files
5162 # If we are using a compiler supporting mdynamic-no-pic
5163 # and the option has been tested as safe to add, then cancel
5164 # it here, since the code generated is incompatible with shared
5166 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5167 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5171 # PIC is the default.
5174 # PIC is the default for 64-bit PA HP-UX.
5176 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5178 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5180 i
[34567]86-*-interix[3-9]*)
5181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5182 # Instead, we relocate shared libraries at runtime.
5184 i
[34567]86-*-nto-qnx*)
5185 # QNX uses GNU C++, but need to define -shared option too, otherwise
5187 PICFLAG_FOR_TARGET
='-fPIC -shared'
5189 i
[34567]86-pc-msdosdjgpp*)
5190 # DJGPP does not support shared libraries at all.
5193 # On IA64 HP-UX, PIC is the default but the pic flag
5194 # sets the default TLS model and affects inlining.
5195 PICFLAG_FOR_TARGET
=-fPIC
5198 # PIC is the default.
5200 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5201 # All AIX code is PIC.
5204 # Some targets support both -fPIC and -fpic, but prefer the latter.
5206 i
[34567]86-*-* | x86_64-
*-*)
5207 PICFLAG_FOR_TARGET
=-fpic
5209 # FIXME: Override -fPIC default in libgcc only?
5210 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5211 PICFLAG_FOR_TARGET
=-fpic
5213 # FIXME: Simplify to sh*-*-netbsd*?
5214 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5215 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5216 PICFLAG_FOR_TARGET
=-fpic
5218 # Default to -fPIC unless specified otherwise.
5220 PICFLAG_FOR_TARGET
=-fPIC
5224 # If the user explicitly uses -fpic/-fPIC, keep that.
5225 case "${CFLAGS_FOR_TARGET}" in
5227 PICFLAG_FOR_TARGET
=-fpic
5230 PICFLAG_FOR_TARGET
=-fPIC
5236 # -------------------------
5237 # Check C compiler features
5238 # -------------------------
5242 ac_cpp
='$CXXCPP $CPPFLAGS'
5243 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5247 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5248 if test -z "$CXXCPP"; then
5249 if ${ac_cv_prog_CXXCPP+:} false
; then :
5250 $as_echo_n "(cached) " >&6
5252 # Double quotes because CXXCPP needs to be expanded
5253 for CXXCPP
in "$CXX -E" "/lib/cpp"
5256 for ac_cxx_preproc_warn_flag
in '' yes
5258 # Use a header file that comes with gcc, so configuring glibc
5259 # with a fresh cross-compiler works.
5260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5261 # <limits.h> exists even on freestanding compilers.
5262 # On the NeXT, cc -E runs the code through the compiler's parser,
5263 # not just through cpp. "Syntax error" is here to catch this case.
5264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 # include <limits.h>
5269 # include <assert.h>
5273 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5276 # Broken: fails on valid input.
5279 rm -f conftest.err conftest.i conftest.
$ac_ext
5281 # OK, works on sane cases. Now check whether nonexistent headers
5282 # can be detected and how.
5283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5287 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5288 # Broken: success on invalid input.
5291 # Passes both tests.
5295 rm -f conftest.err conftest.i conftest.
$ac_ext
5298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299 rm -f conftest.i conftest.err conftest.
$ac_ext
5300 if $ac_preproc_ok; then :
5305 ac_cv_prog_CXXCPP
=$CXXCPP
5308 CXXCPP
=$ac_cv_prog_CXXCPP
5310 ac_cv_prog_CXXCPP
=$CXXCPP
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5313 $as_echo "$CXXCPP" >&6; }
5315 for ac_cxx_preproc_warn_flag
in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 # include <limits.h>
5328 # include <assert.h>
5332 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5335 # Broken: fails on valid input.
5338 rm -f conftest.err conftest.i conftest.
$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5346 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5347 # Broken: success on invalid input.
5350 # Passes both tests.
5354 rm -f conftest.err conftest.i conftest.
$ac_ext
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.i conftest.err conftest.
$ac_ext
5359 if $ac_preproc_ok; then :
5362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5364 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5365 See \`config.log' for more details" "$LINENO" 5; }
5369 ac_cpp
='$CXXCPP $CPPFLAGS'
5370 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5377 if ${ac_cv_path_GREP+:} false
; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -z "$GREP"; then
5381 ac_path_GREP_found
=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5384 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5387 test -z "$as_dir" && as_dir
=.
5388 for ac_prog
in grep ggrep
; do
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p
"$ac_path_GREP" ||
continue
5392 # Check for GNU ac_path_GREP and select it if it is found.
5393 # Check for GNU $ac_path_GREP
5394 case `"$ac_path_GREP" --version 2>&1` in
5396 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5399 $as_echo_n 0123456789 >"conftest.in"
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'GREP' >> "conftest.nl"
5406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5407 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5408 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_GREP
="$ac_path_GREP"
5412 ac_path_GREP_max
=$ac_count
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5417 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5420 $ac_path_GREP_found && break 3
5425 if test -z "$ac_cv_path_GREP"; then
5426 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5429 ac_cv_path_GREP
=$GREP
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5434 $as_echo "$ac_cv_path_GREP" >&6; }
5435 GREP
="$ac_cv_path_GREP"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5439 $as_echo_n "checking for egrep... " >&6; }
5440 if ${ac_cv_path_EGREP+:} false
; then :
5441 $as_echo_n "(cached) " >&6
5443 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5444 then ac_cv_path_EGREP
="$GREP -E"
5446 if test -z "$EGREP"; then
5447 ac_path_EGREP_found
=false
5448 # Loop through the user's path and test for each of PROGNAME-LIST
5449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5450 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5453 test -z "$as_dir" && as_dir
=.
5454 for ac_prog
in egrep; do
5455 for ac_exec_ext
in '' $ac_executable_extensions; do
5456 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5457 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5458 # Check for GNU ac_path_EGREP and select it if it is found.
5459 # Check for GNU $ac_path_EGREP
5460 case `"$ac_path_EGREP" --version 2>&1` in
5462 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5465 $as_echo_n 0123456789 >"conftest.in"
5468 cat "conftest.in" "conftest.in" >"conftest.tmp"
5469 mv "conftest.tmp" "conftest.in"
5470 cp "conftest.in" "conftest.nl"
5471 $as_echo 'EGREP' >> "conftest.nl"
5472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5473 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5474 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5476 # Best one so far, save it but keep looking for a better one
5477 ac_cv_path_EGREP
="$ac_path_EGREP"
5478 ac_path_EGREP_max
=$ac_count
5480 # 10*(2^10) chars as input seems more than enough
5481 test $ac_count -gt 10 && break
5483 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5486 $ac_path_EGREP_found && break 3
5491 if test -z "$ac_cv_path_EGREP"; then
5492 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5495 ac_cv_path_EGREP
=$EGREP
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5501 $as_echo "$ac_cv_path_EGREP" >&6; }
5502 EGREP
="$ac_cv_path_EGREP"
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5506 $as_echo_n "checking for ANSI C header files... " >&6; }
5507 if ${ac_cv_header_stdc+:} false
; then :
5508 $as_echo_n "(cached) " >&6
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5525 if ac_fn_cxx_try_compile
"$LINENO"; then :
5526 ac_cv_header_stdc
=yes
5528 ac_cv_header_stdc
=no
5530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5532 if test $ac_cv_header_stdc = yes; then
5533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 $EGREP "memchr" >/dev
/null
2>&1; then :
5543 ac_cv_header_stdc
=no
5549 if test $ac_cv_header_stdc = yes; then
5550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5557 $EGREP "free" >/dev
/null
2>&1; then :
5560 ac_cv_header_stdc
=no
5566 if test $ac_cv_header_stdc = yes; then
5567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5568 if test "$cross_compiling" = yes; then :
5571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 #if ((' ' & 0x0FF) == 0x020)
5576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5579 # define ISLOWER(c) \
5580 (('a' <= (c) && (c) <= 'i') \
5581 || ('j' <= (c) && (c) <= 'r') \
5582 || ('s' <= (c) && (c) <= 'z'))
5583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5591 for (i = 0; i < 256; i++)
5592 if (XOR (islower (i), ISLOWER (i))
5593 || toupper (i) != TOUPPER (i))
5598 if ac_fn_cxx_try_run
"$LINENO"; then :
5601 ac_cv_header_stdc
=no
5603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5610 $as_echo "$ac_cv_header_stdc" >&6; }
5611 if test $ac_cv_header_stdc = yes; then
5613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5618 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5619 inttypes.h stdint.h unistd.h
5621 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5624 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5625 cat >>confdefs.h
<<_ACEOF
5626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5636 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5643 if test "$MINIX" = yes; then
5645 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5648 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5651 $as_echo "#define _MINIX 1" >>confdefs.h
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5657 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5658 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5659 $as_echo_n "(cached) " >&6
5661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5664 # define __EXTENSIONS__ 1
5665 $ac_includes_default
5674 if ac_fn_cxx_try_compile
"$LINENO"; then :
5675 ac_cv_safe_to_define___extensions__
=yes
5677 ac_cv_safe_to_define___extensions__
=no
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5682 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5683 test $ac_cv_safe_to_define___extensions__ = yes &&
5684 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5686 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5688 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5690 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5692 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5696 ac_cpp
='$CPP $CPPFLAGS'
5697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5701 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5702 # On Suns, sometimes $CPP names a directory.
5703 if test -n "$CPP" && test -d "$CPP"; then
5706 if test -z "$CPP"; then
5707 if ${ac_cv_prog_CPP+:} false
; then :
5708 $as_echo_n "(cached) " >&6
5710 # Double quotes because CPP needs to be expanded
5711 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5714 for ac_c_preproc_warn_flag
in '' yes
5716 # Use a header file that comes with gcc, so configuring glibc
5717 # with a fresh cross-compiler works.
5718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5719 # <limits.h> exists even on freestanding compilers.
5720 # On the NeXT, cc -E runs the code through the compiler's parser,
5721 # not just through cpp. "Syntax error" is here to catch this case.
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5725 # include <limits.h>
5727 # include <assert.h>
5731 if ac_fn_c_try_cpp
"$LINENO"; then :
5734 # Broken: fails on valid input.
5737 rm -f conftest.err conftest.i conftest.
$ac_ext
5739 # OK, works on sane cases. Now check whether nonexistent headers
5740 # can be detected and how.
5741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ac_nonexistent.h>
5745 if ac_fn_c_try_cpp
"$LINENO"; then :
5746 # Broken: success on invalid input.
5749 # Passes both tests.
5753 rm -f conftest.err conftest.i conftest.
$ac_ext
5756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757 rm -f conftest.i conftest.err conftest.
$ac_ext
5758 if $ac_preproc_ok; then :
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5771 $as_echo "$CPP" >&6; }
5773 for ac_c_preproc_warn_flag
in '' yes
5775 # Use a header file that comes with gcc, so configuring glibc
5776 # with a fresh cross-compiler works.
5777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 # <limits.h> exists even on freestanding compilers.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5784 # include <limits.h>
5786 # include <assert.h>
5790 if ac_fn_c_try_cpp
"$LINENO"; then :
5793 # Broken: fails on valid input.
5796 rm -f conftest.err conftest.i conftest.
$ac_ext
5798 # OK, works on sane cases. Now check whether nonexistent headers
5799 # can be detected and how.
5800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5804 if ac_fn_c_try_cpp
"$LINENO"; then :
5805 # Broken: success on invalid input.
5808 # Passes both tests.
5812 rm -f conftest.err conftest.i conftest.
$ac_ext
5815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816 rm -f conftest.i conftest.err conftest.
$ac_ext
5817 if $ac_preproc_ok; then :
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5823 See \`config.log' for more details" "$LINENO" 5; }
5827 ac_cpp
='$CXXCPP $CPPFLAGS'
5828 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5833 $as_echo_n "checking for inline... " >&6; }
5834 if ${ac_cv_c_inline+:} false
; then :
5835 $as_echo_n "(cached) " >&6
5838 for ac_kw
in inline __inline__ __inline
; do
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5843 static $ac_kw foo_t static_foo () {return 0; }
5844 $ac_kw foo_t foo () {return 0; }
5848 if ac_fn_cxx_try_compile
"$LINENO"; then :
5849 ac_cv_c_inline
=$ac_kw
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 test "$ac_cv_c_inline" != no
&& break
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5857 $as_echo "$ac_cv_c_inline" >&6; }
5859 case $ac_cv_c_inline in
5862 case $ac_cv_c_inline in
5864 *) ac_val
=$ac_cv_c_inline;;
5866 cat >>confdefs.h
<<_ACEOF
5868 #define inline $ac_val
5875 # Check whether --enable-largefile was given.
5876 if test "${enable_largefile+set}" = set; then :
5877 enableval
=$enable_largefile;
5880 if test "$enable_largefile" != no
; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5883 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5884 if ${ac_cv_sys_largefile_CC+:} false
; then :
5885 $as_echo_n "(cached) " >&6
5887 ac_cv_sys_largefile_CC
=no
5888 if test "$GCC" != yes; then
5891 # IRIX 6.2 and later do not support large files by default,
5892 # so use the C compiler's -n32 option if that helps.
5893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 /* Check that off_t can represent 2**63 - 1 correctly.
5897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5898 since some C++ compilers masquerading as C compilers
5899 incorrectly reject 9223372036854775807. */
5900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5902 && LARGE_OFF_T % 2147483647 == 1)
5912 if ac_fn_cxx_try_compile
"$LINENO"; then :
5915 rm -f core conftest.err conftest.
$ac_objext
5917 if ac_fn_cxx_try_compile
"$LINENO"; then :
5918 ac_cv_sys_largefile_CC
=' -n32'; break
5920 rm -f core conftest.err conftest.
$ac_objext
5924 rm -f conftest.
$ac_ext
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5928 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5929 if test "$ac_cv_sys_largefile_CC" != no
; then
5930 CC
=$CC$ac_cv_sys_largefile_CC
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5934 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5935 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5936 $as_echo_n "(cached) " >&6
5939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #include <sys/types.h>
5942 /* Check that off_t can represent 2**63 - 1 correctly.
5943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5944 since some C++ compilers masquerading as C compilers
5945 incorrectly reject 9223372036854775807. */
5946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5948 && LARGE_OFF_T % 2147483647 == 1)
5958 if ac_fn_cxx_try_compile
"$LINENO"; then :
5959 ac_cv_sys_file_offset_bits
=no
; break
5961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #define _FILE_OFFSET_BITS 64
5965 #include <sys/types.h>
5966 /* Check that off_t can represent 2**63 - 1 correctly.
5967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5968 since some C++ compilers masquerading as C compilers
5969 incorrectly reject 9223372036854775807. */
5970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5972 && LARGE_OFF_T % 2147483647 == 1)
5982 if ac_fn_cxx_try_compile
"$LINENO"; then :
5983 ac_cv_sys_file_offset_bits
=64; break
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 ac_cv_sys_file_offset_bits
=unknown
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5991 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5992 case $ac_cv_sys_file_offset_bits in #(
5995 cat >>confdefs.h
<<_ACEOF
5996 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6001 if test $ac_cv_sys_file_offset_bits = unknown
; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6003 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6004 if ${ac_cv_sys_large_files+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 /* Check that off_t can represent 2**63 - 1 correctly.
6012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6013 since some C++ compilers masquerading as C compilers
6014 incorrectly reject 9223372036854775807. */
6015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6017 && LARGE_OFF_T % 2147483647 == 1)
6027 if ac_fn_cxx_try_compile
"$LINENO"; then :
6028 ac_cv_sys_large_files
=no
; break
6030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #define _LARGE_FILES 1
6034 #include <sys/types.h>
6035 /* Check that off_t can represent 2**63 - 1 correctly.
6036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6037 since some C++ compilers masquerading as C compilers
6038 incorrectly reject 9223372036854775807. */
6039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6041 && LARGE_OFF_T % 2147483647 == 1)
6051 if ac_fn_cxx_try_compile
"$LINENO"; then :
6052 ac_cv_sys_large_files
=1; break
6054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6055 ac_cv_sys_large_files
=unknown
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6060 $as_echo "$ac_cv_sys_large_files" >&6; }
6061 case $ac_cv_sys_large_files in #(
6064 cat >>confdefs.h
<<_ACEOF
6065 #define _LARGE_FILES $ac_cv_sys_large_files
6076 # sizeof(char) is 1 by definition.
6077 # The cast to long int works around a bug in the HP C Compiler
6078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6080 # This bug is HP SR number 8606223364.
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6082 $as_echo_n "checking size of void *... " >&6; }
6083 if ${ac_cv_sizeof_void_p+:} false
; then :
6084 $as_echo_n "(cached) " >&6
6086 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6089 if test "$ac_cv_type_void_p" = yes; then
6090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6092 as_fn_error
77 "cannot compute sizeof (void *)
6093 See \`config.log' for more details" "$LINENO" 5; }
6095 ac_cv_sizeof_void_p
=0
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6101 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6105 cat >>confdefs.h
<<_ACEOF
6106 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6110 # The cast to long int works around a bug in the HP C Compiler
6111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6113 # This bug is HP SR number 8606223364.
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6115 $as_echo_n "checking size of short... " >&6; }
6116 if ${ac_cv_sizeof_short+:} false
; then :
6117 $as_echo_n "(cached) " >&6
6119 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6122 if test "$ac_cv_type_short" = yes; then
6123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125 as_fn_error
77 "cannot compute sizeof (short)
6126 See \`config.log' for more details" "$LINENO" 5; }
6128 ac_cv_sizeof_short
=0
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6134 $as_echo "$ac_cv_sizeof_short" >&6; }
6138 cat >>confdefs.h
<<_ACEOF
6139 #define SIZEOF_SHORT $ac_cv_sizeof_short
6143 # The cast to long int works around a bug in the HP C Compiler
6144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6146 # This bug is HP SR number 8606223364.
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6148 $as_echo_n "checking size of int... " >&6; }
6149 if ${ac_cv_sizeof_int+:} false
; then :
6150 $as_echo_n "(cached) " >&6
6152 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6155 if test "$ac_cv_type_int" = yes; then
6156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6158 as_fn_error
77 "cannot compute sizeof (int)
6159 See \`config.log' for more details" "$LINENO" 5; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6167 $as_echo "$ac_cv_sizeof_int" >&6; }
6171 cat >>confdefs.h
<<_ACEOF
6172 #define SIZEOF_INT $ac_cv_sizeof_int
6176 # The cast to long int works around a bug in the HP C Compiler
6177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6179 # This bug is HP SR number 8606223364.
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6181 $as_echo_n "checking size of long... " >&6; }
6182 if ${ac_cv_sizeof_long+:} false
; then :
6183 $as_echo_n "(cached) " >&6
6185 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6188 if test "$ac_cv_type_long" = yes; then
6189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6191 as_fn_error
77 "cannot compute sizeof (long)
6192 See \`config.log' for more details" "$LINENO" 5; }
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6200 $as_echo "$ac_cv_sizeof_long" >&6; }
6204 cat >>confdefs.h
<<_ACEOF
6205 #define SIZEOF_LONG $ac_cv_sizeof_long
6209 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6210 if test "x$ac_cv_type_long_long" = xyes
; then :
6212 cat >>confdefs.h
<<_ACEOF
6213 #define HAVE_LONG_LONG 1
6216 # The cast to long int works around a bug in the HP C Compiler
6217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6219 # This bug is HP SR number 8606223364.
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6221 $as_echo_n "checking size of long long... " >&6; }
6222 if ${ac_cv_sizeof_long_long+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6225 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6228 if test "$ac_cv_type_long_long" = yes; then
6229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6231 as_fn_error
77 "cannot compute sizeof (long long)
6232 See \`config.log' for more details" "$LINENO" 5; }
6234 ac_cv_sizeof_long_long
=0
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6240 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6244 cat >>confdefs.h
<<_ACEOF
6245 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6251 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6252 case $ac_cv_c_int8_t in #(
6256 cat >>confdefs.h
<<_ACEOF
6257 #define int8_t $ac_cv_c_int8_t
6262 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6263 case $ac_cv_c_int16_t in #(
6267 cat >>confdefs.h
<<_ACEOF
6268 #define int16_t $ac_cv_c_int16_t
6273 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6274 case $ac_cv_c_int32_t in #(
6278 cat >>confdefs.h
<<_ACEOF
6279 #define int32_t $ac_cv_c_int32_t
6284 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6285 case $ac_cv_c_int64_t in #(
6289 cat >>confdefs.h
<<_ACEOF
6290 #define int64_t $ac_cv_c_int64_t
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6297 $as_echo_n "checking for unsigned long long int... " >&6; }
6298 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6299 $as_echo_n "(cached) " >&6
6301 ac_cv_type_unsigned_long_long_int
=yes
6302 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6306 /* For now, do not test the preprocessor; as of 2007 there are too many
6307 implementations with broken preprocessors. Perhaps this can
6308 be revisited in 2012. In the meantime, code should not expect
6309 #if to work with literals wider than 32 bits. */
6310 /* Test literals. */
6311 long long int ll = 9223372036854775807ll;
6312 long long int nll = -9223372036854775807LL;
6313 unsigned long long int ull = 18446744073709551615ULL;
6314 /* Test constant expressions. */
6315 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6317 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6323 /* Test availability of runtime routines for shift and division. */
6324 long long int llmax = 9223372036854775807ll;
6325 unsigned long long int ullmax = 18446744073709551615ull;
6326 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6327 | (llmax / ll) | (llmax % ll)
6328 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6329 | (ullmax / ull) | (ullmax % ull));
6335 if ac_fn_cxx_try_link
"$LINENO"; then :
6338 ac_cv_type_unsigned_long_long_int
=no
6340 rm -f core conftest.err conftest.
$ac_objext \
6341 conftest
$ac_exeext conftest.
$ac_ext
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6345 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6346 if test $ac_cv_type_unsigned_long_long_int = yes; then
6348 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6355 $as_echo_n "checking for long long int... " >&6; }
6356 if ${ac_cv_type_long_long_int+:} false
; then :
6357 $as_echo_n "(cached) " >&6
6359 ac_cv_type_long_long_int
=yes
6360 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6361 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6362 if test $ac_cv_type_long_long_int = yes; then
6363 if test "$cross_compiling" = yes; then :
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6371 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6372 # define LLONG_MAX (HALF - 1 + HALF)
6377 long long int n = 1;
6381 long long int m = n << i;
6384 if (LLONG_MAX / 2 < m)
6392 if ac_fn_cxx_try_run
"$LINENO"; then :
6395 ac_cv_type_long_long_int
=no
6397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6405 $as_echo "$ac_cv_type_long_long_int" >&6; }
6406 if test $ac_cv_type_long_long_int = yes; then
6408 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6414 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6417 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6420 test $ac_cv_type_long_long_int = yes \
6421 && ac_type
='long long int' \
6422 || ac_type
='long int'
6424 cat >>confdefs.h
<<_ACEOF
6425 #define intmax_t $ac_type
6432 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6433 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6435 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6438 for ac_type
in 'int' 'long int' 'long long int'; do
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 $ac_includes_default
6445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6447 return test_array [0];
6453 if ac_fn_cxx_try_compile
"$LINENO"; then :
6455 cat >>confdefs.h
<<_ACEOF
6456 #define intptr_t $ac_type
6461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6462 test -z "$ac_type" && break
6467 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6468 case $ac_cv_c_uint8_t in #(
6472 $as_echo "#define _UINT8_T 1" >>confdefs.h
6475 cat >>confdefs.h
<<_ACEOF
6476 #define uint8_t $ac_cv_c_uint8_t
6481 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6482 case $ac_cv_c_uint16_t in #(
6487 cat >>confdefs.h
<<_ACEOF
6488 #define uint16_t $ac_cv_c_uint16_t
6493 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6494 case $ac_cv_c_uint32_t in #(
6498 $as_echo "#define _UINT32_T 1" >>confdefs.h
6501 cat >>confdefs.h
<<_ACEOF
6502 #define uint32_t $ac_cv_c_uint32_t
6507 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6508 case $ac_cv_c_uint64_t in #(
6512 $as_echo "#define _UINT64_T 1" >>confdefs.h
6515 cat >>confdefs.h
<<_ACEOF
6516 #define uint64_t $ac_cv_c_uint64_t
6523 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6524 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6526 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6529 test $ac_cv_type_unsigned_long_long_int = yes \
6530 && ac_type
='unsigned long long int' \
6531 || ac_type
='unsigned long int'
6533 cat >>confdefs.h
<<_ACEOF
6534 #define uintmax_t $ac_type
6541 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6542 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6544 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6547 for ac_type
in 'unsigned int' 'unsigned long int' \
6548 'unsigned long long int'; do
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 $ac_includes_default
6555 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6557 return test_array [0];
6563 if ac_fn_cxx_try_compile
"$LINENO"; then :
6565 cat >>confdefs.h
<<_ACEOF
6566 #define uintptr_t $ac_type
6571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6572 test -z "$ac_type" && break
6589 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6590 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6593 # check what underlying integer type int64_t uses
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6595 $as_echo_n "checking for int64_t underlying type... " >&6; }
6596 if ${ac_cv_int64_t_type+:} false
; then :
6597 $as_echo_n "(cached) " >&6
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6603 #ifdef HAVE_STDINT_H
6606 template <typename T> struct X { };
6608 struct X<long> { typedef long t; };
6618 if ac_fn_cxx_try_compile
"$LINENO"; then :
6619 ac_cv_int64_t_type
=long
6621 ac_cv_int64_t_type
="long long"
6623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6626 $as_echo "$ac_cv_int64_t_type" >&6; }
6627 if test "$ac_cv_int64_t_type" = "long"; then
6629 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #ifdef HAVE_STDINT_H
6638 template <typename T> struct X { };
6640 struct X<long long> { typedef long long t; };
6650 if ac_fn_cxx_try_compile
"$LINENO"; then :
6653 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6659 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6660 if ${ac_cv_std_swap_in_utility+:} false
; then :
6661 $as_echo_n "(cached) " >&6
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6672 int a, b; std::swap(a,b);
6677 if ac_fn_cxx_try_compile
"$LINENO"; then :
6678 ac_cv_std_swap_in_utility
=yes
6680 ac_cv_std_swap_in_utility
=no
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6685 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6686 if test $ac_cv_std_swap_in_utility = yes; then
6688 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6692 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6693 # If the host compiler is affected by the bug, and we build with optimization
6694 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6695 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6696 # Since there is no reliable feature check for the presence of this bug,
6697 # we simply use a GCC version number check. (This should never trigger for
6698 # stages 2 or 3 of a native bootstrap.)
6700 if test "$GCC" = yes; then
6701 saved_CXXFLAGS
="$CXXFLAGS"
6703 # The following test compilation will succeed if and only if $CXX accepts
6704 # -fno-strict-aliasing *and* is older than GCC 4.3.
6705 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6707 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6711 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6712 #error compiler not affected by placement new aliasing bug
6716 if ac_fn_cxx_try_compile
"$LINENO"; then :
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6718 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 CXXFLAGS
="$saved_CXXFLAGS"
6731 # ---------------------
6732 # Warnings and checking
6733 # ---------------------
6735 # Check $CC warning features (if it's GCC).
6736 # We want to use -pedantic, but we don't want warnings about
6739 # * overlong strings
6740 # * C++11 narrowing conversions in { }
6741 # So, we only use -pedantic if we can disable those warnings.
6743 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6744 # Check whether --enable-build-format-warnings was given.
6745 if test "${enable_build_format_warnings+set}" = set; then :
6746 enableval
=$enable_build_format_warnings;
6748 enable_build_format_warnings
=yes
6751 if test $enable_build_format_warnings = no
; then :
6757 ac_cpp
='$CXXCPP $CPPFLAGS'
6758 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6763 save_CXXFLAGS
="$CXXFLAGS"
6764 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6765 # Do the check with the no- prefix removed since gcc silently
6766 # accepts any -Wno-* option on purpose
6767 case $real_option in
6768 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6769 *) option
=$real_option ;;
6771 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6774 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6775 if eval \
${$as_acx_Woption+:} false
; then :
6776 $as_echo_n "(cached) " >&6
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6790 if ac_fn_cxx_try_compile
"$LINENO"; then :
6791 eval "$as_acx_Woption=yes"
6793 eval "$as_acx_Woption=no"
6795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6798 eval ac_res
=\$
$as_acx_Woption
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6802 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6805 CXXFLAGS
="$save_CXXFLAGS"
6807 ac_cpp
='$CXXCPP $CPPFLAGS'
6808 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6815 ac_cpp
='$CPP $CPPFLAGS'
6816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6821 save_CFLAGS
="$CFLAGS"
6822 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6823 # Do the check with the no- prefix removed since gcc silently
6824 # accepts any -Wno-* option on purpose
6825 case $real_option in
6826 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6827 *) option
=$real_option ;;
6829 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6832 $as_echo_n "checking whether $CC supports $option... " >&6; }
6833 if eval \
${$as_acx_Woption+:} false
; then :
6834 $as_echo_n "(cached) " >&6
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6848 if ac_fn_c_try_compile
"$LINENO"; then :
6849 eval "$as_acx_Woption=yes"
6851 eval "$as_acx_Woption=no"
6853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6856 eval ac_res
=\$
$as_acx_Woption
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6858 $as_echo "$ac_res" >&6; }
6859 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6860 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6863 CFLAGS
="$save_CFLAGS"
6865 ac_cpp
='$CXXCPP $CPPFLAGS'
6866 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6872 ac_cpp
='$CXXCPP $CPPFLAGS'
6873 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6878 save_CXXFLAGS
="$CXXFLAGS"
6879 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6880 # Do the check with the no- prefix removed since gcc silently
6881 # accepts any -Wno-* option on purpose
6882 case $real_option in
6883 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6884 *) option
=$real_option ;;
6886 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6889 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6890 if eval \
${$as_acx_Woption+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6905 if ac_fn_cxx_try_compile
"$LINENO"; then :
6906 eval "$as_acx_Woption=yes"
6908 eval "$as_acx_Woption=no"
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6913 eval ac_res
=\$
$as_acx_Woption
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6915 $as_echo "$ac_res" >&6; }
6916 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6917 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6920 CXXFLAGS
="$save_CXXFLAGS"
6922 ac_cpp
='$CXXCPP $CPPFLAGS'
6923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 ac_cpp
='$CPP $CPPFLAGS'
6930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6935 save_CFLAGS
="$CFLAGS"
6936 for real_option
in -Wold-style-definition -Wc++-compat; do
6937 # Do the check with the no- prefix removed since gcc silently
6938 # accepts any -Wno-* option on purpose
6939 case $real_option in
6940 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6941 *) option
=$real_option ;;
6943 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6946 $as_echo_n "checking whether $CC supports $option... " >&6; }
6947 if eval \
${$as_acx_Woption+:} false
; then :
6948 $as_echo_n "(cached) " >&6
6951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6962 if ac_fn_c_try_compile
"$LINENO"; then :
6963 eval "$as_acx_Woption=yes"
6965 eval "$as_acx_Woption=no"
6967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6970 eval ac_res
=\$
$as_acx_Woption
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6972 $as_echo "$ac_res" >&6; }
6973 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6974 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6977 CFLAGS
="$save_CFLAGS"
6979 ac_cpp
='$CXXCPP $CPPFLAGS'
6980 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6981 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6982 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6986 ac_cpp
='$CXXCPP $CPPFLAGS'
6987 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6991 # Do the check with the no- prefix removed from the warning options
6992 # since gcc silently accepts any -Wno-* option on purpose
6993 if test "$GXX" = yes; then :
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6995 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6996 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6997 $as_echo_n "(cached) " >&6
6999 save_CXXFLAGS
="$CXXFLAGS"
7000 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7012 if ac_fn_cxx_try_compile
"$LINENO"; then :
7013 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7015 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7018 CXXFLAGS
="$save_CXXFLAGS"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7021 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7022 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7023 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7028 ac_cpp
='$CXXCPP $CPPFLAGS'
7029 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7035 ac_cpp
='$CXXCPP $CPPFLAGS'
7036 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7040 # Check whether --enable-werror-always was given.
7041 if test "${enable_werror_always+set}" = set; then :
7042 enableval
=$enable_werror_always;
7044 enable_werror_always
=no
7047 if test $enable_werror_always = yes; then :
7048 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7052 ac_cpp
='$CXXCPP $CPPFLAGS'
7053 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7059 # The above macros do nothing if the compiler is not GCC. However, the
7060 # Makefile has more goo to add other flags, so these variables are used
7061 # to enable warnings only for GCC.
7064 if test "x$GCC" = "xyes"; then
7065 warn_cflags
='$(GCC_WARN_CFLAGS)'
7066 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7071 # Disable exceptions and RTTI if building with g++
7073 ac_cpp
='$CPP $CPPFLAGS'
7074 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7079 save_CFLAGS
="$CFLAGS"
7080 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7081 # Do the check with the no- prefix removed since gcc silently
7082 # accepts any -Wno-* option on purpose
7083 case $real_option in
7084 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7085 *) option
=$real_option ;;
7087 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7090 $as_echo_n "checking whether $CC supports $option... " >&6; }
7091 if eval \
${$as_acx_Woption+:} false
; then :
7092 $as_echo_n "(cached) " >&6
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7106 if ac_fn_c_try_compile
"$LINENO"; then :
7107 eval "$as_acx_Woption=yes"
7109 eval "$as_acx_Woption=no"
7111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7114 eval ac_res
=\$
$as_acx_Woption
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7116 $as_echo "$ac_res" >&6; }
7117 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7118 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7121 CFLAGS
="$save_CFLAGS"
7123 ac_cpp
='$CXXCPP $CPPFLAGS'
7124 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7130 # Enable expensive internal checks
7132 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7136 # Check whether --enable-checking was given.
7137 if test "${enable_checking+set}" = set; then :
7138 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7141 # Determine the default checks.
7142 if test x
$is_release = x
; then
7143 ac_checking_flags
=yes,extra
7145 ac_checking_flags
=release
7149 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7150 for check
in release
$ac_checking_flags
7153 # these set all the flags to specific states
7154 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7155 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7156 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7157 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7158 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7159 ac_types_checking
=1 ;;
7160 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7161 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7162 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7163 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7164 ac_tree_checking
= ; ac_valgrind_checking
= ;
7165 ac_types_checking
= ;;
7166 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7167 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7168 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7169 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7170 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7171 ac_types_checking
=1 ;;
7172 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7173 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7174 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7175 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7176 ac_tree_checking
= ; ac_valgrind_checking
= ;
7177 ac_types_checking
= ;;
7178 # these enable particular checks
7179 assert
) ac_assert_checking
=1 ;;
7180 df
) ac_df_checking
=1 ;;
7181 extra
) ac_extra_checking
=1 ;;
7182 fold) ac_fold_checking
=1 ;;
7183 gc
) ac_gc_checking
=1 ;;
7184 gcac
) ac_gc_always_collect
=1 ;;
7185 gimple
) ac_gimple_checking
=1 ;;
7186 misc
) ac_checking
=1 ;;
7187 rtl
) ac_rtl_checking
=1 ;;
7188 rtlflag
) ac_rtlflag_checking
=1 ;;
7189 runtime
) ac_runtime_checking
=1 ;;
7190 tree
) ac_tree_checking
=1 ;;
7191 types
) ac_types_checking
=1 ;;
7192 valgrind
) ac_valgrind_checking
=1 ;;
7193 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7199 if test x
$ac_checking != x
; then
7201 $as_echo "#define CHECKING_P 1" >>confdefs.h
7203 nocommon_flag
=-fno-common
7205 $as_echo "#define CHECKING_P 0" >>confdefs.h
7209 if test x
$ac_extra_checking != x
; then
7211 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7214 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7217 if test x
$ac_df_checking != x
; then
7219 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7222 if test x
$ac_assert_checking != x
; then
7224 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7227 if test x
$ac_gimple_checking != x
; then
7229 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7233 if test x
$ac_runtime_checking != x
; then
7235 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7238 if test x
$ac_tree_checking != x
; then
7240 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7244 if test x
$ac_types_checking != x
; then
7246 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7250 if test x
$ac_rtl_checking != x
; then
7252 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7255 if test x
$ac_rtlflag_checking != x
; then
7257 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7260 if test x
$ac_gc_checking != x
; then
7262 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7265 if test x
$ac_gc_always_collect != x
; then
7267 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7270 if test x
$ac_fold_checking != x
; then
7272 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7275 valgrind_path_defines
=
7278 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7279 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7287 # It is certainly possible that there's valgrind but no valgrind.h.
7288 # GCC relies on making annotations so we must have both.
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7290 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293 #include <valgrind/memcheck.h>
7294 #ifndef VALGRIND_DISCARD
7295 #error VALGRIND_DISCARD not defined
7298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7299 gcc_cv_header_valgrind_memcheck_h
=yes
7301 gcc_cv_header_valgrind_memcheck_h
=no
7303 rm -f conftest.err conftest.i conftest.
$ac_ext
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7305 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7307 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 #include <memcheck.h>
7311 #ifndef VALGRIND_DISCARD
7312 #error VALGRIND_DISCARD not defined
7315 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7316 gcc_cv_header_memcheck_h
=yes
7318 gcc_cv_header_memcheck_h
=no
7320 rm -f conftest.err conftest.i conftest.
$ac_ext
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7322 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7323 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7325 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7328 if test $gcc_cv_header_memcheck_h = yes; then
7330 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7334 if test x
$ac_valgrind_checking != x
; then
7336 # Prepare PATH_SEPARATOR.
7337 # The user is always right.
7338 if test "${PATH_SEPARATOR+set}" != set; then
7339 echo "#! /bin/sh" >conf$$.sh
7340 echo "exit 0" >>conf$$.sh
7342 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7350 # Find out how to test for executable files. Don't use a zero-byte file,
7351 # as systems may use methods other than mode bits to determine executability.
7352 cat >conf$$.
file <<_ASEOF
7356 chmod +x conf$$.
file
7357 if test -x conf$$.
file >/dev
/null
2>&1; then
7358 ac_executable_p
="test -x"
7360 ac_executable_p
="test -f"
7364 # Extract the first word of "valgrind", so it can be a program name with args.
7365 set dummy valgrind
; ac_word
=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_path_valgrind_path+:} false
; then :
7369 $as_echo_n "(cached) " >&6
7371 case "$valgrind_path" in
7373 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7376 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7377 for ac_dir
in $PATH; do
7379 test -z "$ac_dir" && ac_dir
=.
7380 for ac_exec_ext
in '' $ac_executable_extensions; do
7381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7382 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7383 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7393 valgrind_path
="$ac_cv_path_valgrind_path"
7394 if test -n "$valgrind_path"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7396 $as_echo "$valgrind_path" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7402 if test "x$valgrind_path" = "x" \
7403 ||
(test $have_valgrind_h = no \
7404 && test $gcc_cv_header_memcheck_h = no \
7405 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7406 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7408 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7409 valgrind_command
="$valgrind_path -q"
7411 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7417 # Enable code coverage collection
7418 # Check whether --enable-coverage was given.
7419 if test "${enable_coverage+set}" = set; then :
7420 enableval
=$enable_coverage; case "${enableval}" in
7422 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7425 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7428 # a.k.a. --disable-coverage
7432 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7441 # Check whether --enable-gather-detailed-mem-stats was given.
7442 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7443 enableval
=$enable_gather_detailed_mem_stats;
7445 enable_gather_detailed_mem_stats
=no
7448 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7450 cat >>confdefs.h
<<_ACEOF
7451 #define GATHER_STATISTICS $gather_stats
7455 # Check whether --enable-valgrind-annotations was given.
7456 if test "${enable_valgrind_annotations+set}" = set; then :
7457 enableval
=$enable_valgrind_annotations;
7459 enable_valgrind_annotations
=no
7462 if test x
$enable_valgrind_annotations != xno \
7463 ||
test x
$ac_valgrind_checking != x
; then
7464 if (test $have_valgrind_h = no \
7465 && test $gcc_cv_header_memcheck_h = no \
7466 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7467 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7470 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7474 # -------------------------------
7475 # Miscenalleous configure options
7476 # -------------------------------
7480 # Check whether --with-stabs was given.
7481 if test "${with_stabs+set}" = set; then :
7482 withval
=$with_stabs; stabs
="$with_stabs"
7488 # Determine whether or not multilibs are enabled.
7489 # Check whether --enable-multilib was given.
7490 if test "${enable_multilib+set}" = set; then :
7491 enableval
=$enable_multilib;
7498 # Determine whether or not multiarch is enabled.
7499 # Check whether --enable-multiarch was given.
7500 if test "${enable_multiarch+set}" = set; then :
7501 enableval
=$enable_multiarch; case "${enableval}" in
7502 yes|no|auto
) enable_multiarch
=$enableval;;
7503 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7506 enable_multiarch
=auto
7509 if test x
${enable_multiarch} = xauto
; then
7510 if test x
${with_native_system_header_dir} != x
; then
7511 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7514 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7515 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7520 $as_echo_n "checking for multiarch configuration... " >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7523 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7525 # needed for setting the multiarch name for soft-float/hard-float ABIs
7529 # default stack clash protection guard size as power of twos in bytes.
7530 # Please keep these in sync with params.def.
7534 # Keep the default value when the option is not used to 0, this allows us to
7535 # distinguish between the cases where the user specifially set a value via
7536 # configure and when the normal default value is used.
7538 # Check whether --with-stack-clash-protection-guard-size was given.
7539 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7540 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7542 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7545 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7546 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7547 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7548 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
7552 cat >>confdefs.h
<<_ACEOF
7553 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7557 # Enable __cxa_atexit for C++.
7558 # Check whether --enable-__cxa_atexit was given.
7559 if test "${enable___cxa_atexit+set}" = set; then :
7560 enableval
=$enable___cxa_atexit;
7564 # Enable C extension for decimal float if target supports it.
7566 # Check whether --enable-decimal-float was given.
7567 if test "${enable_decimal_float+set}" = set; then :
7568 enableval
=$enable_decimal_float;
7569 case $enable_decimal_float in
7570 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7571 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7572 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7578 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7579 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7580 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7581 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7582 enable_decimal_float
=yes
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7586 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7587 enable_decimal_float
=no
7594 # x86's use BID format instead of DPD
7595 case x
$enable_decimal_float in
7598 i?
86*-*-* | x86_64
*-*-*)
7599 enable_decimal_float
=bid
7602 enable_decimal_float
=dpd
7605 default_decimal_float
=$enable_decimal_float
7608 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7609 # dependency on libdecnumber.
7610 default_decimal_float
=dpd
7617 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7619 cat >>confdefs.h
<<_ACEOF
7620 #define ENABLE_DECIMAL_FLOAT $dfp
7624 # Use default_decimal_float for dependency.
7625 enable_decimal_float
=$default_decimal_float
7627 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7629 cat >>confdefs.h
<<_ACEOF
7630 #define ENABLE_DECIMAL_BID_FORMAT $bid
7634 # Enable C extension for fixed-point arithmetic.
7635 # Check whether --enable-fixed-point was given.
7636 if test "${enable_fixed_point+set}" = set; then :
7637 enableval
=$enable_fixed_point;
7642 enable_fixed_point
=yes
7646 enable_fixed_point
=yes
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7650 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7651 enable_fixed_point
=no
7659 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7661 cat >>confdefs.h
<<_ACEOF
7662 #define ENABLE_FIXED_POINT $fixedpoint
7667 # Pass with no value to take the default
7668 # Pass with a value to specify a thread package
7669 # Check whether --enable-threads was given.
7670 if test "${enable_threads+set}" = set; then :
7671 enableval
=$enable_threads;
7677 # Check whether --enable-tls was given.
7678 if test "${enable_tls+set}" = set; then :
7679 enableval
=$enable_tls;
7682 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7683 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7691 # Check whether --enable-vtable-verify was given.
7692 if test "${enable_vtable_verify+set}" = set; then :
7693 enableval
=$enable_vtable_verify;
7695 enable_vtable_verify
=no
7698 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7700 cat >>confdefs.h
<<_ACEOF
7701 #define ENABLE_VTABLE_VERIFY $vtable_verify
7705 # Check whether --enable-objc-gc was given.
7706 if test "${enable_objc_gc+set}" = set; then :
7707 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7718 # Check whether --with-dwarf2 was given.
7719 if test "${with_dwarf2+set}" = set; then :
7720 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7726 # Check whether --enable-shared was given.
7727 if test "${enable_shared+set}" = set; then :
7728 enableval
=$enable_shared;
7729 case $enable_shared in
7733 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7734 for pkg
in $enableval; do
7735 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7749 # Check whether --enable-gcov was given.
7750 if test "${enable_gcov+set}" = set; then :
7751 enableval
=$enable_gcov;
7759 # Check whether --with-specs was given.
7760 if test "${with_specs+set}" = set; then :
7761 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7771 # Check whether --with-pkgversion was given.
7772 if test "${with_pkgversion+set}" = set; then :
7773 withval
=$with_pkgversion; case "$withval" in
7774 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7776 *) PKGVERSION
="($withval) " ;;
7787 # Check whether --with-bugurl was given.
7788 if test "${with_bugurl+set}" = set; then :
7789 withval
=$with_bugurl; case "$withval" in
7790 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7793 *) BUGURL
="$withval"
7797 BUGURL
="https://gcc.gnu.org/bugs/"
7807 REPORT_BUGS_TO
="<$BUGURL>"
7808 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7815 # Allow overriding the default URL for documentation
7817 # Check whether --with-documentation-root-url was given.
7818 if test "${with_documentation_root_url+set}" = set; then :
7819 withval
=$with_documentation_root_url; case "$withval" in
7820 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7821 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7822 *) DOCUMENTATION_ROOT_URL
="$withval"
7826 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/gcc/"
7832 # Sanity check enable_languages in case someone does not run the toplevel
7833 # configure # script.
7834 # Check whether --enable-languages was given.
7835 if test "${enable_languages+set}" = set; then :
7836 enableval
=$enable_languages; case ,${enable_languages}, in
7838 # go safe -- we cannot be much sure without the toplevel
7840 # analysis of which target libs are present and usable
7844 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7849 enable_languages
=c
,${enable_languages}
7857 # If top-level libada has been disabled, then wire in install-gnatlib
7858 # invocation with `make install', so that one can build and install
7859 # the library manually with `make -C gcc all gnatlib gnattools install'.
7860 if test x
"$enable_libada" = xno
; then
7861 gnat_install_lib
=gnat-install-lib
7867 if test x
"$enable_as_accelerator_for" != x
; then
7869 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7871 enable_as_accelerator
=yes
7874 # In this case we expect offload compiler to be built as native, so we
7875 # need to rename the driver to avoid clashes with host's drivers.
7876 program_transform_name
="s&^&${target}-&" ;;
7878 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7879 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7880 accel_dir_suffix
=/accel
/${target_noncanonical}
7881 real_target_noncanonical
=${enable_as_accelerator_for}
7887 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7888 tgt
=`echo $tgt | sed 's/=.*//'`
7890 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7896 omp_device_property
=omp-device-properties-i386
7897 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7900 omp_device_property
=omp-device-properties-gcn
7901 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7904 omp_device_property
=omp-device-properties-nvptx
7905 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7908 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7909 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7912 if test x
"$offload_targets" = x
; then
7913 offload_targets
=$tgt
7915 offload_targets
="$offload_targets,$tgt"
7922 cat >>confdefs.h
<<_ACEOF
7923 #define OFFLOAD_TARGETS "$offload_targets"
7926 if test x
"$enable_offloading" != x
; then
7928 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7932 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7936 if test x
"$enable_hsa" = x1
; then
7938 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7943 # Check whether --with-multilib-list was given.
7944 if test "${with_multilib_list+set}" = set; then :
7945 withval
=$with_multilib_list; :
7947 with_multilib_list
=default
7951 # -------------------------
7952 # Checks for other programs
7953 # -------------------------
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7958 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7959 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7960 $as_echo_n "(cached) " >&6
7962 cat >conftest.
make <<\_ACEOF
7965 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7970 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7972 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7976 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 SET_MAKE
="MAKE=${MAKE-make}"
7987 # Find some useful tools
7988 for ac_prog
in gawk mawk nawk
awk
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy
$ac_prog; ac_word
=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_prog_AWK+:} false
; then :
7995 $as_echo_n "(cached) " >&6
7997 if test -n "$AWK"; then
7998 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8004 test -z "$as_dir" && as_dir
=.
8005 for ac_exec_ext
in '' $ac_executable_extensions; do
8006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_AWK
="$ac_prog"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 if test -n "$AWK"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8020 $as_echo "$AWK" >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 test -n "$AWK" && break
8030 # We need awk to create options.c and options.h.
8031 # Bail out if it's missing.
8033 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8037 $as_echo_n "checking whether ln -s works... " >&6; }
8038 if ${gcc_cv_prog_LN_S+:} false
; then :
8039 $as_echo_n "(cached) " >&6
8041 rm -f conftestdata_t
8042 echo >conftestdata_f
8043 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8045 gcc_cv_prog_LN_S
="ln -s"
8047 if ln conftestdata_f conftestdata_t
2>/dev
/null
8051 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8053 gcc_cv_prog_LN_S
="cp -p"
8059 rm -f conftestdata_f conftestdata_t
8062 LN_S
="$gcc_cv_prog_LN_S"
8063 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065 $as_echo "yes" >&6; }
8067 if test "$gcc_cv_prog_LN_S" = "ln"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8069 $as_echo "no, using ln" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8072 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8077 $as_echo_n "checking whether ln works... " >&6; }
8078 if ${acx_cv_prog_LN+:} false
; then :
8079 $as_echo_n "(cached) " >&6
8081 rm -f conftestdata_t
8082 echo >conftestdata_f
8083 if ln conftestdata_f conftestdata_t
2>/dev
/null
8089 rm -f conftestdata_f conftestdata_t
8092 if test $acx_cv_prog_LN = no
; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8095 $as_echo "no, using $LN" >&6; }
8097 LN
="$acx_cv_prog_LN"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099 $as_echo "yes" >&6; }
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8104 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_RANLIB+:} false
; then :
8108 $as_echo_n "(cached) " >&6
8110 if test -n "$RANLIB"; then
8111 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir
=.
8118 for ac_exec_ext
in '' $ac_executable_extensions; do
8119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 RANLIB
=$ac_cv_prog_RANLIB
8131 if test -n "$RANLIB"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8133 $as_echo "$RANLIB" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8141 if test -z "$ac_cv_prog_RANLIB"; then
8142 ac_ct_RANLIB
=$RANLIB
8143 # Extract the first word of "ranlib", so it can be a program name with args.
8144 set dummy ranlib
; ac_word
=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8148 $as_echo_n "(cached) " >&6
8150 if test -n "$ac_ct_RANLIB"; then
8151 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir
=.
8158 for ac_exec_ext
in '' $ac_executable_extensions; do
8159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8171 if test -n "$ac_ct_RANLIB"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8173 $as_echo "$ac_ct_RANLIB" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8179 if test "x$ac_ct_RANLIB" = x
; then
8182 case $cross_compiling:$ac_tool_warned in
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8186 ac_tool_warned
=yes ;;
8188 RANLIB
=$ac_ct_RANLIB
8191 RANLIB
="$ac_cv_prog_RANLIB"
8197 # Find a good install program. We prefer a C program (faster),
8198 # so one script is as good as another. But avoid the broken or
8199 # incompatible versions:
8200 # SysV /etc/install, /usr/sbin/install
8201 # SunOS /usr/etc/install
8202 # IRIX /sbin/install
8204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8206 # ./install, which can be erroneously created by make from ./install.sh.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8208 $as_echo_n "checking for a BSD compatible install... " >&6; }
8209 if test -z "$INSTALL"; then
8210 if ${ac_cv_path_install+:} false
; then :
8211 $as_echo_n "(cached) " >&6
8213 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8214 for ac_dir
in $PATH; do
8215 # Account for people who put trailing slashes in PATH elements.
8217 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8219 # OSF1 and SCO ODT 3.0 have their own names for install.
8220 for ac_prog
in ginstall scoinst
install; do
8221 if test -f $ac_dir/$ac_prog; then
8222 if test $ac_prog = install &&
8223 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8224 # AIX install. It has an incompatible calling convention.
8225 # OSF/1 installbsd also uses dspmsg, but is usable.
8228 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8239 if test "${ac_cv_path_install+set}" = set; then
8240 INSTALL
="$ac_cv_path_install"
8242 # As a last resort, use the slow shell script. We don't cache a
8243 # path for INSTALL within a source directory, because that will
8244 # break other packages using the cache if that directory is
8245 # removed, or if the path is relative.
8246 INSTALL
="$ac_install_sh"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8250 $as_echo "$INSTALL" >&6; }
8252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8253 # It thinks the first close brace ends the variable substitution.
8254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8256 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8259 # See if cmp has --ignore-initial.
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8261 $as_echo_n "checking for cmp's capabilities... " >&6; }
8262 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8263 $as_echo_n "(cached) " >&6
8267 gcc_cv_prog_cmp_skip
=slowcompare
8268 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8269 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8272 gcc_cv_prog_cmp_skip
=gnucompare
8275 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8276 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8277 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8280 gcc_cv_prog_cmp_skip
=fastcompare
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8288 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8289 make_compare_target
=$gcc_cv_prog_cmp_skip
8293 # See if we have the mktemp command.
8294 # Extract the first word of "mktemp", so it can be a program name with args.
8295 set dummy mktemp
; ac_word
=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$have_mktemp_command"; then
8302 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir
=.
8309 for ac_exec_ext
in '' $ac_executable_extensions; do
8310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_have_mktemp_command
="yes"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8322 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8323 if test -n "$have_mktemp_command"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8325 $as_echo "$have_mktemp_command" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8333 # See if makeinfo has been installed and is modern enough
8334 # that we can use it.
8336 # Extract the first word of "makeinfo", so it can be a program name with args.
8337 set dummy makeinfo
; ac_word
=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$MAKEINFO"; then
8344 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir
=.
8351 for ac_exec_ext
in '' $ac_executable_extensions; do
8352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_MAKEINFO
="makeinfo"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 MAKEINFO
=$ac_cv_prog_MAKEINFO
8364 if test -n "$MAKEINFO"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8366 $as_echo "$MAKEINFO" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8373 if test -n "$MAKEINFO"; then
8374 # Found it, now check the version.
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8376 $as_echo_n "checking for modern makeinfo... " >&6; }
8377 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8378 $as_echo_n "(cached) " >&6
8380 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8381 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8383 case $ac_prog_version in
8384 '') gcc_cv_prog_makeinfo_modern
=no
;;
8385 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8386 *) gcc_cv_prog_makeinfo_modern
=no
;;
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8391 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8393 gcc_cv_prog_makeinfo_modern
=no
8395 if test $gcc_cv_prog_makeinfo_modern = no
; then
8396 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8399 if test $gcc_cv_prog_makeinfo_modern = no
; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8401 *** Makeinfo is missing or too old.
8402 *** Info documentation will not be built." >&5
8403 $as_echo "$as_me: WARNING:
8404 *** Makeinfo is missing or too old.
8405 *** Info documentation will not be built." >&2;}
8412 # Is pod2man recent enough to regenerate manpages?
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8414 $as_echo_n "checking for recent Pod::Man... " >&6; }
8415 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8417 $as_echo "yes" >&6; }
8418 GENERATED_MANPAGES
=generated-manpages
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8431 # Extract the first word of "$ac_prog", so it can be a program name with args.
8432 set dummy
$ac_prog; ac_word
=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_FLEX+:} false
; then :
8436 $as_echo_n "(cached) " >&6
8438 if test -n "$FLEX"; then
8439 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8445 test -z "$as_dir" && as_dir
=.
8446 for ac_exec_ext
in '' $ac_executable_extensions; do
8447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_FLEX
="$ac_prog"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 FLEX
=$ac_cv_prog_FLEX
8459 if test -n "$FLEX"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8461 $as_echo "$FLEX" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8468 test -n "$FLEX" && break
8470 test -n "$FLEX" || FLEX
="$MISSING flex"
8474 for ac_prog
in bison
8476 # Extract the first word of "$ac_prog", so it can be a program name with args.
8477 set dummy
$ac_prog; ac_word
=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_BISON+:} false
; then :
8481 $as_echo_n "(cached) " >&6
8483 if test -n "$BISON"; then
8484 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8490 test -z "$as_dir" && as_dir
=.
8491 for ac_exec_ext
in '' $ac_executable_extensions; do
8492 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_BISON
="$ac_prog"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 BISON
=$ac_cv_prog_BISON
8504 if test -n "$BISON"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8506 $as_echo "$BISON" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8513 test -n "$BISON" && break
8515 test -n "$BISON" || BISON
="$MISSING bison"
8518 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8519 # check for build == host before using them.
8522 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8523 && test -d ..
/binutils
; then
8524 NM
='${objdir}/../binutils/nm-new'
8526 # Extract the first word of "nm", so it can be a program name with args.
8527 set dummy nm
; ac_word
=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_NM+:} false
; then :
8531 $as_echo_n "(cached) " >&6
8533 if test -n "$NM"; then
8534 ac_cv_prog_NM
="$NM" # Let the user override the test.
8536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8540 test -z "$as_dir" && as_dir
=.
8541 for ac_exec_ext
in '' $ac_executable_extensions; do
8542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8555 if test -n "$NM"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8557 $as_echo "$NM" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8567 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8568 && test -d ..
/binutils
; then
8569 AR
='${objdir}/../binutils/ar'
8571 # Extract the first word of "ar", so it can be a program name with args.
8572 set dummy
ar; ac_word
=$2
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574 $as_echo_n "checking for $ac_word... " >&6; }
8575 if ${ac_cv_prog_AR+:} false
; then :
8576 $as_echo_n "(cached) " >&6
8578 if test -n "$AR"; then
8579 ac_cv_prog_AR
="$AR" # Let the user override the test.
8581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir
=.
8586 for ac_exec_ext
in '' $ac_executable_extensions; do
8587 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8600 if test -n "$AR"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8602 $as_echo "$AR" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8611 # The jit documentation looks better if built with sphinx, but can be
8612 # built with texinfo if sphinx is not available.
8613 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8614 # Extract the first word of "sphinx-build", so it can be a program name with args.
8615 set dummy sphinx-build
; ac_word
=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8619 $as_echo_n "(cached) " >&6
8621 if test -n "$doc_build_sys"; then
8622 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir
=.
8629 for ac_exec_ext
in '' $ac_executable_extensions; do
8630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_doc_build_sys
="sphinx"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8642 doc_build_sys
=$ac_cv_prog_doc_build_sys
8643 if test -n "$doc_build_sys"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8645 $as_echo "$doc_build_sys" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8653 # --------------------
8654 # Checks for C headers
8655 # --------------------
8657 # Need to reject headers which give warnings, so that the -Werror bootstrap
8658 # works later. *sigh* This needs to come before all header checks.
8660 ac_c_preproc_warn_flag
=yes
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8663 $as_echo_n "checking for ANSI C header files... " >&6; }
8664 if ${ac_cv_header_stdc+:} false
; then :
8665 $as_echo_n "(cached) " >&6
8667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8682 if ac_fn_cxx_try_compile
"$LINENO"; then :
8683 ac_cv_header_stdc
=yes
8685 ac_cv_header_stdc
=no
8687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8689 if test $ac_cv_header_stdc = yes; then
8690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697 $EGREP "memchr" >/dev
/null
2>&1; then :
8700 ac_cv_header_stdc
=no
8706 if test $ac_cv_header_stdc = yes; then
8707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "free" >/dev
/null
2>&1; then :
8717 ac_cv_header_stdc
=no
8723 if test $ac_cv_header_stdc = yes; then
8724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8725 if test "$cross_compiling" = yes; then :
8728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8732 #if ((' ' & 0x0FF) == 0x020)
8733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8736 # define ISLOWER(c) \
8737 (('a' <= (c) && (c) <= 'i') \
8738 || ('j' <= (c) && (c) <= 'r') \
8739 || ('s' <= (c) && (c) <= 'z'))
8740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8748 for (i = 0; i < 256; i++)
8749 if (XOR (islower (i), ISLOWER (i))
8750 || toupper (i) != TOUPPER (i))
8755 if ac_fn_cxx_try_run
"$LINENO"; then :
8758 ac_cv_header_stdc
=no
8760 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8761 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8767 $as_echo "$ac_cv_header_stdc" >&6; }
8768 if test $ac_cv_header_stdc = yes; then
8770 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8775 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8776 if ${ac_cv_header_time+:} false
; then :
8777 $as_echo_n "(cached) " >&6
8779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <sys/types.h>
8782 #include <sys/time.h>
8788 if ((struct tm *) 0)
8794 if ac_fn_cxx_try_compile
"$LINENO"; then :
8795 ac_cv_header_time
=yes
8797 ac_cv_header_time
=no
8799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8802 $as_echo "$ac_cv_header_time" >&6; }
8803 if test $ac_cv_header_time = yes; then
8805 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8810 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8811 if ${gcc_cv_header_string+:} false
; then :
8812 $as_echo_n "(cached) " >&6
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8817 #include <strings.h>
8826 if ac_fn_cxx_try_compile
"$LINENO"; then :
8827 gcc_cv_header_string
=yes
8829 gcc_cv_header_string
=no
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8834 $as_echo "$gcc_cv_header_string" >&6; }
8835 if test $gcc_cv_header_string = yes; then
8837 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8842 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8843 if ${ac_cv_header_sys_wait_h+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/wait.h>
8851 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8867 if ac_fn_cxx_try_compile
"$LINENO"; then :
8868 ac_cv_header_sys_wait_h
=yes
8870 ac_cv_header_sys_wait_h
=no
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8875 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8876 if test $ac_cv_header_sys_wait_h = yes; then
8878 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8883 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8884 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8885 $as_echo_n "(cached) " >&6
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <termios.h>
8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8897 $EGREP "yes" >/dev
/null
2>&1; then :
8898 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8900 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8906 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8908 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8910 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8911 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8912 $as_echo_n "(cached) " >&6
8914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <sys/ioctl.h>
8923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8924 $EGREP "yes" >/dev
/null
2>&1; then :
8925 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8927 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8933 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8935 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8937 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8942 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8943 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8944 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8945 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8947 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8949 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8950 cat >>confdefs.h
<<_ACEOF
8951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8958 # Check for thread headers.
8959 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8960 if test "x$ac_cv_header_thread_h" = xyes
; then :
8966 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8967 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8974 # These tests can't be done till we know if we have limits.h.
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8976 $as_echo_n "checking for CHAR_BIT... " >&6; }
8977 if ${gcc_cv_decl_char_bit+:} false
; then :
8978 $as_echo_n "(cached) " >&6
8980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #ifdef HAVE_LIMITS_H
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "found" >/dev
/null
2>&1; then :
8991 gcc_cv_decl_char_bit
=yes
8993 gcc_cv_decl_char_bit
=no
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9000 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9001 if test $gcc_cv_decl_char_bit = no
; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9003 $as_echo_n "checking number of bits in a byte... " >&6; }
9004 if ${gcc_cv_c_nbby+:} false
; then :
9005 $as_echo_n "(cached) " >&6
9009 while test $i -lt 65; do
9010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9017 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9018 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9024 if ac_fn_cxx_try_compile
"$LINENO"; then :
9025 gcc_cv_c_nbby
=$i; break
9027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9030 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9034 $as_echo "$gcc_cv_c_nbby" >&6; }
9035 if test $gcc_cv_c_nbby = failed
; then
9036 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9039 cat >>confdefs.h
<<_ACEOF
9040 #define CHAR_BIT $gcc_cv_c_nbby
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9046 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9047 if ${ac_cv_c_bigendian+:} false
; then :
9048 $as_echo_n "(cached) " >&6
9050 ac_cv_c_bigendian
=unknown
9051 # See if we're dealing with a universal compiler.
9052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #ifndef __APPLE_CC__
9055 not a universal capable compiler
9060 if ac_fn_cxx_try_compile
"$LINENO"; then :
9062 # Check for potential -arch flags. It is not universal unless
9063 # there are at least two -arch flags with different values.
9066 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9067 if test -n "$ac_prev"; then
9069 i?
86 | x86_64 | ppc | ppc64
)
9070 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9073 ac_cv_c_bigendian
=universal
9079 elif test "x$ac_word" = "x-arch"; then
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 if test $ac_cv_c_bigendian = unknown
; then
9086 # See if sys/param.h defines the BYTE_ORDER macro.
9087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <sys/types.h>
9090 #include <sys/param.h>
9095 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9096 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9105 if ac_fn_cxx_try_compile
"$LINENO"; then :
9106 # It does; now see whether it defined to BIG_ENDIAN or not.
9107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/param.h>
9115 #if BYTE_ORDER != BIG_ENDIAN
9123 if ac_fn_cxx_try_compile
"$LINENO"; then :
9124 ac_cv_c_bigendian
=yes
9126 ac_cv_c_bigendian
=no
9128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9132 if test $ac_cv_c_bigendian = unknown
; then
9133 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9141 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9149 if ac_fn_cxx_try_compile
"$LINENO"; then :
9150 # It does; now see whether it defined to _BIG_ENDIAN or not.
9151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9166 if ac_fn_cxx_try_compile
"$LINENO"; then :
9167 ac_cv_c_bigendian
=yes
9169 ac_cv_c_bigendian
=no
9171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9175 if test $ac_cv_c_bigendian = unknown
; then
9176 # Compile a test program.
9177 if test "$cross_compiling" = yes; then :
9178 # Try to guess by grepping values from an object file.
9179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 short int ascii_mm[] =
9182 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9183 short int ascii_ii[] =
9184 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9185 int use_ascii (int i) {
9186 return ascii_mm[i] + ascii_ii[i];
9188 short int ebcdic_ii[] =
9189 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9190 short int ebcdic_mm[] =
9191 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9192 int use_ebcdic (int i) {
9193 return ebcdic_mm[i] + ebcdic_ii[i];
9200 return use_ascii (foo) == use_ebcdic (foo);
9205 if ac_fn_cxx_try_compile
"$LINENO"; then :
9206 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9207 ac_cv_c_bigendian
=yes
9209 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9210 if test "$ac_cv_c_bigendian" = unknown
; then
9211 ac_cv_c_bigendian
=no
9213 # finding both strings is unlikely to happen, but who knows?
9214 ac_cv_c_bigendian
=unknown
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 $ac_includes_default
9227 /* Are we little or big endian? From Harbison&Steele. */
9231 char c[sizeof (long int)];
9234 return u.c[sizeof (long int) - 1] == 1;
9240 if ac_fn_cxx_try_run
"$LINENO"; then :
9241 ac_cv_c_bigendian
=no
9243 ac_cv_c_bigendian
=yes
9245 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9246 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9252 $as_echo "$ac_cv_c_bigendian" >&6; }
9253 case $ac_cv_c_bigendian in #(
9255 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9261 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9265 as_fn_error $?
"unknown endianness
9266 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9270 # ----------------------
9271 # Checks for C++ headers
9272 # ----------------------
9275 ac_cpp
='$CXXCPP $CPPFLAGS'
9276 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9277 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9278 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9280 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9281 if test -z "$CXXCPP"; then
9282 if ${ac_cv_prog_CXXCPP+:} false
; then :
9283 $as_echo_n "(cached) " >&6
9285 # Double quotes because CXXCPP needs to be expanded
9286 for CXXCPP
in "$CXX -E" "/lib/cpp"
9289 for ac_cxx_preproc_warn_flag
in '' yes
9291 # Use a header file that comes with gcc, so configuring glibc
9292 # with a fresh cross-compiler works.
9293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 # <limits.h> exists even on freestanding compilers.
9295 # On the NeXT, cc -E runs the code through the compiler's parser,
9296 # not just through cpp. "Syntax error" is here to catch this case.
9297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9300 # include <limits.h>
9302 # include <assert.h>
9306 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9309 # Broken: fails on valid input.
9312 rm -f conftest.err conftest.i conftest.
$ac_ext
9314 # OK, works on sane cases. Now check whether nonexistent headers
9315 # can be detected and how.
9316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <ac_nonexistent.h>
9320 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9321 # Broken: success on invalid input.
9324 # Passes both tests.
9328 rm -f conftest.err conftest.i conftest.
$ac_ext
9331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9332 rm -f conftest.i conftest.err conftest.
$ac_ext
9333 if $ac_preproc_ok; then :
9338 ac_cv_prog_CXXCPP
=$CXXCPP
9341 CXXCPP
=$ac_cv_prog_CXXCPP
9343 ac_cv_prog_CXXCPP
=$CXXCPP
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9346 $as_echo "$CXXCPP" >&6; }
9348 for ac_cxx_preproc_warn_flag
in '' yes
9350 # Use a header file that comes with gcc, so configuring glibc
9351 # with a fresh cross-compiler works.
9352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 # <limits.h> exists even on freestanding compilers.
9354 # On the NeXT, cc -E runs the code through the compiler's parser,
9355 # not just through cpp. "Syntax error" is here to catch this case.
9356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9359 # include <limits.h>
9361 # include <assert.h>
9365 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9368 # Broken: fails on valid input.
9371 rm -f conftest.err conftest.i conftest.
$ac_ext
9373 # OK, works on sane cases. Now check whether nonexistent headers
9374 # can be detected and how.
9375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 #include <ac_nonexistent.h>
9379 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9380 # Broken: success on invalid input.
9383 # Passes both tests.
9387 rm -f conftest.err conftest.i conftest.
$ac_ext
9390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9391 rm -f conftest.i conftest.err conftest.
$ac_ext
9392 if $ac_preproc_ok; then :
9395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9398 See \`config.log' for more details" >&5
9399 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9400 See \`config.log' for more details" >&2;}; }
9404 ac_cpp
='$CXXCPP $CPPFLAGS'
9405 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9410 for ac_header
in unordered_map
9412 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9413 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9414 cat >>confdefs.h
<<_ACEOF
9415 #define HAVE_UNORDERED_MAP 1
9421 for ac_header
in tr1/unordered_map
9423 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9424 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9425 cat >>confdefs.h
<<_ACEOF
9426 #define HAVE_TR1_UNORDERED_MAP 1
9432 for ac_header
in ext
/hash_map
9434 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9435 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9436 cat >>confdefs.h
<<_ACEOF
9437 #define HAVE_EXT_HASH_MAP 1
9445 # Dependency checking.
9448 rm -rf .tst
2>/dev
/null
9449 mkdir .tst
2>/dev
/null
9450 if test -d .tst
; then
9455 rmdir .tst
2>/dev
/null
9457 DEPDIR
="${am__leading_dot}deps"
9459 ac_config_commands
="$ac_config_commands depdir"
9462 ac_config_commands
="$ac_config_commands gccdepdir"
9465 depcc
="$CXX" am_compiler_list
=
9467 am_depcomp
=$ac_aux_dir/depcomp
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9469 $as_echo_n "checking dependency style of $depcc... " >&6; }
9470 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9471 $as_echo_n "(cached) " >&6
9473 if test -f "$am_depcomp"; then
9474 # We make a subdir and do the tests there. Otherwise we can end up
9475 # making bogus files that we don't know about and never remove. For
9476 # instance it was reported that on HP-UX the gcc test will end up
9477 # making a dummy file named `D' -- because `-MD' means `put the output
9480 # Copy depcomp to subdir because otherwise we won't find it if we're
9481 # using a relative directory.
9482 cp "$am_depcomp" conftest.dir
9484 # We will build objects and dependencies in a subdirectory because
9485 # it helps to detect inapplicable dependency modes. For instance
9486 # both Tru64's cc and ICC support -MD to output dependencies as a
9487 # side effect of compilation, but ICC will put the dependencies in
9488 # the current directory while Tru64 will put them in the object
9492 am_cv_CXX_dependencies_compiler_type
=none
9493 if test "$am_compiler_list" = ""; then
9494 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9496 for depmode
in $am_compiler_list; do
9497 if test $depmode = none
; then break; fi
9499 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9500 # Setup a source with many dependencies, because some compilers
9501 # like to wrap large dependency lists on column 80 (with \), and
9502 # we should not choose a depcomp mode which is confused by this.
9504 # We need to recreate these files for each test, as the compiler may
9505 # overwrite some of them when testing with obscure command lines.
9506 # This happens at least with the AIX C compiler.
9508 for i
in 1 2 3 4 5 6; do
9509 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9511 # Solaris 8's {/usr,}/bin/sh.
9512 touch sub
/conftst
$i.h
9514 echo "include sub/conftest.Po" > confmf
9516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9517 # mode. It turns out that the SunPro C++ compiler does not properly
9518 # handle `-M -o', and we need to detect this.
9519 depcmd
="depmode=$depmode \
9520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9523 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9524 if env
$depcmd > conftest.err
2>&1 &&
9525 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9526 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9527 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9528 # icc doesn't choke on unknown options, it will just issue warnings
9529 # or remarks (even with -Werror). So we grep stderr for any message
9530 # that says an option was ignored or not supported.
9531 # When given -MP, icc 7.0 and 7.1 complain thusly:
9532 # icc: Command line warning: ignoring option '-M'; no argument required
9533 # The diagnosis changed in icc 8.0:
9534 # icc: Command line remark: option '-MP' not supported
9535 if (grep 'ignoring option' conftest.err ||
9536 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9537 am_cv_CXX_dependencies_compiler_type
=$depmode
9538 $as_echo "$as_me:$LINENO: success" >&5
9542 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9543 sed -e 's/^/| /' < conftest.err
>&5
9549 am_cv_CXX_dependencies_compiler_type
=none
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9554 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9555 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9556 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9557 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9567 # These libraries may be used by collect2.
9568 # We may need a special search path to get them linked.
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9570 $as_echo_n "checking for collect2 libraries... " >&6; }
9571 if ${gcc_cv_collect2_libs+:} false
; then :
9572 $as_echo_n "(cached) " >&6
9575 for libs
in '' -lld -lmld \
9576 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9577 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9583 /* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9598 if ac_fn_cxx_try_link
"$LINENO"; then :
9599 gcc_cv_collect2_libs
="$libs"; break
9601 rm -f core conftest.err conftest.
$ac_objext \
9602 conftest
$ac_exeext conftest.
$ac_ext
9605 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9608 $as_echo "$gcc_cv_collect2_libs" >&6; }
9609 case $gcc_cv_collect2_libs in
9611 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9615 # When building Ada code on Alpha, we need exc_resume which is usually in
9616 # -lexc. So test for it.
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9620 $as_echo_n "checking for library containing exc_resume... " >&6; }
9621 if ${ac_cv_search_exc_resume+:} false
; then :
9622 $as_echo_n "(cached) " >&6
9624 ac_func_search_save_LIBS
=$LIBS
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9638 return exc_resume ();
9643 for ac_lib
in '' exc
; do
9644 if test -z "$ac_lib"; then
9645 ac_res
="none required"
9648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9650 if ac_fn_cxx_try_link
"$LINENO"; then :
9651 ac_cv_search_exc_resume
=$ac_res
9653 rm -f core conftest.err conftest.
$ac_objext \
9655 if ${ac_cv_search_exc_resume+:} false
; then :
9659 if ${ac_cv_search_exc_resume+:} false
; then :
9662 ac_cv_search_exc_resume
=no
9665 LIBS
=$ac_func_search_save_LIBS
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9668 $as_echo "$ac_cv_search_exc_resume" >&6; }
9669 ac_res
=$ac_cv_search_exc_resume
9670 if test "$ac_res" != no
; then :
9671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9679 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9683 $as_echo_n "checking for library containing kstat_open... " >&6; }
9684 if ${ac_cv_search_kstat_open+:} false
; then :
9685 $as_echo_n "(cached) " >&6
9687 ac_func_search_save_LIBS
=$LIBS
9688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9701 return kstat_open ();
9706 for ac_lib
in '' kstat
; do
9707 if test -z "$ac_lib"; then
9708 ac_res
="none required"
9711 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9713 if ac_fn_cxx_try_link
"$LINENO"; then :
9714 ac_cv_search_kstat_open
=$ac_res
9716 rm -f core conftest.err conftest.
$ac_objext \
9718 if ${ac_cv_search_kstat_open+:} false
; then :
9722 if ${ac_cv_search_kstat_open+:} false
; then :
9725 ac_cv_search_kstat_open
=no
9728 LIBS
=$ac_func_search_save_LIBS
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9731 $as_echo "$ac_cv_search_kstat_open" >&6; }
9732 ac_res
=$ac_cv_search_kstat_open
9733 if test "$ac_res" != no
; then :
9734 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9738 EXTRA_GCC_LIBS
="$LIBS"
9742 # Some systems put ldexp and frexp in libm instead of libc; assume
9743 # they're both in the same place. jcf-dump needs them.
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9747 $as_echo_n "checking for library containing ldexp... " >&6; }
9748 if ${ac_cv_search_ldexp+:} false
; then :
9749 $as_echo_n "(cached) " >&6
9751 ac_func_search_save_LIBS
=$LIBS
9752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9755 /* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
9770 for ac_lib
in '' m
; do
9771 if test -z "$ac_lib"; then
9772 ac_res
="none required"
9775 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9777 if ac_fn_cxx_try_link
"$LINENO"; then :
9778 ac_cv_search_ldexp
=$ac_res
9780 rm -f core conftest.err conftest.
$ac_objext \
9782 if ${ac_cv_search_ldexp+:} false
; then :
9786 if ${ac_cv_search_ldexp+:} false
; then :
9789 ac_cv_search_ldexp
=no
9792 LIBS
=$ac_func_search_save_LIBS
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9795 $as_echo "$ac_cv_search_ldexp" >&6; }
9796 ac_res
=$ac_cv_search_ldexp
9797 if test "$ac_res" != no
; then :
9798 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9806 # Some systems need dlopen
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9810 $as_echo_n "checking for library containing dlopen... " >&6; }
9811 if ${ac_cv_search_dlopen+:} false
; then :
9812 $as_echo_n "(cached) " >&6
9814 ac_func_search_save_LIBS
=$LIBS
9815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9833 for ac_lib
in '' dl
; do
9834 if test -z "$ac_lib"; then
9835 ac_res
="none required"
9838 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9840 if ac_fn_cxx_try_link
"$LINENO"; then :
9841 ac_cv_search_dlopen
=$ac_res
9843 rm -f core conftest.err conftest.
$ac_objext \
9845 if ${ac_cv_search_dlopen+:} false
; then :
9849 if ${ac_cv_search_dlopen+:} false
; then :
9852 ac_cv_search_dlopen
=no
9855 LIBS
=$ac_func_search_save_LIBS
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9858 $as_echo "$ac_cv_search_dlopen" >&6; }
9859 ac_res
=$ac_cv_search_dlopen
9860 if test "$ac_res" != no
; then :
9861 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9869 # Use <inttypes.h> only if it exists,
9870 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9873 $as_echo_n "checking for inttypes.h... " >&6; }
9874 if ${gcc_cv_header_inttypes_h+:} false
; then :
9875 $as_echo_n "(cached) " >&6
9877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 #define __STDC_FORMAT_MACROS
9880 #include <sys/types.h>
9881 #include <inttypes.h>
9893 if ac_fn_cxx_try_compile
"$LINENO"; then :
9894 gcc_cv_header_inttypes_h
=yes
9896 gcc_cv_header_inttypes_h
=no
9898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9902 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9903 if test $gcc_cv_header_inttypes_h = yes; then
9905 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9909 # Look for the ZSTD package.
9917 # Check whether --with-zstd was given.
9918 if test "${with_zstd+set}" = set; then :
9923 # Check whether --with-zstd-include was given.
9924 if test "${with_zstd_include+set}" = set; then :
9925 withval
=$with_zstd_include;
9929 # Check whether --with-zstd-lib was given.
9930 if test "${with_zstd_lib+set}" = set; then :
9931 withval
=$with_zstd_lib;
9934 case "x$with_zstd" in
9940 *) ZSTD_INCLUDE
=$with_zstd/include
9941 ZSTD_LIB
=$with_zstd/lib
9944 if test "x$with_zstd_include" != x
; then
9945 ZSTD_INCLUDE
=$with_zstd_include
9947 if test "x$with_zstd_lib" != x
; then
9948 ZSTD_LIB
=$with_zstd_lib
9950 if test "x$ZSTD_INCLUDE" != x \
9951 && test "x$ZSTD_INCLUDE" != xno
; then
9952 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9954 if test "x$ZSTD_LIB" != x \
9955 && test "x$ZSTD_LIB" != xno
; then
9956 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9959 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9960 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9963 $as_echo_n "checking for zstd.h... " >&6; }
9964 if ${gcc_cv_header_zstd_h+:} false
; then :
9965 $as_echo_n "(cached) " >&6
9967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9978 if ac_fn_cxx_try_compile
"$LINENO"; then :
9979 gcc_cv_header_zstd_h
=yes
9981 gcc_cv_header_zstd_h
=no
9983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9987 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9988 if test $gcc_cv_header_zstd_h = yes; then
9990 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9994 # LTO can use zstd compression algorithm
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9998 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9999 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10000 $as_echo_n "(cached) " >&6
10002 ac_func_search_save_LIBS
=$LIBS
10003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10006 /* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10012 char ZSTD_compress ();
10016 return ZSTD_compress ();
10021 for ac_lib
in '' zstd
; do
10022 if test -z "$ac_lib"; then
10023 ac_res
="none required"
10026 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10028 if ac_fn_cxx_try_link
"$LINENO"; then :
10029 ac_cv_search_ZSTD_compress
=$ac_res
10031 rm -f core conftest.err conftest.
$ac_objext \
10033 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10037 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10040 ac_cv_search_ZSTD_compress
=no
10042 rm conftest.
$ac_ext
10043 LIBS
=$ac_func_search_save_LIBS
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10046 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10047 ac_res
=$ac_cv_search_ZSTD_compress
10048 if test "$ac_res" != no
; then :
10049 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10059 for ac_func
in times clock kill getrlimit setrlimit atoq \
10060 popen sysconf strsignal getrusage nl_langinfo \
10061 gettimeofday mbstowcs wcswidth mmap setlocale \
10062 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
10064 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10065 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10066 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10067 cat >>confdefs.h
<<_ACEOF
10068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10075 if test x
$ac_cv_func_mbstowcs = xyes
; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10077 $as_echo_n "checking whether mbstowcs works... " >&6; }
10078 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10079 $as_echo_n "(cached) " >&6
10081 if test "$cross_compiling" = yes; then :
10082 gcc_cv_func_mbstowcs_works
=yes
10084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <stdlib.h>
10089 mbstowcs(0, "", 0);
10093 if ac_fn_cxx_try_run
"$LINENO"; then :
10094 gcc_cv_func_mbstowcs_works
=yes
10096 gcc_cv_func_mbstowcs_works
=no
10098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10104 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10105 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10107 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10112 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10113 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10117 cat >>confdefs.h
<<_ACEOF
10118 #define ssize_t int
10123 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10124 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10128 cat >>confdefs.h
<<_ACEOF
10129 #define caddr_t char *
10136 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10137 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10138 gcc_header_sys_mman_h
=yes
10140 gcc_header_sys_mman_h
=no
10143 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10144 if test "x$ac_cv_func_mmap" = xyes
; then :
10150 if test "$gcc_header_sys_mman_h" != yes \
10151 ||
test "$gcc_func_mmap" != yes; then
10152 gcc_cv_func_mmap_file
=no
10153 gcc_cv_func_mmap_dev_zero
=no
10154 gcc_cv_func_mmap_anon
=no
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10157 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10158 if ${gcc_cv_func_mmap_file+:} false
; then :
10159 $as_echo_n "(cached) " >&6
10161 # Add a system to this blacklist if
10162 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10163 # memory area containing the same data that you'd get if you applied
10164 # read() to the same fd. The only system known to have a problem here
10165 # is VMS, where text files have record structure.
10168 gcc_cv_func_mmap_file
=no
;;
10170 gcc_cv_func_mmap_file
=yes;;
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10174 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10176 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10177 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10178 $as_echo_n "(cached) " >&6
10180 # Add a system to this blacklist if it has mmap() but /dev/zero
10181 # does not exist, or if mmapping /dev/zero does not give anonymous
10182 # zeroed pages with both the following properties:
10183 # 1. If you map N consecutive pages in with one call, and then
10184 # unmap any subset of those pages, the pages that were not
10185 # explicitly unmapped remain accessible.
10186 # 2. If you map two adjacent blocks of memory and then unmap them
10187 # both at once, they must both go away.
10188 # Systems known to be in this category are Windows (all variants),
10191 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10192 gcc_cv_func_mmap_dev_zero
=no
;;
10194 gcc_cv_func_mmap_dev_zero
=yes;;
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10198 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10200 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10202 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10203 if ${gcc_cv_decl_map_anon+:} false
; then :
10204 $as_echo_n "(cached) " >&6
10206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 #include <sys/types.h>
10209 #include <sys/mman.h>
10210 #include <unistd.h>
10212 #ifndef MAP_ANONYMOUS
10213 #define MAP_ANONYMOUS MAP_ANON
10219 int n = MAP_ANONYMOUS;
10224 if ac_fn_cxx_try_compile
"$LINENO"; then :
10225 gcc_cv_decl_map_anon
=yes
10227 gcc_cv_decl_map_anon
=no
10229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10232 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10234 if test $gcc_cv_decl_map_anon = no
; then
10235 gcc_cv_func_mmap_anon
=no
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10238 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10239 if ${gcc_cv_func_mmap_anon+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10242 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10243 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10244 # doesn't give anonymous zeroed pages with the same properties listed
10245 # above for use of /dev/zero.
10246 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10248 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10249 gcc_cv_func_mmap_anon
=no
;;
10251 gcc_cv_func_mmap_anon
=yes;;
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10255 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10259 if test $gcc_cv_func_mmap_file = yes; then
10261 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10264 if test $gcc_cv_func_mmap_dev_zero = yes; then
10266 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10269 if test $gcc_cv_func_mmap_anon = yes; then
10271 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10278 # Under VMS, vfork works very differently than on Unix. The standard test
10279 # won't work, and it isn't easily adaptable. It makes more sense to
10281 ac_cv_func_vfork_works
=yes
10284 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10285 if test "x$ac_cv_type_pid_t" = xyes
; then :
10289 cat >>confdefs.h
<<_ACEOF
10295 for ac_header
in vfork.h
10297 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10298 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10299 cat >>confdefs.h
<<_ACEOF
10300 #define HAVE_VFORK_H 1
10306 for ac_func
in fork vfork
10308 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10310 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10311 cat >>confdefs.h
<<_ACEOF
10312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10318 if test "x$ac_cv_func_fork" = xyes
; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10320 $as_echo_n "checking for working fork... " >&6; }
10321 if ${ac_cv_func_fork_works+:} false
; then :
10322 $as_echo_n "(cached) " >&6
10324 if test "$cross_compiling" = yes; then :
10325 ac_cv_func_fork_works
=cross
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 $ac_includes_default
10334 /* By Ruediger Kuhlmann. */
10335 return fork () < 0;
10341 if ac_fn_cxx_try_run
"$LINENO"; then :
10342 ac_cv_func_fork_works
=yes
10344 ac_cv_func_fork_works
=no
10346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10352 $as_echo "$ac_cv_func_fork_works" >&6; }
10355 ac_cv_func_fork_works
=$ac_cv_func_fork
10357 if test "x$ac_cv_func_fork_works" = xcross
; then
10359 *-*-amigaos* |
*-*-msdosdjgpp*)
10360 # Override, as these systems have only a dummy fork() stub
10361 ac_cv_func_fork_works
=no
10364 ac_cv_func_fork_works
=yes
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10371 if test "x$ac_cv_func_vfork" = xyes
; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10373 $as_echo_n "checking for working vfork... " >&6; }
10374 if ${ac_cv_func_vfork_works+:} false
; then :
10375 $as_echo_n "(cached) " >&6
10377 if test "$cross_compiling" = yes; then :
10378 ac_cv_func_vfork_works
=cross
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 /* Thanks to Paul Eggert for this test. */
10383 $ac_includes_default
10384 #include <sys/wait.h>
10385 #ifdef HAVE_VFORK_H
10386 # include <vfork.h>
10388 /* On some sparc systems, changes by the child to local and incoming
10389 argument registers are propagated back to the parent. The compiler
10390 is told about this with #include <vfork.h>, but some compilers
10391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10392 static variable whose address is put into a register that is
10393 clobbered by the vfork. */
10396 sparc_address_test (int arg)
10398 sparc_address_test (arg) int arg;
10401 static pid_t child;
10419 pid_t parent = getpid ();
10422 sparc_address_test (0);
10427 /* Here is another test for sparc vfork register problems. This
10428 test uses lots of local variables, at least as many local
10429 variables as main has allocated so far including compiler
10430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10432 reuse the register of parent for one of the local variables,
10433 since it will think that parent can't possibly be used any more
10434 in this routine. Assigning to the local variable will thus
10435 munge parent in the parent process. */
10437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10439 /* Convince the compiler that p..p7 are live; otherwise, it might
10440 use the same hardware register for all 8 local variables. */
10441 if (p != p1 || p != p2 || p != p3 || p != p4
10442 || p != p5 || p != p6 || p != p7)
10445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10446 from child file descriptors. If the child closes a descriptor
10447 before it execs or exits, this munges the parent's descriptor
10448 as well. Test for this by closing stdout in the child. */
10449 _exit(close(fileno(stdout)) != 0);
10454 while (wait(&status) != child)
10457 /* Was there some problem with vforking? */
10460 /* Did the child fail? (This shouldn't happen.) */
10463 /* Did the vfork/compiler bug occur? */
10464 || parent != getpid()
10466 /* Did the file descriptor bug occur? */
10467 || fstat(fileno(stdout), &st) != 0
10472 if ac_fn_cxx_try_run
"$LINENO"; then :
10473 ac_cv_func_vfork_works
=yes
10475 ac_cv_func_vfork_works
=no
10477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10483 $as_echo "$ac_cv_func_vfork_works" >&6; }
10486 if test "x$ac_cv_func_fork_works" = xcross
; then
10487 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10492 if test "x$ac_cv_func_vfork_works" = xyes
; then
10494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10498 $as_echo "#define vfork fork" >>confdefs.h
10501 if test "x$ac_cv_func_fork_works" = xyes
; then
10503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10509 if test "X$prefix" = "XNONE"; then
10510 acl_final_prefix
="$ac_default_prefix"
10512 acl_final_prefix
="$prefix"
10514 if test "X$exec_prefix" = "XNONE"; then
10515 acl_final_exec_prefix
='${prefix}'
10517 acl_final_exec_prefix
="$exec_prefix"
10519 acl_save_prefix
="$prefix"
10520 prefix
="$acl_final_prefix"
10521 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10522 prefix
="$acl_save_prefix"
10525 # Check whether --with-gnu-ld was given.
10526 if test "${with_gnu_ld+set}" = set; then :
10527 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10532 # Prepare PATH_SEPARATOR.
10533 # The user is always right.
10534 if test "${PATH_SEPARATOR+set}" != set; then
10535 echo "#! /bin/sh" >conf$$.sh
10536 echo "exit 0" >>conf$$.sh
10538 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10546 if test "$GCC" = yes; then
10547 # Check if gcc -print-prog-name=ld gives a path.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10549 $as_echo_n "checking for ld used by GCC... " >&6; }
10552 # gcc leaves a trailing carriage return which upsets mingw
10553 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10555 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10558 # Accept absolute paths.
10559 [\\/]* |
[A-Za-z
]:[\\/]*)
10560 re_direlt
='/[^/][^/]*/\.\./'
10561 # Canonicalize the path of ld
10562 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10563 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10564 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10566 test -z "$LD" && LD
="$ac_prog"
10569 # If it fails, then pretend we aren't using GCC.
10573 # If it is relative, then search for the first ld in PATH.
10574 with_gnu_ld
=unknown
10577 elif test "$with_gnu_ld" = yes; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10579 $as_echo_n "checking for GNU ld... " >&6; }
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10582 $as_echo_n "checking for non-GNU ld... " >&6; }
10584 if ${acl_cv_path_LD+:} false
; then :
10585 $as_echo_n "(cached) " >&6
10587 if test -z "$LD"; then
10588 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10589 for ac_dir
in $PATH; do
10590 test -z "$ac_dir" && ac_dir
=.
10591 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10592 acl_cv_path_LD
="$ac_dir/$ac_prog"
10593 # Check to see if the program is GNU ld. I'd rather use --version,
10594 # but apparently some GNU ld's only accept -v.
10595 # Break only if it was the GNU/non-GNU ld that we prefer.
10596 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10597 test "$with_gnu_ld" != no
&& break
10599 test "$with_gnu_ld" != yes && break
10605 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10609 LD
="$acl_cv_path_LD"
10610 if test -n "$LD"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10612 $as_echo "$LD" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10617 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10620 if ${acl_cv_prog_gnu_ld+:} false
; then :
10621 $as_echo_n "(cached) " >&6
10623 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10624 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10625 acl_cv_prog_gnu_ld
=yes
10627 acl_cv_prog_gnu_ld
=no
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10631 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10632 with_gnu_ld
=$acl_cv_prog_gnu_ld
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10637 $as_echo_n "checking for shared library run path origin... " >&6; }
10638 if ${acl_cv_rpath+:} false
; then :
10639 $as_echo_n "(cached) " >&6
10642 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10643 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10645 rm -f .
/conftest.sh
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10650 $as_echo "$acl_cv_rpath" >&6; }
10652 libext
="$acl_cv_libext"
10653 shlibext
="$acl_cv_shlibext"
10654 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10655 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10656 hardcode_direct
="$acl_cv_hardcode_direct"
10657 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10658 # Check whether --enable-rpath was given.
10659 if test "${enable_rpath+set}" = set; then :
10660 enableval
=$enable_rpath; :
10674 acl_save_prefix
="$prefix"
10675 prefix
="$acl_final_prefix"
10676 acl_save_exec_prefix
="$exec_prefix"
10677 exec_prefix
="$acl_final_exec_prefix"
10679 eval additional_includedir
=\"$includedir\"
10680 eval additional_libdir
=\"$libdir\"
10682 exec_prefix
="$acl_save_exec_prefix"
10683 prefix
="$acl_save_prefix"
10686 # Check whether --with-libiconv-prefix was given.
10687 if test "${with_libiconv_prefix+set}" = set; then :
10688 withval
=$with_libiconv_prefix;
10689 if test "X$withval" = "Xno"; then
10692 if test "X$withval" = "X"; then
10694 acl_save_prefix
="$prefix"
10695 prefix
="$acl_final_prefix"
10696 acl_save_exec_prefix
="$exec_prefix"
10697 exec_prefix
="$acl_final_exec_prefix"
10699 eval additional_includedir
=\"$includedir\"
10700 eval additional_libdir
=\"$libdir\"
10702 exec_prefix
="$acl_save_exec_prefix"
10703 prefix
="$acl_save_prefix"
10706 additional_includedir
="$withval/include"
10707 additional_libdir
="$withval/lib"
10718 names_already_handled
=
10719 names_next_round
='iconv '
10720 while test -n "$names_next_round"; do
10721 names_this_round
="$names_next_round"
10723 for name
in $names_this_round; do
10725 for n
in $names_already_handled; do
10726 if test "$n" = "$name"; then
10727 already_handled
=yes
10731 if test -z "$already_handled"; then
10732 names_already_handled
="$names_already_handled $name"
10733 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10734 eval value
=\"\
$HAVE_LIB$uppername\"
10735 if test -n "$value"; then
10736 if test "$value" = yes; then
10737 eval value
=\"\
$LIB$uppername\"
10738 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10739 eval value
=\"\
$LTLIB$uppername\"
10740 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10749 if test $use_additional = yes; then
10750 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10751 found_dir
="$additional_libdir"
10752 found_so
="$additional_libdir/lib$name.$shlibext"
10753 if test -f "$additional_libdir/lib$name.la"; then
10754 found_la
="$additional_libdir/lib$name.la"
10757 if test -f "$additional_libdir/lib$name.$libext"; then
10758 found_dir
="$additional_libdir"
10759 found_a
="$additional_libdir/lib$name.$libext"
10760 if test -f "$additional_libdir/lib$name.la"; then
10761 found_la
="$additional_libdir/lib$name.la"
10766 if test "X$found_dir" = "X"; then
10767 for x
in $LDFLAGS $LTLIBICONV; do
10769 acl_save_prefix
="$prefix"
10770 prefix
="$acl_final_prefix"
10771 acl_save_exec_prefix
="$exec_prefix"
10772 exec_prefix
="$acl_final_exec_prefix"
10774 exec_prefix
="$acl_save_exec_prefix"
10775 prefix
="$acl_save_prefix"
10779 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10780 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10782 found_so
="$dir/lib$name.$shlibext"
10783 if test -f "$dir/lib$name.la"; then
10784 found_la
="$dir/lib$name.la"
10787 if test -f "$dir/lib$name.$libext"; then
10789 found_a
="$dir/lib$name.$libext"
10790 if test -f "$dir/lib$name.la"; then
10791 found_la
="$dir/lib$name.la"
10797 if test "X$found_dir" != "X"; then
10802 if test "X$found_dir" != "X"; then
10803 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10804 if test "X$found_so" != "X"; then
10805 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10809 for x
in $ltrpathdirs; do
10810 if test "X$x" = "X$found_dir"; then
10815 if test -z "$haveit"; then
10816 ltrpathdirs
="$ltrpathdirs $found_dir"
10818 if test "$hardcode_direct" = yes; then
10819 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10821 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10822 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10824 for x
in $rpathdirs; do
10825 if test "X$x" = "X$found_dir"; then
10830 if test -z "$haveit"; then
10831 rpathdirs
="$rpathdirs $found_dir"
10835 for x
in $LDFLAGS $LIBICONV; do
10837 acl_save_prefix
="$prefix"
10838 prefix
="$acl_final_prefix"
10839 acl_save_exec_prefix
="$exec_prefix"
10840 exec_prefix
="$acl_final_exec_prefix"
10842 exec_prefix
="$acl_save_exec_prefix"
10843 prefix
="$acl_save_prefix"
10845 if test "X$x" = "X-L$found_dir"; then
10850 if test -z "$haveit"; then
10851 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10853 if test "$hardcode_minus_L" != no
; then
10854 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10856 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10862 if test "X$found_a" != "X"; then
10863 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10865 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10868 additional_includedir
=
10869 case "$found_dir" in
10871 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10872 additional_includedir
="$basedir/include"
10875 if test "X$additional_includedir" != "X"; then
10876 if test "X$additional_includedir" != "X/usr/include"; then
10878 if test "X$additional_includedir" = "X/usr/local/include"; then
10879 if test -n "$GCC"; then
10881 linux
*) haveit
=yes;;
10885 if test -z "$haveit"; then
10886 for x
in $CPPFLAGS $INCICONV; do
10888 acl_save_prefix
="$prefix"
10889 prefix
="$acl_final_prefix"
10890 acl_save_exec_prefix
="$exec_prefix"
10891 exec_prefix
="$acl_final_exec_prefix"
10893 exec_prefix
="$acl_save_exec_prefix"
10894 prefix
="$acl_save_prefix"
10896 if test "X$x" = "X-I$additional_includedir"; then
10901 if test -z "$haveit"; then
10902 if test -d "$additional_includedir"; then
10903 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10909 if test -n "$found_la"; then
10910 save_libdir
="$libdir"
10911 case "$found_la" in
10912 */* |
*\\*) .
"$found_la" ;;
10913 *) .
"./$found_la" ;;
10915 libdir
="$save_libdir"
10916 for dep
in $dependency_libs; do
10919 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10920 if test "X$additional_libdir" != "X/usr/lib"; then
10922 if test "X$additional_libdir" = "X/usr/local/lib"; then
10923 if test -n "$GCC"; then
10925 linux
*) haveit
=yes;;
10929 if test -z "$haveit"; then
10931 for x
in $LDFLAGS $LIBICONV; do
10933 acl_save_prefix
="$prefix"
10934 prefix
="$acl_final_prefix"
10935 acl_save_exec_prefix
="$exec_prefix"
10936 exec_prefix
="$acl_final_exec_prefix"
10938 exec_prefix
="$acl_save_exec_prefix"
10939 prefix
="$acl_save_prefix"
10941 if test "X$x" = "X-L$additional_libdir"; then
10946 if test -z "$haveit"; then
10947 if test -d "$additional_libdir"; then
10948 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10952 for x
in $LDFLAGS $LTLIBICONV; do
10954 acl_save_prefix
="$prefix"
10955 prefix
="$acl_final_prefix"
10956 acl_save_exec_prefix
="$exec_prefix"
10957 exec_prefix
="$acl_final_exec_prefix"
10959 exec_prefix
="$acl_save_exec_prefix"
10960 prefix
="$acl_save_prefix"
10962 if test "X$x" = "X-L$additional_libdir"; then
10967 if test -z "$haveit"; then
10968 if test -d "$additional_libdir"; then
10969 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10976 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10977 if test "$enable_rpath" != no
; then
10979 for x
in $rpathdirs; do
10980 if test "X$x" = "X$dir"; then
10985 if test -z "$haveit"; then
10986 rpathdirs
="$rpathdirs $dir"
10989 for x
in $ltrpathdirs; do
10990 if test "X$x" = "X$dir"; then
10995 if test -z "$haveit"; then
10996 ltrpathdirs
="$ltrpathdirs $dir"
11001 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11004 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11007 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11008 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11014 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11015 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11021 if test "X$rpathdirs" != "X"; then
11022 if test -n "$hardcode_libdir_separator"; then
11024 for found_dir
in $rpathdirs; do
11025 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11027 acl_save_libdir
="$libdir"
11029 eval flag
=\"$hardcode_libdir_flag_spec\"
11030 libdir
="$acl_save_libdir"
11031 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11033 for found_dir
in $rpathdirs; do
11034 acl_save_libdir
="$libdir"
11035 libdir
="$found_dir"
11036 eval flag
=\"$hardcode_libdir_flag_spec\"
11037 libdir
="$acl_save_libdir"
11038 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11042 if test "X$ltrpathdirs" != "X"; then
11043 for found_dir
in $ltrpathdirs; do
11044 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11055 $as_echo_n "checking for iconv... " >&6; }
11056 if ${am_cv_func_iconv+:} false
; then :
11057 $as_echo_n "(cached) " >&6
11060 am_cv_func_iconv
="no, consider installing GNU libiconv"
11062 am_save_CPPFLAGS
="$CPPFLAGS"
11063 CPPFLAGS
="$CPPFLAGS $INCICONV"
11064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <stdlib.h>
11071 iconv_t cd = iconv_open("","");
11072 iconv(cd,NULL,NULL,NULL,NULL);
11078 if ac_fn_cxx_try_link
"$LINENO"; then :
11079 am_cv_func_iconv
=yes
11081 rm -f core conftest.err conftest.
$ac_objext \
11082 conftest
$ac_exeext conftest.
$ac_ext
11083 CPPFLAGS
="$am_save_CPPFLAGS"
11085 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11086 for _libs
in .libs _libs
; do
11087 am_save_CPPFLAGS
="$CPPFLAGS"
11088 am_save_LIBS
="$LIBS"
11089 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11090 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #include <stdlib.h>
11098 iconv_t cd = iconv_open("","");
11099 iconv(cd,NULL,NULL,NULL,NULL);
11105 if ac_fn_cxx_try_link
"$LINENO"; then :
11106 INCICONV
="-I../libiconv/include"
11107 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11108 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11109 am_cv_lib_iconv
=yes
11110 am_cv_func_iconv
=yes
11112 rm -f core conftest.err conftest.
$ac_objext \
11113 conftest
$ac_exeext conftest.
$ac_ext
11114 CPPFLAGS
="$am_save_CPPFLAGS"
11115 LIBS
="$am_save_LIBS"
11116 if test "$am_cv_func_iconv" = "yes"; then
11122 if test "$am_cv_func_iconv" != yes; then
11123 am_save_CPPFLAGS
="$CPPFLAGS"
11124 am_save_LIBS
="$LIBS"
11125 CPPFLAGS
="$CPPFLAGS $INCICONV"
11126 LIBS
="$LIBS $LIBICONV"
11127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 #include <stdlib.h>
11134 iconv_t cd = iconv_open("","");
11135 iconv(cd,NULL,NULL,NULL,NULL);
11141 if ac_fn_cxx_try_link
"$LINENO"; then :
11142 am_cv_lib_iconv
=yes
11143 am_cv_func_iconv
=yes
11145 rm -f core conftest.err conftest.
$ac_objext \
11146 conftest
$ac_exeext conftest.
$ac_ext
11147 CPPFLAGS
="$am_save_CPPFLAGS"
11148 LIBS
="$am_save_LIBS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11153 $as_echo "$am_cv_func_iconv" >&6; }
11154 if test "$am_cv_func_iconv" = yes; then
11156 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11159 if test "$am_cv_lib_iconv" = yes; then
11161 for element
in $INCICONV; do
11163 for x
in $CPPFLAGS; do
11165 acl_save_prefix
="$prefix"
11166 prefix
="$acl_final_prefix"
11167 acl_save_exec_prefix
="$exec_prefix"
11168 exec_prefix
="$acl_final_exec_prefix"
11170 exec_prefix
="$acl_save_exec_prefix"
11171 prefix
="$acl_save_prefix"
11173 if test "X$x" = "X$element"; then
11178 if test -z "$haveit"; then
11179 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11184 $as_echo_n "checking how to link with libiconv... " >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11186 $as_echo "$LIBICONV" >&6; }
11194 if test "$am_cv_func_iconv" = yes; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11196 $as_echo_n "checking for iconv declaration... " >&6; }
11197 if ${am_cv_proto_iconv+:} false
; then :
11198 $as_echo_n "(cached) " >&6
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11204 #include <stdlib.h>
11210 #if defined(__STDC__) || defined(__cplusplus)
11211 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11224 if ac_fn_cxx_try_compile
"$LINENO"; then :
11225 am_cv_proto_iconv_arg1
=""
11227 am_cv_proto_iconv_arg1
="const"
11229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11230 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);"
11233 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11235 }$am_cv_proto_iconv" >&5
11237 }$am_cv_proto_iconv" >&6; }
11239 cat >>confdefs.h
<<_ACEOF
11240 #define ICONV_CONST $am_cv_proto_iconv_arg1
11246 # Until we have in-tree GNU iconv:
11248 if test -f "$LTLIBICONV"; then
11249 LIBICONV_DEP
=$LTLIBICONV
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11255 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11256 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11257 $as_echo_n "(cached) " >&6
11259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 #include <locale.h>
11270 if ac_fn_cxx_try_link
"$LINENO"; then :
11271 am_cv_val_LC_MESSAGES
=yes
11273 am_cv_val_LC_MESSAGES
=no
11275 rm -f core conftest.err conftest.
$ac_objext \
11276 conftest
$ac_exeext conftest.
$ac_ext
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11279 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11280 if test $am_cv_val_LC_MESSAGES = yes; then
11282 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11289 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11290 if ${am_cv_langinfo_codeset+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #include <langinfo.h>
11299 char* cs = nl_langinfo(CODESET);
11304 if ac_fn_cxx_try_link
"$LINENO"; then :
11305 am_cv_langinfo_codeset
=yes
11307 am_cv_langinfo_codeset
=no
11309 rm -f core conftest.err conftest.
$ac_objext \
11310 conftest
$ac_exeext conftest.
$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11314 $as_echo "$am_cv_langinfo_codeset" >&6; }
11315 if test $am_cv_langinfo_codeset = yes; then
11317 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11322 # We will need to find libiberty.h and ansidecl.h
11323 saved_CFLAGS
="$CFLAGS"
11324 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11325 saved_CXXFLAGS
="$CXXFLAGS"
11326 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11328 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11329 # normal autoconf function for these. But force definition of
11330 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11331 # basename handling in libiberty.h.
11332 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11333 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11334 #undef HAVE_DECL_BASENAME
11335 #define HAVE_DECL_BASENAME 1
11336 #include \"ansidecl.h\"
11337 #include \"system.h\"
11339 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11345 cat >>confdefs.h
<<_ACEOF
11346 #define HAVE_DECL_BASENAME $ac_have_decl
11348 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11349 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11350 #undef HAVE_DECL_BASENAME
11351 #define HAVE_DECL_BASENAME 1
11352 #include \"ansidecl.h\"
11353 #include \"system.h\"
11355 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11361 cat >>confdefs.h
<<_ACEOF
11362 #define HAVE_DECL_STRSTR $ac_have_decl
11366 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11367 madvise stpcpy strnlen strsignal strverscmp \
11368 strtol strtoul strtoll strtoull setenv unsetenv \
11369 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11370 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
11372 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11374 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11375 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11376 $as_echo_n "(cached) " >&6
11378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11381 #define $ac_tr_decl 1
11383 #include "ansidecl.h"
11384 #include "system.h"
11390 char *(*pfn) = (char *(*)) $ac_func ;
11396 if ac_fn_cxx_try_compile
"$LINENO"; then :
11397 eval "gcc_cv_have_decl_$ac_func=yes"
11399 eval "gcc_cv_have_decl_$ac_func=no"
11401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11406 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11407 #define $ac_tr_decl 1
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11413 #define $ac_tr_decl 0
11421 for ac_func
in getrlimit setrlimit getrusage
11423 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11426 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11427 $as_echo_n "(cached) " >&6
11429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 #define $ac_tr_decl 1
11434 #include "ansidecl.h"
11435 #include "system.h"
11436 #ifdef HAVE_SYS_RESOURCE_H
11437 #include <sys/resource.h>
11445 char *(*pfn) = (char *(*)) $ac_func ;
11451 if ac_fn_cxx_try_compile
"$LINENO"; then :
11452 eval "gcc_cv_have_decl_$ac_func=yes"
11454 eval "gcc_cv_have_decl_$ac_func=no"
11456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11459 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11462 #define $ac_tr_decl 1
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11468 #define $ac_tr_decl 0
11476 for ac_func
in mallinfo
11478 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11480 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11481 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11482 $as_echo_n "(cached) " >&6
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 #define $ac_tr_decl 1
11489 #include "ansidecl.h"
11490 #include "system.h"
11491 #ifdef HAVE_MALLOC_H
11492 #include <malloc.h>
11500 char *(*pfn) = (char *(*)) $ac_func ;
11506 if ac_fn_cxx_try_compile
"$LINENO"; then :
11507 eval "gcc_cv_have_decl_$ac_func=yes"
11509 eval "gcc_cv_have_decl_$ac_func=no"
11511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11514 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11517 #define $ac_tr_decl 1
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11523 #define $ac_tr_decl 0
11531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11534 #include "ansidecl.h"
11535 #include "system.h"
11536 #ifdef HAVE_SYS_RESOURCE_H
11537 #include <sys/resource.h>
11548 if ac_fn_cxx_try_compile
"$LINENO"; then :
11552 $as_echo "#define rlim_t long" >>confdefs.h
11555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11557 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11558 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11559 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11560 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11561 for ac_func
in ldgetname
11563 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11565 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11566 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11567 $as_echo_n "(cached) " >&6
11569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 #define $ac_tr_decl 1
11574 #include "ansidecl.h"
11575 #include "system.h"
11576 #ifdef HAVE_LDFCN_H
11587 char *(*pfn) = (char *(*)) $ac_func ;
11593 if ac_fn_cxx_try_compile
"$LINENO"; then :
11594 eval "gcc_cv_have_decl_$ac_func=yes"
11596 eval "gcc_cv_have_decl_$ac_func=no"
11598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11601 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11604 #define $ac_tr_decl 1
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11610 #define $ac_tr_decl 0
11618 for ac_func
in times
11620 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11622 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11623 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11624 $as_echo_n "(cached) " >&6
11626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 #define $ac_tr_decl 1
11631 #include "ansidecl.h"
11632 #include "system.h"
11633 #ifdef HAVE_SYS_TIMES_H
11634 #include <sys/times.h>
11642 char *(*pfn) = (char *(*)) $ac_func ;
11648 if ac_fn_cxx_try_compile
"$LINENO"; then :
11649 eval "gcc_cv_have_decl_$ac_func=yes"
11651 eval "gcc_cv_have_decl_$ac_func=no"
11653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11656 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11659 #define $ac_tr_decl 1
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11665 #define $ac_tr_decl 0
11673 for ac_func
in sigaltstack
11675 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11677 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11678 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11679 $as_echo_n "(cached) " >&6
11681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 #define $ac_tr_decl 1
11686 #include "ansidecl.h"
11687 #include "system.h"
11688 #include <signal.h>
11695 char *(*pfn) = (char *(*)) $ac_func ;
11701 if ac_fn_cxx_try_compile
"$LINENO"; then :
11702 eval "gcc_cv_have_decl_$ac_func=yes"
11704 eval "gcc_cv_have_decl_$ac_func=no"
11706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11709 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11712 #define $ac_tr_decl 1
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11718 #define $ac_tr_decl 0
11726 # More time-related stuff.
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11728 $as_echo_n "checking for struct tms... " >&6; }
11729 if ${ac_cv_struct_tms+:} false
; then :
11730 $as_echo_n "(cached) " >&6
11733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11736 #include "ansidecl.h"
11737 #include "system.h"
11738 #ifdef HAVE_SYS_TIMES_H
11739 #include <sys/times.h>
11750 if ac_fn_cxx_try_compile
"$LINENO"; then :
11751 ac_cv_struct_tms
=yes
11753 ac_cv_struct_tms
=no
11755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11758 $as_echo "$ac_cv_struct_tms" >&6; }
11759 if test $ac_cv_struct_tms = yes; then
11761 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11765 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11766 # revisit after autoconf 2.50.
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11768 $as_echo_n "checking for clock_t... " >&6; }
11769 if ${gcc_cv_type_clock_t+:} false
; then :
11770 $as_echo_n "(cached) " >&6
11773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11776 #include "ansidecl.h"
11777 #include "system.h"
11787 if ac_fn_cxx_try_compile
"$LINENO"; then :
11788 gcc_cv_type_clock_t
=yes
11790 gcc_cv_type_clock_t
=no
11792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11795 $as_echo "$gcc_cv_type_clock_t" >&6; }
11796 if test $gcc_cv_type_clock_t = yes; then
11798 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11802 # Check if F_SETLKW is supported by fcntl.
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11804 $as_echo_n "checking for F_SETLKW... " >&6; }
11805 if ${ac_cv_f_setlkw+:} false
; then :
11806 $as_echo_n "(cached) " >&6
11809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11822 return fcntl (1, F_SETLKW, &fl);
11827 if ac_fn_cxx_try_compile
"$LINENO"; then :
11832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11835 $as_echo "$ac_cv_f_setlkw" >&6; }
11836 if test $ac_cv_f_setlkw = yes; then
11838 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11842 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11843 CFLAGS
="$saved_CFLAGS"
11844 CXXFLAGS
="$saved_CXXFLAGS"
11846 # mkdir takes a single argument on some systems.
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11848 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11849 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11850 $as_echo_n "(cached) " >&6
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 #include <sys/types.h>
11856 #ifdef HAVE_SYS_STAT_H
11857 # include <sys/stat.h>
11859 #ifdef HAVE_UNISTD_H
11860 # include <unistd.h>
11862 #ifdef HAVE_DIRECT_H
11863 # include <direct.h>
11873 if ac_fn_cxx_try_compile
"$LINENO"; then :
11874 gcc_cv_mkdir_takes_one_arg
=no
11876 gcc_cv_mkdir_takes_one_arg
=yes
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11881 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11882 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11884 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11895 # With Setjmp/Longjmp based exception handling.
11896 # Check whether --enable-sjlj-exceptions was given.
11897 if test "${enable_sjlj_exceptions+set}" = set; then :
11898 enableval
=$enable_sjlj_exceptions; case $target in
11900 if test $enableval != yes; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11902 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11907 force_sjlj_exceptions
=yes
11911 force_sjlj_exceptions
=yes
11915 force_sjlj_exceptions
=yes
11919 force_sjlj_exceptions
=no
11924 if test $force_sjlj_exceptions = yes; then
11925 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11927 cat >>confdefs.h
<<_ACEOF
11928 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11933 # --------------------------------------------------------
11934 # Build, host, and target specific configuration fragments
11935 # --------------------------------------------------------
11937 # Collect build-machine-specific information.
11938 .
${srcdir}/config.build ||
exit 1
11940 # Collect host-machine-specific information.
11941 .
${srcdir}/config.
host ||
exit 1
11945 # Collect target-machine-specific information.
11946 .
${srcdir}/config.gcc ||
exit 1
11948 extra_objs
="${host_extra_objs} ${extra_objs}"
11949 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11951 # Default the target-machine variables that were not explicitly set.
11952 if test x
"$tm_file" = x
11953 then tm_file
=$cpu_type/$cpu_type.h
; fi
11955 if test x
"$extra_headers" = x
11956 then extra_headers
=; fi
11958 if test x
$md_file = x
11959 then md_file
=$cpu_type/$cpu_type.md
; fi
11961 if test x
$out_file = x
11962 then out_file
=$cpu_type/$cpu_type.c
; fi
11964 if test x
"$tmake_file" = x
11965 then tmake_file
=$cpu_type/t-
$cpu_type
11968 # Support --enable-initfini-array.
11969 if test x
$enable_initfini_array != xno
; then
11970 tm_file
="${tm_file} initfini-array.h"
11973 if test x
"$dwarf2" = xyes
11974 then tm_file
="$tm_file tm-dwarf2.h"
11977 # Say what files are being used for the output code and MD file.
11978 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11979 echo "Using \`$srcdir/config/$md_file' as machine description file."
11981 # If any of the xm_file variables contain nonexistent files, warn
11982 # about them and drop them.
11985 for x
in $build_xm_file; do
11986 if test -f $srcdir/config
/$x
11988 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11989 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11992 build_xm_file
="$bx"
11995 for x
in $host_xm_file; do
11996 if test -f $srcdir/config
/$x
11998 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11999 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12005 for x
in $xm_file; do
12006 if test -f $srcdir/config
/$x
12008 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12009 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12015 for f
in $tm_file; do
12018 if test $count = ax
; then
12019 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12021 echo "Using the following target machine macro files:"
12022 for f
in $tm_file; do
12023 echo " $srcdir/config/$f"
12027 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12029 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12033 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12035 cat >>confdefs.h
<<_ACEOF
12036 #define HAVE_GNU_LD $gnu_ld_bool
12040 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12042 cat >>confdefs.h
<<_ACEOF
12043 #define HAVE_GNU_AS $gnu_as_bool
12048 for f
in $host_xm_file; do
12051 if test $count = a
; then
12053 elif test $count = ax
; then
12054 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12056 echo "Using the following host machine macro files:"
12057 for f
in $host_xm_file; do
12058 echo " $srcdir/config/$f"
12061 echo "Using ${out_host_hook_obj} for host machine hooks."
12063 if test "$host_xm_file" != "$build_xm_file"; then
12065 for f
in $build_xm_file; do
12068 if test $count = a
; then
12070 elif test $count = ax
; then
12071 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12073 echo "Using the following build machine macro files:"
12074 for f
in $build_xm_file; do
12075 echo " $srcdir/config/$f"
12080 if test -n "$configured_native_system_header_dir"; then
12081 native_system_header_dir
=$configured_native_system_header_dir
12083 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12087 powerpc
*-*-darwin*)
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12089 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12090 if ${gcc_cv_mcontext_underscores+:} false
; then :
12091 $as_echo_n "(cached) " >&6
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 #include <sys/cdefs.h>
12097 #include <sys/signal.h>
12098 #include <ucontext.h>
12099 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12102 if ac_fn_cxx_try_compile
"$LINENO"; then :
12103 gcc_cv_mcontext_underscores
=no
12105 gcc_cv_mcontext_underscores
=yes
12107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12110 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12111 if test $gcc_cv_mcontext_underscores = yes; then
12113 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12123 # Check if a valid thread package
12124 case ${enable_threads} in
12127 target_thread_file
='single'
12131 target_thread_file
='single'
12133 aix | dce | lynx | mipssde | posix | rtems | \
12134 single | tpf | vxworks | win32
)
12135 target_thread_file
=${enable_threads}
12138 echo "${enable_threads} is an unknown thread package" 1>&2
12143 if test x
${thread_file} = x
; then
12144 # No thread file set by target-specific clauses in config.gcc,
12145 # so use file chosen by default logic above
12146 thread_file
=${target_thread_file}
12154 if test x
$enable___cxa_atexit = xyes || \
12155 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12156 if test x
$host = x
$target; then
12158 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12159 # keyed to flag_use_cxa_atexit
12167 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12168 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12171 echo "__cxa_atexit can't be enabled on this target"
12177 # We can't check for __cxa_atexit when building a cross, so assume
12181 if test x
$use_cxa_atexit = xyes
; then
12183 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12188 # Look for a file containing extra machine modes.
12189 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12190 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12193 cat >>confdefs.h
<<_ACEOF
12194 #define EXTRA_MODES_FILE "config/$extra_modes"
12199 # Convert extra_options into a form suitable for Makefile use.
12202 for f
in $extra_options; do
12203 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12204 all_opt_files
="$all_opt_files $srcdir/config/$f"
12208 # auto-host.h is the file containing items generated by autoconf and is
12209 # the first file included by config.h.
12210 # If host=build, it is correct to have bconfig include auto-host.h
12211 # as well. If host!=build, we are in error and need to do more
12212 # work to find out the build config parameters.
12213 if test x
$host = x
$build
12215 build_auto
=auto-host.h
12216 HAVE_AUTO_BUILD
='# '
12218 # We create a subdir, then run autoconf in the subdir.
12219 # To prevent recursion we set host and build for the new
12220 # invocation of configure to the build for this invocation
12227 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12228 *) realsrcdir
=..
/${srcdir};;
12230 # Clearing GMPINC is necessary to prevent host headers being
12231 # used by the build compiler. Defining GENERATOR_FILE stops
12232 # system.h from including gmp.h.
12233 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12234 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12235 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12236 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12237 ${realsrcdir}/configure \
12238 --enable-languages=${enable_languages-all} \
12239 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12240 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12241 --target=$target_alias --host=$build_alias \
12242 --build=$build_alias ||
exit # retaining $tempdir
12244 # We just finished tests for the build machine, so rename
12245 # the file auto-build.h in the gcc directory.
12246 mv auto-host.h ..
/auto-build.h
12249 build_auto
=auto-build.h
12255 tm_file
="${tm_file} defaults.h"
12256 tm_p_file
="${tm_p_file} tm-preds.h"
12257 tm_d_file
="${tm_d_file} defaults.h"
12258 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12259 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12260 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12261 # put this back in temporarily.
12262 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12268 # Compile in configure arguments.
12269 if test -f configargs.h
; then
12270 # Being re-configured.
12271 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12272 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12273 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12274 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12277 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12280 # Double all backslashes and backslash all quotes to turn
12281 # gcc_config_arguments into a C string.
12282 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12283 $gcc_config_arguments
12285 gcc_config_arguments_str
=`cat conftest.out`
12288 cat > configargs.h
<<EOF
12289 /* Generated automatically. */
12290 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12291 static const char thread_model[] = "$thread_file";
12293 static const struct {
12294 const char *name, *value;
12295 } configure_default_options[] = $configure_default_options;
12298 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12299 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12300 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12301 if test -f $srcdir/REVISION
; then
12302 gcc_REVISION
=`cat $srcdir/REVISION`
12306 cat > plugin-version.h
<<EOF
12307 #include "configargs.h"
12309 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12310 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12311 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12312 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12314 static char basever[] = "$gcc_BASEVER";
12315 static char datestamp[] = "$gcc_DATESTAMP";
12316 static char devphase[] = "$gcc_DEVPHASE";
12317 static char revision[] = "$gcc_REVISION";
12319 /* FIXME plugins: We should make the version information more precise.
12320 One way to do is to add a checksum. */
12322 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12323 devphase, revision,
12324 configuration_arguments};
12327 # Determine what GCC version number to use in filesystem paths.
12329 get_gcc_base_ver
="cat"
12331 # Check whether --with-gcc-major-version-only was given.
12332 if test "${with_gcc_major_version_only+set}" = set; then :
12333 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12334 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12342 # Internationalization
12343 # If we haven't got the data from the intl directory,
12344 # assume NLS is disabled.
12353 if test -f ..
/intl
/config.intl
; then
12354 . ..
/intl
/config.intl
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12357 $as_echo_n "checking whether NLS is requested... " >&6; }
12358 if test x
"$USE_NLS" != xyes
; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12363 $as_echo "yes" >&6; }
12365 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12369 $as_echo_n "checking for catalogs to be installed... " >&6; }
12370 # Look for .po and .gmo files in the source directory.
12373 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12374 # If there aren't any .gmo files the shell will give us the
12375 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12377 case "$cat" in *\
**)
12380 # The quadruple backslash is collapsed to a double backslash
12381 # by the backticks, then collapsed again by the double quotes,
12382 # leaving us with one backslash in the sed expression (right
12383 # before the dot that mustn't act as a wildcard).
12384 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12385 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12386 # The user is allowed to set LINGUAS to a list of languages to
12387 # install catalogs for. If it's empty that means "all of them."
12388 if test "x$LINGUAS" = x
; then
12389 CATALOGS
="$CATALOGS $cat"
12390 XLINGUAS
="$XLINGUAS $lang"
12392 case "$LINGUAS" in *$lang*)
12393 CATALOGS
="$CATALOGS $cat"
12394 XLINGUAS
="$XLINGUAS $lang"
12399 LINGUAS
="$XLINGUAS"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12401 $as_echo "$LINGUAS" >&6; }
12414 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12415 # -liconv on the link line twice.
12416 case "$LIBINTL" in *$LIBICONV*)
12420 # Check whether --enable-secureplt was given.
12421 if test "${enable_secureplt+set}" = set; then :
12422 enableval
=$enable_secureplt;
12426 # Check whether --enable-mingw-wildcard was given.
12427 if test "${enable_mingw_wildcard+set}" = set; then :
12428 enableval
=$enable_mingw_wildcard;
12430 enable_mingw_wildcard
=platform
12433 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12435 cat >>confdefs.h
<<_ACEOF
12436 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12441 # Check whether --enable-large-address-aware was given.
12442 if test "${enable_large_address_aware+set}" = set; then :
12443 enableval
=$enable_large_address_aware;
12446 if test x
"$enable_large_address_aware" = xyes
; then :
12448 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12452 # Check whether --enable-leading-mingw64-underscores was given.
12453 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12454 enableval
=$enable_leading_mingw64_underscores;
12457 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12459 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12463 # Check whether --enable-cld was given.
12464 if test "${enable_cld+set}" = set; then :
12465 enableval
=$enable_cld;
12471 # Check whether --enable-frame-pointer was given.
12472 if test "${enable_frame_pointer+set}" = set; then :
12473 enableval
=$enable_frame_pointer;
12477 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12478 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12479 enable_frame_pointer
=no
12482 enable_frame_pointer
=yes
12490 i
[34567]86-*-* | x86_64-
*-*)
12491 if test "x$enable_cld" = xyes
; then
12492 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12494 if test "x$enable_frame_pointer" = xyes
; then
12495 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12500 # Windows32 Registry support for specifying GCC installation paths.
12501 # Check whether --enable-win32-registry was given.
12502 if test "${enable_win32_registry+set}" = set; then :
12503 enableval
=$enable_win32_registry;
12508 win32 | pe | cygwin
* | mingw32
*)
12509 if test "x$enable_win32_registry" != xno
; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12512 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12513 $as_echo_n "(cached) " >&6
12515 ac_func_search_save_LIBS
=$LIBS
12516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char RegOpenKeyExA ();
12529 return RegOpenKeyExA ();
12534 for ac_lib
in '' advapi32
; do
12535 if test -z "$ac_lib"; then
12536 ac_res
="none required"
12539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12541 if ac_fn_cxx_try_link
"$LINENO"; then :
12542 ac_cv_search_RegOpenKeyExA
=$ac_res
12544 rm -f core conftest.err conftest.
$ac_objext \
12546 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12550 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12553 ac_cv_search_RegOpenKeyExA
=no
12555 rm conftest.
$ac_ext
12556 LIBS
=$ac_func_search_save_LIBS
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12560 ac_res
=$ac_cv_search_RegOpenKeyExA
12561 if test "$ac_res" != no
; then :
12562 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12565 enable_win32_registry
=no
12570 if test "x$enable_win32_registry" != xno
; then
12572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12575 if test "x$enable_win32_registry" != xyes \
12576 && test "x$enable_win32_registry" != x
; then
12578 cat >>confdefs.h
<<_ACEOF
12579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12587 # Get an absolute path to the GCC top-level source directory
12588 holddir
=`${PWDCMD-pwd}`
12590 topdir
=`${PWDCMD-pwd}`
12593 # Conditionalize the makefile for this host machine.
12595 for f
in ${host_xmake_file}
12597 if test -f ${srcdir}/config
/$f
12599 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12603 # Conditionalize the makefile for this target machine.
12605 for f
in ${tmake_file}
12607 if test -f ${srcdir}/config
/$f
12609 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12612 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12614 out_object_file
=`basename $out_file .c`.o
12615 common_out_object_file
=`basename $common_out_file .c`.o
12617 tm_file_list
="options.h"
12618 tm_include_list
="options.h insn-constants.h"
12619 for f
in $tm_file; do
12622 f
=`echo $f | sed 's/^..//'`
12623 tm_file_list
="${tm_file_list} $f"
12624 tm_include_list
="${tm_include_list} $f"
12627 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12628 tm_include_list
="${tm_include_list} $f"
12631 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12632 tm_include_list
="${tm_include_list} config/$f"
12639 for f
in $tm_p_file; do
12642 tm_p_file_list
="${tm_p_file_list} $f"
12643 tm_p_include_list
="${tm_p_include_list} $f"
12646 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12647 tm_p_include_list
="${tm_p_include_list} config/$f"
12652 tm_d_include_list
="options.h insn-constants.h"
12653 for f
in $tm_d_file; do
12656 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12657 tm_d_include_list
="${tm_d_include_list} $f"
12660 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12661 tm_d_include_list
="${tm_d_include_list} config/$f"
12668 for f
in $xm_file; do
12671 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12672 xm_include_list
="${xm_include_list} $f"
12675 xm_file_list
="${xm_file_list} $f"
12676 xm_include_list
="${xm_include_list} $f"
12679 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12680 xm_include_list
="${xm_include_list} config/$f"
12686 host_xm_include_list
=
12687 for f
in $host_xm_file; do
12690 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12691 host_xm_include_list
="${host_xm_include_list} $f"
12694 host_xm_file_list
="${host_xm_file_list} $f"
12695 host_xm_include_list
="${host_xm_include_list} $f"
12698 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12699 host_xm_include_list
="${host_xm_include_list} config/$f"
12704 build_xm_file_list
=
12705 for f
in $build_xm_file; do
12708 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12709 build_xm_include_list
="${build_xm_include_list} $f"
12711 auto-build.h | auto-host.h
)
12712 build_xm_file_list
="${build_xm_file_list} $f"
12713 build_xm_include_list
="${build_xm_include_list} $f"
12716 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12717 build_xm_include_list
="${build_xm_include_list} config/$f"
12722 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12723 # cross-compiler which does not use the native headers and libraries.
12724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12727 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12728 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12730 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12731 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12732 if test "x$with_build_sysroot" != x
; then
12733 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12735 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12738 if test x
$host != x
$target
12740 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12742 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12743 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12744 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12747 if test "x$with_build_sysroot" != "x"; then
12748 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12749 elif test "x$with_sysroot" = x
; then
12750 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12751 elif test "x$with_sysroot" = xyes
; then
12752 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12754 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12757 target_header_dir
=${native_system_header_dir}
12760 # If this is a cross-compiler that does not
12761 # have its own set of headers then define
12764 # If this is using newlib, without having the headers available now,
12765 # then define inhibit_libc in LIBGCC2_CFLAGS.
12766 # This prevents libgcc2 from containing any code which requires libc
12768 : ${inhibit_libc=false}
12769 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12770 test x
$with_newlib = xyes
; } &&
12771 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12776 # When building gcc with a cross-compiler, we need to adjust things so
12777 # that the generator programs are still built with the native compiler.
12778 # Also, we cannot run fixincludes.
12780 # These are the normal (build=host) settings:
12781 CC_FOR_BUILD
='$(CC)'
12782 CXX_FOR_BUILD
='$(CXX)'
12783 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12784 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12785 BUILD_LDFLAGS
='$(LDFLAGS)'
12786 STMP_FIXINC
=stmp-fixinc
12788 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12789 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12791 # And these apply if build != host, or we are generating coverage data
12792 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12794 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12795 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12796 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12798 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12799 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12800 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12801 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12806 # Expand extra_headers to include complete path.
12807 # This substitutes for lots of t-* files.
12808 extra_headers_list
=
12809 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12810 for file in ${extra_headers} ; do
12811 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12814 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12815 if test x
"$use_gcc_tgmath" = xyes
12816 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12819 # Define collect2 in Makefile.
12820 case $host_can_use_collect2 in
12822 *) collect2
='collect2$(exeext)' ;;
12826 # Add a definition of USE_COLLECT2 if system wants one.
12827 case $use_collect2 in
12828 no
) use_collect2
= ;;
12831 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12832 xm_defines
="${xm_defines} USE_COLLECT2"
12833 case $host_can_use_collect2 in
12835 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12842 cat >>confdefs.h
<<_ACEOF
12843 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12847 # ---------------------------
12848 # Assembler & linker features
12849 # ---------------------------
12851 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12852 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12853 # However when ld-new is first executed from the build tree, libtool will
12854 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12855 # to the build tree. While doing this we need to use the previous-stage
12856 # linker, or we have an infinite loop. The presence of a shell script as
12857 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12858 # the gcc/collect-ld script. So we need to know how libtool works, or
12859 # exec-tool will fail.
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12865 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12870 macro_version
='2.2.7a'
12871 macro_revision
='1.3134'
12885 ltmain
="$ac_aux_dir/ltmain.sh"
12887 # Backslashify metacharacters that are still active within
12888 # double-quoted strings.
12889 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12891 # Same as above, but do not quote variable references.
12892 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12894 # Sed substitution to delay expansion of an escaped shell variable in a
12895 # double_quote_subst'ed string.
12896 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12898 # Sed substitution to delay expansion of an escaped single quote.
12899 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12901 # Sed substitution to avoid accidental globbing in evaled expressions
12902 no_glob_subst
='s/\*/\\\*/g'
12904 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12905 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12906 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12909 $as_echo_n "checking how to print strings... " >&6; }
12910 # Test print first, because it will be a builtin if present.
12911 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12912 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12914 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12917 # Use this function as a fallback that always works.
12918 func_fallback_echo ()
12920 eval 'cat <<_LTECHO_EOF
12924 ECHO='func_fallback_echo
'
12927 # func_echo_all arg...
12928 # Invoke $ECHO with all args, space-separated.
12935 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12936 $as_echo "printf" >&6; } ;;
12937 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12938 $as_echo "print -r" >&6; } ;;
12939 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12940 $as_echo "cat" >&6; } ;;
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12958 if ${ac_cv_path_SED+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12962 for ac_i in 1 2 3 4 5 6 7; do
12963 ac_script="$ac_script$as_nl$ac_script"
12965 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12966 { ac_script=; unset ac_script;}
12967 if test -z "$SED"; then
12968 ac_path_SED_found=false
12969 # Loop through the user's path and
test for each of PROGNAME-LIST
12970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12971 for as_dir
in $PATH
12974 test -z "$as_dir" && as_dir
=.
12975 for ac_prog
in sed gsed
; do
12976 for ac_exec_ext
in '' $ac_executable_extensions; do
12977 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12978 as_fn_executable_p
"$ac_path_SED" ||
continue
12979 # Check for GNU ac_path_SED and select it if it is found.
12980 # Check for GNU $ac_path_SED
12981 case `"$ac_path_SED" --version 2>&1` in
12983 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12986 $as_echo_n 0123456789 >"conftest.in"
12989 cat "conftest.in" "conftest.in" >"conftest.tmp"
12990 mv "conftest.tmp" "conftest.in"
12991 cp "conftest.in" "conftest.nl"
12992 $as_echo '' >> "conftest.nl"
12993 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12994 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12995 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12996 if test $ac_count -gt ${ac_path_SED_max-0}; then
12997 # Best one so far, save it but keep looking for a better one
12998 ac_cv_path_SED
="$ac_path_SED"
12999 ac_path_SED_max
=$ac_count
13001 # 10*(2^10) chars as input seems more than enough
13002 test $ac_count -gt 10 && break
13004 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13007 $ac_path_SED_found && break 3
13012 if test -z "$ac_cv_path_SED"; then
13013 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13016 ac_cv_path_SED
=$SED
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13021 $as_echo "$ac_cv_path_SED" >&6; }
13022 SED
="$ac_cv_path_SED"
13025 test -z "$SED" && SED
=sed
13026 Xsed
="$SED -e 1s/^X//"
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13039 $as_echo_n "checking for fgrep... " >&6; }
13040 if ${ac_cv_path_FGREP+:} false
; then :
13041 $as_echo_n "(cached) " >&6
13043 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13044 then ac_cv_path_FGREP
="$GREP -F"
13046 if test -z "$FGREP"; then
13047 ac_path_FGREP_found
=false
13048 # Loop through the user's path and test for each of PROGNAME-LIST
13049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13050 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13053 test -z "$as_dir" && as_dir
=.
13054 for ac_prog
in fgrep
; do
13055 for ac_exec_ext
in '' $ac_executable_extensions; do
13056 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13057 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13058 # Check for GNU ac_path_FGREP and select it if it is found.
13059 # Check for GNU $ac_path_FGREP
13060 case `"$ac_path_FGREP" --version 2>&1` in
13062 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13065 $as_echo_n 0123456789 >"conftest.in"
13068 cat "conftest.in" "conftest.in" >"conftest.tmp"
13069 mv "conftest.tmp" "conftest.in"
13070 cp "conftest.in" "conftest.nl"
13071 $as_echo 'FGREP' >> "conftest.nl"
13072 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13073 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13074 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13075 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13076 # Best one so far, save it but keep looking for a better one
13077 ac_cv_path_FGREP
="$ac_path_FGREP"
13078 ac_path_FGREP_max
=$ac_count
13080 # 10*(2^10) chars as input seems more than enough
13081 test $ac_count -gt 10 && break
13083 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13086 $ac_path_FGREP_found && break 3
13091 if test -z "$ac_cv_path_FGREP"; then
13092 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13095 ac_cv_path_FGREP
=$FGREP
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13101 $as_echo "$ac_cv_path_FGREP" >&6; }
13102 FGREP
="$ac_cv_path_FGREP"
13105 test -z "$GREP" && GREP
=grep
13125 # Check whether --with-gnu-ld was given.
13126 if test "${with_gnu_ld+set}" = set; then :
13127 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13133 if test "$GCC" = yes; then
13134 # Check if gcc -print-prog-name=ld gives a path.
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13136 $as_echo_n "checking for ld used by $CC... " >&6; }
13139 # gcc leaves a trailing carriage return which upsets mingw
13140 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13142 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13145 # Accept absolute paths.
13147 re_direlt
='/[^/][^/]*/\.\./'
13148 # Canonicalize the pathname of ld
13149 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13150 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13151 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13153 test -z "$LD" && LD
="$ac_prog"
13156 # If it fails, then pretend we aren't using GCC.
13160 # If it is relative, then search for the first ld in PATH.
13161 with_gnu_ld
=unknown
13164 elif test "$with_gnu_ld" = yes; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13166 $as_echo_n "checking for GNU ld... " >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13169 $as_echo_n "checking for non-GNU ld... " >&6; }
13171 if ${lt_cv_path_LD+:} false
; then :
13172 $as_echo_n "(cached) " >&6
13174 if test -z "$LD"; then
13175 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13176 for ac_dir
in $PATH; do
13178 test -z "$ac_dir" && ac_dir
=.
13179 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13180 lt_cv_path_LD
="$ac_dir/$ac_prog"
13181 # Check to see if the program is GNU ld. I'd rather use --version,
13182 # but apparently some variants of GNU ld only accept -v.
13183 # Break only if it was the GNU/non-GNU ld that we prefer.
13184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13185 *GNU
* |
*'with BFD'*)
13186 test "$with_gnu_ld" != no
&& break
13189 test "$with_gnu_ld" != yes && break
13196 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13200 LD
="$lt_cv_path_LD"
13201 if test -n "$LD"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13203 $as_echo "$LD" >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13208 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13211 if ${lt_cv_prog_gnu_ld+:} false
; then :
13212 $as_echo_n "(cached) " >&6
13214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13215 case `$LD -v 2>&1 </dev/null` in
13216 *GNU
* |
*'with BFD'*)
13217 lt_cv_prog_gnu_ld
=yes
13220 lt_cv_prog_gnu_ld
=no
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13225 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13226 with_gnu_ld
=$lt_cv_prog_gnu_ld
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13237 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13238 if ${lt_cv_path_NM+:} false
; then :
13239 $as_echo_n "(cached) " >&6
13241 if test -n "$NM"; then
13242 # Let the user override the test.
13243 lt_cv_path_NM
="$NM"
13245 lt_nm_to_check
="${ac_tool_prefix}nm"
13246 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13247 lt_nm_to_check
="$lt_nm_to_check nm"
13249 for lt_tmp_nm
in $lt_nm_to_check; do
13250 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13251 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13253 test -z "$ac_dir" && ac_dir
=.
13254 tmp_nm
="$ac_dir/$lt_tmp_nm"
13255 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13256 # Check to see if the nm accepts a BSD-compat flag.
13257 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13258 # nm: unknown option "B" ignored
13259 # Tru64's nm complains that /dev/null is an invalid object file
13260 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13261 */dev
/null
* |
*'Invalid file or object type'*)
13262 lt_cv_path_NM
="$tmp_nm -B"
13266 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13268 lt_cv_path_NM
="$tmp_nm -p"
13272 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13273 continue # so that we can try to find one that supports BSD flags
13282 : ${lt_cv_path_NM=no}
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13286 $as_echo "$lt_cv_path_NM" >&6; }
13287 if test "$lt_cv_path_NM" != "no"; then
13288 NM
="$lt_cv_path_NM"
13290 # Didn't find any BSD compatible name lister, look for dumpbin.
13291 if test -n "$DUMPBIN"; then :
13292 # Let the user override the test.
13294 if test -n "$ac_tool_prefix"; then
13295 for ac_prog
in dumpbin
"link -dump"
13297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13298 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13302 $as_echo_n "(cached) " >&6
13304 if test -n "$DUMPBIN"; then
13305 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13308 for as_dir
in $PATH
13311 test -z "$as_dir" && as_dir
=.
13312 for ac_exec_ext
in '' $ac_executable_extensions; do
13313 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 DUMPBIN
=$ac_cv_prog_DUMPBIN
13325 if test -n "$DUMPBIN"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13327 $as_echo "$DUMPBIN" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13334 test -n "$DUMPBIN" && break
13337 if test -z "$DUMPBIN"; then
13338 ac_ct_DUMPBIN
=$DUMPBIN
13339 for ac_prog
in dumpbin
"link -dump"
13341 # Extract the first word of "$ac_prog", so it can be a program name with args.
13342 set dummy
$ac_prog; ac_word
=$2
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13344 $as_echo_n "checking for $ac_word... " >&6; }
13345 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13346 $as_echo_n "(cached) " >&6
13348 if test -n "$ac_ct_DUMPBIN"; then
13349 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13352 for as_dir
in $PATH
13355 test -z "$as_dir" && as_dir
=.
13356 for ac_exec_ext
in '' $ac_executable_extensions; do
13357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13358 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13369 if test -n "$ac_ct_DUMPBIN"; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13371 $as_echo "$ac_ct_DUMPBIN" >&6; }
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13378 test -n "$ac_ct_DUMPBIN" && break
13381 if test "x$ac_ct_DUMPBIN" = x
; then
13384 case $cross_compiling:$ac_tool_warned in
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13388 ac_tool_warned
=yes ;;
13390 DUMPBIN
=$ac_ct_DUMPBIN
13394 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13396 DUMPBIN
="$DUMPBIN -symbols"
13404 if test "$DUMPBIN" != ":"; then
13408 test -z "$NM" && NM
=nm
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13416 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13417 if ${lt_cv_nm_interface+:} false
; then :
13418 $as_echo_n "(cached) " >&6
13420 lt_cv_nm_interface
="BSD nm"
13421 echo "int some_variable = 0;" > conftest.
$ac_ext
13422 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13423 (eval "$ac_compile" 2>conftest.err
)
13424 cat conftest.err
>&5
13425 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13426 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13427 cat conftest.err
>&5
13428 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13429 cat conftest.out
>&5
13430 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13431 lt_cv_nm_interface
="MS dumpbin"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13436 $as_echo "$lt_cv_nm_interface" >&6; }
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13439 $as_echo_n "checking whether ln -s works... " >&6; }
13441 if test "$LN_S" = "ln -s"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443 $as_echo "yes" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13446 $as_echo "no, using $LN_S" >&6; }
13449 # find the maximum length of command line arguments
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13451 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13452 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13453 $as_echo_n "(cached) " >&6
13460 # On DJGPP, this test can blow up pretty badly due to problems in libc
13461 # (any single argument exceeding 2000 bytes causes a buffer overrun
13462 # during glob expansion). Even if it were fixed, the result of this
13463 # check would be larger than it should be.
13464 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13468 # Under GNU Hurd, this test is not required because there is
13469 # no limit to the length of command line arguments.
13470 # Libtool will interpret -1 as no limit whatsoever
13471 lt_cv_sys_max_cmd_len
=-1;
13474 cygwin
* | mingw
* | cegcc
*)
13475 # On Win9x/ME, this test blows up -- it succeeds, but takes
13476 # about 5 minutes as the teststring grows exponentially.
13477 # Worse, since 9x/ME are not pre-emptively multitasking,
13478 # you end up with a "frozen" computer, even though with patience
13479 # the test eventually succeeds (with a max line length of 256k).
13480 # Instead, let's just punt: use the minimum linelength reported by
13481 # all of the supported platforms: 8192 (on NT/2K/XP).
13482 lt_cv_sys_max_cmd_len
=8192;
13486 # On MiNT this can take a long time and run out of memory.
13487 lt_cv_sys_max_cmd_len
=8192;
13491 # On AmigaOS with pdksh, this test takes hours, literally.
13492 # So we just punt and use a minimum line length of 8192.
13493 lt_cv_sys_max_cmd_len
=8192;
13496 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13497 # This has been around since 386BSD, at least. Likely further.
13498 if test -x /sbin
/sysctl
; then
13499 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13500 elif test -x /usr
/sbin
/sysctl
; then
13501 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13503 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13505 # And add a safety zone
13506 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13507 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13511 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13512 lt_cv_sys_max_cmd_len
=196608
13516 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13517 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13518 # nice to cause kernel panics so lets avoid the loop below.
13519 # First set a reasonable default.
13520 lt_cv_sys_max_cmd_len
=16384
13522 if test -x /sbin
/sysconfig
; then
13523 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13524 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13529 lt_cv_sys_max_cmd_len
=102400
13531 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13532 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13533 if test -n "$kargmax"; then
13534 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13536 lt_cv_sys_max_cmd_len
=32768
13540 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13541 if test -n "$lt_cv_sys_max_cmd_len"; then
13542 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13543 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13545 # Make teststring a little bigger before we do anything with it.
13546 # a 1K string should be a reasonable start.
13547 for i
in 1 2 3 4 5 6 7 8 ; do
13548 teststring
=$teststring$teststring
13550 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13551 # If test is not a shell built-in, we'll probably end up computing a
13552 # maximum length that is only half of the actual maximum length, but
13554 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13555 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13556 test $i != 17 # 1/2 MB should be enough
13559 teststring
=$teststring$teststring
13561 # Only check the string length outside the loop.
13562 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13564 # Add a significant safety factor because C++ compilers can tack on
13565 # massive amounts of additional arguments before passing them to the
13566 # linker. It appears as though 1/2 is a usable value.
13567 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13574 if test -n $lt_cv_sys_max_cmd_len ; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13576 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13579 $as_echo "none" >&6; }
13581 max_cmd_len
=$lt_cv_sys_max_cmd_len
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13593 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13594 # Try some XSI features
13596 ( _lt_dummy
="a/b/c"
13597 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13599 && eval 'test $(( 1 + 1 )) -eq 2 \
13600 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13603 $as_echo "$xsi_shell" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13607 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13609 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13611 && lt_shell_append=yes
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13613 $as_echo "$lt_shell_append" >&6; }
13616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13626 # test EBCDIC or ASCII
13627 case `echo X|tr X '\101'` in
13628 A) # ASCII based system
13629 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13630 lt_SP2NL='tr \040 \012'
13631 lt_NL2SP='tr \015\012 \040\040'
13633 *) # EBCDIC based system
13634 lt_SP2NL='tr \100 \n'
13635 lt_NL2SP='tr \r\n \100\100'
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13648 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13649 if ${lt_cv_ld_reload_flag+:} false; then :
13650 $as_echo_n "(cached
) " >&6
13652 lt_cv_ld_reload_flag='-r'
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13655 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13656 reload_flag=$lt_cv_ld_reload_flag
13657 case $reload_flag in
13659 *) reload_flag=" $reload_flag" ;;
13661 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13664 if test "$GCC" = yes; then
13665 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13680 if test -n "$ac_tool_prefix"; then
13681 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13682 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13684 $as_echo_n "checking
for $ac_word...
" >&6; }
13685 if ${ac_cv_prog_OBJDUMP+:} false; then :
13686 $as_echo_n "(cached
) " >&6
13688 if test -n "$OBJDUMP"; then
13689 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13695 test -z "$as_dir" && as_dir=.
13696 for ac_exec_ext in '' $ac_executable_extensions; do
13697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13699 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13708 OBJDUMP=$ac_cv_prog_OBJDUMP
13709 if test -n "$OBJDUMP"; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13711 $as_echo "$OBJDUMP" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13714 $as_echo "no
" >&6; }
13719 if test -z "$ac_cv_prog_OBJDUMP"; then
13720 ac_ct_OBJDUMP=$OBJDUMP
13721 # Extract the first word of "objdump
", so it can be a program name with args.
13722 set dummy objdump; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13724 $as_echo_n "checking
for $ac_word...
" >&6; }
13725 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13726 $as_echo_n "(cached
) " >&6
13728 if test -n "$ac_ct_OBJDUMP"; then
13729 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13738 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13748 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13749 if test -n "$ac_ct_OBJDUMP"; then
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13751 $as_echo "$ac_ct_OBJDUMP" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13754 $as_echo "no
" >&6; }
13757 if test "x
$ac_ct_OBJDUMP" = x; then
13760 case $cross_compiling:$ac_tool_warned in
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13763 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13764 ac_tool_warned=yes ;;
13766 OBJDUMP=$ac_ct_OBJDUMP
13769 OBJDUMP="$ac_cv_prog_OBJDUMP"
13772 test -z "$OBJDUMP" && OBJDUMP=objdump
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13783 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13784 if ${lt_cv_deplibs_check_method+:} false; then :
13785 $as_echo_n "(cached
) " >&6
13787 lt_cv_file_magic_cmd='$MAGIC_CMD'
13788 lt_cv_file_magic_test_file=
13789 lt_cv_deplibs_check_method='unknown'
13790 # Need to set the preceding variable on all platforms that support
13791 # interlibrary dependencies.
13792 # 'none' -- dependencies not supported.
13793 # `unknown' -- same as none, but documents that we really don't know.
13794 # 'pass_all' -- all dependencies passed with no checks.
13795 # 'test_compile' -- check by making test program.
13796 # 'file_magic [[regex]]' -- check by looking for files in library path
13797 # which responds to the $file_magic_cmd with a given extended regex.
13798 # If you have `file' or equivalent on your system and you're not sure
13799 # whether `pass_all' will *always* work, you probably want this one.
13803 lt_cv_deplibs_check_method=pass_all
13807 lt_cv_deplibs_check_method=pass_all
13811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13812 lt_cv_file_magic_cmd='/usr/bin/file -L'
13813 lt_cv_file_magic_test_file=/shlib/libc.so
13817 # func_win32_libid is a shell function defined in ltmain.sh
13818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13819 lt_cv_file_magic_cmd='func_win32_libid'
13823 # Base MSYS/MinGW do not provide the 'file' command needed by
13824 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13825 # unless we find 'file', for example because we are cross-compiling.
13826 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13827 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13829 lt_cv_file_magic_cmd='func_win32_libid'
13831 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13832 lt_cv_file_magic_cmd='$OBJDUMP -f'
13837 # use the weaker test based on 'objdump'. See mingw*.
13838 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13839 lt_cv_file_magic_cmd='$OBJDUMP -f'
13842 darwin* | rhapsody*)
13843 lt_cv_deplibs_check_method=pass_all
13846 freebsd* | dragonfly*)
13847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13850 # Not sure whether the presence of OpenBSD here was a mistake.
13851 # Let's accept both of them until this is cleared up.
13852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13853 lt_cv_file_magic_cmd=/usr/bin/file
13854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13858 lt_cv_deplibs_check_method=pass_all
13863 lt_cv_deplibs_check_method=pass_all
13867 lt_cv_deplibs_check_method=pass_all
13870 hpux10.20* | hpux11*)
13871 lt_cv_file_magic_cmd=/usr/bin/file
13874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13875 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13878 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]'
13879 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13882 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13883 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13889 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13893 irix5* | irix6* | nonstopux*)
13895 *-32|*"-32 ") libmagic=32-bit;;
13896 *-n32|*"-n32 ") libmagic=N32;;
13897 *-64|*"-64 ") libmagic=64-bit;;
13898 *) libmagic=never-match;;
13900 lt_cv_deplibs_check_method=pass_all
13903 # This must be Linux ELF.
13904 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13905 lt_cv_deplibs_check_method=pass_all
13909 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13918 lt_cv_file_magic_cmd=/usr/bin/file
13919 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13923 lt_cv_deplibs_check_method=pass_all
13927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13934 osf3* | osf4* | osf5*)
13935 lt_cv_deplibs_check_method=pass_all
13939 lt_cv_deplibs_check_method=pass_all
13943 lt_cv_deplibs_check_method=pass_all
13946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13947 lt_cv_deplibs_check_method=pass_all
13951 case $host_vendor in
13953 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]'
13954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13957 lt_cv_deplibs_check_method=pass_all
13960 lt_cv_file_magic_cmd='/bin/file'
13961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13964 lt_cv_file_magic_cmd='/bin/file'
13965 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13966 lt_cv_file_magic_test_file=/lib/libc.so
13969 lt_cv_deplibs_check_method=pass_all
13972 lt_cv_deplibs_check_method=pass_all
13978 lt_cv_deplibs_check_method=pass_all
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13984 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13985 file_magic_cmd=$lt_cv_file_magic_cmd
13986 deplibs_check_method=$lt_cv_deplibs_check_method
13987 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14000 if test -n "$ac_tool_prefix"; then
14001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14002 set dummy ${ac_tool_prefix}ar; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14004 $as_echo_n "checking
for $ac_word...
" >&6; }
14005 if ${ac_cv_prog_AR+:} false; then :
14006 $as_echo_n "(cached
) " >&6
14008 if test -n "$AR"; then
14009 ac_cv_prog_AR="$AR" # Let the user override the test.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018 ac_cv_prog_AR="${ac_tool_prefix}ar"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14029 if test -n "$AR"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14031 $as_echo "$AR" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14034 $as_echo "no
" >&6; }
14039 if test -z "$ac_cv_prog_AR"; then
14041 # Extract the first word of "ar", so it can be a program name with args.
14042 set dummy ar; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14044 $as_echo_n "checking
for $ac_word...
" >&6; }
14045 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14046 $as_echo_n "(cached
) " >&6
14048 if test -n "$ac_ct_AR"; then
14049 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14058 ac_cv_prog_ac_ct_AR="ar"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14068 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14069 if test -n "$ac_ct_AR"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14071 $as_echo "$ac_ct_AR" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14074 $as_echo "no
" >&6; }
14077 if test "x
$ac_ct_AR" = x; then
14080 case $cross_compiling:$ac_tool_warned in
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14083 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14084 ac_tool_warned=yes ;;
14089 AR="$ac_cv_prog_AR"
14092 test -z "$AR" && AR=ar
14093 test -z "$AR_FLAGS" && AR_FLAGS=cru
14105 if test -n "$ac_tool_prefix"; then
14106 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14107 set dummy ${ac_tool_prefix}strip; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14109 $as_echo_n "checking
for $ac_word...
" >&6; }
14110 if ${ac_cv_prog_STRIP+:} false; then :
14111 $as_echo_n "(cached
) " >&6
14113 if test -n "$STRIP"; then
14114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14133 STRIP=$ac_cv_prog_STRIP
14134 if test -n "$STRIP"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14136 $as_echo "$STRIP" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14139 $as_echo "no
" >&6; }
14144 if test -z "$ac_cv_prog_STRIP"; then
14146 # Extract the first word of "strip
", so it can be a program name with args.
14147 set dummy strip; ac_word=$2
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14149 $as_echo_n "checking
for $ac_word...
" >&6; }
14150 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14151 $as_echo_n "(cached
) " >&6
14153 if test -n "$ac_ct_STRIP"; then
14154 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157 for as_dir in $PATH
14160 test -z "$as_dir" && as_dir=.
14161 for ac_exec_ext in '' $ac_executable_extensions; do
14162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14163 ac_cv_prog_ac_ct_STRIP="strip
"
14164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14174 if test -n "$ac_ct_STRIP"; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14176 $as_echo "$ac_ct_STRIP" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14179 $as_echo "no
" >&6; }
14182 if test "x
$ac_ct_STRIP" = x; then
14185 case $cross_compiling:$ac_tool_warned in
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14188 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14189 ac_tool_warned=yes ;;
14194 STRIP="$ac_cv_prog_STRIP"
14197 test -z "$STRIP" && STRIP=:
14204 if test -n "$ac_tool_prefix"; then
14205 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14208 $as_echo_n "checking
for $ac_word...
" >&6; }
14209 if ${ac_cv_prog_RANLIB+:} false; then :
14210 $as_echo_n "(cached
) " >&6
14212 if test -n "$RANLIB"; then
14213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14232 RANLIB=$ac_cv_prog_RANLIB
14233 if test -n "$RANLIB"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14235 $as_echo "$RANLIB" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14238 $as_echo "no
" >&6; }
14243 if test -z "$ac_cv_prog_RANLIB"; then
14244 ac_ct_RANLIB=$RANLIB
14245 # Extract the first word of "ranlib
", so it can be a program name with args.
14246 set dummy ranlib; ac_word=$2
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14248 $as_echo_n "checking
for $ac_word...
" >&6; }
14249 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14250 $as_echo_n "(cached
) " >&6
14252 if test -n "$ac_ct_RANLIB"; then
14253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14259 test -z "$as_dir" && as_dir=.
14260 for ac_exec_ext in '' $ac_executable_extensions; do
14261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14262 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14273 if test -n "$ac_ct_RANLIB"; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14275 $as_echo "$ac_ct_RANLIB" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14278 $as_echo "no
" >&6; }
14281 if test "x
$ac_ct_RANLIB" = x; then
14284 case $cross_compiling:$ac_tool_warned in
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14287 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14288 ac_tool_warned=yes ;;
14290 RANLIB=$ac_ct_RANLIB
14293 RANLIB="$ac_cv_prog_RANLIB"
14296 test -z "$RANLIB" && RANLIB=:
14303 # Determine commands to create old-style static archives.
14304 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14305 old_postinstall_cmds='chmod 644 $oldlib'
14306 old_postuninstall_cmds=
14308 if test -n "$RANLIB"; then
14311 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14314 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14317 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14322 lock_old_archive_extraction=yes ;;
14324 lock_old_archive_extraction=no ;;
14365 # If no C compiler was specified, use CC.
14368 # If no C compiler flags were specified, use CFLAGS.
14369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14371 # Allow CC to be a program name with arguments.
14375 # Check for command to grab the raw symbol name followed by C symbol from nm.
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14377 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14378 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14379 $as_echo_n "(cached
) " >&6
14382 # These are sane defaults that work on at least a few old systems.
14383 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14385 # Character class describing NM global symbol codes.
14386 symcode='[BCDEGRST]'
14388 # Regexp to match symbols that can be accessed directly from C.
14389 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14391 # Define system-specific variables.
14396 cygwin* | mingw* | pw32* | cegcc*)
14397 symcode='[ABCDGISTW]'
14400 if test "$host_cpu" = ia64; then
14401 symcode='[ABCDEGRST]'
14404 irix* | nonstopux*)
14405 symcode='[BCDEGRST]'
14408 symcode='[BCDEGQRST]'
14419 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14427 # If we're using GNU nm, then use its standard symbol codes.
14428 case `$NM -V 2>&1` in
14429 *GNU* | *'with BFD'*)
14430 symcode='[ABCDGIRSTW]' ;;
14433 # Transform an extracted symbol line into a proper C declaration.
14434 # Some systems (esp. on ia64) link data and code symbols differently,
14435 # so use this general approach.
14436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14438 # Transform an extracted symbol line into symbol name and symbol address
14439 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14440 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'"
14442 # Handle CRLF in mingw tool chain
14446 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14450 # Try without a prefix underscore, then with it.
14451 for ac_symprfx in "" "_
"; do
14453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14454 symxfrm="\\1 $ac_symprfx\\2 \\2"
14456 # Write the raw and C identifiers.
14457 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14458 # Fake it for dumpbin and say T for any non-static function
14459 # and D for any global variable.
14460 # Also find C++ and __fastcall symbols from MSVC++,
14461 # which start with @ or ?.
14462 lt_cv_sys_global_symbol_pipe="$AWK '"\
14463 " {last_section=section; section=\$ 3};"\
14464 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14465 " \$ 0!~/External *\|/{next};"\
14466 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14467 " {if(hide[section]) next};"\
14468 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14469 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14470 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14471 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14472 " ' prfx
=^
$ac_symprfx"
14474 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14477 # Check to see that the pipe works correctly.
14481 cat > conftest.$ac_ext <<_LT_EOF
14486 void nm_test_func(void);
14487 void nm_test_func(void){}
14491 int main(){nm_test_var='a';nm_test_func();return(0);}
14494 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14495 (eval $ac_compile) 2>&5
14497 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14498 test $ac_status = 0; }; then
14499 # Now try to grab the symbols.
14501 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14502 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14504 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14505 test $ac_status = 0; } && test -s "$nlist"; then
14506 # Try sorting and uniquifying the output.
14507 if sort "$nlist" | uniq > "$nlist"T; then
14508 mv -f "$nlist"T "$nlist"
14513 # Make sure that we snagged all the symbols we need.
14514 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14515 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14516 cat <<_LT_EOF > conftest.$ac_ext
14522 # Now generate the symbol file.
14523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14525 cat <<_LT_EOF >> conftest.$ac_ext
14527 /* The mapping between symbol names and symbols. */
14532 lt__PROGRAM__LTX_preloaded_symbols[] =
14534 { "@PROGRAM@
", (void *) 0 },
14536 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14537 cat <<\_LT_EOF >> conftest.$ac_ext
14541 /* This works around a problem in FreeBSD linker */
14542 #ifdef FREEBSD_WORKAROUND
14543 static const void *lt_preloaded_setup() {
14544 return lt__PROGRAM__LTX_preloaded_symbols;
14552 # Now try linking the two files.
14553 mv conftest.$ac_objext conftstm.$ac_objext
14554 lt_save_LIBS="$LIBS"
14555 lt_save_CFLAGS="$CFLAGS"
14556 LIBS="conftstm.
$ac_objext"
14557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14558 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14559 (eval $ac_link) 2>&5
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14562 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14565 LIBS="$lt_save_LIBS"
14566 CFLAGS="$lt_save_CFLAGS"
14568 echo "cannot
find nm_test_func
in $nlist" >&5
14571 echo "cannot
find nm_test_var
in $nlist" >&5
14574 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14577 echo "$progname: failed program was
:" >&5
14578 cat conftest.$ac_ext >&5
14580 rm -rf conftest* conftst*
14582 # Do not use the global_symbol_pipe unless it works.
14583 if test "$pipe_works" = yes; then
14586 lt_cv_sys_global_symbol_pipe=
14592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14593 lt_cv_sys_global_symbol_to_cdecl=
14595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14597 $as_echo "failed
" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14600 $as_echo "ok
" >&6; }
14624 # Check whether --enable-libtool-lock was given.
14625 if test "${enable_libtool_lock+set}" = set; then :
14626 enableval=$enable_libtool_lock;
14629 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14631 # Some flags need to be propagated to the compiler or linker for good
14635 # Find out which ABI we are using.
14636 echo 'int i;' > conftest.$ac_ext
14637 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14638 (eval $ac_compile) 2>&5
14640 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14641 test $ac_status = 0; }; then
14642 case `/usr/bin/file conftest.$ac_objext` in
14644 HPUX_IA64_MODE="32"
14647 HPUX_IA64_MODE="64"
14654 # Find out which ABI we are using.
14655 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14656 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14657 (eval $ac_compile) 2>&5
14659 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14660 test $ac_status = 0; }; then
14661 if test "$lt_cv_prog_gnu_ld" = yes; then
14662 case `/usr/bin/file conftest.$ac_objext` in
14664 LD="${LD-ld} -melf32bsmip"
14667 LD="${LD-ld} -melf32bmipn32"
14670 LD="${LD-ld} -melf64bmip"
14674 case `/usr/bin/file conftest.$ac_objext` in
14690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14692 # Find out which ABI we are using.
14693 echo 'int i;' > conftest.$ac_ext
14694 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14695 (eval $ac_compile) 2>&5
14697 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14698 test $ac_status = 0; }; then
14699 case `/usr/bin/file conftest.o` in
14702 x86_64-*kfreebsd*-gnu)
14703 LD="${LD-ld} -m elf_i386_fbsd
"
14706 case `/usr/bin/file conftest.o` in
14708 LD="${LD-ld} -m elf32_x86_64
"
14711 LD="${LD-ld} -m elf_i386
"
14715 powerpc64le-*linux*)
14716 LD="${LD-ld} -m elf32lppclinux
"
14719 LD="${LD-ld} -m elf32ppclinux
"
14722 LD="${LD-ld} -m elf_s390
"
14725 LD="${LD-ld} -m elf32_sparc
"
14731 x86_64-*kfreebsd*-gnu)
14732 LD="${LD-ld} -m elf_x86_64_fbsd
"
14735 LD="${LD-ld} -m elf_x86_64
"
14738 LD="${LD-ld} -m elf64lppc
"
14741 LD="${LD-ld} -m elf64ppc
"
14743 s390*-*linux*|s390*-*tpf*)
14744 LD="${LD-ld} -m elf64_s390
"
14747 LD="${LD-ld} -m elf64_sparc
"
14757 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14758 SAVE_CFLAGS="$CFLAGS"
14759 CFLAGS="$CFLAGS -belf"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14761 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14762 if ${lt_cv_cc_needs_belf+:} false; then :
14763 $as_echo_n "(cached
) " >&6
14766 ac_cpp='$CPP $CPPFLAGS'
14767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 lt_cv_cc_needs_belf=yes
14785 lt_cv_cc_needs_belf=no
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14797 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14798 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14799 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14800 CFLAGS="$SAVE_CFLAGS"
14804 # Find out which ABI we are using.
14805 echo 'int i;' > conftest.$ac_ext
14806 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14807 (eval $ac_compile) 2>&5
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14810 test $ac_status = 0; }; then
14811 case `/usr/bin/file conftest.o` in
14813 case $lt_cv_prog_gnu_ld in
14814 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14816 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14828 need_locks="$enable_libtool_lock"
14832 rhapsody* | darwin*)
14833 if test -n "$ac_tool_prefix"; then
14834 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14835 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14837 $as_echo_n "checking
for $ac_word...
" >&6; }
14838 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14839 $as_echo_n "(cached
) " >&6
14841 if test -n "$DSYMUTIL"; then
14842 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14848 test -z "$as_dir" && as_dir=.
14849 for ac_exec_ext in '' $ac_executable_extensions; do
14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14861 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14862 if test -n "$DSYMUTIL"; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14864 $as_echo "$DSYMUTIL" >&6; }
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14867 $as_echo "no
" >&6; }
14872 if test -z "$ac_cv_prog_DSYMUTIL"; then
14873 ac_ct_DSYMUTIL=$DSYMUTIL
14874 # Extract the first word of "dsymutil
", so it can be a program name with args.
14875 set dummy dsymutil; ac_word=$2
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14877 $as_echo_n "checking
for $ac_word...
" >&6; }
14878 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14879 $as_echo_n "(cached
) " >&6
14881 if test -n "$ac_ct_DSYMUTIL"; then
14882 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885 for as_dir in $PATH
14888 test -z "$as_dir" && as_dir=.
14889 for ac_exec_ext in '' $ac_executable_extensions; do
14890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14891 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14892 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14901 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14902 if test -n "$ac_ct_DSYMUTIL"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14904 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14907 $as_echo "no
" >&6; }
14910 if test "x
$ac_ct_DSYMUTIL" = x; then
14913 case $cross_compiling:$ac_tool_warned in
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14916 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14917 ac_tool_warned=yes ;;
14919 DSYMUTIL=$ac_ct_DSYMUTIL
14922 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14925 if test -n "$ac_tool_prefix"; then
14926 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14927 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14929 $as_echo_n "checking
for $ac_word...
" >&6; }
14930 if ${ac_cv_prog_NMEDIT+:} false; then :
14931 $as_echo_n "(cached
) " >&6
14933 if test -n "$NMEDIT"; then
14934 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14937 for as_dir in $PATH
14940 test -z "$as_dir" && as_dir=.
14941 for ac_exec_ext in '' $ac_executable_extensions; do
14942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14943 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14944 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14953 NMEDIT=$ac_cv_prog_NMEDIT
14954 if test -n "$NMEDIT"; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14956 $as_echo "$NMEDIT" >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14959 $as_echo "no
" >&6; }
14964 if test -z "$ac_cv_prog_NMEDIT"; then
14965 ac_ct_NMEDIT=$NMEDIT
14966 # Extract the first word of "nmedit
", so it can be a program name with args.
14967 set dummy nmedit; ac_word=$2
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14969 $as_echo_n "checking
for $ac_word...
" >&6; }
14970 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14971 $as_echo_n "(cached
) " >&6
14973 if test -n "$ac_ct_NMEDIT"; then
14974 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14993 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14994 if test -n "$ac_ct_NMEDIT"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14996 $as_echo "$ac_ct_NMEDIT" >&6; }
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14999 $as_echo "no
" >&6; }
15002 if test "x
$ac_ct_NMEDIT" = x; then
15005 case $cross_compiling:$ac_tool_warned in
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15008 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15009 ac_tool_warned=yes ;;
15011 NMEDIT=$ac_ct_NMEDIT
15014 NMEDIT="$ac_cv_prog_NMEDIT"
15017 if test -n "$ac_tool_prefix"; then
15018 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15019 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15021 $as_echo_n "checking
for $ac_word...
" >&6; }
15022 if ${ac_cv_prog_LIPO+:} false; then :
15023 $as_echo_n "(cached
) " >&6
15025 if test -n "$LIPO"; then
15026 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15045 LIPO=$ac_cv_prog_LIPO
15046 if test -n "$LIPO"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15048 $as_echo "$LIPO" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15051 $as_echo "no
" >&6; }
15056 if test -z "$ac_cv_prog_LIPO"; then
15058 # Extract the first word of "lipo
", so it can be a program name with args.
15059 set dummy lipo; ac_word=$2
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15061 $as_echo_n "checking
for $ac_word...
" >&6; }
15062 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15063 $as_echo_n "(cached
) " >&6
15065 if test -n "$ac_ct_LIPO"; then
15066 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15069 for as_dir in $PATH
15072 test -z "$as_dir" && as_dir=.
15073 for ac_exec_ext in '' $ac_executable_extensions; do
15074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15075 ac_cv_prog_ac_ct_LIPO="lipo
"
15076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15085 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15086 if test -n "$ac_ct_LIPO"; then
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15088 $as_echo "$ac_ct_LIPO" >&6; }
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15091 $as_echo "no
" >&6; }
15094 if test "x
$ac_ct_LIPO" = x; then
15097 case $cross_compiling:$ac_tool_warned in
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15100 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15101 ac_tool_warned=yes ;;
15106 LIPO="$ac_cv_prog_LIPO"
15109 if test -n "$ac_tool_prefix"; then
15110 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15111 set dummy ${ac_tool_prefix}otool; ac_word=$2
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15113 $as_echo_n "checking
for $ac_word...
" >&6; }
15114 if ${ac_cv_prog_OTOOL+:} false; then :
15115 $as_echo_n "(cached
) " >&6
15117 if test -n "$OTOOL"; then
15118 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15121 for as_dir in $PATH
15124 test -z "$as_dir" && as_dir=.
15125 for ac_exec_ext in '' $ac_executable_extensions; do
15126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15127 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15137 OTOOL=$ac_cv_prog_OTOOL
15138 if test -n "$OTOOL"; then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15140 $as_echo "$OTOOL" >&6; }
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15143 $as_echo "no
" >&6; }
15148 if test -z "$ac_cv_prog_OTOOL"; then
15150 # Extract the first word of "otool
", so it can be a program name with args.
15151 set dummy otool; ac_word=$2
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15153 $as_echo_n "checking
for $ac_word...
" >&6; }
15154 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15155 $as_echo_n "(cached
) " >&6
15157 if test -n "$ac_ct_OTOOL"; then
15158 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15167 ac_cv_prog_ac_ct_OTOOL="otool
"
15168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15177 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15178 if test -n "$ac_ct_OTOOL"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15180 $as_echo "$ac_ct_OTOOL" >&6; }
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15183 $as_echo "no
" >&6; }
15186 if test "x
$ac_ct_OTOOL" = x; then
15189 case $cross_compiling:$ac_tool_warned in
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15192 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15193 ac_tool_warned=yes ;;
15198 OTOOL="$ac_cv_prog_OTOOL"
15201 if test -n "$ac_tool_prefix"; then
15202 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15203 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15205 $as_echo_n "checking
for $ac_word...
" >&6; }
15206 if ${ac_cv_prog_OTOOL64+:} false; then :
15207 $as_echo_n "(cached
) " >&6
15209 if test -n "$OTOOL64"; then
15210 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213 for as_dir in $PATH
15216 test -z "$as_dir" && as_dir=.
15217 for ac_exec_ext in '' $ac_executable_extensions; do
15218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15219 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15229 OTOOL64=$ac_cv_prog_OTOOL64
15230 if test -n "$OTOOL64"; then
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15232 $as_echo "$OTOOL64" >&6; }
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15235 $as_echo "no
" >&6; }
15240 if test -z "$ac_cv_prog_OTOOL64"; then
15241 ac_ct_OTOOL64=$OTOOL64
15242 # Extract the first word of "otool64
", so it can be a program name with args.
15243 set dummy otool64; ac_word=$2
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15245 $as_echo_n "checking
for $ac_word...
" >&6; }
15246 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15247 $as_echo_n "(cached
) " >&6
15249 if test -n "$ac_ct_OTOOL64"; then
15250 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15269 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15270 if test -n "$ac_ct_OTOOL64"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15272 $as_echo "$ac_ct_OTOOL64" >&6; }
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15275 $as_echo "no
" >&6; }
15278 if test "x
$ac_ct_OTOOL64" = x; then
15281 case $cross_compiling:$ac_tool_warned in
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15284 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15285 ac_tool_warned=yes ;;
15287 OTOOL64=$ac_ct_OTOOL64
15290 OTOOL64="$ac_cv_prog_OTOOL64"
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15320 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15321 if ${lt_cv_apple_cc_single_mod+:} false; then :
15322 $as_echo_n "(cached
) " >&6
15324 lt_cv_apple_cc_single_mod=no
15325 if test -z "${LT_MULTI_MODULE}"; then
15326 # By default we will add the -single_module flag. You can override
15327 # by either setting the environment variable LT_MULTI_MODULE
15328 # non-empty at configure time, or by adding -multi_module to the
15330 rm -rf libconftest.dylib*
15331 echo "int foo
(void
){return 1;}" > conftest.c
15332 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15333 -dynamiclib -Wl,-single_module conftest.c
" >&5
15334 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15335 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15337 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15338 lt_cv_apple_cc_single_mod=yes
15340 cat conftest.err >&5
15342 rm -rf libconftest.dylib*
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15347 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15349 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15350 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15351 $as_echo_n "(cached
) " >&6
15353 lt_cv_ld_exported_symbols_list=no
15354 save_LDFLAGS=$LDFLAGS
15355 echo "_main
" > conftest.sym
15356 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15368 if ac_fn_c_try_link "$LINENO"; then :
15369 lt_cv_ld_exported_symbols_list=yes
15371 lt_cv_ld_exported_symbols_list=no
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LDFLAGS="$save_LDFLAGS"
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15379 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15381 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15382 if ${lt_cv_ld_force_load+:} false; then :
15383 $as_echo_n "(cached
) " >&6
15385 lt_cv_ld_force_load=no
15386 cat > conftest.c << _LT_EOF
15387 int forced_loaded() { return 2;}
15389 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15390 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15391 echo "$AR cru libconftest.a conftest.o
" >&5
15392 $AR cru libconftest.a conftest.o 2>&5
15393 cat > conftest.c << _LT_EOF
15394 int main() { return 0;}
15396 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15397 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15399 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15400 lt_cv_ld_force_load=yes
15402 cat conftest.err >&5
15404 rm -f conftest.err libconftest.a conftest conftest.c
15405 rm -rf conftest.dSYM
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15409 $as_echo "$lt_cv_ld_force_load" >&6; }
15411 rhapsody* | darwin1.[012])
15412 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15415 darwin*) # darwin 5.x on
15416 # if running on 10.5 or later, the deployment target defaults
15417 # to the OS version, if on x86, and 10.4, the deployment
15418 # target defaults to 10.4. Don't you love it?
15419 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15420 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15421 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15429 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15430 _lt_dar_single_mod='$single_module'
15432 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15433 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15435 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15437 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15438 _lt_dsymutil='~$DSYMUTIL $lib || :'
15446 for ac_header in dlfcn.h
15448 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15449 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15450 cat >>confdefs.h <<_ACEOF
15451 #define HAVE_DLFCN_H 1
15468 enable_win32_dll=no
15471 # Check whether --enable-shared was given.
15472 if test "${enable_shared+set}" = set; then :
15473 enableval=$enable_shared; p=${PACKAGE-default}
15475 yes) enable_shared=yes ;;
15476 no) enable_shared=no ;;
15479 # Look at the argument we got. We use all the common list separators.
15480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15481 for pkg in $enableval; do
15483 if test "X
$pkg" = "X
$p"; then
15502 # Check whether --enable-static was given.
15503 if test "${enable_static+set}" = set; then :
15504 enableval=$enable_static; p=${PACKAGE-default}
15506 yes) enable_static=yes ;;
15507 no) enable_static=no ;;
15510 # Look at the argument we got. We use all the common list separators.
15511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15512 for pkg in $enableval; do
15514 if test "X
$pkg" = "X
$p"; then
15534 # Check whether --with-pic was given.
15535 if test "${with_pic+set}" = set; then :
15536 withval=$with_pic; pic_mode="$withval"
15542 test -z "$pic_mode" && pic_mode=default
15550 # Check whether --enable-fast-install was given.
15551 if test "${enable_fast_install+set}" = set; then :
15552 enableval=$enable_fast_install; p=${PACKAGE-default}
15554 yes) enable_fast_install=yes ;;
15555 no) enable_fast_install=no ;;
15557 enable_fast_install=no
15558 # Look at the argument we got. We use all the common list separators.
15559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15560 for pkg in $enableval; do
15562 if test "X
$pkg" = "X
$p"; then
15563 enable_fast_install=yes
15570 enable_fast_install=yes
15583 # This can be used to rebuild libtool when needed
15584 LIBTOOL_DEPS="$ltmain"
15586 # Always use our own libtool.
15587 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15614 test -z "$LN_S" && LN_S="ln -s"
15629 if test -n "${ZSH_VERSION+set}" ; then
15630 setopt NO_GLOB_SUBST
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15634 $as_echo_n "checking
for objdir...
" >&6; }
15635 if ${lt_cv_objdir+:} false; then :
15636 $as_echo_n "(cached
) " >&6
15638 rm -f .libs 2>/dev/null
15639 mkdir .libs 2>/dev/null
15640 if test -d .libs; then
15643 # MS-DOS does not allow filenames that begin with a dot.
15646 rmdir .libs 2>/dev/null
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15649 $as_echo "$lt_cv_objdir" >&6; }
15650 objdir=$lt_cv_objdir
15656 cat >>confdefs.h <<_ACEOF
15657 #define LT_OBJDIR "$lt_cv_objdir/"
15665 # AIX sometimes has problems with the GCC collect2 program. For some
15666 # reason, if we set the COLLECT_NAMES environment variable, the problems
15667 # vanish in a puff of smoke.
15668 if test "X
${COLLECT_NAMES+set}" != Xset; then
15670 export COLLECT_NAMES
15675 # Global variables:
15677 can_build_shared=yes
15679 # All known linkers require a `.a' archive for static linking (except MSVC,
15680 # which needs '.lib').
15683 with_gnu_ld="$lt_cv_prog_gnu_ld"
15686 old_CFLAGS="$CFLAGS"
15688 # Set sane defaults for various variables
15689 test -z "$CC" && CC=cc
15690 test -z "$LTCC" && LTCC=$CC
15691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15692 test -z "$LD" && LD=ld
15693 test -z "$ac_objext" && ac_objext=o
15695 for cc_temp in $compiler""; do
15697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15703 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15706 # Only perform the check for file, if the check method requires it
15707 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15708 case $deplibs_check_method in
15710 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15712 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15713 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15714 $as_echo_n "(cached
) " >&6
15718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15721 lt_save_MAGIC_CMD="$MAGIC_CMD"
15722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15723 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15724 for ac_dir in $ac_dummy; do
15726 test -z "$ac_dir" && ac_dir=.
15727 if test -f $ac_dir/${ac_tool_prefix}file; then
15728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15729 if test -n "$file_magic_test_file"; then
15730 case $deplibs_check_method in
15732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15735 $EGREP "$file_magic_regex" > /dev/null; then
15740 *** Warning: the command libtool uses to detect shared libraries,
15741 *** $file_magic_cmd, produces output that libtool cannot recognize.
15742 *** The result is that libtool may fail to recognize shared libraries
15743 *** as such. This will affect the creation of libtool libraries that
15744 *** depend on shared libraries, but programs linked with such libtool
15745 *** libraries will work regardless of this problem. Nevertheless, you
15746 *** may want to report the problem to your system manager and/or to
15747 *** bug-libtool@gnu.org
15757 MAGIC_CMD="$lt_save_MAGIC_CMD"
15762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15763 if test -n "$MAGIC_CMD"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15765 $as_echo "$MAGIC_CMD" >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15768 $as_echo "no
" >&6; }
15775 if test -z "$lt_cv_path_MAGIC_CMD"; then
15776 if test -n "$ac_tool_prefix"; then
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15778 $as_echo_n "checking
for file...
" >&6; }
15779 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15780 $as_echo_n "(cached
) " >&6
15784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15787 lt_save_MAGIC_CMD="$MAGIC_CMD"
15788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15789 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15790 for ac_dir in $ac_dummy; do
15792 test -z "$ac_dir" && ac_dir=.
15793 if test -f $ac_dir/file; then
15794 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15795 if test -n "$file_magic_test_file"; then
15796 case $deplibs_check_method in
15798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15801 $EGREP "$file_magic_regex" > /dev/null; then
15806 *** Warning: the command libtool uses to detect shared libraries,
15807 *** $file_magic_cmd, produces output that libtool cannot recognize.
15808 *** The result is that libtool may fail to recognize shared libraries
15809 *** as such. This will affect the creation of libtool libraries that
15810 *** depend on shared libraries, but programs linked with such libtool
15811 *** libraries will work regardless of this problem. Nevertheless, you
15812 *** may want to report the problem to your system manager and/or to
15813 *** bug-libtool@gnu.org
15823 MAGIC_CMD="$lt_save_MAGIC_CMD"
15828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15829 if test -n "$MAGIC_CMD"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15831 $as_echo "$MAGIC_CMD" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15834 $as_echo "no
" >&6; }
15847 # Use C for the default configuration in the libtool script
15851 ac_cpp='$CPP $CPPFLAGS'
15852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15857 # Source file extension for C test sources.
15860 # Object file extension for compiled C test sources.
15864 # Code to be used in simple compile tests
15865 lt_simple_compile_test_code="int some_variable
= 0;"
15867 # Code to be used in simple link tests
15868 lt_simple_link_test_code='int main(){return(0);}'
15876 # If no C compiler was specified, use CC.
15879 # If no C compiler flags were specified, use CFLAGS.
15880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15882 # Allow CC to be a program name with arguments.
15885 # Save the default compiler, since it gets overwritten when the other
15886 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15887 compiler_DEFAULT=$CC
15889 # save warnings/boilerplate of simple test code
15890 ac_outfile=conftest.$ac_objext
15891 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15893 _lt_compiler_boilerplate=`cat conftest.err`
15896 ac_outfile=conftest.$ac_objext
15897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15899 _lt_linker_boilerplate=`cat conftest.err`
15904 ## There is no encapsulation within the following macros, do not change
15905 ## the running order or otherwise move them around unless you know exactly
15906 ## what you are doing...
15907 if test -n "$compiler"; then
15909 lt_prog_compiler_no_builtin_flag=
15911 if test "$GCC" = yes; then
15912 case $cc_basename in
15914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15920 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15921 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15922 $as_echo_n "(cached
) " >&6
15924 lt_cv_prog_compiler_rtti_exceptions=no
15925 ac_outfile=conftest.$ac_objext
15926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15927 lt_compiler_flag="-fno-rtti -fno-exceptions"
15928 # Insert the option either (1) after the last *FLAGS variable, or
15929 # (2) before a word containing "conftest.
", or (3) at the end.
15930 # Note that $ac_compile itself does not contain backslashes and begins
15931 # with a dollar sign (not a hyphen), so the echo should work correctly.
15932 # The option is referenced via a variable to avoid confusing sed.
15933 lt_compile=`echo "$ac_compile" | $SED \
15934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15936 -e 's:$: $lt_compiler_flag:'`
15937 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15938 (eval "$lt_compile" 2>conftest.err)
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15942 if (exit $ac_status) && test -s "$ac_outfile"; then
15943 # The compiler can only warn and ignore the option if not recognized
15944 # So say no if there are warnings other than the usual output.
15945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15948 lt_cv_prog_compiler_rtti_exceptions=yes
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15955 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15957 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15958 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15970 lt_prog_compiler_wl=
15971 lt_prog_compiler_pic=
15972 lt_prog_compiler_static=
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15975 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15977 if test "$GCC" = yes; then
15978 lt_prog_compiler_wl='-Wl,'
15979 lt_prog_compiler_static='-static'
15983 # All AIX code is PIC.
15984 if test "$host_cpu" = ia64; then
15985 # AIX 5 now supports IA64 processor
15986 lt_prog_compiler_static='-Bstatic'
15988 lt_prog_compiler_pic='-fPIC'
15994 # see comment about AmigaOS4 .so support
15995 lt_prog_compiler_pic='-fPIC'
15998 # FIXME: we need at least 68020 code to build shared libraries, but
15999 # adding the `-m68020' flag to GCC prevents building anything better,
16001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16006 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16007 # PIC is the default for these OSes.
16010 mingw* | cygwin* | pw32* | os2* | cegcc*)
16011 # This hack is so that the source file can tell whether it is being
16012 # built for inclusion in a dll (and should export symbols for example).
16013 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16014 # (--disable-auto-import) libraries
16015 lt_prog_compiler_pic='-DDLL_EXPORT'
16018 darwin* | rhapsody*)
16019 # PIC is the default on this platform
16020 # Common symbols not allowed in MH_DYLIB files
16021 lt_prog_compiler_pic='-fno-common'
16025 # PIC is the default for Haiku.
16026 # The "-static" flag exists, but is broken.
16027 lt_prog_compiler_static=
16031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16033 # sets the default TLS model and affects inlining.
16039 lt_prog_compiler_pic='-fPIC'
16045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16046 # Instead, we relocate shared libraries at runtime.
16050 # Just because we use GCC doesn't mean we suddenly get shared libraries
16051 # on systems that don't support them.
16052 lt_prog_compiler_can_build_shared=no
16057 # QNX uses GNU C++, but need to define -shared option too, otherwise
16058 # it will coredump.
16059 lt_prog_compiler_pic='-fPIC -shared'
16063 if test -d /usr/nec; then
16064 lt_prog_compiler_pic=-Kconform_pic
16069 lt_prog_compiler_pic='-fPIC'
16073 case $cc_basename in
16074 nvcc*) # Cuda Compiler Driver 2.2
16075 lt_prog_compiler_wl='-Xlinker '
16076 lt_prog_compiler_pic='-Xcompiler -fPIC'
16080 # PORTME Check for flag to pass linker flags through the system compiler.
16083 lt_prog_compiler_wl='-Wl,'
16084 if test "$host_cpu" = ia64; then
16085 # AIX 5 now supports IA64 processor
16086 lt_prog_compiler_static='-Bstatic'
16088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16092 mingw* | cygwin* | pw32* | os2* | cegcc*)
16093 # This hack is so that the source file can tell whether it is being
16094 # built for inclusion in a dll (and should export symbols for example).
16095 lt_prog_compiler_pic='-DDLL_EXPORT'
16098 hpux9* | hpux10* | hpux11*)
16099 lt_prog_compiler_wl='-Wl,'
16100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16101 # not for PA HP-UX.
16107 lt_prog_compiler_pic='+Z'
16110 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16111 lt_prog_compiler_static='${wl}-a ${wl}archive'
16114 irix5* | irix6* | nonstopux*)
16115 lt_prog_compiler_wl='-Wl,'
16116 # PIC (with -KPIC) is the default.
16117 lt_prog_compiler_static='-non_shared'
16120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16121 case $cc_basename in
16122 # old Intel for x86_64 which still supported -KPIC.
16124 lt_prog_compiler_wl='-Wl,'
16125 lt_prog_compiler_pic='-KPIC'
16126 lt_prog_compiler_static='-static'
16128 # icc used to be incompatible with GCC.
16129 # ICC 10 doesn't accept -KPIC any more.
16131 lt_prog_compiler_wl='-Wl,'
16132 lt_prog_compiler_pic='-fPIC'
16133 lt_prog_compiler_static='-static'
16135 # Lahey Fortran 8.1.
16137 lt_prog_compiler_wl='-Wl,'
16138 lt_prog_compiler_pic='--shared'
16139 lt_prog_compiler_static='--static'
16141 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16142 # Portland Group compilers (*not* the Pentium gcc compiler,
16143 # which looks to be a dead project)
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-fpic'
16146 lt_prog_compiler_static='-Bstatic'
16149 lt_prog_compiler_wl='-Wl,'
16150 # All Alpha code is PIC.
16151 lt_prog_compiler_static='-non_shared'
16153 xl* | bgxl* | bgf* | mpixl*)
16154 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16155 lt_prog_compiler_wl='-Wl,'
16156 lt_prog_compiler_pic='-qpic'
16157 lt_prog_compiler_static='-qstaticlink'
16160 case `$CC -V 2>&1 | sed 5q` in
16161 *Sun\ F* | *Sun*Fortran*)
16162 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16163 lt_prog_compiler_pic='-KPIC'
16164 lt_prog_compiler_static='-Bstatic'
16165 lt_prog_compiler_wl=''
16169 lt_prog_compiler_pic='-KPIC'
16170 lt_prog_compiler_static='-Bstatic'
16171 lt_prog_compiler_wl='-Wl,'
16179 lt_prog_compiler_pic='-KPIC'
16180 lt_prog_compiler_static='-Bstatic'
16184 # QNX uses GNU C++, but need to define -shared option too, otherwise
16185 # it will coredump.
16186 lt_prog_compiler_pic='-fPIC -shared'
16189 osf3* | osf4* | osf5*)
16190 lt_prog_compiler_wl='-Wl,'
16191 # All OSF/1 code is PIC.
16192 lt_prog_compiler_static='-non_shared'
16196 lt_prog_compiler_static='-non_shared'
16200 lt_prog_compiler_pic='-KPIC'
16201 lt_prog_compiler_static='-Bstatic'
16202 case $cc_basename in
16203 f77* | f90* | f95*)
16204 lt_prog_compiler_wl='-Qoption ld ';;
16206 lt_prog_compiler_wl='-Wl,';;
16211 lt_prog_compiler_wl='-Qoption ld '
16212 lt_prog_compiler_pic='-PIC'
16213 lt_prog_compiler_static='-Bstatic'
16216 sysv4 | sysv4.2uw2* | sysv4.3*)
16217 lt_prog_compiler_wl='-Wl,'
16218 lt_prog_compiler_pic='-KPIC'
16219 lt_prog_compiler_static='-Bstatic'
16223 if test -d /usr/nec ;then
16224 lt_prog_compiler_pic='-Kconform_pic'
16225 lt_prog_compiler_static='-Bstatic'
16229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16230 lt_prog_compiler_wl='-Wl,'
16231 lt_prog_compiler_pic='-KPIC'
16232 lt_prog_compiler_static='-Bstatic'
16236 lt_prog_compiler_wl='-Wl,'
16237 lt_prog_compiler_can_build_shared=no
16241 lt_prog_compiler_pic='-pic'
16242 lt_prog_compiler_static='-Bstatic'
16246 lt_prog_compiler_can_build_shared=no
16252 # For platforms which do not support PIC, -DPIC is meaningless:
16254 lt_prog_compiler_pic=
16257 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16261 $as_echo "$lt_prog_compiler_pic" >&6; }
16269 # Check to make sure the PIC flag actually works.
16271 if test -n "$lt_prog_compiler_pic"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16273 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16274 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16275 $as_echo_n "(cached
) " >&6
16277 lt_cv_prog_compiler_pic_works=no
16278 ac_outfile=conftest.$ac_objext
16279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16280 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16281 # Insert the option either (1) after the last *FLAGS variable, or
16282 # (2) before a word containing "conftest.
", or (3) at the end.
16283 # Note that $ac_compile itself does not contain backslashes and begins
16284 # with a dollar sign (not a hyphen), so the echo should work correctly.
16285 # The option is referenced via a variable to avoid confusing sed.
16286 lt_compile=`echo "$ac_compile" | $SED \
16287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16289 -e 's:$: $lt_compiler_flag:'`
16290 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16291 (eval "$lt_compile" 2>conftest.err)
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16295 if (exit $ac_status) && test -s "$ac_outfile"; then
16296 # The compiler can only warn and ignore the option if not recognized
16297 # So say no if there are warnings other than the usual output.
16298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16301 lt_cv_prog_compiler_pic_works=yes
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16308 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16310 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16311 case $lt_prog_compiler_pic in
16313 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16316 lt_prog_compiler_pic=
16317 lt_prog_compiler_can_build_shared=no
16328 # Check to make sure the static flag actually works.
16330 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16332 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16333 if ${lt_cv_prog_compiler_static_works+:} false; then :
16334 $as_echo_n "(cached
) " >&6
16336 lt_cv_prog_compiler_static_works=no
16337 save_LDFLAGS="$LDFLAGS"
16338 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16341 # The linker can only warn and ignore the option if not recognized
16342 # So say no if there are warnings
16343 if test -s conftest.err; then
16344 # Append any errors to the config.log.
16345 cat conftest.err 1>&5
16346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16348 if diff conftest.exp conftest.er2 >/dev/null; then
16349 lt_cv_prog_compiler_static_works=yes
16352 lt_cv_prog_compiler_static_works=yes
16356 LDFLAGS="$save_LDFLAGS"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16360 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16362 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16365 lt_prog_compiler_static=
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16375 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16376 if ${lt_cv_prog_compiler_c_o+:} false; then :
16377 $as_echo_n "(cached
) " >&6
16379 lt_cv_prog_compiler_c_o=no
16380 $RM -r conftest 2>/dev/null
16384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16386 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16387 # Insert the option either (1) after the last *FLAGS variable, or
16388 # (2) before a word containing "conftest.
", or (3) at the end.
16389 # Note that $ac_compile itself does not contain backslashes and begins
16390 # with a dollar sign (not a hyphen), so the echo should work correctly.
16391 lt_compile=`echo "$ac_compile" | $SED \
16392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16394 -e 's:$: $lt_compiler_flag:'`
16395 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16396 (eval "$lt_compile" 2>out/conftest.err)
16398 cat out/conftest.err >&5
16399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16402 # The compiler can only warn and ignore the option if not recognized
16403 # So say no if there are warnings
16404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16407 lt_cv_prog_compiler_c_o=yes
16412 # SGI C++ compiler will create directory out/ii_files/ for
16413 # template instantiation
16414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16415 $RM out/* && rmdir out
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16422 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16430 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16431 if ${lt_cv_prog_compiler_c_o+:} false; then :
16432 $as_echo_n "(cached
) " >&6
16434 lt_cv_prog_compiler_c_o=no
16435 $RM -r conftest 2>/dev/null
16439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16441 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16442 # Insert the option either (1) after the last *FLAGS variable, or
16443 # (2) before a word containing "conftest.
", or (3) at the end.
16444 # Note that $ac_compile itself does not contain backslashes and begins
16445 # with a dollar sign (not a hyphen), so the echo should work correctly.
16446 lt_compile=`echo "$ac_compile" | $SED \
16447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16449 -e 's:$: $lt_compiler_flag:'`
16450 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16451 (eval "$lt_compile" 2>out/conftest.err)
16453 cat out/conftest.err >&5
16454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16457 # The compiler can only warn and ignore the option if not recognized
16458 # So say no if there are warnings
16459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16462 lt_cv_prog_compiler_c_o=yes
16467 # SGI C++ compiler will create directory out/ii_files/ for
16468 # template instantiation
16469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16470 $RM out/* && rmdir out
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16482 hard_links="nottested
"
16483 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16484 # do not overwrite the value of need_locks provided by the user
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16486 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16491 ln conftest.a conftest.b 2>&5 || hard_links=no
16492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16494 $as_echo "$hard_links" >&6; }
16495 if test "$hard_links" = no; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16497 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16510 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16513 allow_undefined_flag=
16514 always_export_symbols=no
16516 archive_expsym_cmds=
16517 compiler_needs_object=no
16518 enable_shared_with_static_runtimes=no
16519 export_dynamic_flag_spec=
16520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16521 hardcode_automatic=no
16523 hardcode_direct_absolute=no
16524 hardcode_libdir_flag_spec=
16525 hardcode_libdir_flag_spec_ld=
16526 hardcode_libdir_separator=
16527 hardcode_minus_L=no
16528 hardcode_shlibpath_var=unsupported
16530 link_all_deplibs=unknown
16532 module_expsym_cmds=
16533 old_archive_from_new_cmds=
16534 old_archive_from_expsyms_cmds=
16535 thread_safe_flag_spec=
16536 whole_archive_flag_spec=
16537 # include_expsyms should be a list of space-separated symbols to be *always*
16538 # included in the symbol list
16540 # exclude_expsyms can be an extended regexp of symbols to exclude
16541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16543 # as well as any symbol that contains `d'.
16544 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16546 # platforms (ab)use it in PIC code, but their linkers get confused if
16547 # the symbol is explicitly referenced. Since portable code cannot
16548 # rely on this symbol name, it's probably fine to never include it in
16549 # preloaded symbol tables.
16550 # Exclude shared library initialization/finalization symbols.
16551 extract_expsyms_cmds=
16554 cygwin* | mingw* | pw32* | cegcc*)
16555 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16556 # When not using gcc, we currently assume that we are using
16557 # Microsoft Visual C++.
16558 if test "$GCC" != yes; then
16563 # we just hope/assume this is gcc and not c89 (= MSVC++)
16573 # On some targets, GNU ld is compatible enough with the native linker
16574 # that we're better off using the native interface for both.
16575 lt_use_gnu_ld_interface=no
16576 if test "$with_gnu_ld" = yes; then
16579 # The AIX port of GNU ld has always aspired to compatibility
16580 # with the native linker. However, as the warning in the GNU ld
16581 # block says, versions before 2.19.5* couldn't really create working
16582 # shared libraries, regardless of the interface used.
16583 case `$LD -v 2>&1` in
16584 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16585 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16586 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16588 lt_use_gnu_ld_interface=yes
16593 lt_use_gnu_ld_interface=yes
16598 if test "$lt_use_gnu_ld_interface" = yes; then
16599 # If archive_cmds runs LD, not CC, wlarc should be empty
16602 # Set some defaults for GNU ld with shared library support. These
16603 # are reset later if shared libraries are not supported. Putting them
16604 # here allows them to be overridden if necessary.
16605 runpath_var=LD_RUN_PATH
16606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16607 export_dynamic_flag_spec='${wl}--export-dynamic'
16608 # ancient GNU ld didn't support --whole-archive et. al.
16609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16610 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16612 whole_archive_flag_spec=
16614 supports_anon_versioning=no
16615 case `$LD -v 2>&1` in
16616 *GNU\ gold*) supports_anon_versioning=yes ;;
16617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16620 *\ 2.11.*) ;; # other 2.11 versions
16621 *) supports_anon_versioning=yes ;;
16624 # See if GNU ld supports shared libraries.
16627 # On AIX/PPC, the GNU linker is very broken
16628 if test "$host_cpu" != ia64; then
16632 *** Warning: the GNU linker, at least up to release 2.19, is reported
16633 *** to be unable to reliably create shared libraries on AIX.
16634 *** Therefore, libtool is disabling shared libraries support. If you
16635 *** really care for shared libraries, you may want to install binutils
16636 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16637 *** You will then need to restart the configuration process.
16646 # see comment about AmigaOS4 .so support
16647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16648 archive_expsym_cmds=''
16651 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)'
16652 hardcode_libdir_flag_spec
='-L$libdir'
16653 hardcode_minus_L
=yes
16659 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16660 allow_undefined_flag
=unsupported
16661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16662 # support --undefined. This deserves some investigation. FIXME
16663 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16669 cygwin
* | mingw
* | pw32
* | cegcc
*)
16670 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16671 # as there is no search path for DLLs.
16672 hardcode_libdir_flag_spec
='-L$libdir'
16673 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16674 allow_undefined_flag
=unsupported
16675 always_export_symbols
=no
16676 enable_shared_with_static_runtimes
=yes
16677 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16679 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16680 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16681 # If the export-symbols file already is a .def file (1st line
16682 # is EXPORTS), use it as is; otherwise, prepend...
16683 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16684 cp $export_symbols $output_objdir/$soname.def;
16686 echo EXPORTS > $output_objdir/$soname.def;
16687 cat $export_symbols >> $output_objdir/$soname.def;
16689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16696 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16697 link_all_deplibs
=yes
16702 hardcode_shlibpath_var
=no
16703 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16704 export_dynamic_flag_spec
='${wl}-E'
16705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16706 # Instead, shared libraries are loaded at an image base (0x10000000 by
16707 # default) and relocated if they conflict, which is a slow very memory
16708 # consuming and fragmenting process. To avoid this, we pick a random,
16709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16711 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16712 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'
16715 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16717 if test "$host_os" = linux-dietlibc
; then
16718 case $cc_basename in
16719 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16722 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16723 && test "$tmp_diet" = no
16725 tmp_addflag
=' $pic_flag'
16726 tmp_sharedflag
='-shared'
16727 case $cc_basename,$host_cpu in
16728 pgcc
*) # Portland Group C compiler
16729 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'
16730 tmp_addflag
=' $pic_flag'
16732 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16733 # Portland Group f77 and f90 compilers
16734 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'
16735 tmp_addflag
=' $pic_flag -Mnomain' ;;
16736 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16737 tmp_addflag
=' -i_dynamic' ;;
16738 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16739 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16740 ifc
* | ifort
*) # Intel Fortran compiler
16741 tmp_addflag
=' -nofor_main' ;;
16742 lf95
*) # Lahey Fortran 8.1
16743 whole_archive_flag_spec
=
16744 tmp_sharedflag
='--shared' ;;
16745 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16746 tmp_sharedflag
='-qmkshrobj'
16748 nvcc
*) # Cuda Compiler Driver 2.2
16749 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'
16750 compiler_needs_object
=yes
16753 case `$CC -V 2>&1 | sed 5q` in
16754 *Sun\ C
*) # Sun C 5.9
16755 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'
16756 compiler_needs_object
=yes
16757 tmp_sharedflag
='-G' ;;
16758 *Sun\ F
*) # Sun Fortran 8.3
16759 tmp_sharedflag
='-G' ;;
16761 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16763 if test "x$supports_anon_versioning" = xyes
; then
16764 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16766 echo "local: *; };" >> $output_objdir/$libname.ver~
16767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16770 case $cc_basename in
16771 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16773 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16774 hardcode_libdir_flag_spec
=
16775 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16776 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16777 if test "x$supports_anon_versioning" = xyes
; then
16778 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16780 echo "local: *; };" >> $output_objdir/$libname.ver~
16781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16791 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16792 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16795 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16796 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16801 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16806 *** create shared libraries on Solaris systems. Therefore, libtool
16807 *** is disabling shared libraries support. We urge you to upgrade GNU
16808 *** binutils to release 2.9.1 or newer. Another option is to modify
16809 *** your PATH or compiler configuration so that the native linker is
16810 *** used, and then restart.
16813 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16814 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16821 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16822 case `$LD -v 2>&1` in
16823 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16828 *** reliably create shared libraries on SCO systems. Therefore, libtool
16829 *** is disabling shared libraries support. We urge you to upgrade GNU
16830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16831 *** your PATH or compiler configuration so that the native linker is
16832 *** used, and then restart.
16837 # For security reasons, it is highly recommended that you always
16838 # use absolute paths for naming shared libraries, and exclude the
16839 # DT_RUNPATH tag from executables and libraries. But doing so
16840 # requires that you compile everything twice, which is a pain.
16841 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16842 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16843 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_direct
=yes
16856 hardcode_shlibpath_var
=no
16860 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16861 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16869 if test "$ld_shlibs" = no
; then
16871 hardcode_libdir_flag_spec
=
16872 export_dynamic_flag_spec
=
16873 whole_archive_flag_spec
=
16876 # PORTME fill in a description of your system's linker (not GNU ld)
16879 allow_undefined_flag
=unsupported
16880 always_export_symbols
=yes
16881 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'
16882 # Note: this linker hardcodes the directories in LIBPATH if there
16883 # are no directories specified by -L.
16884 hardcode_minus_L
=yes
16885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16886 # Neither direct hardcoding nor static linking is supported with a
16888 hardcode_direct
=unsupported
16893 if test "$host_cpu" = ia64
; then
16894 # On IA64, the linker does run time linking by default, so we don't
16895 # have to do anything special.
16896 aix_use_runtimelinking
=no
16897 exp_sym_flag
='-Bexport'
16900 # If we're using GNU nm, then we don't want the "-C" option.
16901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16902 # Also, AIX nm treats weak defined symbols like other global
16903 # defined symbols, whereas GNU nm marks them as "W".
16904 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16905 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'
16907 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'
16909 aix_use_runtimelinking
=no
16911 # Test if we are trying to use run time linking or normal
16912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16913 # need to do runtime linking.
16914 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16915 for ld_flag
in $LDFLAGS; do
16916 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16917 aix_use_runtimelinking
=yes
16924 exp_sym_flag
='-bexport'
16925 no_entry_flag
='-bnoentry'
16928 # When large executables or shared objects are built, AIX ld can
16929 # have problems creating the table of contents. If linking a library
16930 # or program results in "error TOC overflow" add -mminimal-toc to
16931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16935 hardcode_direct
=yes
16936 hardcode_direct_absolute
=yes
16937 hardcode_libdir_separator
=':'
16938 link_all_deplibs
=yes
16939 file_list_spec
='${wl}-f,'
16941 if test "$GCC" = yes; then
16942 case $host_os in aix4.
[012]|aix4.
[012].
*)
16943 # We only want to do this on AIX 4.2 and lower, the check
16944 # below for broken collect2 doesn't work under 4.3+
16945 collect2name
=`${CC} -print-prog-name=collect2`
16946 if test -f "$collect2name" &&
16947 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16949 # We have reworked collect2
16952 # We have old collect2
16953 hardcode_direct
=unsupported
16954 # It fails to find uninstalled libraries when the uninstalled
16955 # path is not listed in the libpath. Setting hardcode_minus_L
16956 # to unsupported forces relinking
16957 hardcode_minus_L
=yes
16958 hardcode_libdir_flag_spec
='-L$libdir'
16959 hardcode_libdir_separator
=
16963 shared_flag
='-shared'
16964 if test "$aix_use_runtimelinking" = yes; then
16965 shared_flag
="$shared_flag "'${wl}-G'
16969 if test "$host_cpu" = ia64
; then
16970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16971 # chokes on -Wl,-G. The following line is correct:
16974 if test "$aix_use_runtimelinking" = yes; then
16975 shared_flag
='${wl}-G'
16977 shared_flag
='${wl}-bM:SRE'
16982 export_dynamic_flag_spec
='${wl}-bexpall'
16983 # It seems that -bexpall does not export symbols beginning with
16984 # underscore (_), so it is better to generate a list of symbols to export.
16985 always_export_symbols
=yes
16986 if test "$aix_use_runtimelinking" = yes; then
16987 # Warning - without using the other runtime loading flags (-brtl),
16988 # -berok will link without error, but may produce a broken library.
16989 allow_undefined_flag
='-berok'
16990 # Determine the default libpath from the value encoded in an
16991 # empty executable.
16992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
17003 if ac_fn_c_try_link
"$LINENO"; then :
17005 lt_aix_libpath_sed
='
17006 /Import File Strings/,/^$/ {
17012 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17013 # Check for a 64-bit object if we didn't find anything.
17014 if test -z "$aix_libpath"; then
17015 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17018 rm -f core conftest.err conftest.
$ac_objext \
17019 conftest
$ac_exeext conftest.
$ac_ext
17020 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17022 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17023 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"
17025 if test "$host_cpu" = ia64
; then
17026 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17027 allow_undefined_flag
="-z nodefs"
17028 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"
17030 # Determine the default libpath from the value encoded in an
17031 # empty executable.
17032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17043 if ac_fn_c_try_link
"$LINENO"; then :
17045 lt_aix_libpath_sed
='
17046 /Import File Strings/,/^$/ {
17052 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17053 # Check for a 64-bit object if we didn't find anything.
17054 if test -z "$aix_libpath"; then
17055 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17058 rm -f core conftest.err conftest.
$ac_objext \
17059 conftest
$ac_exeext conftest.
$ac_ext
17060 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17062 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17063 # Warning - without using the other run time loading flags,
17064 # -berok will link without error, but may produce a broken library.
17065 no_undefined_flag
=' ${wl}-bernotok'
17066 allow_undefined_flag
=' ${wl}-berok'
17067 if test "$with_gnu_ld" = yes; then
17068 # We only use this code for GNU lds that support --whole-archive.
17069 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17071 # Exported symbols can be pulled into shared objects from archives
17072 whole_archive_flag_spec
='$convenience'
17074 archive_cmds_need_lc
=yes
17075 # This is similar to how AIX traditionally builds its shared libraries.
17076 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'
17084 # see comment about AmigaOS4 .so support
17085 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086 archive_expsym_cmds
=''
17089 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)'
17090 hardcode_libdir_flag_spec
='-L$libdir'
17091 hardcode_minus_L
=yes
17097 export_dynamic_flag_spec
=-rdynamic
17100 cygwin
* | mingw
* | pw32
* | cegcc
*)
17101 # When not using gcc, we currently assume that we are using
17102 # Microsoft Visual C++.
17103 # hardcode_libdir_flag_spec is actually meaningless, as there is
17104 # no search path for DLLs.
17105 hardcode_libdir_flag_spec
=' '
17106 allow_undefined_flag
=unsupported
17107 # Tell ltmain to make .lib files, not .a files.
17109 # Tell ltmain to make .dll files, not .so files.
17111 # FIXME: Setting linknames here is a bad hack.
17112 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17113 # The linker will automatically build a .lib file if we build a DLL.
17114 old_archive_from_new_cmds
='true'
17115 # FIXME: Should let the user specify the lib program.
17116 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17117 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17118 enable_shared_with_static_runtimes
=yes
17121 darwin
* | rhapsody
*)
17124 archive_cmds_need_lc
=no
17126 hardcode_automatic
=yes
17127 hardcode_shlibpath_var
=unsupported
17128 if test "$lt_cv_ld_force_load" = "yes"; then
17129 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\"`'
17131 whole_archive_flag_spec
=''
17133 link_all_deplibs
=yes
17134 allow_undefined_flag
="$_lt_dar_allow_undefined"
17135 case $cc_basename in
17136 ifort
*) _lt_dar_can_shared
=yes ;;
17137 *) _lt_dar_can_shared
=$GCC ;;
17139 if test "$_lt_dar_can_shared" = "yes"; then
17140 output_verbose_link_cmd
=func_echo_all
17141 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17142 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17143 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}"
17144 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}"
17153 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_libdir_flag_spec
='-L$libdir'
17155 hardcode_shlibpath_var
=no
17158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17159 # support. Future versions do this automatically, but an explicit c++rt0.o
17160 # does not break anything, and helps significantly (at the cost of a little
17163 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17164 hardcode_libdir_flag_spec
='-R$libdir'
17165 hardcode_direct
=yes
17166 hardcode_shlibpath_var
=no
17169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17171 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17172 hardcode_direct
=yes
17173 hardcode_minus_L
=yes
17174 hardcode_shlibpath_var
=no
17177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17178 freebsd
* | dragonfly
*)
17179 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17180 hardcode_libdir_flag_spec
='-R$libdir'
17181 hardcode_direct
=yes
17182 hardcode_shlibpath_var
=no
17186 if test "$GCC" = yes; then
17187 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'
17189 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'
17191 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17192 hardcode_libdir_separator
=:
17193 hardcode_direct
=yes
17195 # hardcode_minus_L: Not really in the search PATH,
17196 # but as the default location of the library.
17197 hardcode_minus_L
=yes
17198 export_dynamic_flag_spec
='${wl}-E'
17202 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17203 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17205 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17207 if test "$with_gnu_ld" = no
; then
17208 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17209 hardcode_libdir_flag_spec_ld
='+b $libdir'
17210 hardcode_libdir_separator
=:
17211 hardcode_direct
=yes
17212 hardcode_direct_absolute
=yes
17213 export_dynamic_flag_spec
='${wl}-E'
17214 # hardcode_minus_L: Not really in the search PATH,
17215 # but as the default location of the library.
17216 hardcode_minus_L
=yes
17221 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17224 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17230 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17236 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17239 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17243 # Older versions of the 11.00 compiler do not understand -b yet
17244 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17246 $as_echo_n "checking if $CC understands -b... " >&6; }
17247 if ${lt_cv_prog_compiler__b+:} false
; then :
17248 $as_echo_n "(cached) " >&6
17250 lt_cv_prog_compiler__b
=no
17251 save_LDFLAGS
="$LDFLAGS"
17252 LDFLAGS
="$LDFLAGS -b"
17253 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17254 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17255 # The linker can only warn and ignore the option if not recognized
17256 # So say no if there are warnings
17257 if test -s conftest.err
; then
17258 # Append any errors to the config.log.
17259 cat conftest.err
1>&5
17260 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17261 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17262 if diff conftest.exp conftest.er2
>/dev
/null
; then
17263 lt_cv_prog_compiler__b
=yes
17266 lt_cv_prog_compiler__b
=yes
17270 LDFLAGS
="$save_LDFLAGS"
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17274 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17276 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17277 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17285 if test "$with_gnu_ld" = no
; then
17286 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17287 hardcode_libdir_separator
=:
17292 hardcode_shlibpath_var
=no
17295 hardcode_direct
=yes
17296 hardcode_direct_absolute
=yes
17297 export_dynamic_flag_spec
='${wl}-E'
17299 # hardcode_minus_L: Not really in the search PATH,
17300 # but as the default location of the library.
17301 hardcode_minus_L
=yes
17307 irix5
* | irix6
* | nonstopux
*)
17308 if test "$GCC" = yes; then
17309 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'
17310 # Try to use the -exported_symbol ld option, if it does not
17311 # work, assume that -exports_file does not work either and
17312 # implicitly export all symbols.
17313 save_LDFLAGS
="$LDFLAGS"
17314 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17319 if ac_fn_c_try_link
"$LINENO"; then :
17320 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'
17323 rm -f core conftest.err conftest.
$ac_objext \
17324 conftest
$ac_exeext conftest.
$ac_ext
17325 LDFLAGS
="$save_LDFLAGS"
17327 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'
17328 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'
17330 archive_cmds_need_lc
='no'
17331 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17332 hardcode_libdir_separator
=:
17334 link_all_deplibs
=yes
17338 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17339 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17341 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17343 hardcode_libdir_flag_spec
='-R$libdir'
17344 hardcode_direct
=yes
17345 hardcode_shlibpath_var
=no
17349 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17350 hardcode_direct
=yes
17351 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator
=:
17353 hardcode_shlibpath_var
=no
17360 if test -f /usr
/libexec
/ld.so
; then
17361 hardcode_direct
=yes
17362 hardcode_shlibpath_var
=no
17363 hardcode_direct_absolute
=yes
17364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17365 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17366 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17367 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17368 export_dynamic_flag_spec
='${wl}-E'
17371 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17372 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_libdir_flag_spec
='-R$libdir'
17376 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17377 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17387 hardcode_libdir_flag_spec
='-L$libdir'
17388 hardcode_minus_L
=yes
17389 allow_undefined_flag
=unsupported
17390 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'
17391 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17395 if test "$GCC" = yes; then
17396 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17397 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'
17399 allow_undefined_flag
=' -expect_unresolved \*'
17400 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'
17402 archive_cmds_need_lc
='no'
17403 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17404 hardcode_libdir_separator
=:
17407 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17408 if test "$GCC" = yes; then
17409 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17410 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'
17411 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17413 allow_undefined_flag
=' -expect_unresolved \*'
17414 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'
17415 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~
17416 $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'
17418 # Both c and cxx compiler support -rpath directly
17419 hardcode_libdir_flag_spec
='-rpath $libdir'
17421 archive_cmds_need_lc
='no'
17422 hardcode_libdir_separator
=:
17426 no_undefined_flag
=' -z defs'
17427 if test "$GCC" = yes; then
17429 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17431 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17433 case `$CC -V 2>&1` in
17436 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17437 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17442 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17444 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17448 hardcode_libdir_flag_spec
='-R$libdir'
17449 hardcode_shlibpath_var
=no
17451 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17453 # The compiler driver will combine and reorder linker options,
17454 # but understands `-z linker_flag'. GCC discards it without `$wl',
17455 # but is careful enough not to reorder.
17456 # Supported since Solaris 2.6 (maybe 2.5.1?)
17457 if test "$GCC" = yes; then
17458 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17460 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17464 link_all_deplibs
=yes
17468 if test "x$host_vendor" = xsequent
; then
17469 # Use $CC to link under sequent, because it throws in some extra .o
17470 # files that make .init and .fini sections work.
17471 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17475 hardcode_libdir_flag_spec
='-L$libdir'
17476 hardcode_direct
=yes
17477 hardcode_minus_L
=yes
17478 hardcode_shlibpath_var
=no
17482 case $host_vendor in
17484 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17485 hardcode_direct
=yes # is this really true???
17488 ## LD is ld it makes a PLAMLIB
17489 ## CC just makes a GrossModule.
17490 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17491 reload_cmds
='$CC -r -o $output$reload_objs'
17495 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17499 runpath_var
='LD_RUN_PATH'
17500 hardcode_shlibpath_var
=no
17504 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_shlibpath_var
=no
17506 export_dynamic_flag_spec
='-Bexport'
17510 if test -d /usr
/nec
; then
17511 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_shlibpath_var
=no
17513 runpath_var
=LD_RUN_PATH
17514 hardcode_runpath_var
=yes
17519 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17520 no_undefined_flag
='${wl}-z,text'
17521 archive_cmds_need_lc
=no
17522 hardcode_shlibpath_var
=no
17523 runpath_var
='LD_RUN_PATH'
17525 if test "$GCC" = yes; then
17526 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17529 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 sysv5
* | sco3.2v5
* | sco5v6
*)
17535 # Note: We can NOT use -z defs as we might desire, because we do not
17536 # link with -lc, and that would cause any symbols used from libc to
17537 # always be unresolved, which means just about no library would
17538 # ever link correctly. If we're not using GNU ld we use -z text
17539 # though, which does catch some bad symbols but isn't as heavy-handed
17541 no_undefined_flag
='${wl}-z,text'
17542 allow_undefined_flag
='${wl}-z,nodefs'
17543 archive_cmds_need_lc
=no
17544 hardcode_shlibpath_var
=no
17545 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17546 hardcode_libdir_separator
=':'
17547 link_all_deplibs
=yes
17548 export_dynamic_flag_spec
='${wl}-Bexport'
17549 runpath_var
='LD_RUN_PATH'
17551 if test "$GCC" = yes; then
17552 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_libdir_flag_spec
='-L$libdir'
17563 hardcode_shlibpath_var
=no
17571 if test x
$host_vendor = xsni
; then
17573 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17574 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17581 $as_echo "$ld_shlibs" >&6; }
17582 test "$ld_shlibs" = no
&& can_build_shared
=no
17584 with_gnu_ld
=$with_gnu_ld
17601 # Do we need to explicitly link libc?
17603 case "x$archive_cmds_need_lc" in
17605 # Assume -lc should be added
17606 archive_cmds_need_lc
=yes
17608 if test "$enable_shared" = yes && test "$GCC" = yes; then
17609 case $archive_cmds in
17611 # FIXME: we may have to deal with multi-command sequences.
17614 # Test whether the compiler implicitly links with -lc since on some
17615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17616 # to ld, don't add -lc before -lgcc.
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17618 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17619 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17620 $as_echo_n "(cached) " >&6
17623 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17626 (eval $ac_compile) 2>&5
17628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17629 test $ac_status = 0; } 2>conftest.err
; then
17632 libobjs
=conftest.
$ac_objext
17634 wl
=$lt_prog_compiler_wl
17635 pic_flag
=$lt_prog_compiler_pic
17641 lt_save_allow_undefined_flag
=$allow_undefined_flag
17642 allow_undefined_flag
=
17643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17644 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17647 test $ac_status = 0; }
17649 lt_cv_archive_cmds_need_lc
=no
17651 lt_cv_archive_cmds_need_lc
=yes
17653 allow_undefined_flag
=$lt_save_allow_undefined_flag
17655 cat conftest.err
1>&5
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17661 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17662 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17826 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17828 if test "$GCC" = yes; then
17830 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17831 *) lt_awk_arg
="/^libraries:/" ;;
17834 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17835 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17837 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17838 case $lt_search_path_spec in
17840 # if the path contains ";" then we assume it to be the separator
17841 # otherwise default to the standard path separator (i.e. ":") - it is
17842 # assumed that no part of a normal pathname contains ";" but that should
17843 # okay in the real world where ";" in dirpaths is itself problematic.
17844 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17847 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17850 # Ok, now we have the path, separated by spaces, we can step through it
17851 # and add multilib dir if necessary.
17852 lt_tmp_lt_search_path_spec
=
17853 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17854 for lt_sys_path
in $lt_search_path_spec; do
17855 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17856 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17858 test -d "$lt_sys_path" && \
17859 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17862 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17863 BEGIN {RS=" "; FS="/|\n";} {
17866 for (lt_i = NF; lt_i > 0; lt_i--) {
17867 if ($lt_i != "" && $lt_i != ".") {
17868 if ($lt_i == "..") {
17871 if (lt_count == 0) {
17872 lt_foo="/" $lt_i lt_foo;
17879 if (lt_foo != "") { lt_freq[lt_foo]++; }
17880 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17882 # AWK program above erroneously prepends '/' to C:/dos/paths
17885 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17886 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17888 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17890 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17892 library_names_spec
=
17893 libname_spec
='lib$name'
17897 postuninstall_cmds
=
17901 shlibpath_overrides_runpath
=unknown
17903 dynamic_linker
="$host_os ld.so"
17904 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17905 need_lib_prefix
=unknown
17906 hardcode_into_libs
=no
17908 # when you set need_version to no, make sure it does not cause -set_version
17909 # flags to be left without arguments
17910 need_version
=unknown
17915 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17916 shlibpath_var
=LIBPATH
17918 # AIX 3 has no versioning support, so we append a major version to the name.
17919 soname_spec
='${libname}${release}${shared_ext}$major'
17926 hardcode_into_libs
=yes
17927 if test "$host_cpu" = ia64
; then
17928 # AIX 5 supports IA64
17929 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17930 shlibpath_var
=LD_LIBRARY_PATH
17932 # With GCC up to 2.95.x, collect2 would create an import file
17933 # for dependence libraries. The import file would start with
17934 # the line `#! .'. This would cause the generated library to
17935 # depend on `.', always an invalid library. This was fixed in
17936 # development snapshots of GCC prior to 3.0.
17938 aix4 | aix4.
[01] | aix4.
[01].
*)
17939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17941 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17944 can_build_shared
=no
17948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17949 # soname into executable. Probably we can add versioning support to
17950 # collect2, so additional links can be useful in future.
17951 if test "$aix_use_runtimelinking" = yes; then
17952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17953 # instead of lib<name>.a to let people know that these are not
17954 # typical AIX shared libraries.
17955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957 # We preserve .a as extension for shared libraries through AIX4.2
17958 # and later when we are not doing run time linking.
17959 library_names_spec
='${libname}${release}.a $libname.a'
17960 soname_spec
='${libname}${release}${shared_ext}$major'
17962 shlibpath_var
=LIBPATH
17969 # Since July 2007 AmigaOS4 officially supports .so libraries.
17970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 library_names_spec
='$libname.ixlibrary $libname.a'
17975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17976 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'
17982 library_names_spec
='${libname}${shared_ext}'
17983 dynamic_linker
="$host_os ld.so"
17984 shlibpath_var
=LIBRARY_PATH
17990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 soname_spec
='${libname}${release}${shared_ext}$major'
17992 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17993 shlibpath_var
=LD_LIBRARY_PATH
17994 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17995 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17996 # the default ld.so.conf also contains /usr/contrib/lib and
17997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17998 # libtool to hard-code these into programs
18001 cygwin
* | mingw
* | pw32
* | cegcc
*)
18002 version_type
=windows
18007 case $GCC,$host_os in
18008 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18009 library_names_spec
='$libname.dll.a'
18010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18011 postinstall_cmds
='base_file=`basename \${file}`~
18012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18013 dldir=$destdir/`dirname \$dlpath`~
18014 test -d \$dldir || mkdir -p \$dldir~
18015 $install_prog $dir/$dlname \$dldir/$dlname~
18016 chmod a+x \$dldir/$dlname~
18017 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18018 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18020 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18021 dlpath=$dir/\$dldll~
18023 shlibpath_overrides_runpath
=yes
18027 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18028 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18030 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18033 # MinGW DLLs use traditional 'lib' prefix
18034 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18037 # pw32 DLLs use 'pw' prefix rather than 'lib'
18038 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18044 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18047 dynamic_linker
='Win32 ld.exe'
18048 # FIXME: first we should search . and the directory the executable is in
18052 darwin
* | rhapsody
*)
18053 dynamic_linker
="$host_os dyld"
18054 version_type
=darwin
18057 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18058 soname_spec
='${libname}${release}${major}$shared_ext'
18059 shlibpath_overrides_runpath
=yes
18060 shlibpath_var
=DYLD_LIBRARY_PATH
18061 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18063 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18064 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18072 soname_spec
='${libname}${release}${shared_ext}$major'
18073 shlibpath_var
=LD_LIBRARY_PATH
18076 freebsd
* | dragonfly
*)
18077 # DragonFly does not have aout. When/if they implement a new
18078 # versioning mechanism, adjust this.
18079 if test -x /usr
/bin
/objformat
; then
18080 objformat
=`/usr/bin/objformat`
18083 freebsd
[23].
*) objformat
=aout
;;
18084 *) objformat
=elf
;;
18087 version_type
=freebsd-
$objformat
18088 case $version_type in
18090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18095 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18099 shlibpath_var
=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath
=yes
18104 freebsd3.
[01]* | freebsdelf3.
[01]*)
18105 shlibpath_overrides_runpath
=yes
18106 hardcode_into_libs
=yes
18108 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18109 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18110 shlibpath_overrides_runpath
=no
18111 hardcode_into_libs
=yes
18113 *) # from 4.6 on, and DragonFly
18114 shlibpath_overrides_runpath
=yes
18115 hardcode_into_libs
=yes
18124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18125 soname_spec
='${libname}${release}${shared_ext}$major'
18126 shlibpath_var
=LD_LIBRARY_PATH
18127 hardcode_into_libs
=yes
18134 dynamic_linker
="$host_os runtime_loader"
18135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18136 soname_spec
='${libname}${release}${shared_ext}$major'
18137 shlibpath_var
=LIBRARY_PATH
18138 shlibpath_overrides_runpath
=yes
18139 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18140 hardcode_into_libs
=yes
18143 hpux9
* | hpux10
* | hpux11
*)
18144 # Give a soname corresponding to the major version so that dld.sl refuses to
18145 # link against other versions.
18152 hardcode_into_libs
=yes
18153 dynamic_linker
="$host_os dld.so"
18154 shlibpath_var
=LD_LIBRARY_PATH
18155 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec
='${libname}${release}${shared_ext}$major'
18158 if test "X$HPUX_IA64_MODE" = X32
; then
18159 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18161 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18163 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18167 hardcode_into_libs
=yes
18168 dynamic_linker
="$host_os dld.sl"
18169 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18170 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 soname_spec
='${libname}${release}${shared_ext}$major'
18173 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18174 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18178 dynamic_linker
="$host_os dld.sl"
18179 shlibpath_var
=SHLIB_PATH
18180 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec
='${libname}${release}${shared_ext}$major'
18185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18186 postinstall_cmds
='chmod 555 $lib'
18187 # or fails outright, so override atomically:
18188 install_override_mode
=555
18195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec
='${libname}${release}${shared_ext}$major'
18197 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18198 shlibpath_var
=LD_LIBRARY_PATH
18199 shlibpath_overrides_runpath
=no
18200 hardcode_into_libs
=yes
18203 irix5
* | irix6
* | nonstopux
*)
18205 nonstopux
*) version_type
=nonstopux
;;
18207 if test "$lt_cv_prog_gnu_ld" = yes; then
18215 soname_spec
='${libname}${release}${shared_ext}$major'
18216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18218 irix5
* | nonstopux
*)
18219 libsuff
= shlibsuff
=
18222 case $LD in # libtool.m4 will add one of these switches to LD
18223 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18224 libsuff
= shlibsuff
= libmagic
=32-bit;;
18225 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18226 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18227 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18228 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18229 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18233 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18234 shlibpath_overrides_runpath
=no
18235 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18236 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18237 hardcode_into_libs
=yes
18240 # No shared lib support for Linux oldld, aout, or coff.
18241 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18245 # This must be Linux ELF.
18247 # uclinux* changes (here and below) have been submitted to the libtool
18248 # project, but have not yet been accepted: they are GCC-local changes
18249 # for the time being. (See
18250 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18251 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec
='${libname}${release}${shared_ext}$major'
18257 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18258 shlibpath_var
=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath
=no
18261 # Some binutils ld are patched to set DT_RUNPATH
18262 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18263 $as_echo_n "(cached) " >&6
18265 lt_cv_shlibpath_overrides_runpath
=no
18266 save_LDFLAGS
=$LDFLAGS
18267 save_libdir
=$libdir
18268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18281 if ac_fn_c_try_link
"$LINENO"; then :
18282 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18283 lt_cv_shlibpath_overrides_runpath
=yes
18286 rm -f core conftest.err conftest.
$ac_objext \
18287 conftest
$ac_exeext conftest.
$ac_ext
18288 LDFLAGS
=$save_LDFLAGS
18289 libdir
=$save_libdir
18293 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18295 # This implies no fast_install, which is unacceptable.
18296 # Some rework will be needed to allow for fast_install
18297 # before this can be enabled.
18298 hardcode_into_libs
=yes
18300 # Append ld.so.conf contents to the search path
18301 if test -f /etc
/ld.so.conf
; then
18302 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' ' '`
18303 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18306 # We used to test for /lib/ld.so.1 and disable shared libraries on
18307 # powerpc, because MkLinux only supported shared libraries with the
18308 # GNU dynamic linker. Since this was broken with cross compilers,
18309 # most powerpc-linux boxes support dynamic linking these days and
18310 # people can always --disable-shared, the test was removed, and we
18311 # assume the GNU/Linux dynamic linker is in use.
18312 dynamic_linker
='GNU/Linux ld.so'
18319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18322 dynamic_linker
='NetBSD (a.out) ld.so'
18324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18325 soname_spec
='${libname}${release}${shared_ext}$major'
18326 dynamic_linker
='NetBSD ld.elf_so'
18328 shlibpath_var
=LD_LIBRARY_PATH
18329 shlibpath_overrides_runpath
=yes
18330 hardcode_into_libs
=yes
18335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18336 shlibpath_var
=LD_LIBRARY_PATH
18337 shlibpath_overrides_runpath
=yes
18344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 soname_spec
='${libname}${release}${shared_ext}$major'
18346 shlibpath_var
=LD_LIBRARY_PATH
18347 shlibpath_overrides_runpath
=no
18348 hardcode_into_libs
=yes
18349 dynamic_linker
='ldqnx.so'
18354 sys_lib_dlsearch_path_spec
="/usr/lib"
18356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18358 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18359 *) need_version
=no
;;
18361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18362 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18363 shlibpath_var
=LD_LIBRARY_PATH
18364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18366 openbsd2.
[89] | openbsd2.
[89].
*)
18367 shlibpath_overrides_runpath
=no
18370 shlibpath_overrides_runpath
=yes
18374 shlibpath_overrides_runpath
=yes
18379 libname_spec
='$name'
18382 library_names_spec
='$libname${shared_ext} $libname.a'
18383 dynamic_linker
='OS/2 ld.exe'
18384 shlibpath_var
=LIBPATH
18387 osf3
* | osf4
* | osf5
*)
18391 soname_spec
='${libname}${release}${shared_ext}$major'
18392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 shlibpath_var
=LD_LIBRARY_PATH
18394 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18395 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 soname_spec
='${libname}${release}${shared_ext}$major'
18408 shlibpath_var
=LD_LIBRARY_PATH
18409 shlibpath_overrides_runpath
=yes
18410 hardcode_into_libs
=yes
18411 # ldd complains unless libraries are executable
18412 postinstall_cmds
='chmod +x $lib'
18417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18418 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18419 shlibpath_var
=LD_LIBRARY_PATH
18420 shlibpath_overrides_runpath
=yes
18421 if test "$with_gnu_ld" = yes; then
18429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 soname_spec
='${libname}${release}${shared_ext}$major'
18431 shlibpath_var
=LD_LIBRARY_PATH
18432 case $host_vendor in
18434 shlibpath_overrides_runpath
=no
18436 runpath_var
=LD_RUN_PATH
18444 shlibpath_overrides_runpath
=no
18445 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18451 if test -d /usr
/nec
;then
18453 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454 soname_spec
='$libname${shared_ext}.$major'
18455 shlibpath_var
=LD_LIBRARY_PATH
18459 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18460 version_type
=freebsd-elf
18463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18464 soname_spec
='${libname}${release}${shared_ext}$major'
18465 shlibpath_var
=LD_LIBRARY_PATH
18466 shlibpath_overrides_runpath
=yes
18467 hardcode_into_libs
=yes
18468 if test "$with_gnu_ld" = yes; then
18469 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18471 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18474 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18478 sys_lib_dlsearch_path_spec
='/usr/lib'
18482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487 shlibpath_var
=LD_LIBRARY_PATH
18488 shlibpath_overrides_runpath
=no
18489 hardcode_into_libs
=yes
18494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495 soname_spec
='${libname}${release}${shared_ext}$major'
18496 shlibpath_var
=LD_LIBRARY_PATH
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18504 $as_echo "$dynamic_linker" >&6; }
18505 test "$dynamic_linker" = no
&& can_build_shared
=no
18507 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18508 if test "$GCC" = yes; then
18509 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18513 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18515 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18516 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18613 if test -n "$hardcode_libdir_flag_spec" ||
18614 test -n "$runpath_var" ||
18615 test "X$hardcode_automatic" = "Xyes" ; then
18617 # We can hardcode non-existent directories.
18618 if test "$hardcode_direct" != no
&&
18619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18620 # have to relink, otherwise we might link with an installed library
18621 # when we should be linking with a yet-to-be-installed one
18622 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18623 test "$hardcode_minus_L" != no
; then
18624 # Linking always hardcodes the temporary library directory.
18625 hardcode_action
=relink
18627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18628 hardcode_action
=immediate
18631 # We cannot hardcode anything, or else we can only hardcode existing
18633 hardcode_action
=unsupported
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18636 $as_echo "$hardcode_action" >&6; }
18638 if test "$hardcode_action" = relink ||
18639 test "$inherit_rpath" = yes; then
18640 # Fast installation is not supported
18641 enable_fast_install
=no
18642 elif test "$shlibpath_overrides_runpath" = yes ||
18643 test "$enable_shared" = no
; then
18644 # Fast installation is not necessary
18645 enable_fast_install
=needless
18653 if test "x$enable_dlopen" != xyes
; then
18654 enable_dlopen
=unknown
18655 enable_dlopen_self
=unknown
18656 enable_dlopen_self_static
=unknown
18663 lt_cv_dlopen
="load_add_on"
18665 lt_cv_dlopen_self
=yes
18668 mingw
* | pw32
* | cegcc
*)
18669 lt_cv_dlopen
="LoadLibrary"
18674 lt_cv_dlopen
="dlopen"
18679 # if libdl is installed we need to link against it
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18682 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18683 $as_echo_n "(cached) " >&6
18685 ac_check_lib_save_LIBS
=$LIBS
18687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18690 /* Override any GCC internal prototype to avoid an error.
18691 Use char because int might match the return type of a GCC
18692 builtin and then its argument prototype would still apply. */
18705 if ac_fn_c_try_link
"$LINENO"; then :
18706 ac_cv_lib_dl_dlopen
=yes
18708 ac_cv_lib_dl_dlopen
=no
18710 rm -f core conftest.err conftest.
$ac_objext \
18711 conftest
$ac_exeext conftest.
$ac_ext
18712 LIBS
=$ac_check_lib_save_LIBS
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18716 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18717 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18720 lt_cv_dlopen
="dyld"
18722 lt_cv_dlopen_self
=yes
18729 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18730 if test "x$ac_cv_func_shl_load" = xyes
; then :
18731 lt_cv_dlopen
="shl_load"
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18734 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18735 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18736 $as_echo_n "(cached) " >&6
18738 ac_check_lib_save_LIBS
=$LIBS
18740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18753 return shl_load ();
18758 if ac_fn_c_try_link
"$LINENO"; then :
18759 ac_cv_lib_dld_shl_load
=yes
18761 ac_cv_lib_dld_shl_load
=no
18763 rm -f core conftest.err conftest.
$ac_objext \
18764 conftest
$ac_exeext conftest.
$ac_ext
18765 LIBS
=$ac_check_lib_save_LIBS
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18768 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18769 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18770 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18772 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18773 if test "x$ac_cv_func_dlopen" = xyes
; then :
18774 lt_cv_dlopen
="dlopen"
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18778 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18779 $as_echo_n "(cached) " >&6
18781 ac_check_lib_save_LIBS
=$LIBS
18783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18786 /* Override any GCC internal prototype to avoid an error.
18787 Use char because int might match the return type of a GCC
18788 builtin and then its argument prototype would still apply. */
18801 if ac_fn_c_try_link
"$LINENO"; then :
18802 ac_cv_lib_dl_dlopen
=yes
18804 ac_cv_lib_dl_dlopen
=no
18806 rm -f core conftest.err conftest.
$ac_objext \
18807 conftest
$ac_exeext conftest.
$ac_ext
18808 LIBS
=$ac_check_lib_save_LIBS
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18812 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18813 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18816 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18817 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18818 $as_echo_n "(cached) " >&6
18820 ac_check_lib_save_LIBS
=$LIBS
18821 LIBS
="-lsvld $LIBS"
18822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18825 /* Override any GCC internal prototype to avoid an error.
18826 Use char because int might match the return type of a GCC
18827 builtin and then its argument prototype would still apply. */
18840 if ac_fn_c_try_link
"$LINENO"; then :
18841 ac_cv_lib_svld_dlopen
=yes
18843 ac_cv_lib_svld_dlopen
=no
18845 rm -f core conftest.err conftest.
$ac_objext \
18846 conftest
$ac_exeext conftest.
$ac_ext
18847 LIBS
=$ac_check_lib_save_LIBS
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18850 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18851 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18852 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18855 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18856 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18857 $as_echo_n "(cached) " >&6
18859 ac_check_lib_save_LIBS
=$LIBS
18861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18864 /* Override any GCC internal prototype to avoid an error.
18865 Use char because int might match the return type of a GCC
18866 builtin and then its argument prototype would still apply. */
18874 return dld_link ();
18879 if ac_fn_c_try_link
"$LINENO"; then :
18880 ac_cv_lib_dld_dld_link
=yes
18882 ac_cv_lib_dld_dld_link
=no
18884 rm -f core conftest.err conftest.
$ac_objext \
18885 conftest
$ac_exeext conftest.
$ac_ext
18886 LIBS
=$ac_check_lib_save_LIBS
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18889 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18890 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18891 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18912 if test "x$lt_cv_dlopen" != xno
; then
18918 case $lt_cv_dlopen in
18920 save_CPPFLAGS
="$CPPFLAGS"
18921 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18923 save_LDFLAGS
="$LDFLAGS"
18924 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18927 LIBS
="$lt_cv_dlopen_libs $LIBS"
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18930 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18931 if ${lt_cv_dlopen_self+:} false
; then :
18932 $as_echo_n "(cached) " >&6
18934 if test "$cross_compiling" = yes; then :
18935 lt_cv_dlopen_self
=cross
18937 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18938 lt_status
=$lt_dlunknown
18939 cat > conftest.
$ac_ext <<_LT_EOF
18940 #line 18940 "configure"
18941 #include "confdefs.h"
18950 # define LT_DLGLOBAL RTLD_GLOBAL
18953 # define LT_DLGLOBAL DL_GLOBAL
18955 # define LT_DLGLOBAL 0
18959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18960 find out it does not work in some platform. */
18961 #ifndef LT_DLLAZY_OR_NOW
18963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18966 # define LT_DLLAZY_OR_NOW DL_LAZY
18969 # define LT_DLLAZY_OR_NOW RTLD_NOW
18972 # define LT_DLLAZY_OR_NOW DL_NOW
18974 # define LT_DLLAZY_OR_NOW 0
18981 /* When -fvisbility=hidden is used, assume the code has been annotated
18982 correspondingly for the symbols needed. */
18983 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18984 void fnord () __attribute__((visibility("default")));
18987 void fnord () { int i=42; }
18990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18991 int status = $lt_dlunknown;
18995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18999 else puts (dlerror ());
19001 /* dlclose (self); */
19009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19010 (eval $ac_link) 2>&5
19012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19013 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19014 (.
/conftest
; exit; ) >&5 2>/dev
/null
19016 case x
$lt_status in
19017 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19018 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19019 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19022 # compilation failed
19023 lt_cv_dlopen_self
=no
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19031 $as_echo "$lt_cv_dlopen_self" >&6; }
19033 if test "x$lt_cv_dlopen_self" = xyes
; then
19034 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19036 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19037 if ${lt_cv_dlopen_self_static+:} false
; then :
19038 $as_echo_n "(cached) " >&6
19040 if test "$cross_compiling" = yes; then :
19041 lt_cv_dlopen_self_static
=cross
19043 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19044 lt_status
=$lt_dlunknown
19045 cat > conftest.
$ac_ext <<_LT_EOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19056 # define LT_DLGLOBAL RTLD_GLOBAL
19059 # define LT_DLGLOBAL DL_GLOBAL
19061 # define LT_DLGLOBAL 0
19065 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19066 find out it does not work in some platform. */
19067 #ifndef LT_DLLAZY_OR_NOW
19069 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19072 # define LT_DLLAZY_OR_NOW DL_LAZY
19075 # define LT_DLLAZY_OR_NOW RTLD_NOW
19078 # define LT_DLLAZY_OR_NOW DL_NOW
19080 # define LT_DLLAZY_OR_NOW 0
19087 /* When -fvisbility=hidden is used, assume the code has been annotated
19088 correspondingly for the symbols needed. */
19089 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19090 void fnord () __attribute__((visibility("default")));
19093 void fnord () { int i=42; }
19096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19097 int status = $lt_dlunknown;
19101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19105 else puts (dlerror ());
19107 /* dlclose (self); */
19115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19116 (eval $ac_link) 2>&5
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19120 (.
/conftest
; exit; ) >&5 2>/dev
/null
19122 case x
$lt_status in
19123 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19124 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19125 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19128 # compilation failed
19129 lt_cv_dlopen_self_static
=no
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19137 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19140 CPPFLAGS
="$save_CPPFLAGS"
19141 LDFLAGS
="$save_LDFLAGS"
19146 case $lt_cv_dlopen_self in
19147 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19148 *) enable_dlopen_self
=unknown
;;
19151 case $lt_cv_dlopen_self_static in
19152 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19153 *) enable_dlopen_self_static
=unknown
;;
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19176 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19177 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19178 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19179 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19181 $as_echo "yes" >&6; }
19183 # FIXME - insert some real tests, host_os isn't really good enough
19186 if test -n "$STRIP" ; then
19187 striplib
="$STRIP -x"
19188 old_striplib
="$STRIP -S"
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19214 # Report which library types will actually be built
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19216 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19218 $as_echo "$can_build_shared" >&6; }
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19221 $as_echo_n "checking whether to build shared libraries... " >&6; }
19222 test "$can_build_shared" = "no" && enable_shared
=no
19224 # On AIX, shared libraries and static libraries use the same namespace, and
19225 # are all built from PIC.
19228 test "$enable_shared" = yes && enable_static
=no
19229 if test -n "$RANLIB"; then
19230 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19231 postinstall_cmds
='$RANLIB $lib'
19236 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19237 test "$enable_shared" = yes && enable_static
=no
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19242 $as_echo "$enable_shared" >&6; }
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19245 $as_echo_n "checking whether to build static libraries... " >&6; }
19246 # Make sure either enable_shared or enable_static is yes.
19247 test "$enable_shared" = yes || enable_static
=yes
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19249 $as_echo "$enable_static" >&6; }
19256 ac_cpp
='$CXXCPP $CPPFLAGS'
19257 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19258 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19259 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19263 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19264 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19265 (test "X$CXX" != "Xg++"))) ; then
19267 ac_cpp
='$CXXCPP $CPPFLAGS'
19268 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19272 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19273 if test -z "$CXXCPP"; then
19274 if ${ac_cv_prog_CXXCPP+:} false
; then :
19275 $as_echo_n "(cached) " >&6
19277 # Double quotes because CXXCPP needs to be expanded
19278 for CXXCPP
in "$CXX -E" "/lib/cpp"
19280 ac_preproc_ok
=false
19281 for ac_cxx_preproc_warn_flag
in '' yes
19283 # Use a header file that comes with gcc, so configuring glibc
19284 # with a fresh cross-compiler works.
19285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 # <limits.h> exists even on freestanding compilers.
19287 # On the NeXT, cc -E runs the code through the compiler's parser,
19288 # not just through cpp. "Syntax error" is here to catch this case.
19289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19292 # include <limits.h>
19294 # include <assert.h>
19298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19301 # Broken: fails on valid input.
19304 rm -f conftest.err conftest.i conftest.
$ac_ext
19306 # OK, works on sane cases. Now check whether nonexistent headers
19307 # can be detected and how.
19308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19310 #include <ac_nonexistent.h>
19312 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19313 # Broken: success on invalid input.
19316 # Passes both tests.
19320 rm -f conftest.err conftest.i conftest.
$ac_ext
19323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19324 rm -f conftest.i conftest.err conftest.
$ac_ext
19325 if $ac_preproc_ok; then :
19330 ac_cv_prog_CXXCPP
=$CXXCPP
19333 CXXCPP
=$ac_cv_prog_CXXCPP
19335 ac_cv_prog_CXXCPP
=$CXXCPP
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19338 $as_echo "$CXXCPP" >&6; }
19339 ac_preproc_ok
=false
19340 for ac_cxx_preproc_warn_flag
in '' yes
19342 # Use a header file that comes with gcc, so configuring glibc
19343 # with a fresh cross-compiler works.
19344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19345 # <limits.h> exists even on freestanding compilers.
19346 # On the NeXT, cc -E runs the code through the compiler's parser,
19347 # not just through cpp. "Syntax error" is here to catch this case.
19348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19351 # include <limits.h>
19353 # include <assert.h>
19357 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19360 # Broken: fails on valid input.
19363 rm -f conftest.err conftest.i conftest.
$ac_ext
19365 # OK, works on sane cases. Now check whether nonexistent headers
19366 # can be detected and how.
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <ac_nonexistent.h>
19371 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19372 # Broken: success on invalid input.
19375 # Passes both tests.
19379 rm -f conftest.err conftest.i conftest.
$ac_ext
19382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19383 rm -f conftest.i conftest.err conftest.
$ac_ext
19384 if $ac_preproc_ok; then :
19387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19389 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19390 See \`config.log' for more details" "$LINENO" 5; }
19394 ac_cpp
='$CXXCPP $CPPFLAGS'
19395 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19400 _lt_caught_CXX_error
=yes
19404 ac_cpp
='$CXXCPP $CPPFLAGS'
19405 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19406 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19407 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19409 archive_cmds_need_lc_CXX
=no
19410 allow_undefined_flag_CXX
=
19411 always_export_symbols_CXX
=no
19412 archive_expsym_cmds_CXX
=
19413 compiler_needs_object_CXX
=no
19414 export_dynamic_flag_spec_CXX
=
19415 hardcode_direct_CXX
=no
19416 hardcode_direct_absolute_CXX
=no
19417 hardcode_libdir_flag_spec_CXX
=
19418 hardcode_libdir_flag_spec_ld_CXX
=
19419 hardcode_libdir_separator_CXX
=
19420 hardcode_minus_L_CXX
=no
19421 hardcode_shlibpath_var_CXX
=unsupported
19422 hardcode_automatic_CXX
=no
19423 inherit_rpath_CXX
=no
19425 module_expsym_cmds_CXX
=
19426 link_all_deplibs_CXX
=unknown
19427 old_archive_cmds_CXX
=$old_archive_cmds
19428 reload_flag_CXX
=$reload_flag
19429 reload_cmds_CXX
=$reload_cmds
19430 no_undefined_flag_CXX
=
19431 whole_archive_flag_spec_CXX
=
19432 enable_shared_with_static_runtimes_CXX
=no
19434 # Source file extension for C++ test sources.
19437 # Object file extension for compiled C++ test sources.
19441 # No sense in running all these tests if we already determined that
19442 # the CXX compiler isn't working. Some variables (like enable_shared)
19443 # are currently assumed to apply to all compilers on this platform,
19444 # and will be corrupted by setting them based on a non-working compiler.
19445 if test "$_lt_caught_CXX_error" != yes; then
19446 # Code to be used in simple compile tests
19447 lt_simple_compile_test_code
="int some_variable = 0;"
19449 # Code to be used in simple link tests
19450 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19459 # If no C compiler was specified, use CC.
19462 # If no C compiler flags were specified, use CFLAGS.
19463 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19465 # Allow CC to be a program name with arguments.
19469 # save warnings/boilerplate of simple test code
19470 ac_outfile
=conftest.
$ac_objext
19471 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19472 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19473 _lt_compiler_boilerplate
=`cat conftest.err`
19476 ac_outfile
=conftest.
$ac_objext
19477 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19478 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19479 _lt_linker_boilerplate
=`cat conftest.err`
19483 # Allow CC to be a program name with arguments.
19488 lt_save_with_gnu_ld
=$with_gnu_ld
19489 lt_save_path_LD
=$lt_cv_path_LD
19490 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19491 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19493 $as_unset lt_cv_prog_gnu_ld
19495 if test -n "${lt_cv_path_LDCXX+set}"; then
19496 lt_cv_path_LD
=$lt_cv_path_LDCXX
19498 $as_unset lt_cv_path_LD
19500 test -z "${LDCXX+set}" || LD
=$LDCXX
19504 for cc_temp
in $compiler""; do
19506 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19507 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19512 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19515 if test -n "$compiler"; then
19516 # We don't want -fno-exception when compiling C++ code, so set the
19517 # no_builtin_flag separately
19518 if test "$GXX" = yes; then
19519 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19521 lt_prog_compiler_no_builtin_flag_CXX
=
19524 if test "$GXX" = yes; then
19525 # Set up default GNU C++ configuration
19529 # Check whether --with-gnu-ld was given.
19530 if test "${with_gnu_ld+set}" = set; then :
19531 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19537 if test "$GCC" = yes; then
19538 # Check if gcc -print-prog-name=ld gives a path.
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19540 $as_echo_n "checking for ld used by $CC... " >&6; }
19543 # gcc leaves a trailing carriage return which upsets mingw
19544 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19546 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19549 # Accept absolute paths.
19551 re_direlt
='/[^/][^/]*/\.\./'
19552 # Canonicalize the pathname of ld
19553 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19554 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19555 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19557 test -z "$LD" && LD
="$ac_prog"
19560 # If it fails, then pretend we aren't using GCC.
19564 # If it is relative, then search for the first ld in PATH.
19565 with_gnu_ld
=unknown
19568 elif test "$with_gnu_ld" = yes; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19570 $as_echo_n "checking for GNU ld... " >&6; }
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19573 $as_echo_n "checking for non-GNU ld... " >&6; }
19575 if ${lt_cv_path_LD+:} false
; then :
19576 $as_echo_n "(cached) " >&6
19578 if test -z "$LD"; then
19579 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19580 for ac_dir
in $PATH; do
19582 test -z "$ac_dir" && ac_dir
=.
19583 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19584 lt_cv_path_LD
="$ac_dir/$ac_prog"
19585 # Check to see if the program is GNU ld. I'd rather use --version,
19586 # but apparently some variants of GNU ld only accept -v.
19587 # Break only if it was the GNU/non-GNU ld that we prefer.
19588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19589 *GNU
* |
*'with BFD'*)
19590 test "$with_gnu_ld" != no
&& break
19593 test "$with_gnu_ld" != yes && break
19600 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19604 LD
="$lt_cv_path_LD"
19605 if test -n "$LD"; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19607 $as_echo "$LD" >&6; }
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610 $as_echo "no" >&6; }
19612 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19615 if ${lt_cv_prog_gnu_ld+:} false
; then :
19616 $as_echo_n "(cached) " >&6
19618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19619 case `$LD -v 2>&1 </dev/null` in
19620 *GNU
* |
*'with BFD'*)
19621 lt_cv_prog_gnu_ld
=yes
19624 lt_cv_prog_gnu_ld
=no
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19630 with_gnu_ld
=$lt_cv_prog_gnu_ld
19638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19639 # archiving commands below assume that GNU ld is being used.
19640 if test "$with_gnu_ld" = yes; then
19641 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19642 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'
19644 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19645 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19647 # If archive_cmds runs LD, not CC, wlarc should be empty
19648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19649 # investigate it a little bit more. (MM)
19652 # ancient GNU ld didn't support --whole-archive et. al.
19653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19654 $GREP 'no-whole-archive' > /dev
/null
; then
19655 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19657 whole_archive_flag_spec_CXX
=
19663 # A generic and very simple default shared library creation
19664 # command for GNU C++ for the case where it uses the native
19665 # linker, instead of GNU ld. If possible, this setting should
19666 # overridden to take advantage of the native linker features on
19667 # the platform it is being used on.
19668 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19674 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19682 # PORTME: fill in a description of your system's C++ link characteristics
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19688 # FIXME: insert proper C++ library support
19692 if test "$host_cpu" = ia64
; then
19693 # On IA64, the linker does run time linking by default, so we don't
19694 # have to do anything special.
19695 aix_use_runtimelinking
=no
19696 exp_sym_flag
='-Bexport'
19699 aix_use_runtimelinking
=no
19701 # Test if we are trying to use run time linking or normal
19702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19703 # need to do runtime linking.
19704 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19705 for ld_flag
in $LDFLAGS; do
19708 aix_use_runtimelinking
=yes
19716 exp_sym_flag
='-bexport'
19717 no_entry_flag
='-bnoentry'
19720 # When large executables or shared objects are built, AIX ld can
19721 # have problems creating the table of contents. If linking a library
19722 # or program results in "error TOC overflow" add -mminimal-toc to
19723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19726 archive_cmds_CXX
=''
19727 hardcode_direct_CXX
=yes
19728 hardcode_direct_absolute_CXX
=yes
19729 hardcode_libdir_separator_CXX
=':'
19730 link_all_deplibs_CXX
=yes
19731 file_list_spec_CXX
='${wl}-f,'
19733 if test "$GXX" = yes; then
19734 case $host_os in aix4.
[012]|aix4.
[012].
*)
19735 # We only want to do this on AIX 4.2 and lower, the check
19736 # below for broken collect2 doesn't work under 4.3+
19737 collect2name
=`${CC} -print-prog-name=collect2`
19738 if test -f "$collect2name" &&
19739 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19741 # We have reworked collect2
19744 # We have old collect2
19745 hardcode_direct_CXX
=unsupported
19746 # It fails to find uninstalled libraries when the uninstalled
19747 # path is not listed in the libpath. Setting hardcode_minus_L
19748 # to unsupported forces relinking
19749 hardcode_minus_L_CXX
=yes
19750 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19751 hardcode_libdir_separator_CXX
=
19754 shared_flag
='-shared'
19755 if test "$aix_use_runtimelinking" = yes; then
19756 shared_flag
="$shared_flag "'${wl}-G'
19760 if test "$host_cpu" = ia64
; then
19761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19762 # chokes on -Wl,-G. The following line is correct:
19765 if test "$aix_use_runtimelinking" = yes; then
19766 shared_flag
='${wl}-G'
19768 shared_flag
='${wl}-bM:SRE'
19773 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19774 # It seems that -bexpall does not export symbols beginning with
19775 # underscore (_), so it is better to generate a list of symbols to
19777 always_export_symbols_CXX
=yes
19778 if test "$aix_use_runtimelinking" = yes; then
19779 # Warning - without using the other runtime loading flags (-brtl),
19780 # -berok will link without error, but may produce a broken library.
19781 allow_undefined_flag_CXX
='-berok'
19782 # Determine the default libpath from the value encoded in an empty
19784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19795 if ac_fn_cxx_try_link
"$LINENO"; then :
19797 lt_aix_libpath_sed
='
19798 /Import File Strings/,/^$/ {
19804 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19805 # Check for a 64-bit object if we didn't find anything.
19806 if test -z "$aix_libpath"; then
19807 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19810 rm -f core conftest.err conftest.
$ac_objext \
19811 conftest
$ac_exeext conftest.
$ac_ext
19812 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19814 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19816 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"
19818 if test "$host_cpu" = ia64
; then
19819 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19820 allow_undefined_flag_CXX
="-z nodefs"
19821 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"
19823 # Determine the default libpath from the value encoded in an
19824 # empty executable.
19825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19836 if ac_fn_cxx_try_link
"$LINENO"; then :
19838 lt_aix_libpath_sed
='
19839 /Import File Strings/,/^$/ {
19845 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19846 # Check for a 64-bit object if we didn't find anything.
19847 if test -z "$aix_libpath"; then
19848 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19851 rm -f core conftest.err conftest.
$ac_objext \
19852 conftest
$ac_exeext conftest.
$ac_ext
19853 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19855 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19856 # Warning - without using the other run time loading flags,
19857 # -berok will link without error, but may produce a broken library.
19858 no_undefined_flag_CXX
=' ${wl}-bernotok'
19859 allow_undefined_flag_CXX
=' ${wl}-berok'
19860 if test "$with_gnu_ld" = yes; then
19861 # We only use this code for GNU lds that support --whole-archive.
19862 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19864 # Exported symbols can be pulled into shared objects from archives
19865 whole_archive_flag_spec_CXX
='$convenience'
19867 archive_cmds_need_lc_CXX
=yes
19868 # This is similar to how AIX traditionally builds its shared
19870 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'
19876 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19877 allow_undefined_flag_CXX
=unsupported
19878 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19879 # support --undefined. This deserves some investigation. FIXME
19880 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19887 case $cc_basename in
19889 # FIXME: insert proper C++ library support
19895 cygwin
* | mingw
* | pw32
* | cegcc
*)
19896 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19897 # as there is no search path for DLLs.
19898 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19899 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19900 allow_undefined_flag_CXX
=unsupported
19901 always_export_symbols_CXX
=no
19902 enable_shared_with_static_runtimes_CXX
=yes
19904 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19905 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'
19906 # If the export-symbols file already is a .def file (1st line
19907 # is EXPORTS), use it as is; otherwise, prepend...
19908 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19909 cp $export_symbols $output_objdir/$soname.def;
19911 echo EXPORTS > $output_objdir/$soname.def;
19912 cat $export_symbols >> $output_objdir/$soname.def;
19914 $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'
19919 darwin
* | rhapsody
*)
19922 archive_cmds_need_lc_CXX
=no
19923 hardcode_direct_CXX
=no
19924 hardcode_automatic_CXX
=yes
19925 hardcode_shlibpath_var_CXX
=unsupported
19926 if test "$lt_cv_ld_force_load" = "yes"; then
19927 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\"`'
19929 whole_archive_flag_spec_CXX
=''
19931 link_all_deplibs_CXX
=yes
19932 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19933 case $cc_basename in
19934 ifort
*) _lt_dar_can_shared
=yes ;;
19935 *) _lt_dar_can_shared
=$GCC ;;
19937 if test "$_lt_dar_can_shared" = "yes"; then
19938 output_verbose_link_cmd
=func_echo_all
19939 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}"
19940 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19941 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}"
19942 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}"
19943 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19944 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}"
19945 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}"
19955 case $cc_basename in
19957 # FIXME: insert proper C++ library support
19961 # Green Hills C++ Compiler
19962 # FIXME: insert proper C++ library support
19966 # FIXME: insert proper C++ library support
19973 # C++ shared libraries reported to be fairly broken before
19979 archive_cmds_need_lc_CXX
=no
19982 freebsd
* | dragonfly
*)
19983 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19992 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19993 link_all_deplibs_CXX
=yes
19997 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19998 hardcode_libdir_separator_CXX
=:
19999 export_dynamic_flag_spec_CXX
='${wl}-E'
20000 hardcode_direct_CXX
=yes
20001 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20002 # but as the default
20003 # location of the library.
20005 case $cc_basename in
20007 # FIXME: insert proper C++ library support
20011 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'
20012 # Commands to make compiler produce verbose output that lists
20013 # what "hidden" libraries, object files and flags are used when
20014 # linking a shared library.
20016 # There doesn't appear to be a way to prevent this compiler from
20017 # explicitly linking system object files so we need to strip them
20018 # from the output so that they don't get included in the library
20020 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"'
20023 if test "$GXX" = yes; then
20024 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'
20026 # FIXME: insert proper C++ library support
20034 if test $with_gnu_ld = no
; then
20035 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20036 hardcode_libdir_separator_CXX
=:
20042 export_dynamic_flag_spec_CXX
='${wl}-E'
20048 hardcode_direct_CXX
=no
20049 hardcode_shlibpath_var_CXX
=no
20052 hardcode_direct_CXX
=yes
20053 hardcode_direct_absolute_CXX
=yes
20054 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20055 # but as the default
20056 # location of the library.
20060 case $cc_basename in
20062 # FIXME: insert proper C++ library support
20068 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20071 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20074 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20077 # Commands to make compiler produce verbose output that lists
20078 # what "hidden" libraries, object files and flags are used when
20079 # linking a shared library.
20081 # There doesn't appear to be a way to prevent this compiler from
20082 # explicitly linking system object files so we need to strip them
20083 # from the output so that they don't get included in the library
20085 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"'
20088 if test "$GXX" = yes; then
20089 if test $with_gnu_ld = no
; then
20092 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20095 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20098 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'
20103 # FIXME: insert proper C++ library support
20111 hardcode_direct_CXX
=no
20112 hardcode_shlibpath_var_CXX
=no
20113 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20114 export_dynamic_flag_spec_CXX
='${wl}-E'
20115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20116 # Instead, shared libraries are loaded at an image base (0x10000000 by
20117 # default) and relocated if they conflict, which is a slow very memory
20118 # consuming and fragmenting process. To avoid this, we pick a random,
20119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20121 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'
20122 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'
20125 case $cc_basename in
20128 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'
20130 # Archives containing C++ object files must be created using
20131 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20132 # necessary to make sure instantiated templates are included
20134 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20137 if test "$GXX" = yes; then
20138 if test "$with_gnu_ld" = no
; then
20139 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'
20141 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'
20144 link_all_deplibs_CXX
=yes
20147 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20148 hardcode_libdir_separator_CXX
=:
20149 inherit_rpath_CXX
=yes
20152 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20153 case $cc_basename in
20155 # Kuck and Associates, Inc. (KAI) C++ Compiler
20157 # KCC will only create a shared library if the output file
20158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20159 # to its proper name (with version) after linking.
20160 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'
20161 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'
20162 # Commands to make compiler produce verbose output that lists
20163 # what "hidden" libraries, object files and flags are used when
20164 # linking a shared library.
20166 # There doesn't appear to be a way to prevent this compiler from
20167 # explicitly linking system object files so we need to strip them
20168 # from the output so that they don't get included in the library
20170 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"'
20172 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20173 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20175 # Archives containing C++ object files must be created using
20176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20177 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20182 # version 8.0 and above of icpc choke on multiply defined symbols
20183 # if we add $predep_objects and $postdep_objects, however 7.1 and
20184 # earlier do not add the objects themselves.
20185 case `$CC -V 2>&1` in
20187 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20188 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'
20190 *) # Version 8.0 or newer
20193 ia64
*) tmp_idyn
=' -i_dynamic';;
20195 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20196 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'
20199 archive_cmds_need_lc_CXX
=no
20200 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20201 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20202 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20205 # Portland Group C++ compiler
20207 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20208 prelink_cmds_CXX
='tpldir=Template.dir~
20210 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20211 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20212 old_archive_cmds_CXX
='tpldir=Template.dir~
20214 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20215 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20217 archive_cmds_CXX
='tpldir=Template.dir~
20219 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20220 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20221 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20224 $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'
20226 *) # Version 6 and above use weak symbols
20227 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20228 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'
20232 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20233 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20234 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'
20238 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20241 runpath_var
=LD_RUN_PATH
20242 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20243 hardcode_libdir_separator_CXX
=:
20245 # Commands to make compiler produce verbose output that lists
20246 # what "hidden" libraries, object files and flags are used when
20247 # linking a shared library.
20249 # There doesn't appear to be a way to prevent this compiler from
20250 # explicitly linking system object files so we need to strip them
20251 # from the output so that they don't get included in the library
20253 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'
20255 xl
* | mpixl
* | bgxl
*)
20256 # IBM XL 8.0 on PPC, with GNU ld
20257 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20258 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20259 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20260 if test "x$supports_anon_versioning" = xyes
; then
20261 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20263 echo "local: *; };" >> $output_objdir/$libname.ver~
20264 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20268 case `$CC -V 2>&1 | sed 5q` in
20271 no_undefined_flag_CXX
=' -zdefs'
20272 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20273 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'
20274 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20275 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'
20276 compiler_needs_object_CXX
=yes
20278 # Not sure whether something based on
20279 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20281 output_verbose_link_cmd
='func_echo_all'
20283 # Archives containing C++ object files must be created using
20284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20285 # necessary to make sure instantiated templates are included
20287 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20295 # FIXME: insert proper C++ library support
20300 # FIXME: insert proper C++ library support
20305 case $cc_basename in
20307 # FIXME: insert proper C++ library support
20311 # FIXME: insert proper C++ library support
20318 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20319 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20321 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20322 hardcode_direct_CXX
=yes
20323 hardcode_shlibpath_var_CXX
=no
20325 # Workaround some broken pre-1.5 toolchains
20326 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20334 # C++ shared libraries are fairly broken
20339 if test -f /usr
/libexec
/ld.so
; then
20340 hardcode_direct_CXX
=yes
20341 hardcode_shlibpath_var_CXX
=no
20342 hardcode_direct_absolute_CXX
=yes
20343 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20344 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20346 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20347 export_dynamic_flag_spec_CXX
='${wl}-E'
20348 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20350 output_verbose_link_cmd
=func_echo_all
20356 osf3
* | osf4
* | osf5
*)
20357 case $cc_basename in
20359 # Kuck and Associates, Inc. (KAI) C++ Compiler
20361 # KCC will only create a shared library if the output file
20362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20363 # to its proper name (with version) after linking.
20364 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'
20366 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20367 hardcode_libdir_separator_CXX
=:
20369 # Archives containing C++ object files must be created using
20370 # the KAI C++ compiler.
20372 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20373 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20377 # Rational C++ 2.4.1
20378 # FIXME: insert proper C++ library support
20384 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20385 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'
20386 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20389 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20390 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'
20391 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20392 echo "-hidden">> $lib.exp~
20393 $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~
20395 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20399 hardcode_libdir_separator_CXX
=:
20401 # Commands to make compiler produce verbose output that lists
20402 # what "hidden" libraries, object files and flags are used when
20403 # linking a shared library.
20405 # There doesn't appear to be a way to prevent this compiler from
20406 # explicitly linking system object files so we need to strip them
20407 # from the output so that they don't get included in the library
20409 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"'
20412 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20413 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20416 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'
20419 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'
20423 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20424 hardcode_libdir_separator_CXX
=:
20426 # Commands to make compiler produce verbose output that lists
20427 # what "hidden" libraries, object files and flags are used when
20428 # linking a shared library.
20429 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20432 # FIXME: insert proper C++ library support
20440 # FIXME: insert proper C++ library support
20445 case $cc_basename in
20448 # FIXME: insert proper C++ library support
20453 # FIXME: insert proper C++ library support
20457 # FIXME: insert proper C++ library support
20464 case $cc_basename in
20466 # Sun C++ 4.2, 5.x and Centerline C++
20467 archive_cmds_need_lc_CXX
=yes
20468 no_undefined_flag_CXX
=' -zdefs'
20469 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20470 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20471 $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'
20473 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20474 hardcode_shlibpath_var_CXX
=no
20476 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20478 # The compiler driver will combine and reorder linker options,
20479 # but understands `-z linker_flag'.
20480 # Supported since Solaris 2.6 (maybe 2.5.1?)
20481 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20484 link_all_deplibs_CXX
=yes
20486 output_verbose_link_cmd
='func_echo_all'
20488 # Archives containing C++ object files must be created using
20489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20490 # necessary to make sure instantiated templates are included
20492 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20495 # Green Hills C++ Compiler
20496 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20498 # The C++ compiler must be used to create the archive.
20499 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20502 # GNU C++ compiler with Solaris linker
20503 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20504 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20505 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20506 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20507 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20510 # Commands to make compiler produce verbose output that lists
20511 # what "hidden" libraries, object files and flags are used when
20512 # linking a shared library.
20513 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20517 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20518 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20521 # Commands to make compiler produce verbose output that lists
20522 # what "hidden" libraries, object files and flags are used when
20523 # linking a shared library.
20524 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20527 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20529 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20531 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20539 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20540 no_undefined_flag_CXX
='${wl}-z,text'
20541 archive_cmds_need_lc_CXX
=no
20542 hardcode_shlibpath_var_CXX
=no
20543 runpath_var
='LD_RUN_PATH'
20545 case $cc_basename in
20547 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20548 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20551 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20552 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20557 sysv5
* | sco3.2v5
* | sco5v6
*)
20558 # Note: We can NOT use -z defs as we might desire, because we do not
20559 # link with -lc, and that would cause any symbols used from libc to
20560 # always be unresolved, which means just about no library would
20561 # ever link correctly. If we're not using GNU ld we use -z text
20562 # though, which does catch some bad symbols but isn't as heavy-handed
20564 no_undefined_flag_CXX
='${wl}-z,text'
20565 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20566 archive_cmds_need_lc_CXX
=no
20567 hardcode_shlibpath_var_CXX
=no
20568 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20569 hardcode_libdir_separator_CXX
=':'
20570 link_all_deplibs_CXX
=yes
20571 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20572 runpath_var
='LD_RUN_PATH'
20574 case $cc_basename in
20576 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20577 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20578 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20579 '"$old_archive_cmds_CXX"
20580 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20581 '"$reload_cmds_CXX"
20584 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20585 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20591 case $cc_basename in
20593 # NonStop-UX NCC 3.20
20594 # FIXME: insert proper C++ library support
20598 # FIXME: insert proper C++ library support
20605 # FIXME: insert proper C++ library support
20610 # FIXME: insert proper C++ library support
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20616 $as_echo "$ld_shlibs_CXX" >&6; }
20617 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20623 ## There is no encapsulation within the following macros, do not change
20624 ## the running order or otherwise move them around unless you know exactly
20625 ## what you are doing...
20626 # Dependencies to place before and after the object being linked:
20627 predep_objects_CXX
=
20628 postdep_objects_CXX
=
20631 compiler_lib_search_path_CXX
=
20633 cat > conftest.
$ac_ext <<_LT_EOF
20637 Foo (void) { a = 0; }
20643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20644 (eval $ac_compile) 2>&5
20646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20647 test $ac_status = 0; }; then
20648 # Parse the compiler output and extract the necessary
20649 # objects, libraries and library flags.
20651 # Sentinel used to keep track of whether or not we are before
20652 # the conftest object file.
20653 pre_test_object_deps_done
=no
20655 for p
in `eval "$output_verbose_link_cmd"`; do
20659 # Some compilers place space between "-{L,R}" and the path.
20660 # Remove the space.
20661 if test $p = "-L" ||
20662 test $p = "-R"; then
20669 if test "$pre_test_object_deps_done" = no
; then
20672 # Internal compiler library paths should come after those
20673 # provided the user. The postdeps already come after the
20674 # user supplied libs so there is no need to process them.
20675 if test -z "$compiler_lib_search_path_CXX"; then
20676 compiler_lib_search_path_CXX
="${prev}${p}"
20678 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20681 # The "-l" case would never come before the object being
20682 # linked, so don't bother handling this case.
20685 if test -z "$postdeps_CXX"; then
20686 postdeps_CXX
="${prev}${p}"
20688 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20694 # This assumes that the test object file only shows up
20695 # once in the compiler output.
20696 if test "$p" = "conftest.$objext"; then
20697 pre_test_object_deps_done
=yes
20701 if test "$pre_test_object_deps_done" = no
; then
20702 if test -z "$predep_objects_CXX"; then
20703 predep_objects_CXX
="$p"
20705 predep_objects_CXX
="$predep_objects_CXX $p"
20708 if test -z "$postdep_objects_CXX"; then
20709 postdep_objects_CXX
="$p"
20711 postdep_objects_CXX
="$postdep_objects_CXX $p"
20716 *) ;; # Ignore the rest.
20724 echo "libtool.m4: error: problem compiling CXX test program"
20727 $RM -f confest.
$objext
20729 # PORTME: override above test on systems where it is broken
20732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20733 # hack all around it, let's just trust "g++" to DTRT.
20734 predep_objects_CXX
=
20735 postdep_objects_CXX
=
20740 case `$CC -V 2>&1 | sed 5q` in
20744 # The more standards-conforming stlport4 library is
20745 # incompatible with the Cstd library. Avoid specifying
20746 # it if it's in CXXFLAGS. Ignore libCrun as
20747 # -library=stlport4 depends on it.
20748 case " $CXX $CXXFLAGS " in
20749 *" -library=stlport4 "*)
20750 solaris_use_stlport4
=yes
20754 if test "$solaris_use_stlport4" != yes; then
20755 postdeps_CXX
='-library=Cstd -library=Crun'
20762 case $cc_basename in
20764 # The more standards-conforming stlport4 library is
20765 # incompatible with the Cstd library. Avoid specifying
20766 # it if it's in CXXFLAGS. Ignore libCrun as
20767 # -library=stlport4 depends on it.
20768 case " $CXX $CXXFLAGS " in
20769 *" -library=stlport4 "*)
20770 solaris_use_stlport4
=yes
20774 # Adding this requires a known-good setup of shared libraries for
20775 # Sun compiler versions before 5.6, else PIC objects from an old
20776 # archive will be linked into the output, leading to subtle bugs.
20777 if test "$solaris_use_stlport4" != yes; then
20778 postdeps_CXX
='-library=Cstd -library=Crun'
20786 case " $postdeps_CXX " in
20787 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20789 compiler_lib_search_dirs_CXX
=
20790 if test -n "${compiler_lib_search_path_CXX}"; then
20791 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20824 lt_prog_compiler_wl_CXX
=
20825 lt_prog_compiler_pic_CXX
=
20826 lt_prog_compiler_static_CXX
=
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20829 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20831 # C++ specific cases for pic, static, wl, etc.
20832 if test "$GXX" = yes; then
20833 lt_prog_compiler_wl_CXX
='-Wl,'
20834 lt_prog_compiler_static_CXX
='-static'
20838 # All AIX code is PIC.
20839 if test "$host_cpu" = ia64
; then
20840 # AIX 5 now supports IA64 processor
20841 lt_prog_compiler_static_CXX
='-Bstatic'
20843 lt_prog_compiler_pic_CXX
='-fPIC'
20849 # see comment about AmigaOS4 .so support
20850 lt_prog_compiler_pic_CXX
='-fPIC'
20853 # FIXME: we need at least 68020 code to build shared libraries, but
20854 # adding the `-m68020' flag to GCC prevents building anything better,
20856 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20861 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20862 # PIC is the default for these OSes.
20864 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20865 # This hack is so that the source file can tell whether it is being
20866 # built for inclusion in a dll (and should export symbols for example).
20867 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20868 # (--disable-auto-import) libraries
20869 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20871 darwin
* | rhapsody
*)
20872 # PIC is the default on this platform
20873 # Common symbols not allowed in MH_DYLIB files
20874 lt_prog_compiler_pic_CXX
='-fno-common'
20877 # DJGPP does not support shared libraries at all
20878 lt_prog_compiler_pic_CXX
=
20881 # PIC is the default for Haiku.
20882 # The "-static" flag exists, but is broken.
20883 lt_prog_compiler_static_CXX
=
20886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20887 # Instead, we relocate shared libraries at runtime.
20890 if test -d /usr
/nec
; then
20891 lt_prog_compiler_pic_CXX
=-Kconform_pic
20895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20897 # sets the default TLS model and affects inlining.
20902 lt_prog_compiler_pic_CXX
='-fPIC'
20907 # QNX uses GNU C++, but need to define -shared option too, otherwise
20908 # it will coredump.
20909 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20912 lt_prog_compiler_pic_CXX
='-fPIC'
20918 # All AIX code is PIC.
20919 if test "$host_cpu" = ia64
; then
20920 # AIX 5 now supports IA64 processor
20921 lt_prog_compiler_static_CXX
='-Bstatic'
20923 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20927 case $cc_basename in
20929 # Green Hills C++ Compiler
20930 # _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"
20935 case $cc_basename in
20937 lt_prog_compiler_pic_CXX
='-KPIC'
20940 # Green Hills C++ Compiler
20941 lt_prog_compiler_pic_CXX
='-pic'
20947 freebsd
* | dragonfly
*)
20948 # FreeBSD uses GNU C++
20950 hpux9
* | hpux10
* | hpux11
*)
20951 case $cc_basename in
20953 lt_prog_compiler_wl_CXX
='-Wl,'
20954 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20955 if test "$host_cpu" != ia64
; then
20956 lt_prog_compiler_pic_CXX
='+Z'
20960 lt_prog_compiler_wl_CXX
='-Wl,'
20961 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20967 lt_prog_compiler_pic_CXX
='+Z'
20976 # This is c89, which is MS Visual C++ (no shared libs)
20977 # Anyone wants to do a port?
20979 irix5
* | irix6
* | nonstopux
*)
20980 case $cc_basename in
20982 lt_prog_compiler_wl_CXX
='-Wl,'
20983 lt_prog_compiler_static_CXX
='-non_shared'
20984 # CC pic flag -KPIC is the default.
20990 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20991 case $cc_basename in
20994 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20995 lt_prog_compiler_pic_CXX
='-fPIC'
20998 # old Intel C++ for x86_64 which still supported -KPIC.
20999 lt_prog_compiler_wl_CXX
='-Wl,'
21000 lt_prog_compiler_pic_CXX
='-KPIC'
21001 lt_prog_compiler_static_CXX
='-static'
21004 # Intel C++, used to be incompatible with GCC.
21005 # ICC 10 doesn't accept -KPIC any more.
21006 lt_prog_compiler_wl_CXX
='-Wl,'
21007 lt_prog_compiler_pic_CXX
='-fPIC'
21008 lt_prog_compiler_static_CXX
='-static'
21011 # Portland Group C++ compiler
21012 lt_prog_compiler_wl_CXX
='-Wl,'
21013 lt_prog_compiler_pic_CXX
='-fpic'
21014 lt_prog_compiler_static_CXX
='-Bstatic'
21018 # Make sure the PIC flag is empty. It appears that all Alpha
21019 # Linux and Compaq Tru64 Unix objects are PIC.
21020 lt_prog_compiler_pic_CXX
=
21021 lt_prog_compiler_static_CXX
='-non_shared'
21023 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21024 # IBM XL 8.0, 9.0 on PPC and BlueGene
21025 lt_prog_compiler_wl_CXX
='-Wl,'
21026 lt_prog_compiler_pic_CXX
='-qpic'
21027 lt_prog_compiler_static_CXX
='-qstaticlink'
21030 case `$CC -V 2>&1 | sed 5q` in
21033 lt_prog_compiler_pic_CXX
='-KPIC'
21034 lt_prog_compiler_static_CXX
='-Bstatic'
21035 lt_prog_compiler_wl_CXX
='-Qoption ld '
21046 case $cc_basename in
21048 lt_prog_compiler_pic_CXX
='-W c,exportall'
21057 # QNX uses GNU C++, but need to define -shared option too, otherwise
21058 # it will coredump.
21059 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21061 osf3
* | osf4
* | osf5
*)
21062 case $cc_basename in
21064 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21067 # Rational C++ 2.4.1
21068 lt_prog_compiler_pic_CXX
='-pic'
21071 # Digital/Compaq C++
21072 lt_prog_compiler_wl_CXX
='-Wl,'
21073 # Make sure the PIC flag is empty. It appears that all Alpha
21074 # Linux and Compaq Tru64 Unix objects are PIC.
21075 lt_prog_compiler_pic_CXX
=
21076 lt_prog_compiler_static_CXX
='-non_shared'
21085 case $cc_basename in
21087 # Sun C++ 4.2, 5.x and Centerline C++
21088 lt_prog_compiler_pic_CXX
='-KPIC'
21089 lt_prog_compiler_static_CXX
='-Bstatic'
21090 lt_prog_compiler_wl_CXX
='-Qoption ld '
21093 # Green Hills C++ Compiler
21094 lt_prog_compiler_pic_CXX
='-PIC'
21101 case $cc_basename in
21104 lt_prog_compiler_pic_CXX
='-pic'
21105 lt_prog_compiler_static_CXX
='-Bstatic'
21109 lt_prog_compiler_pic_CXX
='-pic'
21115 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21116 case $cc_basename in
21118 lt_prog_compiler_wl_CXX
='-Wl,'
21119 lt_prog_compiler_pic_CXX
='-KPIC'
21120 lt_prog_compiler_static_CXX
='-Bstatic'
21125 case $cc_basename in
21127 # NonStop-UX NCC 3.20
21128 lt_prog_compiler_pic_CXX
='-KPIC'
21137 lt_prog_compiler_can_build_shared_CXX
=no
21143 # For platforms which do not support PIC, -DPIC is meaningless:
21145 lt_prog_compiler_pic_CXX
=
21148 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21152 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21157 # Check to make sure the PIC flag actually works.
21159 if test -n "$lt_prog_compiler_pic_CXX"; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21161 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21162 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21163 $as_echo_n "(cached) " >&6
21165 lt_cv_prog_compiler_pic_works_CXX
=no
21166 ac_outfile
=conftest.
$ac_objext
21167 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21168 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21169 # Insert the option either (1) after the last *FLAGS variable, or
21170 # (2) before a word containing "conftest.", or (3) at the end.
21171 # Note that $ac_compile itself does not contain backslashes and begins
21172 # with a dollar sign (not a hyphen), so the echo should work correctly.
21173 # The option is referenced via a variable to avoid confusing sed.
21174 lt_compile
=`echo "$ac_compile" | $SED \
21175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21177 -e 's:$: $lt_compiler_flag:'`
21178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21179 (eval "$lt_compile" 2>conftest.err
)
21181 cat conftest.err
>&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 if (exit $ac_status) && test -s "$ac_outfile"; then
21184 # The compiler can only warn and ignore the option if not recognized
21185 # So say no if there are warnings other than the usual output.
21186 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21187 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21188 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21189 lt_cv_prog_compiler_pic_works_CXX
=yes
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21196 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21198 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21199 case $lt_prog_compiler_pic_CXX in
21201 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21204 lt_prog_compiler_pic_CXX
=
21205 lt_prog_compiler_can_build_shared_CXX
=no
21213 # Check to make sure the static flag actually works.
21215 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21218 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21219 $as_echo_n "(cached) " >&6
21221 lt_cv_prog_compiler_static_works_CXX
=no
21222 save_LDFLAGS
="$LDFLAGS"
21223 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21224 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21225 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21226 # The linker can only warn and ignore the option if not recognized
21227 # So say no if there are warnings
21228 if test -s conftest.err
; then
21229 # Append any errors to the config.log.
21230 cat conftest.err
1>&5
21231 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21232 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21233 if diff conftest.exp conftest.er2
>/dev
/null
; then
21234 lt_cv_prog_compiler_static_works_CXX
=yes
21237 lt_cv_prog_compiler_static_works_CXX
=yes
21241 LDFLAGS
="$save_LDFLAGS"
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21247 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21250 lt_prog_compiler_static_CXX
=
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21258 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21259 $as_echo_n "(cached) " >&6
21261 lt_cv_prog_compiler_c_o_CXX
=no
21262 $RM -r conftest
2>/dev
/null
21266 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21268 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21269 # Insert the option either (1) after the last *FLAGS variable, or
21270 # (2) before a word containing "conftest.", or (3) at the end.
21271 # Note that $ac_compile itself does not contain backslashes and begins
21272 # with a dollar sign (not a hyphen), so the echo should work correctly.
21273 lt_compile
=`echo "$ac_compile" | $SED \
21274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21276 -e 's:$: $lt_compiler_flag:'`
21277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21278 (eval "$lt_compile" 2>out
/conftest.err
)
21280 cat out
/conftest.err
>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21284 # The compiler can only warn and ignore the option if not recognized
21285 # So say no if there are warnings
21286 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21287 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21288 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21289 lt_cv_prog_compiler_c_o_CXX
=yes
21294 # SGI C++ compiler will create directory out/ii_files/ for
21295 # template instantiation
21296 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21297 $RM out
/* && rmdir out
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21310 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21311 $as_echo_n "(cached) " >&6
21313 lt_cv_prog_compiler_c_o_CXX
=no
21314 $RM -r conftest
2>/dev
/null
21318 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21320 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21321 # Insert the option either (1) after the last *FLAGS variable, or
21322 # (2) before a word containing "conftest.", or (3) at the end.
21323 # Note that $ac_compile itself does not contain backslashes and begins
21324 # with a dollar sign (not a hyphen), so the echo should work correctly.
21325 lt_compile
=`echo "$ac_compile" | $SED \
21326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21328 -e 's:$: $lt_compiler_flag:'`
21329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21330 (eval "$lt_compile" 2>out
/conftest.err
)
21332 cat out
/conftest.err
>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21336 # The compiler can only warn and ignore the option if not recognized
21337 # So say no if there are warnings
21338 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21339 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21340 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21341 lt_cv_prog_compiler_c_o_CXX
=yes
21346 # SGI C++ compiler will create directory out/ii_files/ for
21347 # template instantiation
21348 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21349 $RM out
/* && rmdir out
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21361 hard_links
="nottested"
21362 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21363 # do not overwrite the value of need_locks provided by the user
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21365 $as_echo_n "checking if we can lock with hard links... " >&6; }
21368 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21370 ln conftest.a conftest.b
2>&5 || hard_links
=no
21371 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21373 $as_echo "$hard_links" >&6; }
21374 if test "$hard_links" = no
; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21388 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21391 # If we're using GNU nm, then we don't want the "-C" option.
21392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21393 # Also, AIX nm treats weak defined symbols like other global defined
21394 # symbols, whereas GNU nm marks them as "W".
21395 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21396 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'
21398 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'
21402 export_symbols_cmds_CXX
="$ltdll_cmds"
21404 cygwin
* | mingw
* | cegcc
*)
21405 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'
21408 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21411 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21414 $as_echo "$ld_shlibs_CXX" >&6; }
21415 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21417 with_gnu_ld_CXX
=$with_gnu_ld
21425 # Do we need to explicitly link libc?
21427 case "x$archive_cmds_need_lc_CXX" in
21429 # Assume -lc should be added
21430 archive_cmds_need_lc_CXX
=yes
21432 if test "$enable_shared" = yes && test "$GCC" = yes; then
21433 case $archive_cmds_CXX in
21435 # FIXME: we may have to deal with multi-command sequences.
21438 # Test whether the compiler implicitly links with -lc since on some
21439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21440 # to ld, don't add -lc before -lgcc.
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21443 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21444 $as_echo_n "(cached) " >&6
21447 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21450 (eval $ac_compile) 2>&5
21452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21453 test $ac_status = 0; } 2>conftest.err
; then
21456 libobjs
=conftest.
$ac_objext
21458 wl
=$lt_prog_compiler_wl_CXX
21459 pic_flag
=$lt_prog_compiler_pic_CXX
21465 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21466 allow_undefined_flag_CXX
=
21467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21468 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21471 test $ac_status = 0; }
21473 lt_cv_archive_cmds_need_lc_CXX
=no
21475 lt_cv_archive_cmds_need_lc_CXX
=yes
21477 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21479 cat conftest.err
1>&5
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21485 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21486 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21559 library_names_spec
=
21560 libname_spec
='lib$name'
21564 postuninstall_cmds
=
21568 shlibpath_overrides_runpath
=unknown
21570 dynamic_linker
="$host_os ld.so"
21571 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21572 need_lib_prefix
=unknown
21573 hardcode_into_libs
=no
21575 # when you set need_version to no, make sure it does not cause -set_version
21576 # flags to be left without arguments
21577 need_version
=unknown
21582 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21583 shlibpath_var
=LIBPATH
21585 # AIX 3 has no versioning support, so we append a major version to the name.
21586 soname_spec
='${libname}${release}${shared_ext}$major'
21593 hardcode_into_libs
=yes
21594 if test "$host_cpu" = ia64
; then
21595 # AIX 5 supports IA64
21596 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21597 shlibpath_var
=LD_LIBRARY_PATH
21599 # With GCC up to 2.95.x, collect2 would create an import file
21600 # for dependence libraries. The import file would start with
21601 # the line `#! .'. This would cause the generated library to
21602 # depend on `.', always an invalid library. This was fixed in
21603 # development snapshots of GCC prior to 3.0.
21605 aix4 | aix4.
[01] | aix4.
[01].
*)
21606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21608 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21611 can_build_shared
=no
21615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21616 # soname into executable. Probably we can add versioning support to
21617 # collect2, so additional links can be useful in future.
21618 if test "$aix_use_runtimelinking" = yes; then
21619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21620 # instead of lib<name>.a to let people know that these are not
21621 # typical AIX shared libraries.
21622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21624 # We preserve .a as extension for shared libraries through AIX4.2
21625 # and later when we are not doing run time linking.
21626 library_names_spec
='${libname}${release}.a $libname.a'
21627 soname_spec
='${libname}${release}${shared_ext}$major'
21629 shlibpath_var
=LIBPATH
21636 # Since July 2007 AmigaOS4 officially supports .so libraries.
21637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641 library_names_spec
='$libname.ixlibrary $libname.a'
21642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21643 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'
21649 library_names_spec
='${libname}${shared_ext}'
21650 dynamic_linker
="$host_os ld.so"
21651 shlibpath_var
=LIBRARY_PATH
21657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec
='${libname}${release}${shared_ext}$major'
21659 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21660 shlibpath_var
=LD_LIBRARY_PATH
21661 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21662 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21663 # the default ld.so.conf also contains /usr/contrib/lib and
21664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21665 # libtool to hard-code these into programs
21668 cygwin
* | mingw
* | pw32
* | cegcc
*)
21669 version_type
=windows
21674 case $GCC,$host_os in
21675 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21676 library_names_spec
='$libname.dll.a'
21677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21678 postinstall_cmds
='base_file=`basename \${file}`~
21679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21680 dldir=$destdir/`dirname \$dlpath`~
21681 test -d \$dldir || mkdir -p \$dldir~
21682 $install_prog $dir/$dlname \$dldir/$dlname~
21683 chmod a+x \$dldir/$dlname~
21684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21687 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21688 dlpath=$dir/\$dldll~
21690 shlibpath_overrides_runpath
=yes
21694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21695 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21699 # MinGW DLLs use traditional 'lib' prefix
21700 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21703 # pw32 DLLs use 'pw' prefix rather than 'lib'
21704 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21710 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21713 dynamic_linker
='Win32 ld.exe'
21714 # FIXME: first we should search . and the directory the executable is in
21718 darwin
* | rhapsody
*)
21719 dynamic_linker
="$host_os dyld"
21720 version_type
=darwin
21723 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21724 soname_spec
='${libname}${release}${major}$shared_ext'
21725 shlibpath_overrides_runpath
=yes
21726 shlibpath_var
=DYLD_LIBRARY_PATH
21727 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21729 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21737 soname_spec
='${libname}${release}${shared_ext}$major'
21738 shlibpath_var
=LD_LIBRARY_PATH
21741 freebsd
* | dragonfly
*)
21742 # DragonFly does not have aout. When/if they implement a new
21743 # versioning mechanism, adjust this.
21744 if test -x /usr
/bin
/objformat
; then
21745 objformat
=`/usr/bin/objformat`
21748 freebsd
[23].
*) objformat
=aout
;;
21749 *) objformat
=elf
;;
21752 version_type
=freebsd-
$objformat
21753 case $version_type in
21755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21760 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21764 shlibpath_var
=LD_LIBRARY_PATH
21767 shlibpath_overrides_runpath
=yes
21769 freebsd3.
[01]* | freebsdelf3.
[01]*)
21770 shlibpath_overrides_runpath
=yes
21771 hardcode_into_libs
=yes
21773 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21774 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21775 shlibpath_overrides_runpath
=no
21776 hardcode_into_libs
=yes
21778 *) # from 4.6 on, and DragonFly
21779 shlibpath_overrides_runpath
=yes
21780 hardcode_into_libs
=yes
21789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21790 soname_spec
='${libname}${release}${shared_ext}$major'
21791 shlibpath_var
=LD_LIBRARY_PATH
21792 hardcode_into_libs
=yes
21799 dynamic_linker
="$host_os runtime_loader"
21800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21801 soname_spec
='${libname}${release}${shared_ext}$major'
21802 shlibpath_var
=LIBRARY_PATH
21803 shlibpath_overrides_runpath
=yes
21804 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21805 hardcode_into_libs
=yes
21808 hpux9
* | hpux10
* | hpux11
*)
21809 # Give a soname corresponding to the major version so that dld.sl refuses to
21810 # link against other versions.
21817 hardcode_into_libs
=yes
21818 dynamic_linker
="$host_os dld.so"
21819 shlibpath_var
=LD_LIBRARY_PATH
21820 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21822 soname_spec
='${libname}${release}${shared_ext}$major'
21823 if test "X$HPUX_IA64_MODE" = X32
; then
21824 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21826 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21828 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21832 hardcode_into_libs
=yes
21833 dynamic_linker
="$host_os dld.sl"
21834 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21835 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21837 soname_spec
='${libname}${release}${shared_ext}$major'
21838 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21839 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21843 dynamic_linker
="$host_os dld.sl"
21844 shlibpath_var
=SHLIB_PATH
21845 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21847 soname_spec
='${libname}${release}${shared_ext}$major'
21850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21851 postinstall_cmds
='chmod 555 $lib'
21852 # or fails outright, so override atomically:
21853 install_override_mode
=555
21860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec
='${libname}${release}${shared_ext}$major'
21862 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21863 shlibpath_var
=LD_LIBRARY_PATH
21864 shlibpath_overrides_runpath
=no
21865 hardcode_into_libs
=yes
21868 irix5
* | irix6
* | nonstopux
*)
21870 nonstopux
*) version_type
=nonstopux
;;
21872 if test "$lt_cv_prog_gnu_ld" = yes; then
21880 soname_spec
='${libname}${release}${shared_ext}$major'
21881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21883 irix5
* | nonstopux
*)
21884 libsuff
= shlibsuff
=
21887 case $LD in # libtool.m4 will add one of these switches to LD
21888 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21889 libsuff
= shlibsuff
= libmagic
=32-bit;;
21890 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21891 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21892 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21893 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21894 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21898 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21899 shlibpath_overrides_runpath
=no
21900 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21901 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21902 hardcode_into_libs
=yes
21905 # No shared lib support for Linux oldld, aout, or coff.
21906 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21910 # This must be Linux ELF.
21912 # uclinux* changes (here and below) have been submitted to the libtool
21913 # project, but have not yet been accepted: they are GCC-local changes
21914 # for the time being. (See
21915 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21916 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
21920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921 soname_spec
='${libname}${release}${shared_ext}$major'
21922 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21923 shlibpath_var
=LD_LIBRARY_PATH
21924 shlibpath_overrides_runpath
=no
21926 # Some binutils ld are patched to set DT_RUNPATH
21927 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21928 $as_echo_n "(cached) " >&6
21930 lt_cv_shlibpath_overrides_runpath
=no
21931 save_LDFLAGS
=$LDFLAGS
21932 save_libdir
=$libdir
21933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21946 if ac_fn_cxx_try_link
"$LINENO"; then :
21947 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21948 lt_cv_shlibpath_overrides_runpath
=yes
21951 rm -f core conftest.err conftest.
$ac_objext \
21952 conftest
$ac_exeext conftest.
$ac_ext
21953 LDFLAGS
=$save_LDFLAGS
21954 libdir
=$save_libdir
21958 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21960 # This implies no fast_install, which is unacceptable.
21961 # Some rework will be needed to allow for fast_install
21962 # before this can be enabled.
21963 hardcode_into_libs
=yes
21965 # Append ld.so.conf contents to the search path
21966 if test -f /etc
/ld.so.conf
; then
21967 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' ' '`
21968 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21971 # We used to test for /lib/ld.so.1 and disable shared libraries on
21972 # powerpc, because MkLinux only supported shared libraries with the
21973 # GNU dynamic linker. Since this was broken with cross compilers,
21974 # most powerpc-linux boxes support dynamic linking these days and
21975 # people can always --disable-shared, the test was removed, and we
21976 # assume the GNU/Linux dynamic linker is in use.
21977 dynamic_linker
='GNU/Linux ld.so'
21984 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21985 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21986 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21987 dynamic_linker
='NetBSD (a.out) ld.so'
21989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21990 soname_spec
='${libname}${release}${shared_ext}$major'
21991 dynamic_linker
='NetBSD ld.elf_so'
21993 shlibpath_var
=LD_LIBRARY_PATH
21994 shlibpath_overrides_runpath
=yes
21995 hardcode_into_libs
=yes
22000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22001 shlibpath_var
=LD_LIBRARY_PATH
22002 shlibpath_overrides_runpath
=yes
22009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22010 soname_spec
='${libname}${release}${shared_ext}$major'
22011 shlibpath_var
=LD_LIBRARY_PATH
22012 shlibpath_overrides_runpath
=no
22013 hardcode_into_libs
=yes
22014 dynamic_linker
='ldqnx.so'
22019 sys_lib_dlsearch_path_spec
="/usr/lib"
22021 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22023 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22024 *) need_version
=no
;;
22026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22027 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22028 shlibpath_var
=LD_LIBRARY_PATH
22029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22031 openbsd2.
[89] | openbsd2.
[89].
*)
22032 shlibpath_overrides_runpath
=no
22035 shlibpath_overrides_runpath
=yes
22039 shlibpath_overrides_runpath
=yes
22044 libname_spec
='$name'
22047 library_names_spec
='$libname${shared_ext} $libname.a'
22048 dynamic_linker
='OS/2 ld.exe'
22049 shlibpath_var
=LIBPATH
22052 osf3
* | osf4
* | osf5
*)
22056 soname_spec
='${libname}${release}${shared_ext}$major'
22057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22058 shlibpath_var
=LD_LIBRARY_PATH
22059 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22060 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22072 soname_spec
='${libname}${release}${shared_ext}$major'
22073 shlibpath_var
=LD_LIBRARY_PATH
22074 shlibpath_overrides_runpath
=yes
22075 hardcode_into_libs
=yes
22076 # ldd complains unless libraries are executable
22077 postinstall_cmds
='chmod +x $lib'
22082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22083 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22084 shlibpath_var
=LD_LIBRARY_PATH
22085 shlibpath_overrides_runpath
=yes
22086 if test "$with_gnu_ld" = yes; then
22094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095 soname_spec
='${libname}${release}${shared_ext}$major'
22096 shlibpath_var
=LD_LIBRARY_PATH
22097 case $host_vendor in
22099 shlibpath_overrides_runpath
=no
22101 runpath_var
=LD_RUN_PATH
22109 shlibpath_overrides_runpath
=no
22110 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22116 if test -d /usr
/nec
;then
22118 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22119 soname_spec
='$libname${shared_ext}.$major'
22120 shlibpath_var
=LD_LIBRARY_PATH
22124 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22125 version_type
=freebsd-elf
22128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22129 soname_spec
='${libname}${release}${shared_ext}$major'
22130 shlibpath_var
=LD_LIBRARY_PATH
22131 shlibpath_overrides_runpath
=yes
22132 hardcode_into_libs
=yes
22133 if test "$with_gnu_ld" = yes; then
22134 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22136 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22139 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22143 sys_lib_dlsearch_path_spec
='/usr/lib'
22147 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22152 shlibpath_var
=LD_LIBRARY_PATH
22153 shlibpath_overrides_runpath
=no
22154 hardcode_into_libs
=yes
22159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22160 soname_spec
='${libname}${release}${shared_ext}$major'
22161 shlibpath_var
=LD_LIBRARY_PATH
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22169 $as_echo "$dynamic_linker" >&6; }
22170 test "$dynamic_linker" = no
&& can_build_shared
=no
22172 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22173 if test "$GCC" = yes; then
22174 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22177 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22178 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22180 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22181 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22223 hardcode_action_CXX
=
22224 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22225 test -n "$runpath_var_CXX" ||
22226 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22228 # We can hardcode non-existent directories.
22229 if test "$hardcode_direct_CXX" != no
&&
22230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22231 # have to relink, otherwise we might link with an installed library
22232 # when we should be linking with a yet-to-be-installed one
22233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22234 test "$hardcode_minus_L_CXX" != no
; then
22235 # Linking always hardcodes the temporary library directory.
22236 hardcode_action_CXX
=relink
22238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22239 hardcode_action_CXX
=immediate
22242 # We cannot hardcode anything, or else we can only hardcode existing
22244 hardcode_action_CXX
=unsupported
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22247 $as_echo "$hardcode_action_CXX" >&6; }
22249 if test "$hardcode_action_CXX" = relink ||
22250 test "$inherit_rpath_CXX" = yes; then
22251 # Fast installation is not supported
22252 enable_fast_install
=no
22253 elif test "$shlibpath_overrides_runpath" = yes ||
22254 test "$enable_shared" = no
; then
22255 # Fast installation is not necessary
22256 enable_fast_install
=needless
22265 fi # test -n "$compiler"
22271 with_gnu_ld
=$lt_save_with_gnu_ld
22272 lt_cv_path_LDCXX
=$lt_cv_path_LD
22273 lt_cv_path_LD
=$lt_save_path_LD
22274 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22275 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22276 fi # test "$_lt_caught_CXX_error" != yes
22279 ac_cpp
='$CXXCPP $CPPFLAGS'
22280 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22281 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22282 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22299 # Only expand once:
22305 # Identify the assembler which will work hand-in-glove with the newly
22306 # built GCC, so that we can examine its features. This is the assembler
22307 # which will be driven by the driver program.
22309 # If build != host, and we aren't building gas in-tree, we identify a
22310 # build->target assembler and hope that it will have the same features
22311 # as the host->target assembler we'll be using.
22312 gcc_cv_gas_major_version
=
22313 gcc_cv_gas_minor_version
=
22314 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22316 if ${gcc_cv_as+:} false
; then :
22320 if test -x "$DEFAULT_ASSEMBLER"; then
22321 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22322 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22323 && test -f ..
/gas
/Makefile \
22324 && test x
$build = x
$host; then
22325 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22326 elif test -x as
$build_exeext; then
22327 # Build using assembler in the current directory.
22328 gcc_cv_as
=.
/as
$build_exeext
22329 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22330 gcc_cv_as
="$AS_FOR_TARGET"
22332 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22333 set dummy
$AS_FOR_TARGET; ac_word
=$2
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22335 $as_echo_n "checking for $ac_word... " >&6; }
22336 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22337 $as_echo_n "(cached) " >&6
22341 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22345 for as_dir
in $PATH
22348 test -z "$as_dir" && as_dir
=.
22349 for ac_exec_ext
in '' $ac_executable_extensions; do
22350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22351 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22362 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22363 if test -n "$gcc_cv_as"; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22365 $as_echo "$gcc_cv_as" >&6; }
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22375 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22377 case "$ORIGINAL_AS_FOR_TARGET" in
22378 .
/as | .
/as
$build_exeext) ;;
22379 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22384 $as_echo_n "checking what assembler to use... " >&6; }
22385 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22386 # Single tree build which includes gas. We want to prefer it
22387 # over whatever linker top-level may have detected, since
22388 # we'll use what we're building after installation anyway.
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22390 $as_echo "newly built gas" >&6; }
22392 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22393 for f
in $gcc_cv_as_bfd_srcdir/configure \
22394 $gcc_cv_as_gas_srcdir/configure \
22395 $gcc_cv_as_gas_srcdir/configure.ac \
22396 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22397 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22398 if test x
$gcc_cv_gas_version != x
; then
22402 case $gcc_cv_gas_version in
22404 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22406 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22407 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22408 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22409 case $gcc_cv_gas_patch_version in
22410 "") gcc_cv_gas_patch_version
="0" ;;
22412 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22413 + $gcc_cv_gas_minor_version \) \* 1000 \
22414 + $gcc_cv_gas_patch_version`
22416 in_tree_gas_is_elf
=no
22417 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22418 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22419 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22421 in_tree_gas_is_elf
=yes
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22425 $as_echo "$gcc_cv_as" >&6; }
22430 # Check whether --enable-ld was given.
22431 if test "${enable_ld+set}" = set; then :
22432 enableval
=$enable_ld; case "${enableval}" in
22440 install_gold_as_default
=no
22441 # Check whether --enable-gold was given.
22442 if test "${enable_gold+set}" = set; then :
22443 enableval
=$enable_gold; case "${enableval}" in
22445 install_gold_as_default
=yes
22448 if test x
${default_ld} != x
; then
22449 install_gold_as_default
=yes
22455 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22461 # Identify the linker which will work hand-in-glove with the newly
22462 # built GCC, so that we can examine its features. This is the linker
22463 # which will be driven by the driver program.
22465 # If build != host, and we aren't building gas in-tree, we identify a
22466 # build->target linker and hope that it will have the same features
22467 # as the host->target linker we'll be using.
22468 gcc_cv_gld_major_version
=
22469 gcc_cv_gld_minor_version
=
22470 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22471 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22472 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22474 if ${gcc_cv_ld+:} false
; then :
22478 if test -x "$DEFAULT_LINKER"; then
22479 gcc_cv_ld
="$DEFAULT_LINKER"
22480 elif test $install_gold_as_default = yes \
22481 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22482 && test -f ..
/gold
/Makefile \
22483 && test x
$build = x
$host; then
22484 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22485 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22486 && test -f ..
/ld
/Makefile \
22487 && test x
$build = x
$host; then
22488 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22489 elif test -x collect-ld
$build_exeext; then
22490 # Build using linker in the current directory.
22491 gcc_cv_ld
=.
/collect-ld
$build_exeext
22492 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22493 gcc_cv_ld
="$LD_FOR_TARGET"
22495 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22496 set dummy
$LD_FOR_TARGET; ac_word
=$2
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22498 $as_echo_n "checking for $ac_word... " >&6; }
22499 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22500 $as_echo_n "(cached) " >&6
22504 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22508 for as_dir
in $PATH
22511 test -z "$as_dir" && as_dir
=.
22512 for ac_exec_ext
in '' $ac_executable_extensions; do
22513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22514 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22525 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22526 if test -n "$gcc_cv_ld"; then
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22528 $as_echo "$gcc_cv_ld" >&6; }
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22531 $as_echo "no" >&6; }
22538 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22539 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22540 # if the PLUGIN_LD is set ld-new, just have it as ld
22541 # as that is the installed named.
22542 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22543 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22544 PLUGIN_LD_SUFFIX
=ld
22547 # Check whether --with-plugin-ld was given.
22548 if test "${with_plugin_ld+set}" = set; then :
22549 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22550 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22551 PLUGIN_LD_SUFFIX
="$withval"
22557 cat >>confdefs.h
<<_ACEOF
22558 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22562 # Check to see if we are using gold instead of ld
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22564 $as_echo_n "checking whether we are using gold... " >&6; }
22566 if test x
$gcc_cv_ld != x
; then
22567 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22568 |
grep "GNU gold" > /dev
/null
; then
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22573 $as_echo "$ld_is_gold" >&6; }
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22576 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22577 # Check to see if default ld is not gold, but gold is
22578 # available and has support for split stack. If gcc was configured
22579 # with gold then no checking is done.
22581 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22583 # For platforms other than powerpc64*, enable as appropriate.
22585 gold_non_default
=no
22586 ld_gold
=`which ${gcc_cv_ld}.gold`
22587 # Make sure this gold has minimal split stack support
22588 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22589 ld_vers
=`$ld_gold --version | sed 1q`
22590 gold_vers
=`echo $ld_vers | sed -n \
22591 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22593 # check that the gold version contains the complete split stack support
22594 # on powerpc64 big and little endian
22596 case "$gold_vers" in
22597 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22599 *) gold_non_default
=no
22605 if test $gold_non_default = yes; then
22607 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22612 $as_echo "$gold_non_default" >&6; }
22614 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22616 case "$ORIGINAL_LD_FOR_TARGET" in
22617 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22618 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22623 $as_echo_n "checking what linker to use... " >&6; }
22624 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22625 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22626 # Single tree build which includes ld. We want to prefer it
22627 # over whatever linker top-level may have detected, since
22628 # we'll use what we're building after installation anyway.
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22630 $as_echo "newly built ld" >&6; }
22632 in_tree_ld_is_elf
=no
22633 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22634 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22635 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22636 in_tree_ld_is_elf
=yes
22637 elif test "$ld_is_gold" = yes; then
22638 in_tree_ld_is_elf
=yes
22640 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
22642 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22643 if test x
$gcc_cv_gld_version != x
; then
22647 case $gcc_cv_gld_version in
22649 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22651 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22652 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22653 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22654 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22657 $as_echo "$gcc_cv_ld" >&6; }
22659 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22660 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22661 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22667 # Figure out what nm we will be using.
22668 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22669 if ${gcc_cv_nm+:} false
; then :
22673 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22674 && test -f ..
/binutils
/Makefile \
22675 && test x
$build = x
$host; then
22676 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22677 elif test -x nm
$build_exeext; then
22678 gcc_cv_nm
=.
/nm
$build_exeext
22679 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22680 gcc_cv_nm
="$NM_FOR_TARGET"
22682 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22683 set dummy
$NM_FOR_TARGET; ac_word
=$2
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22685 $as_echo_n "checking for $ac_word... " >&6; }
22686 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22687 $as_echo_n "(cached) " >&6
22691 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22695 for as_dir
in $PATH
22698 test -z "$as_dir" && as_dir
=.
22699 for ac_exec_ext
in '' $ac_executable_extensions; do
22700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22701 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22712 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22713 if test -n "$gcc_cv_nm"; then
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22715 $as_echo "$gcc_cv_nm" >&6; }
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22718 $as_echo "no" >&6; }
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22726 $as_echo_n "checking what nm to use... " >&6; }
22727 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22728 # Single tree build which includes binutils.
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22730 $as_echo "newly built nm" >&6; }
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22734 $as_echo "$gcc_cv_nm" >&6; }
22738 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22740 case "$ORIGINAL_NM_FOR_TARGET" in
22741 .
/nm | .
/nm
$build_exeext) ;;
22742 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22747 # Figure out what objdump we will be using.
22748 if ${gcc_cv_objdump+:} false
; then :
22752 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22753 && test -f ..
/binutils
/Makefile \
22754 && test x
$build = x
$host; then
22755 # Single tree build which includes binutils.
22756 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22757 elif test -x objdump
$build_exeext; then
22758 gcc_cv_objdump
=.
/objdump
$build_exeext
22759 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22760 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22762 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22763 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22765 $as_echo_n "checking for $ac_word... " >&6; }
22766 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22767 $as_echo_n "(cached) " >&6
22769 case $gcc_cv_objdump in
22771 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22775 for as_dir
in $PATH
22778 test -z "$as_dir" && as_dir
=.
22779 for ac_exec_ext
in '' $ac_executable_extensions; do
22780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22781 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22792 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22793 if test -n "$gcc_cv_objdump"; then
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22795 $as_echo "$gcc_cv_objdump" >&6; }
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22798 $as_echo "no" >&6; }
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22806 $as_echo_n "checking what objdump to use... " >&6; }
22807 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22808 # Single tree build which includes binutils.
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22810 $as_echo "newly built objdump" >&6; }
22811 elif test x
$gcc_cv_objdump = x
; then
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22813 $as_echo "not found" >&6; }
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22816 $as_echo "$gcc_cv_objdump" >&6; }
22819 # Figure out what readelf we will be using.
22820 if ${gcc_cv_readelf+:} false
; then :
22824 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22825 && test -f ..
/binutils
/Makefile \
22826 && test x
$build = x
$host; then
22827 # Single tree build which includes binutils.
22828 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22829 elif test -x readelf
$build_exeext; then
22830 gcc_cv_readelf
=.
/readelf
$build_exeext
22831 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22832 gcc_cv_readelf
="$READELF_FOR_TARGET"
22834 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22835 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22837 $as_echo_n "checking for $ac_word... " >&6; }
22838 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22839 $as_echo_n "(cached) " >&6
22841 case $gcc_cv_readelf in
22843 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22847 for as_dir
in $PATH
22850 test -z "$as_dir" && as_dir
=.
22851 for ac_exec_ext
in '' $ac_executable_extensions; do
22852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22853 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22865 if test -n "$gcc_cv_readelf"; then
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22867 $as_echo "$gcc_cv_readelf" >&6; }
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22878 $as_echo_n "checking what readelf to use... " >&6; }
22879 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22880 # Single tree build which includes binutils.
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22882 $as_echo "newly built readelf" >&6; }
22883 elif test x
$gcc_cv_readelf = x
; then
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22885 $as_echo "not found" >&6; }
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22888 $as_echo "$gcc_cv_readelf" >&6; }
22891 # Figure out what otool we will be using.
22892 if ${gcc_cv_otool+:} false
; then :
22896 if test -x otool
$build_exeext; then
22897 gcc_cv_otool
=.
/otool
$build_exeext
22898 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22899 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22901 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22902 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22904 $as_echo_n "checking for $ac_word... " >&6; }
22905 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22906 $as_echo_n "(cached) " >&6
22908 case $gcc_cv_otool in
22910 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22914 for as_dir
in $PATH
22917 test -z "$as_dir" && as_dir
=.
22918 for ac_exec_ext
in '' $ac_executable_extensions; do
22919 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22920 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22931 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22932 if test -n "$gcc_cv_otool"; then
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22934 $as_echo "$gcc_cv_otool" >&6; }
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937 $as_echo "no" >&6; }
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22945 $as_echo_n "checking what otool to use... " >&6; }
22946 if test x
$gcc_cv_otool = x
; then
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22948 $as_echo "not found" >&6; }
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22951 $as_echo "$gcc_cv_otool" >&6; }
22954 # Figure out what assembler alignment features are present.
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22956 $as_echo_n "checking assembler flags... " >&6; }
22957 if ${gcc_cv_as_flags+:} false
; then :
22958 $as_echo_n "(cached) " >&6
22961 i
[34567]86-*-linux*)
22962 gcc_cv_as_flags
=--32
22964 x86_64-
*-linux-gnux32)
22965 gcc_cv_as_flags
=--x32
22968 gcc_cv_as_flags
=--64
22970 powerpc
*-*-darwin*)
22971 gcc_cv_as_flags
="-arch ppc"
22974 gcc_cv_as_flags
=" "
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22979 $as_echo "$gcc_cv_as_flags" >&6; }
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22982 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22983 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
22984 $as_echo_n "(cached) " >&6
22986 gcc_cv_as_balign_and_p2align
=no
22987 if test $in_tree_gas = yes; then
22988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22989 then gcc_cv_as_balign_and_p2align
=yes
22991 elif test x
$gcc_cv_as != x
; then
22992 $as_echo '.balign 4
22993 .p2align 2' > conftest.s
22994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996 (eval $ac_try) 2>&5
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }; }
23001 gcc_cv_as_balign_and_p2align
=yes
23003 echo "configure: failed program was" >&5
23006 rm -f conftest.o conftest.s
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23010 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23011 if test $gcc_cv_as_balign_and_p2align = yes; then
23013 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23019 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23020 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23021 $as_echo_n "(cached) " >&6
23023 gcc_cv_as_max_skip_p2align
=no
23024 if test $in_tree_gas = yes; then
23025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23026 then gcc_cv_as_max_skip_p2align
=yes
23028 elif test x
$gcc_cv_as != x
; then
23029 $as_echo '.p2align 4,,7' > conftest.s
23030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23032 (eval $ac_try) 2>&5
23034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23035 test $ac_status = 0; }; }
23037 gcc_cv_as_max_skip_p2align
=yes
23039 echo "configure: failed program was" >&5
23042 rm -f conftest.o conftest.s
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23046 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23047 if test $gcc_cv_as_max_skip_p2align = yes; then
23049 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23055 $as_echo_n "checking assembler for .literal16... " >&6; }
23056 if ${gcc_cv_as_literal16+:} false
; then :
23057 $as_echo_n "(cached) " >&6
23059 gcc_cv_as_literal16
=no
23060 if test $in_tree_gas = yes; then
23061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23062 then gcc_cv_as_literal16
=yes
23064 elif test x
$gcc_cv_as != x
; then
23065 $as_echo '.literal16' > conftest.s
23066 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23068 (eval $ac_try) 2>&5
23070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23071 test $ac_status = 0; }; }
23073 gcc_cv_as_literal16
=yes
23075 echo "configure: failed program was" >&5
23078 rm -f conftest.o conftest.s
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23082 $as_echo "$gcc_cv_as_literal16" >&6; }
23083 if test $gcc_cv_as_literal16 = yes; then
23085 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23091 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23092 if ${gcc_cv_as_subsection_m1+:} false
; then :
23093 $as_echo_n "(cached) " >&6
23095 gcc_cv_as_subsection_m1
=no
23096 if test $in_tree_gas = yes; then
23097 if test $in_tree_gas_is_elf = yes \
23098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23099 then gcc_cv_as_subsection_m1
=yes
23101 elif test x
$gcc_cv_as != x
; then
23102 $as_echo 'conftest_label1: .word 0
23104 conftest_label2: .word 0
23105 .previous' > conftest.s
23106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }
23113 if test x
$gcc_cv_nm != x
; then
23114 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23115 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23116 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23118 else gcc_cv_as_subsection_m1
=yes
23120 rm -f conftest.nm1 conftest.nm2
23123 echo "configure: failed program was" >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23130 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23131 if test $gcc_cv_as_subsection_m1 = yes; then
23133 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23139 $as_echo_n "checking assembler for .weak... " >&6; }
23140 if ${gcc_cv_as_weak+:} false
; then :
23141 $as_echo_n "(cached) " >&6
23144 if test $in_tree_gas = yes; then
23145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23146 then gcc_cv_as_weak
=yes
23148 elif test x
$gcc_cv_as != x
; then
23149 $as_echo ' .weak foobar' > conftest.s
23150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23159 echo "configure: failed program was" >&5
23162 rm -f conftest.o conftest.s
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23166 $as_echo "$gcc_cv_as_weak" >&6; }
23167 if test $gcc_cv_as_weak = yes; then
23169 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23175 $as_echo_n "checking assembler for .weakref... " >&6; }
23176 if ${gcc_cv_as_weakref+:} false
; then :
23177 $as_echo_n "(cached) " >&6
23179 gcc_cv_as_weakref
=no
23180 if test $in_tree_gas = yes; then
23181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23182 then gcc_cv_as_weakref
=yes
23184 elif test x
$gcc_cv_as != x
; then
23185 $as_echo ' .weakref foobar, barfnot' > conftest.s
23186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23188 (eval $ac_try) 2>&5
23190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191 test $ac_status = 0; }; }
23193 gcc_cv_as_weakref
=yes
23195 echo "configure: failed program was" >&5
23198 rm -f conftest.o conftest.s
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23202 $as_echo "$gcc_cv_as_weakref" >&6; }
23203 if test $gcc_cv_as_weakref = yes; then
23205 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23211 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23212 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23213 $as_echo_n "(cached) " >&6
23215 gcc_cv_as_nsubspa_comdat
=no
23216 if test $in_tree_gas = yes; then
23217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23218 then gcc_cv_as_nsubspa_comdat
=yes
23220 elif test x
$gcc_cv_as != x
; then
23221 $as_echo ' .SPACE $TEXT$
23222 .NSUBSPA $CODE$,COMDAT' > conftest.s
23223 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23230 gcc_cv_as_nsubspa_comdat
=yes
23232 echo "configure: failed program was" >&5
23235 rm -f conftest.o conftest.s
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23239 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23240 if test $gcc_cv_as_nsubspa_comdat = yes; then
23242 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23247 # .hidden needs to be supported in both the assembler and the linker,
23248 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23249 # This is irritatingly difficult to feature test for; we have to check the
23250 # date string after the version number. If we've got an in-tree
23251 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23253 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23254 case "${target}" in
23256 conftest_s
=' .globl foobar,hidden'
23259 conftest_s
=' .hidden foobar
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23264 $as_echo_n "checking assembler for .hidden... " >&6; }
23265 if ${gcc_cv_as_hidden+:} false
; then :
23266 $as_echo_n "(cached) " >&6
23268 gcc_cv_as_hidden
=no
23269 if test $in_tree_gas = yes; then
23270 if test $in_tree_gas_is_elf = yes \
23271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23272 then gcc_cv_as_hidden
=yes
23274 elif test x
$gcc_cv_as != x
; then
23275 $as_echo "$conftest_s" > conftest.s
23276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278 (eval $ac_try) 2>&5
23280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281 test $ac_status = 0; }; }
23283 gcc_cv_as_hidden
=yes
23285 echo "configure: failed program was" >&5
23288 rm -f conftest.o conftest.s
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23292 $as_echo "$gcc_cv_as_hidden" >&6; }
23295 case "${target}" in
23297 # Darwin as has some visibility support, though with a different syntax.
23298 gcc_cv_as_hidden
=yes
23302 # gnu_indirect_function type is an extension proposed at
23303 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23304 # selection of function implementation
23305 # Check whether --enable-gnu-indirect-function was given.
23306 if test "${enable_gnu_indirect_function+set}" = set; then :
23307 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23309 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23310 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23313 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23317 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23319 cat >>confdefs.h
<<_ACEOF
23320 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23325 if test $in_tree_ld != yes ; then
23326 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23327 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23328 if test x
"$ld_is_gold" = xyes
; then
23329 # GNU gold --version looks like this:
23331 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23333 # We extract the binutils version which is more familiar and specific
23334 # than the gold version.
23335 ld_vers
=`echo $ld_ver | sed -n \
23336 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23338 # GNU ld --version looks like this:
23340 # GNU ld (GNU Binutils) 2.21.51.20110225
23341 ld_vers
=`echo $ld_ver | sed -n \
23342 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23344 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23345 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23346 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23347 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23349 case "${target}" in
23351 # Solaris 2 ld -V output looks like this for a regular version:
23353 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23355 # but test versions add stuff at the end:
23357 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23359 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23360 # numbers can be used in ld.so.1 feature checks even if a different
23361 # linker is configured.
23362 ld_ver
=`$gcc_cv_ld -V 2>&1`
23363 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23364 ld_vers
=`echo $ld_ver | sed -n \
23365 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23366 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23367 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23375 $as_echo_n "checking linker for .hidden support... " >&6; }
23376 if ${gcc_cv_ld_hidden+:} false
; then :
23377 $as_echo_n "(cached) " >&6
23379 if test $in_tree_ld = yes ; then
23380 gcc_cv_ld_hidden
=no
23381 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 \
23382 && test $in_tree_ld_is_elf = yes; then
23383 gcc_cv_ld_hidden
=yes
23386 gcc_cv_ld_hidden
=yes
23387 if test x
"$ld_is_gold" = xyes
; then
23389 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23390 case "${target}" in
23391 mmix-knuth-mmixware
)
23392 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23393 gcc_cv_ld_hidden
=no
23396 if test 0"$ld_date" -lt 20020404; then
23397 if test -n "$ld_date"; then
23398 # If there was date string, but was earlier than 2002-04-04, fail
23399 gcc_cv_ld_hidden
=no
23400 elif test -z "$ld_vers"; then
23401 # If there was no date string nor ld version number, something is wrong
23402 gcc_cv_ld_hidden
=no
23404 test -z "$ld_vers_patch" && ld_vers_patch
=0
23405 if test "$ld_vers_major" -lt 2; then
23406 gcc_cv_ld_hidden
=no
23407 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23408 gcc_cv_ld_hidden
="no"
23409 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23410 gcc_cv_ld_hidden
=no
23415 case "${target}" in
23417 gcc_cv_ld_hidden
=yes
23420 # Darwin ld has some visibility support.
23421 gcc_cv_ld_hidden
=yes
23423 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23424 gcc_cv_ld_hidden
=yes
23427 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23428 # .symbolic was only added in Solaris 9 12/02.
23429 gcc_cv_ld_hidden
=yes
23432 gcc_cv_ld_hidden
=no
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23439 $as_echo "$gcc_cv_ld_hidden" >&6; }
23440 libgcc_visibility
=no
23443 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23444 libgcc_visibility
=yes
23446 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23451 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23452 gcc_cv_ld_ro_rw_mix
=unknown
23453 if test $in_tree_ld = yes ; then
23454 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 \
23455 && test $in_tree_ld_is_elf = yes; then
23456 gcc_cv_ld_ro_rw_mix
=read-write
23458 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23459 echo '.section myfoosect, "a"' > conftest1.s
23460 echo '.section myfoosect, "aw"' > conftest2.s
23461 echo '.byte 1' >> conftest2.s
23462 echo '.section myfoosect, "a"' > conftest3.s
23463 echo '.byte 0' >> conftest3.s
23464 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23465 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23466 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23467 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23468 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23469 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23470 | sed -e '/myfoosect/!d' -e N`
23471 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23472 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23473 gcc_cv_ld_ro_rw_mix
=read-only
23475 gcc_cv_ld_ro_rw_mix
=read-write
23479 rm -f conftest.
* conftest
[123].
*
23481 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23483 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23487 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23489 # Check whether --enable-initfini-array was given.
23490 if test "${enable_initfini_array+set}" = set; then :
23491 enableval
=$enable_initfini_array;
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23495 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23496 if ${gcc_cv_initfini_array+:} false
; then :
23497 $as_echo_n "(cached) " >&6
23499 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23500 case "${target}" in
23502 if test "$cross_compiling" = yes; then :
23503 gcc_cv_initfini_array
=no
23505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23509 #error Not an ELF OS
23511 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23512 if it can be used. */
23514 int main (void) { return x; }
23515 int foo (void) { x = 0; }
23516 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23519 if ac_fn_cxx_try_run
"$LINENO"; then :
23520 gcc_cv_initfini_array
=yes
23522 gcc_cv_initfini_array
=no
23524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23529 gcc_cv_initfini_array
=no
23530 if test $in_tree_ld = yes ; then
23531 if test "$gcc_cv_gld_major_version" -eq 2 \
23532 -a "$gcc_cv_gld_minor_version" -ge 22 \
23533 -o "$gcc_cv_gld_major_version" -gt 2 \
23534 && test $in_tree_ld_is_elf = yes; then
23535 gcc_cv_initfini_array
=yes
23537 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23538 case $target:$gas in
23541 sh_type
='%progbits'
23543 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23545 sh_type
='@progbits'
23547 sparc
*-*-solaris2*:no
)
23549 sh_type
='#progbits'
23553 case "$target:$gnu_ld" in
23555 cat > conftest.s
<<EOF
23556 .section .dtors,$sh_flags,$sh_type
23558 .byte 'A', 'A', 'A', 'A'
23559 .section .ctors,$sh_flags,$sh_type
23561 .byte 'B', 'B', 'B', 'B'
23562 .section .fini_array.65530,$sh_flags,$sh_type
23564 .byte 'C', 'C', 'C', 'C'
23565 .section .init_array.65530,$sh_flags,$sh_type
23567 .byte 'D', 'D', 'D', 'D'
23568 .section .dtors.64528,$sh_flags,$sh_type
23570 .byte 'E', 'E', 'E', 'E'
23571 .section .ctors.64528,$sh_flags,$sh_type
23573 .byte 'F', 'F', 'F', 'F'
23574 .section .fini_array.01005,$sh_flags,$sh_type
23576 .byte 'G', 'G', 'G', 'G'
23577 .section .init_array.01005,$sh_flags,$sh_type
23579 .byte 'H', 'H', 'H', 'H'
23584 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23585 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23586 && $gcc_cv_objdump -s -j .init_array conftest \
23587 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23588 && $gcc_cv_objdump -s -j .fini_array conftest \
23589 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23590 gcc_cv_initfini_array
=yes
23594 # When Solaris ld added constructor priority support, it was
23595 # decided to only handle .init_array.N/.fini_array.N since
23596 # there was no need for backwards compatibility with
23597 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23598 # sections with correct execution order resp. to
23599 # .init_array/.fini_array, while gld merges them into
23600 # .init_array/.fini_array.
23601 cat > conftest.s
<<EOF
23602 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23604 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23605 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23607 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23608 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23610 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23611 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23613 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23618 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23619 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23620 && $gcc_cv_objdump -s -j .init_array conftest \
23621 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23622 && $gcc_cv_objdump -s -j .fini_array conftest \
23623 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23624 gcc_cv_initfini_array
=yes
23628 rm -f conftest conftest.
*
23630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23631 /* end confdefs.h. */
23634 # error Not an ELF OS
23636 #include <stdlib.h>
23637 #if defined __GLIBC_PREREQ
23638 # if __GLIBC_PREREQ (2, 4)
23640 # error GLIBC 2.4 required
23643 # if defined __sun__ && defined __svr4__
23644 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23646 # error The C library not known to support .init_array/.fini_array
23651 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23654 gcc_cv_initfini_array
=no
23656 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23660 $as_echo_n "checking cross compile... guessing... " >&6; }
23661 gcc_cv_initfini_array
=no
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23665 $as_echo "$gcc_cv_initfini_array" >&6; }
23666 enable_initfini_array
=$gcc_cv_initfini_array
23671 cat >>confdefs.h
<<_ACEOF
23672 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23677 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23679 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23680 if ${gcc_cv_as_leb128+:} false
; then :
23681 $as_echo_n "(cached) " >&6
23683 gcc_cv_as_leb128
=no
23684 if test $in_tree_gas = yes; then
23685 if test $in_tree_gas_is_elf = yes \
23686 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23687 then gcc_cv_as_leb128
=yes
23689 elif test x
$gcc_cv_as != x
; then
23696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }
23703 # GAS versions before 2.11 do not support uleb128,
23704 # despite appearing to.
23705 # ??? There exists an elf-specific test that will crash
23706 # the assembler. Perhaps it's better to figure out whether
23707 # arbitrary sections are supported and try the test.
23708 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23709 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23710 as_vers
=`echo $as_ver | sed -n \
23711 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23712 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23713 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23714 if test $as_major -eq 2 && test $as_minor -lt 11
23716 else gcc_cv_as_leb128
=yes
23720 echo "configure: failed program was" >&5
23723 rm -f conftest.o conftest.s
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23727 $as_echo "$gcc_cv_as_leb128" >&6; }
23728 if test $gcc_cv_as_leb128 = yes; then
23730 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23733 if test $gcc_cv_as_leb128 != yes; then
23735 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23739 # Determine if an .eh_frame section is read-only.
23740 gcc_fn_eh_frame_ro
() {
23741 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23742 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23743 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23746 # Check if we have assembler support for unwind directives.
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23748 $as_echo_n "checking assembler for cfi directives... " >&6; }
23749 if ${gcc_cv_as_cfi_directive+:} false
; then :
23750 $as_echo_n "(cached) " >&6
23752 gcc_cv_as_cfi_directive
=no
23753 if test x
$gcc_cv_as != x
; then
23759 .cfi_escape 1, 2, 3, 4, 5
23760 .cfi_endproc' > conftest.s
23761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23763 (eval $ac_try) 2>&5
23765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23766 test $ac_status = 0; }; }
23770 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23771 # read-only and read-write sections, we need to make sure that the
23772 # assembler used emits read-write .eh_frame sections.
23773 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23774 gcc_cv_as_cfi_directive
=yes
23775 elif test "x$gcc_cv_objdump" = x
; then
23776 # No objdump, err on the side of caution.
23777 gcc_cv_as_cfi_directive
=no
23779 if test x
$gas = xyes
; then
23787 sparc
*-*-solaris2.
*)
23788 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23789 if gcc_fn_eh_frame_ro
$as_32_opt \
23790 || gcc_fn_eh_frame_ro
$as_64_opt; then
23791 gcc_cv_as_cfi_directive
=no
23793 gcc_cv_as_cfi_directive
=yes
23796 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23797 # On Solaris/x86, make sure that GCC and assembler agree on using
23798 # read-only .eh_frame sections for 64-bit.
23799 if gcc_fn_eh_frame_ro
$as_32_opt; then
23800 gcc_cv_as_cfi_directive
=no
23801 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23802 gcc_cv_as_cfi_directive
=yes
23804 gcc_cv_as_cfi_directive
=no
23811 gcc_cv_as_cfi_directive
=yes
23815 echo "configure: failed program was" >&5
23818 rm -f conftest.o conftest.s
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23822 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23825 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23827 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23828 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23829 $as_echo_n "(cached) " >&6
23831 gcc_cv_as_cfi_advance_working
=no
23832 if test x
$gcc_cv_as != x
; then
23835 .cfi_adjust_cfa_offset 64
23837 .cfi_adjust_cfa_offset 128
23838 .cfi_endproc' > conftest.s
23839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23847 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23848 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23849 gcc_cv_as_cfi_advance_working
=yes
23853 echo "configure: failed program was" >&5
23856 rm -f conftest.o conftest.s
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23860 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23864 # no objdump, err on the side of caution
23865 gcc_cv_as_cfi_advance_working
=no
23869 cat >>confdefs.h
<<_ACEOF
23870 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23871 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23877 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23878 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23879 $as_echo_n "(cached) " >&6
23881 gcc_cv_as_cfi_personality_directive
=no
23882 if test x
$gcc_cv_as != x
; then
23885 .cfi_personality 0, symbol
23886 .cfi_endproc' > conftest.s
23887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; }
23894 gcc_cv_as_cfi_personality_directive
=yes
23896 echo "configure: failed program was" >&5
23899 rm -f conftest.o conftest.s
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23903 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23907 cat >>confdefs.h
<<_ACEOF
23908 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23913 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23914 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23915 $as_echo_n "(cached) " >&6
23917 gcc_cv_as_cfi_sections_directive
=no
23918 if test x
$gcc_cv_as != x
; then
23920 .cfi_sections .debug_frame, .eh_frame
23922 .cfi_endproc' > conftest.s
23923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; }
23931 win32 | pe | cygwin
* | mingw32
*)
23932 # Need to check that we generated the correct relocation for the
23933 # .debug_frame section. This was fixed for binutils 2.21.
23934 gcc_cv_as_cfi_sections_directive
=no
23935 if test "x$gcc_cv_objdump" != x
; then
23936 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23937 grep secrel
> /dev
/null
; then
23938 gcc_cv_as_cfi_sections_directive
=yes
23943 gcc_cv_as_cfi_sections_directive
=yes
23947 echo "configure: failed program was" >&5
23950 rm -f conftest.o conftest.s
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23954 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23959 cat >>confdefs.h
<<_ACEOF
23960 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23964 # GAS versions up to and including 2.11.0 may mis-optimize
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23967 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23968 if ${gcc_cv_as_eh_frame+:} false
; then :
23969 $as_echo_n "(cached) " >&6
23971 gcc_cv_as_eh_frame
=no
23972 if test $in_tree_gas = yes; then
23973 if test $in_tree_gas_is_elf = yes \
23974 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23975 then gcc_cv_as_eh_frame
=yes
23977 elif test x
$gcc_cv_as != x
; then
23984 .section .eh_frame,"aw",@progbits
23986 .4byte .LECIE1-.LSCIE1
24000 .4byte .LEFDE1-.LASFDE1
24002 .4byte .LASFDE1-__FRAME_BEGIN__
24009 .LEFDE1:' > 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; }; }
24017 cat > conftest.lit
<<EOF
24018 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24019 0010 01000000 12000000 18000000 00000000 ................
24020 0020 08000000 04080000 0044 .........D
24022 cat > conftest.big
<<EOF
24023 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24024 0010 00000001 00000012 00000018 00000000 ................
24025 0020 00000008 04000000 0844 .........D
24027 # If the assembler didn't choke, and we can objdump,
24028 # and we got the correct data, then succeed.
24029 # The text in the here-document typically retains its unix-style line
24030 # endings, while the output of objdump will use host line endings.
24031 # Therefore, use diff -b for the comparisons.
24032 if test x
$gcc_cv_objdump != x \
24033 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24034 |
tail -3 > conftest.got \
24035 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24036 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24038 gcc_cv_as_eh_frame
=yes
24039 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24041 (eval $ac_try) 2>&5
24043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24044 test $ac_status = 0; }; }; then
24045 gcc_cv_as_eh_frame
=buggy
24047 # Uh oh, what do we do now?
24048 gcc_cv_as_eh_frame
=no
24051 echo "configure: failed program was" >&5
24054 rm -f conftest.o conftest.s
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24058 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24062 if test $gcc_cv_as_eh_frame = buggy
; then
24064 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24068 # Test if the assembler supports the section flag 'e' or #exclude for
24069 # specifying an excluded section.
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24071 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24072 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24073 $as_echo_n "(cached) " >&6
24075 gcc_cv_as_section_exclude_e
=no
24076 if test $in_tree_gas = yes; then
24077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24078 then gcc_cv_as_section_exclude_e
=yes
24080 elif test x
$gcc_cv_as != x
; then
24081 $as_echo '.section foo1,"e"
24082 .byte 0,0,0,0' > conftest.s
24083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24090 gcc_cv_as_section_exclude_e
=yes
24092 echo "configure: failed program was" >&5
24095 rm -f conftest.o conftest.s
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24099 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24102 if test $gcc_cv_as_section_exclude_e = no
; then
24103 case "${target}" in
24104 # Solaris as uses #exclude instead.
24106 case "${target}" in
24107 sparc
*-*-solaris2*)
24108 conftest_s
='.section "foo1", #exclude'
24110 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24111 conftest_s
='.section foo1, #exclude'
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24117 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24118 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24119 $as_echo_n "(cached) " >&6
24121 gcc_cv_as_section_exclude_hash
=no
24122 if test x
$gcc_cv_as != x
; then
24123 $as_echo "$conftest_s
24124 .byte 0,0,0,0" > conftest.s
24125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127 (eval $ac_try) 2>&5
24129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130 test $ac_status = 0; }; }
24132 gcc_cv_as_section_exclude_hash
=yes
24134 echo "configure: failed program was" >&5
24137 rm -f conftest.o conftest.s
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24141 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24146 cat >>confdefs.h
<<_ACEOF
24147 #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`
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24152 $as_echo_n "checking assembler for section merging support... " >&6; }
24153 if ${gcc_cv_as_shf_merge+:} false
; then :
24154 $as_echo_n "(cached) " >&6
24156 gcc_cv_as_shf_merge
=no
24157 if test $in_tree_gas = yes; then
24158 if test $in_tree_gas_is_elf = yes \
24159 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24160 then gcc_cv_as_shf_merge
=yes
24162 elif test x
$gcc_cv_as != x
; then
24163 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24166 (eval $ac_try) 2>&5
24168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; }
24171 gcc_cv_as_shf_merge
=yes
24173 echo "configure: failed program was" >&5
24176 rm -f conftest.o conftest.s
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24180 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24183 if test $gcc_cv_as_shf_merge = no
; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24185 $as_echo_n "checking assembler for section merging support... " >&6; }
24186 if ${gcc_cv_as_shf_merge+:} false
; then :
24187 $as_echo_n "(cached) " >&6
24189 gcc_cv_as_shf_merge
=no
24190 if test $in_tree_gas = yes; then
24191 if test $in_tree_gas_is_elf = yes \
24192 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24193 then gcc_cv_as_shf_merge
=yes
24195 elif test x
$gcc_cv_as != x
; then
24196 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24197 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }
24204 gcc_cv_as_shf_merge
=yes
24206 echo "configure: failed program was" >&5
24209 rm -f conftest.o conftest.s
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24213 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24218 cat >>confdefs.h
<<_ACEOF
24219 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24223 gcc_cv_ld_aligned_shf_merge
=yes
24225 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24227 sparc
*-*-solaris2.11
*)
24228 if test x
"$gnu_ld" = xno \
24229 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24230 gcc_cv_ld_aligned_shf_merge
=no
24235 cat >>confdefs.h
<<_ACEOF
24236 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24241 $as_echo_n "checking assembler for stabs directive... " >&6; }
24242 if ${gcc_cv_as_stabs_directive+:} false
; then :
24243 $as_echo_n "(cached) " >&6
24245 gcc_cv_as_stabs_directive
=no
24246 if test x
$gcc_cv_as != x
; then
24247 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24255 gcc_cv_as_stabs_directive
=yes
24257 echo "configure: failed program was" >&5
24260 rm -f conftest.o conftest.s
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24264 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24265 if test $gcc_cv_as_stabs_directive = yes; then
24267 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24273 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24274 if ${gcc_cv_as_comdat_group+:} false
; then :
24275 $as_echo_n "(cached) " >&6
24277 gcc_cv_as_comdat_group
=no
24278 if test $in_tree_gas = yes; then
24279 if test $in_tree_gas_is_elf = yes \
24280 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24281 then gcc_cv_as_comdat_group
=yes
24283 elif test x
$gcc_cv_as != x
; then
24284 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24292 gcc_cv_as_comdat_group
=yes
24294 echo "configure: failed program was" >&5
24297 rm -f conftest.o conftest.s
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24301 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24304 if test $gcc_cv_as_comdat_group = yes; then
24305 gcc_cv_as_comdat_group_percent
=no
24306 gcc_cv_as_comdat_group_group
=no
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24309 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24310 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24311 $as_echo_n "(cached) " >&6
24313 gcc_cv_as_comdat_group_percent
=no
24314 if test $in_tree_gas = yes; then
24315 if test $in_tree_gas_is_elf = yes \
24316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24317 then gcc_cv_as_comdat_group_percent
=yes
24319 elif test x
$gcc_cv_as != x
; then
24320 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24328 gcc_cv_as_comdat_group_percent
=yes
24330 echo "configure: failed program was" >&5
24333 rm -f conftest.o conftest.s
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24337 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24340 if test $gcc_cv_as_comdat_group_percent = yes; then
24341 gcc_cv_as_comdat_group_group
=no
24343 case "${target}" in
24344 # Sun as uses a completely different syntax.
24346 case "${target}" in
24347 sparc
*-*-solaris2*)
24349 .group foo,".text%foo",#comdat
24350 .section ".text%foo", #alloc,#execinstr,#progbits
24355 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24357 .group foo,.text%foo,#comdat
24358 .section .text%foo, "ax", @progbits
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24365 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24366 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24367 $as_echo_n "(cached) " >&6
24369 gcc_cv_as_comdat_group_group
=no
24370 if test x
$gcc_cv_as != x
; then
24371 $as_echo "$conftest_s" > conftest.s
24372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_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_group" >&5
24388 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24393 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24394 gcc_cv_as_comdat_group_group
=no
24398 if test x
"$ld_is_gold" = xyes
; then
24400 elif test $in_tree_ld = yes ; then
24402 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 \
24403 && test $in_tree_ld_is_elf = yes; then
24406 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24408 if test 0"$ld_date" -lt 20050308; then
24409 if test -n "$ld_date"; then
24410 # If there was date string, but was earlier than 2005-03-08, fail
24412 elif test "$ld_vers_major" -lt 2; then
24414 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24419 case "${target}" in
24420 *-*-solaris2.1
[1-9]*)
24422 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24423 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24426 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24427 # least ld version 1.2267.
24428 if test "$ld_vers_major" -gt 1; then
24430 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24432 elif test "$ld_vers_minor" -ge 2267; then
24437 # Assume linkers other than GNU ld don't support COMDAT group.
24442 # Allow overriding the automatic COMDAT group tests above.
24443 # Check whether --enable-comdat was given.
24444 if test "${enable_comdat+set}" = set; then :
24445 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24448 if test $comdat_group = no
; then
24449 gcc_cv_as_comdat_group
=no
24450 gcc_cv_as_comdat_group_percent
=no
24451 gcc_cv_as_comdat_group_group
=no
24454 cat >>confdefs.h
<<_ACEOF
24455 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24456 || test $gcc_cv_as_comdat_group_percent = yes \
24457 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24461 # Restrict this test to Solaris/x86: other targets define this statically.
24462 case "${target}" in
24463 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24465 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24466 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24467 hidden_linkonce
=yes
24469 case "${target}" in
24470 # Full support for hidden thunks in linkonce sections only appeared in
24471 # Solaris 11/OpenSolaris.
24472 *-*-solaris2.1
[1-9]*)
24473 hidden_linkonce
=yes
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24481 $as_echo "$hidden_linkonce" >&6; }
24483 cat >>confdefs.h
<<_ACEOF
24484 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24491 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24492 if ${gcc_cv_as_is_stmt+:} false
; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_is_stmt
=no
24496 if test $in_tree_gas = yes; then
24497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24498 then gcc_cv_as_is_stmt
=yes
24500 elif test x
$gcc_cv_as != x
; then
24503 .loc 1 1 0 is_stmt 1' > conftest.s
24504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24511 gcc_cv_as_is_stmt
=yes
24513 echo "configure: failed program was" >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24520 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24521 if test $gcc_cv_as_is_stmt = yes; then
24523 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24529 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24530 if ${gcc_cv_as_discriminator+:} false
; then :
24531 $as_echo_n "(cached) " >&6
24533 gcc_cv_as_discriminator
=no
24534 if test $in_tree_gas = yes; then
24535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24536 then gcc_cv_as_discriminator
=yes
24538 elif test x
$gcc_cv_as != x
; then
24541 .loc 1 1 0 discriminator 1' > conftest.s
24542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24549 gcc_cv_as_discriminator
=yes
24551 echo "configure: failed program was" >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24558 $as_echo "$gcc_cv_as_discriminator" >&6; }
24559 if test $gcc_cv_as_discriminator = yes; then
24561 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24566 # Catch the newlib flag of the same name so we can gate GCC features on it.
24567 # Check whether --enable-newlib-nano-formatted-io was given.
24568 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24569 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24573 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24579 # Thread-local storage - the check is heavily parameterized.
24587 .section ".tdata","awT",@progbits
24590 ldq $27,__tls_get_addr($29) !literal!1
24591 lda $16,foo($29) !tlsgd!1
24592 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24593 ldq $27,__tls_get_addr($29) !literal!2
24594 lda $16,foo($29) !tlsldm!2
24595 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24596 ldq $1,foo($29) !gotdtprel
24597 ldah $2,foo($29) !dtprelhi
24598 lda $3,foo($2) !dtprello
24599 lda $4,foo($29) !dtprel
24600 ldq $1,foo($29) !gottprel
24601 ldah $2,foo($29) !tprelhi
24602 lda $3,foo($2) !tprello
24603 lda $4,foo($29) !tprel'
24606 tls_as_opt
=--fatal-warnings
24610 add_s r0,r0, @foo@tpoff'
24614 cris-
*-*|crisv32-
*-*)
24616 .section ".tdata","awT",@progbits
24623 tls_as_opt
=--fatal-warnings
24627 .section ".tdata","awT",@progbits
24630 call #gettlsoff(x)'
24639 .section ".tdata","awT",@progbits
24643 addil LT%foo-$tls_gdidx$,gp
24644 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24647 addil LT%foo-$tls_ldidx$,gp
24649 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24650 addil LR%foo-$tls_dtpoff$,%ret0
24651 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24653 addil LT%foo-$tls_ieoff$,gp
24654 ldw RT%foo-$tls_ieoff$(%r1),%t2
24657 addil LR%foo-$tls_leoff$,%t1
24658 ldo RR%foo-$tls_leoff$(%r1),%t2'
24661 tls_as_opt
=--fatal-warnings
24665 .section ".tdata","awT",%progbits
24668 .word foo(gottpoff)
24676 i
[34567]86-*-* | x86_64-
*-*)
24678 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24685 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24687 .section .tdata,"awt",@progbits'
24692 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24696 .section ".tdata","awT",@progbits'
24700 tls_as_opt
="--fatal-warnings"
24704 conftest_s
="$conftest_s
24708 leal foo@tlsgd(,%ebx,1), %eax
24709 leal foo@tlsldm(%ebx), %eax
24710 leal foo@dtpoff(%eax), %edx
24711 movl foo@gottpoff(%ebx), %eax
24712 subl foo@gottpoff(%ebx), %eax
24713 addl foo@gotntpoff(%ebx), %eax
24714 movl foo@indntpoff, %eax
24715 movl \$foo@tpoff, %eax
24716 subl \$foo@tpoff, %eax
24717 leal foo@ntpoff(%ecx), %eax"
24720 if test x
$on_solaris = xyes
; then
24722 yes) tls_as_opt
="$tls_as_opt --64" ;;
24723 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24726 conftest_s
="$conftest_s
24730 leaq foo@tlsgd(%rip), %rdi
24731 leaq foo@tlsld(%rip), %rdi
24732 leaq foo@dtpoff(%rax), %rdx
24733 movq foo@gottpoff(%rip), %rax
24734 movq \$foo@tpoff, %rax"
24740 .section ".tdata","awT",@progbits
24743 addl r16 = @ltoff(@dtpmod(foo#)), gp
24744 addl r17 = @ltoff(@dtprel(foo#)), gp
24745 addl r18 = @ltoff(@tprel(foo#)), gp
24746 addl r19 = @dtprel(foo#), gp
24747 adds r21 = @dtprel(foo#), r13
24748 movl r23 = @dtprel(foo#)
24749 addl r20 = @tprel(foo#), gp
24750 adds r22 = @tprel(foo#), r13
24751 movl r24 = @tprel(foo#)'
24754 tls_as_opt
=--fatal-warnings
24758 .section .tdata,"awT",@progbits
24762 addik r5,r20,x@TLSGD
24763 addik r5,r20,x@TLSLDM'
24766 tls_as_opt
='--fatal-warnings'
24770 .section .tdata,"awT",@progbits
24774 addiu $4, $28, %tlsgd(x)
24775 addiu $4, $28, %tlsldm(x)
24776 lui $4, %dtprel_hi(x)
24777 addiu $4, $4, %dtprel_lo(x)
24778 lw $4, %gottprel(x)($28)
24779 lui $4, %tprel_hi(x)
24780 addiu $4, $4, %tprel_lo(x)'
24783 tls_as_opt
='-32 --fatal-warnings'
24787 .section .tdata,"awT",@progbits
24792 move.l x@TLSGD(%a5),%a0
24793 move.l x@TLSLDM(%a5),%a0
24794 move.l x@TLSLDO(%a5),%a0
24795 move.l x@TLSIE(%a5),%a0
24796 move.l x@TLSLE(%a5),%a0'
24799 tls_as_opt
='--fatal-warnings'
24803 .section ".tdata","awT",@progbits'
24806 tls_as_opt
="--fatal-warnings"
24810 .section ".tdata","awT",%progbits
24814 add x0, x0, #:tlsgd_lo12:x
24819 tls_as_opt
='--fatal-warnings'
24823 .section ".tdata","awT",@progbits
24826 l.movhi r3, tpoffha(foo)
24828 l.lwz r4, tpofflo(foo)(r3)'
24831 tls_as_opt
=--fatal-warnings
24835 .extern __get_tpointer
24853 .section ".tdata","awT",@progbits
24861 addi 3,2,ld0@got@tlsgd
24867 addi 3,2,x1@got@tlsld
24873 addis 9,3,x2@dtprel@ha
24874 addi 9,9,x2@dtprel@l
24877 ld 9,x3@got@dtprel(2)
24883 tls_as_opt
="-a64 --fatal-warnings"
24887 .section ".tdata","awT",@progbits
24895 addi 3,31,ld0@got@tlsgd
24897 addi 3,31,x1@got@tlsld
24900 addis 9,3,x2@dtprel@ha
24901 addi 9,9,x2@dtprel@l
24902 lwz 9,x3@got@tprel(31)
24905 addis 9,2,x2@tprel@ha
24906 addi 9,9,x2@tprel@l'
24909 tls_as_opt
="-a32 --fatal-warnings"
24913 .section .tdata,"awT",@progbits
24917 call __tls_get_addr'
24920 tls_as_opt
='--fatal-warnings'
24924 .section ".tdata","awT",@progbits
24931 .long foo@GOTNTPOFF
24932 .long foo@INDNTPOFF
24933 l %r1,foo@GOTNTPOFF(%r12)
24934 l %r1,0(%r1):tls_load:foo
24935 bas %r14,0(%r1,%r13):tls_gdcall:foo
24936 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24939 tls_as_opt
="-m31 --fatal-warnings"
24943 .section ".tdata","awT",@progbits
24950 .quad foo@GOTNTPOFF
24951 lg %r1,foo@GOTNTPOFF(%r12)
24952 larl %r1,foo@INDNTPOFF
24953 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24954 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24957 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24959 sh-
*-* | sh
[123456789lbe
]*-*-*)
24961 .section ".tdata","awT",@progbits
24971 tls_as_opt
=--fatal-warnings
24975 sparc
*-sun-solaris2.
*)
24982 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24984 .section ".tdata",#alloc,#write,#tls'
24989 .section ".tdata","awT",@progbits'
24992 tls_as_opt
="-32 --fatal-warnings"
24994 conftest_s
="$conftest_s
24997 sethi %tgd_hi22(foo), %o0
24998 add %o0, %tgd_lo10(foo), %o1
24999 add %l7, %o1, %o0, %tgd_add(foo)
25000 call __tls_get_addr, %tgd_call(foo)
25001 sethi %tldm_hi22(foo), %l1
25002 add %l1, %tldm_lo10(foo), %l2
25003 add %l7, %l2, %o0, %tldm_add(foo)
25004 call __tls_get_addr, %tldm_call(foo)
25005 sethi %tldo_hix22(foo), %l3
25006 xor %l3, %tldo_lox10(foo), %l4
25007 add %o0, %l4, %l5, %tldo_add(foo)
25008 sethi %tie_hi22(foo), %o3
25009 add %o3, %tie_lo10(foo), %o3
25010 ld [%l7 + %o3], %o2, %tie_ld(foo)
25011 add %g7, %o2, %o4, %tie_add(foo)
25012 sethi %tle_hix22(foo), %l1
25013 xor %l1, %tle_lox10(foo), %o5
25014 ld [%g7 + %o5], %o1"
25018 .section ".tdata","awT",@progbits
25021 addli r0, zero, tls_gd(foo)
25022 auli r0, zero, tls_gd_ha16(foo)
25023 addli r0, r0, tls_gd_lo16(foo)
25025 addli r0, zero, tls_ie(foo)
25026 auli r0, r0, tls_ie_ha16(foo)
25027 addli r0, r0, tls_ie_lo16(foo)'
25030 tls_as_opt
="--fatal-warnings"
25034 .section ".tdata","awT",@progbits
25037 shl16insli r0, zero, hw0_last_tls_gd(foo)
25038 shl16insli r0, zero, hw1_last_tls_gd(foo)
25039 shl16insli r0, r0, hw0_tls_gd(foo)
25041 shl16insli r0, zero, hw1_last_tls_ie(foo)
25042 shl16insli r0, r0, hw0_tls_ie(foo)'
25045 tls_as_opt
="--fatal-warnings"
25049 .section ".tdata","awT",@progbits
25052 movi a8, foo@TLSFUNC
25053 movi a10, foo@TLSARG
25054 callx8.tls a8, foo@TLSCALL'
25060 if test "x$enable_tls" = xno
; then
25061 : # TLS explicitly disabled.
25062 elif test "x$enable_tls" = xyes
; then
25063 set_have_as_tls
=yes # TLS explicitly enabled.
25064 elif test -z "$tls_first_major"; then
25065 : # If we don't have a check, assume no support.
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25068 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25069 if ${gcc_cv_as_tls+:} false
; then :
25070 $as_echo_n "(cached) " >&6
25073 if test $in_tree_gas = yes; then
25074 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25075 then gcc_cv_as_tls
=yes
25077 elif test x
$gcc_cv_as != x
; then
25078 $as_echo "$conftest_s" > conftest.s
25079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25081 (eval $ac_try) 2>&5
25083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084 test $ac_status = 0; }; }
25088 echo "configure: failed program was" >&5
25091 rm -f conftest.o conftest.s
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25095 $as_echo "$gcc_cv_as_tls" >&6; }
25096 if test $gcc_cv_as_tls = yes; then
25097 set_have_as_tls
=yes
25101 if test $set_have_as_tls = yes ; then
25103 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25107 # Target-specific assembler checks.
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25110 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25111 gcc_cv_ld_static_dynamic
=no
25112 gcc_cv_ld_static_option
='-Bstatic'
25113 gcc_cv_ld_dynamic_option
='-Bdynamic'
25114 if test $in_tree_ld = yes ; then
25115 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
25116 gcc_cv_ld_static_dynamic
=yes
25118 elif test x
$gcc_cv_ld != x
; then
25119 # Check if linker supports -Bstatic/-Bdynamic option
25120 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25121 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25122 gcc_cv_ld_static_dynamic
=yes
25125 # AIX ld uses -b flags
25126 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25127 gcc_cv_ld_static_dynamic
=yes
25128 gcc_cv_ld_static_option
="-bstatic"
25129 gcc_cv_ld_dynamic_option
="-bdynamic"
25131 # HP-UX ld uses -a flags to select between shared and archive.
25133 if test x
"$gnu_ld" = xno
; then
25134 gcc_cv_ld_static_dynamic
=yes
25135 gcc_cv_ld_static_option
="-aarchive_shared"
25136 gcc_cv_ld_dynamic_option
="-adefault"
25139 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25141 gcc_cv_ld_static_dynamic
=yes
25146 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25148 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25151 cat >>confdefs.h
<<_ACEOF
25152 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25156 cat >>confdefs.h
<<_ACEOF
25157 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25162 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25165 $as_echo_n "checking linker --version-script option... " >&6; }
25166 gcc_cv_ld_version_script
=no
25167 ld_version_script_option
=''
25168 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25169 gcc_cv_ld_version_script
=yes
25170 ld_version_script_option
='--version-script'
25171 elif test x
$gcc_cv_ld != x
; then
25173 # Solaris 2 ld always supports -M. It also supports a subset of
25174 # --version-script since Solaris 11.4, but requires
25175 # -z gnu-version-script-compat to activate.
25177 gcc_cv_ld_version_script
=yes
25178 ld_version_script_option
='-M'
25182 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25184 $as_echo "$gcc_cv_ld_version_script" >&6; }
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25188 $as_echo_n "checking linker soname option... " >&6; }
25189 gcc_cv_ld_soname
=no
25190 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25191 gcc_cv_ld_soname
=yes
25192 ld_soname_option
='-soname'
25193 elif test x
$gcc_cv_ld != x
; then
25196 gcc_cv_ld_soname
=yes
25197 ld_soname_option
='-install_name'
25199 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25200 # ld compatiblity since some Solaris 10 update.
25202 gcc_cv_ld_soname
=yes
25203 ld_soname_option
='-h'
25207 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25209 $as_echo "$gcc_cv_ld_soname" >&6; }
25212 if test x
"$demangler_in_ld" = xyes
; then
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25214 $as_echo_n "checking linker --demangle support... " >&6; }
25215 gcc_cv_ld_demangle
=no
25216 if test $in_tree_ld = yes; then
25217 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 \
25218 gcc_cv_ld_demangle
=yes
25220 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25221 # Check if the GNU linker supports --demangle option
25222 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25223 gcc_cv_ld_demangle
=yes
25226 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25228 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25232 $as_echo "$gcc_cv_ld_demangle" >&6; }
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25236 $as_echo_n "checking linker plugin support... " >&6; }
25237 gcc_cv_lto_plugin
=0
25238 if test -f liblto_plugin.la
; then
25239 save_ld_ver
="$ld_ver"
25240 save_ld_vers_major
="$ld_vers_major"
25241 save_ld_vers_minor
="$ld_vers_minor"
25242 save_ld_is_gold
="$ld_is_gold"
25246 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25248 # FIXME: ld_is_gold?
25249 ld_vers_major
="$gcc_cv_gld_major_version"
25250 ld_vers_minor
="$gcc_cv_gld_minor_version"
25252 # Determine plugin linker version.
25253 # FIXME: Partial duplicate from above, generalize.
25254 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25255 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25256 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25258 ld_vers
=`echo $ld_ver | sed -n \
25259 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25261 ld_vers
=`echo $ld_ver | sed -n \
25262 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25264 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25265 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25269 # Determine plugin support.
25270 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25271 # Require GNU ld or gold 2.21+ for plugin support by default.
25272 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25273 gcc_cv_lto_plugin
=2
25274 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25275 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25276 gcc_cv_lto_plugin
=1
25280 ld_ver
="$save_ld_ver"
25281 ld_vers_major
="$save_ld_vers_major"
25282 ld_vers_minor
="$save_ld_vers_minor"
25283 ld_is_gold
="$save_ld_is_gold"
25286 cat >>confdefs.h
<<_ACEOF
25287 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25291 $as_echo "$gcc_cv_lto_plugin" >&6; }
25293 # Target OS-specific assembler checks.
25295 case "$target_os" in
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25298 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25299 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25300 $as_echo_n "(cached) " >&6
25302 gcc_cv_as_mmacosx_version_min
=no
25303 if test x
$gcc_cv_as != x
; then
25304 $as_echo '.text' > conftest.s
25305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307 (eval $ac_try) 2>&5
25309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310 test $ac_status = 0; }; }
25312 gcc_cv_as_mmacosx_version_min
=yes
25314 echo "configure: failed program was" >&5
25317 rm -f conftest.o conftest.s
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25321 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25322 if test $gcc_cv_as_mmacosx_version_min = yes; then
25324 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25331 # Target CPU-specific assembler checks.
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25336 $as_echo_n "checking assembler for -mabi option... " >&6; }
25337 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25338 $as_echo_n "(cached) " >&6
25340 gcc_cv_as_aarch64_mabi
=no
25341 if test x
$gcc_cv_as != x
; then
25342 $as_echo '.text' > conftest.s
25343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25350 gcc_cv_as_aarch64_mabi
=yes
25352 echo "configure: failed program was" >&5
25355 rm -f conftest.o conftest.s
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25359 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25362 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25364 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25367 if test x
$with_abi = xilp32
; then
25368 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25369 Upgrade the Assembler." "$LINENO" 5
25371 if test x
"$with_multilib_list" = xdefault
; then
25372 TM_MULTILIB_CONFIG
=lp64
25374 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25375 for aarch64_multilib
in ${aarch64_multilibs}; do
25376 case ${aarch64_multilib} in
25378 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25379 Upgrade the Assembler." "$LINENO" 5
25387 # Check if we have binutils support for relocations types needed by -fpic
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25389 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25390 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25391 $as_echo_n "(cached) " >&6
25393 gcc_cv_as_aarch64_picreloc
=no
25394 if test x
$gcc_cv_as != x
; then
25397 ldr x0, [x2, #:gotpage_lo15:globalsym]
25399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25406 gcc_cv_as_aarch64_picreloc
=yes
25408 echo "configure: failed program was" >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25415 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25416 if test $gcc_cv_as_aarch64_picreloc = yes; then
25418 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25422 # Enable Branch Target Identification Mechanism and Return Address
25423 # Signing by default.
25424 # Check whether --enable-standard-branch-protection was given.
25425 if test "${enable_standard_branch_protection+set}" = set; then :
25426 enableval
=$enable_standard_branch_protection;
25429 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25434 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25435 Valid choices are 'yes' and 'no'." "$LINENO" 5
25441 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25442 # Check whether --enable-fix-cortex-a53-835769 was given.
25443 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25444 enableval
=$enable_fix_cortex_a53_835769;
25447 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25452 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25453 Valid choices are 'yes' and 'no'." "$LINENO" 5
25460 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25461 # Check whether --enable-fix-cortex-a53-843419 was given.
25462 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25463 enableval
=$enable_fix_cortex_a53_843419;
25466 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25471 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25472 Valid choices are 'yes' and 'no'." "$LINENO" 5
25481 # All TARGET_ABI_OSF targets.
25482 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25484 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25485 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25486 $as_echo_n "(cached) " >&6
25488 gcc_cv_as_alpha_explicit_relocs
=no
25489 if test $in_tree_gas = yes; then
25490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25491 then gcc_cv_as_alpha_explicit_relocs
=yes
25493 elif test x
$gcc_cv_as != x
; then
25494 $as_echo ' .set nomacro
25496 extbl $3, $2, $3 !lituse_bytoff!1
25497 ldq $2, a($29) !literal!1
25498 ldq $4, b($29) !literal!2
25499 ldq_u $3, 0($2) !lituse_base!1
25500 ldq $27, f($29) !literal!5
25501 jsr $26, ($27), f !lituse_jsr!5
25502 ldah $29, 0($26) !gpdisp!3
25503 lda $0, c($29) !gprel
25504 ldah $1, d($29) !gprelhigh
25505 lda $1, d($1) !gprellow
25506 lda $29, 0($29) !gpdisp!3' > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 gcc_cv_as_alpha_explicit_relocs
=yes
25516 echo "configure: failed program was" >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25523 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25524 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25526 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25531 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25532 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25533 $as_echo_n "(cached) " >&6
25535 gcc_cv_as_alpha_jsrdirect_relocs
=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25538 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25540 elif test x
$gcc_cv_as != x
; then
25541 $as_echo ' .set nomacro
25543 ldq $27, a($29) !literal!1
25544 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25552 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25554 echo "configure: failed program was" >&5
25557 rm -f conftest.o conftest.s
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25561 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25562 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25564 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25572 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25573 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25574 $as_echo_n "(cached) " >&6
25576 gcc_cv_as_avr_mlink_relax
=no
25577 if test x
$gcc_cv_as != x
; then
25578 $as_echo '.text' > conftest.s
25579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25586 gcc_cv_as_avr_mlink_relax
=yes
25588 echo "configure: failed program was" >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25595 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25596 if test $gcc_cv_as_avr_mlink_relax = yes; then
25598 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25604 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25605 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25606 $as_echo_n "(cached) " >&6
25608 gcc_cv_as_avr_mrmw
=no
25609 if test x
$gcc_cv_as != x
; then
25610 $as_echo '.text' > conftest.s
25611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25618 gcc_cv_as_avr_mrmw
=yes
25620 echo "configure: failed program was" >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25627 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25628 if test $gcc_cv_as_avr_mrmw = yes; then
25630 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25636 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25637 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25638 $as_echo_n "(cached) " >&6
25640 gcc_cv_as_avr_mgccisr
=no
25641 if test x
$gcc_cv_as != x
; then
25647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25654 gcc_cv_as_avr_mgccisr
=yes
25656 echo "configure: failed program was" >&5
25659 rm -f conftest.o conftest.s
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25663 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25664 if test $gcc_cv_as_avr_mgccisr = yes; then
25666 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25671 # Check how default linker description file implements .rodata for
25672 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25673 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25675 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25676 cat > conftest.s
<<EOF
25677 .section .rodata,"a",@progbits
25679 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25684 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25690 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25698 (eval $ac_try) 2>&5
25700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25701 test $ac_status = 0; }; }
25702 if test -s conftest.nm
25704 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25706 $as_echo "yes" >&6; }
25708 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25712 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25713 echo "$as_me: nm output was" >&5
25714 cat conftest.nm
>&5
25715 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25716 { $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
25717 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25721 $as_echo "test failed" >&6; }
25722 echo "$as_me: failed program was" >&5
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25725 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25727 rm -f conftest.s conftest.o conftest.elf conftest.nm
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25732 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25733 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25734 $as_echo_n "(cached) " >&6
25736 gcc_cv_as_cris_no_mul_bug
=no
25737 if test $in_tree_gas = yes; then
25738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25739 then gcc_cv_as_cris_no_mul_bug
=yes
25741 elif test x
$gcc_cv_as != x
; then
25742 $as_echo '.text' > conftest.s
25743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; }
25750 gcc_cv_as_cris_no_mul_bug
=yes
25752 echo "configure: failed program was" >&5
25755 rm -f conftest.o conftest.s
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25759 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25760 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25762 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25770 $as_echo_n "checking assembler for -relax option... " >&6; }
25771 if ${gcc_cv_as_sparc_relax+:} false
; then :
25772 $as_echo_n "(cached) " >&6
25774 gcc_cv_as_sparc_relax
=no
25775 if test x
$gcc_cv_as != x
; then
25776 $as_echo '.text' > conftest.s
25777 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25779 (eval $ac_try) 2>&5
25781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25782 test $ac_status = 0; }; }
25784 gcc_cv_as_sparc_relax
=yes
25786 echo "configure: failed program was" >&5
25789 rm -f conftest.o conftest.s
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25793 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25794 if test $gcc_cv_as_sparc_relax = yes; then
25796 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25802 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25803 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25804 $as_echo_n "(cached) " >&6
25806 gcc_cv_as_sparc_gotdata_op
=no
25807 if test x
$gcc_cv_as != x
; then
25813 sethi %gdop_hix22(foo), %g1
25814 xor %g1, %gdop_lox10(foo), %g1
25815 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25823 if test x
$gcc_cv_ld != x \
25824 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25825 if test x
$gcc_cv_objdump != x
; then
25826 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25827 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25828 gcc_cv_as_sparc_gotdata_op
=no
25830 gcc_cv_as_sparc_gotdata_op
=yes
25836 echo "configure: failed program was" >&5
25839 rm -f conftest.o conftest.s
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25843 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25844 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25846 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25852 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25853 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25854 $as_echo_n "(cached) " >&6
25856 gcc_cv_as_sparc_ua_pcrel
=no
25857 if test x
$gcc_cv_as != x
; then
25864 .uaword %r_disp32(foo)' > conftest.s
25865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25872 if test x
$gcc_cv_ld != x \
25873 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25874 gcc_cv_as_sparc_ua_pcrel
=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_ua_pcrel" >&5
25885 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25886 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25888 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25892 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25893 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25894 $as_echo_n "(cached) " >&6
25896 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25897 if test x
$gcc_cv_as != x
; then
25901 .uaword %r_disp32(foo)
25902 .byte 0x32, 0x33, 0x34
25906 .skip 4' > conftest.s
25907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25909 (eval $ac_try) 2>&5
25911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912 test $ac_status = 0; }; }
25914 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25915 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25916 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25917 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25918 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25919 |
grep 'DISP32' > /dev
/null
2>&1; then
25922 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25927 echo "configure: failed program was" >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25934 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25935 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25937 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25943 # unaligned pcrel relocs
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25946 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25947 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25948 $as_echo_n "(cached) " >&6
25950 gcc_cv_as_sparc_offsetable_lo10
=no
25951 if test x
$gcc_cv_as != x
; then
25953 or %g1, %lo(ab) + 12, %g1
25954 or %g1, %lo(ab + 12), %g1' > conftest.s
25955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25962 if test x
$gcc_cv_objdump != x \
25963 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25964 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25965 gcc_cv_as_sparc_offsetable_lo10
=yes
25968 echo "configure: failed program was" >&5
25971 rm -f conftest.o conftest.s
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25975 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25976 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25978 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25984 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25985 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
25986 $as_echo_n "(cached) " >&6
25988 gcc_cv_as_sparc_fmaf
=no
25989 if test x
$gcc_cv_as != x
; then
25991 .register %g2, #scratch
25992 .register %g3, #scratch
25994 fmaddd %f0, %f2, %f4, %f6
25995 addxccc %g1, %g2, %g3
25996 fsrl32 %f2, %f4, %f8
25997 fnaddd %f10, %f12, %f14' > conftest.s
25998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_sparc_fmaf
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26014 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26015 if test $gcc_cv_as_sparc_fmaf = yes; then
26017 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26023 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26024 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26025 $as_echo_n "(cached) " >&6
26027 gcc_cv_as_sparc_sparc4
=no
26028 if test x
$gcc_cv_as != x
; then
26030 .register %g2, #scratch
26031 .register %g3, #scratch
26034 1: cwbneg %g2, %g3, 1f
26037 aes_kexpand0 %f4, %f6, %f8
26038 des_round %f38, %f40, %f42, %f44
26039 camellia_f %f54, %f56, %f58, %f60
26040 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26048 gcc_cv_as_sparc_sparc4
=yes
26050 echo "configure: failed program was" >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26057 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26058 if test $gcc_cv_as_sparc_sparc4 = yes; then
26060 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26066 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26067 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26068 $as_echo_n "(cached) " >&6
26070 gcc_cv_as_sparc_sparc5
=no
26071 if test x
$gcc_cv_as != x
; then
26073 .register %g2, #scratch
26074 .register %g3, #scratch
26076 subxc %g1, %g2, %g3
26077 fpadd8 %f0, %f2, %f4' > conftest.s
26078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26085 gcc_cv_as_sparc_sparc5
=yes
26087 echo "configure: failed program was" >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26094 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26095 if test $gcc_cv_as_sparc_sparc5 = yes; then
26097 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26103 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26104 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26105 $as_echo_n "(cached) " >&6
26107 gcc_cv_as_sparc_sparc6
=no
26108 if test x
$gcc_cv_as != x
; then
26110 .register %g2, #scratch
26111 .register %g3, #scratch
26114 fpsll64x %f0, %f2, %f4' > conftest.s
26115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26122 gcc_cv_as_sparc_sparc6
=yes
26124 echo "configure: failed program was" >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26131 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26132 if test $gcc_cv_as_sparc_sparc6 = yes; then
26134 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26140 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26141 if ${gcc_cv_as_sparc_leon+:} false
; then :
26142 $as_echo_n "(cached) " >&6
26144 gcc_cv_as_sparc_leon
=no
26145 if test x
$gcc_cv_as != x
; then
26147 .register %g2, #scratch
26148 .register %g3, #scratch
26152 casa [%g2] 0xb, %g3, %g1' > conftest.s
26153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26160 gcc_cv_as_sparc_leon
=yes
26162 echo "configure: failed program was" >&5
26165 rm -f conftest.o conftest.s
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26169 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26170 if test $gcc_cv_as_sparc_leon = yes; then
26172 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26178 i
[34567]86-*-* | x86_64-
*-*)
26181 # Full C++ conformance when using a shared libstdc++-v3 requires some
26182 # support from the Cygwin DLL, which in more recent versions exports
26183 # wrappers to aid in interposing and redirecting operators new, delete,
26184 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26185 # are configuring for a version of Cygwin that exports the wrappers.
26186 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26187 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26188 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26189 gcc_ac_cygwin_dll_wrappers
=yes
26191 gcc_ac_cygwin_dll_wrappers
=no
26195 # Can't check presence of libc functions during cross-compile, so
26196 # we just have to assume we're building for an up-to-date target.
26197 gcc_ac_cygwin_dll_wrappers
=yes
26200 cat >>confdefs.h
<<_ACEOF
26201 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26206 cygwin
* | pe | mingw32
*)
26207 # Recent binutils allows the three-operand form of ".comm" on PE. This
26208 # definition is used unconditionally to initialise the default state of
26209 # the target option variable that governs usage of the feature.
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26211 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26212 if ${gcc_cv_as_comm_has_align+:} false
; then :
26213 $as_echo_n "(cached) " >&6
26215 gcc_cv_as_comm_has_align
=no
26216 if test $in_tree_gas = yes; then
26217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26218 then gcc_cv_as_comm_has_align
=yes
26220 elif test x
$gcc_cv_as != x
; then
26221 $as_echo '.comm foo,1,32' > conftest.s
26222 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26224 (eval $ac_try) 2>&5
26226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26227 test $ac_status = 0; }; }
26229 gcc_cv_as_comm_has_align
=yes
26231 echo "configure: failed program was" >&5
26234 rm -f conftest.o conftest.s
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26238 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26242 cat >>confdefs.h
<<_ACEOF
26243 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26246 # Used for DWARF 2 in PE
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26248 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26249 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26250 $as_echo_n "(cached) " >&6
26252 gcc_cv_as_ix86_pe_secrel32
=no
26253 if test $in_tree_gas = yes; then
26254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26255 then gcc_cv_as_ix86_pe_secrel32
=yes
26257 elif test x
$gcc_cv_as != x
; then
26261 .secrel32 foo' > conftest.s
26262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }
26269 if test x
$gcc_cv_ld != x \
26270 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26271 gcc_cv_as_ix86_pe_secrel32
=yes
26275 echo "configure: failed program was" >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26282 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26283 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26285 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26289 # Test if the assembler supports the extended form of the .section
26290 # directive that specifies section alignment. LTO support uses this,
26291 # but normally only after installation, so we warn but don't fail the
26292 # configure if LTO is enabled but the assembler does not support it.
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26294 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26295 if ${gcc_cv_as_section_has_align+:} false
; then :
26296 $as_echo_n "(cached) " >&6
26298 gcc_cv_as_section_has_align
=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26301 then gcc_cv_as_section_has_align
=yes
26303 elif test x
$gcc_cv_as != x
; then
26304 $as_echo '.section lto_test,"dr0"' > conftest.s
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 gcc_cv_as_section_has_align
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26321 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26324 if test x
$gcc_cv_as_section_has_align != xyes
; then
26325 case ",$enable_languages," in
26327 { $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
26328 $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;}
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26336 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26337 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26338 $as_echo_n "(cached) " >&6
26340 gcc_cv_as_ix86_xbrace_comment
=no
26341 if test x
$gcc_cv_as != x
; then
26342 $as_echo '.text' > conftest.s
26343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26345 (eval $ac_try) 2>&5
26347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26348 test $ac_status = 0; }; }
26350 gcc_cv_as_ix86_xbrace_comment
=yes
26352 echo "configure: failed program was" >&5
26355 rm -f conftest.o conftest.s
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26359 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26360 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26362 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26368 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26369 if ${gcc_cv_as_ix86_filds+:} false
; then :
26370 $as_echo_n "(cached) " >&6
26372 gcc_cv_as_ix86_filds
=no
26373 if test x
$gcc_cv_as != x
; then
26374 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26377 (eval $ac_try) 2>&5
26379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26380 test $ac_status = 0; }; }
26382 gcc_cv_as_ix86_filds
=yes
26384 echo "configure: failed program was" >&5
26387 rm -f conftest.o conftest.s
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26391 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26392 if test $gcc_cv_as_ix86_filds = yes; then
26394 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26400 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26401 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26402 $as_echo_n "(cached) " >&6
26404 gcc_cv_as_ix86_fildq
=no
26405 if test x
$gcc_cv_as != x
; then
26406 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26407 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26409 (eval $ac_try) 2>&5
26411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26412 test $ac_status = 0; }; }
26414 gcc_cv_as_ix86_fildq
=yes
26416 echo "configure: failed program was" >&5
26419 rm -f conftest.o conftest.s
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26423 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26424 if test $gcc_cv_as_ix86_fildq = yes; then
26426 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26432 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26433 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26434 $as_echo_n "(cached) " >&6
26436 gcc_cv_as_ix86_cmov_sun_syntax
=no
26437 if test x
$gcc_cv_as != x
; then
26438 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26446 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26448 echo "configure: failed program was" >&5
26451 rm -f conftest.o conftest.s
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26455 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26456 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26458 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26464 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26465 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26466 $as_echo_n "(cached) " >&6
26468 gcc_cv_as_ix86_ffreep
=no
26469 if test x
$gcc_cv_as != x
; then
26470 $as_echo 'ffreep %st(1)' > conftest.s
26471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26478 gcc_cv_as_ix86_ffreep
=yes
26480 echo "configure: failed program was" >&5
26483 rm -f conftest.o conftest.s
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26487 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26488 if test $gcc_cv_as_ix86_ffreep = yes; then
26490 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26496 $as_echo_n "checking assembler for .quad directive... " >&6; }
26497 if ${gcc_cv_as_ix86_quad+:} false
; then :
26498 $as_echo_n "(cached) " >&6
26500 gcc_cv_as_ix86_quad
=no
26501 if test x
$gcc_cv_as != x
; then
26502 $as_echo '.quad 0' > conftest.s
26503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26505 (eval $ac_try) 2>&5
26507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26508 test $ac_status = 0; }; }
26510 gcc_cv_as_ix86_quad
=yes
26512 echo "configure: failed program was" >&5
26515 rm -f conftest.o conftest.s
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26519 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26520 if test $gcc_cv_as_ix86_quad = yes; then
26522 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26528 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26529 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26530 $as_echo_n "(cached) " >&6
26532 gcc_cv_as_ix86_sahf
=no
26533 if test x
$gcc_cv_as != x
; then
26536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26538 (eval $ac_try) 2>&5
26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541 test $ac_status = 0; }; }
26543 gcc_cv_as_ix86_sahf
=yes
26545 echo "configure: failed program was" >&5
26548 rm -f conftest.o conftest.s
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26552 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26553 if test $gcc_cv_as_ix86_sahf = yes; then
26555 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26561 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26562 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26563 $as_echo_n "(cached) " >&6
26565 gcc_cv_as_ix86_interunit_movq
=no
26566 if test x
$gcc_cv_as != x
; then
26569 movq %rax, %xmm0' > conftest.s
26570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26572 (eval $ac_try) 2>&5
26574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26575 test $ac_status = 0; }; }
26577 gcc_cv_as_ix86_interunit_movq
=yes
26579 echo "configure: failed program was" >&5
26582 rm -f conftest.o conftest.s
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26586 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26590 cat >>confdefs.h
<<_ACEOF
26591 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26596 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26597 if ${gcc_cv_as_ix86_hle+:} false
; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_as_ix86_hle
=no
26601 if test x
$gcc_cv_as != x
; then
26602 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605 (eval $ac_try) 2>&5
26607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608 test $ac_status = 0; }; }
26610 gcc_cv_as_ix86_hle
=yes
26612 echo "configure: failed program was" >&5
26615 rm -f conftest.o conftest.s
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26619 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26620 if test $gcc_cv_as_ix86_hle = yes; then
26622 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26628 $as_echo_n "checking assembler for swap suffix... " >&6; }
26629 if ${gcc_cv_as_ix86_swap+:} false
; then :
26630 $as_echo_n "(cached) " >&6
26632 gcc_cv_as_ix86_swap
=no
26633 if test x
$gcc_cv_as != x
; then
26634 $as_echo 'movl.s %esp, %ebp' > conftest.s
26635 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26642 gcc_cv_as_ix86_swap
=yes
26644 echo "configure: failed program was" >&5
26647 rm -f conftest.o conftest.s
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26651 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26652 if test $gcc_cv_as_ix86_swap = yes; then
26654 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26660 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26661 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26662 $as_echo_n "(cached) " >&6
26664 gcc_cv_as_ix86_diff_sect_delta
=no
26665 if test x
$gcc_cv_as != x
; then
26666 $as_echo '.section .rodata
26672 .L2: nop' > conftest.s
26673 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26675 (eval $ac_try) 2>&5
26677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26678 test $ac_status = 0; }; }
26680 gcc_cv_as_ix86_diff_sect_delta
=yes
26682 echo "configure: failed program was" >&5
26685 rm -f conftest.o conftest.s
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26689 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26690 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26692 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26698 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26699 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26700 $as_echo_n "(cached) " >&6
26702 gcc_cv_as_ix86_rep_lock_prefix
=no
26703 if test x
$gcc_cv_as != x
; then
26704 $as_echo 'rep movsl
26709 lock addl %edi, (%eax,%esi)
26710 lock orl $0, (%esp)' > conftest.s
26711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26718 gcc_cv_as_ix86_rep_lock_prefix
=yes
26720 echo "configure: failed program was" >&5
26723 rm -f conftest.o conftest.s
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26727 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26728 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26730 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26736 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26737 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26738 $as_echo_n "(cached) " >&6
26740 gcc_cv_as_ix86_ud2
=no
26741 if test x
$gcc_cv_as != x
; then
26742 $as_echo 'ud2' > conftest.s
26743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26750 gcc_cv_as_ix86_ud2
=yes
26752 echo "configure: failed program was" >&5
26755 rm -f conftest.o conftest.s
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26759 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26760 if test $gcc_cv_as_ix86_ud2 = yes; then
26762 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26767 # Enforce 32-bit output with gas and gld.
26768 if test x
$gas = xyes
; then
26769 as_ix86_gas_32_opt
="--32"
26771 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26772 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26773 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26775 ld_ix86_gld_32_opt
="-melf_i386"
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26780 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26781 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26782 $as_echo_n "(cached) " >&6
26784 gcc_cv_as_ix86_tlsgdplt
=no
26785 if test x
$gcc_cv_as != x
; then
26786 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26794 if test x
$gcc_cv_ld != x \
26795 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26796 gcc_cv_as_ix86_tlsgdplt
=yes
26800 echo "configure: failed program was" >&5
26803 rm -f conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26807 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26808 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26810 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26816 .section .tdata,"aw'$tls_section_flag'",@progbits
26818 .section .text,"ax",@progbits
26819 call tls_ld@tlsldmplt'
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26822 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26823 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26824 $as_echo_n "(cached) " >&6
26826 gcc_cv_as_ix86_tlsldmplt
=no
26827 if test x
$gcc_cv_as != x
; then
26828 $as_echo "$conftest_s" > conftest.s
26829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26836 if test x
$gcc_cv_ld != x \
26837 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26838 gcc_cv_as_ix86_tlsldmplt
=yes
26842 echo "configure: failed program was" >&5
26845 rm -f conftest.o conftest.s
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26849 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26853 cat >>confdefs.h
<<_ACEOF
26854 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26859 .section .text,"ax",@progbits
26861 .type _start, @function
26863 leal value@tlsldm(%ebx), %eax
26864 call ___tls_get_addr@plt
26866 .section .tdata,"aw'$tls_section_flag'",@progbits
26867 .type value, @object
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26870 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26871 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26872 $as_echo_n "(cached) " >&6
26874 gcc_cv_as_ix86_tlsldm
=no
26875 if test x
$gcc_cv_as != x
; then
26876 $as_echo "$conftest_s" > conftest.s
26877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26879 (eval $ac_try) 2>&5
26881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26882 test $ac_status = 0; }; }
26884 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26885 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26886 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26887 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26888 gcc_cv_as_ix86_tlsldm
=yes
26893 echo "configure: failed program was" >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26900 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26904 cat >>confdefs.h
<<_ACEOF
26905 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26919 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26920 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26921 $as_echo_n "(cached) " >&6
26923 gcc_cv_as_ix86_got32x
=no
26924 if test x
$gcc_cv_as != x
; then
26925 $as_echo "$conftest_s" > conftest.s
26926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26928 (eval $ac_try) 2>&5
26930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26931 test $ac_status = 0; }; }
26933 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26934 && test x
$gcc_cv_readelf != x \
26935 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26936 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26937 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26938 if $gcc_cv_objdump -dw conftest
2>&1 \
26939 |
grep 0xffffff > /dev
/null
2>&1; then
26940 gcc_cv_as_ix86_got32x
=no
26942 gcc_cv_as_ix86_got32x
=yes
26947 echo "configure: failed program was" >&5
26950 rm -f conftest.o conftest.s
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26954 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26958 cat >>confdefs.h
<<_ACEOF
26959 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26964 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26965 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26966 $as_echo_n "(cached) " >&6
26968 gcc_cv_as_ix86_gotoff_in_data
=no
26969 if test $in_tree_gas = yes; then
26970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26971 then gcc_cv_as_ix86_gotoff_in_data
=yes
26973 elif test x
$gcc_cv_as != x
; then
26978 .long .L0@GOTOFF' > conftest.s
26979 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26986 gcc_cv_as_ix86_gotoff_in_data
=yes
26988 echo "configure: failed program was" >&5
26991 rm -f conftest.o conftest.s
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26995 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26999 cat >>confdefs.h
<<_ACEOF
27000 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27005 .section .text,"ax",@progbits
27007 .type _start, @function
27009 leal ld@tlsldm(%ecx), %eax
27010 call *___tls_get_addr@GOT(%ecx)
27011 leal gd@tlsgd(%ecx), %eax
27012 call *___tls_get_addr@GOT(%ecx)
27014 .section .tdata,"aw'$tls_section_flag'",@progbits
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27023 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27024 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27025 $as_echo_n "(cached) " >&6
27027 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27028 if test x
$gcc_cv_as != x
; then
27029 $as_echo "$conftest_s" > conftest.s
27030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27032 (eval $ac_try) 2>&5
27034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27035 test $ac_status = 0; }; }
27037 if test x
$gcc_cv_ld != x \
27038 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27039 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27043 echo "configure: failed program was" >&5
27046 rm -f conftest.o conftest.s
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27050 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27054 cat >>confdefs.h
<<_ACEOF
27055 #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`
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27062 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27063 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27064 $as_echo_n "(cached) " >&6
27066 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27067 if test $in_tree_gas = yes; then
27068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27069 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27071 elif test x
$gcc_cv_as != x
; then
27073 addl r15 = @ltoffx(x#), gp
27075 ld8.mov r16 = [r15], x#
27077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079 (eval $ac_try) 2>&5
27081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; }
27084 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27086 echo "configure: failed program was" >&5
27089 rm -f conftest.o conftest.s
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27093 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27094 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27096 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27108 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27109 if ${gcc_cv_as_machine_directive+:} false
; then :
27110 $as_echo_n "(cached) " >&6
27112 gcc_cv_as_machine_directive
=no
27113 if test x
$gcc_cv_as != x
; then
27114 $as_echo ' .machine ppc7400' > conftest.s
27115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27117 (eval $ac_try) 2>&5
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; }
27122 gcc_cv_as_machine_directive
=yes
27124 echo "configure: failed program was" >&5
27127 rm -f conftest.o conftest.s
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27131 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27134 if test x
$gcc_cv_as_machine_directive != xyes
; then
27135 echo "*** This target requires an assembler supporting \".machine\"" >&2
27136 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27137 test x
$build = x
$target && exit 1
27143 *-*-aix*) conftest_s
=' .machine "pwr5"
27146 *-*-darwin*) conftest_s
=' .text
27148 *) conftest_s
=' .machine power4
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27154 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27155 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27156 $as_echo_n "(cached) " >&6
27158 gcc_cv_as_powerpc_mfcrf
=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_powerpc_mfcrf
=yes
27163 elif test x
$gcc_cv_as != x
; then
27164 $as_echo "$conftest_s" > conftest.s
27165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27172 gcc_cv_as_powerpc_mfcrf
=yes
27174 echo "configure: failed program was" >&5
27177 rm -f conftest.o conftest.s
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27181 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27182 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27184 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27190 *-*-aix*) conftest_s
=' .csect .text[PR]
27192 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27196 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27197 *) conftest_s
=' .text
27199 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27203 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27204 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27205 $as_echo_n "(cached) " >&6
27207 gcc_cv_as_powerpc_rel16
=no
27208 if test $in_tree_gas = yes; then
27209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27210 then gcc_cv_as_powerpc_rel16
=yes
27212 elif test x
$gcc_cv_as != x
; then
27213 $as_echo "$conftest_s" > conftest.s
27214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27216 (eval $ac_try) 2>&5
27218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27219 test $ac_status = 0; }; }
27221 gcc_cv_as_powerpc_rel16
=yes
27223 echo "configure: failed program was" >&5
27226 rm -f conftest.o conftest.s
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27230 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27231 if test $gcc_cv_as_powerpc_rel16 = yes; then
27233 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27239 *-*-aix*) conftest_s
=' .machine "pwr7"
27242 *) conftest_s
=' .machine power7
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27248 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27249 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27250 $as_echo_n "(cached) " >&6
27252 gcc_cv_as_powerpc_vsx
=no
27253 if test $in_tree_gas = yes; then
27254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27255 then gcc_cv_as_powerpc_vsx
=yes
27257 elif test x
$gcc_cv_as != x
; then
27258 $as_echo "$conftest_s" > conftest.s
27259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27261 (eval $ac_try) 2>&5
27263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27264 test $ac_status = 0; }; }
27266 gcc_cv_as_powerpc_vsx
=yes
27268 echo "configure: failed program was" >&5
27271 rm -f conftest.o conftest.s
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27275 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27276 if test $gcc_cv_as_powerpc_vsx = yes; then
27278 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27284 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27285 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27286 $as_echo_n "(cached) " >&6
27288 gcc_cv_as_powerpc_gnu_attribute
=no
27289 if test $in_tree_gas = yes; then
27290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27291 then gcc_cv_as_powerpc_gnu_attribute
=yes
27293 elif test x
$gcc_cv_as != x
; then
27294 $as_echo '.gnu_attribute 4,1' > conftest.s
27295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }
27302 gcc_cv_as_powerpc_gnu_attribute
=yes
27304 echo "configure: failed program was" >&5
27307 rm -f conftest.o conftest.s
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27311 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27312 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27314 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27320 $as_echo_n "checking assembler for tls marker support... " >&6; }
27321 if ${gcc_cv_as_powerpc_tls_markers+:} false
; then :
27322 $as_echo_n "(cached) " >&6
27324 gcc_cv_as_powerpc_tls_markers
=no
27325 if test $in_tree_gas = yes; then
27326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27327 then gcc_cv_as_powerpc_tls_markers
=yes
27329 elif test x
$gcc_cv_as != x
; then
27330 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27338 gcc_cv_as_powerpc_tls_markers
=yes
27340 echo "configure: failed program was" >&5
27343 rm -f conftest.o conftest.s
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27347 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27348 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27350 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27356 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27357 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27358 $as_echo_n "(cached) " >&6
27360 gcc_cv_as_powerpc_entry_markers
=no
27361 if test $in_tree_gas = yes; then
27362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27363 then gcc_cv_as_powerpc_entry_markers
=yes
27365 elif test x
$gcc_cv_as != x
; then
27366 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27369 (eval $ac_try) 2>&5
27371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27372 test $ac_status = 0; }; }
27374 gcc_cv_as_powerpc_entry_markers
=yes
27376 echo "configure: failed program was" >&5
27379 rm -f conftest.o conftest.s
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27383 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27384 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27386 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27392 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27393 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27394 $as_echo_n "(cached) " >&6
27396 gcc_cv_as_powerpc_pltseq_markers
=no
27397 if test $in_tree_gas = yes; then
27398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27399 then gcc_cv_as_powerpc_pltseq_markers
=yes
27401 elif test x
$gcc_cv_as != x
; then
27402 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27403 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27405 (eval $ac_try) 2>&5
27407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27408 test $ac_status = 0; }; }
27410 gcc_cv_as_powerpc_pltseq_markers
=yes
27412 echo "configure: failed program was" >&5
27415 rm -f conftest.o conftest.s
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27419 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27420 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27422 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27430 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27431 if ${gcc_cv_as_aix_ref+:} false
; then :
27432 $as_echo_n "(cached) " >&6
27434 gcc_cv_as_aix_ref
=no
27435 if test $in_tree_gas = yes; then
27436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27437 then gcc_cv_as_aix_ref
=yes
27439 elif test x
$gcc_cv_as != x
; then
27440 $as_echo ' .csect stuff[rw]
27446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27448 (eval $ac_try) 2>&5
27450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27451 test $ac_status = 0; }; }
27453 gcc_cv_as_aix_ref
=yes
27455 echo "configure: failed program was" >&5
27458 rm -f conftest.o conftest.s
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27462 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27463 if test $gcc_cv_as_aix_ref = yes; then
27465 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27471 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27472 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27473 $as_echo_n "(cached) " >&6
27475 gcc_cv_as_aix_dwloc
=no
27476 if test $in_tree_gas = yes; then
27477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27478 then gcc_cv_as_aix_dwloc
=yes
27480 elif test x
$gcc_cv_as != x
; then
27481 $as_echo ' .dwsect 0xA0000
27485 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27487 (eval $ac_try) 2>&5
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; }
27492 gcc_cv_as_aix_dwloc
=yes
27494 echo "configure: failed program was" >&5
27497 rm -f conftest.o conftest.s
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27501 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27502 if test $gcc_cv_as_aix_dwloc = yes; then
27504 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27514 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27515 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27516 $as_echo_n "(cached) " >&6
27518 gcc_cv_as_mips_explicit_relocs
=no
27519 if test $in_tree_gas = yes; then
27520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27521 then gcc_cv_as_mips_explicit_relocs
=yes
27523 elif test x
$gcc_cv_as != x
; then
27524 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27527 (eval $ac_try) 2>&5
27529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27530 test $ac_status = 0; }; }
27532 gcc_cv_as_mips_explicit_relocs
=yes
27534 echo "configure: failed program was" >&5
27537 rm -f conftest.o conftest.s
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27541 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27542 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27543 if test x
$target_cpu_default = x
27544 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27545 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27551 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27552 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27553 $as_echo_n "(cached) " >&6
27555 gcc_cv_as_mips_no_shared
=no
27556 if test $in_tree_gas = yes; then
27557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27558 then gcc_cv_as_mips_no_shared
=yes
27560 elif test x
$gcc_cv_as != x
; then
27561 $as_echo 'nop' > conftest.s
27562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27564 (eval $ac_try) 2>&5
27566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27567 test $ac_status = 0; }; }
27569 gcc_cv_as_mips_no_shared
=yes
27571 echo "configure: failed program was" >&5
27574 rm -f conftest.o conftest.s
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27578 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27579 if test $gcc_cv_as_mips_no_shared = yes; then
27581 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27587 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27588 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27589 $as_echo_n "(cached) " >&6
27591 gcc_cv_as_mips_gnu_attribute
=no
27592 if test $in_tree_gas = yes; then
27593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27594 then gcc_cv_as_mips_gnu_attribute
=yes
27596 elif test x
$gcc_cv_as != x
; then
27597 $as_echo '.gnu_attribute 4,1' > conftest.s
27598 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27600 (eval $ac_try) 2>&5
27602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27603 test $ac_status = 0; }; }
27605 gcc_cv_as_mips_gnu_attribute
=yes
27607 echo "configure: failed program was" >&5
27610 rm -f conftest.o conftest.s
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27614 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27615 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27617 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27623 $as_echo_n "checking assembler for .module support... " >&6; }
27624 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27625 $as_echo_n "(cached) " >&6
27627 gcc_cv_as_mips_dot_module
=no
27628 if test x
$gcc_cv_as != x
; then
27629 $as_echo '.module mips2
27630 .module fp=xx' > conftest.s
27631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27633 (eval $ac_try) 2>&5
27635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27636 test $ac_status = 0; }; }
27638 gcc_cv_as_mips_dot_module
=yes
27640 echo "configure: failed program was" >&5
27643 rm -f conftest.o conftest.s
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27647 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27648 if test $gcc_cv_as_mips_dot_module = yes; then
27650 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27654 if test x
$gcc_cv_as_mips_dot_module = xno \
27655 && test x
$with_fp_32 != x
; then
27656 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27660 $as_echo_n "checking assembler for .micromips support... " >&6; }
27661 if ${gcc_cv_as_micromips_support+:} false
; then :
27662 $as_echo_n "(cached) " >&6
27664 gcc_cv_as_micromips_support
=no
27665 if test x
$gcc_cv_as != x
; then
27666 $as_echo '.set micromips' > conftest.s
27667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27669 (eval $ac_try) 2>&5
27671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27672 test $ac_status = 0; }; }
27674 gcc_cv_as_micromips_support
=yes
27676 echo "configure: failed program was" >&5
27679 rm -f conftest.o conftest.s
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27683 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27684 if test $gcc_cv_as_micromips_support = yes; then
27686 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27692 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27693 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27694 $as_echo_n "(cached) " >&6
27696 gcc_cv_as_mips_dtprelword
=no
27697 if test $in_tree_gas = yes; then
27698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27699 then gcc_cv_as_mips_dtprelword
=yes
27701 elif test x
$gcc_cv_as != x
; then
27702 $as_echo '.section .tdata,"awT",@progbits
27706 .dtprelword x+0x8000' > conftest.s
27707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27709 (eval $ac_try) 2>&5
27711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27712 test $ac_status = 0; }; }
27714 gcc_cv_as_mips_dtprelword
=yes
27716 echo "configure: failed program was" >&5
27719 rm -f conftest.o conftest.s
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27723 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27724 if test $gcc_cv_as_mips_dtprelword = yes; then
27726 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27732 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27733 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27734 $as_echo_n "(cached) " >&6
27736 gcc_cv_as_mips_dspr1_mult
=no
27737 if test x
$gcc_cv_as != x
; then
27738 $as_echo ' .set mips32r2
27746 multu $ac3,$4,$5' > conftest.s
27747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27749 (eval $ac_try) 2>&5
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; }
27754 gcc_cv_as_mips_dspr1_mult
=yes
27756 echo "configure: failed program was" >&5
27759 rm -f conftest.o conftest.s
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27763 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27764 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27766 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27772 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27773 gcc_cv_as_ld_jalr_reloc
=no
27774 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27775 if test $in_tree_ld = yes ; then
27776 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 \
27777 && test $in_tree_ld_is_elf = yes; then
27778 gcc_cv_as_ld_jalr_reloc
=yes
27780 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27781 echo ' .ent x' > conftest.s
27782 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27783 echo ' lw $25,%call16(y)($28)' >> conftest.s
27784 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27785 echo '1: jalr $25' >> conftest.s
27786 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27787 echo '1: jalr $25' >> conftest.s
27788 echo ' .end x' >> conftest.s
27789 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27790 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27791 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27792 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27793 gcc_cv_as_ld_jalr_reloc
=yes
27799 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27800 if test x
$target_cpu_default = x
; then
27801 target_cpu_default
=MASK_RELAX_PIC_CALLS
27803 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27807 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27810 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27811 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27812 $as_echo_n "(cached) " >&6
27814 gcc_cv_ld_mips_personality_relaxation
=no
27815 if test $in_tree_ld = yes ; then
27816 if test "$gcc_cv_gld_major_version" -eq 2 \
27817 -a "$gcc_cv_gld_minor_version" -ge 21 \
27818 -o "$gcc_cv_gld_major_version" -gt 2; then
27819 gcc_cv_ld_mips_personality_relaxation
=yes
27821 elif test x
$gcc_cv_as != x \
27822 -a x
$gcc_cv_ld != x \
27823 -a x
$gcc_cv_readelf != x
; then
27824 cat > conftest.s
<<EOF
27826 .cfi_personality 0x80,indirect_ptr
27833 .section .data,"aw",@progbits
27837 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27838 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27839 if $gcc_cv_readelf -d conftest
2>&1 \
27840 |
grep TEXTREL
> /dev
/null
2>&1; then
27842 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27843 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27846 gcc_cv_ld_mips_personality_relaxation
=yes
27850 rm -f conftest.s conftest.o conftest
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27853 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27854 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27856 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27861 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27862 if ${gcc_cv_as_mips_nan+:} false
; then :
27863 $as_echo_n "(cached) " >&6
27865 gcc_cv_as_mips_nan
=no
27866 if test x
$gcc_cv_as != x
; then
27867 $as_echo '' > conftest.s
27868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27870 (eval $ac_try) 2>&5
27872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27873 test $ac_status = 0; }; }
27875 gcc_cv_as_mips_nan
=yes
27877 echo "configure: failed program was" >&5
27880 rm -f conftest.o conftest.s
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27884 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27885 if test $gcc_cv_as_mips_nan = yes; then
27887 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27891 if test x
$gcc_cv_as_mips_nan = xno \
27892 && test x
$with_nan != x
; then
27893 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27897 # Earlier GAS versions generically support .gnu_attribute, but the
27898 # msp430 assembler will not do anything with it.
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27900 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27901 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27902 $as_echo_n "(cached) " >&6
27904 gcc_cv_as_msp430_gnu_attribute
=no
27905 if test $in_tree_gas = yes; then
27906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27907 then gcc_cv_as_msp430_gnu_attribute
=yes
27909 elif test x
$gcc_cv_as != x
; then
27910 $as_echo '.gnu_attribute 4,1' > conftest.s
27911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27913 (eval $ac_try) 2>&5
27915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27916 test $ac_status = 0; }; }
27918 gcc_cv_as_msp430_gnu_attribute
=yes
27920 echo "configure: failed program was" >&5
27923 rm -f conftest.o conftest.s
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27927 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27928 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27935 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27936 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27937 $as_echo_n "(cached) " >&6
27939 gcc_cv_as_msp430_mspabi_attribute
=no
27940 if test $in_tree_gas = yes; then
27941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27942 then gcc_cv_as_msp430_mspabi_attribute
=yes
27944 elif test x
$gcc_cv_as != x
; then
27945 $as_echo '.mspabi_attribute 4,1' > conftest.s
27946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27953 gcc_cv_as_msp430_mspabi_attribute
=yes
27955 echo "configure: failed program was" >&5
27958 rm -f conftest.o conftest.s
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27962 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27963 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27965 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27969 if test x
$enable_newlib_nano_formatted_io = xyes
; then
27971 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27977 $as_echo_n "checking assembler for .attribute support... " >&6; }
27978 if ${gcc_cv_as_riscv_attribute+:} false
; then :
27979 $as_echo_n "(cached) " >&6
27981 gcc_cv_as_riscv_attribute
=no
27982 if test $in_tree_gas = yes; then
27983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27984 then gcc_cv_as_riscv_attribute
=yes
27986 elif test x
$gcc_cv_as != x
; then
27987 $as_echo '.attribute stack_align,4' > conftest.s
27988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27990 (eval $ac_try) 2>&5
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; }
27995 gcc_cv_as_riscv_attribute
=yes
27997 echo "configure: failed program was" >&5
28000 rm -f conftest.o conftest.s
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28004 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28005 if test $gcc_cv_as_riscv_attribute = yes; then
28007 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28014 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28015 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28016 $as_echo_n "(cached) " >&6
28018 gcc_cv_as_s390_gnu_attribute
=no
28019 if test $in_tree_gas = yes; then
28020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28021 then gcc_cv_as_s390_gnu_attribute
=yes
28023 elif test x
$gcc_cv_as != x
; then
28024 $as_echo '.gnu_attribute 8,1' > conftest.s
28025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28027 (eval $ac_try) 2>&5
28029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28030 test $ac_status = 0; }; }
28032 gcc_cv_as_s390_gnu_attribute
=yes
28034 echo "configure: failed program was" >&5
28037 rm -f conftest.o conftest.s
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28041 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28042 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28044 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28049 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28050 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28051 $as_echo_n "(cached) " >&6
28053 gcc_cv_as_s390_machine_machinemode
=no
28054 if test $in_tree_gas = yes; then
28055 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28056 then gcc_cv_as_s390_machine_machinemode
=yes
28058 elif test x
$gcc_cv_as != x
; then
28059 $as_echo ' .machinemode push
28062 .machine pop' > conftest.s
28063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28065 (eval $ac_try) 2>&5
28067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28068 test $ac_status = 0; }; }
28070 gcc_cv_as_s390_machine_machinemode
=yes
28072 echo "configure: failed program was" >&5
28075 rm -f conftest.o conftest.s
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28079 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28080 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28082 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28087 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28088 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28089 $as_echo_n "(cached) " >&6
28091 gcc_cv_as_s390_architecture_modifiers
=no
28092 if test $in_tree_gas = yes; then
28093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28094 then gcc_cv_as_s390_architecture_modifiers
=yes
28096 elif test x
$gcc_cv_as != x
; then
28097 $as_echo ' .machine z13+vx ' > conftest.s
28098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28100 (eval $ac_try) 2>&5
28102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28103 test $ac_status = 0; }; }
28105 gcc_cv_as_s390_architecture_modifiers
=yes
28107 echo "configure: failed program was" >&5
28110 rm -f conftest.o conftest.s
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28114 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28115 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28117 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28122 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28123 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28124 $as_echo_n "(cached) " >&6
28126 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28127 if test $in_tree_gas = yes; then
28128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28129 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28131 elif test x
$gcc_cv_as != x
; then
28132 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28135 (eval $ac_try) 2>&5
28137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28138 test $ac_status = 0; }; }
28140 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28142 echo "configure: failed program was" >&5
28145 rm -f conftest.o conftest.s
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28149 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28150 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28152 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28160 # Mips and HP-UX need the GNU assembler.
28161 # Linux on IA64 might be able to use the Intel assembler.
28164 mips
*-*-* |
*-*-hpux* )
28165 if test x
$gas_flag = xyes \
28166 ||
test x
"$host" != x
"$build" \
28167 ||
test ! -x "$gcc_cv_as" \
28168 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28171 echo "*** This configuration requires the GNU assembler" >&2
28177 # ??? Not all targets support dwarf2 debug_line, even within a version
28178 # of gas. Moreover, we need to emit a valid instruction to trigger any
28179 # info to the output file. So, as supported targets are added to gas 2.11,
28180 # add some instruction here to (also) show we expect this might work.
28181 # ??? Once 2.11 is released, probably need to add first known working
28182 # version to the per-target configury.
28183 case "$cpu_type" in
28184 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28185 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28186 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28196 if test x
"$insn" != x
; then
28198 .file 1 \"conftest.s\"
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28202 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28203 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28204 $as_echo_n "(cached) " >&6
28206 gcc_cv_as_dwarf2_debug_line
=no
28207 if test $in_tree_gas = yes; then
28208 if test $in_tree_gas_is_elf = yes \
28209 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28210 then gcc_cv_as_dwarf2_debug_line
=yes
28212 elif test x
$gcc_cv_as != x
; then
28213 $as_echo "$conftest_s" > conftest.s
28214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28216 (eval $ac_try) 2>&5
28218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28219 test $ac_status = 0; }; }
28221 if test x
$gcc_cv_objdump != x \
28222 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28223 |
grep debug_line
> /dev
/null
2>&1; then
28224 gcc_cv_as_dwarf2_debug_line
=yes
28225 elif test x
$gcc_cv_otool != x \
28226 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28227 |
grep debug_line
> /dev
/null
2>&1; then
28228 gcc_cv_as_dwarf2_debug_line
=yes
28231 echo "configure: failed program was" >&5
28234 rm -f conftest.o conftest.s
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28238 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28242 # The .debug_line file table must be in the exact order that
28243 # we specified the files, since these indices are also used
28244 # by DW_AT_decl_file. Approximate this test by testing if
28245 # the assembler bitches if the same index is assigned twice.
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28247 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28248 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28249 $as_echo_n "(cached) " >&6
28251 gcc_cv_as_dwarf2_file_buggy
=no
28252 if test x
$gcc_cv_as != x
; then
28253 $as_echo ' .file 1 "foo.s"
28254 .file 1 "bar.s"' > conftest.s
28255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257 (eval $ac_try) 2>&5
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; }
28262 gcc_cv_as_dwarf2_file_buggy
=yes
28264 echo "configure: failed program was" >&5
28267 rm -f conftest.o conftest.s
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28271 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28275 if test $gcc_cv_as_dwarf2_debug_line = yes \
28276 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28278 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28281 if test $gcc_cv_as_leb128 = yes; then
28283 .file 1 \"conftest.s\"
28284 .loc 1 3 0 view .LVU1
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28291 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28292 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28293 $as_echo_n "(cached) " >&6
28295 gcc_cv_as_dwarf2_debug_view
=no
28296 if test $in_tree_gas = yes; then
28297 if test $in_tree_gas_is_elf = yes \
28298 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28299 then gcc_cv_as_dwarf2_debug_view
=yes
28301 elif test x
$gcc_cv_as != x
; then
28302 $as_echo "$conftest_s" > conftest.s
28303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28305 (eval $ac_try) 2>&5
28307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308 test $ac_status = 0; }; }
28310 gcc_cv_as_dwarf2_debug_view
=yes
28312 echo "configure: failed program was" >&5
28315 rm -f conftest.o conftest.s
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28319 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28320 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28322 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28330 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28331 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28332 $as_echo_n "(cached) " >&6
28334 gcc_cv_as_gdwarf2_flag
=no
28335 if test $in_tree_gas = yes; then
28336 if test $in_tree_gas_is_elf = yes \
28337 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28338 then gcc_cv_as_gdwarf2_flag
=yes
28340 elif test x
$gcc_cv_as != x
; then
28341 $as_echo "$insn" > conftest.s
28342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28344 (eval $ac_try) 2>&5
28346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347 test $ac_status = 0; }; }
28349 gcc_cv_as_gdwarf2_flag
=yes
28351 echo "configure: failed program was" >&5
28354 rm -f conftest.o conftest.s
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28358 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28359 if test $gcc_cv_as_gdwarf2_flag = yes; then
28361 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28367 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28368 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28369 $as_echo_n "(cached) " >&6
28371 gcc_cv_as_gstabs_flag
=no
28372 if test $in_tree_gas = yes; then
28373 if test $in_tree_gas_is_elf = yes \
28374 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28375 then gcc_cv_as_gstabs_flag
=yes
28377 elif test x
$gcc_cv_as != x
; then
28378 $as_echo "$insn" > conftest.s
28379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -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_gstabs_flag
=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_gstabs_flag" >&5
28395 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28396 if test $gcc_cv_as_gstabs_flag = yes; then
28398 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28404 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28405 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28406 $as_echo_n "(cached) " >&6
28408 gcc_cv_as_debug_prefix_map_flag
=no
28409 if test $in_tree_gas = yes; then
28410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28411 then gcc_cv_as_debug_prefix_map_flag
=yes
28413 elif test x
$gcc_cv_as != x
; then
28414 $as_echo "$insn" > conftest.s
28415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28422 gcc_cv_as_debug_prefix_map_flag
=yes
28424 echo "configure: failed program was" >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28431 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28432 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28434 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28441 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28442 if ${gcc_cv_as_compress_debug+:} false
; then :
28443 $as_echo_n "(cached) " >&6
28445 gcc_cv_as_compress_debug
=no
28446 if test x
$gcc_cv_as != x
; then
28447 $as_echo '' > conftest.s
28448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28455 # gas compiled without zlib cannot compress debug sections and warns
28456 # about it, but still exits successfully. So check for this, too.
28457 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28459 gcc_cv_as_compress_debug
=0
28460 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28461 # defaulting to the ELF gABI format.
28462 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28464 gcc_cv_as_compress_debug
=2
28465 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28466 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28467 # Before binutils 2.26, gas only supported --compress-debug-options and
28468 # emitted the traditional GNU format.
28469 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28471 gcc_cv_as_compress_debug
=1
28472 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28473 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28475 gcc_cv_as_compress_debug
=0
28478 echo "configure: failed program was" >&5
28481 rm -f conftest.o conftest.s
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28485 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28489 cat >>confdefs.h
<<_ACEOF
28490 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28494 cat >>confdefs.h
<<_ACEOF
28495 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28499 cat >>confdefs.h
<<_ACEOF
28500 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28505 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28506 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28507 $as_echo_n "(cached) " >&6
28509 gcc_cv_as_lcomm_with_alignment
=no
28510 if test x
$gcc_cv_as != x
; then
28511 $as_echo '.lcomm bar,4,16' > conftest.s
28512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28514 (eval $ac_try) 2>&5
28516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28517 test $ac_status = 0; }; }
28519 gcc_cv_as_lcomm_with_alignment
=yes
28521 echo "configure: failed program was" >&5
28524 rm -f conftest.o conftest.s
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28528 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28529 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28531 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28536 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28537 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28538 && test "$prefix" != "NONE"; then
28540 cat >>confdefs.h
<<_ACEOF
28541 #define PREFIX_INCLUDE_DIR "$prefix/include"
28546 # Determine the version of glibc, if any, used on the target.
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28548 $as_echo_n "checking for target glibc version... " >&6; }
28550 # Check whether --with-glibc-version was given.
28551 if test "${with_glibc_version+set}" = set; then :
28552 withval
=$with_glibc_version;
28553 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28554 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28555 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28557 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28561 glibc_version_major
=0
28562 glibc_version_minor
=0
28563 if test -f $target_header_dir/features.h \
28564 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28565 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28566 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28567 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28572 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28574 cat >>confdefs.h
<<_ACEOF
28575 #define TARGET_GLIBC_MAJOR $glibc_version_major
28579 cat >>confdefs.h
<<_ACEOF
28580 #define TARGET_GLIBC_MINOR $glibc_version_minor
28584 # Check whether --enable-gnu-unique-object was given.
28585 if test "${enable_gnu_unique_object+set}" = set; then :
28586 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28588 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28593 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28594 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28595 $as_echo_n "(cached) " >&6
28597 gcc_cv_as_gnu_unique_object
=no
28598 if test $in_tree_gas = yes; then
28599 if test $in_tree_gas_is_elf = yes \
28600 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28601 then gcc_cv_as_gnu_unique_object
=yes
28603 elif test x
$gcc_cv_as != x
; then
28604 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28607 (eval $ac_try) 2>&5
28609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28610 test $ac_status = 0; }; }
28612 gcc_cv_as_gnu_unique_object
=yes
28614 echo "configure: failed program was" >&5
28617 rm -f conftest.o conftest.s
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28621 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28622 if test $gcc_cv_as_gnu_unique_object = yes; then
28623 # We need to unquote above to to use the definition from config.gcc.
28624 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28626 if test $glibc_version_major -gt 2 \
28627 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28628 enable_gnu_unique_object
=yes
28635 if test x
$enable_gnu_unique_object = xyes
; then
28637 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28642 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28643 if ${gcc_cv_as_line_zero+:} false
; then :
28644 $as_echo_n "(cached) " >&6
28646 gcc_cv_as_line_zero
=no
28647 if test $in_tree_gas = yes; then
28648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28649 then gcc_cv_as_line_zero
=yes
28651 elif test "x$gcc_cv_as" != x
; then
28652 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28653 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28655 (eval $ac_try) 2>&5
28657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28658 test $ac_status = 0; }; } &&
28659 test "x`cat conftest.out`" = x
28661 gcc_cv_as_line_zero
=yes
28663 echo "configure: failed program was" >&5
28665 echo "configure: error output was" >&5
28666 cat conftest.out
>&5
28668 rm -f conftest.o conftest.s conftest.out
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28672 $as_echo "$gcc_cv_as_line_zero" >&6; }
28673 if test "x$gcc_cv_as_line_zero" = xyes
; then
28675 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28680 $as_echo_n "checking support for thin archives... " >&6; }
28681 thin_archive_support
=no
28682 echo 'int main (void) { return 0; }' > conftest.c
28683 if ($AR --version |
sed 1q |
grep "GNU ar" \
28684 && $CC $CFLAGS -c conftest.c \
28685 && $AR rcT conftest.a conftest.o \
28686 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28687 thin_archive_support
=yes
28689 rm -f conftest.c conftest.o conftest.a conftest
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28691 $as_echo "$thin_archive_support" >&6; }
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28695 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28696 gcc_cv_ld_eh_frame_hdr
=no
28697 if test $in_tree_ld = yes ; then
28698 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 \
28699 && test $in_tree_ld_is_elf = yes; then
28700 gcc_cv_ld_eh_frame_hdr
=yes
28702 elif test x
$gcc_cv_ld != x
; then
28703 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28704 # Check if linker supports --eh-frame-hdr option
28705 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28706 gcc_cv_ld_eh_frame_hdr
=yes
28711 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28712 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28713 gcc_cv_ld_eh_frame_hdr
=yes
28720 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28722 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28726 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28729 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28730 gcc_cv_ld_eh_frame_ciev3
=no
28731 if test $in_tree_ld = yes ; then
28732 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 \
28733 && test $in_tree_ld_is_elf = yes; then
28734 gcc_cv_ld_eh_frame_ciev3
=yes
28736 elif test x
$gcc_cv_ld != x
; then
28737 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28738 gcc_cv_ld_eh_frame_ciev3
=yes
28739 if test 0"$ld_date" -lt 20040513; then
28740 if test -n "$ld_date"; then
28741 # If there was date string, but was earlier than 2004-05-13, fail
28742 gcc_cv_ld_eh_frame_ciev3
=no
28743 elif test "$ld_vers_major" -lt 2; then
28744 gcc_cv_ld_eh_frame_ciev3
=no
28745 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28746 gcc_cv_ld_eh_frame_ciev3
=no
28752 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28753 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28754 gcc_cv_ld_eh_frame_ciev3
=yes
28761 cat >>confdefs.h
<<_ACEOF
28762 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28766 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28769 $as_echo_n "checking linker position independent executable support... " >&6; }
28771 if test $in_tree_ld = yes ; then
28773 # Full PIE support on Solaris was only introduced in gld 2.26.
28774 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28775 *) gcc_gld_pie_min_version
=15 ;;
28777 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 \
28778 && test $in_tree_ld_is_elf = yes; then
28781 elif test x
$gcc_cv_ld != x
; then
28782 # Check if linker supports -pie option
28783 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28787 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28788 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28795 *-*-solaris2.1
[1-9]*)
28796 # Solaris 11.3 added PIE support.
28797 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28804 if test x
"$gcc_cv_ld_pie" = xyes
; then
28806 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28810 $as_echo "$gcc_cv_ld_pie" >&6; }
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28813 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28814 gcc_cv_ld_pie_copyreloc
=no
28815 if test $gcc_cv_ld_pie = yes ; then
28816 if test $in_tree_ld = yes ; then
28817 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
28818 gcc_cv_ld_pie_copyreloc
=yes
28820 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28821 # Check if linker supports -pie option with copy reloc
28823 i?
86-*-linux* | x86_64-
*-linux*)
28824 cat > conftest1.s
<<EOF
28827 .type a_glob, @object
28832 cat > conftest2.s
<<EOF
28835 .type main, @function
28837 movl %eax, a_glob(%rip)
28840 .section .data.rel,"aw",@progbits
28845 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28846 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28847 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28848 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28849 gcc_cv_ld_pie_copyreloc
=yes
28851 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28857 cat >>confdefs.h
<<_ACEOF
28858 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28862 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28865 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28866 gcc_cv_ld_eh_gc_sections
=no
28867 if test $in_tree_ld = yes ; then
28868 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 \
28869 && test $in_tree_ld_is_elf = yes; then
28870 gcc_cv_ld_eh_gc_sections
=yes
28872 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28873 cat > conftest.s
<<EOF
28876 .type _start, @function
28879 .size _start, .-_start
28880 .section .text.foo,"ax",@progbits
28881 .type foo, @function
28885 .section .gcc_except_table.foo,"a",@progbits
28888 .section .eh_frame,"a",@progbits
28891 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28892 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28893 |
grep "gc-sections option ignored" > /dev
/null
; then
28894 gcc_cv_ld_eh_gc_sections
=no
28895 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28896 |
grep gcc_except_table
> /dev
/null
; then
28897 gcc_cv_ld_eh_gc_sections
=yes
28898 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28899 if test x
$gcc_cv_as_comdat_group != xyes
; then
28900 gcc_cv_ld_eh_gc_sections
=no
28901 cat > conftest.s
<<EOF
28904 .type _start, @function
28907 .size _start, .-_start
28908 .section .gnu.linkonce.t.foo,"ax",@progbits
28909 .type foo, @function
28913 .section .gcc_except_table.foo,"a",@progbits
28916 .section .eh_frame,"a",@progbits
28919 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28920 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28921 |
grep "gc-sections option ignored" > /dev
/null
; then
28922 gcc_cv_ld_eh_gc_sections
=no
28923 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28924 |
grep gcc_except_table
> /dev
/null
; then
28925 gcc_cv_ld_eh_gc_sections
=yes
28931 rm -f conftest.s conftest.o conftest
28935 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28936 gcc_cv_ld_eh_gc_sections
=no
28939 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28941 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28945 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28948 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28949 gcc_cv_ld_eh_gc_sections_bug
=no
28950 if test $in_tree_ld = yes ; then
28951 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 \
28952 && test $in_tree_ld_is_elf = yes; then
28953 gcc_cv_ld_eh_gc_sections_bug
=yes
28955 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
28956 gcc_cv_ld_eh_gc_sections_bug
=yes
28957 cat > conftest.s
<<EOF
28960 .type _start, @function
28963 .size _start, .-_start
28964 .section .text.startup.foo,"ax",@progbits
28965 .type foo, @function
28969 .section .gcc_except_table.foo,"a",@progbits
28972 .section .eh_frame,"a",@progbits
28975 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28976 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28977 |
grep "gc-sections option ignored" > /dev
/null
; then
28979 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28980 |
grep gcc_except_table
> /dev
/null
; then
28981 gcc_cv_ld_eh_gc_sections_bug
=no
28984 rm -f conftest.s conftest.o conftest
28986 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28988 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28992 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28995 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28996 # gold/gld support compressed debug sections since binutils 2.19/2.21
28997 # In binutils 2.26, gld gained support for the ELF gABI format.
28998 if test $in_tree_ld = yes ; then
28999 gcc_cv_ld_compress_debug
=0
29000 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 \
29001 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29002 gcc_cv_ld_compress_debug
=2
29003 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29004 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 \
29005 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
29006 gcc_cv_ld_compress_debug
=3
29007 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29008 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 \
29009 && test $in_tree_ld_is_elf = yes; then
29010 gcc_cv_ld_compress_debug
=1
29012 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29013 if test "$ld_vers_major" -lt 2 \
29014 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29015 gcc_cv_ld_compress_debug
=0
29016 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29017 gcc_cv_ld_compress_debug
=1
29019 gcc_cv_ld_compress_debug
=3
29020 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29022 if test $ld_is_gold = yes; then
29023 gcc_cv_ld_compress_debug
=2
29024 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29027 case "${target}" in
29029 # Introduced in Solaris 11.2.
29030 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29031 gcc_cv_ld_compress_debug
=3
29032 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29034 gcc_cv_ld_compress_debug
=0
29038 # Assume linkers other than GNU ld don't support compessed debug
29040 gcc_cv_ld_compress_debug
=0
29045 cat >>confdefs.h
<<_ACEOF
29046 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29050 cat >>confdefs.h
<<_ACEOF
29051 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29055 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29057 if test x
"$ld64_flag" = x
"yes"; then
29059 # Set defaults for possibly untestable items.
29060 gcc_cv_ld64_export_dynamic
=0
29062 if test "$build" = "$host"; then
29068 # On Darwin, because of FAT library support, it is often possible to execute
29069 # exes from compatible archs even when the host differs from the build system.
29070 case "$build","$host" in
29071 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29072 darwin_try_test
=1;;
29076 # If the configurer specified a minimum ld64 version to be supported, then use
29077 # that to determine feature support.
29078 if test x
"${gcc_cv_ld64_version}" != x
; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29080 $as_echo_n "checking ld64 specified version... " >&6; }
29081 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29083 $as_echo "$gcc_cv_ld64_major" >&6; }
29084 if test "$gcc_cv_ld64_major" -ge 236; then
29085 gcc_cv_ld64_export_dynamic
=1
29087 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29088 # If the version was not specified, try to find it.
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29090 $as_echo_n "checking linker version... " >&6; }
29091 if test x
"${gcc_cv_ld64_version}" = x
; then
29092 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29095 $as_echo "$gcc_cv_ld64_version" >&6; }
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29098 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29099 gcc_cv_ld64_export_dynamic
=1
29100 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29101 gcc_cv_ld64_export_dynamic
=0
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29104 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29107 if test x
"${gcc_cv_ld64_version}" != x
; then
29109 cat >>confdefs.h
<<_ACEOF
29110 #define LD64_VERSION "${gcc_cv_ld64_version}"
29116 cat >>confdefs.h
<<_ACEOF
29117 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29127 $as_echo_n "checking linker --as-needed support... " >&6; }
29128 if ${gcc_cv_ld_as_needed+:} false
; then :
29129 $as_echo_n "(cached) " >&6
29131 gcc_cv_ld_as_needed
=no
29132 gcc_cv_ld_as_needed_option
='--as-needed'
29133 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29134 if test $in_tree_ld = yes ; then
29135 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 \
29136 && test $in_tree_ld_is_elf = yes; then
29137 gcc_cv_ld_as_needed
=yes
29138 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29139 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29140 gcc_cv_ld_no_as_needed_option
='--pop-state'
29143 elif test x
$gcc_cv_ld != x
; then
29144 # Check if linker supports --as-needed and --no-as-needed options
29145 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29146 gcc_cv_ld_as_needed
=yes
29147 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29148 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29149 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29150 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29151 # Use these options only when both ld.bfd and ld.gold support
29152 # --push-state/--pop-state, which unfortunately wasn't added
29153 # at the same time.
29154 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29155 gcc_cv_ld_no_as_needed_option
='--pop-state'
29158 case "$target:$gnu_ld" in
29160 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29162 gcc_cv_ld_as_needed
=yes
29163 gcc_cv_ld_as_needed_option
="-z ignore"
29164 gcc_cv_ld_no_as_needed_option
="-z record"
29168 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29169 # dl_iterate_phdr, i.e. since Solaris 11.
29171 *-*-solaris2.1
[1-9]*)
29173 i?
86-*-* | x86_64-
*-*)
29174 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29175 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29176 gcc_cv_ld_as_needed
=no
29182 gcc_cv_ld_as_needed
=no
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29188 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29189 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29191 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29194 cat >>confdefs.h
<<_ACEOF
29195 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29199 cat >>confdefs.h
<<_ACEOF
29200 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29206 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29207 saved_LDFLAGS
="$LDFLAGS"
29208 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29209 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29211 /* end confdefs.h. */
29212 int main(void) {return 0;}
29214 if ac_fn_cxx_try_link
"$LINENO"; then :
29215 gcc_cv_ld_clearcap
=yes; break
29217 gcc_cv_ld_clearcap
=no
29219 rm -f core conftest.err conftest.
$ac_objext \
29220 conftest
$ac_exeext conftest.
$ac_ext
29222 LDFLAGS
="$saved_LDFLAGS"
29223 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29225 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29227 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29231 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29237 emul_name
="-melf32lppc"
29240 emul_name
="-melf32ppc"
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29244 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29245 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29246 $as_echo_n "(cached) " >&6
29248 gcc_cv_ld_ppc_attr
=no
29249 if test x
"$ld_is_gold" = xyes
; then
29250 gcc_cv_ld_ppc_attr
=yes
29251 elif test $in_tree_ld = yes ; then
29252 if test "$gcc_cv_gld_major_version" -eq 2 \
29253 -a "$gcc_cv_gld_minor_version" -ge 28 \
29254 -o "$gcc_cv_gld_major_version" -gt 2; then
29255 gcc_cv_ld_ppc_attr
=yes
29257 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29258 # check that merging the long double .gnu_attribute doesn't warn
29259 cat > conftest1.s
<<EOF
29262 cat > conftest2.s
<<EOF
29265 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29266 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29267 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29268 && test ! -s conftest.err
; then
29269 gcc_cv_ld_ppc_attr
=yes
29271 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29276 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29277 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29279 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29285 case "$target:$tm_file" in
29286 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29289 emul_name
="-melf64lppc"
29292 emul_name
="-melf64ppc"
29295 emul_name
="-melf64ppc_fbsd"
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29299 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29300 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29301 $as_echo_n "(cached) " >&6
29303 gcc_cv_ld_no_dot_syms
=no
29304 if test x
"$ld_is_gold" = xyes
; then
29305 gcc_cv_ld_no_dot_syms
=yes
29306 elif test $in_tree_ld = yes ; then
29307 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
29308 gcc_cv_ld_no_dot_syms
=yes
29310 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29311 cat > conftest1.s
<<EOF
29315 cat > conftest2.s
<<EOF
29316 .section ".opd","aw"
29319 .type foo,@function
29321 .quad .LEfoo,.TOC.@tocbase,0
29327 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29328 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29329 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29330 gcc_cv_ld_no_dot_syms
=yes
29332 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29337 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29338 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29340 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29345 $as_echo_n "checking linker large toc support... " >&6; }
29346 if ${gcc_cv_ld_large_toc+:} false
; then :
29347 $as_echo_n "(cached) " >&6
29349 gcc_cv_ld_large_toc
=no
29350 if test x
"$ld_is_gold" = xyes
; then
29351 gcc_cv_ld_large_toc
=yes
29352 elif test $in_tree_ld = yes ; then
29353 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
29354 gcc_cv_ld_large_toc
=yes
29356 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29357 cat > conftest.s
<<EOF
29358 .section ".tbss","awT",@nobits
29364 addis 9,13,ie0@got@tprel@ha
29365 ld 9,ie0@got@tprel@l(9)
29367 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29368 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29369 gcc_cv_ld_large_toc
=yes
29371 rm -f conftest conftest.o conftest.s
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29376 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29377 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29379 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29384 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29385 if ${gcc_cv_ld_toc_align+:} false
; then :
29386 $as_echo_n "(cached) " >&6
29388 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29389 cat > conftest.s
<<EOF
29394 .section .data.rel.ro,"aw",@progbits
29399 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29400 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29401 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)) }'`
29403 rm -f conftest conftest.o conftest.s
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29408 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29409 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29411 cat >>confdefs.h
<<_ACEOF
29412 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29422 $as_echo_n "checking linker large toc support... " >&6; }
29423 if ${gcc_cv_ld_large_toc+:} false
; then :
29424 $as_echo_n "(cached) " >&6
29426 gcc_cv_ld_large_toc
=no
29427 if test x
$gcc_cv_as != x
; then
29428 cat > conftest.s
<<EOF
29438 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29439 gcc_cv_ld_large_toc
=yes
29441 rm -f conftest conftest.o conftest.s
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29446 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29447 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29449 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29456 $as_echo_n "checking linker --build-id support... " >&6; }
29457 if ${gcc_cv_ld_buildid+:} false
; then :
29458 $as_echo_n "(cached) " >&6
29460 gcc_cv_ld_buildid
=no
29461 if test $in_tree_ld = yes ; then
29462 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29463 "$gcc_cv_gld_minor_version" -ge 18 -o \
29464 "$gcc_cv_gld_major_version" -gt 2 \
29465 && test $in_tree_ld_is_elf = yes; then
29466 gcc_cv_ld_buildid
=yes
29468 elif test x
$gcc_cv_ld != x
; then
29469 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29470 gcc_cv_ld_buildid
=yes
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29475 $as_echo "$gcc_cv_ld_buildid" >&6; }
29476 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29478 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29482 # Check whether --enable-linker-build-id was given.
29483 if test "${enable_linker_build_id+set}" = set; then :
29484 enableval
=$enable_linker_build_id;
29486 enable_linker_build_id
=no
29490 if test x
"$enable_linker_build_id" = xyes
; then
29491 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29493 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29497 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29501 # In binutils 2.21, GNU ld gained support for new emulations fully
29502 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29504 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29505 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29506 $as_echo_n "(cached) " >&6
29508 gcc_cv_ld_sol2_emulation
=no
29509 if test $in_tree_ld = yes ; then
29510 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29511 "$gcc_cv_gld_minor_version" -ge 21 -o \
29512 "$gcc_cv_gld_major_version" -gt 2 \
29513 && test $in_tree_ld_is_elf = yes; then
29514 gcc_cv_ld_sol2_emulation
=yes
29516 elif test x
$gcc_cv_ld != x
; then
29517 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29518 grep _sol2
> /dev
/null
; then
29519 gcc_cv_ld_sol2_emulation
=yes
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29524 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29525 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29527 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29532 $as_echo_n "checking linker --sysroot support... " >&6; }
29533 if ${gcc_cv_ld_sysroot+:} false
; then :
29534 $as_echo_n "(cached) " >&6
29536 gcc_cv_ld_sysroot
=no
29537 if test $in_tree_ld = yes ; then
29538 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
29539 gcc_cv_ld_sysroot
=yes
29541 elif test x
$gcc_cv_ld != x
; then
29542 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29543 gcc_cv_ld_sysroot
=yes
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29548 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29549 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29551 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29557 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29559 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29560 if ${gcc_cv_solaris_crts+:} false
; then :
29561 $as_echo_n "(cached) " >&6
29563 gcc_cv_solaris_crts
=no
29564 if test x
$host != x
$target; then
29565 if test "x$with_sysroot" = xyes
; then
29566 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29568 target_sysroot
="${with_sysroot}"
29571 target_libdir
="$target_sysroot/usr/lib"
29572 # At the time they were added, gcrt1.o became a symlink for backwards
29573 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29575 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29576 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29578 sparc
*-*-solaris2*)
29579 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29584 $as_echo "$gcc_cv_solaris_crts" >&6; }
29587 if test x
$gcc_cv_solaris_crts = xyes
; then
29589 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29593 # Check whether --enable-libssp was given.
29594 if test "${enable_libssp+set}" = set; then :
29595 enableval
=$enable_libssp; case "${enableval}" in
29599 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29605 # Test for stack protector support in target C library.
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29607 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29608 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29609 $as_echo_n "(cached) " >&6
29611 gcc_cv_libc_provides_ssp
=no
29612 if test "x$enable_libssp" = "xno"; then
29613 gcc_cv_libc_provides_ssp
=yes
29614 elif test "x$enable_libssp" = "xyes"; then
29615 gcc_cv_libc_provides_ssp
=no
29619 # All versions of musl provide stack protector
29620 gcc_cv_libc_provides_ssp
=yes;;
29621 *-*-linux* |
*-*-kfreebsd*-gnu)
29622 # glibc 2.4 and later provides __stack_chk_fail and
29623 # either __stack_chk_guard, or TLS access to stack guard canary.
29625 if test $glibc_version_major -gt 2 \
29626 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29627 gcc_cv_libc_provides_ssp
=yes
29630 if test -f $target_header_dir/features.h \
29631 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29632 $target_header_dir/features.h
> /dev
/null
; then
29633 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29634 $target_header_dir/features.h
> /dev
/null
&& \
29635 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29636 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29637 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29638 gcc_cv_libc_provides_ssp
=yes
29640 # all versions of Bionic support stack protector
29641 elif test -f $target_header_dir/sys
/cdefs.h \
29642 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29643 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29644 gcc_cv_libc_provides_ssp
=yes
29649 # Avoid complicated tests (see
29650 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29651 # simply assert that glibc does provide this, which is true for all
29652 # realistically usable GNU/Hurd configurations.
29653 # All supported versions of musl provide it as well
29654 gcc_cv_libc_provides_ssp
=yes;;
29655 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29656 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29657 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29658 gcc_cv_libc_provides_ssp
=yes
29660 echo "no __stack_chk_fail on this target"
29664 *) gcc_cv_libc_provides_ssp
=no
;;
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29669 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29671 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29673 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29677 # Check whether --enable-default-ssp was given.
29678 # Check whether --enable-default-ssp was given.
29679 if test "${enable_default_ssp+set}" = set; then :
29680 enableval
=$enable_default_ssp;
29681 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29683 ia64
*-*-*) enable_default_ssp
=no
;;
29684 *) enable_default_ssp
=$enableval ;;
29687 enable_default_ssp
=no
29690 enable_default_ssp
=no
29693 if test x
$enable_default_ssp = xyes
; then
29695 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29700 # Test for <sys/sdt.h> on the target.
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29703 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29705 if test -f $target_header_dir/sys
/sdt.h
; then
29708 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29712 $as_echo "$have_sys_sdt_h" >&6; }
29714 # Check if TFmode long double should be used by default or not.
29715 # Some glibc targets used DFmode long double, but with glibc 2.4
29716 # and later they can use TFmode.
29718 powerpc
*-*-linux* | \
29719 sparc
*-*-linux* | \
29723 # Check whether --with-long-double-128 was given.
29724 if test "${with_long_double_128+set}" = set; then :
29725 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29728 if test $glibc_version_major -gt 2 \
29729 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29730 gcc_cv_target_ldbl128
=yes
29733 gcc_cv_target_ldbl128
=no
29734 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29735 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29736 && gcc_cv_target_ldbl128
=yes
29743 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29745 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29749 # Check if TFmode long double target should use the IBM extended double or IEEE
29750 # 128-bit floating point formats if long doubles are 128-bits long. The long
29751 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29752 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29755 # Check whether --with-long-double-format was given.
29756 if test "${with_long_double_format+set}" = set; then :
29757 withval
=$with_long_double_format;
29758 case "$target:$with_long_double_format" in
29759 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29762 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29763 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29764 case "$with_cpu" in
29765 power7 | power8 | power9 | power1
*)
29769 as_fn_error $?
"Configuration option --with-long-double-format is only \
29770 supported if the default cpu is power7 or newer" "$LINENO" 5
29771 with_long_double_format
=""
29775 xpowerpc64
*-*-linux*:*)
29776 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29777 with_long_double_format
=""
29780 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29781 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29782 with_long_double_format
=""
29788 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29789 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29790 gcc_cv_libc_provides_hwcap_in_tcb
=no
29794 if test $glibc_version_major -gt 2 \
29795 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29796 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29800 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29802 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29807 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29808 gcc_cv_target_dl_iterate_phdr
=unknown
29811 # <link.h> needs both a dl_iterate_phdr declaration and support for
29812 # compilation with largefile support.
29813 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29814 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29815 gcc_cv_target_dl_iterate_phdr
=yes
29817 gcc_cv_target_dl_iterate_phdr
=no
29820 *-*-dragonfly* |
*-*-freebsd*)
29821 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29822 gcc_cv_target_dl_iterate_phdr
=yes
29824 gcc_cv_target_dl_iterate_phdr
=no
29828 gcc_cv_target_dl_iterate_phdr
=yes
29832 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29834 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29838 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29840 # We no longer support different GC mechanisms. Emit an error if
29841 # the user configures with --with-gc.
29843 # Check whether --with-gc was given.
29844 if test "${with_gc+set}" = set; then :
29845 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29849 # Libraries to use on the host. This will normally be set by the top
29850 # level Makefile. Here we simply capture the value for our Makefile.
29851 if test -z "${HOST_LIBS+set}"; then
29856 # Use the system's zlib library.
29858 # Use the system's zlib library.
29859 zlibdir
="-L\$(top_builddir)/../zlib"
29860 zlibinc
="-I\$(top_srcdir)/../zlib"
29862 # Check whether --with-system-zlib was given.
29863 if test "${with_system_zlib+set}" = set; then :
29864 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29877 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29878 # Check whether --enable-maintainer-mode was given.
29879 if test "${enable_maintainer_mode+set}" = set; then :
29880 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29887 $as_echo "$maintainer_mode" >&6; }
29889 if test "$maintainer_mode" = "yes"; then
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29897 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29898 # Check whether --enable-link-mutex was given.
29899 if test "${enable_link_mutex+set}" = set; then :
29900 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29906 $as_echo "$do_link_mutex" >&6; }
29908 if test "$do_link_mutex" = "yes"; then
29911 DO_LINK_MUTEX
=false
29919 # Make empty files to contain the specs and options for each language.
29920 # Then add #include lines to for a compiler that has specs and/or options.
29926 # These (without "all_") are set in each config-lang.in.
29927 # `language' must be a single word so is spelled singularly.
29930 all_outputs
='Makefile'
29931 # List of language makefile fragments.
29932 all_lang_makefrags
=
29933 # Additional files for gengtype
29934 all_gtfiles
="$target_gtfiles"
29936 # These are the languages that are set in --enable-languages,
29937 # and are available in the GCC tree.
29938 all_selected_languages
=
29940 # Add the language fragments.
29941 # Languages are added via two mechanisms. Some information must be
29942 # recorded in makefile variables, these are defined in config-lang.in.
29943 # We accumulate them and plug them into the main Makefile.
29944 # The other mechanism is a set of hooks for each of the main targets
29945 # like `clean', `install', etc.
29947 language_hooks
="Make-hooks"
29949 for lang
in ${srcdir}/*/config-lang.
in
29951 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29953 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29954 if test "x$lang_alias" = x
29956 echo "$lang doesn't set \$language." 1>&2
29959 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29960 subdirs
="$subdirs $subdir"
29962 # $gcc_subdir is where the gcc integration files are to be found
29963 # for a language, both for internal compiler purposes (compiler
29964 # sources implementing front-end to GCC tree converters), and for
29965 # build infrastructure purposes (Make-lang.in, etc.)
29967 # This will be <subdir> (relative to $srcdir) if a line like
29968 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29969 # is found in <langdir>/config-lang.in, and will remain <langdir>
29972 # Except for the language alias (fetched above), the regular
29973 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29974 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29975 # only this and the language alias.
29977 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29978 if [ "$gcc_subdir" = "" ]; then
29979 gcc_subdir
="$subdir"
29982 case ",$enable_languages," in
29984 all_selected_languages
="$all_selected_languages $lang_alias"
29985 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29986 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29997 .
${srcdir}/$gcc_subdir/config-lang.
in
29998 if test "x$language" = x
30000 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30005 case ",$enable_languages," in
30006 *,$lang_alias,*) ;;
30008 for i
in $subdir_requires; do
30009 test -f "${srcdir}/$i/config-lang.in" && continue
30017 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30018 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30019 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30020 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30022 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30023 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30025 all_languages
="$all_languages $language"
30026 all_compilers
="$all_compilers $compilers"
30027 all_outputs
="$all_outputs $outputs"
30028 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30029 case ",$enable_languages," in
30032 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30042 for language
in $all_selected_languages
30044 check_languages
="$check_languages check-$language"
30047 selftest_languages
=
30048 for language
in $all_selected_languages
30050 selftest_languages
="$selftest_languages selftest-$language"
30053 # We link each language in with a set of hooks, reached indirectly via
30054 # lang.${target}. Only do so for selected languages.
30058 target_list
="all.cross start.encap rest.encap tags \
30059 install-common install-man install-info install-pdf install-html dvi \
30060 pdf html uninstall info man srcextra srcman srcinfo \
30061 mostlyclean clean distclean maintainer-clean install-plugin"
30063 for t
in $target_list
30066 for lang
in $all_selected_languages
30070 echo "lang.$t: $x" >> Make-hooks
30074 # Option include files
30077 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30078 option_includes
="option-includes.mk"
30087 echo "dir ." > .gdbinit
30088 echo "dir ${srcdir}" >> .gdbinit
30089 if test x
$gdb_needs_out_file_path = xyes
30091 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30093 if test "x$subdirs" != x
; then
30096 echo "dir ${srcdir}/$s" >> .gdbinit
30099 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30100 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30102 # Put a breakpoint on __asan_report_error to help with debugging buffer
30105 *-fsanitize=address
*)
30106 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30110 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30114 # Find a directory in which to install a shared libgcc.
30116 # Check whether --enable-version-specific-runtime-libs was given.
30117 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30118 enableval
=$enable_version_specific_runtime_libs;
30122 # Substitute configuration variables
30190 if test x
${build} = x
${host} ; then
30191 if test x
${host} = x
${target} ; then
30192 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30194 echo "Links are now set up to build a cross-compiler" 1>&2
30195 echo " from ${host} to ${target}." 1>&2
30198 if test x
${host} = x
${target} ; then
30199 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30200 echo " for ${target}." 1>&2
30202 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30203 echo " from ${host} to ${target}." 1>&2
30212 if test "x${ISLLIBS}" != "x" ; then
30214 $as_echo "#define HAVE_isl 1" >>confdefs.h
30218 # Check for plugin support
30219 # Check whether --enable-plugin was given.
30220 if test "${enable_plugin+set}" = set; then :
30221 enableval
=$enable_plugin; enable_plugin
=$enableval
30223 enable_plugin
=yes; default_plugin
=yes
30232 # Since plugin support under MinGW is not as straightforward as on
30233 # other platforms (e.g., we have to link import library, etc), we
30234 # only enable it if explicitly requested.
30235 if test x
"$default_plugin" = x
"yes"; then
30237 elif test x
"$enable_plugin" = x
"yes"; then
30238 # Use make's target variable to derive import library name.
30239 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30244 if test x
$build = x
$host; then
30245 export_sym_check
="nm${exeext} -g"
30246 elif test x
$host = x
$target; then
30247 export_sym_check
="$gcc_cv_nm -g"
30253 if test x
$build = x
$host; then
30254 export_sym_check
="objdump${exeext} -T"
30255 elif test x
$host = x
$target; then
30256 export_sym_check
="$gcc_cv_objdump -T"
30263 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30266 $as_echo_n "checking for exported symbols... " >&6; }
30267 if test "x$export_sym_check" != x
; then
30268 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30269 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30270 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30271 : # No need to use a flag
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30273 $as_echo "yes" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30276 $as_echo "yes" >&6; }
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30278 $as_echo_n "checking for -rdynamic... " >&6; }
30279 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30280 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30281 plugin_rdynamic
=yes
30282 pluginlibs
="-rdynamic"
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30288 $as_echo "$plugin_rdynamic" >&6; }
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30292 $as_echo "unable to check" >&6; }
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30298 $as_echo_n "checking for library containing dlopen... " >&6; }
30299 if ${ac_cv_search_dlopen+:} false
; then :
30300 $as_echo_n "(cached) " >&6
30302 ac_func_search_save_LIBS
=$LIBS
30303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30306 /* Override any GCC internal prototype to avoid an error.
30307 Use char because int might match the return type of a GCC
30308 builtin and then its argument prototype would still apply. */
30321 for ac_lib
in '' dl
; do
30322 if test -z "$ac_lib"; then
30323 ac_res
="none required"
30326 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30328 if ac_fn_cxx_try_link
"$LINENO"; then :
30329 ac_cv_search_dlopen
=$ac_res
30331 rm -f core conftest.err conftest.
$ac_objext \
30333 if ${ac_cv_search_dlopen+:} false
; then :
30337 if ${ac_cv_search_dlopen+:} false
; then :
30340 ac_cv_search_dlopen
=no
30342 rm conftest.
$ac_ext
30343 LIBS
=$ac_func_search_save_LIBS
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30346 $as_echo "$ac_cv_search_dlopen" >&6; }
30347 ac_res
=$ac_cv_search_dlopen
30348 if test "$ac_res" != no
; then :
30349 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30353 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30354 pluginlibs
="$pluginlibs -ldl"
30358 # Check that we can build shared objects with -fPIC -shared
30359 saved_LDFLAGS
="$LDFLAGS"
30360 saved_CFLAGS
="$CFLAGS"
30363 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30364 CFLAGS
="$CFLAGS -fPIC"
30365 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30368 CFLAGS
="$CFLAGS -fPIC"
30369 LDFLAGS
="$LDFLAGS -fPIC -shared"
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30373 $as_echo_n "checking for -fPIC -shared... " >&6; }
30374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30375 /* end confdefs.h. */
30385 if ac_fn_cxx_try_link
"$LINENO"; then :
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387 $as_echo "yes" >&6; }; have_pic_shared
=yes
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }; have_pic_shared
=no
30392 rm -f core conftest.err conftest.
$ac_objext \
30393 conftest
$ac_exeext conftest.
$ac_ext
30394 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30398 LDFLAGS
="$saved_LDFLAGS"
30399 CFLAGS
="$saved_CFLAGS"
30401 # If plugin support had been requested but not available, fail.
30402 if test x
"$enable_plugin" = x
"no" ; then
30403 if test x
"$default_plugin" != x
"yes"; then
30405 Building GCC with plugin support requires a host that supports
30406 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30413 if test x
"$enable_plugin" = x
"yes"; then
30415 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30420 # Enable --enable-host-shared
30421 # Check whether --enable-host-shared was given.
30422 if test "${enable_host_shared+set}" = set; then :
30423 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30432 # Check whether --enable-libquadmath-support was given.
30433 if test "${enable_libquadmath_support+set}" = set; then :
30434 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30436 ENABLE_LIBQUADMATH_SUPPORT
=yes
30439 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30441 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30446 # Specify what hash style to use by default.
30448 # Check whether --with-linker-hash-style was given.
30449 if test "${with_linker_hash_style+set}" = set; then :
30450 withval
=$with_linker_hash_style; case x
"$withval" in
30452 LINKER_HASH_STYLE
=sysv
30455 LINKER_HASH_STYLE
=gnu
30458 LINKER_HASH_STYLE
=both
30461 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30465 LINKER_HASH_STYLE
=''
30468 if test x
"${LINKER_HASH_STYLE}" != x
; then
30470 cat >>confdefs.h
<<_ACEOF
30471 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30476 # Specify what should be the default of -fdiagnostics-color option.
30478 # Check whether --with-diagnostics-color was given.
30479 if test "${with_diagnostics_color+set}" = set; then :
30480 withval
=$with_diagnostics_color; case x
"$withval" in
30482 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30485 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30488 DIAGNOSTICS_COLOR_DEFAULT
=-1
30491 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30494 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30498 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30502 cat >>confdefs.h
<<_ACEOF
30503 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30507 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30508 # of jit/jit-playback.c.
30509 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30510 echo "gcc_driver_version: ${gcc_driver_version}"
30511 cat > gcc-driver-name.h
<<EOF
30512 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30515 # Check whether --enable-default-pie was given.
30516 # Check whether --enable-default-pie was given.
30517 if test "${enable_default_pie+set}" = set; then :
30518 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30520 enable_default_pie
=no
30523 if test x
$enable_default_pie = xyes
; then
30525 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30530 # Check if -fno-PIE works.
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30532 $as_echo_n "checking for -fno-PIE option... " >&6; }
30533 if ${gcc_cv_c_no_fpie+:} false
; then :
30534 $as_echo_n "(cached) " >&6
30536 saved_CXXFLAGS
="$CXXFLAGS"
30537 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30539 /* end confdefs.h. */
30540 int main(void) {return 0;}
30542 if ac_fn_cxx_try_compile
"$LINENO"; then :
30543 gcc_cv_c_no_fpie
=yes
30545 gcc_cv_c_no_fpie
=no
30547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30548 CXXFLAGS
="$saved_CXXFLAGS"
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30551 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30552 if test "$gcc_cv_c_no_fpie" = "yes"; then
30553 NO_PIE_CFLAGS
="-fno-PIE"
30557 # Check if -no-pie works.
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30559 $as_echo_n "checking for -no-pie option... " >&6; }
30560 if ${gcc_cv_no_pie+:} false
; then :
30561 $as_echo_n "(cached) " >&6
30563 saved_LDFLAGS
="$LDFLAGS"
30564 LDFLAGS
="$LDFLAGS -no-pie"
30565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30566 /* end confdefs.h. */
30567 int main(void) {return 0;}
30569 if ac_fn_cxx_try_link
"$LINENO"; then :
30574 rm -f core conftest.err conftest.
$ac_objext \
30575 conftest
$ac_exeext conftest.
$ac_ext
30576 LDFLAGS
="$saved_LDFLAGS"
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30579 $as_echo "$gcc_cv_no_pie" >&6; }
30580 if test "$gcc_cv_no_pie" = "yes"; then
30581 NO_PIE_FLAG
="-no-pie"
30585 # Check linker supports '-z bndplt'
30586 ld_bndplt_support
=no
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30588 $as_echo_n "checking linker -z bndplt option... " >&6; }
30589 if test x
"$ld_is_gold" = xno
; then
30590 if test $in_tree_ld = yes ; then
30591 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
30592 ld_bndplt_support
=yes
30594 elif test x
$gcc_cv_ld != x
; then
30595 # Check if linker supports -a bndplt option
30596 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30597 ld_bndplt_support
=yes
30601 if test x
"$ld_bndplt_support" = xyes
; then
30603 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30607 $as_echo "$ld_bndplt_support" >&6; }
30609 # Check linker supports '--push-state'/'--pop-state'
30610 ld_pushpopstate_support
=no
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30612 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30613 if test x
"$ld_is_gold" = xno
; then
30614 if test $in_tree_ld = yes ; then
30615 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
30616 ld_pushpopstate_support
=yes
30618 elif test x
$gcc_cv_ld != x
; then
30619 # Check if linker supports --push-state/--pop-state options
30620 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30621 ld_pushpopstate_support
=yes
30625 if test x
"$ld_pushpopstate_support" = xyes
; then
30627 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30631 $as_echo "$ld_pushpopstate_support" >&6; }
30633 # Configure the subdirectories
30634 # AC_CONFIG_SUBDIRS($subdirs)
30636 # Create the Makefile
30637 # and configure language subdirectories
30638 ac_config_files
="$ac_config_files $all_outputs"
30641 ac_config_commands
="$ac_config_commands default"
30643 cat >confcache
<<\_ACEOF
30644 # This file is a shell script that caches the results of configure
30645 # tests run on this system so they can be shared between configure
30646 # scripts and configure runs, see configure's option --config-cache.
30647 # It is not useful on other systems. If it contains results you don't
30648 # want to keep, you may remove or edit it.
30650 # config.status only pays attention to the cache file if you give it
30651 # the --recheck option to rerun configure.
30653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30655 # following values.
30659 # The following way of writing the cache mishandles newlines in values,
30660 # but we know of no workaround that is simple, portable, and efficient.
30661 # So, we kill variables containing newlines.
30662 # Ultrix sh set writes to stderr and can't be redirected directly,
30663 # and sets the high bit in the cache file unless we assign to the vars.
30665 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30666 eval ac_val
=\$
$ac_var
30670 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30674 _ | IFS | as_nl
) ;; #(
30675 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30676 *) { eval $ac_var=; unset $ac_var;} ;;
30682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30683 *${as_nl}ac_space
=\
*)
30684 # `set' does not quote correctly, so add quotes: double-quote
30685 # substitution turns \\\\ into \\, and sed turns \\ into \.
30688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30691 # `set' quotes correctly as required by POSIX, so do not add quotes.
30692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30705 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30706 if test -w "$cache_file"; then
30707 if test "x$cache_file" != "x/dev/null"; then
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30709 $as_echo "$as_me: updating cache $cache_file" >&6;}
30710 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30711 cat confcache
>"$cache_file"
30713 case $cache_file in #(
30715 mv -f confcache
"$cache_file"$$
&&
30716 mv -f "$cache_file"$$
"$cache_file" ;; #(
30718 mv -f confcache
"$cache_file" ;;
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30729 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30730 # Let make expand exec_prefix.
30731 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30733 DEFS
=-DHAVE_CONFIG_H
30738 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30739 # 1. Remove the extension, and $U if already installed.
30740 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30741 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30743 # will be set to the directory where LIBOBJS objects are built.
30744 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30745 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30747 LIBOBJS
=$ac_libobjs
30749 LTLIBOBJS
=$ac_ltlibobjs
30754 : "${CONFIG_STATUS=./config.status}"
30756 ac_clean_files_save
=$ac_clean_files
30757 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30763 # Generated by $as_me.
30764 # Run this file to recreate the current configuration.
30765 # Compiler output produced by configure, useful for debugging
30766 # configure, is in config.log if it exists.
30769 ac_cs_recheck=false
30772 SHELL=\${CONFIG_SHELL-$SHELL}
30775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30776 ## -------------------- ##
30777 ## M4sh Initialization. ##
30778 ## -------------------- ##
30780 # Be more Bourne compatible
30781 DUALCASE
=1; export DUALCASE
# for MKS sh
30782 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30786 # is contrary to our usage. Disable this feature.
30787 alias -g '${1+"$@"}'='"$@"'
30788 setopt NO_GLOB_SUBST
30790 case `(set -o) 2>/dev/null` in #(
30802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30803 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30806 # Prefer a ksh shell builtin over an external printf program on Solaris,
30807 # but without wasting forks for bash or zsh.
30808 if test -z "$BASH_VERSION$ZSH_VERSION" \
30809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30810 as_echo='print
-r --'
30811 as_echo_n='print
-rn --'
30812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30813 as_echo='printf %s
\n'
30814 as_echo_n='printf %s
'
30816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30817 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30818 as_echo_n='/usr
/ucb
/echo -n'
30820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30821 as_echo_n_body='eval
30825 expr "X$arg" : "X\\(.*\\)$as_nl";
30826 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30828 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30830 export as_echo_n_body
30831 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30833 export as_echo_body
30834 as_echo='sh
-c $as_echo_body as_echo
'
30837 # The user is always right.
30838 if test "${PATH_SEPARATOR+set}" != set; then
30840 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30841 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30848 # We need space, tab and new line, in precisely that order. Quoting is
30849 # there to prevent editors from complaining about space-tab.
30850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30851 # splitting by setting IFS to empty value.)
30854 # Find who we are. Look in the path if we contain no directory separator.
30857 *[\\/]* ) as_myself=$0 ;;
30858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30859 for as_dir in $PATH
30862 test -z "$as_dir" && as_dir=.
30863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30869 # We did not find ourselves, most probably we were run as `sh COMMAND'
30870 # in which case we are not to be found in the path.
30871 if test "x$as_myself" = x
; then
30874 if test ! -f "$as_myself"; then
30875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30879 # Unset variables that we do not need and which cause bugs (e.g. in
30880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30881 # suppresses any "Segmentation fault" message there. '((' could
30882 # trigger a bug in pdksh 5.2.14.
30883 for as_var
in BASH_ENV ENV MAIL MAILPATH
30884 do eval test x\
${$as_var+set} = xset \
30885 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30898 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30902 # ----------------------------------------
30903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30905 # script with STATUS, using 1 if that was 0.
30908 as_status
=$1; test $as_status -eq 0 && as_status
=1
30910 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30913 $as_echo "$as_me: error: $2" >&2
30914 as_fn_exit
$as_status
30918 # as_fn_set_status STATUS
30919 # -----------------------
30920 # Set $? to STATUS, without forking.
30921 as_fn_set_status
()
30924 } # as_fn_set_status
30926 # as_fn_exit STATUS
30927 # -----------------
30928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30932 as_fn_set_status
$1
30938 # Portably unset VAR.
30941 { eval $1=; unset $1;}
30943 as_unset
=as_fn_unset
30944 # as_fn_append VAR VALUE
30945 # ----------------------
30946 # Append the text in VALUE to the end of the definition contained in VAR. Take
30947 # advantage of any shell optimizations that allow amortized linear growth over
30948 # repeated appends, instead of the typical quadratic growth present in naive
30950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30951 eval 'as_fn_append ()
30962 # as_fn_arith ARG...
30963 # ------------------
30964 # Perform arithmetic evaluation on the ARGs, and store the result in the
30965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30966 # must be portable across $(()) and expr.
30967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30968 eval 'as_fn_arith ()
30975 as_val
=`expr "$@" || test $? -eq 1`
30980 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30981 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30987 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30988 as_basename
=basename
30993 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30999 as_me
=`$as_basename -- "$0" ||
31000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31001 X"$0" : 'X\(//\)$' \| \
31002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31004 sed '/^.*\/\([^/][^/]*\)\/*$/{
31018 # Avoid depending upon Character Ranges.
31019 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31020 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31021 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31022 as_cr_digits
='0123456789'
31023 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31025 ECHO_C
= ECHO_N
= ECHO_T
=
31026 case `echo -n x` in #(((((
31028 case `echo 'xy\c'` in
31029 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31031 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31038 rm -f conf$$ conf$$.exe conf$$.
file
31039 if test -d conf$$.dir
; then
31040 rm -f conf$$.dir
/conf$$.
file
31043 mkdir conf$$.dir
2>/dev
/null
31045 if (echo >conf$$.
file) 2>/dev
/null
; then
31046 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31048 # ... but there are two gotchas:
31049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31051 # In both cases, we have to default to `cp -pR'.
31052 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31054 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31062 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31063 rmdir conf$$.dir
2>/dev
/null
31068 # Create "$as_dir" as a directory, including parents if necessary.
31073 -*) as_dir
=.
/$as_dir;;
31075 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31079 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31080 *) as_qdir
=$as_dir;;
31082 as_dirs
="'$as_qdir' $as_dirs"
31083 as_dir
=`$as_dirname -- "$as_dir" ||
31084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31085 X"$as_dir" : 'X\(//\)[^/]' \| \
31086 X"$as_dir" : 'X\(//\)$' \| \
31087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31088 $as_echo X"$as_dir" |
31089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31093 /^X\(\/\/\)[^/].*/{
31106 test -d "$as_dir" && break
31108 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31109 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31113 if mkdir
-p .
2>/dev
/null
; then
31114 as_mkdir_p
='mkdir -p "$as_dir"'
31116 test -d .
/-p && rmdir .
/-p
31121 # as_fn_executable_p FILE
31122 # -----------------------
31123 # Test if FILE is an executable regular file.
31124 as_fn_executable_p
()
31126 test -f "$1" && test -x "$1"
31127 } # as_fn_executable_p
31128 as_test_x
='test -x'
31129 as_executable_p
=as_fn_executable_p
31131 # Sed expression to map a string onto a valid CPP name.
31132 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31134 # Sed expression to map a string onto a valid variable name.
31135 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31139 ## ----------------------------------- ##
31140 ## Main body of $CONFIG_STATUS script. ##
31141 ## ----------------------------------- ##
31143 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31146 # Save the log message, to keep $0 and so on meaningful, and to
31147 # report actual input values of CONFIG_FILES etc. instead of their
31148 # values after options handling.
31150 This file was extended by $as_me, which was
31151 generated by GNU Autoconf 2.69. Invocation command line was
31153 CONFIG_FILES = $CONFIG_FILES
31154 CONFIG_HEADERS = $CONFIG_HEADERS
31155 CONFIG_LINKS = $CONFIG_LINKS
31156 CONFIG_COMMANDS = $CONFIG_COMMANDS
31159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31164 case $ac_config_files in *"
31165 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31168 case $ac_config_headers in *"
31169 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31174 # Files that config.status was made for.
31175 config_files="$ac_config_files"
31176 config_headers="$ac_config_headers"
31177 config_links="$ac_config_links"
31178 config_commands="$ac_config_commands"
31182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31184 \`$as_me' instantiates files and other configuration actions
31185 from templates according to the current configuration. Unless the files
31186 and actions are specified as TAGs, all are instantiated by default.
31188 Usage: $0 [OPTION]... [TAG]...
31190 -h, --help print this help, then exit
31191 -V, --version print version number and configuration settings, then exit
31192 --config print configuration, then exit
31193 -q, --quiet, --silent
31194 do not print progress messages
31195 -d, --debug don't remove temporary files
31196 --recheck update $as_me by reconfiguring in the same conditions
31197 --file=FILE[:TEMPLATE]
31198 instantiate the configuration file FILE
31199 --header=FILE[:TEMPLATE]
31200 instantiate the configuration header FILE
31202 Configuration files:
31205 Configuration headers:
31208 Configuration links:
31211 Configuration commands:
31214 Report bugs to the package provider."
31217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31221 configured by $0, generated by GNU Autoconf 2.69,
31222 with options \\"\$ac_cs_config\\"
31224 Copyright (C) 2012 Free Software Foundation, Inc.
31225 This config.status script is free software; the Free Software Foundation
31226 gives unlimited permission to copy, distribute and modify it."
31231 test -n "\$AWK" || AWK=awk
31234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31235 # The default lists apply if the user does not specify any file.
31241 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31242 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31246 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31258 # Handling of the options.
31259 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31261 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31262 $as_echo "$ac_cs_version"; exit ;;
31263 --config |
--confi |
--conf |
--con |
--co |
--c )
31264 $as_echo "$ac_cs_config"; exit ;;
31265 --debug |
--debu |
--deb |
--de |
--d |
-d )
31267 --file |
--fil |
--fi |
--f )
31270 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31271 '') as_fn_error $?
"missing file argument" ;;
31273 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31274 ac_need_defaults
=false
;;
31275 --header |
--heade |
--head |
--hea )
31278 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31280 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31281 ac_need_defaults
=false
;;
31283 # Conflict between --help and --header
31284 as_fn_error $?
"ambiguous option: \`$1'
31285 Try \`$0 --help' for more information.";;
31286 --help |
--hel |
-h )
31287 $as_echo "$ac_cs_usage"; exit ;;
31288 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31289 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31292 # This is an error.
31293 -*) as_fn_error $?
"unrecognized option: \`$1'
31294 Try \`$0 --help' for more information." ;;
31296 *) as_fn_append ac_config_targets
" $1"
31297 ac_need_defaults
=false
;;
31303 ac_configure_extra_args
=
31305 if $ac_cs_silent; then
31307 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31312 if \$ac_cs_recheck; then
31313 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31316 CONFIG_SHELL='$SHELL'
31317 export CONFIG_SHELL
31322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31327 ## Running $as_me. ##
31333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31337 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31338 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31345 # Handling of arguments.
31346 for ac_config_target
in $ac_config_targets
31348 case $ac_config_target in
31349 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31350 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31351 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31352 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31353 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31354 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31355 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31356 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31357 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31359 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31364 # If the user did not use the arguments to specify the items to instantiate,
31365 # then the envvar interface is used. Set only those that are not.
31366 # We use the long form for the default assignment because of an extremely
31367 # bizarre bug on SunOS 4.1.3.
31368 if $ac_need_defaults; then
31369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31371 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31375 # Have a temporary directory for convenience. Make it in the build tree
31376 # simply because there is no reason against having it here, and in addition,
31377 # creating and moving files from /tmp can sometimes cause problems.
31378 # Hook for its removal unless debugging.
31379 # Note that there is a small window in which the directory will not be cleaned:
31380 # after its creation but before its name has been assigned to `$tmp'.
31384 trap 'exit_status=$?
31385 : "${ac_tmp:=$tmp}"
31386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31388 trap 'as_fn_exit 1' 1 2 13 15
31390 # Create a (secure) tmp directory for tmp files.
31393 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31397 tmp
=.
/conf$$
-$RANDOM
31398 (umask 077 && mkdir
"$tmp")
31399 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31402 # Set up the scripts for CONFIG_FILES section.
31403 # No need to generate them if there are no CONFIG_FILES.
31404 # This happens for instance with `./config.status config.h'.
31405 if test -n "$CONFIG_FILES"; then
31407 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31408 ac_cs_awk_getline
=:
31409 ac_cs_awk_pipe_init
=
31410 ac_cs_awk_read_file
='
31411 while ((getline aline < (F[key])) > 0)
31414 ac_cs_awk_pipe_fini
=
31416 ac_cs_awk_getline
=false
31417 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31418 ac_cs_awk_read_file
='
31420 print "cat " F[key] " &&"
31421 '$ac_cs_awk_pipe_init
31422 # The final `:' finishes the AND list.
31423 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31425 ac_cr
=`echo X | tr X '\015'`
31426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31427 # But we know of no other shell where ac_cr would be empty at this
31428 # point, so we can use a bashism as a fallback.
31429 if test "x$ac_cr" = x
; then
31430 eval ac_cr
=\$
\'\\r
\'
31432 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31436 ac_cs_awk_cr
=$ac_cr
31439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31442 # Create commands to substitute file output variables.
31444 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31445 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31446 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31449 } >conf$
$files.sh
&&
31450 . .
/conf$
$files.sh ||
31451 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31452 rm -f conf$
$files.sh
31455 echo "cat >conf$$subs.awk <<_ACEOF" &&
31456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31458 } >conf$$subs.sh ||
31459 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31462 for ac_last_try in false false false false false :; do
31463 . ./conf$$subs.sh ||
31464 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31466 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31467 if test $ac_delim_n = $ac_delim_num; then
31469 elif $ac_last_try; then
31470 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31472 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31475 rm -f conf$$subs.sh
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31482 s/^/S["/; s
/!.
*/"]=/
31492 s/\(.\{148\}\)..*/\1/
31494 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31499 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31506 s/\(.\{148\}\)..*/\1/
31508 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31512 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31517 ' <conf$$subs.awk | sed '
31522 ' >>$CONFIG_STATUS || ac_write_fail=1
31523 rm -f conf$$subs.awk
31524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31526 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31527 for (key in S) S_is_set[key] = 1
31529 \$ac_cs_awk_pipe_init
31533 nfields = split(line, field, "@
")
31535 len = length(field[1])
31536 for (i = 2; i < nfields; i++) {
31538 keylen = length(key)
31539 if (S_is_set[key]) {
31541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31542 len += length(value) + length(field[++i])
31547 if (nfields == 3 && !substed) {
31549 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31550 \$ac_cs_awk_read_file
31556 \$ac_cs_awk_pipe_fini
31559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31560 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31561 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31564 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31565 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31568 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31569 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31570 # trailing colons and then remove the whole line if VPATH becomes empty
31571 # (actually we leave an empty line to preserve line numbers).
31572 if test "x
$srcdir" = x.; then
31573 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31592 fi # test -n "$CONFIG_FILES"
31594 # Set up the scripts for CONFIG_HEADERS section.
31595 # No need to generate them if there are no CONFIG_HEADERS.
31596 # This happens for instance with `./config.status Makefile'.
31597 if test -n "$CONFIG_HEADERS"; then
31598 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31602 # Transform confdefs.h into an awk script `defines.awk', embedded as
31603 # here-document in config.status, that substitutes the proper values into
31604 # config.h.in to produce config.h.
31606 # Create a delimiter string that does not exist in confdefs.h, to ease
31607 # handling of long lines.
31609 for ac_last_try in false false :; do
31610 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31611 if test -z "$ac_tt"; then
31613 elif $ac_last_try; then
31614 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31616 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31620 # For the awk script, D is an array of macro values keyed by name,
31621 # likewise P contains macro parameters if any. Preserve backslash
31622 # newline sequences.
31624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31626 s/.\{148\}/&'"$ac_delim"'/g
31629 s/^[ ]*#[ ]*define[ ][ ]*/ /
31636 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31638 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31643 D["\
1"]=" \
3\\\\\\n
"\\/p
31645 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31650 s/.\{148\}/&'"$ac_delim"'/g
31655 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31658 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31660 ' <confdefs.h | sed '
31661 s/'"$ac_delim"'/"\\\
31662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31665 for (key in D) D_is_set[key] = 1
31668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31670 split(line, arg, " ")
31671 if (arg[1] == "#") {
31675 defundef
= substr
(arg
[1], 2)
31678 split(mac1
, mac2
, "(") #)
31680 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31681 if (D_is_set
[macro
]) {
31682 # Preserve the white space surrounding the "#".
31683 print prefix
"define", macro P
[macro
] D
[macro
]
31686 # Replace #undef with comments. This is necessary, for example,
31687 # in the case of _POSIX_SOURCE, which is predefined and required
31688 # on some systems where configure will not decide to define it.
31689 if (defundef
== "undef") {
31690 print
"/*", prefix defundef
, macro
, "*/"
31698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31699 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31700 fi # test -n "$CONFIG_HEADERS"
31703 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31708 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31710 case $ac_mode$ac_tag in
31712 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31713 :[FH
]-) ac_tag
=-:-;;
31714 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31731 -) ac_f
="$ac_tmp/stdin";;
31732 *) # Look for the file first in the build tree, then in the source tree
31733 # (if the path is not absolute). The absolute path cannot be DOS-style,
31734 # because $ac_f cannot contain `:'.
31738 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31740 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31742 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31743 as_fn_append ac_file_inputs
" '$ac_f'"
31746 # Let's still pretend it is `configure' which instantiates (i.e., don't
31747 # use $as_me), people would be surprised to read:
31748 # /* config.h. Generated by config.status. */
31749 configure_input
='Generated from '`
31750 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31752 if test x
"$ac_file" != x-
; then
31753 configure_input
="$ac_file. $configure_input"
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31755 $as_echo "$as_me: creating $ac_file" >&6;}
31757 # Neutralize special characters interpreted by sed in replacement strings.
31758 case $configure_input in #(
31759 *\
&* |
*\|
* |
*\\* )
31760 ac_sed_conf_input
=`$as_echo "$configure_input" |
31761 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31762 *) ac_sed_conf_input
=$configure_input;;
31766 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31767 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31772 ac_dir
=`$as_dirname -- "$ac_file" ||
31773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31774 X"$ac_file" : 'X\(//\)[^/]' \| \
31775 X"$ac_file" : 'X\(//\)$' \| \
31776 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31777 $as_echo X"$ac_file" |
31778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31782 /^X\(\/\/\)[^/].*/{
31795 as_dir
="$ac_dir"; as_fn_mkdir_p
31799 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31801 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31802 # A ".." for each directory in $ac_dir_suffix.
31803 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31804 case $ac_top_builddir_sub in
31805 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31806 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31809 ac_abs_top_builddir
=$ac_pwd
31810 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31811 # for backward compatibility:
31812 ac_top_builddir
=$ac_top_build_prefix
31815 .
) # We are building in place.
31817 ac_top_srcdir
=$ac_top_builddir_sub
31818 ac_abs_top_srcdir
=$ac_pwd ;;
31819 [\\/]* | ?
:[\\/]* ) # Absolute name.
31820 ac_srcdir
=$srcdir$ac_dir_suffix;
31821 ac_top_srcdir
=$srcdir
31822 ac_abs_top_srcdir
=$srcdir ;;
31823 *) # Relative name.
31824 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31825 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31826 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31828 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31840 # If the template does not know about datarootdir, expand it.
31841 # FIXME: This hack should be removed a few years after 2.60.
31842 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31854 *datarootdir
*) ac_datarootdir_seen
=yes;;
31855 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31860 ac_datarootdir_hack='
31861 s&@datadir@&$datadir&g
31862 s&@docdir@&$docdir&g
31863 s&@infodir@&$infodir&g
31864 s&@localedir@&$localedir&g
31865 s&@mandir@&$mandir&g
31866 s&\\\${datarootdir}&$datarootdir&g' ;;
31870 # Neutralize VPATH when `$srcdir' = `.'.
31871 # Shell code in configure.ac might set extrasub.
31872 # FIXME: do we really want to maintain this feature?
31873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31874 ac_sed_extra="$ac_vpsub
31877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31879 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31880 s|@configure_input@|
$ac_sed_conf_input|
;t t
31881 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31882 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31883 s
&@srcdir@
&$ac_srcdir&;t t
31884 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31885 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31886 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31887 s
&@builddir@
&$ac_builddir&;t t
31888 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31889 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31890 $ac_datarootdir_hack
31892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31893 if $ac_cs_awk_getline; then
31894 $AWK -f "$ac_tmp/subs.
awk"
31896 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31898 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31903 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31905 which seems to be undefined. Please make sure it is defined" >&5
31906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31907 which seems to be undefined. Please make sure it is defined" >&2;}
31909 rm -f "$ac_tmp/stdin"
31911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31920 if test x"$ac_file" != x-; then
31922 $as_echo "/* $configure_input */" \
31923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31924 } >"$ac_tmp/config.h" \
31925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31931 mv "$ac_tmp/config.h" "$ac_file" \
31932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31935 $as_echo "/* $configure_input */" \
31936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31937 || as_fn_error $? "could not create -" "$LINENO" 5
31945 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31948 # Prefer the file from the source tree if names are identical.
31949 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31950 ac_source=$srcdir/$ac_source
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31954 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31956 if test ! -r "$ac_source"; then
31957 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31961 # Try a relative symlink, then a hard link, then a copy.
31963 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31964 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31966 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31967 ln "$ac_source" "$ac_file" 2>/dev/null ||
31968 cp -p "$ac_source" "$ac_file" ||
31969 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31972 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31973 $as_echo "$as_me: executing $ac_file commands" >&6;}
31978 case $ac_file$ac_mode in
31979 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31981 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31982 for lang in $subdirs c-family common
31984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31986 "as":F) chmod +x as ;;
31987 "collect-ld":F) chmod +x collect-ld ;;
31988 "nm":F) chmod +x nm ;;
31990 case ${CONFIG_HEADERS} in
31991 *auto-host.h:config.in*)
31994 # Make sure all the subdirs exist.
31995 for d in $subdirs doc build common c-family
31997 test -d $d || mkdir $d
32007 ac_clean_files=$ac_clean_files_save
32009 test $ac_write_fail = 0 ||
32010 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32013 # configure is writing to config.log, and then calls config.status.
32014 # config.status does its own redirection, appending to config.log.
32015 # Unfortunately, on DOS this fails, as config.log is still kept open
32016 # by configure, so config.status won't be able to
write to it
; its
32017 # output is simply discarded. So we exec the FD to /dev/null,
32018 # effectively closing config.log, so it can be properly (re)opened and
32019 # appended to by config.status. When coming back to configure, we
32020 # need to make the FD available again.
32021 if test "$no_create" != yes; then
32023 ac_config_status_args
=
32024 test "$silent" = yes &&
32025 ac_config_status_args
="$ac_config_status_args --quiet"
32027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32030 # would make configure fail if this is the last instruction.
32031 $ac_cs_success || as_fn_exit
1
32033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}