2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
24 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
25 DUALCASE
=1; export DUALCASE
# for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits
='0123456789'
34 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
49 # Support unset when possible.
50 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself
=$0 ;;
69 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir
=.
74 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x
; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var
in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C
; export $as_var
107 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
119 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me
=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x
; then
151 if (eval ":") 2>/dev
/null
; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev
/null
; then
217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
224 for as_base
in sh bash ksh sh5
; do
225 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
232 for as_shell
in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
247 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
248 DUALCASE
=1; export DUALCASE
# for MKS sh
253 CONFIG_SHELL
=$as_shell
255 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
267 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
268 DUALCASE
=1; export DUALCASE
# for MKS sh
280 as_func_ret_success
() {
283 as_func_ret_failure
() {
288 if as_func_success
; then
292 echo as_func_success failed.
295 if as_func_failure
; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success
; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure
; then
309 echo as_func_ret_failure succeeded.
312 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) ||
{ (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x
; then
337 for as_var
in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no
; then
346 echo This
script requires a shell
more modern than all the
347 echo shells that I found on your system. Please
install a
348 echo modern shell
, or manually run the
script under such a
349 echo shell
if you
do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") ||
{
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system
,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
466 ECHO_C
= ECHO_N
= ECHO_T
=
470 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
477 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
484 rm -f conf$$ conf$$.exe conf$$.
file
485 if test -d conf$$.dir
; then
486 rm -f conf$$.dir
/conf$$.
file
492 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
500 elif ln conf$$.
file conf$$
2>/dev
/null
; then
505 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
506 rmdir conf$$.dir
2>/dev
/null
508 if mkdir
-p .
2>/dev
/null
; then
511 test -d .
/-p && rmdir .
/-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.
file <<_ASEOF
522 if test -x conf$$.
file >/dev
/null
2>&1; then
523 as_executable_p
="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
555 SHELL
=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
675 valgrind_path_defines
682 TARGET_SYSTEM_ROOT_DEFINE
683 CROSS_SYSTEM_HEADER_DIR
739 ORIGINAL_AS_FOR_TARGET
741 ORIGINAL_LD_FOR_TARGET
743 ORIGINAL_NM_FOR_TARGET
759 all_gtfiles_files_langs
760 all_gtfiles_files_files
764 all_selected_languages
767 build_install_headers_dir
769 build_xm_include_list
773 quoted_cc_set_by_configure
800 stage_prefix_set_by_configure
801 quoted_stage_prefix_set_by_configure
818 ac_subst_files
='language_hooks'
819 ac_precious_vars
='build_alias
831 # Initialize some variables set by options.
833 ac_init_version
=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name
=s
,x
,x
,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir
='${exec_prefix}/bin'
858 sbindir
='${exec_prefix}/sbin'
859 libexecdir
='${exec_prefix}/libexec'
860 datarootdir
='${prefix}/share'
861 datadir
='${datarootdir}'
862 sysconfdir
='${prefix}/etc'
863 sharedstatedir
='${prefix}/com'
864 localstatedir
='${prefix}/var'
865 includedir
='${prefix}/include'
866 oldincludedir
='/usr/include'
867 docdir
='${datarootdir}/doc/${PACKAGE}'
868 infodir
='${datarootdir}/info'
873 libdir
='${exec_prefix}/lib'
874 localedir
='${datarootdir}/locale'
875 mandir
='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\
$ac_option
889 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
901 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
904 -build |
--build |
--buil |
--bui |
--bu)
905 ac_prev
=build_alias
;;
906 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
907 build_alias
=$ac_optarg ;;
909 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
910 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
911 ac_prev
=cache_file
;;
912 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
913 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
914 cache_file
=$ac_optarg ;;
917 cache_file
=config.cache
;;
919 -datadir |
--datadir |
--datadi |
--datad)
921 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
922 datadir
=$ac_optarg ;;
924 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
925 |
--dataroo |
--dataro |
--datar)
926 ac_prev
=datarootdir
;;
927 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
928 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
929 datarootdir
=$ac_optarg ;;
931 -disable-* |
--disable-*)
932 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_
$ac_feature=no
;;
940 -docdir |
--docdir |
--docdi |
--doc |
--do)
942 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
945 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
947 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
950 -enable-* |
--enable-*)
951 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_
$ac_feature=\
$ac_optarg ;;
959 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
960 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
961 |
--exec |
--exe |
--ex)
962 ac_prev
=exec_prefix
;;
963 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
964 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
965 |
--exec=* |
--exe=* |
--ex=*)
966 exec_prefix
=$ac_optarg ;;
968 -gas |
--gas |
--ga |
--g)
969 # Obsolete; use --with-gas.
972 -help |
--help |
--hel |
--he |
-h)
974 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
975 ac_init_help
=recursive
;;
976 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
977 ac_init_help
=short
;;
979 -host |
--host |
--hos |
--ho)
980 ac_prev
=host_alias
;;
981 -host=* |
--host=* |
--hos=* |
--ho=*)
982 host_alias
=$ac_optarg ;;
984 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
986 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
988 htmldir
=$ac_optarg ;;
990 -includedir |
--includedir |
--includedi |
--included |
--include \
991 |
--includ |
--inclu |
--incl |
--inc)
992 ac_prev
=includedir
;;
993 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
994 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
995 includedir
=$ac_optarg ;;
997 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
999 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1000 infodir
=$ac_optarg ;;
1002 -libdir |
--libdir |
--libdi |
--libd)
1004 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1005 libdir
=$ac_optarg ;;
1007 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1008 |
--libexe |
--libex |
--libe)
1009 ac_prev
=libexecdir
;;
1010 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1011 |
--libexe=* |
--libex=* |
--libe=*)
1012 libexecdir
=$ac_optarg ;;
1014 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1015 ac_prev
=localedir
;;
1016 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1017 localedir
=$ac_optarg ;;
1019 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1020 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1021 ac_prev
=localstatedir
;;
1022 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1023 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1024 localstatedir
=$ac_optarg ;;
1026 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1028 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1029 mandir
=$ac_optarg ;;
1031 -nfp |
--nfp |
--nf)
1032 # Obsolete; use --without-fp.
1035 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1036 |
--no-cr |
--no-c |
-n)
1039 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1040 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1043 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1044 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1045 |
--oldin |
--oldi |
--old |
--ol |
--o)
1046 ac_prev
=oldincludedir
;;
1047 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1048 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1049 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1050 oldincludedir
=$ac_optarg ;;
1052 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1054 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1055 prefix
=$ac_optarg ;;
1057 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1058 |
--program-pre |
--program-pr |
--program-p)
1059 ac_prev
=program_prefix
;;
1060 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1061 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1062 program_prefix
=$ac_optarg ;;
1064 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1065 |
--program-suf |
--program-su |
--program-s)
1066 ac_prev
=program_suffix
;;
1067 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1068 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1069 program_suffix
=$ac_optarg ;;
1071 -program-transform-name |
--program-transform-name \
1072 |
--program-transform-nam |
--program-transform-na \
1073 |
--program-transform-n |
--program-transform- \
1074 |
--program-transform |
--program-transfor \
1075 |
--program-transfo |
--program-transf \
1076 |
--program-trans |
--program-tran \
1077 |
--progr-tra |
--program-tr |
--program-t)
1078 ac_prev
=program_transform_name
;;
1079 -program-transform-name=* |
--program-transform-name=* \
1080 |
--program-transform-nam=* |
--program-transform-na=* \
1081 |
--program-transform-n=* |
--program-transform-=* \
1082 |
--program-transform=* |
--program-transfor=* \
1083 |
--program-transfo=* |
--program-transf=* \
1084 |
--program-trans=* |
--program-tran=* \
1085 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1086 program_transform_name
=$ac_optarg ;;
1088 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1090 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1091 pdfdir
=$ac_optarg ;;
1093 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1095 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1099 |
-silent |
--silent |
--silen |
--sile |
--sil)
1102 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1104 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1106 sbindir
=$ac_optarg ;;
1108 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1109 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1110 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1112 ac_prev
=sharedstatedir
;;
1113 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1114 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1115 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1117 sharedstatedir
=$ac_optarg ;;
1119 -site |
--site |
--sit)
1121 -site=* |
--site=* |
--sit=*)
1124 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1126 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1127 srcdir
=$ac_optarg ;;
1129 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1130 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1131 ac_prev
=sysconfdir
;;
1132 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1133 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1134 sysconfdir
=$ac_optarg ;;
1136 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1137 ac_prev
=target_alias
;;
1138 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1139 target_alias
=$ac_optarg ;;
1141 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1144 -version |
--version |
--versio |
--versi |
--vers |
-V)
1145 ac_init_version
=: ;;
1148 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_
$ac_package=\
$ac_optarg ;;
1156 -without-* |
--without-*)
1157 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_
$ac_package=no
;;
1166 # Obsolete; use --with-x.
1169 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1170 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1171 ac_prev
=x_includes
;;
1172 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1173 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1174 x_includes
=$ac_optarg ;;
1176 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1177 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1178 ac_prev
=x_libraries
;;
1179 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1180 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1181 x_libraries
=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\
$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val
=\$
$ac_var
1222 [\\/$
]* | ?
:[\\/]* ) continue;;
1223 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target
=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x
; then
1238 if test "x$build_alias" = x
; then
1239 cross_compiling
=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1250 test "$silent" = yes && exec 6>/dev
/null
1253 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di
=`ls -di .` &&
1255 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted
=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir
=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted
=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var
in $ac_precious_vars; do
1318 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1320 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures this package to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1394 --build=BUILD configure
for building on BUILD
[guessed
]
1395 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1396 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1400 if test -n "$ac_init_help"; then
1405 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1406 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1407 --enable-generated-files-in-srcdir
1408 put copies of generated files
in source dir
1409 intended
for creating
source tarballs
for users
1410 without texinfo bison or flex.
1411 --enable-werror-always enable -Werror always
1412 --enable-werror enable -Werror in bootstrap stage2 and later
1413 --enable-checking=LIST
1414 enable expensive run-time checks. With LIST
,
1415 enable only specific categories of checks.
1416 Categories are
: yes,no
,all
,none
,release.
1417 Flags are
: assert
,fold,gc
,gcac
,misc
,
1418 rtlflag
,rtl
,runtime
,tree
,valgrind.
1419 --enable-mapped-location location_t is fileline integer cookie
1420 --enable-coverage=LEVEL
1421 enable compiler
's code coverage collection.
1422 Use to measure compiler performance and locate
1423 unused parts of the compiler. With LEVEL, specify
1424 optimization. Values are opt, noopt,
1426 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1427 --enable-multilib enable library support for multiple ABIs
1428 --enable-__cxa_atexit enable __cxa_atexit for C++
1429 --enable-decimal-float enable decimal float extension to C
1430 --enable-threads enable thread usage for target GCC
1431 --enable-threads=LIB use LIB thread package for target GCC
1432 --enable-tls enable or disable generation of tls code
1433 overriding the assembler check for tls support
1434 --enable-objc-gc enable the use of Boehm's garbage collector with
1435 the GNU Objective-C runtime
1436 --disable-shared don
't provide a shared libgcc
1437 --enable-intermodule build the compiler in one step
1438 --enable-languages=LIST specify which front-ends to build
1439 --disable-rpath do not hardcode runtime library paths
1440 --enable-initfini-array use .init_array/.fini_array sections
1441 --enable-sjlj-exceptions
1442 arrange to use setjmp/longjmp exception handling
1443 --enable-secureplt enable -msecure-plt by default for PowerPC
1444 --disable-win32-registry
1445 disable lookup of installation paths in the
1446 Registry on Windows hosts
1447 --enable-win32-registry enable registry lookup (default)
1448 --enable-win32-registry=KEY
1449 use KEY instead of GCC version as the last portion
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
1454 --enable-version-specific-runtime-libs
1455 specify that runtime libraries should be
1456 installed in a compiler-specific directory
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
1462 --with-local-prefix=DIR specifies directory to put local include
1463 --with-gxx-include-dir=DIR
1464 specifies directory to put g++ header files
1465 --with-cpp-install-dir=DIR
1466 install the user visible C preprocessor in DIR
1467 (relative to PREFIX) as well as PREFIX/bin
1468 --with-gnu-ld arrange to work with GNU ld.
1469 --with-ld arrange to use the specified ld (full pathname)
1470 --with-demangler-in-ld try to use demangler in GNU ld.
1471 --with-gnu-as arrange to work with GNU as
1472 --with-as arrange to use the specified as (full pathname)
1473 --with-stabs arrange to use stabs instead of host debug format
1474 --with-dwarf2 force the default debug format to be DWARF 2
1475 --with-build-sysroot=sysroot
1476 use sysroot as the system root during the build
1477 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1478 --with-gnu-ld assume the C compiler uses GNU ld default=no
1479 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1480 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1481 --with-system-libunwind use installed libunwind
1482 --with-long-double-128 Use
128-bit long double by default.
1483 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1485 --with-system-zlib use installed libz
1486 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1487 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1488 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1489 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1491 Some influential environment variables
:
1492 CC C compiler
command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1495 nonstandard directory
<lib dir
>
1496 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1497 you have headers
in a nonstandard directory
<include dir
>
1499 GMPLIBS How to link GMP
1500 GMPINC How to
find GMP include files
1502 Use these variables to override the choices made by
`configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" || continue
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1566 generated by GNU Autoconf 2.60
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.60. Invocation command line was
1592 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1593 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1594 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1595 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1596 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1598 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1599 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1601 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1602 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1603 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1604 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1605 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1606 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1607 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1863 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1867 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1874 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1875 echo "$as_me: former value
: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1877 echo "$as_me: current value
: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1895 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1896 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1928 gcc_version=`cat $srcdir/BASE-VER
`
1930 # Determine the host, build, and target systems
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979 { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029 { (exit 1); exit 1; }; };;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2045 { echo "$as_me:$LINENO: checking target system type" >&5
2046 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2047 if test "${ac_cv_target+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test "x$target_alias" = x; then
2051 ac_cv_target=$ac_cv_host
2053 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2054 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2056 { (exit 1); exit 1; }; }
2060 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2061 echo "${ECHO_T}$ac_cv_target" >&6; }
2062 case $ac_cv_target in
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2065 echo "$as_me: error: invalid value of canonical target" >&2;}
2066 { (exit 1); exit 1; }; };;
2068 target=$ac_cv_target
2069 ac_save_IFS=$IFS; IFS='-'
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2079 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2082 # The aliases save the names the user supplied, while $host etc.
2083 # will get canonicalized.
2084 test -n "$target_alias" &&
2085 test "$program_prefix$program_suffix$program_transform_name" = \
2087 program_prefix=${target_alias}-
2089 # Determine the noncanonical target name, for directory use.
2090 case ${build_alias} in
2091 "") build_noncanonical=${build} ;;
2092 *) build_noncanonical=${build_alias} ;;
2095 case ${host_alias} in
2096 "") host_noncanonical=${build_noncanonical} ;;
2097 *) host_noncanonical=${host_alias} ;;
2100 case ${target_alias} in
2101 "") target_noncanonical=${host_noncanonical} ;;
2102 *) target_noncanonical=${target_alias} ;;
2108 # Determine the target- and build-specific subdirectories
2110 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2111 # have matching libraries, they should use host libraries: Makefile.tpl
2112 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2113 # However, they still use the build modules, because the corresponding
2114 # host modules (e.g. bison) are only built for the host when bootstrap
2116 # - build_subdir is where we find build modules, and never changes.
2117 # - build_libsubdir is where we find build libraries, and can be overridden.
2119 # Prefix 'build-' so this never conflicts with target_subdir.
2120 build_subdir="build-${build_noncanonical}"
2122 # Check whether --with-build-libsubdir was given.
2123 if test "${with_build_libsubdir+set}" = set; then
2124 withval=$with_build_libsubdir; build_libsubdir="$withval"
2126 build_libsubdir="$build_subdir"
2129 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2130 if ( test $srcdir = . && test -d gcc ) \
2131 || test -d $srcdir/../host-${host_noncanonical}; then
2132 host_subdir="host-${host_noncanonical}"
2137 target_subdir=${target_noncanonical}
2140 # Set program_transform_name
2141 test "$program_prefix" != NONE &&
2142 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2143 # Use a double $ so make ignores it.
2144 test "$program_suffix" != NONE &&
2145 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2146 # Double any \ or $. echo might interpret backslashes.
2147 # By default was `s
,x
,x
', remove it if useless.
2148 cat <<\_ACEOF >conftest.sed
2149 s/[\\$]/&&/g;s/;s,x,x,$//
2151 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2155 # Check for bogus environment variables.
2156 # Test if LIBRARY_PATH contains the notation for the current directory
2157 # since this would lead to problems installing/building glibc.
2158 # LIBRARY_PATH contains the current directory if one of the following
2160 # - one of the terminals (":" and ";") is the first or last sign
2161 # - two terminals occur directly after each other
2162 # - the path contains an element with a dot in it
2163 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2164 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2165 case ${LIBRARY_PATH} in
2166 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2167 library_path_setting="contains current directory"
2170 library_path_setting="ok"
2173 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2174 echo "${ECHO_T}$library_path_setting" >&6; }
2175 if test "$library_path_setting" != "ok"; then
2176 { { echo "$as_me:$LINENO: error:
2177 *** LIBRARY_PATH shouldn't contain the current directory when
2178 *** building gcc. Please change the environment variable
2179 *** and run configure again.
" >&5
2180 echo "$as_me: error
:
2181 *** LIBRARY_PATH shouldn
't contain the current directory when
2182 *** building gcc. Please change the environment variable
2183 *** and run configure again." >&2;}
2184 { (exit 1); exit 1; }; }
2187 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2188 # since this would lead to problems installing/building glibc.
2189 # GCC_EXEC_PREFIX contains the current directory if one of the following
2191 # - one of the terminals (":" and ";") is the first or last sign
2192 # - two terminals occur directly after each other
2193 # - the path contains an element with a dot in it
2194 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2195 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2196 case ${GCC_EXEC_PREFIX} in
2197 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2198 gcc_exec_prefix_setting="contains current directory"
2201 gcc_exec_prefix_setting="ok"
2204 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2205 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2206 if test "$gcc_exec_prefix_setting" != "ok"; then
2207 { { echo "$as_me:$LINENO: error:
2208 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2209 *** building gcc. Please change the environment variable
2210 *** and run configure again.
" >&5
2211 echo "$as_me: error
:
2212 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
2213 *** building gcc. Please change the environment variable
2214 *** and run configure again." >&2;}
2215 { (exit 1); exit 1; }; }
2222 # Specify the local prefix
2225 # Check whether --with-local-prefix was given.
2226 if test "${with_local_prefix+set}" = set; then
2227 withval=$with_local_prefix; case "${withval}" in
2228 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2229 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2230 { (exit 1); exit 1; }; } ;;
2232 *) local_prefix=$with_local_prefix ;;
2237 # Default local prefix if it is empty
2238 if test x$local_prefix = x; then
2239 local_prefix=/usr/local
2242 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
2243 # passed in by the toplevel make and thus we'd get different behavior
2244 # depending on where we built the sources.
2245 gcc_gxx_include_dir
=
2246 # Specify the g++ header file directory
2248 # Check whether --with-gxx-include-dir was given.
2249 if test "${with_gxx_include_dir+set}" = set; then
2250 withval
=$with_gxx_include_dir; case "${withval}" in
2251 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2252 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2253 { (exit 1); exit 1; }; } ;;
2255 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
2260 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2261 if test x
${gcc_gxx_include_dir} = x
; then
2262 if test x
${enable_version_specific_runtime_libs} = xyes
; then
2263 gcc_gxx_include_dir
='${libsubdir}/include/c++'
2265 libstdcxx_incdir
='include/c++/$(version)'
2266 if test x
$host != x
$target; then
2267 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
2269 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
2274 # Check whether --with-cpp_install_dir was given.
2275 if test "${with_cpp_install_dir+set}" = set; then
2276 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
2277 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2278 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2279 { (exit 1); exit 1; }; }
2280 elif test x
$withval != xno
; then
2281 cpp_install_dir
=$withval
2286 # We would like to our source tree to be readonly. However when releases or
2287 # pre-releases are generated, the flex/bison generated files as well as the
2288 # various formats of manuals need to be included along with the rest of the
2289 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2292 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2293 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2294 # Check whether --enable-generated-files-in-srcdir was given.
2295 if test "${enable_generated_files_in_srcdir+set}" = set; then
2296 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
2298 generated_files_in_srcdir
=no
2302 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2303 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2305 if test "$generated_files_in_srcdir" = "yes"; then
2312 # -------------------
2313 # Find default linker
2314 # -------------------
2318 # Check whether --with-gnu-ld was given.
2319 if test "${with_gnu_ld+set}" = set; then
2320 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
2326 # With pre-defined ld
2328 # Check whether --with-ld was given.
2329 if test "${with_ld+set}" = set; then
2330 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
2333 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2334 if test ! -x "$DEFAULT_LINKER"; then
2335 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2336 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2337 { (exit 1); exit 1; }; }
2338 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2342 cat >>confdefs.h
<<_ACEOF
2343 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2348 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2349 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2350 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2351 if test x
"$gnu_ld_flag" = x
"no"; then
2352 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2353 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2355 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2356 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2363 # With demangler in GNU ld
2365 # Check whether --with-demangler-in-ld was given.
2366 if test "${with_demangler_in_ld+set}" = set; then
2367 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
2373 # ----------------------
2374 # Find default assembler
2375 # ----------------------
2379 # Check whether --with-gnu-as was given.
2380 if test "${with_gnu_as+set}" = set; then
2381 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
2388 # Check whether --with-as was given.
2389 if test "${with_as+set}" = set; then
2390 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
2393 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2394 if test ! -x "$DEFAULT_ASSEMBLER"; then
2395 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2396 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2397 { (exit 1); exit 1; }; }
2398 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2402 cat >>confdefs.h
<<_ACEOF
2403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2408 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2409 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2410 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2411 if test x
"$gas_flag" = x
"no"; then
2412 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2413 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2415 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2416 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2427 # If a non-executable a.out is present (e.g. created by GNU as above even if
2428 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2429 # file, even when creating an executable, so an execution test fails.
2430 # Remove possible default executable files to avoid this.
2432 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2433 # Autoconf includes it.
2434 rm -f a.out a.exe b.out
2436 # Find the native compiler
2438 ac_cpp
='$CPP $CPPFLAGS'
2439 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2444 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC
="$CC" # Let the user override the test.
2453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir
=.
2458 for ac_exec_ext
in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 if test -n "$CC"; then
2472 { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2481 if test -z "$ac_cv_prog_CC"; then
2483 # Extract the first word of "gcc", so it can be a program name with args.
2484 set dummy gcc
; ac_word
=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$ac_ct_CC"; then
2491 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir
=.
2498 for ac_exec_ext
in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_CC
="gcc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2511 if test -n "$ac_ct_CC"; then
2512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513 echo "${ECHO_T}$ac_ct_CC" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2519 if test "x$ac_ct_CC" = x
; then
2522 case $cross_compiling:$ac_tool_warned in
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned
=yes ;;
2538 if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2541 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC
="$CC" # Let the user override the test.
2550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir
=.
2555 for ac_exec_ext
in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2579 if test -z "$CC"; then
2580 # Extract the first word of "cc", so it can be a program name with args.
2581 set dummy cc
; ac_word
=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_CC+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$CC"; then
2588 ac_cv_prog_CC
="$CC" # Let the user override the test.
2591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir
=.
2596 for ac_exec_ext
in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2599 ac_prog_rejected
=yes
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test $ac_prog_rejected = yes; then
2611 # We found a bogon in the path, so make sure we never use it.
2612 set dummy
$ac_cv_prog_CC
2614 if test $# != 0; then
2615 # We chose a different compiler from the bogus one.
2616 # However, it has the same basename, so the bogon will be chosen
2617 # first if we set CC to just the basename; use the full file name.
2619 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2625 if test -n "$CC"; then
2626 { echo "$as_me:$LINENO: result: $CC" >&5
2627 echo "${ECHO_T}$CC" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2635 if test -z "$CC"; then
2636 if test -n "$ac_tool_prefix"; then
2637 for ac_prog
in cl.exe
2639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2640 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC
="$CC" # Let the user override the test.
2649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir
=.
2654 for ac_exec_ext
in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2676 test -n "$CC" && break
2679 if test -z "$CC"; then
2681 for ac_prog
in cl.exe
2683 # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy
$ac_prog; ac_word
=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir
=.
2698 for ac_exec_ext
in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_CC
="$ac_prog"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6; }
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2720 test -n "$ac_ct_CC" && break
2723 if test "x$ac_ct_CC" = x
; then
2726 case $cross_compiling:$ac_tool_warned in
2728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet. If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&5
2731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2732 whose name does not start with the host triplet. If you think this
2733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2734 ac_tool_warned
=yes ;;
2743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details." >&2;}
2747 { (exit 1); exit 1; }; }
2749 # Provide some information about the compiler.
2750 echo "$as_me:$LINENO: checking for C compiler version" >&5
2751 ac_compiler
=`set X $ac_compile; echo $2`
2752 { (ac_try
="$ac_compiler --version >&5"
2754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler --version >&5") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762 { (ac_try="$ac_compiler -v >&5"
2764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2765 *) ac_try_echo
=$ac_try;;
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -v >&5") 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772 { (ac_try
="$ac_compiler -V >&5"
2774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compiler -V >&5") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2783 cat >conftest.$ac_ext <<_ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2798 ac_clean_files_save=$ac_clean_files
2799 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2800 # Try to create an executable without -o first, disregard a.out.
2801 # It will help us diagnose broken compilers, and finding out an intuition
2803 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2804 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2805 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2807 # List of possible output files, starting from the most likely.
2808 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2809 # only as a last resort. b.out is created by i960 compilers.
2810 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2812 # The IRIX 6 linker writes into existing files which may not be
2813 # executable, retaining their permissions. Remove them first so a
2814 # subsequent execution test works.
2816 for ac_file in $ac_files
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2825 if { (ac_try="$ac_link_default"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_link_default") 2>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; then
2835 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2836 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2837 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2838 # so that the user can short-circuit this test for compilers unknown to
2840 for ac_file
in $ac_files
2842 test -f "$ac_file" ||
continue
2844 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2847 # We found the default executable, but exeext='' is most
2851 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2853 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2855 # We set ac_cv_exeext here because the later test for it is not
2856 # safe: cross compilers may not add the suffix if given an `-o'
2857 # argument, so we may need to know it at that point already.
2858 # Even if this section looks crufty: it has the advantage of
2865 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.
$ac_ext >&5
2871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&2;}
2875 { (exit 77); exit 77; }; }
2878 ac_exeext
=$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_file" >&5
2880 echo "${ECHO_T}$ac_file" >&6; }
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889 if { ac_try
='./$ac_file'
2890 { (case "(($ac_try" in
2891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_try") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 if test "$cross_compiling" = maybe; then
2904 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details.
" >&5
2907 echo "$as_me: error
: cannot run C compiled programs.
2908 If you meant to cross compile
, use \
`--host'.
2909 See \`config.log
' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_link") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; then
2938 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2939 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2942 for ac_file
in conftest.exe conftest conftest.
*; do
2943 test -f "$ac_file" ||
continue
2945 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2946 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest
$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2963 rm -f conftest.
$ac_ext
2964 EXEEXT
=$ac_cv_exeext
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 cat >conftest.
$ac_ext <<_ACEOF
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try
="$ac_compile"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 for ac_file in conftest.o conftest.obj conftest.*; do
2998 test -f "$ac_file" || continue;
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log
' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details.
" >&2;}
3013 { (exit 1); exit 1; }; }
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025 echo $ECHO_N "(cached
) $ECHO_C" >&6
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 echo "$as_me: failed program was
:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3093 GCC=`test $ac_compiler_gnu = yes && echo yes`
3094 ac_test_CFLAGS=${CFLAGS+set}
3095 ac_save_CFLAGS=$CFLAGS
3096 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3097 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3098 if test "${ac_cv_prog_cc_g+set}" = set; then
3099 echo $ECHO_N "(cached
) $ECHO_C" >&6
3101 ac_save_c_werror_flag=$ac_c_werror_flag
3102 ac_c_werror_flag=yes
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3143 (exit $ac_status); }; } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3153 (exit $ac_status); }; }; then
3156 echo "$as_me: failed program was
:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3208 (exit $ac_status); }; }; then
3211 echo "$as_me: failed program was
:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try='test -s conftest.$ac_objext'
3256 { (case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_try") 2>&5
3263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3264 (exit $ac_status); }; }; then
3267 echo "$as_me: failed program was
:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_c_werror_flag=$ac_save_c_werror_flag
3282 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3283 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3284 if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287 if test "$GCC" = yes; then
3293 if test "$GCC" = yes; then
3299 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3300 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3301 if test "${ac_cv_prog_cc_c89+set}" = set; then
3302 echo $ECHO_N "(cached
) $ECHO_C" >&6
3304 ac_cv_prog_cc_c89=no
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3314 #include <sys/types.h>
3315 #include <sys/stat.h>
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3330 s = g (p, va_arg (v,int));
3335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3336 function prototypes and stuff, but not '\xHH' hex character constants.
3337 These don't provoke an error unfortunately, instead are silently treated
3338 as 'x'. The following induces an error, until -std is added to get
3339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3340 array size at least. It's necessary to write '\x00'==0 to get something
3341 that's true only with -std. */
3342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3345 inside strings and character constants. */
3347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349 int test (int i, double x);
3350 struct s1 {int (*f) (int a);};
3351 struct s2 {int (*f) (double a);};
3352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 CC="$ac_save_CC $ac_arg"
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3390 (exit $ac_status); }; } &&
3391 { ac_try='test -s conftest.$ac_objext'
3392 { (case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_try") 2>&5
3399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_prog_cc_c89=$ac_arg
3403 echo "$as_me: failed program was
:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f core conftest.err conftest.$ac_objext
3410 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3412 rm -f conftest.$ac_ext
3417 case "x
$ac_cv_prog_cc_c89" in
3419 { echo "$as_me:$LINENO: result
: none needed
" >&5
3420 echo "${ECHO_T}none needed
" >&6; } ;;
3422 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3423 echo "${ECHO_T}unsupported
" >&6; } ;;
3425 CC="$CC $ac_cv_prog_cc_c89"
3426 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 if test "x
$CC" != xcc; then
3438 { echo "$as_me:$LINENO: checking whether
$CC and cc understand
-c and
-o together
" >&5
3439 echo $ECHO_N "checking whether
$CC and cc understand
-c and
-o together...
$ECHO_C" >&6; }
3441 { echo "$as_me:$LINENO: checking whether cc understands
-c and
-o together
" >&5
3442 echo $ECHO_N "checking whether cc understands
-c and
-o together...
$ECHO_C" >&6; }
3444 set dummy $CC; ac_cc=`echo $2 |
3445 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3446 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3447 echo $ECHO_N "(cached
) $ECHO_C" >&6
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 # Make sure it works both with $CC and with simple cc.
3465 # We do the test twice because some compilers refuse to overwrite an
3466 # existing .o file with -o, though they will create one.
3467 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3469 if { (case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_try") 2>&5
3476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3477 (exit $ac_status); } &&
3478 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_try") 2>&5
3485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3486 (exit $ac_status); };
3488 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3489 if test "x
$CC" != xcc; then
3490 # Test first that cc exists at all.
3491 if { ac_try='cc -c conftest.$ac_ext >&5'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3503 if { (case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_try") 2>&5
3510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3511 (exit $ac_status); } &&
3512 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_try") 2>&5
3519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3520 (exit $ac_status); };
3525 # cc exists but doesn't like -o.
3526 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3531 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3533 rm -f core conftest*
3536 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3537 { echo "$as_me:$LINENO: result
: yes" >&5
3538 echo "${ECHO_T}yes" >&6; }
3540 { echo "$as_me:$LINENO: result
: no
" >&5
3541 echo "${ECHO_T}no
" >&6; }
3543 cat >>confdefs.h <<\_ACEOF
3544 #define NO_MINUS_C_MINUS_O 1
3549 # expand $ac_aux_dir to an absolute path
3550 am_aux_dir=`cd $ac_aux_dir && pwd`
3552 # FIXME: we rely on the cache variable name because
3553 # there is no other way.
3555 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3556 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3557 # Losing compiler, so override with the script.
3558 # FIXME: It is wrong to rewrite CC.
3559 # But if we don't then we get into trouble of one sort or another.
3560 # A longer-term fix would be to have automake use am__CC in this case,
3561 # and then we could set am__CC="\$
(top_srcdir
)/compile \$
(CC
)"
3562 CC="$am_aux_dir/compile
$CC"
3565 # autoconf is lame and doesn't give us any substitution variable for this.
3566 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no
"; then
3567 NO_MINUS_C_MINUS_O=yes
3569 OUTPUT_OPTION='-o $@'
3574 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3575 # optimizations to be activated explicitly by the toplevel.
3577 */prev-gcc/xgcc*) ;;
3578 *) CFLAGS=`echo $CFLAGS | sed "s
/-O[s0-9
]* *//" ` ;;
3582 # -------------------------
3583 # Check C compiler features
3584 # -------------------------
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3597 if test -z "$CPP"; then
3598 if test "${ac_cv_prog_CPP+set}" = set; then
3599 echo $ECHO_N "(cached
) $ECHO_C" >&6
3601 # Double quotes because CPP needs to be expanded
3602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3605 for ac_c_preproc_warn_flag in '' yes
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error
" is here to catch this case.
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3620 # include <limits.h>
3622 # include <assert.h>
3626 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3638 (exit $ac_status); } >/dev/null; then
3639 if test -s conftest.err; then
3640 ac_cpp_err=$ac_c_preproc_warn_flag
3641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3648 if test -z "$ac_cpp_err"; then
3651 echo "$as_me: failed program was
:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 # Broken: fails on valid input.
3658 rm -f conftest.err conftest.$ac_ext
3660 # OK, works on sane cases. Now check whether nonexistent headers
3661 # can be detected and how.
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 #include <ac_nonexistent.h>
3670 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692 if test -z "$ac_cpp_err"; then
3693 # Broken: success on invalid input.
3696 echo "$as_me: failed program was
:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 # Passes both tests.
3704 rm -f conftest.err conftest.$ac_ext
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3721 { echo "$as_me:$LINENO: result
: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3724 for ac_c_preproc_warn_flag in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error
" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3739 # include <limits.h>
3741 # include <assert.h>
3745 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3753 grep -v '^ *+' conftest.er1 >conftest.err
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3757 (exit $ac_status); } >/dev/null; then
3758 if test -s conftest.err; then
3759 ac_cpp_err=$ac_c_preproc_warn_flag
3760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3767 if test -z "$ac_cpp_err"; then
3770 echo "$as_me: failed program was
:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 # Broken: fails on valid input.
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3789 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3801 (exit $ac_status); } >/dev/null; then
3802 if test -s conftest.err; then
3803 ac_cpp_err=$ac_c_preproc_warn_flag
3804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3811 if test -z "$ac_cpp_err"; then
3812 # Broken: success on invalid input.
3815 echo "$as_me: failed program was
:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Passes both tests.
3823 rm -f conftest.err conftest.$ac_ext
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then
3831 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3832 See \
`config.log' for more details." >&5
3833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log
' for more details." >&2;}
3835 { (exit 1); exit 1; }; }
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3841 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 { echo "$as_me:$LINENO: checking for inline" >&5
3846 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3847 if test "${ac_cv_c_inline+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 for ac_kw in inline __inline__ __inline; do
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3860 static $ac_kw foo_t static_foo () {return 0; }
3861 $ac_kw foo_t foo () {return 0; }
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^
*+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
3880 { (case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_try") 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try='test -s conftest.
$ac_objext'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_c_inline=$ac_kw
3901 echo "$as_me: failed program was:" >&5
3902 sed 's
/^
/|
/' conftest.$ac_ext >&5
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 test "$ac_cv_c_inline" != no && break
3912 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3913 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3916 case $ac_cv_c_inline in
3919 case $ac_cv_c_inline in
3921 *) ac_val=$ac_cv_c_inline;;
3923 cat >>confdefs.h <<_ACEOF
3925 #define inline $ac_val
3932 # sizeof(char) is 1 by definition.
3934 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3935 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 # Extract the first word of "grep ggrep" to use in msg output
3940 if test -z "$GREP"; then
3941 set dummy grep ggrep; ac_prog_name=$2
3942 if test "${ac_cv_path_GREP+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_path_GREP_found=false
3946 # Loop through the user's path and
test for each of PROGNAME-LIST
3947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3948 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3951 test -z "$as_dir" && as_dir
=.
3952 for ac_prog
in grep ggrep
; do
3953 for ac_exec_ext
in '' $ac_executable_extensions; do
3954 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3955 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3956 # Check for GNU ac_path_GREP and select it if it is found.
3957 # Check for GNU $ac_path_GREP
3958 case `"$ac_path_GREP" --version 2>&1` in
3960 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3963 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 echo 'GREP' >> "conftest.nl"
3970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3971 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3972 ac_count
=`expr $ac_count + 1`
3973 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_GREP
="$ac_path_GREP"
3976 ac_path_GREP_max
=$ac_count
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3981 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3985 $ac_path_GREP_found && break 3
3995 GREP
="$ac_cv_path_GREP"
3996 if test -z "$GREP"; then
3997 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3998 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3999 { (exit 1); exit 1; }; }
4003 ac_cv_path_GREP
=$GREP
4008 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4009 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4010 GREP
="$ac_cv_path_GREP"
4013 { echo "$as_me:$LINENO: checking for egrep" >&5
4014 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_EGREP+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4019 then ac_cv_path_EGREP
="$GREP -E"
4021 # Extract the first word of "egrep" to use in msg output
4022 if test -z "$EGREP"; then
4023 set dummy
egrep; ac_prog_name
=$2
4024 if test "${ac_cv_path_EGREP+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 ac_path_EGREP_found
=false
4028 # Loop through the user's path and test for each of PROGNAME-LIST
4029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4030 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4033 test -z "$as_dir" && as_dir
=.
4034 for ac_prog
in egrep; do
4035 for ac_exec_ext
in '' $ac_executable_extensions; do
4036 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4037 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
4038 # Check for GNU ac_path_EGREP and select it if it is found.
4039 # Check for GNU $ac_path_EGREP
4040 case `"$ac_path_EGREP" --version 2>&1` in
4042 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4048 cat "conftest.in" "conftest.in" >"conftest.tmp"
4049 mv "conftest.tmp" "conftest.in"
4050 cp "conftest.in" "conftest.nl"
4051 echo 'EGREP' >> "conftest.nl"
4052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4053 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4054 ac_count
=`expr $ac_count + 1`
4055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4056 # Best one so far, save it but keep looking for a better one
4057 ac_cv_path_EGREP
="$ac_path_EGREP"
4058 ac_path_EGREP_max
=$ac_count
4060 # 10*(2^10) chars as input seems more than enough
4061 test $ac_count -gt 10 && break
4063 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4067 $ac_path_EGREP_found && break 3
4077 EGREP
="$ac_cv_path_EGREP"
4078 if test -z "$EGREP"; then
4079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4081 { (exit 1); exit 1; }; }
4085 ac_cv_path_EGREP
=$EGREP
4091 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4092 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4093 EGREP
="$ac_cv_path_EGREP"
4096 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4098 if test "${ac_cv_header_stdc+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 cat >conftest.
$ac_ext <<_ACEOF
4104 cat confdefs.h
>>conftest.
$ac_ext
4105 cat >>conftest.
$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4120 rm -f conftest.
$ac_objext
4121 if { (ac_try
="$ac_compile"
4123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127 (eval "$ac_compile") 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4137 *) ac_try_echo
=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try
='test -s conftest.$ac_objext'
4145 { (case "(($ac_try" in
4146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_header_stdc=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_cv_header_stdc=no
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 if test $ac_cv_header_stdc = yes; then
4165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then
4179 ac_cv_header_stdc=no
4185 if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "free" >/dev/null 2>&1; then
4200 ac_cv_header_stdc=no
4206 if test $ac_cv_header_stdc = yes; then
4207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4208 if test "$cross_compiling" = yes; then
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4242 rm -f conftest$ac_exeext
4243 if { (ac_try="$ac_link"
4245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4246 *) ac_try_echo
=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_link") 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4253 { (case "(($ac_try" in
4254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 echo "$as_me: program exited with status $ac_status" >&5
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_header_stdc=no
4271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4277 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4278 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4279 if test $ac_cv_header_stdc = yes; then
4281 cat >>confdefs.h <<\_ACEOF
4282 #define STDC_HEADERS 1
4287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4298 inttypes.h stdint.h unistd.h
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4314 #include <$ac_header>
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4320 *) ac_try_echo
=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1
>conftest.err
4327 cat conftest.err
>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4331 { (case "(($ac_try" in
4332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (case "(($ac_try" in
4342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4343 *) ac_try_echo
=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_try") 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 eval "$as_ac_Header=yes"
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.
$ac_ext >&5
4355 eval "$as_ac_Header=no"
4358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4360 ac_res
=`eval echo '${'$as_ac_Header'}'`
4361 { echo "$as_me:$LINENO: result: $ac_res" >&5
4362 echo "${ECHO_T}$ac_res" >&6; }
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364 cat >>confdefs.h
<<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373 { echo "$as_me:$LINENO: checking for void *" >&5
4374 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4375 if test "${ac_cv_type_void_p+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 cat >conftest.
$ac_ext <<_ACEOF
4381 cat confdefs.h
>>conftest.
$ac_ext
4382 cat >>conftest.
$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4385 typedef void * ac__type_new_;
4389 if ((ac__type_new_ *) 0)
4391 if (sizeof (ac__type_new_))
4397 rm -f conftest.
$ac_objext
4398 if { (ac_try
="$ac_compile"
4400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4414 *) ac_try_echo
=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try
='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_type_void_p=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_type_void_p=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4442 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4444 { echo "$as_me:$LINENO: checking size of void *" >&5
4445 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4446 if test "${ac_cv_sizeof_void_p+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test "$ac_cv_type_void_p" = yes; then
4450 # The cast to long int works around a bug in the HP C Compiler
4451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4452 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
4453 # This bug is HP SR number 8606223364.
4454 if test "$cross_compiling" = yes; then
4455 # Depending upon the size, compute the lo and hi bounds.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4463 typedef void * ac__type_sizeof_;
4467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4483 grep -v '^
*+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.
$ac_objext'
4499 { (case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_try") 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 typedef void * ac__type_sizeof_;
4521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_compile") 2>conftest.er1
4537 grep -v '^
*+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.
$ac_objext'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_hi=$ac_mid; break
4564 echo "$as_me: failed program was:" >&5
4565 sed 's
/^
/|
/' conftest.$ac_ext >&5
4567 ac_lo=`expr $ac_mid + 1`
4568 if test $ac_lo -le $ac_mid; then
4572 ac_mid=`expr 2 '*' $ac_mid + 1`
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 echo "$as_me: failed program was:" >&5
4579 sed 's
/^
/|
/' conftest.$ac_ext >&5
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4588 typedef void * ac__type_sizeof_;
4592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4599 rm -f conftest.$ac_objext
4600 if { (ac_try="$ac_compile"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compile") 2>conftest.er1
4608 grep -v '^
*+' conftest.er1 >conftest.err
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.
$ac_objext'
4624 { (case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_try") 2>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4642 typedef void * ac__type_sizeof_;
4646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4662 grep -v '^
*+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
4668 { (case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_try") 2>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.
$ac_objext'
4678 { (case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_try") 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_lo=$ac_mid; break
4689 echo "$as_me: failed program was:" >&5
4690 sed 's
/^
/|
/' conftest.$ac_ext >&5
4692 ac_hi=`expr '(' $ac_mid ')' - 1`
4693 if test $ac_mid -le $ac_hi; then
4697 ac_mid=`expr 2 '*' $ac_mid`
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 echo "$as_me: failed program was:" >&5
4704 sed 's
/^
/|
/' conftest.$ac_ext >&5
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 # Binary search between lo and hi bounds.
4714 while test "x$ac_lo" != "x$ac_hi"; do
4715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 typedef void * ac__type_sizeof_;
4727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4743 grep -v '^
*+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.
$ac_objext'
4759 { (case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_try") 2>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4770 echo "$as_me: failed program was:" >&5
4771 sed 's
/^
/|
/' conftest.$ac_ext >&5
4773 ac_lo=`expr '(' $ac_mid ')' + 1`
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4781 See \`config.log' for more details.
" >&5
4782 echo "$as_me: error
: cannot compute sizeof
(void
*)
4783 See \
`config.log' for more details." >&2;}
4784 { (exit 77); exit 77; }; } ;;
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 typedef void * ac__type_sizeof_;
4795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4803 FILE *f = fopen ("conftest.val", "w");
4806 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4808 long int i = longval ();
4809 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4811 fprintf (f, "%ld\n", i);
4815 unsigned long int i = ulongval ();
4816 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4818 fprintf (f, "%lu\n", i);
4820 return ferror (f) || fclose (f) != 0;
4826 rm -f conftest$ac_exeext
4827 if { (ac_try="$ac_link"
4829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4830 *) ac_try_echo
=$ac_try;;
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_link") 2>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4837 { (case "(($ac_try" in
4838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_try") 2>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_sizeof_void_p=`cat conftest.val
`
4848 echo "$as_me: program exited with status $ac_status" >&5
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4854 See \`config.log
' for more details." >&5
4855 echo "$as_me: error: cannot compute sizeof (void *)
4856 See \`config.log' for more details.
" >&2;}
4857 { (exit 77); exit 77; }; }
4859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4863 ac_cv_sizeof_void_p=0
4866 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_void_p" >&5
4867 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4868 cat >>confdefs.h <<_ACEOF
4869 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4873 { echo "$as_me:$LINENO: checking
for short
" >&5
4874 echo $ECHO_N "checking
for short...
$ECHO_C" >&6; }
4875 if test "${ac_cv_type_short+set}" = set; then
4876 echo $ECHO_N "(cached
) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4885 typedef short ac__type_new_;
4889 if ((ac__type_new_ *) 0)
4891 if (sizeof (ac__type_new_))
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4912 { (case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_try") 2>&5
4919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_try") 2>&5
4929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_type_short=yes
4933 echo "$as_me: failed program was
:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 { echo "$as_me:$LINENO: result
: $ac_cv_type_short" >&5
4942 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4944 { echo "$as_me:$LINENO: checking size of short
" >&5
4945 echo $ECHO_N "checking size of short...
$ECHO_C" >&6; }
4946 if test "${ac_cv_sizeof_short+set}" = set; then
4947 echo $ECHO_N "(cached
) $ECHO_C" >&6
4949 if test "$ac_cv_type_short" = yes; then
4950 # The cast to long int works around a bug in the HP C Compiler
4951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4953 # This bug is HP SR number 8606223364.
4954 if test "$cross_compiling" = yes; then
4955 # Depending upon the size, compute the lo and hi bounds.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4963 typedef short ac__type_sizeof_;
4967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4989 { (case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_try") 2>&5
4996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_try") 2>&5
5006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5007 (exit $ac_status); }; }; then
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5017 typedef short ac__type_sizeof_;
5021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
5050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_try") 2>&5
5060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_hi=$ac_mid; break
5064 echo "$as_me: failed program was
:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 ac_lo=`expr $ac_mid + 1`
5068 if test $ac_lo -le $ac_mid; then
5072 ac_mid=`expr 2 '*' $ac_mid + 1`
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 echo "$as_me: failed program was
:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 $ac_includes_default
5088 typedef short ac__type_sizeof_;
5092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5099 rm -f conftest.$ac_objext
5100 if { (ac_try="$ac_compile"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5114 { (case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_try") 2>&5
5121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5122 (exit $ac_status); }; } &&
5123 { ac_try='test -s conftest.$ac_objext'
5124 { (case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_try") 2>&5
5131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5132 (exit $ac_status); }; }; then
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5142 typedef short ac__type_sizeof_;
5146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_try") 2>&5
5175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_try") 2>&5
5185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_lo=$ac_mid; break
5189 echo "$as_me: failed program was
:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_hi=`expr '(' $ac_mid ')' - 1`
5193 if test $ac_mid -le $ac_hi; then
5197 ac_mid=`expr 2 '*' $ac_mid`
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 echo "$as_me: failed program was
:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 # Binary search between lo and hi bounds.
5214 while test "x
$ac_lo" != "x
$ac_hi"; do
5215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5216 cat >conftest.$ac_ext <<_ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5223 typedef short ac__type_sizeof_;
5227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249 { (case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_try") 2>&5
5256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
5266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5267 (exit $ac_status); }; }; then
5270 echo "$as_me: failed program was
:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_lo=`expr '(' $ac_mid ')' + 1`
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ?*) ac_cv_sizeof_short=$ac_lo;;
5280 '') { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
5281 See \
`config.log' for more details." >&5
5282 echo "$as_me: error: cannot compute sizeof (short)
5283 See \`config.log
' for more details." >&2;}
5284 { (exit 77); exit 77; }; } ;;
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 typedef short ac__type_sizeof_;
5295 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5296 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5303 FILE *f = fopen ("conftest.val", "w");
5306 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5308 long int i = longval ();
5309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5311 fprintf (f, "%ld\n", i);
5315 unsigned long int i = ulongval ();
5316 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5318 fprintf (f, "%lu\n", i);
5320 return ferror (f) || fclose (f) != 0;
5326 rm -f conftest$ac_exeext
5327 if { (ac_try="$ac_link"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_link") 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
5337 { (case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_try") 2>&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_sizeof_short=`cat conftest.val`
5348 echo "$as_me: program exited with status $ac_status" >&5
5349 echo "$as_me: failed program was:" >&5
5350 sed 's
/^
/|
/' conftest.$ac_ext >&5
5353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5354 See \`config.log' for more details.
" >&5
5355 echo "$as_me: error
: cannot compute sizeof
(short
)
5356 See \
`config.log' for more details." >&2;}
5357 { (exit 77); exit 77; }; }
5359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5363 ac_cv_sizeof_short=0
5366 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5367 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5368 cat >>confdefs.h <<_ACEOF
5369 #define SIZEOF_SHORT $ac_cv_sizeof_short
5373 { echo "$as_me:$LINENO: checking for int" >&5
5374 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5375 if test "${ac_cv_type_int+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 typedef int ac__type_new_;
5389 if ((ac__type_new_ *) 0)
5391 if (sizeof (ac__type_new_))
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5401 *) ac_try_echo
=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1
>conftest.err
5408 cat conftest.err
>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (case "(($ac_try" in
5413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (case "(($ac_try" in
5423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5424 *) ac_try_echo
=$ac_try;;
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_try") 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5441 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5442 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5444 { echo "$as_me:$LINENO: checking size of int" >&5
5445 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5446 if test "${ac_cv_sizeof_int+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 if test "$ac_cv_type_int" = yes; then
5450 # The cast to long int works around a bug in the HP C Compiler
5451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5453 # This bug is HP SR number 8606223364.
5454 if test "$cross_compiling" = yes; then
5455 # Depending upon the size, compute the lo and hi bounds.
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 typedef int ac__type_sizeof_;
5467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5474 rm -f conftest.
$ac_objext
5475 if { (ac_try
="$ac_compile"
5477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5489 { (case "(($ac_try" in
5490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5491 *) ac_try_echo
=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_try") 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; } &&
5498 { ac_try
='test -s conftest.$ac_objext'
5499 { (case "(($ac_try" in
5500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_try") 2>&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 typedef int ac__type_sizeof_;
5521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5532 *) ac_try_echo
=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1
>conftest.err
5539 cat conftest.err
>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5543 { (case "(($ac_try" in
5544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_try") 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest.$ac_objext'
5553 { (case "(($ac_try" in
5554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5555 *) ac_try_echo
=$ac_try;;
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_try") 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_hi
=$ac_mid; break
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.
$ac_ext >&5
5567 ac_lo
=`expr $ac_mid + 1`
5568 if test $ac_lo -le $ac_mid; then
5572 ac_mid
=`expr 2 '*' $ac_mid + 1`
5575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.
$ac_ext >&5
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 cat confdefs.h
>>conftest.
$ac_ext
5585 cat >>conftest.
$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 $ac_includes_default
5588 typedef int ac__type_sizeof_;
5592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5599 rm -f conftest.
$ac_objext
5600 if { (ac_try
="$ac_compile"
5602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5616 *) ac_try_echo
=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try
='test -s conftest.$ac_objext'
5624 { (case "(($ac_try" in
5625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_try") 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 $ac_includes_default
5642 typedef int ac__type_sizeof_;
5646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5657 *) ac_try_echo
=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1
>conftest.err
5664 cat conftest.err
>&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5668 { (case "(($ac_try" in
5669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_try") 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (case "(($ac_try" in
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_try") 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_lo
=$ac_mid; break
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.
$ac_ext >&5
5692 ac_hi
=`expr '(' $ac_mid ')' - 1`
5693 if test $ac_mid -le $ac_hi; then
5697 ac_mid
=`expr 2 '*' $ac_mid`
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.
$ac_ext >&5
5709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 # Binary search between lo and hi bounds.
5714 while test "x$ac_lo" != "x$ac_hi"; do
5715 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5716 cat >conftest.
$ac_ext <<_ACEOF
5719 cat confdefs.h
>>conftest.
$ac_ext
5720 cat >>conftest.
$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 typedef int ac__type_sizeof_;
5727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5734 rm -f conftest.
$ac_objext
5735 if { (ac_try
="$ac_compile"
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5751 *) ac_try_echo
=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try
='test -s conftest.$ac_objext'
5759 { (case "(($ac_try" in
5760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_try") 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_lo=`expr '(' $ac_mid ')' + 1`
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ?*) ac_cv_sizeof_int=$ac_lo;;
5780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5781 See \`config.log
' for more details." >&5
5782 echo "$as_me: error: cannot compute sizeof (int)
5783 See \`config.log' for more details.
" >&2;}
5784 { (exit 77); exit 77; }; } ;;
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 typedef int ac__type_sizeof_;
5795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5803 FILE *f = fopen ("conftest.val
", "w
");
5806 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5808 long int i = longval ();
5809 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5811 fprintf (f, "%ld
\n", i);
5815 unsigned long int i = ulongval ();
5816 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5818 fprintf (f, "%lu
\n", i);
5820 return ferror (f) || fclose (f) != 0;
5826 rm -f conftest$ac_exeext
5827 if { (ac_try="$ac_link"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_link") 2>&5
5835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_sizeof_int=`cat conftest.val`
5848 echo "$as_me: program exited with status
$ac_status" >&5
5849 echo "$as_me: failed program was
:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5853 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
5854 See \
`config.log' for more details." >&5
5855 echo "$as_me: error: cannot compute sizeof (int)
5856 See \`config.log
' for more details." >&2;}
5857 { (exit 77); exit 77; }; }
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5867 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5868 cat >>confdefs.h <<_ACEOF
5869 #define SIZEOF_INT $ac_cv_sizeof_int
5873 { echo "$as_me:$LINENO: checking for long" >&5
5874 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5875 if test "${ac_cv_type_long+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5885 typedef long ac__type_new_;
5889 if ((ac__type_new_ *) 0)
5891 if (sizeof (ac__type_new_))
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5906 grep -v '^
*+' conftest.er1 >conftest.err
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.
$ac_objext'
5922 { (case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_try") 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5933 echo "$as_me: failed program was:" >&5
5934 sed 's
/^
/|
/' conftest.$ac_ext >&5
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5942 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5944 { echo "$as_me:$LINENO: checking size of long" >&5
5945 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5946 if test "${ac_cv_sizeof_long+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test "$ac_cv_type_long" = yes; then
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 if test "$cross_compiling" = yes; then
5955 # Depending upon the size, compute the lo and hi bounds.
5956 cat >conftest.
$ac_ext <<_ACEOF
5959 cat confdefs.h
>>conftest.
$ac_ext
5960 cat >>conftest.
$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 typedef long ac__type_sizeof_;
5967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5974 rm -f conftest.
$ac_objext
5975 if { (ac_try
="$ac_compile"
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5991 *) ac_try_echo
=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try
='test -s conftest.$ac_objext'
5999 { (case "(($ac_try" in
6000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_try") 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 $ac_includes_default
6017 typedef long ac__type_sizeof_;
6021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6032 *) ac_try_echo
=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6037 grep -v '^ *+' conftest.er1
>conftest.err
6039 cat conftest.err
>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6043 { (case "(($ac_try" in
6044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_try") 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; } &&
6052 { ac_try='test -s conftest.$ac_objext'
6053 { (case "(($ac_try" in
6054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6055 *) ac_try_echo
=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_try") 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_hi
=$ac_mid; break
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.
$ac_ext >&5
6067 ac_lo
=`expr $ac_mid + 1`
6068 if test $ac_lo -le $ac_mid; then
6072 ac_mid
=`expr 2 '*' $ac_mid + 1`
6075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.
$ac_ext >&5
6081 cat >conftest.
$ac_ext <<_ACEOF
6084 cat confdefs.h
>>conftest.
$ac_ext
6085 cat >>conftest.
$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 $ac_includes_default
6088 typedef long ac__type_sizeof_;
6092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6099 rm -f conftest.
$ac_objext
6100 if { (ac_try
="$ac_compile"
6102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6116 *) ac_try_echo
=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try
='test -s conftest.$ac_objext'
6124 { (case "(($ac_try" in
6125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 $ac_includes_default
6142 typedef long ac__type_sizeof_;
6146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6157 *) ac_try_echo
=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1
>conftest.err
6164 cat conftest.err
>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6180 *) ac_try_echo
=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_lo
=$ac_mid; break
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.
$ac_ext >&5
6192 ac_hi
=`expr '(' $ac_mid ')' - 1`
6193 if test $ac_mid -le $ac_hi; then
6197 ac_mid
=`expr 2 '*' $ac_mid`
6200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6213 # Binary search between lo and hi bounds.
6214 while test "x$ac_lo" != "x$ac_hi"; do
6215 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6216 cat >conftest.
$ac_ext <<_ACEOF
6219 cat confdefs.h
>>conftest.
$ac_ext
6220 cat >>conftest.
$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223 typedef long ac__type_sizeof_;
6227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6234 rm -f conftest.
$ac_objext
6235 if { (ac_try
="$ac_compile"
6237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6251 *) ac_try_echo
=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try
='test -s conftest.$ac_objext'
6259 { (case "(($ac_try" in
6260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_lo=`expr '(' $ac_mid ')' + 1`
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ?*) ac_cv_sizeof_long=$ac_lo;;
6280 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6281 See \`config.log
' for more details." >&5
6282 echo "$as_me: error: cannot compute sizeof (long)
6283 See \`config.log' for more details.
" >&2;}
6284 { (exit 77); exit 77; }; } ;;
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6294 typedef long ac__type_sizeof_;
6295 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6296 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6303 FILE *f = fopen ("conftest.val
", "w
");
6306 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6308 long int i = longval ();
6309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6311 fprintf (f, "%ld
\n", i);
6315 unsigned long int i = ulongval ();
6316 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6318 fprintf (f, "%lu
\n", i);
6320 return ferror (f) || fclose (f) != 0;
6326 rm -f conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_link") 2>&5
6335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_sizeof_long=`cat conftest.val`
6348 echo "$as_me: program exited with status
$ac_status" >&5
6349 echo "$as_me: failed program was
:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6353 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6354 See \
`config.log' for more details." >&5
6355 echo "$as_me: error: cannot compute sizeof (long)
6356 See \`config.log
' for more details." >&2;}
6357 { (exit 77); exit 77; }; }
6359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6366 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6367 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6368 cat >>confdefs.h <<_ACEOF
6369 #define SIZEOF_LONG $ac_cv_sizeof_long
6373 { echo "$as_me:$LINENO: checking for long long" >&5
6374 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6375 if test "${ac_cv_type_long_long+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 typedef long long ac__type_new_;
6389 if ((ac__type_new_ *) 0)
6391 if (sizeof (ac__type_new_))
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^
*+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.
$ac_objext'
6422 { (case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_try") 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_type_long_long=yes
6433 echo "$as_me: failed program was:" >&5
6434 sed 's
/^
/|
/' conftest.$ac_ext >&5
6436 ac_cv_type_long_long=no
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6442 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6443 if test $ac_cv_type_long_long = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define HAVE_LONG_LONG 1
6449 { echo "$as_me:$LINENO: checking for long long" >&5
6450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6451 if test "${ac_cv_type_long_long+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 $ac_includes_default
6461 typedef long long ac__type_new_;
6465 if ((ac__type_new_ *) 0)
6467 if (sizeof (ac__type_new_))
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compile") 2>conftest.er1
6482 grep -v '^
*+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.
$ac_objext'
6498 { (case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_try") 2>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_type_long_long=yes
6509 echo "$as_me: failed program was:" >&5
6510 sed 's
/^
/|
/' conftest.$ac_ext >&5
6512 ac_cv_type_long_long=no
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6518 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6520 { echo "$as_me:$LINENO: checking size of long long" >&5
6521 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6522 if test "${ac_cv_sizeof_long_long+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 if test "$ac_cv_type_long_long" = yes; then
6526 # The cast to long int works around a bug in the HP C Compiler
6527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6529 # This bug is HP SR number 8606223364.
6530 if test "$cross_compiling" = yes; then
6531 # Depending upon the size, compute the lo and hi bounds.
6532 cat >conftest.
$ac_ext <<_ACEOF
6535 cat confdefs.h
>>conftest.
$ac_ext
6536 cat >>conftest.
$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 $ac_includes_default
6539 typedef long long ac__type_sizeof_;
6543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6550 rm -f conftest.
$ac_objext
6551 if { (ac_try
="$ac_compile"
6553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565 { (case "(($ac_try" in
6566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6567 *) ac_try_echo
=$ac_try;;
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_try") 2>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try
='test -s conftest.$ac_objext'
6575 { (case "(($ac_try" in
6576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_try") 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6593 typedef long long ac__type_sizeof_;
6597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6604 rm -f conftest.$ac_objext
6605 if { (ac_try="$ac_compile"
6607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6608 *) ac_try_echo
=$ac_try;;
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_compile") 2>conftest.er1
6613 grep -v '^ *+' conftest.er1
>conftest.err
6615 cat conftest.err
>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6619 { (case "(($ac_try" in
6620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_try") 2>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest.$ac_objext'
6629 { (case "(($ac_try" in
6630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6631 *) ac_try_echo
=$ac_try;;
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_try") 2>&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_hi
=$ac_mid; break
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 ac_lo
=`expr $ac_mid + 1`
6644 if test $ac_lo -le $ac_mid; then
6648 ac_mid
=`expr 2 '*' $ac_mid + 1`
6651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.
$ac_ext >&5
6657 cat >conftest.
$ac_ext <<_ACEOF
6660 cat confdefs.h
>>conftest.
$ac_ext
6661 cat >>conftest.
$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6664 typedef long long ac__type_sizeof_;
6668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6675 rm -f conftest.
$ac_objext
6676 if { (ac_try
="$ac_compile"
6678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_compile") 2>conftest.er1
6684 grep -v '^ *+' conftest.er1 >conftest.err
6686 cat conftest.err >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (case "(($ac_try" in
6691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6692 *) ac_try_echo
=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_try") 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; } &&
6699 { ac_try
='test -s conftest.$ac_objext'
6700 { (case "(($ac_try" in
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_try") 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6711 cat >conftest.$ac_ext <<_ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6718 typedef long long ac__type_sizeof_;
6722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6729 rm -f conftest.$ac_objext
6730 if { (ac_try="$ac_compile"
6732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6733 *) ac_try_echo
=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_compile") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1
>conftest.err
6740 cat conftest.err
>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6744 { (case "(($ac_try" in
6745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest.$ac_objext'
6754 { (case "(($ac_try" in
6755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6756 *) ac_try_echo
=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_try") 2>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_lo
=$ac_mid; break
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6768 ac_hi
=`expr '(' $ac_mid ')' - 1`
6769 if test $ac_mid -le $ac_hi; then
6773 ac_mid
=`expr 2 '*' $ac_mid`
6776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6789 # Binary search between lo and hi bounds.
6790 while test "x$ac_lo" != "x$ac_hi"; do
6791 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6792 cat >conftest.
$ac_ext <<_ACEOF
6795 cat confdefs.h
>>conftest.
$ac_ext
6796 cat >>conftest.
$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 typedef long long ac__type_sizeof_;
6803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6810 rm -f conftest.
$ac_objext
6811 if { (ac_try
="$ac_compile"
6813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6825 { (case "(($ac_try" in
6826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6827 *) ac_try_echo
=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_try") 2>&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try
='test -s conftest.$ac_objext'
6835 { (case "(($ac_try" in
6836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_try") 2>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_lo=`expr '(' $ac_mid ')' + 1`
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6857 See \`config.log
' for more details." >&5
6858 echo "$as_me: error: cannot compute sizeof (long long)
6859 See \`config.log' for more details.
" >&2;}
6860 { (exit 77); exit 77; }; } ;;
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 $ac_includes_default
6870 typedef long long ac__type_sizeof_;
6871 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6872 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6879 FILE *f = fopen ("conftest.val
", "w
");
6882 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6884 long int i = longval ();
6885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6887 fprintf (f, "%ld
\n", i);
6891 unsigned long int i = ulongval ();
6892 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6894 fprintf (f, "%lu
\n", i);
6896 return ferror (f) || fclose (f) != 0;
6902 rm -f conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_link") 2>&5
6911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6913 { (case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_try") 2>&5
6920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_sizeof_long_long=`cat conftest.val`
6924 echo "$as_me: program exited with status
$ac_status" >&5
6925 echo "$as_me: failed program was
:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6929 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
6930 See \
`config.log' for more details." >&5
6931 echo "$as_me: error: cannot compute sizeof (long long)
6932 See \`config.log
' for more details." >&2;}
6933 { (exit 77); exit 77; }; }
6935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6939 ac_cv_sizeof_long_long=0
6942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6943 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6944 cat >>confdefs.h <<_ACEOF
6945 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6951 { echo "$as_me:$LINENO: checking for __int64" >&5
6952 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6953 if test "${ac_cv_type___int64+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 typedef __int64 ac__type_new_;
6967 if ((ac__type_new_ *) 0)
6969 if (sizeof (ac__type_new_))
6975 rm -f conftest.$ac_objext
6976 if { (ac_try="$ac_compile"
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6984 grep -v '^
*+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } &&
6989 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
6990 { (case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_try") 2>&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest.
$ac_objext'
7000 { (case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_try") 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_cv_type___int64=yes
7011 echo "$as_me: failed program was:" >&5
7012 sed 's
/^
/|
/' conftest.$ac_ext >&5
7014 ac_cv_type___int64=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7020 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
7021 if test $ac_cv_type___int64 = yes; then
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE___INT64 1
7027 { echo "$as_me:$LINENO: checking for __int64" >&5
7028 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
7029 if test "${ac_cv_type___int64+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7039 typedef __int64 ac__type_new_;
7043 if ((ac__type_new_ *) 0)
7045 if (sizeof (ac__type_new_))
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7060 grep -v '^
*+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
7066 { (case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_try") 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest.
$ac_objext'
7076 { (case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_try") 2>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_type___int64=yes
7087 echo "$as_me: failed program was:" >&5
7088 sed 's
/^
/|
/' conftest.$ac_ext >&5
7090 ac_cv_type___int64=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7096 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
7098 { echo "$as_me:$LINENO: checking size of __int64" >&5
7099 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
7100 if test "${ac_cv_sizeof___int64+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 if test "$ac_cv_type___int64" = yes; then
7104 # The cast to long int works around a bug in the HP C Compiler
7105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7107 # This bug is HP SR number 8606223364.
7108 if test "$cross_compiling" = yes; then
7109 # Depending upon the size, compute the lo and hi bounds.
7110 cat >conftest.
$ac_ext <<_ACEOF
7113 cat confdefs.h
>>conftest.
$ac_ext
7114 cat >>conftest.
$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7117 typedef __int64 ac__type_sizeof_;
7121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7128 rm -f conftest.
$ac_objext
7129 if { (ac_try
="$ac_compile"
7131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7143 { (case "(($ac_try" in
7144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7145 *) ac_try_echo
=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_try") 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; } &&
7152 { ac_try
='test -s conftest.$ac_objext'
7153 { (case "(($ac_try" in
7154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_try") 2>&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7171 typedef __int64 ac__type_sizeof_;
7175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7186 *) ac_try_echo
=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7197 { (case "(($ac_try" in
7198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_try") 2>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest.$ac_objext'
7207 { (case "(($ac_try" in
7208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7209 *) ac_try_echo
=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_try") 2>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_hi
=$ac_mid; break
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 ac_lo
=`expr $ac_mid + 1`
7222 if test $ac_lo -le $ac_mid; then
7226 ac_mid
=`expr 2 '*' $ac_mid + 1`
7229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 $ac_includes_default
7242 typedef __int64 ac__type_sizeof_;
7246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7253 rm -f conftest.
$ac_objext
7254 if { (ac_try
="$ac_compile"
7256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268 { (case "(($ac_try" in
7269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7270 *) ac_try_echo
=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try
='test -s conftest.$ac_objext'
7278 { (case "(($ac_try" in
7279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_try") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7296 typedef __int64 ac__type_sizeof_;
7300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7311 *) ac_try_echo
=$ac_try;;
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1
>conftest.err
7318 cat conftest.err
>&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7322 { (case "(($ac_try" in
7323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_try") 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (case "(($ac_try" in
7333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7334 *) ac_try_echo
=$ac_try;;
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_try") 2>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_lo
=$ac_mid; break
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 ac_hi
=`expr '(' $ac_mid ')' - 1`
7347 if test $ac_mid -le $ac_hi; then
7351 ac_mid
=`expr 2 '*' $ac_mid`
7354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7367 # Binary search between lo and hi bounds.
7368 while test "x$ac_lo" != "x$ac_hi"; do
7369 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7370 cat >conftest.
$ac_ext <<_ACEOF
7373 cat confdefs.h
>>conftest.
$ac_ext
7374 cat >>conftest.
$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377 typedef __int64 ac__type_sizeof_;
7381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7388 rm -f conftest.
$ac_objext
7389 if { (ac_try
="$ac_compile"
7391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403 { (case "(($ac_try" in
7404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7405 *) ac_try_echo
=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_try") 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try
='test -s conftest.$ac_objext'
7413 { (case "(($ac_try" in
7414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_try") 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_lo=`expr '(' $ac_mid ')' + 1`
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 ?*) ac_cv_sizeof___int64=$ac_lo;;
7434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
7435 See \`config.log
' for more details." >&5
7436 echo "$as_me: error: cannot compute sizeof (__int64)
7437 See \`config.log' for more details.
" >&2;}
7438 { (exit 77); exit 77; }; } ;;
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 $ac_includes_default
7448 typedef __int64 ac__type_sizeof_;
7449 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7450 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7457 FILE *f = fopen ("conftest.val
", "w
");
7460 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7462 long int i = longval ();
7463 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7465 fprintf (f, "%ld
\n", i);
7469 unsigned long int i = ulongval ();
7470 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7472 fprintf (f, "%lu
\n", i);
7474 return ferror (f) || fclose (f) != 0;
7480 rm -f conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>&5
7489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7491 { (case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_try") 2>&5
7498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7499 (exit $ac_status); }; }; then
7500 ac_cv_sizeof___int64=`cat conftest.val`
7502 echo "$as_me: program exited with status
$ac_status" >&5
7503 echo "$as_me: failed program was
:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7507 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(__int64
)
7508 See \
`config.log' for more details." >&5
7509 echo "$as_me: error: cannot compute sizeof (__int64)
7510 See \`config.log
' for more details." >&2;}
7511 { (exit 77); exit 77; }; }
7513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7517 ac_cv_sizeof___int64=0
7520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7521 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
7522 cat >>confdefs.h <<_ACEOF
7523 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7530 # ---------------------
7531 # Warnings and checking
7532 # ---------------------
7534 # Check $CC warning features (if it's GCC
).
7535 # We want to use -pedantic, but we don't want warnings about
7538 # * overlong strings
7539 # So, we only use -pedantic if we can disable those warnings.
7541 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
7542 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6; }
7543 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 save_CFLAGS
="$CFLAGS"
7547 CFLAGS
="-Wno-long-long"
7548 cat >conftest.
$ac_ext <<_ACEOF
7551 cat confdefs.h
>>conftest.
$ac_ext
7552 cat >>conftest.
$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7556 rm -f conftest.
$ac_objext
7557 if { (ac_try
="$ac_compile"
7559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_compile") 2>conftest.er1
7565 grep -v '^ *+' conftest.er1 >conftest.err
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7571 { (case "(($ac_try" in
7572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7573 *) ac_try_echo
=$ac_try;;
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_try") 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try
='test -s conftest.$ac_objext'
7581 { (case "(($ac_try" in
7582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_try") 2>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_cv_prog_cc_w_no_long_long=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_cv_prog_cc_w_no_long_long=no
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 CFLAGS="$save_CFLAGS"
7602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
7603 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6; }
7605 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
7606 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6; }
7607 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 save_CFLAGS="$CFLAGS"
7611 CFLAGS="-Wno-variadic-macros"
7612 cat >conftest.$ac_ext <<_ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7624 *) ac_try_echo
=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7647 *) ac_try_echo
=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_prog_cc_w_no_variadic_macros
=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 ac_cv_prog_cc_w_no_variadic_macros
=no
7662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7663 CFLAGS
="$save_CFLAGS"
7666 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
7667 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
7669 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
7670 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6; }
7671 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 save_CFLAGS
="$CFLAGS"
7675 CFLAGS
="-Wno-overlength-strings"
7676 cat >conftest.
$ac_ext <<_ACEOF
7679 cat confdefs.h
>>conftest.
$ac_ext
7680 cat >>conftest.
$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7684 rm -f conftest.
$ac_objext
7685 if { (ac_try
="$ac_compile"
7687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_compile") 2>conftest.er1
7693 grep -v '^ *+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7699 { (case "(($ac_try" in
7700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7701 *) ac_try_echo
=$ac_try;;
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_try") 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; } &&
7708 { ac_try
='test -s conftest.$ac_objext'
7709 { (case "(($ac_try" in
7710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_try") 2>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_prog_cc_w_no_overlength_strings=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_cv_prog_cc_w_no_overlength_strings=no
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 CFLAGS="$save_CFLAGS"
7730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
7731 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6; }
7734 if test $ac_cv_prog_cc_w_no_long_long = yes \
7735 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
7736 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
7737 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7740 # Add -Wold-style-definition if it's accepted
7741 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
7742 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6; }
7743 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 save_CFLAGS="$CFLAGS"
7747 CFLAGS="-Wold-style-definition"
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7756 rm -f conftest.$ac_objext
7757 if { (ac_try="$ac_compile"
7759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7760 *) ac_try_echo
=$ac_try;;
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7771 { (case "(($ac_try" in
7772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_try") 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (case "(($ac_try" in
7782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7783 *) ac_try_echo
=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 ac_cv_prog_cc_w_old_style_definition
=yes
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7795 ac_cv_prog_cc_w_old_style_definition
=no
7798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7799 CFLAGS
="$save_CFLAGS"
7802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
7803 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6; }
7804 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
7805 strict1_warn
="${strict1_warn} -Wold-style-definition"
7808 # Add -Wmissing-format-attribute if it's accepted
7809 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
7810 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6; }
7811 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 save_CFLAGS
="$CFLAGS"
7815 CFLAGS
="-Wmissing-format-attribute"
7816 cat >conftest.
$ac_ext <<_ACEOF
7819 cat confdefs.h
>>conftest.
$ac_ext
7820 cat >>conftest.
$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7824 rm -f conftest.
$ac_objext
7825 if { (ac_try
="$ac_compile"
7827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7841 *) ac_try_echo
=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; } &&
7848 { ac_try
='test -s conftest.$ac_objext'
7849 { (case "(($ac_try" in
7850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_try") 2>&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_prog_cc_w_missing_format_attribute=yes
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_prog_cc_w_missing_format_attribute=no
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$save_CFLAGS"
7870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
7871 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
7872 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
7873 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
7876 # Enable -Werror, period.
7877 # Check whether --enable-werror_always was given.
7878 if test "${enable_werror_always+set}" = set; then
7879 enableval=$enable_werror_always;
7881 enable_werror_always=no
7884 if test x${enable_werror_always} = xyes ; then
7885 strict1_warn="${strict1_warn} -Werror"
7891 # Get C++ compatibility warning flag, if supported.
7892 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
7893 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6; }
7894 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 save_CFLAGS="$CFLAGS"
7898 CFLAGS="-Wc++-compat"
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7911 *) ac_try_echo
=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1
>conftest.err
7918 cat conftest.err
>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7922 { (case "(($ac_try" in
7923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; } &&
7931 { ac_try='test -s conftest.$ac_objext'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7934 *) ac_try_echo
=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_try") 2>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_prog_cc_w_cxx_compat
=yes
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.
$ac_ext >&5
7946 ac_cv_prog_cc_w_cxx_compat
=no
7949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7950 CFLAGS
="$save_CFLAGS"
7953 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
7954 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6; }
7955 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
7956 cxx_compat_warn
="-Wc++-compat"
7961 # If the native compiler is GCC, we can enable warnings even in stage1.
7962 # That's useful for people building cross-compilers, or just running a
7965 if test "x$GCC" = "xyes"; then
7966 warn_cflags
='$(GCC_WARN_CFLAGS)'
7970 # Enable -Werror in bootstrap stage2 and later.
7972 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7975 # Check whether --enable-werror was given.
7976 if test "${enable_werror+set}" = set; then
7977 enableval
=$enable_werror;
7979 if test x
$is_release = x
; then
7980 # Default to "yes" on development branches.
7983 # Default to "no" on release branches.
7988 if test x
$enable_werror = xyes
; then
7993 # Enable expensive internal checks
7994 # Check whether --enable-checking was given.
7995 if test "${enable_checking+set}" = set; then
7996 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7999 # Determine the default checks.
8000 if test x
$is_release = x
; then
8001 ac_checking_flags
=yes
8003 ac_checking_flags
=release
8007 ac_assert_checking
=1
8011 ac_gc_always_collect
=
8013 ac_rtlflag_checking
=
8014 ac_runtime_checking
=1
8016 ac_valgrind_checking
=
8017 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
8018 for check
in $ac_checking_flags
8021 # these set all the flags to specific states
8022 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
8023 ac_fold_checking
= ; ac_gc_checking
=1 ;
8024 ac_gc_always_collect
= ; ac_rtl_checking
= ;
8025 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
8026 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
8027 no|none
) ac_assert_checking
= ; ac_checking
= ;
8028 ac_fold_checking
= ; ac_gc_checking
= ;
8029 ac_gc_always_collect
= ; ac_rtl_checking
= ;
8030 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
8031 ac_tree_checking
= ; ac_valgrind_checking
= ;;
8032 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
8033 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
8034 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
8035 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
8036 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
8037 release
) ac_assert_checking
=1 ; ac_checking
= ;
8038 ac_fold_checking
= ; ac_gc_checking
= ;
8039 ac_gc_always_collect
= ; ac_rtl_checking
= ;
8040 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
8041 ac_tree_checking
= ; ac_valgrind_checking
= ;;
8042 # these enable particular checks
8043 assert
) ac_assert_checking
=1 ;;
8044 fold) ac_fold_checking
=1 ;;
8045 gc
) ac_gc_checking
=1 ;;
8046 gcac
) ac_gc_always_collect
=1 ;;
8047 misc
) ac_checking
=1 ;;
8048 rtl
) ac_rtl_checking
=1 ;;
8049 rtlflag
) ac_rtlflag_checking
=1 ;;
8050 runtime
) ac_runtime_checking
=1 ;;
8051 tree
) ac_tree_checking
=1 ;;
8052 valgrind
) ac_valgrind_checking
=1 ;;
8053 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
8054 echo "$as_me: error: unknown check category $check" >&2;}
8055 { (exit 1); exit 1; }; } ;;
8061 if test x
$ac_checking != x
; then
8063 cat >>confdefs.h
<<\_ACEOF
8064 #define ENABLE_CHECKING 1
8067 nocommon_flag
=-fno-common
8070 if test x
$ac_assert_checking != x
; then
8072 cat >>confdefs.h
<<\_ACEOF
8073 #define ENABLE_ASSERT_CHECKING 1
8078 if test x
$ac_runtime_checking != x
; then
8080 cat >>confdefs.h
<<\_ACEOF
8081 #define ENABLE_RUNTIME_CHECKING 1
8085 if test x
$ac_tree_checking != x
; then
8087 cat >>confdefs.h
<<\_ACEOF
8088 #define ENABLE_TREE_CHECKING 1
8091 TREEBROWSER
=tree-browser.o
8094 if test x
$ac_rtl_checking != x
; then
8096 cat >>confdefs.h
<<\_ACEOF
8097 #define ENABLE_RTL_CHECKING 1
8101 if test x
$ac_rtlflag_checking != x
; then
8103 cat >>confdefs.h
<<\_ACEOF
8104 #define ENABLE_RTL_FLAG_CHECKING 1
8108 if test x
$ac_gc_checking != x
; then
8110 cat >>confdefs.h
<<\_ACEOF
8111 #define ENABLE_GC_CHECKING 1
8115 if test x
$ac_gc_always_collect != x
; then
8117 cat >>confdefs.h
<<\_ACEOF
8118 #define ENABLE_GC_ALWAYS_COLLECT 1
8122 if test x
$ac_fold_checking != x
; then
8124 cat >>confdefs.h
<<\_ACEOF
8125 #define ENABLE_FOLD_CHECKING 1
8129 valgrind_path_defines
=
8132 if test "${ac_cv_header_valgrind_h+set}" = set; then
8133 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
8134 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
8135 if test "${ac_cv_header_valgrind_h+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8139 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
8141 # Is the header compilable?
8142 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
8143 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
8144 cat >conftest.
$ac_ext <<_ACEOF
8147 cat confdefs.h
>>conftest.
$ac_ext
8148 cat >>conftest.
$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 #include <valgrind.h>
8153 rm -f conftest.
$ac_objext
8154 if { (ac_try
="$ac_compile"
8156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8168 { (case "(($ac_try" in
8169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8170 *) ac_try_echo
=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_try") 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try
='test -s conftest.$ac_objext'
8178 { (case "(($ac_try" in
8179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_header_compiler=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_header_compiler=no
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8197 echo "${ECHO_T}$ac_header_compiler" >&6; }
8199 # Is the header present?
8200 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
8201 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 #include <valgrind.h>
8210 if { (ac_try="$ac_cpp conftest.$ac_ext"
8212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8213 *) ac_try_echo
=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1
>conftest.err
8220 cat conftest.err
>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev
/null
; then
8223 if test -s conftest.err
; then
8224 ac_cpp_err
=$ac_c_preproc_warn_flag
8225 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8232 if test -z "$ac_cpp_err"; then
8233 ac_header_preproc
=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.
$ac_ext >&5
8238 ac_header_preproc
=no
8241 rm -f conftest.err conftest.
$ac_ext
8242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8243 echo "${ECHO_T}$ac_header_preproc" >&6; }
8245 # So? What about this header?
8246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8248 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
8249 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
8251 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
8252 ac_header_preproc
=yes
8255 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
8260 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
8261 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
8262 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
8264 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
8265 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
8266 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
8270 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
8271 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
8272 if test "${ac_cv_header_valgrind_h+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 ac_cv_header_valgrind_h
=$ac_header_preproc
8277 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8278 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
8281 if test $ac_cv_header_valgrind_h = yes; then
8289 if test x
$ac_valgrind_checking != x
; then
8290 # It is certainly possible that there's valgrind but no valgrind.h.
8291 # GCC relies on making annotations so we must have both.
8292 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8293 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
8294 cat >conftest.
$ac_ext <<_ACEOF
8297 cat confdefs.h
>>conftest.
$ac_ext
8298 cat >>conftest.
$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 #include <valgrind/memcheck.h>
8301 #ifndef VALGRIND_DISCARD
8302 #error VALGRIND_DISCARD not defined
8305 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } >/dev/null; then
8318 if test -s conftest.err; then
8319 ac_cpp_err=$ac_c_preproc_warn_flag
8320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8327 if test -z "$ac_cpp_err"; then
8328 gcc_cv_header_valgrind_memcheck_h=yes
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 gcc_cv_header_valgrind_memcheck_h=no
8336 rm -f conftest.err conftest.$ac_ext
8337 { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8338 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
8339 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8340 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 #include <memcheck.h>
8348 #ifndef VALGRIND_DISCARD
8349 #error VALGRIND_DISCARD not defined
8352 if { (ac_try="$ac_cpp conftest.$ac_ext"
8354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8355 *) ac_try_echo
=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1
>conftest.err
8362 cat conftest.err
>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } >/dev
/null
; then
8365 if test -s conftest.err
; then
8366 ac_cpp_err
=$ac_c_preproc_warn_flag
8367 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8374 if test -z "$ac_cpp_err"; then
8375 gcc_cv_header_memcheck_h
=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.
$ac_ext >&5
8380 gcc_cv_header_memcheck_h
=no
8383 rm -f conftest.err conftest.
$ac_ext
8384 { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
8385 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
8387 # Prepare PATH_SEPARATOR.
8388 # The user is always right.
8389 if test "${PATH_SEPARATOR+set}" != set; then
8390 echo "#! /bin/sh" >conf$$.sh
8391 echo "exit 0" >>conf$$.sh
8393 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8401 # Find out how to test for executable files. Don't use a zero-byte file,
8402 # as systems may use methods other than mode bits to determine executability.
8403 cat >conf$$.
file <<_ASEOF
8407 chmod +x conf$$.
file
8408 if test -x conf$$.
file >/dev
/null
2>&1; then
8409 ac_executable_p
="test -x"
8411 ac_executable_p
="test -f"
8415 # Extract the first word of "valgrind", so it can be a program name with args.
8416 set dummy valgrind
; ac_word
=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_path_valgrind_path+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 case "$valgrind_path" in
8424 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
8427 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8428 for ac_dir
in $PATH; do
8430 test -z "$ac_dir" && ac_dir
=.
8431 for ac_exec_ext
in '' $ac_executable_extensions; do
8432 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8433 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
8434 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
8444 valgrind_path
="$ac_cv_path_valgrind_path"
8445 if test -n "$valgrind_path"; then
8446 { echo "$as_me:$LINENO: result: $valgrind_path" >&5
8447 echo "${ECHO_T}$valgrind_path" >&6; }
8449 { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8453 if test "x$valgrind_path" = "x" \
8454 ||
(test $have_valgrind_h = no \
8455 && test $gcc_cv_header_memcheck_h = no \
8456 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
8457 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
8458 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
8459 { (exit 1); exit 1; }; }
8461 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8462 valgrind_command
="$valgrind_path -q"
8464 cat >>confdefs.h
<<\_ACEOF
8465 #define ENABLE_VALGRIND_CHECKING 1
8468 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8470 cat >>confdefs.h
<<\_ACEOF
8471 #define HAVE_VALGRIND_MEMCHECK_H 1
8475 if test $gcc_cv_header_memcheck_h = yes; then
8477 cat >>confdefs.h
<<\_ACEOF
8478 #define HAVE_MEMCHECK_H 1
8486 # Check whether --enable-mapped-location was given.
8487 if test "${enable_mapped_location+set}" = set; then
8488 enableval
=$enable_mapped_location;
8490 enable_mapped_location
=no
8494 if test "$enable_mapped_location" = yes ; then
8496 cat >>confdefs.h
<<\_ACEOF
8497 #define USE_MAPPED_LOCATION 1
8502 # Enable code coverage collection
8503 # Check whether --enable-coverage was given.
8504 if test "${enable_coverage+set}" = set; then
8505 enableval
=$enable_coverage; case "${enableval}" in
8507 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
8510 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
8513 # a.k.a. --disable-coverage
8517 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
8518 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
8519 { (exit 1); exit 1; }; }
8528 # Check whether --enable-gather-detailed-mem-stats was given.
8529 if test "${enable_gather_detailed_mem_stats+set}" = set; then
8530 enableval
=$enable_gather_detailed_mem_stats;
8532 enable_gather_detailed_mem_stats
=no
8535 if test x
$enable_gather_detailed_mem_stats = xyes
; then
8537 cat >>confdefs.h
<<\_ACEOF
8538 #define GATHER_STATISTICS 1
8543 # -------------------------------
8544 # Miscenalleous configure options
8545 # -------------------------------
8549 # Check whether --with-stabs was given.
8550 if test "${with_stabs+set}" = set; then
8551 withval
=$with_stabs; stabs
="$with_stabs"
8557 # Determine whether or not multilibs are enabled.
8558 # Check whether --enable-multilib was given.
8559 if test "${enable_multilib+set}" = set; then
8560 enableval
=$enable_multilib;
8567 # Enable __cxa_atexit for C++.
8568 # Check whether --enable-__cxa_atexit was given.
8569 if test "${enable___cxa_atexit+set}" = set; then
8570 enableval
=$enable___cxa_atexit;
8574 # Enable C extension for decimal float if target supports it.
8575 # Check whether --enable-decimal-float was given.
8576 if test "${enable_decimal_float+set}" = set; then
8577 enableval
=$enable_decimal_float;
8578 if test x
$enablevar = xyes
; then
8580 powerpc
*-*-linux* | i?
86*-*-linux*)
8581 enable_decimal_float
=yes
8584 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
8585 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
8586 enable_decimal_float
=no
8592 enable_decimal_float
=no
8598 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
8600 cat >>confdefs.h
<<_ACEOF
8601 #define ENABLE_DECIMAL_FLOAT $dfp
8606 # Pass with no value to take the default
8607 # Pass with a value to specify a thread package
8608 # Check whether --enable-threads was given.
8609 if test "${enable_threads+set}" = set; then
8610 enableval
=$enable_threads;
8616 # Check whether --enable-tls was given.
8617 if test "${enable_tls+set}" = set; then
8618 enableval
=$enable_tls;
8621 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
8622 Valid choices are 'yes' and 'no'." >&5
8623 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
8624 Valid choices are 'yes' and 'no'." >&2;}
8625 { (exit 1); exit 1; }; } ;;
8633 # Check whether --enable-objc-gc was given.
8634 if test "${enable_objc_gc+set}" = set; then
8635 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8646 # Check whether --with-dwarf2 was given.
8647 if test "${with_dwarf2+set}" = set; then
8648 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8654 # Check whether --enable-shared was given.
8655 if test "${enable_shared+set}" = set; then
8656 enableval
=$enable_shared;
8657 case $enable_shared in
8661 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8662 for pkg
in $enableval; do
8663 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8678 # Check whether --with-build-sysroot was given.
8679 if test "${with_build_sysroot+set}" = set; then
8680 withval
=$with_build_sysroot;
8685 # Check whether --with-sysroot was given.
8686 if test "${with_sysroot+set}" = set; then
8687 withval
=$with_sysroot;
8688 case ${with_sysroot} in
8689 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8690 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8693 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8694 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
8696 if test "x$exec_prefix" = xNONE
; then
8697 if test "x$prefix" = xNONE
; then
8698 test_prefix
=/usr
/local
8703 test_prefix
=$exec_prefix
8705 case ${TARGET_SYSTEM_ROOT} in
8706 "${test_prefix}"|
"${test_prefix}/"*|\
8707 '${exec_prefix}'|
'${exec_prefix}/'*)
8708 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8709 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8716 TARGET_SYSTEM_ROOT_DEFINE
=
8717 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8725 # Build with intermodule optimisations
8726 # Check whether --enable-intermodule was given.
8727 if test "${enable_intermodule+set}" = set; then
8728 enableval
=$enable_intermodule; case ${enable_intermodule} in
8729 yes) onestep
="-onestep";;
8738 # Sanity check enable_languages in case someone does not run the toplevel
8739 # configure # script.
8740 # Check whether --enable-languages was given.
8741 if test "${enable_languages+set}" = set; then
8742 enableval
=$enable_languages; case ,${enable_languages}, in
8744 # go safe -- we cannot be much sure without the toplevel
8746 # analysis of which target libs are present and usable
8750 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8751 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8752 { (exit 1); exit 1; }; }
8757 enable_languages
=c
,${enable_languages}
8765 # Used by documentation targets
8770 # -------------------------
8771 # Checks for other programs
8772 # -------------------------
8774 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8775 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8776 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8777 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.
make <<\_ACEOF
8783 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8788 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8790 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8794 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8795 { echo "$as_me:$LINENO: result: yes" >&5
8796 echo "${ECHO_T}yes" >&6; }
8799 { echo "$as_me:$LINENO: result: no" >&5
8800 echo "${ECHO_T}no" >&6; }
8801 SET_MAKE
="MAKE=${MAKE-make}"
8805 # Find some useful tools
8806 for ac_prog
in gawk mawk nawk
awk
8808 # Extract the first word of "$ac_prog", so it can be a program name with args.
8809 set dummy
$ac_prog; ac_word
=$2
8810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8812 if test "${ac_cv_prog_AWK+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 if test -n "$AWK"; then
8816 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir
=.
8823 for ac_exec_ext
in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_AWK
="$ac_prog"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 if test -n "$AWK"; then
8837 { echo "$as_me:$LINENO: result: $AWK" >&5
8838 echo "${ECHO_T}$AWK" >&6; }
8840 { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8845 test -n "$AWK" && break
8848 # We need awk to create options.c and options.h.
8849 # Bail out if it's missing.
8851 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8852 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8853 { (exit 1); exit 1; }; } ;;
8856 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8857 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8858 if test "${gcc_cv_prog_LN_S+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 rm -f conftestdata_t
8862 echo >conftestdata_f
8863 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8865 gcc_cv_prog_LN_S
="ln -s"
8867 if ln conftestdata_f conftestdata_t
2>/dev
/null
8871 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8873 gcc_cv_prog_LN_S
="cp -p"
8879 rm -f conftestdata_f conftestdata_t
8882 LN_S
="$gcc_cv_prog_LN_S"
8883 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8884 { echo "$as_me:$LINENO: result: yes" >&5
8885 echo "${ECHO_T}yes" >&6; }
8887 if test "$gcc_cv_prog_LN_S" = "ln"; then
8888 { echo "$as_me:$LINENO: result: no, using ln" >&5
8889 echo "${ECHO_T}no, using ln" >&6; }
8891 { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8892 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8896 { echo "$as_me:$LINENO: checking whether ln works" >&5
8897 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8898 if test "${acx_cv_prog_LN+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 rm -f conftestdata_t
8902 echo >conftestdata_f
8903 if ln conftestdata_f conftestdata_t
2>/dev
/null
8909 rm -f conftestdata_f conftestdata_t
8912 if test $acx_cv_prog_LN = no
; then
8914 { echo "$as_me:$LINENO: result: no, using $LN" >&5
8915 echo "${ECHO_T}no, using $LN" >&6; }
8917 LN
="$acx_cv_prog_LN"
8918 { echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6; }
8922 if test -n "$ac_tool_prefix"; then
8923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8924 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8927 if test "${ac_cv_prog_RANLIB+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 if test -n "$RANLIB"; then
8931 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8937 test -z "$as_dir" && as_dir
=.
8938 for ac_exec_ext
in '' $ac_executable_extensions; do
8939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8940 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 RANLIB
=$ac_cv_prog_RANLIB
8951 if test -n "$RANLIB"; then
8952 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8953 echo "${ECHO_T}$RANLIB" >&6; }
8955 { echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6; }
8961 if test -z "$ac_cv_prog_RANLIB"; then
8962 ac_ct_RANLIB
=$RANLIB
8963 # Extract the first word of "ranlib", so it can be a program name with args.
8964 set dummy ranlib
; ac_word
=$2
8965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 if test -n "$ac_ct_RANLIB"; then
8971 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8977 test -z "$as_dir" && as_dir
=.
8978 for ac_exec_ext
in '' $ac_executable_extensions; do
8979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8980 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8991 if test -n "$ac_ct_RANLIB"; then
8992 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8993 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8995 { echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6; }
8999 if test "x$ac_ct_RANLIB" = x
; then
9002 case $cross_compiling:$ac_tool_warned in
9004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9005 whose name does not start with the host triplet. If you think this
9006 configuration is useful to you, please write to autoconf@gnu.org." >&5
9007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9008 whose name does not start with the host triplet. If you think this
9009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9010 ac_tool_warned
=yes ;;
9012 RANLIB
=$ac_ct_RANLIB
9015 RANLIB
="$ac_cv_prog_RANLIB"
9020 # By default, the Darwin ranlib will not treat common symbols as
9021 # definitions when building the archive table of contents. Other
9022 # ranlibs do that; pass an option to the Darwin ranlib that makes
9023 # it behave similarly.
9031 # Find a good install program. We prefer a C program (faster),
9032 # so one script is as good as another. But avoid the broken or
9033 # incompatible versions:
9034 # SysV /etc/install, /usr/sbin/install
9035 # SunOS /usr/etc/install
9036 # IRIX /sbin/install
9038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9040 # ./install, which can be erroneously created by make from ./install.sh.
9041 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
9042 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
9043 if test -z "$INSTALL"; then
9044 if test "${ac_cv_path_install+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
9048 for ac_dir
in $PATH; do
9049 # Account for people who put trailing slashes in PATH elements.
9051 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
9053 # OSF1 and SCO ODT 3.0 have their own names for install.
9054 for ac_prog
in ginstall scoinst
install; do
9055 if test -f $ac_dir/$ac_prog; then
9056 if test $ac_prog = install &&
9057 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
9058 # AIX install. It has an incompatible calling convention.
9059 # OSF/1 installbsd also uses dspmsg, but is usable.
9062 ac_cv_path_install
="$ac_dir/$ac_prog -c"
9073 if test "${ac_cv_path_install+set}" = set; then
9074 INSTALL
="$ac_cv_path_install"
9076 # As a last resort, use the slow shell script. We don't cache a
9077 # path for INSTALL within a source directory, because that will
9078 # break other packages using the cache if that directory is
9079 # removed, or if the path is relative.
9080 INSTALL
="$ac_install_sh"
9083 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9084 echo "${ECHO_T}$INSTALL" >&6; }
9086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9087 # It thinks the first close brace ends the variable substitution.
9088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9090 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9093 # See if cmp has --ignore-initial.
9094 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
9095 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
9096 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 gcc_cv_prog_cmp_skip
=slowcompare
9102 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
9103 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
9106 gcc_cv_prog_cmp_skip
=gnucompare
9109 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
9110 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
9111 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
9114 gcc_cv_prog_cmp_skip
=fastcompare
9121 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
9122 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
9123 make_compare_target
=$gcc_cv_prog_cmp_skip
9127 # See if we have the mktemp command.
9128 # Extract the first word of "mktemp", so it can be a program name with args.
9129 set dummy mktemp
; ac_word
=$2
9130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9132 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 if test -n "$have_mktemp_command"; then
9136 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
9138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9142 test -z "$as_dir" && as_dir
=.
9143 for ac_exec_ext
in '' $ac_executable_extensions; do
9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9145 ac_cv_prog_have_mktemp_command
="yes"
9146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
9156 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
9157 if test -n "$have_mktemp_command"; then
9158 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
9159 echo "${ECHO_T}$have_mktemp_command" >&6; }
9161 { echo "$as_me:$LINENO: result: no" >&5
9162 echo "${ECHO_T}no" >&6; }
9167 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
9169 # See if makeinfo has been installed and is modern enough
9170 # that we can use it.
9172 ac_executable_extensions
="$build_exeext"
9174 # Extract the first word of "makeinfo", so it can be a program name with args.
9175 set dummy makeinfo
; ac_word
=$2
9176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9178 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 if test -n "$MAKEINFO"; then
9182 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
9184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir
=.
9189 for ac_exec_ext
in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_MAKEINFO
="makeinfo"
9192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 MAKEINFO
=$ac_cv_prog_MAKEINFO
9202 if test -n "$MAKEINFO"; then
9203 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
9204 echo "${ECHO_T}$MAKEINFO" >&6; }
9206 { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9211 if test -n "$MAKEINFO"; then
9212 # Found it, now check the version.
9213 { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
9214 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
9215 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 ac_prog_version
=`$MAKEINFO --version 2>&1 |
9219 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9220 echo "configure:9220: version of makeinfo is $ac_prog_version" >&5
9221 case $ac_prog_version in
9222 '') gcc_cv_prog_makeinfo_modern
=no
;;
9224 gcc_cv_prog_makeinfo_modern
=yes;;
9225 *) gcc_cv_prog_makeinfo_modern
=no
;;
9229 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
9230 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
9232 gcc_cv_prog_makeinfo_modern
=no
9235 if test $gcc_cv_prog_makeinfo_modern = no
; then
9236 MAKEINFO
="$MISSING makeinfo"
9237 { echo "$as_me:$LINENO: WARNING:
9238 *** Makeinfo is missing or too old.
9239 *** Info documentation will not be built." >&5
9240 echo "$as_me: WARNING:
9241 *** Makeinfo is missing or too old.
9242 *** Info documentation will not be built." >&2;}
9249 # Is pod2man recent enough to regenerate manpages?
9250 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
9251 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
9252 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
9253 { echo "$as_me:$LINENO: result: yes" >&5
9254 echo "${ECHO_T}yes" >&6; }
9255 GENERATED_MANPAGES
=generated-manpages
9257 { echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6; }
9266 # Extract the first word of "$ac_prog", so it can be a program name with args.
9267 set dummy
$ac_prog; ac_word
=$2
9268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9270 if test "${ac_cv_prog_FLEX+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 if test -n "$FLEX"; then
9274 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
9276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir
=.
9281 for ac_exec_ext
in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9283 ac_cv_prog_FLEX
="$ac_prog"
9284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 FLEX
=$ac_cv_prog_FLEX
9294 if test -n "$FLEX"; then
9295 { echo "$as_me:$LINENO: result: $FLEX" >&5
9296 echo "${ECHO_T}$FLEX" >&6; }
9298 { echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6; }
9303 test -n "$FLEX" && break
9305 test -n "$FLEX" || FLEX
="$MISSING flex"
9309 for ac_prog
in bison
9311 # Extract the first word of "$ac_prog", so it can be a program name with args.
9312 set dummy
$ac_prog; ac_word
=$2
9313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9315 if test "${ac_cv_prog_BISON+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 if test -n "$BISON"; then
9319 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
9321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9325 test -z "$as_dir" && as_dir
=.
9326 for ac_exec_ext
in '' $ac_executable_extensions; do
9327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9328 ac_cv_prog_BISON
="$ac_prog"
9329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 BISON
=$ac_cv_prog_BISON
9339 if test -n "$BISON"; then
9340 { echo "$as_me:$LINENO: result: $BISON" >&5
9341 echo "${ECHO_T}$BISON" >&6; }
9343 { echo "$as_me:$LINENO: result: no" >&5
9344 echo "${ECHO_T}no" >&6; }
9348 test -n "$BISON" && break
9350 test -n "$BISON" || BISON
="$MISSING bison"
9353 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9354 # check for build == host before using them.
9357 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9358 && test -d ..
/binutils
; then
9359 NM
='$(objdir)/../binutils/nm-new'
9361 # Extract the first word of "nm", so it can be a program name with args.
9362 set dummy nm
; ac_word
=$2
9363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9365 if test "${ac_cv_prog_NM+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 if test -n "$NM"; then
9369 ac_cv_prog_NM
="$NM" # Let the user override the test.
9371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9375 test -z "$as_dir" && as_dir
=.
9376 for ac_exec_ext
in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9390 if test -n "$NM"; then
9391 { echo "$as_me:$LINENO: result: $NM" >&5
9392 echo "${ECHO_T}$NM" >&6; }
9394 { echo "$as_me:$LINENO: result: no" >&5
9395 echo "${ECHO_T}no" >&6; }
9402 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9403 && test -d ..
/binutils
; then
9404 AR
='$(objdir)/../binutils/ar'
9406 # Extract the first word of "ar", so it can be a program name with args.
9407 set dummy
ar; ac_word
=$2
9408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9410 if test "${ac_cv_prog_AR+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 if test -n "$AR"; then
9414 ac_cv_prog_AR
="$AR" # Let the user override the test.
9416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9420 test -z "$as_dir" && as_dir
=.
9421 for ac_exec_ext
in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9435 if test -n "$AR"; then
9436 { echo "$as_me:$LINENO: result: $AR" >&5
9437 echo "${ECHO_T}$AR" >&6; }
9439 { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9447 # --------------------
9448 # Checks for C headers
9449 # --------------------
9451 { echo "$as_me:$LINENO: checking for GNU C library" >&5
9452 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
9453 if test "${gcc_cv_glibc+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 cat >conftest.
$ac_ext <<_ACEOF
9459 cat confdefs.h
>>conftest.
$ac_ext
9460 cat >>conftest.
$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 #include <features.h>
9467 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
9468 #error Not a GNU C library system
9474 rm -f conftest.
$ac_objext
9475 if { (ac_try
="$ac_compile"
9477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_compile") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9489 { (case "(($ac_try" in
9490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9491 *) ac_try_echo
=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_try") 2>&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try
='test -s conftest.$ac_objext'
9499 { (case "(($ac_try" in
9500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_try") 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
9520 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
9521 if test $gcc_cv_glibc = yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define _GNU_SOURCE 1
9529 # Need to reject headers which give warnings, so that the -Werror bootstrap
9530 # works later. *sigh* This needs to come before all header checks.
9532 ac_c_preproc_warn_flag=yes
9534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9536 if test "${ac_cv_header_stdc+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9558 rm -f conftest.$ac_objext
9559 if { (ac_try="$ac_compile"
9561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9562 *) ac_try_echo
=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_compile") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1
>conftest.err
9569 cat conftest.err
>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (case "(($ac_try" in
9574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest.$ac_objext'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9585 *) ac_try_echo
=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_header_stdc
=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_cv_header_stdc
=no
9600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9602 if test $ac_cv_header_stdc = yes; then
9603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9604 cat >conftest.
$ac_ext <<_ACEOF
9607 cat confdefs.h
>>conftest.
$ac_ext
9608 cat >>conftest.
$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614 $EGREP "memchr" >/dev
/null
2>&1; then
9617 ac_cv_header_stdc
=no
9623 if test $ac_cv_header_stdc = yes; then
9624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9625 cat >conftest.
$ac_ext <<_ACEOF
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9635 $EGREP "free" >/dev
/null
2>&1; then
9638 ac_cv_header_stdc
=no
9644 if test $ac_cv_header_stdc = yes; then
9645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9646 if test "$cross_compiling" = yes; then
9649 cat >conftest.
$ac_ext <<_ACEOF
9652 cat confdefs.h
>>conftest.
$ac_ext
9653 cat >>conftest.
$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9657 #if ((' ' & 0x0FF) == 0x020)
9658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9661 # define ISLOWER(c) \
9662 (('a' <= (c) && (c) <= 'i') \
9663 || ('j' <= (c) && (c) <= 'r') \
9664 || ('s' <= (c) && (c) <= 'z'))
9665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9673 for (i = 0; i < 256; i++)
9674 if (XOR (islower (i), ISLOWER (i))
9675 || toupper (i) != TOUPPER (i))
9680 rm -f conftest
$ac_exeext
9681 if { (ac_try
="$ac_link"
9683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_link") 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9691 { (case "(($ac_try" in
9692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9693 *) ac_try_echo
=$ac_try;;
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_try") 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9702 echo "$as_me: program exited with status $ac_status" >&5
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.
$ac_ext >&5
9707 ac_cv_header_stdc
=no
9709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9715 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9716 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9717 if test $ac_cv_header_stdc = yes; then
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define STDC_HEADERS 1
9725 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9727 if test "${ac_cv_header_time+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.
$ac_ext <<_ACEOF
9733 cat confdefs.h
>>conftest.
$ac_ext
9734 cat >>conftest.
$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 #include <sys/types.h>
9737 #include <sys/time.h>
9743 if ((struct tm *) 0)
9749 rm -f conftest.
$ac_objext
9750 if { (ac_try
="$ac_compile"
9752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764 { (case "(($ac_try" in
9765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9766 *) ac_try_echo
=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_try") 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try
='test -s conftest.$ac_objext'
9774 { (case "(($ac_try" in
9775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_header_time=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_cv_header_time=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9795 if test $ac_cv_header_time = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define TIME_WITH_SYS_TIME 1
9803 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9804 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
9805 if test "${gcc_cv_header_string+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9815 #include <strings.h>
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9828 *) ac_try_echo
=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1
>conftest.err
9835 cat conftest.err
>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
9838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9839 { (case "(($ac_try" in
9840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_try") 2>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest.$ac_objext'
9849 { (case "(($ac_try" in
9850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9851 *) ac_try_echo
=$ac_try;;
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_try") 2>&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 gcc_cv_header_string
=yes
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.
$ac_ext >&5
9863 gcc_cv_header_string
=no
9866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9868 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9869 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
9870 if test $gcc_cv_header_string = yes; then
9872 cat >>confdefs.h
<<\_ACEOF
9873 #define STRING_WITH_STRINGS 1
9878 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9879 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9880 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.
$ac_ext <<_ACEOF
9886 cat confdefs.h
>>conftest.
$ac_ext
9887 cat >>conftest.
$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <sys/types.h>
9890 #include <sys/wait.h>
9892 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9895 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9903 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9908 rm -f conftest.
$ac_objext
9909 if { (ac_try
="$ac_compile"
9911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_compile") 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9925 *) ac_try_echo
=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try
='test -s conftest.$ac_objext'
9933 { (case "(($ac_try" in
9934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_try") 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 ac_cv_header_sys_wait_h=yes
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 ac_cv_header_sys_wait_h=no
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9953 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9954 if test $ac_cv_header_sys_wait_h = yes; then
9956 cat >>confdefs.h <<\_ACEOF
9957 #define HAVE_SYS_WAIT_H 1
9984 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9985 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9986 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9987 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9989 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <$ac_header>
10003 if { (ac_try="$ac_cpp conftest.$ac_ext"
10004 case "(($ac_try" in
10005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10006 *) ac_try_echo
=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1
>conftest.err
10013 cat conftest.err
>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } >/dev
/null
; then
10016 if test -s conftest.err
; then
10017 ac_cpp_err
=$ac_c_preproc_warn_flag
10018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10025 if test -z "$ac_cpp_err"; then
10026 eval "$as_ac_Header=yes"
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.
$ac_ext >&5
10031 eval "$as_ac_Header=no"
10034 rm -f conftest.err conftest.
$ac_ext
10036 ac_res
=`eval echo '${'$as_ac_Header'}'`
10037 { echo "$as_me:$LINENO: result: $ac_res" >&5
10038 echo "${ECHO_T}$ac_res" >&6; }
10039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10040 cat >>confdefs.h
<<_ACEOF
10041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10048 # Check for thread headers.
10049 { echo "$as_me:$LINENO: checking for thread.h" >&5
10050 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
10051 if test "${ac_cv_header_thread_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 cat >conftest.
$ac_ext <<_ACEOF
10057 cat confdefs.h
>>conftest.
$ac_ext
10058 cat >>conftest.
$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 #include <thread.h>
10062 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10063 case "(($ac_try" in
10064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } >/dev/null; then
10075 if test -s conftest.err; then
10076 ac_cpp_err=$ac_c_preproc_warn_flag
10077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10084 if test -z "$ac_cpp_err"; then
10085 ac_cv_header_thread_h=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_header_thread_h=no
10093 rm -f conftest.err conftest.$ac_ext
10095 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
10096 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
10097 if test $ac_cv_header_thread_h = yes; then
10103 { echo "$as_me:$LINENO: checking for pthread.h" >&5
10104 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
10105 if test "${ac_cv_header_pthread_h+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <pthread.h>
10116 if { (ac_try="$ac_cpp conftest.$ac_ext"
10117 case "(($ac_try" in
10118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10119 *) ac_try_echo
=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1
>conftest.err
10126 cat conftest.err
>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } >/dev
/null
; then
10129 if test -s conftest.err
; then
10130 ac_cpp_err
=$ac_c_preproc_warn_flag
10131 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10138 if test -z "$ac_cpp_err"; then
10139 ac_cv_header_pthread_h
=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10144 ac_cv_header_pthread_h
=no
10147 rm -f conftest.err conftest.
$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
10150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
10151 if test $ac_cv_header_pthread_h = yes; then
10158 # These tests can't be done till we know if we have limits.h.
10159 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
10160 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
10161 if test "${gcc_cv_decl_char_bit+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 cat >conftest.
$ac_ext <<_ACEOF
10167 cat confdefs.h
>>conftest.
$ac_ext
10168 cat >>conftest.
$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #ifdef HAVE_LIMITS_H
10171 #include <limits.h>
10177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10178 $EGREP "found" >/dev
/null
2>&1; then
10179 gcc_cv_decl_char_bit
=yes
10181 gcc_cv_decl_char_bit
=no
10187 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
10188 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
10189 if test $gcc_cv_decl_char_bit = no
; then
10190 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
10191 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
10192 if test "${gcc_cv_c_nbby+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 while test $i -lt 65; do
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10209 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
10210 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
10216 rm -f conftest.
$ac_objext
10217 if { (ac_try
="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_compile") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10233 *) ac_try_echo
=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try
='test -s conftest.$ac_objext'
10241 { (case "(($ac_try" in
10242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 gcc_cv_c_nbby=$i; break
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
10264 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
10265 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
10266 if test $gcc_cv_c_nbby = failed; then
10267 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
10268 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
10269 { (exit 1); exit 1; }; }
10272 cat >>confdefs.h <<_ACEOF
10273 #define CHAR_BIT $gcc_cv_c_nbby
10278 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10279 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
10280 if test "${ac_cv_c_bigendian+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 # See if sys/param.h defines the BYTE_ORDER macro.
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <sys/types.h>
10291 #include <sys/param.h>
10296 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10297 bogus endian macros
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10308 *) ac_try_echo
=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1
>conftest.err
10315 cat conftest.err
>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319 { (case "(($ac_try" in
10320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest.$ac_objext'
10329 { (case "(($ac_try" in
10330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10331 *) ac_try_echo
=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_try") 2>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 # It does; now see whether it defined to BIG_ENDIAN or not.
10339 cat >conftest.
$ac_ext <<_ACEOF
10342 cat confdefs.h
>>conftest.
$ac_ext
10343 cat >>conftest.
$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <sys/types.h>
10346 #include <sys/param.h>
10351 #if BYTE_ORDER != BIG_ENDIAN
10359 rm -f conftest.
$ac_objext
10360 if { (ac_try
="$ac_compile"
10361 case "(($ac_try" in
10362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_compile") 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10376 *) ac_try_echo
=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try
='test -s conftest.$ac_objext'
10384 { (case "(($ac_try" in
10385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_c_bigendian=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_cv_c_bigendian=no
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 # It does not; compile a test program.
10407 if test "$cross_compiling" = yes; then
10408 # try to guess the endianness by grepping values into an object file
10409 ac_cv_c_bigendian=unknown
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10417 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10418 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10419 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10420 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10421 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10425 _ascii (); _ebcdic ();
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10434 *) ac_try_echo
=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1
>conftest.err
10441 cat conftest.err
>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445 { (case "(($ac_try" in
10446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest.$ac_objext'
10455 { (case "(($ac_try" in
10456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10457 *) ac_try_echo
=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_try") 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10465 ac_cv_c_bigendian
=yes
10467 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10468 if test "$ac_cv_c_bigendian" = unknown
; then
10469 ac_cv_c_bigendian
=no
10471 # finding both strings is unlikely to happen, but who knows?
10472 ac_cv_c_bigendian
=unknown
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.
$ac_ext >&5
10482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10484 cat >conftest.
$ac_ext <<_ACEOF
10487 cat confdefs.h
>>conftest.
$ac_ext
10488 cat >>conftest.
$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 $ac_includes_default
10495 /* Are we little or big endian? From Harbison&Steele. */
10499 char c[sizeof (long int)];
10502 return u.c[sizeof (long int) - 1] == 1;
10508 rm -f conftest
$ac_exeext
10509 if { (ac_try
="$ac_link"
10510 case "(($ac_try" in
10511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10521 *) ac_try_echo
=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_c_bigendian
=no
10530 echo "$as_me: program exited with status $ac_status" >&5
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10534 ( exit $ac_status )
10535 ac_cv_c_bigendian
=yes
10537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10545 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10546 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
10547 case $ac_cv_c_bigendian in
10550 cat >>confdefs.h
<<\_ACEOF
10551 #define WORDS_BIGENDIAN 1
10557 { { echo "$as_me:$LINENO: error: unknown endianness
10558 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10559 echo "$as_me: error: unknown endianness
10560 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10561 { (exit 1); exit 1; }; } ;;
10569 # Stage specific cflags for build.
10573 if test x
$GCC = xyes
10575 stage1_cflags
="-Wa,-J"
10580 powerpc
*-*-darwin*)
10581 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
10582 # sources; use -no-cpp-precomp to get to GNU cpp.
10583 # Apple's GCC has bugs in designated initializer handling, so disable
10585 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
10590 # These libraries may be used by collect2.
10591 # We may need a special search path to get them linked.
10592 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
10593 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
10594 if test "${gcc_cv_collect2_libs+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 for libs
in '' -lld -lmld \
10599 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10600 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10603 cat >conftest.
$ac_ext <<_ACEOF
10606 cat confdefs.h
>>conftest.
$ac_ext
10607 cat >>conftest.
$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10625 rm -f conftest.
$ac_objext conftest
$ac_exeext
10626 if { (ac_try
="$ac_link"
10627 case "(($ac_try" in
10628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640 { (case "(($ac_try" in
10641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10642 *) ac_try_echo
=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_try") 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try
='test -s conftest$ac_exeext'
10650 { (case "(($ac_try" in
10651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 gcc_cv_collect2_libs="$libs"; break
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10673 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
10674 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
10675 case $gcc_cv_collect2_libs in
10676 "none required") ;;
10677 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10681 # When building Ada code on Alpha, we need exc_resume which is usually in
10682 # -lexc. So test for it.
10685 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
10686 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
10687 if test "${ac_cv_search_exc_resume+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 ac_func_search_save_LIBS=$LIBS
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10704 char exc_resume ();
10708 return exc_resume ();
10713 for ac_lib in '' exc; do
10714 if test -z "$ac_lib"; then
10715 ac_res="none required"
10718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10724 *) ac_try_echo
=$ac_try;;
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_link") 2>conftest.er1
10729 grep -v '^ *+' conftest.er1
>conftest.err
10731 cat conftest.err
>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (case "(($ac_try" in
10736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_try") 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest$ac_exeext'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10747 *) ac_try_echo
=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_search_exc_resume
=$ac_res
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.
$ac_ext >&5
10762 rm -f core conftest.err conftest.
$ac_objext \
10764 if test "${ac_cv_search_exc_resume+set}" = set; then
10768 if test "${ac_cv_search_exc_resume+set}" = set; then
10771 ac_cv_search_exc_resume
=no
10773 rm conftest.
$ac_ext
10774 LIBS
=$ac_func_search_save_LIBS
10776 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
10777 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
10778 ac_res
=$ac_cv_search_exc_resume
10779 if test "$ac_res" != no
; then
10780 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10784 GNAT_LIBEXC
="$LIBS"
10788 # Some systems put ldexp and frexp in libm instead of libc; assume
10789 # they're both in the same place. jcf-dump needs them.
10792 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
10793 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
10794 if test "${ac_cv_search_ldexp+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 ac_func_search_save_LIBS
=$LIBS
10798 cat >conftest.
$ac_ext <<_ACEOF
10801 cat confdefs.h
>>conftest.
$ac_ext
10802 cat >>conftest.
$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10820 for ac_lib
in '' m
; do
10821 if test -z "$ac_lib"; then
10822 ac_res
="none required"
10825 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10827 rm -f conftest.
$ac_objext conftest
$ac_exeext
10828 if { (ac_try
="$ac_link"
10829 case "(($ac_try" in
10830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1 >conftest.err
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10844 *) ac_try_echo
=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try
='test -s conftest$ac_exeext'
10852 { (case "(($ac_try" in
10853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_cv_search_ldexp=$ac_res
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10869 rm -f core conftest.err conftest.$ac_objext \
10871 if test "${ac_cv_search_ldexp+set}" = set; then
10875 if test "${ac_cv_search_ldexp+set}" = set; then
10878 ac_cv_search_ldexp=no
10880 rm conftest.$ac_ext
10881 LIBS=$ac_func_search_save_LIBS
10883 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10884 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
10885 ac_res=$ac_cv_search_ldexp
10886 if test "$ac_res" != no; then
10887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10895 # Use <inttypes.h> only if it exists,
10896 # doesn't clash with <sys/types.h>, and declares intmax_t.
10897 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10898 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10899 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <sys/types.h>
10909 #include <inttypes.h>
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10922 *) ac_try_echo
=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1
>conftest.err
10929 cat conftest.err
>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10945 *) ac_try_echo
=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 gcc_cv_header_inttypes_h
=yes
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.
$ac_ext >&5
10957 gcc_cv_header_inttypes_h
=no
10960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10963 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10964 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
10965 if test $gcc_cv_header_inttypes_h = yes; then
10967 cat >>confdefs.h
<<\_ACEOF
10968 #define HAVE_INTTYPES_H 1
11010 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
11011 sysconf strsignal getrusage nl_langinfo scandir alphasort \
11012 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
11013 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
11015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11018 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 cat >conftest.
$ac_ext <<_ACEOF
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11029 #define $ac_func innocuous_$ac_func
11031 /* System header to define __stub macros and hopefully few prototypes,
11032 which can conflict with char $ac_func (); below.
11033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11034 <limits.h> exists even on freestanding compilers. */
11037 # include <limits.h>
11039 # include <assert.h>
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11051 /* The GNU C library defines this for functions which it implements
11052 to always fail with ENOSYS. Some functions are actually named
11053 something starting with __ and the normal name is an alias. */
11054 #if defined __stub_$ac_func || defined __stub___$ac_func
11061 return $ac_func ();
11066 rm -f conftest.
$ac_objext conftest
$ac_exeext
11067 if { (ac_try
="$ac_link"
11068 case "(($ac_try" in
11069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_link") 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081 { (case "(($ac_try" in
11082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11083 *) ac_try_echo
=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_try") 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try
='test -s conftest$ac_exeext'
11091 { (case "(($ac_try" in
11092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_try") 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 eval "$as_ac_var=yes"
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 eval "$as_ac_var=no"
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11111 ac_res=`eval echo '${'$as_ac_var'}'`
11112 { echo "$as_me:$LINENO: result: $ac_res" >&5
11113 echo "${ECHO_T}$ac_res" >&6; }
11114 if test `eval echo '${'$as_ac_var'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11123 if test x$ac_cv_func_mbstowcs = xyes; then
11124 { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
11125 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
11126 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 if test "$cross_compiling" = yes; then
11130 gcc_cv_func_mbstowcs_works=yes
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <stdlib.h>
11141 mbstowcs(0, "", 0);
11145 rm -f conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11149 *) ac_try_echo
=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11156 { (case "(($ac_try" in
11157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 gcc_cv_func_mbstowcs_works=yes
11167 echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 ( exit $ac_status )
11172 gcc_cv_func_mbstowcs_works=no
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
11180 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
11181 if test x$gcc_cv_func_mbstowcs_works = xyes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_WORKING_MBSTOWCS 1
11190 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11191 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11192 if test "${ac_cv_type_ssize_t+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 $ac_includes_default
11202 typedef ssize_t ac__type_new_;
11206 if ((ac__type_new_ *) 0)
11208 if (sizeof (ac__type_new_))
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11218 *) ac_try_echo
=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_compile") 2>conftest.er1
11223 grep -v '^ *+' conftest.er1
>conftest.err
11225 cat conftest.err
>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (case "(($ac_try" in
11230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_try") 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (case "(($ac_try" in
11240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11241 *) ac_try_echo
=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_type_ssize_t
=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.
$ac_ext >&5
11253 ac_cv_type_ssize_t
=no
11256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11259 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
11260 if test $ac_cv_type_ssize_t = yes; then
11264 cat >>confdefs.h
<<_ACEOF
11265 #define ssize_t int
11271 # Try to determine the array type of the second argument of getgroups
11272 # for the target system (int or gid_t).
11273 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11274 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11275 if test "${ac_cv_type_uid_t+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 cat >conftest.
$ac_ext <<_ACEOF
11281 cat confdefs.h
>>conftest.
$ac_ext
11282 cat >>conftest.
$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <sys/types.h>
11287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288 $EGREP "uid_t" >/dev
/null
2>&1; then
11289 ac_cv_type_uid_t
=yes
11291 ac_cv_type_uid_t
=no
11296 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11297 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11298 if test $ac_cv_type_uid_t = no
; then
11300 cat >>confdefs.h
<<\_ACEOF
11305 cat >>confdefs.h
<<\_ACEOF
11311 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
11312 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
11313 if test "${ac_cv_type_getgroups+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 if test "$cross_compiling" = yes; then
11317 ac_cv_type_getgroups
=cross
11319 cat >conftest.
$ac_ext <<_ACEOF
11322 cat confdefs.h
>>conftest.
$ac_ext
11323 cat >>conftest.
$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 /* Thanks to Mike Rendell for this test. */
11326 $ac_includes_default
11329 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11334 gid_t gidset[NGID];
11336 union { gid_t gval; long int lval; } val;
11339 for (i = 0; i < NGID; i++)
11340 gidset[i] = val.gval;
11341 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11343 /* Exit non-zero if getgroups seems to require an array of ints. This
11344 happens when gid_t is short int but getgroups modifies an array
11346 return n > 0 && gidset[n] != val.gval;
11349 rm -f conftest
$ac_exeext
11350 if { (ac_try
="$ac_link"
11351 case "(($ac_try" in
11352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11362 *) ac_try_echo
=$ac_try;;
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_cv_type_getgroups
=gid_t
11371 echo "$as_me: program exited with status $ac_status" >&5
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.
$ac_ext >&5
11375 ( exit $ac_status )
11376 ac_cv_type_getgroups
=int
11378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11382 if test $ac_cv_type_getgroups = cross
; then
11383 cat >conftest.
$ac_ext <<_ACEOF
11386 cat confdefs.h
>>conftest.
$ac_ext
11387 cat >>conftest.
$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #include <unistd.h>
11392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11393 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
11394 ac_cv_type_getgroups
=gid_t
11396 ac_cv_type_getgroups
=int
11402 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
11403 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
11405 cat >>confdefs.h
<<_ACEOF
11406 #define GETGROUPS_T $ac_cv_type_getgroups
11410 if test "${target}" = "${build}"; then
11411 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
11413 case "${target}" in
11414 # This condition may need some tweaking. It should include all
11415 # targets where the array type of the second argument of getgroups
11416 # is int and the type of gid_t is not equivalent to int.
11417 *-*-sunos* |
*-*-ultrix*)
11418 TARGET_GETGROUPS_T
=int
11421 TARGET_GETGROUPS_T
=gid_t
11428 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11429 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
11430 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 cat >conftest.
$ac_ext <<_ACEOF
11436 cat confdefs.h
>>conftest.
$ac_ext
11437 cat >>conftest.
$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 #include <sys/mman.h>
11441 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11442 case "(($ac_try" in
11443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev/null; then
11454 if test -s conftest.err; then
11455 ac_cpp_err=$ac_c_preproc_warn_flag
11456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11463 if test -z "$ac_cpp_err"; then
11464 ac_cv_header_sys_mman_h=yes
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_cv_header_sys_mman_h=no
11472 rm -f conftest.err conftest.$ac_ext
11474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11475 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
11476 if test $ac_cv_header_sys_mman_h = yes; then
11477 gcc_header_sys_mman_h=yes
11479 gcc_header_sys_mman_h=no
11482 { echo "$as_me:$LINENO: checking for mmap" >&5
11483 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
11484 if test "${ac_cv_func_mmap+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11495 #define mmap innocuous_mmap
11497 /* System header to define __stub macros and hopefully few prototypes,
11498 which can conflict with char mmap (); below.
11499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11500 <limits.h> exists even on freestanding compilers. */
11503 # include <limits.h>
11505 # include <assert.h>
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11517 /* The GNU C library defines this for functions which it implements
11518 to always fail with ENOSYS. Some functions are actually named
11519 something starting with __ and the normal name is an alias. */
11520 #if defined __stub_mmap || defined __stub___mmap
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11536 *) ac_try_echo
=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_link") 2>conftest.er1
11541 grep -v '^ *+' conftest.er1
>conftest.err
11543 cat conftest.err
>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (case "(($ac_try" in
11548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest$ac_exeext'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11559 *) ac_try_echo
=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_func_mmap
=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.
$ac_ext >&5
11574 rm -f core conftest.err conftest.
$ac_objext \
11575 conftest
$ac_exeext conftest.
$ac_ext
11577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11578 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
11579 if test $ac_cv_func_mmap = yes; then
11585 if test "$gcc_header_sys_mman_h" != yes \
11586 ||
test "$gcc_func_mmap" != yes; then
11587 gcc_cv_func_mmap_file
=no
11588 gcc_cv_func_mmap_dev_zero
=no
11589 gcc_cv_func_mmap_anon
=no
11591 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11592 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
11593 if test "${gcc_cv_func_mmap_file+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 # Add a system to this blacklist if
11597 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11598 # memory area containing the same data that you'd get if you applied
11599 # read() to the same fd. The only system known to have a problem here
11600 # is VMS, where text files have record structure.
11603 gcc_cv_func_mmap_file
=no
;;
11605 gcc_cv_func_mmap_file
=yes;;
11608 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
11609 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
11610 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
11611 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
11612 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 # Add a system to this blacklist if it has mmap() but /dev/zero
11616 # does not exist, or if mmapping /dev/zero does not give anonymous
11617 # zeroed pages with both the following properties:
11618 # 1. If you map N consecutive pages in with one call, and then
11619 # unmap any subset of those pages, the pages that were not
11620 # explicitly unmapped remain accessible.
11621 # 2. If you map two adjacent blocks of memory and then unmap them
11622 # both at once, they must both go away.
11623 # Systems known to be in this category are Windows (all variants),
11626 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
11627 gcc_cv_func_mmap_dev_zero
=no
;;
11629 gcc_cv_func_mmap_dev_zero
=yes;;
11632 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
11633 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
11635 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11636 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
11637 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
11638 if test "${gcc_cv_decl_map_anon+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.
$ac_ext <<_ACEOF
11644 cat confdefs.h
>>conftest.
$ac_ext
11645 cat >>conftest.
$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <sys/types.h>
11648 #include <sys/mman.h>
11649 #include <unistd.h>
11651 #ifndef MAP_ANONYMOUS
11652 #define MAP_ANONYMOUS MAP_ANON
11658 int n = MAP_ANONYMOUS;
11663 rm -f conftest.
$ac_objext
11664 if { (ac_try
="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11680 *) ac_try_echo
=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try
='test -s conftest.$ac_objext'
11688 { (case "(($ac_try" in
11689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 gcc_cv_decl_map_anon=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 gcc_cv_decl_map_anon=no
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
11708 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
11710 if test $gcc_cv_decl_map_anon = no; then
11711 gcc_cv_func_mmap_anon=no
11713 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11714 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
11715 if test "${gcc_cv_func_mmap_anon+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11719 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11720 # doesn't give anonymous zeroed pages with the same properties listed
11721 # above for use of /dev/zero.
11722 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11724 vms* | cygwin* | pe | mingw* | sco* | udk* )
11725 gcc_cv_func_mmap_anon=no ;;
11727 gcc_cv_func_mmap_anon=yes;;
11730 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
11731 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
11735 if test $gcc_cv_func_mmap_file = yes; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_MMAP_FILE 1
11742 if test $gcc_cv_func_mmap_dev_zero = yes; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_MMAP_DEV_ZERO 1
11749 if test $gcc_cv_func_mmap_anon = yes; then
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_MMAP_ANON 1
11760 # Under VMS, vfork works very differently than on Unix. The standard test
11761 # won't work, and it isn't easily adaptable. It makes more sense to
11763 ac_cv_func_vfork_works=yes
11766 { echo "$as_me:$LINENO: checking for pid_t" >&5
11767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11768 if test "${ac_cv_type_pid_t+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 $ac_includes_default
11778 typedef pid_t ac__type_new_;
11782 if ((ac__type_new_ *) 0)
11784 if (sizeof (ac__type_new_))
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11794 *) ac_try_echo
=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1
>conftest.err
11801 cat conftest.err
>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest.$ac_objext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11817 *) ac_try_echo
=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_cv_type_pid_t
=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_cv_type_pid_t
=no
11832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11834 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11835 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11836 if test $ac_cv_type_pid_t = yes; then
11840 cat >>confdefs.h
<<_ACEOF
11847 for ac_header
in vfork.h
11849 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.
$ac_ext <<_ACEOF
11858 cat confdefs.h
>>conftest.
$ac_ext
11859 cat >>conftest.
$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <$ac_header>
11863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11864 case "(($ac_try" in
11865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } >/dev/null; then
11876 if test -s conftest.err; then
11877 ac_cpp_err=$ac_c_preproc_warn_flag
11878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11885 if test -z "$ac_cpp_err"; then
11886 eval "$as_ac_Header=yes"
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 eval "$as_ac_Header=no"
11894 rm -f conftest.err conftest.$ac_ext
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11909 for ac_func in fork vfork
11911 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 return $ac_func ();
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11966 *) ac_try_echo
=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } &&
11976 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977 { (case "(($ac_try" in
11978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (case "(($ac_try" in
11988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11989 *) ac_try_echo
=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 eval "$as_ac_var=yes"
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.
$ac_ext >&5
12001 eval "$as_ac_var=no"
12004 rm -f core conftest.err conftest.
$ac_objext \
12005 conftest
$ac_exeext conftest.
$ac_ext
12007 ac_res
=`eval echo '${'$as_ac_var'}'`
12008 { echo "$as_me:$LINENO: result: $ac_res" >&5
12009 echo "${ECHO_T}$ac_res" >&6; }
12010 if test `eval echo '${'$as_ac_var'}'` = yes; then
12011 cat >>confdefs.h
<<_ACEOF
12012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12018 if test "x$ac_cv_func_fork" = xyes
; then
12019 { echo "$as_me:$LINENO: checking for working fork" >&5
12020 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12021 if test "${ac_cv_func_fork_works+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 if test "$cross_compiling" = yes; then
12025 ac_cv_func_fork_works
=cross
12027 cat >conftest.
$ac_ext <<_ACEOF
12030 cat confdefs.h
>>conftest.
$ac_ext
12031 cat >>conftest.
$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 $ac_includes_default
12038 /* By Ruediger Kuhlmann. */
12039 return fork () < 0;
12045 rm -f conftest
$ac_exeext
12046 if { (ac_try
="$ac_link"
12047 case "(($ac_try" in
12048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12056 { (case "(($ac_try" in
12057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12058 *) ac_try_echo
=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_try") 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 ac_cv_func_fork_works
=yes
12067 echo "$as_me: program exited with status $ac_status" >&5
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.
$ac_ext >&5
12071 ( exit $ac_status )
12072 ac_cv_func_fork_works
=no
12074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12079 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12080 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12083 ac_cv_func_fork_works
=$ac_cv_func_fork
12085 if test "x$ac_cv_func_fork_works" = xcross
; then
12087 *-*-amigaos* |
*-*-msdosdjgpp*)
12088 # Override, as these systems have only a dummy fork() stub
12089 ac_cv_func_fork_works
=no
12092 ac_cv_func_fork_works
=yes
12095 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12096 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12098 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12099 if test "x$ac_cv_func_vfork" = xyes
; then
12100 { echo "$as_me:$LINENO: checking for working vfork" >&5
12101 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12102 if test "${ac_cv_func_vfork_works+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 if test "$cross_compiling" = yes; then
12106 ac_cv_func_vfork_works
=cross
12108 cat >conftest.
$ac_ext <<_ACEOF
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 /* Thanks to Paul Eggert for this test. */
12115 $ac_includes_default
12116 #include <sys/wait.h>
12118 # include <vfork.h>
12120 /* On some sparc systems, changes by the child to local and incoming
12121 argument registers are propagated back to the parent. The compiler
12122 is told about this with #include <vfork.h>, but some compilers
12123 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12124 static variable whose address is put into a register that is
12125 clobbered by the vfork. */
12128 sparc_address_test (int arg)
12130 sparc_address_test (arg) int arg;
12133 static pid_t child;
12151 pid_t parent = getpid ();
12154 sparc_address_test (0);
12159 /* Here is another test for sparc vfork register problems. This
12160 test uses lots of local variables, at least as many local
12161 variables as main has allocated so far including compiler
12162 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12163 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12164 reuse the register of parent for one of the local variables,
12165 since it will think that parent can't possibly be used any more
12166 in this routine. Assigning to the local variable will thus
12167 munge parent in the parent process. */
12169 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12170 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12171 /* Convince the compiler that p..p7 are live; otherwise, it might
12172 use the same hardware register for all 8 local variables. */
12173 if (p != p1 || p != p2 || p != p3 || p != p4
12174 || p != p5 || p != p6 || p != p7)
12177 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12178 from child file descriptors. If the child closes a descriptor
12179 before it execs or exits, this munges the parent's descriptor
12180 as well. Test for this by closing stdout in the child. */
12181 _exit(close(fileno(stdout)) != 0);
12186 while (wait(&status) != child)
12189 /* Was there some problem with vforking? */
12192 /* Did the child fail? (This shouldn't happen.) */
12195 /* Did the vfork/compiler bug occur? */
12196 || parent != getpid()
12198 /* Did the file descriptor bug occur? */
12199 || fstat(fileno(stdout), &st) != 0
12204 rm -f conftest
$ac_exeext
12205 if { (ac_try
="$ac_link"
12206 case "(($ac_try" in
12207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12217 *) ac_try_echo
=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_func_vfork_works
=yes
12226 echo "$as_me: program exited with status $ac_status" >&5
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.
$ac_ext >&5
12230 ( exit $ac_status )
12231 ac_cv_func_vfork_works
=no
12233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12239 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12242 if test "x$ac_cv_func_fork_works" = xcross
; then
12243 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12244 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12245 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12248 if test "x$ac_cv_func_vfork_works" = xyes
; then
12250 cat >>confdefs.h
<<\_ACEOF
12251 #define HAVE_WORKING_VFORK 1
12256 cat >>confdefs.h
<<\_ACEOF
12261 if test "x$ac_cv_func_fork_works" = xyes
; then
12263 cat >>confdefs.h
<<\_ACEOF
12264 #define HAVE_WORKING_FORK 1
12271 if test "X$prefix" = "XNONE"; then
12272 acl_final_prefix
="$ac_default_prefix"
12274 acl_final_prefix
="$prefix"
12276 if test "X$exec_prefix" = "XNONE"; then
12277 acl_final_exec_prefix
='${prefix}'
12279 acl_final_exec_prefix
="$exec_prefix"
12281 acl_save_prefix
="$prefix"
12282 prefix
="$acl_final_prefix"
12283 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12284 prefix
="$acl_save_prefix"
12287 # Check whether --with-gnu-ld was given.
12288 if test "${with_gnu_ld+set}" = set; then
12289 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12294 # Prepare PATH_SEPARATOR.
12295 # The user is always right.
12296 if test "${PATH_SEPARATOR+set}" != set; then
12297 echo "#! /bin/sh" >conf$$.sh
12298 echo "exit 0" >>conf$$.sh
12300 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12308 if test "$GCC" = yes; then
12309 # Check if gcc -print-prog-name=ld gives a path.
12310 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12311 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
12314 # gcc leaves a trailing carriage return which upsets mingw
12315 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12317 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12320 # Accept absolute paths.
12321 [\\/]* |
[A-Za-z
]:[\\/]*)
12322 re_direlt
='/[^/][^/]*/\.\./'
12323 # Canonicalize the path of ld
12324 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
12325 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
12326 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12328 test -z "$LD" && LD
="$ac_prog"
12331 # If it fails, then pretend we aren't using GCC.
12335 # If it is relative, then search for the first ld in PATH.
12336 with_gnu_ld
=unknown
12339 elif test "$with_gnu_ld" = yes; then
12340 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12343 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12346 if test "${acl_cv_path_LD+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 if test -z "$LD"; then
12350 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12351 for ac_dir
in $PATH; do
12352 test -z "$ac_dir" && ac_dir
=.
12353 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12354 acl_cv_path_LD
="$ac_dir/$ac_prog"
12355 # Check to see if the program is GNU ld. I'd rather use --version,
12356 # but apparently some GNU ld's only accept -v.
12357 # Break only if it was the GNU/non-GNU ld that we prefer.
12358 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
12359 test "$with_gnu_ld" != no
&& break
12361 test "$with_gnu_ld" != yes && break
12367 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12371 LD
="$acl_cv_path_LD"
12372 if test -n "$LD"; then
12373 { echo "$as_me:$LINENO: result: $LD" >&5
12374 echo "${ECHO_T}$LD" >&6; }
12376 { echo "$as_me:$LINENO: result: no" >&5
12377 echo "${ECHO_T}no" >&6; }
12379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12381 { (exit 1); exit 1; }; }
12382 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12384 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12388 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
12389 acl_cv_prog_gnu_ld
=yes
12391 acl_cv_prog_gnu_ld
=no
12394 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12395 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
12396 with_gnu_ld
=$acl_cv_prog_gnu_ld
12400 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12401 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
12402 if test "${acl_cv_rpath+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12407 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12409 rm -f .
/conftest.sh
12413 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12414 echo "${ECHO_T}$acl_cv_rpath" >&6; }
12416 libext
="$acl_cv_libext"
12417 shlibext
="$acl_cv_shlibext"
12418 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12419 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12420 hardcode_direct
="$acl_cv_hardcode_direct"
12421 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12422 # Check whether --enable-rpath was given.
12423 if test "${enable_rpath+set}" = set; then
12424 enableval
=$enable_rpath; :
12438 acl_save_prefix
="$prefix"
12439 prefix
="$acl_final_prefix"
12440 acl_save_exec_prefix
="$exec_prefix"
12441 exec_prefix
="$acl_final_exec_prefix"
12443 eval additional_includedir
=\"$includedir\"
12444 eval additional_libdir
=\"$libdir\"
12446 exec_prefix
="$acl_save_exec_prefix"
12447 prefix
="$acl_save_prefix"
12450 # Check whether --with-libiconv-prefix was given.
12451 if test "${with_libiconv_prefix+set}" = set; then
12452 withval
=$with_libiconv_prefix;
12453 if test "X$withval" = "Xno"; then
12456 if test "X$withval" = "X"; then
12458 acl_save_prefix
="$prefix"
12459 prefix
="$acl_final_prefix"
12460 acl_save_exec_prefix
="$exec_prefix"
12461 exec_prefix
="$acl_final_exec_prefix"
12463 eval additional_includedir
=\"$includedir\"
12464 eval additional_libdir
=\"$libdir\"
12466 exec_prefix
="$acl_save_exec_prefix"
12467 prefix
="$acl_save_prefix"
12470 additional_includedir
="$withval/include"
12471 additional_libdir
="$withval/lib"
12482 names_already_handled
=
12483 names_next_round
='iconv '
12484 while test -n "$names_next_round"; do
12485 names_this_round
="$names_next_round"
12487 for name
in $names_this_round; do
12489 for n
in $names_already_handled; do
12490 if test "$n" = "$name"; then
12491 already_handled
=yes
12495 if test -z "$already_handled"; then
12496 names_already_handled
="$names_already_handled $name"
12497 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12498 eval value
=\"\
$HAVE_LIB$uppername\"
12499 if test -n "$value"; then
12500 if test "$value" = yes; then
12501 eval value
=\"\
$LIB$uppername\"
12502 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
12503 eval value
=\"\
$LTLIB$uppername\"
12504 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
12513 if test $use_additional = yes; then
12514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12515 found_dir
="$additional_libdir"
12516 found_so
="$additional_libdir/lib$name.$shlibext"
12517 if test -f "$additional_libdir/lib$name.la"; then
12518 found_la
="$additional_libdir/lib$name.la"
12521 if test -f "$additional_libdir/lib$name.$libext"; then
12522 found_dir
="$additional_libdir"
12523 found_a
="$additional_libdir/lib$name.$libext"
12524 if test -f "$additional_libdir/lib$name.la"; then
12525 found_la
="$additional_libdir/lib$name.la"
12530 if test "X$found_dir" = "X"; then
12531 for x
in $LDFLAGS $LTLIBICONV; do
12533 acl_save_prefix
="$prefix"
12534 prefix
="$acl_final_prefix"
12535 acl_save_exec_prefix
="$exec_prefix"
12536 exec_prefix
="$acl_final_exec_prefix"
12538 exec_prefix
="$acl_save_exec_prefix"
12539 prefix
="$acl_save_prefix"
12543 dir
=`echo "X$x" | sed -e 's/^X-L//'`
12544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12546 found_so
="$dir/lib$name.$shlibext"
12547 if test -f "$dir/lib$name.la"; then
12548 found_la
="$dir/lib$name.la"
12551 if test -f "$dir/lib$name.$libext"; then
12553 found_a
="$dir/lib$name.$libext"
12554 if test -f "$dir/lib$name.la"; then
12555 found_la
="$dir/lib$name.la"
12561 if test "X$found_dir" != "X"; then
12566 if test "X$found_dir" != "X"; then
12567 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12568 if test "X$found_so" != "X"; then
12569 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
12570 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12573 for x
in $ltrpathdirs; do
12574 if test "X$x" = "X$found_dir"; then
12579 if test -z "$haveit"; then
12580 ltrpathdirs
="$ltrpathdirs $found_dir"
12582 if test "$hardcode_direct" = yes; then
12583 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
12586 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12588 for x
in $rpathdirs; do
12589 if test "X$x" = "X$found_dir"; then
12594 if test -z "$haveit"; then
12595 rpathdirs
="$rpathdirs $found_dir"
12599 for x
in $LDFLAGS $LIBICONV; do
12601 acl_save_prefix
="$prefix"
12602 prefix
="$acl_final_prefix"
12603 acl_save_exec_prefix
="$exec_prefix"
12604 exec_prefix
="$acl_final_exec_prefix"
12606 exec_prefix
="$acl_save_exec_prefix"
12607 prefix
="$acl_save_prefix"
12609 if test "X$x" = "X-L$found_dir"; then
12614 if test -z "$haveit"; then
12615 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12617 if test "$hardcode_minus_L" != no
; then
12618 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
12620 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12626 if test "X$found_a" != "X"; then
12627 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
12629 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12632 additional_includedir
=
12633 case "$found_dir" in
12635 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12636 additional_includedir
="$basedir/include"
12639 if test "X$additional_includedir" != "X"; then
12640 if test "X$additional_includedir" != "X/usr/include"; then
12642 if test "X$additional_includedir" = "X/usr/local/include"; then
12643 if test -n "$GCC"; then
12645 linux
*) haveit
=yes;;
12649 if test -z "$haveit"; then
12650 for x
in $CPPFLAGS $INCICONV; do
12652 acl_save_prefix
="$prefix"
12653 prefix
="$acl_final_prefix"
12654 acl_save_exec_prefix
="$exec_prefix"
12655 exec_prefix
="$acl_final_exec_prefix"
12657 exec_prefix
="$acl_save_exec_prefix"
12658 prefix
="$acl_save_prefix"
12660 if test "X$x" = "X-I$additional_includedir"; then
12665 if test -z "$haveit"; then
12666 if test -d "$additional_includedir"; then
12667 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12673 if test -n "$found_la"; then
12674 save_libdir
="$libdir"
12675 case "$found_la" in
12676 */* |
*\\*) .
"$found_la" ;;
12677 *) .
"./$found_la" ;;
12679 libdir
="$save_libdir"
12680 for dep
in $dependency_libs; do
12683 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
12684 if test "X$additional_libdir" != "X/usr/lib"; then
12686 if test "X$additional_libdir" = "X/usr/local/lib"; then
12687 if test -n "$GCC"; then
12689 linux
*) haveit
=yes;;
12693 if test -z "$haveit"; then
12695 for x
in $LDFLAGS $LIBICONV; do
12697 acl_save_prefix
="$prefix"
12698 prefix
="$acl_final_prefix"
12699 acl_save_exec_prefix
="$exec_prefix"
12700 exec_prefix
="$acl_final_exec_prefix"
12702 exec_prefix
="$acl_save_exec_prefix"
12703 prefix
="$acl_save_prefix"
12705 if test "X$x" = "X-L$additional_libdir"; then
12710 if test -z "$haveit"; then
12711 if test -d "$additional_libdir"; then
12712 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12716 for x
in $LDFLAGS $LTLIBICONV; do
12718 acl_save_prefix
="$prefix"
12719 prefix
="$acl_final_prefix"
12720 acl_save_exec_prefix
="$exec_prefix"
12721 exec_prefix
="$acl_final_exec_prefix"
12723 exec_prefix
="$acl_save_exec_prefix"
12724 prefix
="$acl_save_prefix"
12726 if test "X$x" = "X-L$additional_libdir"; then
12731 if test -z "$haveit"; then
12732 if test -d "$additional_libdir"; then
12733 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12740 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12741 if test "$enable_rpath" != no
; then
12743 for x
in $rpathdirs; do
12744 if test "X$x" = "X$dir"; then
12749 if test -z "$haveit"; then
12750 rpathdirs
="$rpathdirs $dir"
12753 for x
in $ltrpathdirs; do
12754 if test "X$x" = "X$dir"; then
12759 if test -z "$haveit"; then
12760 ltrpathdirs
="$ltrpathdirs $dir"
12765 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12768 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12771 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
12772 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12778 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
12779 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12785 if test "X$rpathdirs" != "X"; then
12786 if test -n "$hardcode_libdir_separator"; then
12788 for found_dir
in $rpathdirs; do
12789 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12791 acl_save_libdir
="$libdir"
12793 eval flag
=\"$hardcode_libdir_flag_spec\"
12794 libdir
="$acl_save_libdir"
12795 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12797 for found_dir
in $rpathdirs; do
12798 acl_save_libdir
="$libdir"
12799 libdir
="$found_dir"
12800 eval flag
=\"$hardcode_libdir_flag_spec\"
12801 libdir
="$acl_save_libdir"
12802 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
12806 if test "X$ltrpathdirs" != "X"; then
12807 for found_dir
in $ltrpathdirs; do
12808 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12818 am_save_CPPFLAGS
="$CPPFLAGS"
12820 for element
in $INCICONV; do
12822 for x
in $CPPFLAGS; do
12824 acl_save_prefix
="$prefix"
12825 prefix
="$acl_final_prefix"
12826 acl_save_exec_prefix
="$exec_prefix"
12827 exec_prefix
="$acl_final_exec_prefix"
12829 exec_prefix
="$acl_save_exec_prefix"
12830 prefix
="$acl_save_prefix"
12832 if test "X$x" = "X$element"; then
12837 if test -z "$haveit"; then
12838 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12843 { echo "$as_me:$LINENO: checking for iconv" >&5
12844 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12845 if test "${am_cv_func_iconv+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 am_cv_func_iconv
="no, consider installing GNU libiconv"
12851 cat >conftest.
$ac_ext <<_ACEOF
12854 cat confdefs.h
>>conftest.
$ac_ext
12855 cat >>conftest.
$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857 #include <stdlib.h>
12862 iconv_t cd = iconv_open("","");
12863 iconv(cd,NULL,NULL,NULL,NULL);
12869 rm -f conftest.
$ac_objext conftest
$ac_exeext
12870 if { (ac_try
="$ac_link"
12871 case "(($ac_try" in
12872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_link") 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12886 *) ac_try_echo
=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (case "(($ac_try" in
12895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 am_cv_func_iconv=yes
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -f core conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 if test "$am_cv_func_iconv" != yes; then
12914 am_save_LIBS="$LIBS"
12915 LIBS="$LIBS $LIBICONV"
12916 cat >conftest.$ac_ext <<_ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 #include <stdlib.h>
12927 iconv_t cd = iconv_open("","");
12928 iconv(cd,NULL,NULL,NULL,NULL);
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12938 *) ac_try_echo
=$ac_try;;
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_link") 2>conftest.er1
12943 grep -v '^ *+' conftest.er1
>conftest.err
12945 cat conftest.err
>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12949 { (case "(($ac_try" in
12950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_try") 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest$ac_exeext'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12961 *) ac_try_echo
=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 am_cv_lib_iconv
=yes
12969 am_cv_func_iconv
=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.
$ac_ext >&5
12977 rm -f core conftest.err conftest.
$ac_objext \
12978 conftest
$ac_exeext conftest.
$ac_ext
12979 LIBS
="$am_save_LIBS"
12983 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12984 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12985 if test "$am_cv_func_iconv" = yes; then
12987 cat >>confdefs.h
<<\_ACEOF
12988 #define HAVE_ICONV 1
12992 if test "$am_cv_lib_iconv" = yes; then
12993 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12994 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12995 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12996 echo "${ECHO_T}$LIBICONV" >&6; }
12998 CPPFLAGS
="$am_save_CPPFLAGS"
13005 if test "$am_cv_func_iconv" = yes; then
13006 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13007 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13008 if test "${am_cv_proto_iconv+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 cat >conftest.
$ac_ext <<_ACEOF
13015 cat confdefs.h
>>conftest.
$ac_ext
13016 cat >>conftest.
$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13019 #include <stdlib.h>
13025 #if defined(__STDC__) || defined(__cplusplus)
13026 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13039 rm -f conftest.
$ac_objext
13040 if { (ac_try
="$ac_compile"
13041 case "(($ac_try" in
13042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13056 *) ac_try_echo
=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try
='test -s conftest.$ac_objext'
13064 { (case "(($ac_try" in
13065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 am_cv_proto_iconv_arg1=""
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 am_cv_proto_iconv_arg1="const"
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 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);"
13085 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" |
tr -s ' ' |
sed -e 's/( /(/'`
13086 { echo "$as_me:$LINENO: result: ${ac_t:-
13087 }$am_cv_proto_iconv" >&5
13088 echo "${ECHO_T}${ac_t:-
13089 }$am_cv_proto_iconv" >&6; }
13091 cat >>confdefs.h <<_ACEOF
13092 #define ICONV_CONST $am_cv_proto_iconv_arg1
13097 # Until we have in-tree GNU iconv:
13102 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13103 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13104 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <locale.h>
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13126 *) ac_try_echo
=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13149 *) ac_try_echo
=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 am_cv_val_LC_MESSAGES
=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.
$ac_ext >&5
13161 am_cv_val_LC_MESSAGES
=no
13164 rm -f core conftest.err conftest.
$ac_objext \
13165 conftest
$ac_exeext conftest.
$ac_ext
13167 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13168 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
13169 if test $am_cv_val_LC_MESSAGES = yes; then
13171 cat >>confdefs.h
<<\_ACEOF
13172 #define HAVE_LC_MESSAGES 1
13179 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13180 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13181 if test "${am_cv_langinfo_codeset+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 cat >conftest.
$ac_ext <<_ACEOF
13187 cat confdefs.h
>>conftest.
$ac_ext
13188 cat >>conftest.
$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 #include <langinfo.h>
13194 char* cs = nl_langinfo(CODESET);
13199 rm -f conftest.
$ac_objext conftest
$ac_exeext
13200 if { (ac_try
="$ac_link"
13201 case "(($ac_try" in
13202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13216 *) ac_try_echo
=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try
='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 am_cv_langinfo_codeset=yes
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13238 am_cv_langinfo_codeset=no
13241 rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13246 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13247 if test $am_cv_langinfo_codeset = yes; then
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LANGINFO_CODESET 1
13256 # We will need to find libiberty.h and ansidecl.h
13257 saved_CFLAGS="$CFLAGS"
13258 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
13298 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
13299 strsignal strstr strverscmp \
13300 errno snprintf vsnprintf vasprintf malloc realloc calloc \
13301 free basename getopt clock getpagesize 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
13303 ac_tr_decl=`echo "HAVE_DECL_$ac_func" |
$as_tr_cpp`
13304 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13305 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13306 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 cat >conftest.$ac_ext <<_ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 #define $ac_tr_decl 1
13318 #include "ansidecl.h"
13319 #include "system.h"
13325 char *(*pfn) = (char *(*)) $ac_func ;
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13335 *) ac_try_echo
=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1
>conftest.err
13342 cat conftest.err
>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13346 { (case "(($ac_try" in
13347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest.$ac_objext'
13356 { (case "(($ac_try" in
13357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13358 *) ac_try_echo
=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_try") 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 eval "gcc_cv_have_decl_$ac_func=yes"
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.
$ac_ext >&5
13370 eval "gcc_cv_have_decl_$ac_func=no"
13373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13377 { echo "$as_me:$LINENO: result: yes" >&5
13378 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
13379 #define $ac_tr_decl 1
13383 { echo "$as_me:$LINENO: result: no" >&5
13384 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h
<<_ACEOF
13385 #define $ac_tr_decl 0
13396 for ac_func
in getrlimit setrlimit getrusage
13398 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13399 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13400 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13401 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.
$ac_ext <<_ACEOF
13407 cat confdefs.h
>>conftest.
$ac_ext
13408 cat >>conftest.
$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 #define $ac_tr_decl 1
13413 #include "ansidecl.h"
13414 #include "system.h"
13415 #ifdef HAVE_SYS_RESOURCE_H
13416 #include <sys/resource.h>
13424 char *(*pfn) = (char *(*)) $ac_func ;
13430 rm -f conftest.
$ac_objext
13431 if { (ac_try
="$ac_compile"
13432 case "(($ac_try" in
13433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_compile") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13447 *) ac_try_echo
=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_try") 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try
='test -s conftest.$ac_objext'
13455 { (case "(($ac_try" in
13456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_try") 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 eval "gcc_cv_have_decl_$ac_func=yes"
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 eval "gcc_cv_have_decl_$ac_func=no"
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13476 { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13478 #define $ac_tr_decl 1
13482 { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13484 #define $ac_tr_decl 0
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 #include "ansidecl.h"
13500 #include "system.h"
13501 #ifdef HAVE_SYS_RESOURCE_H
13502 #include <sys/resource.h>
13513 rm -f conftest.$ac_objext
13514 if { (ac_try="$ac_compile"
13515 case "(($ac_try" in
13516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13517 *) ac_try_echo
=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_compile") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1
>conftest.err
13524 cat conftest.err
>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13540 *) ac_try_echo
=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.
$ac_ext >&5
13553 cat >>confdefs.h
<<\_ACEOF
13554 #define rlim_t long
13559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13561 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
13562 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
13563 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
13564 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
13566 for ac_func
in ldgetname
13568 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13569 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13570 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13571 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 cat >conftest.
$ac_ext <<_ACEOF
13577 cat confdefs.h
>>conftest.
$ac_ext
13578 cat >>conftest.
$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13581 #define $ac_tr_decl 1
13583 #include "ansidecl.h"
13584 #include "system.h"
13585 #ifdef HAVE_LDFCN_H
13596 char *(*pfn) = (char *(*)) $ac_func ;
13602 rm -f conftest.
$ac_objext
13603 if { (ac_try
="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13619 *) ac_try_echo
=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try
='test -s conftest.$ac_objext'
13627 { (case "(($ac_try" in
13628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 eval "gcc_cv_have_decl_$ac_func=yes"
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 eval "gcc_cv_have_decl_$ac_func=no"
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13648 { echo "$as_me:$LINENO: result: yes" >&5
13649 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13650 #define $ac_tr_decl 1
13654 { echo "$as_me:$LINENO: result: no" >&5
13655 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13656 #define $ac_tr_decl 0
13665 for ac_func in times
13667 ac_tr_decl=`echo "HAVE_DECL_$ac_func" |
$as_tr_cpp`
13668 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13669 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13670 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 #define $ac_tr_decl 1
13682 #include "ansidecl.h"
13683 #include "system.h"
13684 #ifdef HAVE_SYS_TIMES_H
13685 #include <sys/times.h>
13693 char *(*pfn) = (char *(*)) $ac_func ;
13699 rm -f conftest.$ac_objext
13700 if { (ac_try="$ac_compile"
13701 case "(($ac_try" in
13702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13703 *) ac_try_echo
=$ac_try;;
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_compile") 2>conftest.er1
13708 grep -v '^ *+' conftest.er1
>conftest.err
13710 cat conftest.err
>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13714 { (case "(($ac_try" in
13715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest.$ac_objext'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13726 *) ac_try_echo
=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 eval "gcc_cv_have_decl_$ac_func=yes"
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.
$ac_ext >&5
13738 eval "gcc_cv_have_decl_$ac_func=no"
13741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13744 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13745 { echo "$as_me:$LINENO: result: yes" >&5
13746 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
13747 #define $ac_tr_decl 1
13751 { echo "$as_me:$LINENO: result: no" >&5
13752 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h
<<_ACEOF
13753 #define $ac_tr_decl 0
13762 for ac_func
in sigaltstack
13764 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13765 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13767 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 cat >conftest.
$ac_ext <<_ACEOF
13773 cat confdefs.h
>>conftest.
$ac_ext
13774 cat >>conftest.
$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 #define $ac_tr_decl 1
13779 #include "ansidecl.h"
13780 #include "system.h"
13781 #include <signal.h>
13788 char *(*pfn) = (char *(*)) $ac_func ;
13794 rm -f conftest.
$ac_objext
13795 if { (ac_try
="$ac_compile"
13796 case "(($ac_try" in
13797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_compile") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13811 *) ac_try_echo
=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try
='test -s conftest.$ac_objext'
13819 { (case "(($ac_try" in
13820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 eval "gcc_cv_have_decl_$ac_func=yes"
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 eval "gcc_cv_have_decl_$ac_func=no"
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13840 { echo "$as_me:$LINENO: result: yes" >&5
13841 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13842 #define $ac_tr_decl 1
13846 { echo "$as_me:$LINENO: result: no" >&5
13847 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13848 #define $ac_tr_decl 0
13856 # More time-related stuff.
13857 { echo "$as_me:$LINENO: checking for struct tms" >&5
13858 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
13859 if test "${ac_cv_struct_tms+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 cat >conftest.$ac_ext <<_ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13870 #include "ansidecl.h"
13871 #include "system.h"
13872 #ifdef HAVE_SYS_TIMES_H
13873 #include <sys/times.h>
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13888 *) ac_try_echo
=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1
>conftest.err
13895 cat conftest.err
>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13911 *) ac_try_echo
=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_struct_tms
=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.
$ac_ext >&5
13923 ac_cv_struct_tms
=no
13926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13928 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
13929 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
13930 if test $ac_cv_struct_tms = yes; then
13932 cat >>confdefs.h
<<\_ACEOF
13933 #define HAVE_STRUCT_TMS 1
13938 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
13939 # revisit after autoconf 2.50.
13940 { echo "$as_me:$LINENO: checking for clock_t" >&5
13941 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
13942 if test "${gcc_cv_type_clock_t+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 cat >conftest.
$ac_ext <<_ACEOF
13949 cat confdefs.h
>>conftest.
$ac_ext
13950 cat >>conftest.
$ac_ext <<_ACEOF
13951 /* end confdefs.h. */
13953 #include "ansidecl.h"
13954 #include "system.h"
13964 rm -f conftest.
$ac_objext
13965 if { (ac_try
="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_compile") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13981 *) ac_try_echo
=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try
='test -s conftest.$ac_objext'
13989 { (case "(($ac_try" in
13990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 gcc_cv_type_clock_t=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 gcc_cv_type_clock_t=no
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
14009 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
14010 if test $gcc_cv_type_clock_t = yes; then
14012 cat >>confdefs.h <<\_ACEOF
14013 #define HAVE_CLOCK_T 1
14018 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
14019 CFLAGS="$saved_CFLAGS"
14021 # Check whether --enable-initfini-array was given.
14022 if test "${enable_initfini_array+set}" = set; then
14023 enableval=$enable_initfini_array;
14026 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
14027 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
14028 if test "${gcc_cv_initfini_array+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 if test "$cross_compiling" = yes; then
14032 gcc_cv_initfini_array=no
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14042 int main (void) { return x; }
14043 int foo (void) { x = 0; }
14044 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
14046 rm -f conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14050 *) ac_try_echo
=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 gcc_cv_initfini_array=yes
14068 echo "$as_me: program exited with status $ac_status" >&5
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ( exit $ac_status )
14073 gcc_cv_initfini_array=no
14075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14080 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
14081 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
14082 enable_initfini_array=$gcc_cv_initfini_array
14086 if test $enable_initfini_array = yes; then
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_INITFINI_ARRAY 1
14094 # mkdir takes a single argument on some systems.
14095 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
14096 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
14097 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_STAT_H
14109 # include <sys/stat.h>
14111 #ifdef HAVE_UNISTD_H
14112 # include <unistd.h>
14114 #ifdef HAVE_DIRECT_H
14115 # include <direct.h>
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14129 *) ac_try_echo
=$ac_try;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_compile") 2>conftest.er1
14134 grep -v '^ *+' conftest.er1
>conftest.err
14136 cat conftest.err
>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
14139 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140 { (case "(($ac_try" in
14141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (case "(($ac_try" in
14151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14152 *) ac_try_echo
=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_try") 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 gcc_cv_mkdir_takes_one_arg
=no
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.
$ac_ext >&5
14164 gcc_cv_mkdir_takes_one_arg
=yes
14167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14169 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
14170 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
14171 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
14173 cat >>confdefs.h
<<\_ACEOF
14174 #define MKDIR_TAKES_ONE_ARG 1
14186 # With Setjmp/Longjmp based exception handling.
14187 # Check whether --enable-sjlj-exceptions was given.
14188 if test "${enable_sjlj_exceptions+set}" = set; then
14189 enableval
=$enable_sjlj_exceptions; sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
14191 cat >>confdefs.h
<<_ACEOF
14192 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
14198 # For platforms with the unwind ABI which includes an unwind library,
14199 # libunwind, we can choose to use the system libunwind.
14201 # Check whether --with-system-libunwind was given.
14202 if test "${with_system_libunwind+set}" = set; then
14203 withval
=$with_system_libunwind;
14207 # config.gcc also contains tests of with_system_libunwind.
14208 if test x
$with_system_libunwind = xyes
; then
14210 cat >>confdefs.h
<<\_ACEOF
14211 #define HAVE_GETIPINFO 1
14216 # --------------------------------------------------------
14217 # Build, host, and target specific configuration fragments
14218 # --------------------------------------------------------
14220 # Collect build-machine-specific information.
14221 .
${srcdir}/config.build
14223 # Collect host-machine-specific information.
14224 .
${srcdir}/config.
host
14228 # Collect target-machine-specific information.
14229 .
${srcdir}/config.gcc
14231 extra_objs
="${host_extra_objs} ${extra_objs}"
14232 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
14234 # Default the target-machine variables that were not explicitly set.
14235 if test x
"$tm_file" = x
14236 then tm_file
=$cpu_type/$cpu_type.h
; fi
14238 if test x
"$extra_headers" = x
14239 then extra_headers
=; fi
14241 if test x
$md_file = x
14242 then md_file
=$cpu_type/$cpu_type.md
; fi
14244 if test x
$out_file = x
14245 then out_file
=$cpu_type/$cpu_type.c
; fi
14247 if test x
"$tmake_file" = x
14248 then tmake_file
=$cpu_type/t-
$cpu_type
14251 if test x
"$dwarf2" = xyes
14252 then tm_file
="$tm_file tm-dwarf2.h"
14255 # Say what files are being used for the output code and MD file.
14256 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
14257 echo "Using \`$srcdir/config/$md_file' as machine description file."
14259 # If any of the xm_file variables contain nonexistent files, warn
14260 # about them and drop them.
14263 for x
in $build_xm_file; do
14264 if test -f $srcdir/config
/$x
14266 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14267 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14270 build_xm_file
="$bx"
14273 for x
in $host_xm_file; do
14274 if test -f $srcdir/config
/$x
14276 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14277 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14283 for x
in $xm_file; do
14284 if test -f $srcdir/config
/$x
14286 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14287 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14293 for f
in $tm_file; do
14296 if test $count = ax
; then
14297 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
14299 echo "Using the following target machine macro files:"
14300 for f
in $tm_file; do
14301 echo " $srcdir/config/$f"
14305 if test x
$need_64bit_hwint = xyes
; then
14307 cat >>confdefs.h
<<\_ACEOF
14308 #define NEED_64BIT_HOST_WIDE_INT 1
14313 if test x
$use_long_long_for_widest_fast_int = xyes
; then
14315 cat >>confdefs.h
<<\_ACEOF
14316 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
14322 for f
in $host_xm_file; do
14325 if test $count = a
; then
14327 elif test $count = ax
; then
14328 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
14330 echo "Using the following host machine macro files:"
14331 for f
in $host_xm_file; do
14332 echo " $srcdir/config/$f"
14335 echo "Using ${out_host_hook_obj} for host machine hooks."
14337 if test "$host_xm_file" != "$build_xm_file"; then
14339 for f
in $build_xm_file; do
14342 if test $count = a
; then
14344 elif test $count = ax
; then
14345 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
14347 echo "Using the following build machine macro files:"
14348 for f
in $build_xm_file; do
14349 echo " $srcdir/config/$f"
14355 powerpc
*-*-darwin*)
14356 { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
14357 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
14358 if test "${gcc_cv_mcontext_underscores+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 cat >conftest.
$ac_ext <<_ACEOF
14363 #include <sys/signal.h>
14364 #include <ucontext.h>
14365 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
14368 rm -f conftest.
$ac_objext
14369 if { (ac_try
="$ac_compile"
14370 case "(($ac_try" in
14371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_compile") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14385 *) ac_try_echo
=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try
='test -s conftest.$ac_objext'
14393 { (case "(($ac_try" in
14394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 gcc_cv_mcontext_underscores=no
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 gcc_cv_mcontext_underscores=yes
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
14413 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
14414 if test $gcc_cv_mcontext_underscores = yes; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAS_MCONTEXT_T_UNDERSCORES
14428 # Check if a valid thread package
14429 case ${enable_threads} in
14432 target_thread_file='single'
14436 target_thread_file='single'
14438 aix | dce | gnat | irix | posix | posix95 | rtems | \
14439 single | solaris | vxworks | win32 )
14440 target_thread_file=${enable_threads}
14443 echo "${enable_threads} is an unknown thread package" 1>&2
14448 if test x${thread_file} = x; then
14449 # No thread file set by target-specific clauses in config.gcc,
14450 # so use file chosen by default logic above
14451 thread_file=${target_thread_file}
14454 # Make gthr-default.h if we have a thread file.
14456 if test $thread_file != single; then
14457 rm -f gthr-default.h
14458 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
14459 gthread_flags=-DHAVE_GTHR_DEFAULT
14468 if test x$enable___cxa_atexit = xyes || \
14469 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
14470 if test x$host = x$target; then
14472 # mingw32 doesn't have __cxa_atexit but uses atexit registration
14473 # keyed to flag_use_cxa_atexit
14478 { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
14479 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
14480 if test "${ac_cv_func___cxa_atexit+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 cat >conftest.$ac_ext <<_ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
14490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14491 #define __cxa_atexit innocuous___cxa_atexit
14493 /* System header to define __stub macros and hopefully few prototypes,
14494 which can conflict with char __cxa_atexit (); below.
14495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14496 <limits.h> exists even on freestanding compilers. */
14499 # include <limits.h>
14501 # include <assert.h>
14504 #undef __cxa_atexit
14506 /* Override any GCC internal prototype to avoid an error.
14507 Use char because int might match the return type of a GCC
14508 builtin and then its argument prototype would still apply. */
14512 char __cxa_atexit ();
14513 /* The GNU C library defines this for functions which it implements
14514 to always fail with ENOSYS. Some functions are actually named
14515 something starting with __ and the normal name is an alias. */
14516 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
14523 return __cxa_atexit ();
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14532 *) ac_try_echo
=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_link") 2>conftest.er1
14537 grep -v '^ *+' conftest.er1
>conftest.err
14539 cat conftest.err
>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14543 { (case "(($ac_try" in
14544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; } &&
14552 { ac_try='test -s conftest$ac_exeext'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14555 *) ac_try_echo
=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_func___cxa_atexit
=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.
$ac_ext >&5
14567 ac_cv_func___cxa_atexit
=no
14570 rm -f core conftest.err conftest.
$ac_objext \
14571 conftest
$ac_exeext conftest.
$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
14574 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
14575 if test $ac_cv_func___cxa_atexit = yes; then
14578 echo "__cxa_atexit can't be enabled on this target"
14584 # We can't check for __cxa_atexit when building a cross, so assume
14588 if test x
$use_cxa_atexit = xyes
; then
14590 cat >>confdefs.h
<<\_ACEOF
14591 #define DEFAULT_USE_CXA_ATEXIT 2
14598 if test x
$with_system_libunwind = xyes
; then
14599 if test x
$host = x
$target; then
14600 { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
14601 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
14602 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 ac_func_search_save_LIBS
=$LIBS
14606 cat >conftest.
$ac_ext <<_ACEOF
14609 cat confdefs.h
>>conftest.
$ac_ext
14610 cat >>conftest.
$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14619 char _Unwind_GetIPInfo ();
14623 return _Unwind_GetIPInfo ();
14628 for ac_lib
in '' unwind
; do
14629 if test -z "$ac_lib"; then
14630 ac_res
="none required"
14633 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14635 rm -f conftest.
$ac_objext conftest
$ac_exeext
14636 if { (ac_try
="$ac_link"
14637 case "(($ac_try" in
14638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_link") 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14652 *) ac_try_echo
=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try
='test -s conftest$ac_exeext'
14660 { (case "(($ac_try" in
14661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_cv_search__Unwind_GetIPInfo=$ac_res
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14677 rm -f core conftest.err conftest.$ac_objext \
14679 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14683 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14686 ac_cv_search__Unwind_GetIPInfo=no
14688 rm conftest.$ac_ext
14689 LIBS=$ac_func_search_save_LIBS
14691 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
14692 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
14693 ac_res=$ac_cv_search__Unwind_GetIPInfo
14694 if test "$ac_res" != no; then
14695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704 if test x$use_getipinfo = xyes; then
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_GETIPINFO 1
14711 echo "The system unwind library does not support _Unwind_GetIPInfo."
14714 # Look for a file containing extra machine modes.
14715 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
14716 extra_modes_file='$(srcdir)'/config/${extra_modes}
14719 cat >>confdefs.h <<_ACEOF
14720 #define EXTRA_MODES_FILE "config/$extra_modes"
14725 # Convert extra_options into a form suitable for Makefile use.
14727 for f in $extra_options; do
14728 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
14732 # auto-host.h is the file containing items generated by autoconf and is
14733 # the first file included by config.h.
14734 # If host=build, it is correct to have bconfig include auto-host.h
14735 # as well. If host!=build, we are in error and need to do more
14736 # work to find out the build config parameters.
14737 if test x$host = x$build
14739 build_auto=auto-host.h
14741 # We create a subdir, then run autoconf in the subdir.
14742 # To prevent recursion we set host and build for the new
14743 # invocation of configure to the build for this invocation
14750 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
14751 *) realsrcdir=../${srcdir};;
14753 saved_CFLAGS="${CFLAGS}"
14754 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
14755 ${realsrcdir}/configure \
14756 --enable-languages=${enable_languages-all} \
14757 --target=$target_alias --host=$build_alias --build=$build_alias
14758 CFLAGS="${saved_CFLAGS}"
14760 # We just finished tests for the build machine, so rename
14761 # the file auto-build.h in the gcc directory.
14762 mv auto-host.h ../auto-build.h
14765 build_auto=auto-build.h
14769 tm_file="${tm_file} defaults.h"
14770 tm_p_file="${tm_p_file} tm-preds.h"
14771 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
14772 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
14773 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
14774 # put this back in temporarily.
14775 xm_file="auto-host.h ansidecl.h ${xm_file}"
14781 # Compile in configure arguments.
14782 if test -f configargs.h ; then
14783 # Being re-configured.
14784 gcc_config_arguments=`grep configuration_arguments configargs.h |
sed -e 's/.*"\([^"]*\)".*/\1/'`
14785 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
14787 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
14790 # Double all backslashes and backslash all quotes to turn
14791 # gcc_config_arguments into a C string.
14792 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
14793 $gcc_config_arguments
14795 gcc_config_arguments_str=`cat conftest.out
`
14798 cat > configargs.h <<EOF
14799 /* Generated automatically. */
14800 static const char configuration_arguments[] = "$gcc_config_arguments_str";
14801 static const char thread_model[] = "$thread_file";
14803 static const struct {
14804 const char *name, *value;
14805 } configure_default_options[] = $configure_default_options;
14808 # Internationalization
14809 # If we haven't got the data from the intl directory,
14810 # assume NLS is disabled.
14819 if test -f ../intl/config.intl; then
14820 . ../intl/config.intl
14822 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14823 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
14824 if test x"$USE_NLS" != xyes; then
14825 { echo "$as_me:$LINENO: result: no" >&5
14826 echo "${ECHO_T}no" >&6; }
14828 { echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6; }
14831 cat >>confdefs.h <<\_ACEOF
14832 #define ENABLE_NLS 1
14836 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14837 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
14838 # Look for .po and .gmo files in the source directory.
14841 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14842 # If there aren't any .gmo files the shell will give us the
14843 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14845 case "$cat" in *\**)
14848 # The quadruple backslash is collapsed to a double backslash
14849 # by the backticks, then collapsed again by the double quotes,
14850 # leaving us with one backslash in the sed expression (right
14851 # before the dot that mustn't act as a wildcard).
14852 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14853 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
14854 # The user is allowed to set LINGUAS to a list of languages to
14855 # install catalogs for. If it's empty that means "all of them."
14856 if test "x$LINGUAS" = x; then
14857 CATALOGS="$CATALOGS $cat"
14858 XLINGUAS="$XLINGUAS $lang"
14860 case "$LINGUAS" in *$lang*)
14861 CATALOGS="$CATALOGS $cat"
14862 XLINGUAS="$XLINGUAS $lang"
14867 LINGUAS="$XLINGUAS"
14868 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
14869 echo "${ECHO_T}$LINGUAS" >&6; }
14882 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14883 # -liconv on the link line twice.
14884 case "$LIBINTL" in *$LIBICONV*)
14888 # Check whether --enable-secureplt was given.
14889 if test "${enable_secureplt+set}" = set; then
14890 enableval=$enable_secureplt;
14894 # Windows32 Registry support for specifying GCC installation paths.
14895 # Check whether --enable-win32-registry was given.
14896 if test "${enable_win32_registry+set}" = set; then
14897 enableval=$enable_win32_registry;
14902 win32 | pe | cygwin* | mingw32* | uwin*)
14903 if test "x$enable_win32_registry" != xno; then
14904 { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
14905 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
14906 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 ac_func_search_save_LIBS=$LIBS
14910 cat >conftest.$ac_ext <<_ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14923 char RegOpenKeyExA ();
14927 return RegOpenKeyExA ();
14932 for ac_lib in '' advapi32; do
14933 if test -z "$ac_lib"; then
14934 ac_res="none required"
14937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14943 *) ac_try_echo
=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>conftest.er1
14948 grep -v '^ *+' conftest.er1
>conftest.err
14950 cat conftest.err
>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14954 { (case "(($ac_try" in
14955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_try") 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (case "(($ac_try" in
14965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14966 *) ac_try_echo
=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_try") 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_search_RegOpenKeyExA
=$ac_res
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.
$ac_ext >&5
14981 rm -f core conftest.err conftest.
$ac_objext \
14983 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14987 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14990 ac_cv_search_RegOpenKeyExA
=no
14992 rm conftest.
$ac_ext
14993 LIBS
=$ac_func_search_save_LIBS
14995 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
14996 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
14997 ac_res
=$ac_cv_search_RegOpenKeyExA
14998 if test "$ac_res" != no
; then
14999 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15002 enable_win32_registry
=no
15007 if test "x$enable_win32_registry" != xno
; then
15009 cat >>confdefs.h
<<\_ACEOF
15010 #define ENABLE_WIN32_REGISTRY 1
15014 if test "x$enable_win32_registry" != xyes \
15015 && test "x$enable_win32_registry" != x
; then
15017 cat >>confdefs.h
<<_ACEOF
15018 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15026 # Get an absolute path to the GCC top-level source directory
15027 holddir
=`${PWDCMD-pwd}`
15029 topdir
=`${PWDCMD-pwd}`
15032 # Conditionalize the makefile for this host machine.
15034 for f
in ${host_xmake_file}
15036 if test -f ${srcdir}/config
/$f
15038 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
15042 # Conditionalize the makefile for this target machine.
15044 for f
in ${tmake_file}
15046 if test -f ${srcdir}/config
/$f
15048 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
15051 tmake_file
="${tmake_file_}"
15053 # If the host doesn't support symlinks, modify CC in
15054 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
15055 # Otherwise, we can use "CC=$(CC)".
15059 cc_set_by_configure
="\$(CC)"
15060 quoted_cc_set_by_configure
="\$(CC)"
15061 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
15062 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
15065 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
15066 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
15067 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
15068 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
15072 # This is a terrible hack which will go away some day.
15073 host_cc_for_libada
=${CC}
15076 out_object_file
=`basename $out_file .c`.o
15078 tm_file_list
="options.h"
15079 tm_include_list
="options.h"
15080 for f
in $tm_file; do
15083 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
15084 tm_include_list
="${tm_include_list} $f"
15087 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
15088 tm_include_list
="${tm_include_list} config/$f"
15095 for f
in $tm_p_file; do
15098 tm_p_file_list
="${tm_p_file_list} $f"
15099 tm_p_include_list
="${tm_p_include_list} $f"
15102 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
15103 tm_p_include_list
="${tm_p_include_list} config/$f"
15109 for f
in $xm_file; do
15112 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
15113 xm_include_list
="${xm_include_list} $f"
15116 xm_file_list
="${xm_file_list} $f"
15117 xm_include_list
="${xm_include_list} $f"
15120 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
15121 xm_include_list
="${xm_include_list} config/$f"
15127 host_xm_include_list
=
15128 for f
in $host_xm_file; do
15131 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
15132 host_xm_include_list
="${host_xm_include_list} $f"
15135 host_xm_file_list
="${host_xm_file_list} $f"
15136 host_xm_include_list
="${host_xm_include_list} $f"
15139 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
15140 host_xm_include_list
="${host_xm_include_list} config/$f"
15145 build_xm_file_list
=
15146 for f
in $build_xm_file; do
15149 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
15150 build_xm_include_list
="${build_xm_include_list} $f"
15152 auto-build.h | auto-host.h
)
15153 build_xm_file_list
="${build_xm_file_list} $f"
15154 build_xm_include_list
="${build_xm_include_list} $f"
15157 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
15158 build_xm_include_list
="${build_xm_include_list} config/$f"
15163 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
15164 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15167 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15169 if test "x$with_build_sysroot" != x
; then
15170 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
15172 # This value is used, even on a native system, because
15173 # CROSS_SYSTEM_HEADER_DIR is just
15174 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
15175 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
15178 if test x
$host != x
$target
15180 CROSS
="-DCROSS_COMPILE"
15182 SYSTEM_HEADER_DIR
=$build_system_header_dir
15183 case "$host","$target" in
15184 # Darwin crosses can use the host system's libraries and headers,
15185 # because of the fat library support. Of course, it must be the
15186 # same version of Darwin on both sides. Allow the user to
15187 # just say --target=foo-darwin without a version number to mean
15188 # "the version on this system".
15189 *-*-darwin*,*-*-darwin*)
15190 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
15191 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
15192 if test $hostos = $targetos -o $targetos = darwin
; then
15194 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
15199 i?
86-*-*,x86_64-
*-* \
15200 | powerpc
*-*-*,powerpc64
*-*-*)
15201 CROSS
="$CROSS -DNATIVE_CROSS" ;;
15203 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
15204 SYSTEM_HEADER_DIR
=$build_system_header_dir
15207 # If this is a cross-compiler that does not
15208 # have its own set of headers then define
15211 # If this is using newlib, without having the headers available now,
15212 # then define inhibit_libc in LIBGCC2_CFLAGS.
15213 # This prevents libgcc2 from containing any code which requires libc
15216 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
15217 test x
$with_newlib = xyes
; } &&
15218 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
15223 # When building gcc with a cross-compiler, we need to adjust things so
15224 # that the generator programs are still built with the native compiler.
15225 # Also, we cannot run fixincludes or fix-header.
15227 # These are the normal (build=host) settings:
15228 CC_FOR_BUILD
='$(CC)'
15229 BUILD_CFLAGS
='$(ALL_CFLAGS)'
15230 STMP_FIXINC
=stmp-fixinc
15232 # Possibly disable fixproto, on a per-target basis.
15233 case ${use_fixproto} in
15238 STMP_FIXPROTO
=stmp-fixproto
15243 # And these apply if build != host, or we are generating coverage data
15244 if test x
$build != x
$host ||
test "x$coverage_flags" != x
15246 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
15248 if test "x$TARGET_SYSTEM_ROOT" = x
; then
15249 if test "x$STMP_FIXPROTO" != x
; then
15250 STMP_FIXPROTO
=stmp-install-fixproto
15255 # Expand extra_headers to include complete path.
15256 # This substitutes for lots of t-* files.
15257 extra_headers_list
=
15258 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15259 for file in ${extra_headers} ; do
15260 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15263 # Define collect2 in Makefile.
15264 case $host_can_use_collect2 in
15266 *) collect2
='collect2$(exeext)' ;;
15270 # Add a definition of USE_COLLECT2 if system wants one.
15271 case $use_collect2 in
15272 no
) use_collect2
= ;;
15275 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
15276 xm_defines
="${xm_defines} USE_COLLECT2"
15277 case $host_can_use_collect2 in
15279 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
15280 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
15281 { (exit 1); exit 1; }; }
15287 # ---------------------------
15288 # Assembler & linker features
15289 # ---------------------------
15291 # Identify the assembler which will work hand-in-glove with the newly
15292 # built GCC, so that we can examine its features. This is the assembler
15293 # which will be driven by the driver program.
15295 # If build != host, and we aren't building gas in-tree, we identify a
15296 # build->target assembler and hope that it will have the same features
15297 # as the host->target assembler we'll be using.
15298 gcc_cv_gas_major_version
=
15299 gcc_cv_gas_minor_version
=
15300 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
15302 if test "${gcc_cv_as+set}" = set; then
15306 if test -x "$DEFAULT_ASSEMBLER"; then
15307 gcc_cv_as
="$DEFAULT_ASSEMBLER"
15308 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
15309 && test -f ..
/gas
/Makefile \
15310 && test x
$build = x
$host; then
15311 gcc_cv_as
=..
/gas
/as-new
$build_exeext
15312 elif test -x as
$build_exeext; then
15313 # Build using assembler in the current directory.
15314 gcc_cv_as
=.
/as
$build_exeext
15315 elif test -x $AS_FOR_TARGET; then
15316 gcc_cv_as
="$AS_FOR_TARGET"
15318 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
15319 set dummy
$AS_FOR_TARGET; ac_word
=$2
15320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15322 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
15330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15331 for as_dir
in $PATH
15334 test -z "$as_dir" && as_dir
=.
15335 for ac_exec_ext
in '' $ac_executable_extensions; do
15336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15337 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
15338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15348 gcc_cv_as
=$ac_cv_path_gcc_cv_as
15349 if test -n "$gcc_cv_as"; then
15350 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
15351 echo "${ECHO_T}$gcc_cv_as" >&6; }
15353 { echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6; }
15362 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
15365 { echo "$as_me:$LINENO: checking what assembler to use" >&5
15366 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
15367 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
15368 # Single tree build which includes gas. We want to prefer it
15369 # over whatever linker top-level may have detected, since
15370 # we'll use what we're building after installation anyway.
15371 { echo "$as_me:$LINENO: result: newly built gas" >&5
15372 echo "${ECHO_T}newly built gas" >&6; }
15374 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
15375 for f
in $gcc_cv_as_bfd_srcdir/configure \
15376 $gcc_cv_as_gas_srcdir/configure \
15377 $gcc_cv_as_gas_srcdir/configure.
in \
15378 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
15379 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
15380 if test x
$gcc_cv_gas_version != x
; then
15384 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
15385 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
15386 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
15387 case $gcc_cv_gas_patch_version in
15388 "") gcc_cv_gas_patch_version
="0" ;;
15390 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
15391 + $gcc_cv_gas_minor_version \) \* 1000 \
15392 + $gcc_cv_gas_patch_version`
15394 in_tree_gas_is_elf
=no
15395 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
15396 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
15397 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
15399 in_tree_gas_is_elf
=yes
15402 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
15403 echo "${ECHO_T}$gcc_cv_as" >&6; }
15407 # Identify the linker which will work hand-in-glove with the newly
15408 # built GCC, so that we can examine its features. This is the linker
15409 # which will be driven by the driver program.
15411 # If build != host, and we aren't building gas in-tree, we identify a
15412 # build->target linker and hope that it will have the same features
15413 # as the host->target linker we'll be using.
15414 gcc_cv_gld_major_version
=
15415 gcc_cv_gld_minor_version
=
15416 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
15417 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
15419 if test "${gcc_cv_ld+set}" = set; then
15423 if test -x "$DEFAULT_LINKER"; then
15424 gcc_cv_ld
="$DEFAULT_LINKER"
15425 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
15426 && test -f ..
/ld
/Makefile \
15427 && test x
$build = x
$host; then
15428 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
15429 elif test -x collect-ld
$build_exeext; then
15430 # Build using linker in the current directory.
15431 gcc_cv_ld
=.
/collect-ld
$build_exeext
15432 elif test -x $LD_FOR_TARGET; then
15433 gcc_cv_ld
="$LD_FOR_TARGET"
15435 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
15436 set dummy
$LD_FOR_TARGET; ac_word
=$2
15437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15439 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
15447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15448 for as_dir
in $PATH
15451 test -z "$as_dir" && as_dir
=.
15452 for ac_exec_ext
in '' $ac_executable_extensions; do
15453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15454 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
15455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15465 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
15466 if test -n "$gcc_cv_ld"; then
15467 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
15468 echo "${ECHO_T}$gcc_cv_ld" >&6; }
15470 { echo "$as_me:$LINENO: result: no" >&5
15471 echo "${ECHO_T}no" >&6; }
15479 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
15482 { echo "$as_me:$LINENO: checking what linker to use" >&5
15483 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
15484 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
15485 # Single tree build which includes ld. We want to prefer it
15486 # over whatever linker top-level may have detected, since
15487 # we'll use what we're building after installation anyway.
15488 { echo "$as_me:$LINENO: result: newly built ld" >&5
15489 echo "${ECHO_T}newly built ld" >&6; }
15491 in_tree_ld_is_elf
=no
15492 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
15493 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
15494 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
15495 in_tree_ld_is_elf
=yes
15497 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
15499 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
15500 if test x
$gcc_cv_gld_version != x
; then
15504 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
15505 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
15507 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
15508 echo "${ECHO_T}$gcc_cv_ld" >&6; }
15512 # Figure out what nm we will be using.
15513 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
15514 if test "${gcc_cv_nm+set}" = set; then
15518 if test -f $gcc_cv_binutils_srcdir/configure.
in \
15519 && test -f ..
/binutils
/Makefile \
15520 && test x
$build = x
$host; then
15521 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
15522 elif test -x nm
$build_exeext; then
15523 gcc_cv_nm
=.
/nm
$build_exeext
15524 elif test -x $NM_FOR_TARGET; then
15525 gcc_cv_nm
="$NM_FOR_TARGET"
15527 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
15528 set dummy
$NM_FOR_TARGET; ac_word
=$2
15529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15531 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
15539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15540 for as_dir
in $PATH
15543 test -z "$as_dir" && as_dir
=.
15544 for ac_exec_ext
in '' $ac_executable_extensions; do
15545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15546 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
15547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15557 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
15558 if test -n "$gcc_cv_nm"; then
15559 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
15560 echo "${ECHO_T}$gcc_cv_nm" >&6; }
15562 { echo "$as_me:$LINENO: result: no" >&5
15563 echo "${ECHO_T}no" >&6; }
15571 { echo "$as_me:$LINENO: checking what nm to use" >&5
15572 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
15573 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
15574 # Single tree build which includes binutils.
15575 { echo "$as_me:$LINENO: result: newly built nm" >&5
15576 echo "${ECHO_T}newly built nm" >&6; }
15579 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
15580 echo "${ECHO_T}$gcc_cv_nm" >&6; }
15584 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
15587 # Figure out what objdump we will be using.
15588 if test "${gcc_cv_objdump+set}" = set; then
15592 if test -f $gcc_cv_binutils_srcdir/configure.
in \
15593 && test -f ..
/binutils
/Makefile \
15594 && test x
$build = x
$host; then
15595 # Single tree build which includes binutils.
15596 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
15597 elif test -x objdump
$build_exeext; then
15598 gcc_cv_objdump
=.
/objdump
$build_exeext
15599 elif test -x $OBJDUMP_FOR_TARGET; then
15600 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
15602 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
15603 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
15604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15606 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 case $gcc_cv_objdump in
15611 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
15614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15615 for as_dir
in $PATH
15618 test -z "$as_dir" && as_dir
=.
15619 for ac_exec_ext
in '' $ac_executable_extensions; do
15620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15621 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
15622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15632 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
15633 if test -n "$gcc_cv_objdump"; then
15634 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
15635 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
15637 { echo "$as_me:$LINENO: result: no" >&5
15638 echo "${ECHO_T}no" >&6; }
15646 { echo "$as_me:$LINENO: checking what objdump to use" >&5
15647 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
15648 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
15649 # Single tree build which includes binutils.
15650 { echo "$as_me:$LINENO: result: newly built objdump" >&5
15651 echo "${ECHO_T}newly built objdump" >&6; }
15652 elif test x
$gcc_cv_objdump = x
; then
15653 { echo "$as_me:$LINENO: result: not found" >&5
15654 echo "${ECHO_T}not found" >&6; }
15656 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
15657 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
15660 # Figure out what assembler alignment features are present.
15661 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
15662 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
15663 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 gcc_cv_as_balign_and_p2align
=no
15667 if test $in_tree_gas = yes; then
15668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
15669 then gcc_cv_as_balign_and_p2align
=yes
15671 elif test x
$gcc_cv_as != x
; then
15673 .p2align 2' > conftest.s
15674 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }
15681 gcc_cv_as_balign_and_p2align
=yes
15683 echo "configure: failed program was" >&5
15686 rm -f conftest.o conftest.s
15689 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
15690 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
15691 if test $gcc_cv_as_balign_and_p2align = yes; then
15693 cat >>confdefs.h
<<\_ACEOF
15694 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
15699 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
15700 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
15701 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 gcc_cv_as_max_skip_p2align
=no
15705 if test $in_tree_gas = yes; then
15706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
15707 then gcc_cv_as_max_skip_p2align
=yes
15709 elif test x
$gcc_cv_as != x
; then
15710 echo '.p2align 4,,7' > conftest.s
15711 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }
15718 gcc_cv_as_max_skip_p2align
=yes
15720 echo "configure: failed program was" >&5
15723 rm -f conftest.o conftest.s
15726 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
15727 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
15728 if test $gcc_cv_as_max_skip_p2align = yes; then
15730 cat >>confdefs.h
<<\_ACEOF
15731 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
15736 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
15737 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
15738 if test "${gcc_cv_as_subsection_m1+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 gcc_cv_as_subsection_m1
=no
15742 if test $in_tree_gas = yes; then
15743 if test $in_tree_gas_is_elf = yes \
15744 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15745 then gcc_cv_as_subsection_m1
=yes
15747 elif test x
$gcc_cv_as != x
; then
15748 echo 'conftest_label1: .word 0
15750 conftest_label2: .word 0
15751 .previous' > conftest.s
15752 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; }
15759 if test x
$gcc_cv_nm != x
; then
15760 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
15761 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
15762 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
15764 else gcc_cv_as_subsection_m1
=yes
15766 rm -f conftest.nm1 conftest.nm2
15769 echo "configure: failed program was" >&5
15772 rm -f conftest.o conftest.s
15775 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
15776 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
15777 if test $gcc_cv_as_subsection_m1 = yes; then
15779 cat >>confdefs.h
<<\_ACEOF
15780 #define HAVE_GAS_SUBSECTION_ORDERING 1
15785 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
15786 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
15787 if test "${gcc_cv_as_weak+set}" = set; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 if test $in_tree_gas = yes; then
15792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
15793 then gcc_cv_as_weak
=yes
15795 elif test x
$gcc_cv_as != x
; then
15796 echo ' .weak foobar' > conftest.s
15797 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }
15806 echo "configure: failed program was" >&5
15809 rm -f conftest.o conftest.s
15812 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
15813 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
15814 if test $gcc_cv_as_weak = yes; then
15816 cat >>confdefs.h
<<\_ACEOF
15817 #define HAVE_GAS_WEAK 1
15822 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
15823 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
15824 if test "${gcc_cv_as_weakref+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 gcc_cv_as_weakref
=no
15828 if test $in_tree_gas = yes; then
15829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15830 then gcc_cv_as_weakref
=yes
15832 elif test x
$gcc_cv_as != x
; then
15833 echo ' .weakref foobar, barfnot' > conftest.s
15834 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }
15841 gcc_cv_as_weakref
=yes
15843 echo "configure: failed program was" >&5
15846 rm -f conftest.o conftest.s
15849 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
15850 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
15851 if test $gcc_cv_as_weakref = yes; then
15853 cat >>confdefs.h
<<\_ACEOF
15854 #define HAVE_GAS_WEAKREF 1
15859 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
15860 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
15861 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 gcc_cv_as_nsubspa_comdat
=no
15865 if test $in_tree_gas = yes; then
15866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15867 then gcc_cv_as_nsubspa_comdat
=yes
15869 elif test x
$gcc_cv_as != x
; then
15870 echo ' .SPACE $TEXT$
15871 .NSUBSPA $CODE$,COMDAT' > conftest.s
15872 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }
15879 gcc_cv_as_nsubspa_comdat
=yes
15881 echo "configure: failed program was" >&5
15884 rm -f conftest.o conftest.s
15887 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
15888 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
15889 if test $gcc_cv_as_nsubspa_comdat = yes; then
15891 cat >>confdefs.h
<<\_ACEOF
15892 #define HAVE_GAS_NSUBSPA_COMDAT 1
15897 # .hidden needs to be supported in both the assembler and the linker,
15898 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
15899 # This is irritatingly difficult to feature test for; we have to check the
15900 # date string after the version number. If we've got an in-tree
15901 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
15903 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
15904 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
15905 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
15906 if test "${gcc_cv_as_hidden+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 gcc_cv_as_hidden
=no
15910 if test $in_tree_gas = yes; then
15911 if test $in_tree_gas_is_elf = yes \
15912 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
15913 then gcc_cv_as_hidden
=yes
15915 elif test x
$gcc_cv_as != x
; then
15916 echo ' .hidden foobar
15917 foobar:' > conftest.s
15918 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }
15925 gcc_cv_as_hidden
=yes
15927 echo "configure: failed program was" >&5
15930 rm -f conftest.o conftest.s
15933 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
15934 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
15937 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
15938 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
15939 if test "${gcc_cv_ld_hidden+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 if test $in_tree_ld = yes ; then
15943 gcc_cv_ld_hidden
=no
15944 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 \
15945 && test $in_tree_ld_is_elf = yes; then
15946 gcc_cv_ld_hidden
=yes
15949 gcc_cv_ld_hidden
=yes
15950 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
15951 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
15952 ld_vers
=`echo $ld_ver | sed -n \
15953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15954 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15955 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15956 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
15957 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
15958 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
15959 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
15960 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'`
15961 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
15962 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
15963 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15964 if test 0"$ld_date" -lt 20020404; then
15965 if test -n "$ld_date"; then
15966 # If there was date string, but was earlier than 2002-04-04, fail
15967 gcc_cv_ld_hidden
=no
15968 elif test -z "$ld_vers"; then
15969 # If there was no date string nor ld version number, something is wrong
15970 gcc_cv_ld_hidden
=no
15972 test -z "$ld_vers_patch" && ld_vers_patch
=0
15973 if test "$ld_vers_major" -lt 2; then
15974 gcc_cv_ld_hidden
=no
15975 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
15976 gcc_cv_ld_hidden
="no"
15977 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
15978 gcc_cv_ld_hidden
=no
15983 case "${target}" in
15984 hppa64
*-*-hpux* | ia64
*-*-hpux*)
15985 gcc_cv_ld_hidden
=yes
15988 gcc_cv_ld_hidden
=no
15994 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
15995 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
15996 libgcc_visibility
=no
15999 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
16000 libgcc_visibility
=yes
16002 cat >>confdefs.h
<<\_ACEOF
16003 #define HAVE_GAS_HIDDEN 1
16008 # Check if we have .[us]leb128, and support symbol arithmetic with it.
16009 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
16010 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
16011 if test "${gcc_cv_as_leb128+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 gcc_cv_as_leb128
=no
16015 if test $in_tree_gas = yes; then
16016 if test $in_tree_gas_is_elf = yes \
16017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16018 then gcc_cv_as_leb128
=yes
16020 elif test x
$gcc_cv_as != x
; then
16027 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }
16034 # GAS versions before 2.11 do not support uleb128,
16035 # despite appearing to.
16036 # ??? There exists an elf-specific test that will crash
16037 # the assembler. Perhaps it's better to figure out whether
16038 # arbitrary sections are supported and try the test.
16039 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
16040 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
16041 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
16042 as_major
=`echo $as_ver | sed 's/\..*//'`
16043 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
16044 if test $as_major -eq 2 && test $as_minor -lt 11
16046 else gcc_cv_as_leb128
=yes
16050 echo "configure: failed program was" >&5
16053 rm -f conftest.o conftest.s
16056 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
16057 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
16058 if test $gcc_cv_as_leb128 = yes; then
16060 cat >>confdefs.h
<<\_ACEOF
16061 #define HAVE_AS_LEB128 1
16066 # GAS versions up to and including 2.11.0 may mis-optimize
16068 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
16069 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
16070 if test "${gcc_cv_as_eh_frame+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 gcc_cv_as_eh_frame
=no
16074 if test $in_tree_gas = yes; then
16075 if test $in_tree_gas_is_elf = yes \
16076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16077 then gcc_cv_as_eh_frame
=yes
16079 elif test x
$gcc_cv_as != x
; then
16086 .section .eh_frame,"aw",@progbits
16088 .4byte .LECIE1-.LSCIE1
16102 .4byte .LEFDE1-.LASFDE1
16104 .4byte .LASFDE1-__FRAME_BEGIN__
16111 .LEFDE1:' > conftest.s
16112 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }
16119 cat > conftest.lit
<<EOF
16120 0000 10000000 00000000 017a0001 781a0004 .........z..x...
16121 0010 01000000 12000000 18000000 00000000 ................
16122 0020 08000000 04080000 0044 .........D
16124 cat > conftest.big
<<EOF
16125 0000 00000010 00000000 017a0001 781a0004 .........z..x...
16126 0010 00000001 00000012 00000018 00000000 ................
16127 0020 00000008 04000000 0844 .........D
16129 # If the assembler didn't choke, and we can objdump,
16130 # and we got the correct data, then succeed.
16131 # The text in the here-document typically retains its unix-style line
16132 # endings, while the output of objdump will use host line endings.
16133 # Therefore, use diff -b for the comparisons.
16134 if test x
$gcc_cv_objdump != x \
16135 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
16136 |
tail -3 > conftest.got \
16137 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
16138 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
16140 gcc_cv_as_eh_frame
=yes
16141 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
16147 gcc_cv_as_eh_frame
=buggy
16149 # Uh oh, what do we do now?
16150 gcc_cv_as_eh_frame
=no
16153 echo "configure: failed program was" >&5
16156 rm -f conftest.o conftest.s
16159 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
16160 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
16163 if test $gcc_cv_as_eh_frame = buggy
; then
16165 cat >>confdefs.h
<<\_ACEOF
16166 #define USE_AS_TRADITIONAL_FORMAT 1
16171 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
16172 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
16173 if test "${gcc_cv_as_shf_merge+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 gcc_cv_as_shf_merge
=no
16177 if test $in_tree_gas = yes; then
16178 if test $in_tree_gas_is_elf = yes \
16179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16180 then gcc_cv_as_shf_merge
=yes
16182 elif test x
$gcc_cv_as != x
; then
16183 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
16184 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }
16191 gcc_cv_as_shf_merge
=yes
16193 echo "configure: failed program was" >&5
16196 rm -f conftest.o conftest.s
16199 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
16200 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
16202 if test $gcc_cv_as_shf_merge = no
; then
16203 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
16204 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
16205 if test "${gcc_cv_as_shf_merge+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 gcc_cv_as_shf_merge
=no
16209 if test $in_tree_gas = yes; then
16210 if test $in_tree_gas_is_elf = yes \
16211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16212 then gcc_cv_as_shf_merge
=yes
16214 elif test x
$gcc_cv_as != x
; then
16215 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
16216 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }
16223 gcc_cv_as_shf_merge
=yes
16225 echo "configure: failed program was" >&5
16228 rm -f conftest.o conftest.s
16231 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
16232 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
16236 cat >>confdefs.h
<<_ACEOF
16237 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
16241 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
16242 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
16243 if test "${gcc_cv_as_comdat_group+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 gcc_cv_as_comdat_group
=no
16247 if test $in_tree_gas = yes; then
16248 if test $in_tree_gas_is_elf = yes \
16249 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16250 then gcc_cv_as_comdat_group
=yes
16252 elif test x
$gcc_cv_as != x
; then
16253 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
16254 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }
16261 gcc_cv_as_comdat_group
=yes
16263 echo "configure: failed program was" >&5
16266 rm -f conftest.o conftest.s
16269 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
16270 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
16272 if test $gcc_cv_as_comdat_group = yes; then
16273 gcc_cv_as_comdat_group_percent
=no
16275 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
16276 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
16277 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 gcc_cv_as_comdat_group_percent
=no
16281 if test $in_tree_gas = yes; then
16282 if test $in_tree_gas_is_elf = yes \
16283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16284 then gcc_cv_as_comdat_group_percent
=yes
16286 elif test x
$gcc_cv_as != x
; then
16287 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
16288 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }
16295 gcc_cv_as_comdat_group_percent
=yes
16297 echo "configure: failed program was" >&5
16300 rm -f conftest.o conftest.s
16303 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
16304 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
16307 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
16309 if test 0"$ld_date" -lt 20050308; then
16310 if test -n "$ld_date"; then
16311 # If there was date string, but was earlier than 2005-03-08, fail
16313 elif test "$ld_vers_major" -lt 2; then
16315 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
16320 # assume linkers other than GNU ld don't support COMDAT group
16323 if test $comdat_group = no
; then
16324 gcc_cv_as_comdat_group
=no
16325 gcc_cv_as_comdat_group_percent
=no
16328 cat >>confdefs.h
<<_ACEOF
16329 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
16333 # Thread-local storage - the check is heavily parametrized.
16341 .section ".tdata","awT",@progbits
16344 ldq $27,__tls_get_addr($29) !literal!1
16345 lda $16,foo($29) !tlsgd!1
16346 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
16347 ldq $27,__tls_get_addr($29) !literal!2
16348 lda $16,foo($29) !tlsldm!2
16349 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
16350 ldq $1,foo($29) !gotdtprel
16351 ldah $2,foo($29) !dtprelhi
16352 lda $3,foo($2) !dtprello
16353 lda $4,foo($29) !dtprel
16354 ldq $1,foo($29) !gottprel
16355 ldah $2,foo($29) !tprelhi
16356 lda $3,foo($2) !tprello
16357 lda $4,foo($29) !tprel'
16360 tls_as_opt
=--fatal-warnings
16364 .section ".tdata","awT",@progbits
16367 call #gettlsoff(x)'
16376 .section ".tdata","awT",@progbits
16380 addil LT%foo-$tls_gdidx$,gp
16381 ldo RT%foo-$tls_gdidx$(%r1),%arg0
16384 addil LT%foo-$tls_ldidx$,gp
16386 ldo RT%foo-$tls_ldidx$(%r1),%arg0
16387 addil LR%foo-$tls_dtpoff$,%ret0
16388 ldo RR%foo-$tls_dtpoff$(%r1),%t1
16390 addil LT%foo-$tls_ieoff$,gp
16391 ldw RT%foo-$tls_ieoff$(%r1),%t2
16394 addil LR%foo-$tls_leoff$,%t1
16395 ldo RR%foo-$tls_leoff$(%r1),%t2'
16398 tls_as_opt
=--fatal-warnings
16402 .section ".tdata","awT",%progbits
16405 .word foo(gottpoff)
16415 .section ".tdata","awT",@progbits
16419 leal foo@TLSGD(,%ebx,1), %eax
16420 leal foo@TLSLDM(%ebx), %eax
16421 leal foo@DTPOFF(%eax), %edx
16422 movl foo@GOTTPOFF(%ebx), %eax
16423 subl foo@GOTTPOFF(%ebx), %eax
16424 addl foo@GOTNTPOFF(%ebx), %eax
16425 movl foo@INDNTPOFF, %eax
16426 movl $foo@TPOFF, %eax
16427 subl $foo@TPOFF, %eax
16428 leal foo@NTPOFF(%ecx), %eax'
16431 tls_as_opt
=--fatal-warnings
16435 .section ".tdata","awT",@progbits
16439 leaq foo@TLSGD(%rip), %rdi
16440 leaq foo@TLSLD(%rip), %rdi
16441 leaq foo@DTPOFF(%rax), %rdx
16442 movq foo@GOTTPOFF(%rip), %rax
16443 movq $foo@TPOFF, %rax'
16446 tls_as_opt
=--fatal-warnings
16450 .section ".tdata","awT",@progbits
16453 addl r16 = @ltoff(@dtpmod(foo#)), gp
16454 addl r17 = @ltoff(@dtprel(foo#)), gp
16455 addl r18 = @ltoff(@tprel(foo#)), gp
16456 addl r19 = @dtprel(foo#), gp
16457 adds r21 = @dtprel(foo#), r13
16458 movl r23 = @dtprel(foo#)
16459 addl r20 = @tprel(foo#), gp
16460 adds r22 = @tprel(foo#), r13
16461 movl r24 = @tprel(foo#)'
16464 tls_as_opt
=--fatal-warnings
16468 .section .tdata,"awT",@progbits
16472 addiu $4, $28, %tlsgd(x)
16473 addiu $4, $28, %tlsldm(x)
16474 lui $4, %dtprel_hi(x)
16475 addiu $4, $4, %dtprel_lo(x)
16476 lw $4, %gottprel(x)($28)
16477 lui $4, %tprel_hi(x)
16478 addiu $4, $4, %tprel_lo(x)'
16481 tls_as_opt
='-32 --fatal-warnings'
16485 .section ".tdata","awT",@progbits
16493 addi 3,31,ld0@got@tlsgd
16495 addi 3,31,x1@got@tlsld
16498 addis 9,3,x2@dtprel@ha
16499 addi 9,9,x2@dtprel@l
16500 lwz 9,x3@got@tprel(31)
16503 addis 9,2,x2@tprel@ha
16504 addi 9,9,x2@tprel@l'
16507 tls_as_opt
="-a32 --fatal-warnings"
16511 .section ".tdata","awT",@progbits
16519 addi 3,2,ld0@got@tlsgd
16525 addi 3,2,x1@got@tlsld
16531 addis 9,3,x2@dtprel@ha
16532 addi 9,9,x2@dtprel@l
16535 ld 9,x3@got@dtprel(2)
16541 tls_as_opt
="-a64 --fatal-warnings"
16545 .section ".tdata","awT",@progbits
16552 .long foo@GOTNTPOFF
16553 .long foo@INDNTPOFF
16554 l %r1,foo@GOTNTPOFF(%r12)
16555 l %r1,0(%r1):tls_load:foo
16556 bas %r14,0(%r1,%r13):tls_gdcall:foo
16557 bas %r14,0(%r1,%r13):tls_ldcall:foo'
16560 tls_as_opt
="-m31 --fatal-warnings"
16564 .section ".tdata","awT",@progbits
16571 .quad foo@GOTNTPOFF
16572 lg %r1,foo@GOTNTPOFF(%r12)
16573 larl %r1,foo@INDNTPOFF
16574 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
16575 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
16578 tls_as_opt
="-m64 -Aesame --fatal-warnings"
16580 sh-
*-* | sh
[34]-*-*)
16582 .section ".tdata","awT",@progbits
16592 tls_as_opt
=--fatal-warnings
16596 sparc
*-sun-solaris2.
[56789]*)
16597 # TLS was introduced in the Solaris 9 4/04 release but
16598 # we do not enable it by default on Solaris 9 either.
16599 if test "x$enable_tls" = xyes
; then
16605 sparc
*-sun-solaris2.
*)
16612 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
16614 .section ".tdata",#alloc,#write,#tls
16617 sethi %tgd_hi22(foo), %o0
16618 add %o0, %tgd_lo10(foo), %o1
16619 add %l7, %o1, %o0, %tgd_add(foo)
16620 call __tls_get_addr, %tgd_call(foo)
16621 sethi %tldm_hi22(foo), %l1
16622 add %l1, %tldm_lo10(foo), %l2
16623 add %l7, %l2, %o0, %tldm_add(foo)
16624 call __tls_get_addr, %tldm_call(foo)
16625 sethi %tldo_hix22(foo), %l3
16626 xor %l3, %tldo_lox10(foo), %l4
16627 add %o0, %l4, %l5, %tldo_add(foo)
16628 sethi %tie_hi22(foo), %o3
16629 add %o3, %tie_lo10(foo), %o3
16630 ld [%l7 + %o3], %o2, %tie_ld(foo)
16631 add %g7, %o2, %o4, %tie_add(foo)
16632 sethi %tle_hix22(foo), %l1
16633 xor %l1, %tle_lox10(foo), %o5
16634 ld [%g7 + %o5], %o1'
16639 .section ".tdata","awT",@progbits
16642 sethi %tgd_hi22(foo), %o0
16643 add %o0, %tgd_lo10(foo), %o1
16644 add %l7, %o1, %o0, %tgd_add(foo)
16645 call __tls_get_addr, %tgd_call(foo)
16646 sethi %tldm_hi22(foo), %l1
16647 add %l1, %tldm_lo10(foo), %l2
16648 add %l7, %l2, %o0, %tldm_add(foo)
16649 call __tls_get_addr, %tldm_call(foo)
16650 sethi %tldo_hix22(foo), %l3
16651 xor %l3, %tldo_lox10(foo), %l4
16652 add %o0, %l4, %l5, %tldo_add(foo)
16653 sethi %tie_hi22(foo), %o3
16654 add %o3, %tie_lo10(foo), %o3
16655 ld [%l7 + %o3], %o2, %tie_ld(foo)
16656 add %g7, %o2, %o4, %tie_add(foo)
16657 sethi %tle_hix22(foo), %l1
16658 xor %l1, %tle_lox10(foo), %o5
16659 ld [%g7 + %o5], %o1'
16662 tls_as_opt
="-32 --fatal-warnings"
16667 if test "x$enable_tls" = xno
; then
16668 : # TLS explicitly disabled.
16669 elif test "x$enable_tls" = xyes
; then
16670 set_have_as_tls
=yes # TLS explicitly enabled.
16671 elif test -z "$tls_first_major"; then
16672 : # If we don't have a check, assume no support.
16674 { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
16675 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
16676 if test "${gcc_cv_as_tls+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 if test $in_tree_gas = yes; then
16681 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
16682 then gcc_cv_as_tls
=yes
16684 elif test x
$gcc_cv_as != x
; then
16685 echo "$conftest_s" > conftest.s
16686 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }
16695 echo "configure: failed program was" >&5
16698 rm -f conftest.o conftest.s
16701 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
16702 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
16703 if test $gcc_cv_as_tls = yes; then
16704 set_have_as_tls
=yes
16707 if test $set_have_as_tls = yes ; then
16709 cat >>confdefs.h
<<\_ACEOF
16710 #define HAVE_AS_TLS 1
16715 # Target-specific assembler checks.
16717 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
16718 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
16719 gcc_cv_ld_static_dynamic
=no
16720 if test $in_tree_ld = yes ; then
16721 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
16722 gcc_cv_ld_static_dynamic
=yes
16724 elif test x
$gcc_cv_ld != x
; then
16725 # Check if linker supports -Bstatic/-Bdynamic option
16726 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
16727 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
16728 gcc_cv_ld_static_dynamic
=yes
16731 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
16733 cat >>confdefs.h
<<\_ACEOF
16734 #define HAVE_LD_STATIC_DYNAMIC 1
16738 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
16739 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
16741 if test x
"$demangler_in_ld" = xyes
; then
16742 { echo "$as_me:$LINENO: checking linker --demangle support" >&5
16743 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
16744 gcc_cv_ld_demangle
=no
16745 if test $in_tree_ld = yes; then
16746 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 \
16747 gcc_cv_ld_demangle
=yes
16749 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
16750 # Check if the GNU linker supports --demangle option
16751 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
16752 gcc_cv_ld_demangle
=yes
16755 if test x
"$gcc_cv_ld_demangle" = xyes
; then
16757 cat >>confdefs.h
<<\_ACEOF
16758 #define HAVE_LD_DEMANGLE 1
16762 { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
16763 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
16767 # All TARGET_ABI_OSF targets.
16768 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
16769 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16770 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16771 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 gcc_cv_as_alpha_explicit_relocs
=no
16775 if test $in_tree_gas = yes; then
16776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16777 then gcc_cv_as_alpha_explicit_relocs
=yes
16779 elif test x
$gcc_cv_as != x
; then
16780 echo ' .set nomacro
16782 extbl $3, $2, $3 !lituse_bytoff!1
16783 ldq $2, a($29) !literal!1
16784 ldq $4, b($29) !literal!2
16785 ldq_u $3, 0($2) !lituse_base!1
16786 ldq $27, f($29) !literal!5
16787 jsr $26, ($27), f !lituse_jsr!5
16788 ldah $29, 0($26) !gpdisp!3
16789 lda $0, c($29) !gprel
16790 ldah $1, d($29) !gprelhigh
16791 lda $1, d($1) !gprellow
16792 lda $29, 0($29) !gpdisp!3' > conftest.s
16793 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }
16800 gcc_cv_as_alpha_explicit_relocs
=yes
16802 echo "configure: failed program was" >&5
16805 rm -f conftest.o conftest.s
16808 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
16809 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
16810 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
16812 cat >>confdefs.h
<<\_ACEOF
16813 #define HAVE_AS_EXPLICIT_RELOCS 1
16817 { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
16818 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
16819 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 gcc_cv_as_alpha_jsrdirect_relocs
=no
16823 if test $in_tree_gas = yes; then
16824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
16825 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
16827 elif test x
$gcc_cv_as != x
; then
16828 echo ' .set nomacro
16830 ldq $27, a($29) !literal!1
16831 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
16832 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }
16839 gcc_cv_as_alpha_jsrdirect_relocs
=yes
16841 echo "configure: failed program was" >&5
16844 rm -f conftest.o conftest.s
16847 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
16848 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
16849 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
16851 cat >>confdefs.h
<<\_ACEOF
16852 #define HAVE_AS_JSRDIRECT_RELOCS 1
16859 { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
16860 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
16861 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 gcc_cv_as_cris_no_mul_bug
=no
16865 if test $in_tree_gas = yes; then
16866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
16867 then gcc_cv_as_cris_no_mul_bug
=yes
16869 elif test x
$gcc_cv_as != x
; then
16870 echo '.text' > conftest.s
16871 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }
16878 gcc_cv_as_cris_no_mul_bug
=yes
16880 echo "configure: failed program was" >&5
16883 rm -f conftest.o conftest.s
16886 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
16887 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
16888 if test $gcc_cv_as_cris_no_mul_bug = yes; then
16890 cat >>confdefs.h
<<\_ACEOF
16891 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
16898 { echo "$as_me:$LINENO: checking assembler for .register" >&5
16899 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
16900 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 gcc_cv_as_sparc_register_op
=no
16904 if test x
$gcc_cv_as != x
; then
16905 echo '.register %g2, #scratch' > conftest.s
16906 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }
16913 gcc_cv_as_sparc_register_op
=yes
16915 echo "configure: failed program was" >&5
16918 rm -f conftest.o conftest.s
16921 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
16922 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
16923 if test $gcc_cv_as_sparc_register_op = yes; then
16925 cat >>confdefs.h
<<\_ACEOF
16926 #define HAVE_AS_REGISTER_PSEUDO_OP 1
16931 { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
16932 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
16933 if test "${gcc_cv_as_sparc_relax+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 gcc_cv_as_sparc_relax
=no
16937 if test x
$gcc_cv_as != x
; then
16938 echo '.text' > conftest.s
16939 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }
16946 gcc_cv_as_sparc_relax
=yes
16948 echo "configure: failed program was" >&5
16951 rm -f conftest.o conftest.s
16954 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
16955 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
16956 if test $gcc_cv_as_sparc_relax = yes; then
16958 cat >>confdefs.h
<<\_ACEOF
16959 #define HAVE_AS_RELAX_OPTION 1
16964 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
16965 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
16966 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16969 gcc_cv_as_sparc_ua_pcrel
=no
16970 if test x
$gcc_cv_as != x
; then
16977 .uaword %r_disp32(foo)' > conftest.s
16978 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }
16985 if test x
$gcc_cv_ld != x \
16986 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
16987 gcc_cv_as_sparc_ua_pcrel
=yes
16991 echo "configure: failed program was" >&5
16994 rm -f conftest.o conftest.s
16997 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
16998 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
16999 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
17001 cat >>confdefs.h
<<\_ACEOF
17002 #define HAVE_AS_SPARC_UA_PCREL 1
17006 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
17007 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
17008 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 gcc_cv_as_sparc_ua_pcrel_hidden
=no
17012 if test x
$gcc_cv_as != x
; then
17016 .uaword %r_disp32(foo)
17017 .byte 0x32, 0x33, 0x34
17021 .skip 4' > conftest.s
17022 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }
17029 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
17030 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
17031 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
17032 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
17033 if $gcc_cv_objdump -R conftest
2> /dev
/null \
17034 |
grep 'DISP32' > /dev
/null
2>&1; then
17037 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
17042 echo "configure: failed program was" >&5
17045 rm -f conftest.o conftest.s
17048 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
17049 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
17050 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
17052 cat >>confdefs.h
<<\_ACEOF
17053 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
17058 fi # unaligned pcrel relocs
17060 { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
17061 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
17062 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 gcc_cv_as_sparc_offsetable_lo10
=no
17066 if test x
$gcc_cv_as != x
; then
17068 or %g1, %lo(ab) + 12, %g1
17069 or %g1, %lo(ab + 12), %g1' > conftest.s
17070 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }
17077 if test x
$gcc_cv_objdump != x \
17078 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
17079 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
17080 gcc_cv_as_sparc_offsetable_lo10
=yes
17083 echo "configure: failed program was" >&5
17086 rm -f conftest.o conftest.s
17089 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
17090 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
17091 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
17093 cat >>confdefs.h
<<\_ACEOF
17094 #define HAVE_AS_OFFSETABLE_LO10 1
17100 i
[34567]86-*-* | x86_64-
*-*)
17102 cygwin
* | pe | mingw32
*)
17103 # Used for DWARF 2 in PE
17104 { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
17105 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
17106 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 gcc_cv_as_ix86_pe_secrel32
=no
17110 if test $in_tree_gas = yes; then
17111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
17112 then gcc_cv_as_ix86_pe_secrel32
=yes
17114 elif test x
$gcc_cv_as != x
; then
17118 .secrel32 foo' > conftest.s
17119 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }
17126 if test x
$gcc_cv_ld != x \
17127 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
17128 gcc_cv_as_ix86_pe_secrel32
=yes
17132 echo "configure: failed program was" >&5
17135 rm -f conftest.o conftest.s
17138 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
17139 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
17140 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
17142 cat >>confdefs.h
<<\_ACEOF
17143 #define HAVE_GAS_PE_SECREL32_RELOC 1
17150 { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
17151 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
17152 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 gcc_cv_as_ix86_filds_fists
=no
17156 if test $in_tree_gas = yes; then
17157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
17158 then gcc_cv_as_ix86_filds_fists
=yes
17160 elif test x
$gcc_cv_as != x
; then
17161 echo 'filds mem; fists mem' > conftest.s
17162 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }
17169 gcc_cv_as_ix86_filds_fists
=yes
17171 echo "configure: failed program was" >&5
17174 rm -f conftest.o conftest.s
17177 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
17178 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
17179 if test $gcc_cv_as_ix86_filds_fists = yes; then
17181 cat >>confdefs.h
<<\_ACEOF
17182 #define HAVE_GAS_FILDS_FISTS 1
17187 { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
17188 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
17189 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17192 gcc_cv_as_ix86_cmov_sun_syntax
=no
17193 if test x
$gcc_cv_as != x
; then
17194 echo 'cmovl.l %edx, %eax' > conftest.s
17195 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }
17202 gcc_cv_as_ix86_cmov_sun_syntax
=yes
17204 echo "configure: failed program was" >&5
17207 rm -f conftest.o conftest.s
17210 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
17211 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
17212 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
17214 cat >>confdefs.h
<<\_ACEOF
17215 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
17220 { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
17221 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
17222 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 gcc_cv_as_ix86_ffreep
=no
17226 if test x
$gcc_cv_as != x
; then
17227 echo 'ffreep %st(1)' > conftest.s
17228 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }
17235 gcc_cv_as_ix86_ffreep
=yes
17237 echo "configure: failed program was" >&5
17240 rm -f conftest.o conftest.s
17243 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
17244 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
17245 if test $gcc_cv_as_ix86_ffreep = yes; then
17247 cat >>confdefs.h
<<\_ACEOF
17248 #define HAVE_AS_IX86_FFREEP 1
17253 { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
17254 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
17255 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 gcc_cv_as_ix86_diff_sect_delta
=no
17259 if test x
$gcc_cv_as != x
; then
17260 echo '.section .rodata
17266 .L2: nop' > conftest.s
17267 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }
17274 gcc_cv_as_ix86_diff_sect_delta
=yes
17276 echo "configure: failed program was" >&5
17279 rm -f conftest.o conftest.s
17282 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
17283 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
17284 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
17286 cat >>confdefs.h
<<\_ACEOF
17287 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
17292 # This one is used unconditionally by i386.[ch]; it is to be defined
17293 # to 1 if the feature is present, 0 otherwise.
17294 { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
17295 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
17296 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 gcc_cv_as_ix86_gotoff_in_data
=no
17300 if test $in_tree_gas = yes; then
17301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17302 then gcc_cv_as_ix86_gotoff_in_data
=yes
17304 elif test x
$gcc_cv_as != x
; then
17309 .long .L0@GOTOFF' > conftest.s
17310 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }
17317 gcc_cv_as_ix86_gotoff_in_data
=yes
17319 echo "configure: failed program was" >&5
17322 rm -f conftest.o conftest.s
17325 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
17326 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
17329 cat >>confdefs.h
<<_ACEOF
17330 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
17336 { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
17337 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
17338 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
17342 if test $in_tree_gas = yes; then
17343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17344 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
17346 elif test x
$gcc_cv_as != x
; then
17348 addl r15 = @ltoffx(x#), gp
17350 ld8.mov r16 = [r15], x#' > conftest.s
17351 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }
17358 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
17360 echo "configure: failed program was" >&5
17363 rm -f conftest.o conftest.s
17366 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
17367 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
17368 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
17370 cat >>confdefs.h
<<\_ACEOF
17371 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
17380 *-*-aix*) conftest_s
=' .machine "pwr5"
17384 { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
17385 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
17386 if test "${gcc_cv_as_machine_directive+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 gcc_cv_as_machine_directive
=no
17390 if test x
$gcc_cv_as != x
; then
17391 echo ' .machine ppc7400' > conftest.s
17392 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }
17399 gcc_cv_as_machine_directive
=yes
17401 echo "configure: failed program was" >&5
17404 rm -f conftest.o conftest.s
17407 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
17408 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
17410 if test x
$gcc_cv_as_machine_directive != xyes
; then
17411 echo "*** This target requires an assembler supporting \".machine\"" >&2
17412 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
17413 test x
$build = x
$target && exit 1
17417 *) conftest_s
=' .machine power4
17422 { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
17423 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
17424 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 gcc_cv_as_powerpc_mfcrf
=no
17428 if test $in_tree_gas = yes; then
17429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17430 then gcc_cv_as_powerpc_mfcrf
=yes
17432 elif test x
$gcc_cv_as != x
; then
17433 echo "$conftest_s" > conftest.s
17434 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }
17441 gcc_cv_as_powerpc_mfcrf
=yes
17443 echo "configure: failed program was" >&5
17446 rm -f conftest.o conftest.s
17449 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
17450 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
17451 if test $gcc_cv_as_powerpc_mfcrf = yes; then
17453 cat >>confdefs.h
<<\_ACEOF
17454 #define HAVE_AS_MFCRF 1
17460 *-*-aix*) conftest_s
=' .machine "pwr5"
17463 *) conftest_s
=' .machine power5
17468 { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
17469 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
17470 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 gcc_cv_as_powerpc_popcntb
=no
17474 if test $in_tree_gas = yes; then
17475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17476 then gcc_cv_as_powerpc_popcntb
=yes
17478 elif test x
$gcc_cv_as != x
; then
17479 echo "$conftest_s" > conftest.s
17480 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }
17487 gcc_cv_as_powerpc_popcntb
=yes
17489 echo "configure: failed program was" >&5
17492 rm -f conftest.o conftest.s
17495 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
17496 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
17497 if test $gcc_cv_as_powerpc_popcntb = yes; then
17499 cat >>confdefs.h
<<\_ACEOF
17500 #define HAVE_AS_POPCNTB 1
17506 *-*-aix*) conftest_s
=' .machine "pwr5x"
17509 *) conftest_s
=' .machine power5
17514 { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
17515 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
17516 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 gcc_cv_as_powerpc_fprnd
=no
17520 if test $in_tree_gas = yes; then
17521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17522 then gcc_cv_as_powerpc_fprnd
=yes
17524 elif test x
$gcc_cv_as != x
; then
17525 echo "$conftest_s" > conftest.s
17526 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }
17533 gcc_cv_as_powerpc_fprnd
=yes
17535 echo "configure: failed program was" >&5
17538 rm -f conftest.o conftest.s
17541 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
17542 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
17543 if test $gcc_cv_as_powerpc_fprnd = yes; then
17545 cat >>confdefs.h
<<\_ACEOF
17546 #define HAVE_AS_FPRND 1
17552 *-*-aix*) conftest_s
=' .machine "pwr6"
17555 *) conftest_s
=' .machine power6
17560 { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
17561 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
17562 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 gcc_cv_as_powerpc_mfpgpr
=no
17566 if test $in_tree_gas = yes; then
17567 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
17568 then gcc_cv_as_powerpc_mfpgpr
=yes
17570 elif test x
$gcc_cv_as != x
; then
17571 echo "$conftest_s" > conftest.s
17572 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }
17579 gcc_cv_as_powerpc_mfpgpr
=yes
17581 echo "configure: failed program was" >&5
17584 rm -f conftest.o conftest.s
17587 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
17588 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
17589 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
17591 cat >>confdefs.h
<<\_ACEOF
17592 #define HAVE_AS_MFPGPR 1
17598 *-*-aix*) conftest_s
=' .csect .text[PR]
17600 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
17604 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
17605 *) conftest_s
=' .text
17607 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
17610 { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
17611 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
17612 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 gcc_cv_as_powerpc_rel16
=no
17616 if test $in_tree_gas = yes; then
17617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17618 then gcc_cv_as_powerpc_rel16
=yes
17620 elif test x
$gcc_cv_as != x
; then
17621 echo "$conftest_s" > conftest.s
17622 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }
17629 gcc_cv_as_powerpc_rel16
=yes
17631 echo "configure: failed program was" >&5
17634 rm -f conftest.o conftest.s
17637 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
17638 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
17639 if test $gcc_cv_as_powerpc_rel16 = yes; then
17641 cat >>confdefs.h
<<\_ACEOF
17642 #define HAVE_AS_REL16 1
17649 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
17650 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
17651 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 gcc_cv_as_mips_explicit_relocs
=no
17655 if test $in_tree_gas = yes; then
17656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17657 then gcc_cv_as_mips_explicit_relocs
=yes
17659 elif test x
$gcc_cv_as != x
; then
17660 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
17661 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }
17668 gcc_cv_as_mips_explicit_relocs
=yes
17670 echo "configure: failed program was" >&5
17673 rm -f conftest.o conftest.s
17676 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
17677 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
17678 if test $gcc_cv_as_mips_explicit_relocs = yes; then
17679 if test x
$target_cpu_default = x
17680 then target_cpu_default
=MASK_EXPLICIT_RELOCS
17681 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
17684 { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
17685 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
17686 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 gcc_cv_as_mips_no_shared
=no
17690 if test $in_tree_gas = yes; then
17691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
17692 then gcc_cv_as_mips_no_shared
=yes
17694 elif test x
$gcc_cv_as != x
; then
17695 echo 'nop' > conftest.s
17696 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }
17703 gcc_cv_as_mips_no_shared
=yes
17705 echo "configure: failed program was" >&5
17708 rm -f conftest.o conftest.s
17711 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
17712 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
17713 if test $gcc_cv_as_mips_no_shared = yes; then
17715 cat >>confdefs.h
<<\_ACEOF
17716 #define HAVE_AS_NO_SHARED 1
17723 # Mips and HP-UX need the GNU assembler.
17724 # Linux on IA64 might be able to use the Intel assembler.
17727 mips
*-*-* |
*-*-hpux* )
17728 if test x
$gas_flag = xyes \
17729 ||
test x
"$host" != x
"$build" \
17730 ||
test ! -x "$gcc_cv_as" \
17731 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
17734 echo "*** This configuration requires the GNU assembler" >&2
17740 # ??? Not all targets support dwarf2 debug_line, even within a version
17741 # of gas. Moreover, we need to emit a valid instruction to trigger any
17742 # info to the output file. So, as supported targets are added to gas 2.11,
17743 # add some instruction here to (also) show we expect this might work.
17744 # ??? Once 2.11 is released, probably need to add first known working
17745 # version to the per-target configury.
17747 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
17748 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
17749 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-*)
17752 ia64
*-*-* | s390
*-*-*)
17759 if test x
"$insn" != x
; then
17761 .file 1 \"conftest.s\"
17764 { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
17765 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
17766 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 gcc_cv_as_dwarf2_debug_line
=no
17770 if test $in_tree_gas = yes; then
17771 if test $in_tree_gas_is_elf = yes \
17772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17773 then gcc_cv_as_dwarf2_debug_line
=yes
17775 elif test x
$gcc_cv_as != x
; then
17776 echo "$conftest_s" > conftest.s
17777 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }
17784 if test x
$gcc_cv_objdump != x \
17785 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
17786 |
grep debug_line
> /dev
/null
2>&1; then
17787 gcc_cv_as_dwarf2_debug_line
=yes
17790 echo "configure: failed program was" >&5
17793 rm -f conftest.o conftest.s
17796 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
17797 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
17800 # The .debug_line file table must be in the exact order that
17801 # we specified the files, since these indices are also used
17802 # by DW_AT_decl_file. Approximate this test by testing if
17803 # the assembler bitches if the same index is assigned twice.
17804 { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
17805 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
17806 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 gcc_cv_as_dwarf2_file_buggy
=no
17810 if test x
$gcc_cv_as != x
; then
17811 echo ' .file 1 "foo.s"
17812 .file 1 "bar.s"' > conftest.s
17813 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }
17820 gcc_cv_as_dwarf2_file_buggy
=yes
17822 echo "configure: failed program was" >&5
17825 rm -f conftest.o conftest.s
17828 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
17829 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
17832 if test $gcc_cv_as_dwarf2_debug_line = yes \
17833 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
17835 cat >>confdefs.h
<<\_ACEOF
17836 #define HAVE_AS_DWARF2_DEBUG_LINE 1
17841 { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
17842 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
17843 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 gcc_cv_as_gdwarf2_flag
=no
17847 if test $in_tree_gas = yes; then
17848 if test $in_tree_gas_is_elf = yes \
17849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17850 then gcc_cv_as_gdwarf2_flag
=yes
17852 elif test x
$gcc_cv_as != x
; then
17853 echo "$insn" > conftest.s
17854 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }
17861 gcc_cv_as_gdwarf2_flag
=yes
17863 echo "configure: failed program was" >&5
17866 rm -f conftest.o conftest.s
17869 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
17870 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
17871 if test $gcc_cv_as_gdwarf2_flag = yes; then
17873 cat >>confdefs.h
<<\_ACEOF
17874 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
17879 { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
17880 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
17881 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 gcc_cv_as_gstabs_flag
=no
17885 if test $in_tree_gas = yes; then
17886 if test $in_tree_gas_is_elf = yes \
17887 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17888 then gcc_cv_as_gstabs_flag
=yes
17890 elif test x
$gcc_cv_as != x
; then
17891 echo "$insn" > conftest.s
17892 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }
17899 # The native Solaris 9/Intel assembler doesn't understand --gstabs
17900 # and warns about it, but still exits successfully. So check for
17902 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }
17909 else gcc_cv_as_gstabs_flag
=yes
17912 echo "configure: failed program was" >&5
17915 rm -f conftest.o conftest.s
17918 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
17919 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
17920 if test $gcc_cv_as_gstabs_flag = yes; then
17922 cat >>confdefs.h
<<\_ACEOF
17923 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
17929 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
17930 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
17931 gcc_cv_ld_ro_rw_mix
=unknown
17932 if test $in_tree_ld = yes ; then
17933 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 \
17934 && test $in_tree_ld_is_elf = yes; then
17935 gcc_cv_ld_ro_rw_mix
=read-write
17937 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
17938 echo '.section myfoosect, "a"' > conftest1.s
17939 echo '.section myfoosect, "aw"' > conftest2.s
17940 echo '.byte 1' >> conftest2.s
17941 echo '.section myfoosect, "a"' > conftest3.s
17942 echo '.byte 0' >> conftest3.s
17943 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
17944 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
17945 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
17946 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
17947 conftest2.o conftest3.o
> /dev
/null
2>&1; then
17948 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
17949 | sed -e '/myfoosect/!d' -e N`
17950 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
17951 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
17952 gcc_cv_ld_ro_rw_mix
=read-only
17954 gcc_cv_ld_ro_rw_mix
=read-write
17958 rm -f conftest.
* conftest
[123].
*
17960 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
17962 cat >>confdefs.h
<<\_ACEOF
17963 #define HAVE_LD_RO_RW_SECTION_MIXING 1
17967 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
17968 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
17970 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
17971 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
17972 gcc_cv_ld_eh_frame_hdr
=no
17973 if test $in_tree_ld = yes ; then
17974 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 \
17975 && test $in_tree_ld_is_elf = yes; then
17976 gcc_cv_ld_eh_frame_hdr
=yes
17978 elif test x
$gcc_cv_ld != x
; then
17979 # Check if linker supports --eh-frame-hdr option
17980 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
17981 gcc_cv_ld_eh_frame_hdr
=yes
17985 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
17987 cat >>confdefs.h
<<\_ACEOF
17988 #define HAVE_LD_EH_FRAME_HDR 1
17992 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
17993 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
17995 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
17996 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
17998 if test $in_tree_ld = yes ; then
17999 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
18000 && test $in_tree_ld_is_elf = yes; then
18003 elif test x
$gcc_cv_ld != x
; then
18004 # Check if linker supports -pie option
18005 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
18009 if test x
"$gcc_cv_ld_pie" = xyes
; then
18011 cat >>confdefs.h
<<\_ACEOF
18012 #define HAVE_LD_PIE 1
18016 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
18017 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
18019 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
18020 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
18021 gcc_cv_ld_eh_gc_sections
=no
18022 if test $in_tree_ld = yes ; then
18023 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 \
18024 && test $in_tree_ld_is_elf = yes; then
18025 gcc_cv_ld_eh_gc_sections
=yes
18027 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
18028 cat > conftest.s
<<EOF
18031 .type _start, @function
18034 .size _start, .-_start
18035 .section .text.foo,"ax",@progbits
18036 .type foo, @function
18040 .section .gcc_except_table.foo,"a",@progbits
18043 .section .eh_frame,"a",@progbits
18046 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
18047 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
18048 |
grep "gc-sections option ignored" > /dev
/null
; then
18049 gcc_cv_ld_eh_gc_sections
=no
18050 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
18051 gcc_cv_ld_eh_gc_sections
=yes
18054 rm -f conftest.s conftest.o conftest
18056 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
18058 cat >>confdefs.h
<<\_ACEOF
18059 #define HAVE_LD_EH_GC_SECTIONS 1
18063 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
18064 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
18070 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
18071 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
18072 if test "${gcc_cv_ld_as_needed+set}" = set; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 gcc_cv_ld_as_needed
=no
18076 if test $in_tree_ld = yes ; then
18077 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 \
18078 && test $in_tree_ld_is_elf = yes; then
18079 gcc_cv_ld_as_needed
=yes
18081 elif test x
$gcc_cv_ld != x
; then
18082 # Check if linker supports --as-needed and --no-as-needed options
18083 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
18084 gcc_cv_ld_as_needed
=yes
18089 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
18090 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
18091 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
18093 cat >>confdefs.h
<<\_ACEOF
18094 #define HAVE_LD_AS_NEEDED 1
18099 case "$target:$tm_file" in
18100 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
18101 { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
18102 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
18103 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 gcc_cv_ld_no_dot_syms
=no
18107 if test $in_tree_ld = yes ; then
18108 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
18109 gcc_cv_ld_no_dot_syms
=yes
18111 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
18112 cat > conftest1.s
<<EOF
18116 cat > conftest2.s
<<EOF
18117 .section ".opd","aw"
18120 .type foo,@function
18122 .quad .LEfoo,.TOC.@tocbase,0
18128 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
18129 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
18130 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
18131 gcc_cv_ld_no_dot_syms
=yes
18133 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
18137 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
18138 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
18139 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
18141 cat >>confdefs.h
<<\_ACEOF
18142 #define HAVE_LD_NO_DOT_SYMS 1
18149 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
18150 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
18151 if test "${gcc_cv_ld_sysroot+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 gcc_cv_ld_sysroot
=no
18155 if test $in_tree_ld = yes ; then
18156 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
18157 gcc_cv_ld_sysroot
=yes
18159 elif test x
$gcc_cv_ld != x
; then
18160 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
18161 gcc_cv_ld_sysroot
=yes
18165 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
18166 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
18167 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
18169 cat >>confdefs.h
<<\_ACEOF
18170 #define HAVE_LD_SYSROOT 1
18175 if test x
$with_sysroot = x
&& test x
$host = x
$target \
18176 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
18177 && test "$prefix" != "NONE"; then
18179 cat >>confdefs.h
<<_ACEOF
18180 #define PREFIX_INCLUDE_DIR "$prefix/include"
18185 # Test for stack protector support in target C library.
18188 { echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
18189 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6; }
18190 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 gcc_cv_libc_provides_ssp
=no
18194 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
18195 if test "x$with_sysroot" = x
; then
18196 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
18197 elif test "x$with_sysroot" = xyes
; then
18198 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
18200 glibc_header_dir
="${with_sysroot}/usr/include"
18203 glibc_header_dir
=/usr
/include
18205 # glibc 2.4 and later provides __stack_chk_fail and
18206 # either __stack_chk_guard, or TLS access to stack guard canary.
18207 if test -f $glibc_header_dir/features.h \
18208 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
18209 $glibc_header_dir/features.h
> /dev
/null
; then
18210 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
18211 $glibc_header_dir/features.h
> /dev
/null
; then
18212 gcc_cv_libc_provides_ssp
=yes
18213 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
18214 $glibc_header_dir/features.h
> /dev
/null \
18215 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
18216 $glibc_header_dir/features.h
> /dev
/null
; then
18217 gcc_cv_libc_provides_ssp
=yes
18221 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
18222 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; } ;;
18223 *) gcc_cv_libc_provides_ssp
=no
;;
18225 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
18227 cat >>confdefs.h
<<\_ACEOF
18228 #define TARGET_LIBC_PROVIDES_SSP 1
18233 # Check if TFmode long double should be used by default or not.
18234 # Some glibc targets used DFmode long double, but with glibc 2.4
18235 # and later they can use TFmode.
18237 powerpc
*-*-*gnu
* | \
18238 sparc
*-*-linux* | \
18242 # Check whether --with-long-double-128 was given.
18243 if test "${with_long_double_128+set}" = set; then
18244 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
18246 gcc_cv_target_ldbl128
=no
18247 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
18248 if test "x$with_sysroot" = x
; then
18249 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
18250 elif test "x$with_sysroot" = xyes
; then
18251 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
18253 glibc_header_dir
="${with_sysroot}/usr/include"
18256 glibc_header_dir
=/usr
/include
18258 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
18259 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
18260 && gcc_cv_target_ldbl128
=yes
18265 if test x
$gcc_cv_target_ldbl128 = xyes
; then
18267 cat >>confdefs.h
<<\_ACEOF
18268 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
18273 # Find out what GC implementation we want, or may, use.
18275 # Check whether --with-gc was given.
18276 if test "${with_gc+set}" = set; then
18277 withval
=$with_gc; case "$withval" in
18284 cat >>confdefs.h
<<\_ACEOF
18290 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
18291 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
18292 { (exit 1); exit 1; }; }
18300 echo "Using $GGC for garbage collection."
18302 # Use the system's zlib library.
18304 zlibinc
="-I\$(srcdir)/../zlib"
18306 # Check whether --with-system-zlib was given.
18307 if test "${with_system_zlib+set}" = set; then
18308 withval
=$with_system_zlib; zlibdir
=
18317 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
18318 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
18319 # Check whether --enable-maintainer-mode was given.
18320 if test "${enable_maintainer_mode+set}" = set; then
18321 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
18327 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
18328 echo "${ECHO_T}$maintainer_mode" >&6; }
18330 if test "$maintainer_mode" = "yes"; then
18340 # Make empty files to contain the specs and options for each language.
18341 # Then add #include lines to for a compiler that has specs and/or options.
18347 # These (without "all_") are set in each config-lang.in.
18348 # `language' must be a single word so is spelled singularly.
18350 all_boot_languages
=
18353 all_outputs
='Makefile gccbug mklibgcc libada-mk'
18354 # List of language makefile fragments.
18355 all_lang_makefrags
=
18356 # List of language subdirectory makefiles. Deprecated.
18357 all_lang_makefiles
=
18358 # Files for gengtype
18359 all_gtfiles
="$target_gtfiles"
18360 # Files for gengtype with language
18361 all_gtfiles_files_langs
=
18362 all_gtfiles_files_files
=
18364 # These are the languages that are set in --enable-languages,
18365 # and are available in the GCC tree.
18366 all_selected_languages
=
18368 # Add the language fragments.
18369 # Languages are added via two mechanisms. Some information must be
18370 # recorded in makefile variables, these are defined in config-lang.in.
18371 # We accumulate them and plug them into the main Makefile.
18372 # The other mechanism is a set of hooks for each of the main targets
18373 # like `clean', `install', etc.
18375 language_hooks
="Make-hooks"
18377 for lang
in ${srcdir}/*/config-lang.
in
18379 test "$lang" = "${srcdir}/*/config-lang.in" && continue
18381 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
18382 if test "x$lang_alias" = x
18384 echo "$lang doesn't set \$language." 1>&2
18387 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
18388 subdirs
="$subdirs $subdir"
18389 case ",$enable_languages," in
18391 all_selected_languages
="$all_selected_languages $lang_alias"
18392 if test -f $srcdir/$subdir/lang-specs.h
; then
18393 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
18405 .
${srcdir}/$subdir/config-lang.
in
18406 if test "x$language" = x
18408 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
18413 case ",$enable_languages," in
18414 *,$lang_alias,*) ;;
18416 for i
in $subdir_requires; do
18417 test -f "${srcdir}/$i/config-lang.in" && continue
18425 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
18426 if test -f $srcdir/$subdir/lang.opt
; then
18427 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
18429 if test -f $srcdir/$subdir/$subdir-tree.def
; then
18430 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
18432 if test -f ${srcdir}/$subdir/Makefile.
in
18433 then all_lang_makefiles
="$subdir/Makefile"
18435 all_languages
="$all_languages $language"
18436 if test "x$boot_language" = xyes
18438 all_boot_languages
="$all_boot_languages $language"
18440 all_compilers
="$all_compilers $compilers"
18441 all_stagestuff
="$all_stagestuff $stagestuff"
18442 all_outputs
="$all_outputs $outputs"
18443 all_gtfiles
="$all_gtfiles $gtfiles"
18446 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
18447 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
18451 # Pick up gtfiles for c
18454 .
${srcdir}/c-config-lang.
in
18455 all_gtfiles
="$all_gtfiles $gtfiles"
18458 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
18459 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
18463 for language
in $all_selected_languages
18465 check_languages
="$check_languages check-$language"
18468 # We link each language in with a set of hooks, reached indirectly via
18469 # lang.${target}. Only do so for selected languages.
18473 target_list
="all.cross start.encap rest.encap tags \
18474 install-common install-man install-info dvi pdf html \
18475 uninstall info man srcextra srcman srcinfo \
18476 mostlyclean clean distclean maintainer-clean \
18477 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
18479 for t
in $target_list
18482 for lang
in $all_selected_languages
18486 echo "lang.$t: $x" >> Make-hooks
18495 echo "dir ." > .gdbinit
18496 echo "dir ${srcdir}" >> .gdbinit
18497 if test x
$gdb_needs_out_file_path = xyes
18499 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
18501 if test "x$subdirs" != x
; then
18504 echo "dir ${srcdir}/$s" >> .gdbinit
18507 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
18509 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
18510 # absolute path for gcc_tooldir based on inserting the number of up-directory
18511 # movements required to get from $(exec_prefix) to $(prefix) into the basic
18512 # $(libsubdir)/@(unlibsubdir) based path.
18513 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
18514 # make and thus we'd get different behavior depending on where we built the
18516 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
18517 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
18519 # An explanation of the sed strings:
18520 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
18521 # -e 's|/$||' match a trailing forward slash and eliminates it
18522 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
18523 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
18525 # (*) Note this pattern overwrites the first character of the string
18526 # with a forward slash if one is not already present. This is not a
18527 # problem because the exact names of the sub-directories concerned is
18528 # unimportant, just the number of them matters.
18530 # The practical upshot of these patterns is like this:
18532 # prefix exec_prefix result
18533 # ------ ----------- ------
18534 # /foo /foo/bar ../
18535 # /foo/ /foo/bar ../
18536 # /foo /foo/bar/ ../
18537 # /foo/ /foo/bar/ ../
18538 # /foo /foo/bar/ugg ../../
18541 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
18546 # Find a directory in which to install a shared libgcc.
18548 # Check whether --enable-version-specific-runtime-libs was given.
18549 if test "${enable_version_specific_runtime_libs+set}" = set; then
18550 enableval
=$enable_version_specific_runtime_libs;
18555 # Check whether --with-slibdir was given.
18556 if test "${with_slibdir+set}" = set; then
18557 withval
=$with_slibdir; slibdir
="$with_slibdir"
18559 if test "${enable_version_specific_runtime_libs+set}" = set; then
18560 slibdir
='$(libsubdir)'
18561 elif test "$host" != "$target"; then
18562 slibdir
='$(build_tooldir)/lib'
18564 slibdir
='$(libdir)'
18570 objdir
=`${PWDCMD-pwd}`
18574 # Check whether --with-datarootdir was given.
18575 if test "${with_datarootdir+set}" = set; then
18576 withval
=$with_datarootdir; datarootdir
="\${prefix}/$with_datarootdir"
18578 datarootdir
='$(prefix)/share'
18584 # Check whether --with-docdir was given.
18585 if test "${with_docdir+set}" = set; then
18586 withval
=$with_docdir; docdir
="\${prefix}/$with_docdir"
18588 docdir
='$(datarootdir)'
18594 # Check whether --with-htmldir was given.
18595 if test "${with_htmldir+set}" = set; then
18596 withval
=$with_htmldir; htmldir
="\${prefix}/$with_htmldir"
18598 htmldir
='$(docdir)'
18603 # Substitute configuration variables
18668 if test x
${build} = x
${host} ; then
18669 if test x
${host} = x
${target} ; then
18670 echo "Links are now set up to build a native compiler for ${target}." 1>&2
18672 echo "Links are now set up to build a cross-compiler" 1>&2
18673 echo " from ${host} to ${target}." 1>&2
18676 if test x
${host} = x
${target} ; then
18677 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
18678 echo " for ${target}." 1>&2
18680 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
18681 echo " from ${host} to ${target}." 1>&2
18688 # Configure the subdirectories
18689 # AC_CONFIG_SUBDIRS($subdirs)
18691 # Create the Makefile
18692 # and configure language subdirectories
18693 ac_config_files
="$ac_config_files $all_outputs"
18696 ac_config_commands
="$ac_config_commands default"
18698 cat >confcache
<<\_ACEOF
18699 # This file is a shell script that caches the results of configure
18700 # tests run on this system so they can be shared between configure
18701 # scripts and configure runs, see configure's option --config-cache.
18702 # It is not useful on other systems. If it contains results you don't
18703 # want to keep, you may remove or edit it.
18705 # config.status only pays attention to the cache file if you give it
18706 # the --recheck option to rerun configure.
18708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18710 # following values.
18714 # The following way of writing the cache mishandles newlines in values,
18715 # but we know of no workaround that is simple, portable, and efficient.
18716 # So, we kill variables containing newlines.
18717 # Ultrix sh set writes to stderr and can't be redirected directly,
18718 # and sets the high bit in the cache file unless we assign to the vars.
18720 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18721 eval ac_val
=\$
$ac_var
18725 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18726 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18729 _ | IFS | as_nl
) ;; #(
18730 *) $as_unset $ac_var ;;
18736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18737 *${as_nl}ac_space
=\
*)
18738 # `set' does not quote correctly, so add quotes (double-quote
18739 # substitution turns \\\\ into \\, and sed turns \\ into \).
18742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18745 # `set' quotes correctly as required by POSIX, so do not add quotes.
18746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18759 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18760 if test -w "$cache_file"; then
18761 test "x$cache_file" != "x/dev/null" &&
18762 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18763 echo "$as_me: updating cache $cache_file" >&6;}
18764 cat confcache
>$cache_file
18766 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18767 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18772 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18773 # Let make expand exec_prefix.
18774 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18776 DEFS
=-DHAVE_CONFIG_H
18780 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18781 # 1. Remove the extension, and $U if already installed.
18782 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18783 ac_i
=`echo "$ac_i" | sed "$ac_script"`
18784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18785 # will be set to the directory where LIBOBJS objects are built.
18786 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18787 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18789 LIBOBJS
=$ac_libobjs
18791 LTLIBOBJS
=$ac_ltlibobjs
18795 : ${CONFIG_STATUS=./config.status}
18796 ac_clean_files_save
=$ac_clean_files
18797 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18800 cat >$CONFIG_STATUS <<_ACEOF
18802 # Generated by $as_me.
18803 # Run this file to recreate the current configuration.
18804 # Compiler output produced by configure, useful for debugging
18805 # configure, is in config.log if it exists.
18808 ac_cs_recheck=false
18810 SHELL=\${CONFIG_SHELL-$SHELL}
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 ## --------------------- ##
18815 ## M4sh Initialization. ##
18816 ## --------------------- ##
18818 # Be Bourne compatible
18819 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18823 # is contrary to our usage. Disable this feature.
18824 alias -g '${1+"$@"}'='"$@"'
18825 setopt NO_GLOB_SUBST
18827 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
18829 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
18830 DUALCASE
=1; export DUALCASE
# for MKS sh
18834 # Avoid depending upon Character Ranges.
18835 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18836 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18837 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18838 as_cr_digits
='0123456789'
18839 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18841 # The user is always right.
18842 if test "${PATH_SEPARATOR+set}" != set; then
18843 echo "#! /bin/sh" >conf$$.sh
18844 echo "exit 0" >>conf$$.sh
18846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18854 # Support unset when possible.
18855 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
18863 # We need space, tab and new line, in precisely that order. Quoting is
18864 # there to prevent editors from complaining about space-tab.
18865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18866 # splitting by setting IFS to empty value.)
18871 # Find who we are. Look in the path if we contain no directory separator.
18873 *[\\/]* ) as_myself
=$0 ;;
18874 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18875 for as_dir
in $PATH
18878 test -z "$as_dir" && as_dir
=.
18879 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18885 # We did not find ourselves, most probably we were run as `sh COMMAND'
18886 # in which case we are not to be found in the path.
18887 if test "x$as_myself" = x
; then
18890 if test ! -f "$as_myself"; then
18891 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18892 { (exit 1); exit 1; }
18895 # Work around bugs in pre-3.0 UWIN ksh.
18896 for as_var
in ENV MAIL MAILPATH
18897 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
18905 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18906 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18907 LC_TELEPHONE LC_TIME
18909 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18910 eval $as_var=C
; export $as_var
18912 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
18916 # Required to use basename.
18917 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18918 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18924 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18925 as_basename
=basename
18931 # Name of the executable.
18932 as_me
=`$as_basename -- "$0" ||
18933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18934 X"$0" : 'X\(//\)$' \| \
18935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18937 sed '/^.*\/\([^/][^/]*\)\/*$/{
18956 as_lineno_1
=$LINENO
18957 as_lineno_2
=$LINENO
18958 test "x$as_lineno_1" != "x$as_lineno_2" &&
18959 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
18961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18962 # uniformly replaced by the line number. The first 'sed' inserts a
18963 # line-number line after each line using $LINENO; the second 'sed'
18964 # does the real work. The second script uses 'N' to pair each
18965 # line-number line with the line containing $LINENO, and appends
18966 # trailing '-' during substitution so that $LINENO is not a special
18967 # case at line end.
18968 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18969 # scripts with optimization help from Paolo Bonzini. Blame Lee
18970 # E. McMahon (1931-1989) for sed's syntax. :-)
18982 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18985 ' >$as_me.lineno
&&
18986 chmod +x
"$as_me.lineno" ||
18987 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18988 { (exit 1); exit 1; }; }
18990 # Don't try to exec as it changes $[0], causing all sort of problems
18991 # (the dirname of $[0] is not the place where we might find the
18992 # original and so on. Autoconf is especially sensitive to this).
18993 .
"./$as_me.lineno"
18994 # Exit status is that of the last command.
18999 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19005 ECHO_C
= ECHO_N
= ECHO_T
=
19006 case `echo -n x` in
19008 case `echo 'x\c'` in
19009 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19016 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19017 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19023 rm -f conf$$ conf$$.exe conf$$.
file
19024 if test -d conf$$.dir
; then
19025 rm -f conf$$.dir
/conf$$.
file
19031 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19033 # ... but there are two gotchas:
19034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19036 # In both cases, we have to default to `cp -p'.
19037 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19039 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19044 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19045 rmdir conf$$.dir
2>/dev
/null
19047 if mkdir
-p .
2>/dev
/null
; then
19050 test -d .
/-p && rmdir .
/-p
19054 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19055 # systems may use methods other than mode bits to determine executability.
19056 cat >conf$$.
file <<_ASEOF
19060 chmod +x conf$$.
file
19061 if test -x conf$$.
file >/dev
/null
2>&1; then
19062 as_executable_p
="test -x"
19068 # Sed expression to map a string onto a valid CPP name.
19069 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19071 # Sed expression to map a string onto a valid variable name.
19072 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19077 # Save the log message, to keep $[0] and so on meaningful, and to
19078 # report actual input values of CONFIG_FILES etc. instead of their
19079 # values after options handling.
19081 This file was extended by $as_me, which was
19082 generated by GNU Autoconf 2.60. Invocation command line was
19084 CONFIG_FILES = $CONFIG_FILES
19085 CONFIG_HEADERS = $CONFIG_HEADERS
19086 CONFIG_LINKS = $CONFIG_LINKS
19087 CONFIG_COMMANDS = $CONFIG_COMMANDS
19090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19095 cat >>$CONFIG_STATUS <<_ACEOF
19096 # Files that config.status was made for.
19097 config_files="$ac_config_files"
19098 config_headers="$ac_config_headers"
19099 config_commands="$ac_config_commands"
19103 cat >>$CONFIG_STATUS <<\_ACEOF
19105 \`$as_me' instantiates files from templates according to the
19106 current configuration.
19108 Usage: $0 [OPTIONS] [FILE]...
19110 -h, --help print this help, then exit
19111 -V, --version print version number, then exit
19112 -q, --quiet do not print progress messages
19113 -d, --debug don't remove temporary files
19114 --recheck update $as_me by reconfiguring in the same conditions
19115 --file=FILE[:TEMPLATE]
19116 instantiate the configuration file FILE
19117 --header=FILE[:TEMPLATE]
19118 instantiate the configuration header FILE
19120 Configuration files:
19123 Configuration headers:
19126 Configuration commands:
19129 Report bugs to <bug-autoconf@gnu.org>."
19132 cat >>$CONFIG_STATUS <<_ACEOF
19135 configured by $0, generated by GNU Autoconf 2.60,
19136 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19138 Copyright (C) 2006 Free Software Foundation, Inc.
19139 This config.status script is free software; the Free Software Foundation
19140 gives unlimited permission to copy, distribute and modify it."
19146 cat >>$CONFIG_STATUS <<\_ACEOF
19147 # If no file are specified by the user, then we need to provide default
19148 # value. By we need to know if files were specified by the user.
19154 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19155 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19166 # Handling of the options.
19167 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19169 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19170 echo "$ac_cs_version"; exit ;;
19171 --debug |
--debu |
--deb |
--de |
--d |
-d )
19173 --file |
--fil |
--fi |
--f )
19175 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19176 ac_need_defaults
=false
;;
19177 --header |
--heade |
--head |
--hea )
19179 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19180 ac_need_defaults
=false
;;
19182 # Conflict between --help and --header
19183 { echo "$as_me: error: ambiguous option: $1
19184 Try \`$0 --help' for more information." >&2
19185 { (exit 1); exit 1; }; };;
19186 --help |
--hel |
-h )
19187 echo "$ac_cs_usage"; exit ;;
19188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19189 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19192 # This is an error.
19193 -*) { echo "$as_me: error: unrecognized option: $1
19194 Try \`$0 --help' for more information." >&2
19195 { (exit 1); exit 1; }; } ;;
19197 *) ac_config_targets
="$ac_config_targets $1"
19198 ac_need_defaults
=false
;;
19204 ac_configure_extra_args
=
19206 if $ac_cs_silent; then
19208 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19212 cat >>$CONFIG_STATUS <<_ACEOF
19213 if \$ac_cs_recheck; then
19214 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19215 CONFIG_SHELL=$SHELL
19216 export CONFIG_SHELL
19217 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19221 cat >>$CONFIG_STATUS <<\_ACEOF
19225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19226 ## Running $as_me. ##
19232 cat >>$CONFIG_STATUS <<_ACEOF
19240 cat >>$CONFIG_STATUS <<\_ACEOF
19242 # Handling of arguments.
19243 for ac_config_target
in $ac_config_targets
19245 case $ac_config_target in
19246 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
19247 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
19248 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19250 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19252 { (exit 1); exit 1; }; };;
19257 # If the user did not use the arguments to specify the items to instantiate,
19258 # then the envvar interface is used. Set only those that are not.
19259 # We use the long form for the default assignment because of an extremely
19260 # bizarre bug on SunOS 4.1.3.
19261 if $ac_need_defaults; then
19262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19267 # Have a temporary directory for convenience. Make it in the build tree
19268 # simply because there is no reason against having it here, and in addition,
19269 # creating and moving files from /tmp can sometimes cause problems.
19270 # Hook for its removal unless debugging.
19271 # Note that there is a small window in which the directory will not be cleaned:
19272 # after its creation but before its name has been assigned to `$tmp'.
19276 trap 'exit_status=$?
19277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19279 trap '{ (exit 1); exit 1; }' 1 2 13 15
19281 # Create a (secure) tmp directory for tmp files.
19284 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19285 test -n "$tmp" && test -d "$tmp"
19288 tmp
=.
/conf$$
-$RANDOM
19289 (umask 077 && mkdir
"$tmp")
19292 echo "$me: cannot create a temporary directory in ." >&2
19293 { (exit 1); exit 1; }
19297 # Set up the sed scripts for CONFIG_FILES section.
19300 # No need to generate the scripts if there are no CONFIG_FILES.
19301 # This happens for instance when ./config.status config.h
19302 if test -n "$CONFIG_FILES"; then
19306 # Create sed commands to just substitute file output variables.
19308 # Remaining file output variables are in a fragment that also has non-file
19314 for ac_last_try
in false false false false false
:; do
19315 cat >conf$
$subs.
sed <<_ACEOF
19316 SHELL!$SHELL$ac_delim
19317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19323 exec_prefix!$exec_prefix$ac_delim
19324 prefix!$prefix$ac_delim
19325 program_transform_name!$program_transform_name$ac_delim
19326 bindir!$bindir$ac_delim
19327 sbindir!$sbindir$ac_delim
19328 libexecdir!$libexecdir$ac_delim
19329 datarootdir!$datarootdir$ac_delim
19330 datadir!$datadir$ac_delim
19331 sysconfdir!$sysconfdir$ac_delim
19332 sharedstatedir!$sharedstatedir$ac_delim
19333 localstatedir!$localstatedir$ac_delim
19334 includedir!$includedir$ac_delim
19335 oldincludedir!$oldincludedir$ac_delim
19336 docdir!$docdir$ac_delim
19337 infodir!$infodir$ac_delim
19338 htmldir!$htmldir$ac_delim
19339 dvidir!$dvidir$ac_delim
19340 pdfdir!$pdfdir$ac_delim
19341 psdir!$psdir$ac_delim
19342 libdir!$libdir$ac_delim
19343 localedir!$localedir$ac_delim
19344 mandir!$mandir$ac_delim
19345 DEFS!$DEFS$ac_delim
19346 ECHO_C!$ECHO_C$ac_delim
19347 ECHO_N!$ECHO_N$ac_delim
19348 ECHO_T!$ECHO_T$ac_delim
19349 LIBS!$LIBS$ac_delim
19350 build_alias!$build_alias$ac_delim
19351 host_alias!$host_alias$ac_delim
19352 target_alias!$target_alias$ac_delim
19353 build!$build$ac_delim
19354 build_cpu!$build_cpu$ac_delim
19355 build_vendor!$build_vendor$ac_delim
19356 build_os!$build_os$ac_delim
19357 host!$host$ac_delim
19358 host_cpu!$host_cpu$ac_delim
19359 host_vendor!$host_vendor$ac_delim
19360 host_os!$host_os$ac_delim
19361 target!$target$ac_delim
19362 target_cpu!$target_cpu$ac_delim
19363 target_vendor!$target_vendor$ac_delim
19364 target_os!$target_os$ac_delim
19365 target_noncanonical!$target_noncanonical$ac_delim
19366 build_libsubdir!$build_libsubdir$ac_delim
19367 build_subdir!$build_subdir$ac_delim
19368 host_subdir!$host_subdir$ac_delim
19369 target_subdir!$target_subdir$ac_delim
19370 GENINSRC!$GENINSRC$ac_delim
19372 CFLAGS!$CFLAGS$ac_delim
19373 LDFLAGS!$LDFLAGS$ac_delim
19374 CPPFLAGS!$CPPFLAGS$ac_delim
19375 ac_ct_CC!$ac_ct_CC$ac_delim
19376 EXEEXT!$EXEEXT$ac_delim
19377 OBJEXT!$OBJEXT$ac_delim
19378 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
19379 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
19381 GREP!$GREP$ac_delim
19382 EGREP!$EGREP$ac_delim
19383 strict1_warn!$strict1_warn$ac_delim
19384 cxx_compat_warn!$cxx_compat_warn$ac_delim
19385 warn_cflags!$warn_cflags$ac_delim
19386 WERROR!$WERROR$ac_delim
19387 nocommon_flag!$nocommon_flag$ac_delim
19388 TREEBROWSER!$TREEBROWSER$ac_delim
19389 valgrind_path!$valgrind_path$ac_delim
19390 valgrind_path_defines!$valgrind_path_defines$ac_delim
19391 valgrind_command!$valgrind_command$ac_delim
19392 coverage_flags!$coverage_flags$ac_delim
19393 enable_multilib!$enable_multilib$ac_delim
19394 enable_decimal_float!$enable_decimal_float$ac_delim
19395 enable_shared!$enable_shared$ac_delim
19396 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
19397 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
19398 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
19399 onestep!$onestep$ac_delim
19400 SET_MAKE!$SET_MAKE$ac_delim
19402 LN_S!$LN_S$ac_delim
19404 RANLIB!$RANLIB$ac_delim
19405 ranlib_flags!$ranlib_flags$ac_delim
19406 INSTALL!$INSTALL$ac_delim
19407 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19408 INSTALL_DATA!$INSTALL_DATA$ac_delim
19409 make_compare_target!$make_compare_target$ac_delim
19412 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
19414 elif $ac_last_try; then
19415 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19416 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19417 { (exit 1); exit 1; }; }
19419 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
19423 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19424 if test -n "$ac_eof"; then
19425 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
19426 ac_eof
=`expr $ac_eof + 1`
19429 cat >>$CONFIG_STATUS <<_ACEOF
19430 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19432 /^[ ]*@language_hooks@[ ]*$/{
19438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19439 s/^/s,@/; s/!/@,|#_!!_#|/
19442 s/'"$ac_delim"'$/,g/; t
19444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19445 ' >>$CONFIG_STATUS <conf$
$subs.
sed
19446 rm -f conf$
$subs.
sed
19447 cat >>$CONFIG_STATUS <<_ACEOF
19453 for ac_last_try
in false false false false false
:; do
19454 cat >conf$
$subs.
sed <<_ACEOF
19455 have_mktemp_command!$have_mktemp_command$ac_delim
19456 MAKEINFO!$MAKEINFO$ac_delim
19457 BUILD_INFO!$BUILD_INFO$ac_delim
19458 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
19459 FLEX!$FLEX$ac_delim
19460 BISON!$BISON$ac_delim
19463 stage1_cflags!$stage1_cflags$ac_delim
19464 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
19465 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
19466 LDEXP_LIB!$LDEXP_LIB$ac_delim
19467 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
19468 LIBICONV!$LIBICONV$ac_delim
19469 LTLIBICONV!$LTLIBICONV$ac_delim
19470 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
19471 manext!$manext$ac_delim
19472 objext!$objext$ac_delim
19473 gthread_flags!$gthread_flags$ac_delim
19474 extra_modes_file!$extra_modes_file$ac_delim
19475 extra_opt_files!$extra_opt_files$ac_delim
19476 USE_NLS!$USE_NLS$ac_delim
19477 LIBINTL!$LIBINTL$ac_delim
19478 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
19479 INCINTL!$INCINTL$ac_delim
19480 XGETTEXT!$XGETTEXT$ac_delim
19481 GMSGFMT!$GMSGFMT$ac_delim
19482 POSUB!$POSUB$ac_delim
19483 CATALOGS!$CATALOGS$ac_delim
19484 DATADIRNAME!$DATADIRNAME$ac_delim
19485 INSTOBJEXT!$INSTOBJEXT$ac_delim
19486 GENCAT!$GENCAT$ac_delim
19487 CATOBJEXT!$CATOBJEXT$ac_delim
19488 host_cc_for_libada!$host_cc_for_libada$ac_delim
19489 CROSS!$CROSS$ac_delim
19491 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
19492 inhibit_libc!$inhibit_libc$ac_delim
19493 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
19494 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
19495 STMP_FIXINC!$STMP_FIXINC$ac_delim
19496 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
19497 collect2!$collect2$ac_delim
19498 gcc_cv_as!$gcc_cv_as$ac_delim
19499 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
19500 gcc_cv_ld!$gcc_cv_ld$ac_delim
19501 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
19502 gcc_cv_nm!$gcc_cv_nm$ac_delim
19503 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
19504 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
19505 libgcc_visibility!$libgcc_visibility$ac_delim
19507 zlibdir!$zlibdir$ac_delim
19508 zlibinc!$zlibinc$ac_delim
19509 MAINT!$MAINT$ac_delim
19510 gcc_tooldir!$gcc_tooldir$ac_delim
19511 dollar!$dollar$ac_delim
19512 slibdir!$slibdir$ac_delim
19513 objdir!$objdir$ac_delim
19514 subdirs!$subdirs$ac_delim
19515 srcdir!$srcdir$ac_delim
19516 all_boot_languages!$all_boot_languages$ac_delim
19517 all_compilers!$all_compilers$ac_delim
19518 all_gtfiles!$all_gtfiles$ac_delim
19519 all_gtfiles_files_langs!$all_gtfiles_files_langs$ac_delim
19520 all_gtfiles_files_files!$all_gtfiles_files_files$ac_delim
19521 all_lang_makefrags!$all_lang_makefrags$ac_delim
19522 all_lang_makefiles!$all_lang_makefiles$ac_delim
19523 all_languages!$all_languages$ac_delim
19524 all_selected_languages!$all_selected_languages$ac_delim
19525 all_stagestuff!$all_stagestuff$ac_delim
19526 build_exeext!$build_exeext$ac_delim
19527 build_install_headers_dir!$build_install_headers_dir$ac_delim
19528 build_xm_file_list!$build_xm_file_list$ac_delim
19529 build_xm_include_list!$build_xm_include_list$ac_delim
19530 build_xm_defines!$build_xm_defines$ac_delim
19531 check_languages!$check_languages$ac_delim
19532 cc_set_by_configure!$cc_set_by_configure$ac_delim
19533 quoted_cc_set_by_configure!$quoted_cc_set_by_configure$ac_delim
19534 cpp_install_dir!$cpp_install_dir$ac_delim
19535 xmake_file!$xmake_file$ac_delim
19536 tmake_file!$tmake_file$ac_delim
19537 extra_gcc_objs!$extra_gcc_objs$ac_delim
19538 extra_headers_list!$extra_headers_list$ac_delim
19539 extra_objs!$extra_objs$ac_delim
19540 extra_parts!$extra_parts$ac_delim
19541 extra_passes!$extra_passes$ac_delim
19542 extra_programs!$extra_programs$ac_delim
19543 float_h_file!$float_h_file$ac_delim
19544 gcc_config_arguments!$gcc_config_arguments$ac_delim
19545 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
19546 host_exeext!$host_exeext$ac_delim
19547 host_xm_file_list!$host_xm_file_list$ac_delim
19548 host_xm_include_list!$host_xm_include_list$ac_delim
19549 host_xm_defines!$host_xm_defines$ac_delim
19550 out_host_hook_obj!$out_host_hook_obj$ac_delim
19551 install!$install$ac_delim
19554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19556 elif $ac_last_try; then
19557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19559 { (exit 1); exit 1; }; }
19561 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
19565 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19566 if test -n "$ac_eof"; then
19567 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
19568 ac_eof
=`expr $ac_eof + 1`
19571 cat >>$CONFIG_STATUS <<_ACEOF
19572 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19577 s/^/s,@/; s/!/@,|#_!!_#|/
19580 s/'"$ac_delim"'$/,g/; t
19582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19583 ' >>$CONFIG_STATUS <conf$
$subs.
sed
19584 rm -f conf$
$subs.
sed
19585 cat >>$CONFIG_STATUS <<_ACEOF
19591 for ac_last_try
in false false false false false
:; do
19592 cat >conf$
$subs.
sed <<_ACEOF
19593 lang_opt_files!$lang_opt_files$ac_delim
19594 lang_specs_files!$lang_specs_files$ac_delim
19595 lang_tree_files!$lang_tree_files$ac_delim
19596 local_prefix!$local_prefix$ac_delim
19597 md_file!$md_file$ac_delim
19598 objc_boehm_gc!$objc_boehm_gc$ac_delim
19599 out_file!$out_file$ac_delim
19600 out_object_file!$out_object_file$ac_delim
19601 stage_prefix_set_by_configure!$stage_prefix_set_by_configure$ac_delim
19602 quoted_stage_prefix_set_by_configure!$quoted_stage_prefix_set_by_configure$ac_delim
19603 thread_file!$thread_file$ac_delim
19604 tm_file_list!$tm_file_list$ac_delim
19605 tm_include_list!$tm_include_list$ac_delim
19606 tm_defines!$tm_defines$ac_delim
19607 tm_p_file_list!$tm_p_file_list$ac_delim
19608 tm_p_include_list!$tm_p_include_list$ac_delim
19609 xm_file_list!$xm_file_list$ac_delim
19610 xm_include_list!$xm_include_list$ac_delim
19611 xm_defines!$xm_defines$ac_delim
19612 c_target_objs!$c_target_objs$ac_delim
19613 cxx_target_objs!$cxx_target_objs$ac_delim
19614 target_cpu_default!$target_cpu_default$ac_delim
19615 GMPLIBS!$GMPLIBS$ac_delim
19616 GMPINC!$GMPINC$ac_delim
19617 LIBOBJS!$LIBOBJS$ac_delim
19618 LTLIBOBJS!$LTLIBOBJS$ac_delim
19621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
19623 elif $ac_last_try; then
19624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19626 { (exit 1); exit 1; }; }
19628 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
19632 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19633 if test -n "$ac_eof"; then
19634 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
19635 ac_eof
=`expr $ac_eof + 1`
19638 cat >>$CONFIG_STATUS <<_ACEOF
19639 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19644 s/^/s,@/; s/!/@,|#_!!_#|/
19647 s/'"$ac_delim"'$/,g/; t
19649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19650 ' >>$CONFIG_STATUS <conf$
$subs.
sed
19651 rm -f conf$
$subs.
sed
19652 cat >>$CONFIG_STATUS <<_ACEOF
19659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19661 # trailing colons and then remove the whole line if VPATH becomes empty
19662 # (actually we leave an empty line to preserve line numbers).
19663 if test "x$srcdir" = x.
; then
19664 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19665 s/:*\$(srcdir):*/:/
19666 s/:*\${srcdir}:*/:/
19668 s/^\([^=]*=[ ]*\):*/\1/
19674 cat >>$CONFIG_STATUS <<\_ACEOF
19675 fi # test -n "$CONFIG_FILES"
19678 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
19681 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19683 case $ac_mode$ac_tag in
19685 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19687 { (exit 1); exit 1; }; };;
19688 :[FH
]-) ac_tag
=-:-;;
19689 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19706 -) ac_f
="$tmp/stdin";;
19707 *) # Look for the file first in the build tree, then in the source tree
19708 # (if the path is not absolute). The absolute path cannot be DOS-style,
19709 # because $ac_f cannot contain `:'.
19713 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19715 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19717 { (exit 1); exit 1; }; };;
19719 ac_file_inputs
="$ac_file_inputs $ac_f"
19722 # Let's still pretend it is `configure' which instantiates (i.e., don't
19723 # use $as_me), people would be surprised to read:
19724 # /* config.h. Generated by config.status. */
19725 configure_input
="Generated from "`IFS=:
19726 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19727 if test x
"$ac_file" != x-
; then
19728 configure_input
="$ac_file. $configure_input"
19729 { echo "$as_me:$LINENO: creating $ac_file" >&5
19730 echo "$as_me: creating $ac_file" >&6;}
19734 *:-:* |
*:-) cat >"$tmp/stdin";;
19739 ac_dir
=`$as_dirname -- "$ac_file" ||
19740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19741 X"$ac_file" : 'X\(//\)[^/]' \| \
19742 X"$ac_file" : 'X\(//\)$' \| \
19743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19749 /^X\(\/\/\)[^/].*/{
19764 -*) as_dir
=.
/$as_dir;;
19766 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
19770 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19771 *) as_qdir
=$as_dir;;
19773 as_dirs
="'$as_qdir' $as_dirs"
19774 as_dir
=`$as_dirname -- "$as_dir" ||
19775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776 X"$as_dir" : 'X\(//\)[^/]' \| \
19777 X"$as_dir" : 'X\(//\)$' \| \
19778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19784 /^X\(\/\/\)[^/].*/{
19797 test -d "$as_dir" && break
19799 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19800 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19802 { (exit 1); exit 1; }; }; }
19806 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19808 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19809 # A ".." for each directory in $ac_dir_suffix.
19810 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19811 case $ac_top_builddir_sub in
19812 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19813 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19816 ac_abs_top_builddir
=$ac_pwd
19817 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19818 # for backward compatibility:
19819 ac_top_builddir
=$ac_top_build_prefix
19822 .
) # We are building in place.
19824 ac_top_srcdir
=$ac_top_builddir_sub
19825 ac_abs_top_srcdir
=$ac_pwd ;;
19826 [\\/]* | ?
:[\\/]* ) # Absolute name.
19827 ac_srcdir
=$srcdir$ac_dir_suffix;
19828 ac_top_srcdir
=$srcdir
19829 ac_abs_top_srcdir
=$srcdir ;;
19830 *) # Relative name.
19831 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19832 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19833 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19835 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19846 cat >>$CONFIG_STATUS <<\_ACEOF
19847 # If the template does not know about datarootdir, expand it.
19848 # FIXME: This hack should be removed a few years after 2.60.
19849 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19851 case `sed -n '/datarootdir/ {
19860 ' $ac_file_inputs` in
19861 *datarootdir
*) ac_datarootdir_seen
=yes;;
19862 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19863 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19864 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19866 cat >>$CONFIG_STATUS <<_ACEOF
19867 ac_datarootdir_hack='
19868 s&@datadir@&$datadir&g
19869 s&@docdir@&$docdir&g
19870 s&@infodir@&$infodir&g
19871 s&@localedir@&$localedir&g
19872 s&@mandir@&$mandir&g
19873 s&\\\${datarootdir}&$datarootdir&g' ;;
19877 # Neutralize VPATH when `$srcdir' = `.'.
19878 # Shell code in configure.ac might set extrasub.
19879 # FIXME: do we really want to maintain this feature?
19880 cat >>$CONFIG_STATUS <<_ACEOF
19884 cat >>$CONFIG_STATUS <<\_ACEOF
19886 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19887 s
&@configure_input@
&$configure_input&;t t
19888 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19889 s
&@srcdir@
&$ac_srcdir&;t t
19890 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19891 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19892 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19893 s
&@builddir@
&$ac_builddir&;t t
19894 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19895 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19896 $ac_datarootdir_hack
19897 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
19899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19900 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19902 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19903 which seems to be undefined. Please make sure it is defined." >&5
19904 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19905 which seems to be undefined. Please make sure it is defined." >&2;}
19909 -) cat "$tmp/out"; rm -f "$tmp/out";;
19910 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19919 # Transform confdefs.h into a sed script `conftest.defines', that
19920 # substitutes the proper values into config.h.in to produce config.h.
19921 rm -f conftest.defines conftest.
tail
19922 # First, append a space to every undef/define line, to ease matching.
19923 echo 's/$/ /' >conftest.defines
19924 # Then, protect against being on the right side of a sed subst, or in
19925 # an unquoted here document, in config.status. If some macros were
19926 # called several times there might be several #defines for the same
19927 # symbol, which is useless. But do not sort them, since the last
19928 # AC_DEFINE must be honored.
19929 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
19930 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19931 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19932 # PARAMS is the parameter list in the macro definition--in most cases, it's
19933 # just an empty string.
19934 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19935 ac_dB
='\\)[ (].*,\\1define\\2'
19943 s/^[ ]*#[ ]*define[ ][ ]*//
19948 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19949 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19950 ' >>conftest.defines
19952 # Remove the space that was appended to ease matching.
19953 # Then replace #undef with comments. This is necessary, for
19954 # example, in the case of _POSIX_SOURCE, which is predefined and required
19955 # on some systems where configure will not decide to define it.
19956 # (The regexp can be short, since the line contains either #define or #undef.)
19958 s,^[ #]*u.*,/* & */,' >>conftest.defines
19960 # Break up conftest.defines:
19961 ac_max_sed_lines
=50
19963 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19964 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19965 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19967 ac_in
='$ac_file_inputs'
19968 ac_out
='"$tmp/out1"'
19969 ac_nxt
='"$tmp/out2"'
19973 # Write a here document:
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 # First, check the format of the line:
19976 cat >"\$tmp/defines.sed" <<\\CEOF
19977 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19978 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19982 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
19984 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19985 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
19986 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
19987 grep . conftest.
tail >/dev
/null ||
break
19988 rm -f conftest.defines
19989 mv conftest.
tail conftest.defines
19991 rm -f conftest.defines conftest.
tail
19993 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19994 cat >>$CONFIG_STATUS <<\_ACEOF
19995 if test x
"$ac_file" != x-
; then
19996 echo "/* $configure_input */" >"$tmp/config.h"
19997 cat "$ac_result" >>"$tmp/config.h"
19998 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
19999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20000 echo "$as_me: $ac_file is unchanged" >&6;}
20003 mv "$tmp/config.h" $ac_file
20006 echo "/* $configure_input */"
20012 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20013 echo "$as_me: executing $ac_file commands" >&6;}
20018 case $ac_file$ac_mode in
20020 case ${CONFIG_HEADERS} in
20021 *auto-host.h
:config.
in*)
20024 # Make sure all the subdirs exist.
20025 for d
in $subdirs doc build
20027 test -d $d || mkdir
$d
20029 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
20030 # bootstrapping and the installation procedure can still use
20031 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
20032 # FLAGS_TO_PASS has been modified to solve the problem there.
20033 # This is virtually a duplicate of what happens in configure.lang; we do
20034 # an extra check to make sure this only happens if ln -s can be used.
20037 for d
in ${subdirs} ; do
20038 STARTDIR
=`${PWDCMD-pwd}`
20040 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
20043 $LN_S ..
/$t $t 2>/dev
/null
20055 { (exit 0); exit 0; }
20057 chmod +x
$CONFIG_STATUS
20058 ac_clean_files
=$ac_clean_files_save
20061 # configure is writing to config.log, and then calls config.status.
20062 # config.status does its own redirection, appending to config.log.
20063 # Unfortunately, on DOS this fails, as config.log is still kept open
20064 # by configure, so config.status won't be able to write to it; its
20065 # output is simply discarded. So we exec the FD to /dev/null,
20066 # effectively closing config.log, so it can be properly (re)opened and
20067 # appended to by config.status. When coming back to configure, we
20068 # need to make the FD available again.
20069 if test "$no_create" != yes; then
20071 ac_config_status_args
=
20072 test "$silent" = yes &&
20073 ac_config_status_args
="$ac_config_status_args --quiet"
20075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20078 # would make configure fail if this is the last instruction.
20079 $ac_cs_success ||
{ (exit 1); exit 1; }