2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="tree.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
690 valgrind_path_defines
698 TARGET_SYSTEM_ROOT_DEFINE
699 CROSS_SYSTEM_HEADER_DIR
757 ORIGINAL_AS_FOR_TARGET
759 ORIGINAL_LD_FOR_TARGET
761 ORIGINAL_NM_FOR_TARGET
779 all_selected_languages
781 build_install_headers_dir
783 build_xm_include_list
828 ac_subst_files='language_hooks'
829 ac_precious_vars='build_alias
842 # Initialize some variables set by options.
844 ac_init_version=false
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name=s,x,x,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
949 eval enable_$ac_feature=no ;;
951 -docdir | --docdir | --docdi | --doc | --do)
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 -enable-* | --enable-*)
962 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
965 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
966 { (exit 1); exit 1; }; }
967 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
968 eval enable_$ac_feature=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1165 eval with_$ac_package=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid package name: $ac_package" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1174 eval with_$ac_package=no ;;
1177 # Obsolete; use --with-x.
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1194 -*) { echo "$as_me: error: unrecognized option: $ac_option
1195 Try \`$0 --help' for more information." >&2
1196 { (exit 1); exit 1; }; }
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1204 { (exit 1); exit 1; }; }
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 { echo "$as_me: error: missing argument to $ac_option" >&2
1222 { (exit 1); exit 1; }; }
1225 # Be sure to have absolute directory names.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1231 eval ac_val=\$$ac_var
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1237 { (exit 1); exit 1; }; }
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1245 target=$target_alias
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1252 If a cross compiler is detected then cross compile mode will be used." >&2
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 { echo "$as_me: error: Working directory cannot be determined" >&2
1268 { (exit 1); exit 1; }; }
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 { echo "$as_me: error: pwd does not report name of working directory" >&2
1271 { (exit 1); exit 1; }; }
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$0" ||
1279 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$0" : 'X\(//\)[^/]' \| \
1281 X"$0" : 'X\(//\)$' \| \
1282 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1311 { (exit 1); exit 1; }; }
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1316 { (exit 1); exit 1; }; }
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 # Report the --help message.
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1342 \`configure' configures this package to adapt to many kinds of systems.
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1349 Defaults for the options are specified in brackets.
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1373 For better control, use the options below.
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 --target=TARGET configure for building compilers for TARGET [HOST]
1411 if test -n "$ac_init_help"; then
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-generated-files-in-srcdir
1419 put copies of generated files in source dir
1420 intended for creating source tarballs for users
1421 without texinfo bison or flex.
1422 --enable-werror-always enable -Werror despite compiler version
1423 --enable-checking=LIST
1424 enable expensive run-time checks. With LIST,
1425 enable only specific categories of checks.
1426 Categories are: yes,no,all,none,release.
1427 Flags are: assert,df,fold,gc,gcac,misc,
1428 rtlflag,rtl,runtime,tree,valgrind,types.
1429 --enable-mapped-location location_t is fileline integer cookie
1430 --enable-coverage=LEVEL
1431 enable compiler's code coverage collection.
1432 Use to measure compiler performance and locate
1433 unused parts of the compiler. With LEVEL, specify
1434 optimization. Values are opt, noopt,
1436 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1437 --enable-multilib enable library support for multiple ABIs
1438 --enable-__cxa_atexit enable __cxa_atexit for C++
1439 --enable-decimal-float={no,yes,bid,dpd}
1440 enable decimal float extension to C. Selecting 'bid'
1441 or 'dpd' choses which decimal floating point format
1443 --enable-fixed-point enable fixed-point arithmetic extension to C
1444 --enable-threads enable thread usage for target GCC
1445 --enable-threads=LIB use LIB thread package for target GCC
1446 --enable-tls enable or disable generation of tls code
1447 overriding the assembler check for tls support
1448 --enable-objc-gc enable the use of Boehm's garbage collector with
1449 the GNU Objective-C runtime
1450 --disable-shared don't provide a shared libgcc
1451 --enable-intermodule build the compiler in one step
1452 --enable-languages=LIST specify which front-ends to build
1453 --disable-rpath do not hardcode runtime library paths
1454 --enable-initfini-array use .init_array/.fini_array sections
1455 --enable-sjlj-exceptions
1456 arrange to use setjmp/longjmp exception handling
1457 --enable-secureplt enable -msecure-plt by default for PowerPC
1458 --disable-win32-registry
1459 disable lookup of installation paths in the
1460 Registry on Windows hosts
1461 --enable-win32-registry enable registry lookup (default)
1462 --enable-win32-registry=KEY
1463 use KEY instead of GCC version as the last portion
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful
1467 (and sometimes confusing) to the casual installer
1468 --enable-version-specific-runtime-libs
1469 specify that runtime libraries should be
1470 installed in a compiler-specific directory
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-build-libsubdir=DIR Directory where to find libraries for build system
1476 --with-local-prefix=DIR specifies directory to put local include
1477 --with-gxx-include-dir=DIR
1478 specifies directory to put g++ header files
1479 --with-cpp-install-dir=DIR
1480 install the user visible C preprocessor in DIR
1481 (relative to PREFIX) as well as PREFIX/bin
1482 --with-gnu-ld arrange to work with GNU ld.
1483 --with-ld arrange to use the specified ld (full pathname)
1484 --with-demangler-in-ld try to use demangler in GNU ld.
1485 --with-gnu-as arrange to work with GNU as
1486 --with-as arrange to use the specified as (full pathname)
1487 --with-stabs arrange to use stabs instead of host debug format
1488 --with-dwarf2 force the default debug format to be DWARF 2
1489 --with-build-sysroot=sysroot
1490 use sysroot as the system root during the build
1491 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1492 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1493 --with-bugurl=URL Direct users to URL to report a bug
1494 --with-gnu-ld assume the C compiler uses GNU ld default=no
1495 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1496 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1497 --with-system-libunwind use installed libunwind
1498 --with-long-double-128 Use 128-bit long double by default.
1499 --with-gc={page,zone} choose the garbage collection mechanism to use
1501 --with-system-zlib use installed libz
1502 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1503 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1504 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1505 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1516 GMPLIBS How to link GMP
1517 GMPINC How to find GMP include files
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" || continue
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1583 generated by GNU Autoconf 2.61
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next=false
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next=true ;;
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1750 for ac_var in $ac_subst_vars
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1760 if test -n "$ac_subst_files"; then
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1767 for ac_var in $ac_subst_files
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1778 if test -s confdefs.h; then
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1869 # Check that the precious variables saved in the cache have kept the same
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1945 gcc_version=`cat $srcdir/BASE-VER`
1947 # Determine the host, build, and target systems
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: checking build system type" >&5
1986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 echo "${ECHO_T}$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
2012 ac_save_IFS=$IFS; IFS='-'
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025 { echo "$as_me:$LINENO: checking host system type" >&5
2026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 echo "${ECHO_T}$ac_cv_host" >&6; }
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 echo "$as_me: error: invalid value of canonical host" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking target system type" >&5
2063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_target+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$target_alias" = x; then
2068 ac_cv_target=$ac_cv_host
2070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078 echo "${ECHO_T}$ac_cv_target" >&6; }
2079 case $ac_cv_target in
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082 echo "$as_me: error: invalid value of canonical target" >&2;}
2083 { (exit 1); exit 1; }; };;
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2104 program_prefix=${target_alias}-
2106 # Determine the noncanonical target name, for directory use.
2107 case ${build_alias} in
2108 "") build_noncanonical=${build} ;;
2109 *) build_noncanonical=${build_alias} ;;
2112 case ${host_alias} in
2113 "") host_noncanonical=${build_noncanonical} ;;
2114 *) host_noncanonical=${host_alias} ;;
2117 case ${target_alias} in
2118 "") target_noncanonical=${host_noncanonical} ;;
2119 *) target_noncanonical=${target_alias} ;;
2125 # Determine the target- and build-specific subdirectories
2127 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2128 # have matching libraries, they should use host libraries: Makefile.tpl
2129 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2130 # However, they still use the build modules, because the corresponding
2131 # host modules (e.g. bison) are only built for the host when bootstrap
2133 # - build_subdir is where we find build modules, and never changes.
2134 # - build_libsubdir is where we find build libraries, and can be overridden.
2136 # Prefix 'build-' so this never conflicts with target_subdir.
2137 build_subdir="build-${build_noncanonical}"
2139 # Check whether --with-build-libsubdir was given.
2140 if test "${with_build_libsubdir+set}" = set; then
2141 withval=$with_build_libsubdir; build_libsubdir="$withval"
2143 build_libsubdir="$build_subdir"
2146 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2147 if ( test $srcdir = . && test -d gcc ) \
2148 || test -d $srcdir/../host-${host_noncanonical}; then
2149 host_subdir="host-${host_noncanonical}"
2154 target_subdir=${target_noncanonical}
2157 # Set program_transform_name
2158 test "$program_prefix" != NONE &&
2159 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2160 # Use a double $ so make ignores it.
2161 test "$program_suffix" != NONE &&
2162 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2163 # Double any \ or $. echo might interpret backslashes.
2164 # By default was `s,x,x', remove it if useless.
2165 cat <<\_ACEOF >conftest.sed
2166 s/[\\$]/&&/g;s/;s,x,x,$//
2168 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2172 # Check for bogus environment variables.
2173 # Test if LIBRARY_PATH contains the notation for the current directory
2174 # since this would lead to problems installing/building glibc.
2175 # LIBRARY_PATH contains the current directory if one of the following
2177 # - one of the terminals (":" and ";") is the first or last sign
2178 # - two terminals occur directly after each other
2179 # - the path contains an element with a dot in it
2180 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2181 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2182 case ${LIBRARY_PATH} in
2183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2184 library_path_setting="contains current directory"
2187 library_path_setting="ok"
2190 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2191 echo "${ECHO_T}$library_path_setting" >&6; }
2192 if test "$library_path_setting" != "ok"; then
2193 { { echo "$as_me:$LINENO: error:
2194 *** LIBRARY_PATH shouldn't contain the current directory when
2195 *** building gcc. Please change the environment variable
2196 *** and run configure again." >&5
2197 echo "$as_me: error:
2198 *** LIBRARY_PATH shouldn't contain the current directory when
2199 *** building gcc. Please change the environment variable
2200 *** and run configure again." >&2;}
2201 { (exit 1); exit 1; }; }
2204 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2205 # since this would lead to problems installing/building glibc.
2206 # GCC_EXEC_PREFIX contains the current directory if one of the following
2208 # - one of the terminals (":" and ";") is the first or last sign
2209 # - two terminals occur directly after each other
2210 # - the path contains an element with a dot in it
2211 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2212 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2213 case ${GCC_EXEC_PREFIX} in
2214 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2215 gcc_exec_prefix_setting="contains current directory"
2218 gcc_exec_prefix_setting="ok"
2221 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2222 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2223 if test "$gcc_exec_prefix_setting" != "ok"; then
2224 { { echo "$as_me:$LINENO: error:
2225 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2226 *** building gcc. Please change the environment variable
2227 *** and run configure again." >&5
2228 echo "$as_me: error:
2229 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2230 *** building gcc. Please change the environment variable
2231 *** and run configure again." >&2;}
2232 { (exit 1); exit 1; }; }
2239 # Specify the local prefix
2242 # Check whether --with-local-prefix was given.
2243 if test "${with_local_prefix+set}" = set; then
2244 withval=$with_local_prefix; case "${withval}" in
2245 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2246 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2247 { (exit 1); exit 1; }; } ;;
2249 *) local_prefix=$with_local_prefix ;;
2254 # Default local prefix if it is empty
2255 if test x$local_prefix = x; then
2256 local_prefix=/usr/local
2259 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2260 # passed in by the toplevel make and thus we'd get different behavior
2261 # depending on where we built the sources.
2262 gcc_gxx_include_dir=
2263 # Specify the g++ header file directory
2265 # Check whether --with-gxx-include-dir was given.
2266 if test "${with_gxx_include_dir+set}" = set; then
2267 withval=$with_gxx_include_dir; case "${withval}" in
2268 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2269 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2270 { (exit 1); exit 1; }; } ;;
2272 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
2277 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2278 if test x${gcc_gxx_include_dir} = x; then
2279 if test x${enable_version_specific_runtime_libs} = xyes; then
2280 gcc_gxx_include_dir='${libsubdir}/include/c++'
2282 libstdcxx_incdir='include/c++/$(version)'
2283 if test x$host != x$target; then
2284 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2286 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
2291 # Check whether --with-cpp_install_dir was given.
2292 if test "${with_cpp_install_dir+set}" = set; then
2293 withval=$with_cpp_install_dir; if test x$withval = xyes; then
2294 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2295 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2296 { (exit 1); exit 1; }; }
2297 elif test x$withval != xno; then
2298 cpp_install_dir=$withval
2303 # We would like to our source tree to be readonly. However when releases or
2304 # pre-releases are generated, the flex/bison generated files as well as the
2305 # various formats of manuals need to be included along with the rest of the
2306 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2309 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2310 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2311 # Check whether --enable-generated-files-in-srcdir was given.
2312 if test "${enable_generated_files_in_srcdir+set}" = set; then
2313 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2315 generated_files_in_srcdir=no
2319 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2320 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2322 if test "$generated_files_in_srcdir" = "yes"; then
2329 # -------------------
2330 # Find default linker
2331 # -------------------
2335 # Check whether --with-gnu-ld was given.
2336 if test "${with_gnu_ld+set}" = set; then
2337 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2343 # With pre-defined ld
2345 # Check whether --with-ld was given.
2346 if test "${with_ld+set}" = set; then
2347 withval=$with_ld; DEFAULT_LINKER="$with_ld"
2350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2351 if test ! -x "$DEFAULT_LINKER"; then
2352 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2353 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2354 { (exit 1); exit 1; }; }
2355 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2359 cat >>confdefs.h <<_ACEOF
2360 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2365 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
2367 cat >>confdefs.h <<_ACEOF
2368 #define HAVE_GNU_LD $gnu_ld
2372 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2373 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2375 if test x"$gnu_ld_flag" = x"no"; then
2376 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2377 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2379 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2380 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2383 { echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6; }
2387 # With demangler in GNU ld
2389 # Check whether --with-demangler-in-ld was given.
2390 if test "${with_demangler_in_ld+set}" = set; then
2391 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2397 # ----------------------
2398 # Find default assembler
2399 # ----------------------
2403 # Check whether --with-gnu-as was given.
2404 if test "${with_gnu_as+set}" = set; then
2405 withval=$with_gnu_as; gas_flag="$with_gnu_as"
2412 # Check whether --with-as was given.
2413 if test "${with_as+set}" = set; then
2414 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2417 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2418 if test ! -x "$DEFAULT_ASSEMBLER"; then
2419 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2420 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2421 { (exit 1); exit 1; }; }
2422 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2426 cat >>confdefs.h <<_ACEOF
2427 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2432 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2434 cat >>confdefs.h <<_ACEOF
2435 #define HAVE_GNU_AS $gnu_as
2439 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2440 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2441 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2442 if test x"$gas_flag" = x"no"; then
2443 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2444 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2446 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2447 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2450 { echo "$as_me:$LINENO: result: no" >&5
2451 echo "${ECHO_T}no" >&6; }
2458 # If a non-executable a.out is present (e.g. created by GNU as above even if
2459 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2460 # file, even when creating an executable, so an execution test fails.
2461 # Remove possible default executable files to avoid this.
2463 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2464 # Autoconf includes it.
2465 rm -f a.out a.exe b.out
2467 # Find the native compiler
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2512 if test -z "$ac_cv_prog_CC"; then
2514 # Extract the first word of "gcc", so it can be a program name with args.
2515 set dummy gcc; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$ac_ct_CC"; then
2522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_ac_ct_CC="gcc"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542 if test -n "$ac_ct_CC"; then
2543 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2544 echo "${ECHO_T}$ac_ct_CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2550 if test "x$ac_ct_CC" = x; then
2553 case $cross_compiling:$ac_tool_warned in
2555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet. If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&5
2558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561 ac_tool_warned=yes ;;
2569 if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}cc; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_CC="${ac_tool_prefix}cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CC"; then
2600 { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2610 if test -z "$CC"; then
2611 # Extract the first word of "cc", so it can be a program name with args.
2612 set dummy cc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2630 ac_prog_rejected=yes
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 if test $ac_prog_rejected = yes; then
2642 # We found a bogon in the path, so make sure we never use it.
2643 set dummy $ac_cv_prog_CC
2645 if test $# != 0; then
2646 # We chose a different compiler from the bogus one.
2647 # However, it has the same basename, so the bogon will be chosen
2648 # first if we set CC to just the basename; use the full file name.
2650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2656 if test -n "$CC"; then
2657 { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2660 { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2666 if test -z "$CC"; then
2667 if test -n "$ac_tool_prefix"; then
2668 for ac_prog in cl.exe
2670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test -n "$CC"; then
2699 { echo "$as_me:$LINENO: result: $CC" >&5
2700 echo "${ECHO_T}$CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$CC" && break
2710 if test -z "$CC"; then
2712 for ac_prog in cl.exe
2714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2715 set dummy $ac_prog; ac_word=$2
2716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_CC="$ac_prog"
2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744 echo "${ECHO_T}$ac_ct_CC" >&6; }
2746 { echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6; }
2751 test -n "$ac_ct_CC" && break
2754 if test "x$ac_ct_CC" = x; then
2757 case $cross_compiling:$ac_tool_warned in
2759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2760 whose name does not start with the host triplet. If you think this
2761 configuration is useful to you, please write to autoconf@gnu.org." >&5
2762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2763 whose name does not start with the host triplet. If you think this
2764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2765 ac_tool_warned=yes ;;
2774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2775 See \`config.log' for more details." >&5
2776 echo "$as_me: error: no acceptable C compiler found in \$PATH
2777 See \`config.log' for more details." >&2;}
2778 { (exit 1); exit 1; }; }
2780 # Provide some information about the compiler.
2781 echo "$as_me:$LINENO: checking for C compiler version" >&5
2782 ac_compiler=`set X $ac_compile; echo $2`
2783 { (ac_try="$ac_compiler --version >&5"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compiler --version >&5") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
2793 { (ac_try="$ac_compiler -v >&5"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compiler -v >&5") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2803 { (ac_try="$ac_compiler -V >&5"
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compiler -V >&5") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2829 ac_clean_files_save=$ac_clean_files
2830 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2831 # Try to create an executable without -o first, disregard a.out.
2832 # It will help us diagnose broken compilers, and finding out an intuition
2834 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2835 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2838 # List of possible output files, starting from the most likely.
2839 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2840 # only as a last resort. b.out is created by i960 compilers.
2841 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2843 # The IRIX 6 linker writes into existing files which may not be
2844 # executable, retaining their permissions. Remove them first so a
2845 # subsequent execution test works.
2847 for ac_file in $ac_files
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2856 if { (ac_try="$ac_link_default"
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_link_default") 2>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; then
2866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2871 for ac_file in $ac_files ''
2873 test -f "$ac_file" || continue
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2878 # We found the default executable, but exeext='' is most
2882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886 # We set ac_cv_exeext here because the later test for it is not
2887 # safe: cross compilers may not add the suffix if given an `-o'
2888 # argument, so we may need to know it at that point already.
2889 # Even if this section looks crufty: it has the advantage of
2896 test "$ac_cv_exeext" = no && ac_cv_exeext=
2902 { echo "$as_me:$LINENO: result: $ac_file" >&5
2903 echo "${ECHO_T}$ac_file" >&6; }
2904 if test -z "$ac_file"; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: C compiler cannot create executables
2911 See \`config.log' for more details." >&2;}
2912 { (exit 77); exit 77; }; }
2915 ac_exeext=$ac_cv_exeext
2917 # Check that the compiler produces executables we can run. If not, either
2918 # the compiler is broken, or we cross compile.
2919 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2920 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2921 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2922 # If not cross compiling, check that we can run a simple program.
2923 if test "$cross_compiling" != yes; then
2924 if { ac_try='./$ac_file'
2925 { (case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_try") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2936 if test "$cross_compiling" = maybe; then
2939 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot run C compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&2;}
2945 { (exit 1); exit 1; }; }
2949 { echo "$as_me:$LINENO: result: yes" >&5
2950 echo "${ECHO_T}yes" >&6; }
2952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2958 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959 echo "${ECHO_T}$cross_compiling" >&6; }
2961 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2963 if { (ac_try="$ac_link"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_link") 2>&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; then
2973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 for ac_file in conftest.exe conftest conftest.*; do
2978 test -f "$ac_file" || continue
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2994 rm -f conftest$ac_cv_exeext
2995 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2996 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3001 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3003 if test "${ac_cv_objext+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.o conftest.obj
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; then
3032 for ac_file in conftest.o conftest.obj conftest.*; do
3033 test -f "$ac_file" || continue;
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3045 See \`config.log' for more details." >&5
3046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3047 See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3054 echo "${ECHO_T}$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3111 GCC=`test $ac_compiler_gnu = yes && echo yes`
3112 ac_test_CFLAGS=${CFLAGS+set}
3113 ac_save_CFLAGS=$CFLAGS
3114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_g+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 ac_save_c_werror_flag=$ac_c_werror_flag
3120 ac_c_werror_flag=yes
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3200 cat >conftest.$ac_ext <<_ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_c_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3260 if test "$GCC" = yes; then
3266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_cc_c89+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 ac_cv_prog_cc_c89=no
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3281 #include <sys/types.h>
3282 #include <sys/stat.h>
3283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284 struct buf { int x; };
3285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286 static char *e (p, i)
3292 static char *f (char * (*g) (char **, int), char **p, ...)
3297 s = g (p, va_arg (v,int));
3302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
3305 as 'x'. The following induces an error, until -std is added to get
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
3308 that's true only with -std. */
3309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 CC="$ac_save_CC $ac_arg"
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 rm -f conftest.$ac_ext
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test "x$CC" != xcc; then
3388 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3389 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3391 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3392 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3394 set dummy $CC; ac_cc=`echo $2 |
3395 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3414 # Make sure it works both with $CC and with simple cc.
3415 # We do the test twice because some compilers refuse to overwrite an
3416 # existing .o file with -o, though they will create one.
3417 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3419 if { (case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_try") 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); };
3438 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3439 if test "x$CC" != xcc; then
3440 # Test first that cc exists at all.
3441 if { ac_try='cc -c conftest.$ac_ext >&5'
3442 { (case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_try") 2>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3453 if { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); };
3475 # cc exists but doesn't like -o.
3476 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3481 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3483 rm -f core conftest*
3486 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3487 { echo "$as_me:$LINENO: result: yes" >&5
3488 echo "${ECHO_T}yes" >&6; }
3490 { echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6; }
3493 cat >>confdefs.h <<\_ACEOF
3494 #define NO_MINUS_C_MINUS_O 1
3499 # expand $ac_aux_dir to an absolute path
3500 am_aux_dir=`cd $ac_aux_dir && pwd`
3502 # FIXME: we rely on the cache variable name because
3503 # there is no other way.
3505 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3506 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3507 # Losing compiler, so override with the script.
3508 # FIXME: It is wrong to rewrite CC.
3509 # But if we don't then we get into trouble of one sort or another.
3510 # A longer-term fix would be to have automake use am__CC in this case,
3511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3512 CC="$am_aux_dir/compile $CC"
3515 # autoconf is lame and doesn't give us any substitution variable for this.
3516 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3517 NO_MINUS_C_MINUS_O=yes
3519 OUTPUT_OPTION='-o $@'
3524 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3525 # optimizations to be activated explicitly by the toplevel.
3527 */prev-gcc/xgcc*) ;;
3528 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3532 # -------------------------
3533 # Check C compiler features
3534 # -------------------------
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3542 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3543 # On Suns, sometimes $CPP names a directory.
3544 if test -n "$CPP" && test -d "$CPP"; then
3547 if test -z "$CPP"; then
3548 if test "${ac_cv_prog_CPP+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 # Double quotes because CPP needs to be expanded
3552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3555 for ac_c_preproc_warn_flag in '' yes
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3570 # include <limits.h>
3572 # include <assert.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null && {
3589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3590 test ! -s conftest.err
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 # Broken: fails on valid input.
3601 rm -f conftest.err conftest.$ac_ext
3603 # OK, works on sane cases. Now check whether nonexistent headers
3604 # can be detected and how.
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <ac_nonexistent.h>
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3629 # Broken: success on invalid input.
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Passes both tests.
3640 rm -f conftest.err conftest.$ac_ext
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3657 { echo "$as_me:$LINENO: result: $CPP" >&5
3658 echo "${ECHO_T}$CPP" >&6; }
3660 for ac_c_preproc_warn_flag in '' yes
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 # include <limits.h>
3677 # include <assert.h>
3681 if { (ac_try="$ac_cpp conftest.$ac_ext"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3689 grep -v '^ *+' conftest.er1 >conftest.err
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } >/dev/null && {
3694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 # Broken: fails on valid input.
3706 rm -f conftest.err conftest.$ac_ext
3708 # OK, works on sane cases. Now check whether nonexistent headers
3709 # can be detected and how.
3710 cat >conftest.$ac_ext <<_ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 #include <ac_nonexistent.h>
3718 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null && {
3731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3734 # Broken: success on invalid input.
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 # Passes both tests.
3745 rm -f conftest.err conftest.$ac_ext
3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3749 rm -f conftest.err conftest.$ac_ext
3750 if $ac_preproc_ok; then
3753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3754 See \`config.log' for more details." >&5
3755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3756 See \`config.log' for more details." >&2;}
3757 { (exit 1); exit 1; }; }
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 { echo "$as_me:$LINENO: checking for inline" >&5
3768 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3769 if test "${ac_cv_c_inline+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 for ac_kw in inline __inline__ __inline; do
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 static $ac_kw foo_t static_foo () {return 0; }
3783 $ac_kw foo_t foo () {return 0; }
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3804 ac_cv_c_inline=$ac_kw
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 test "$ac_cv_c_inline" != no && break
3817 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3818 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3821 case $ac_cv_c_inline in
3824 case $ac_cv_c_inline in
3826 *) ac_val=$ac_cv_c_inline;;
3828 cat >>confdefs.h <<_ACEOF
3830 #define inline $ac_val
3837 # sizeof(char) is 1 by definition.
3839 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3840 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_GREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 # Extract the first word of "grep ggrep" to use in msg output
3845 if test -z "$GREP"; then
3846 set dummy grep ggrep; ac_prog_name=$2
3847 if test "${ac_cv_path_GREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 ac_path_GREP_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in grep ggrep; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3861 # Check for GNU ac_path_GREP and select it if it is found.
3862 # Check for GNU $ac_path_GREP
3863 case `"$ac_path_GREP" --version 2>&1` in
3865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3868 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3871 cat "conftest.in" "conftest.in" >"conftest.tmp"
3872 mv "conftest.tmp" "conftest.in"
3873 cp "conftest.in" "conftest.nl"
3874 echo 'GREP' >> "conftest.nl"
3875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877 ac_count=`expr $ac_count + 1`
3878 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_GREP="$ac_path_GREP"
3881 ac_path_GREP_max=$ac_count
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 $ac_path_GREP_found && break 3
3900 GREP="$ac_cv_path_GREP"
3901 if test -z "$GREP"; then
3902 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3903 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3904 { (exit 1); exit 1; }; }
3908 ac_cv_path_GREP=$GREP
3913 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3914 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3915 GREP="$ac_cv_path_GREP"
3918 { echo "$as_me:$LINENO: checking for egrep" >&5
3919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_EGREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3924 then ac_cv_path_EGREP="$GREP -E"
3926 # Extract the first word of "egrep" to use in msg output
3927 if test -z "$EGREP"; then
3928 set dummy egrep; ac_prog_name=$2
3929 if test "${ac_cv_path_EGREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_path_EGREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in egrep; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3943 # Check for GNU ac_path_EGREP and select it if it is found.
3944 # Check for GNU $ac_path_EGREP
3945 case `"$ac_path_EGREP" --version 2>&1` in
3947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 echo 'EGREP' >> "conftest.nl"
3957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 ac_count=`expr $ac_count + 1`
3960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_EGREP="$ac_path_EGREP"
3963 ac_path_EGREP_max=$ac_count
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972 $ac_path_EGREP_found && break 3
3982 EGREP="$ac_cv_path_EGREP"
3983 if test -z "$EGREP"; then
3984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986 { (exit 1); exit 1; }; }
3990 ac_cv_path_EGREP=$EGREP
3996 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3997 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3998 EGREP="$ac_cv_path_EGREP"
4001 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4003 if test "${ac_cv_header_stdc+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4042 ac_cv_header_stdc=yes
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 ac_cv_header_stdc=no
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 if test $ac_cv_header_stdc = yes; then
4053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "memchr" >/dev/null 2>&1; then
4067 ac_cv_header_stdc=no
4073 if test $ac_cv_header_stdc = yes; then
4074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "free" >/dev/null 2>&1; then
4088 ac_cv_header_stdc=no
4094 if test $ac_cv_header_stdc = yes; then
4095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4096 if test "$cross_compiling" = yes; then
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4107 #if ((' ' & 0x0FF) == 0x020)
4108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4111 # define ISLOWER(c) \
4112 (('a' <= (c) && (c) <= 'i') \
4113 || ('j' <= (c) && (c) <= 'r') \
4114 || ('s' <= (c) && (c) <= 'z'))
4115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4123 for (i = 0; i < 256; i++)
4124 if (XOR (islower (i), ISLOWER (i))
4125 || toupper (i) != TOUPPER (i))
4130 rm -f conftest$ac_exeext
4131 if { (ac_try="$ac_link"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_link") 2>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4152 echo "$as_me: program exited with status $ac_status" >&5
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4157 ac_cv_header_stdc=no
4159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4167 if test $ac_cv_header_stdc = yes; then
4169 cat >>confdefs.h <<\_ACEOF
4170 #define STDC_HEADERS 1
4175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4186 inttypes.h stdint.h unistd.h
4188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 $ac_includes_default
4202 #include <$ac_header>
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 eval "$as_ac_Header=yes"
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 eval "$as_ac_Header=no"
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ac_res=`eval echo '${'$as_ac_Header'}'`
4232 { echo "$as_me:$LINENO: result: $ac_res" >&5
4233 echo "${ECHO_T}$ac_res" >&6; }
4234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235 cat >>confdefs.h <<_ACEOF
4236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 { echo "$as_me:$LINENO: checking for void *" >&5
4245 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4246 if test "${ac_cv_type_void_p+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4256 typedef void * ac__type_new_;
4260 if ((ac__type_new_ *) 0)
4262 if (sizeof (ac__type_new_))
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest.$ac_objext; then
4285 ac_cv_type_void_p=yes
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ac_cv_type_void_p=no
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4296 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4298 # The cast to long int works around a bug in the HP C Compiler
4299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4301 # This bug is HP SR number 8606223364.
4302 { echo "$as_me:$LINENO: checking size of void *" >&5
4303 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4304 if test "${ac_cv_sizeof_void_p+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test "$cross_compiling" = yes; then
4308 # Depending upon the size, compute the lo and hi bounds.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4316 typedef void * ac__type_sizeof_;
4320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4327 rm -f conftest.$ac_objext
4328 if { (ac_try="$ac_compile"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_compile") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest.$ac_objext; then
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4353 typedef void * ac__type_sizeof_;
4357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4364 rm -f conftest.$ac_objext
4365 if { (ac_try="$ac_compile"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_hi=$ac_mid; break
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_lo=`expr $ac_mid + 1`
4387 if test $ac_lo -le $ac_mid; then
4391 ac_mid=`expr 2 '*' $ac_mid + 1`
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407 typedef void * ac__type_sizeof_;
4411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 typedef void * ac__type_sizeof_;
4448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest.$ac_objext; then
4472 ac_lo=$ac_mid; break
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_hi=`expr '(' $ac_mid ')' - 1`
4478 if test $ac_mid -le $ac_hi; then
4482 ac_mid=`expr 2 '*' $ac_mid`
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 # Binary search between lo and hi bounds.
4499 while test "x$ac_lo" != "x$ac_hi"; do
4500 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4508 typedef void * ac__type_sizeof_;
4512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest.$ac_objext; then
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 ac_lo=`expr '(' $ac_mid ')' + 1`
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4548 '') if test "$ac_cv_type_void_p" = yes; then
4549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4550 See \`config.log' for more details." >&5
4551 echo "$as_me: error: cannot compute sizeof (void *)
4552 See \`config.log' for more details." >&2;}
4553 { (exit 77); exit 77; }; }
4555 ac_cv_sizeof_void_p=0
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 $ac_includes_default
4566 typedef void * ac__type_sizeof_;
4567 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4568 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4575 FILE *f = fopen ("conftest.val", "w");
4578 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4580 long int i = longval ();
4581 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4583 fprintf (f, "%ld\n", i);
4587 unsigned long int i = ulongval ();
4588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4590 fprintf (f, "%lu\n", i);
4592 return ferror (f) || fclose (f) != 0;
4598 rm -f conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_sizeof_void_p=`cat conftest.val`
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4625 if test "$ac_cv_type_void_p" = yes; then
4626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (void *)
4629 See \`config.log' for more details." >&2;}
4630 { (exit 77); exit 77; }; }
4632 ac_cv_sizeof_void_p=0
4635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4640 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4644 cat >>confdefs.h <<_ACEOF
4645 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4649 { echo "$as_me:$LINENO: checking for short" >&5
4650 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4651 if test "${ac_cv_type_short+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 $ac_includes_default
4661 typedef short ac__type_new_;
4665 if ((ac__type_new_ *) 0)
4667 if (sizeof (ac__type_new_))
4673 rm -f conftest.$ac_objext
4674 if { (ac_try="$ac_compile"
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_compile") 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && {
4687 test -z "$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 } && test -s conftest.$ac_objext; then
4690 ac_cv_type_short=yes
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4701 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4703 # The cast to long int works around a bug in the HP C Compiler
4704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4706 # This bug is HP SR number 8606223364.
4707 { echo "$as_me:$LINENO: checking size of short" >&5
4708 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4709 if test "${ac_cv_sizeof_short+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test "$cross_compiling" = yes; then
4713 # Depending upon the size, compute the lo and hi bounds.
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 $ac_includes_default
4721 typedef short ac__type_sizeof_;
4725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_compile") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest.$ac_objext; then
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4758 typedef short ac__type_sizeof_;
4762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_compile") 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } && {
4783 test -z "$ac_c_werror_flag" ||
4784 test ! -s conftest.err
4785 } && test -s conftest.$ac_objext; then
4786 ac_hi=$ac_mid; break
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 ac_lo=`expr $ac_mid + 1`
4792 if test $ac_lo -le $ac_mid; then
4796 ac_mid=`expr 2 '*' $ac_mid + 1`
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_includes_default
4812 typedef short ac__type_sizeof_;
4816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4849 typedef short ac__type_sizeof_;
4853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_lo=$ac_mid; break
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_hi=`expr '(' $ac_mid ')' - 1`
4883 if test $ac_mid -le $ac_hi; then
4887 ac_mid=`expr 2 '*' $ac_mid`
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 # Binary search between lo and hi bounds.
4904 while test "x$ac_lo" != "x$ac_hi"; do
4905 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4913 typedef short ac__type_sizeof_;
4917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_lo=`expr '(' $ac_mid ')' + 1`
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ?*) ac_cv_sizeof_short=$ac_lo;;
4953 '') if test "$ac_cv_type_short" = yes; then
4954 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4955 See \`config.log' for more details." >&5
4956 echo "$as_me: error: cannot compute sizeof (short)
4957 See \`config.log' for more details." >&2;}
4958 { (exit 77); exit 77; }; }
4960 ac_cv_sizeof_short=0
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4971 typedef short ac__type_sizeof_;
4972 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4973 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4980 FILE *f = fopen ("conftest.val", "w");
4983 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4985 long int i = longval ();
4986 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4988 fprintf (f, "%ld\n", i);
4992 unsigned long int i = ulongval ();
4993 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4995 fprintf (f, "%lu\n", i);
4997 return ferror (f) || fclose (f) != 0;
5003 rm -f conftest$ac_exeext
5004 if { (ac_try="$ac_link"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_link") 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5014 { (case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_try") 2>&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_sizeof_short=`cat conftest.val`
5025 echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 if test "$ac_cv_type_short" = yes; then
5031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5032 See \`config.log' for more details." >&5
5033 echo "$as_me: error: cannot compute sizeof (short)
5034 See \`config.log' for more details." >&2;}
5035 { (exit 77); exit 77; }; }
5037 ac_cv_sizeof_short=0
5040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5045 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5049 cat >>confdefs.h <<_ACEOF
5050 #define SIZEOF_SHORT $ac_cv_sizeof_short
5054 { echo "$as_me:$LINENO: checking for int" >&5
5055 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5056 if test "${ac_cv_type_int+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 typedef int ac__type_new_;
5070 if ((ac__type_new_ *) 0)
5072 if (sizeof (ac__type_new_))
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5106 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5108 # The cast to long int works around a bug in the HP C Compiler
5109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5111 # This bug is HP SR number 8606223364.
5112 { echo "$as_me:$LINENO: checking size of int" >&5
5113 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5114 if test "${ac_cv_sizeof_int+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 if test "$cross_compiling" = yes; then
5118 # Depending upon the size, compute the lo and hi bounds.
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 $ac_includes_default
5126 typedef int ac__type_sizeof_;
5130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5137 rm -f conftest.$ac_objext
5138 if { (ac_try="$ac_compile"
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_compile") 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest.$ac_objext; then
5156 cat >conftest.$ac_ext <<_ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5163 typedef int ac__type_sizeof_;
5167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5183 grep -v '^ *+' conftest.er1 >conftest.err
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && {
5188 test -z "$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 } && test -s conftest.$ac_objext; then
5191 ac_hi=$ac_mid; break
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ac_lo=`expr $ac_mid + 1`
5197 if test $ac_lo -le $ac_mid; then
5201 ac_mid=`expr 2 '*' $ac_mid + 1`
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5217 typedef int ac__type_sizeof_;
5221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5254 typedef int ac__type_sizeof_;
5258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_lo=$ac_mid; break
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_hi=`expr '(' $ac_mid ')' - 1`
5288 if test $ac_mid -le $ac_hi; then
5292 ac_mid=`expr 2 '*' $ac_mid`
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 # Binary search between lo and hi bounds.
5309 while test "x$ac_lo" != "x$ac_hi"; do
5310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 typedef int ac__type_sizeof_;
5322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5338 grep -v '^ *+' conftest.er1 >conftest.err
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_lo=`expr '(' $ac_mid ')' + 1`
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ?*) ac_cv_sizeof_int=$ac_lo;;
5358 '') if test "$ac_cv_type_int" = yes; then
5359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: cannot compute sizeof (int)
5362 See \`config.log' for more details." >&2;}
5363 { (exit 77); exit 77; }; }
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5376 typedef int ac__type_sizeof_;
5377 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5378 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5385 FILE *f = fopen ("conftest.val", "w");
5388 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5390 long int i = longval ();
5391 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5393 fprintf (f, "%ld\n", i);
5397 unsigned long int i = ulongval ();
5398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5400 fprintf (f, "%lu\n", i);
5402 return ferror (f) || fclose (f) != 0;
5408 rm -f conftest$ac_exeext
5409 if { (ac_try="$ac_link"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_link") 2>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5419 { (case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_try") 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_sizeof_int=`cat conftest.val`
5430 echo "$as_me: program exited with status $ac_status" >&5
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5435 if test "$ac_cv_type_int" = yes; then
5436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5437 See \`config.log' for more details." >&5
5438 echo "$as_me: error: cannot compute sizeof (int)
5439 See \`config.log' for more details." >&2;}
5440 { (exit 77); exit 77; }; }
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5449 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5450 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5454 cat >>confdefs.h <<_ACEOF
5455 #define SIZEOF_INT $ac_cv_sizeof_int
5459 { echo "$as_me:$LINENO: checking for long" >&5
5460 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5461 if test "${ac_cv_type_long+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 typedef long ac__type_new_;
5475 if ((ac__type_new_ *) 0)
5477 if (sizeof (ac__type_new_))
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5511 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { echo "$as_me:$LINENO: checking size of long" >&5
5518 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5519 if test "${ac_cv_sizeof_long+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 if test "$cross_compiling" = yes; then
5523 # Depending upon the size, compute the lo and hi bounds.
5524 cat >conftest.$ac_ext <<_ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 $ac_includes_default
5531 typedef long ac__type_sizeof_;
5535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 typedef long ac__type_sizeof_;
5572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 ac_hi=$ac_mid; break
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 ac_lo=`expr $ac_mid + 1`
5602 if test $ac_lo -le $ac_mid; then
5606 ac_mid=`expr 2 '*' $ac_mid + 1`
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 $ac_includes_default
5622 typedef long ac__type_sizeof_;
5626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5633 rm -f conftest.$ac_objext
5634 if { (ac_try="$ac_compile"
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_compile") 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && {
5647 test -z "$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5659 typedef long ac__type_sizeof_;
5663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; 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 long 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 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 ac_lo=`expr '(' $ac_mid ')' + 1`
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ?*) ac_cv_sizeof_long=$ac_lo;;
5763 '') if test "$ac_cv_type_long" = yes; then
5764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5765 See \`config.log' for more details." >&5
5766 echo "$as_me: error: cannot compute sizeof (long)
5767 See \`config.log' for more details." >&2;}
5768 { (exit 77); exit 77; }; }
5774 cat >conftest.$ac_ext <<_ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5781 typedef long ac__type_sizeof_;
5782 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5783 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5790 FILE *f = fopen ("conftest.val", "w");
5793 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5795 long int i = longval ();
5796 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5798 fprintf (f, "%ld\n", i);
5802 unsigned long int i = ulongval ();
5803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5805 fprintf (f, "%lu\n", i);
5807 return ferror (f) || fclose (f) != 0;
5813 rm -f conftest$ac_exeext
5814 if { (ac_try="$ac_link"
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_link") 2>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5824 { (case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_try") 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_sizeof_long=`cat conftest.val`
5835 echo "$as_me: program exited with status $ac_status" >&5
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5840 if test "$ac_cv_type_long" = yes; then
5841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5842 See \`config.log' for more details." >&5
5843 echo "$as_me: error: cannot compute sizeof (long)
5844 See \`config.log' for more details." >&2;}
5845 { (exit 77); exit 77; }; }
5850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5855 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_LONG $ac_cv_sizeof_long
5864 { echo "$as_me:$LINENO: checking for long long" >&5
5865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5866 if test "${ac_cv_type_long_long+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 typedef long long ac__type_new_;
5880 if ((ac__type_new_ *) 0)
5882 if (sizeof (ac__type_new_))
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_cv_type_long_long=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_type_long_long=no
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5916 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5917 if test $ac_cv_type_long_long = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_LONG_LONG 1
5923 { echo "$as_me:$LINENO: checking for long long" >&5
5924 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5925 if test "${ac_cv_type_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5935 typedef long long ac__type_new_;
5939 if ((ac__type_new_ *) 0)
5941 if (sizeof (ac__type_new_))
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_cv_type_long_long=yes
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_cv_type_long_long=no
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5975 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5977 # The cast to long int works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 { echo "$as_me:$LINENO: checking size of long long" >&5
5982 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5983 if test "${ac_cv_sizeof_long_long+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 if test "$cross_compiling" = yes; then
5987 # Depending upon the size, compute the lo and hi bounds.
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 $ac_includes_default
5995 typedef long long ac__type_sizeof_;
5999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 typedef long long ac__type_sizeof_;
6036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 ac_hi=$ac_mid; break
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_lo=`expr $ac_mid + 1`
6066 if test $ac_lo -le $ac_mid; then
6070 ac_mid=`expr 2 '*' $ac_mid + 1`
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 typedef long long ac__type_sizeof_;
6090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 typedef long long ac__type_sizeof_;
6127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_lo=$ac_mid; break
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_hi=`expr '(' $ac_mid ')' - 1`
6157 if test $ac_mid -le $ac_hi; then
6161 ac_mid=`expr 2 '*' $ac_mid`
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 # Binary search between lo and hi bounds.
6178 while test "x$ac_lo" != "x$ac_hi"; do
6179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6187 typedef long long ac__type_sizeof_;
6191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_compile") 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && {
6212 test -z "$ac_c_werror_flag" ||
6213 test ! -s conftest.err
6214 } && test -s conftest.$ac_objext; then
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6220 ac_lo=`expr '(' $ac_mid ')' + 1`
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6227 '') if test "$ac_cv_type_long_long" = yes; then
6228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6229 See \`config.log' for more details." >&5
6230 echo "$as_me: error: cannot compute sizeof (long long)
6231 See \`config.log' for more details." >&2;}
6232 { (exit 77); exit 77; }; }
6234 ac_cv_sizeof_long_long=0
6238 cat >conftest.$ac_ext <<_ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6244 $ac_includes_default
6245 typedef long long ac__type_sizeof_;
6246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6254 FILE *f = fopen ("conftest.val", "w");
6257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6259 long int i = longval ();
6260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6262 fprintf (f, "%ld\n", i);
6266 unsigned long int i = ulongval ();
6267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6269 fprintf (f, "%lu\n", i);
6271 return ferror (f) || fclose (f) != 0;
6277 rm -f conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288 { (case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_try") 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_sizeof_long_long=`cat conftest.val`
6299 echo "$as_me: program exited with status $ac_status" >&5
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6304 if test "$ac_cv_type_long_long" = yes; then
6305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6306 See \`config.log' for more details." >&5
6307 echo "$as_me: error: cannot compute sizeof (long long)
6308 See \`config.log' for more details." >&2;}
6309 { (exit 77); exit 77; }; }
6311 ac_cv_sizeof_long_long=0
6314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6318 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6319 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6323 cat >>confdefs.h <<_ACEOF
6324 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6330 { echo "$as_me:$LINENO: checking for __int64" >&5
6331 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6332 if test "${ac_cv_type___int64+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 typedef __int64 ac__type_new_;
6346 if ((ac__type_new_ *) 0)
6348 if (sizeof (ac__type_new_))
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6363 grep -v '^ *+' conftest.er1 >conftest.err
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && {
6368 test -z "$ac_c_werror_flag" ||
6369 test ! -s conftest.err
6370 } && test -s conftest.$ac_objext; then
6371 ac_cv_type___int64=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_type___int64=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6382 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6383 if test $ac_cv_type___int64 = yes; then
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE___INT64 1
6389 { echo "$as_me:$LINENO: checking for __int64" >&5
6390 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6391 if test "${ac_cv_type___int64+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6401 typedef __int64 ac__type_new_;
6405 if ((ac__type_new_ *) 0)
6407 if (sizeof (ac__type_new_))
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest.$ac_objext; then
6430 ac_cv_type___int64=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_type___int64=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6441 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6443 # The cast to long int works around a bug in the HP C Compiler
6444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6446 # This bug is HP SR number 8606223364.
6447 { echo "$as_me:$LINENO: checking size of __int64" >&5
6448 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6449 if test "${ac_cv_sizeof___int64+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test "$cross_compiling" = yes; then
6453 # Depending upon the size, compute the lo and hi bounds.
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 __int64 ac__type_sizeof_;
6465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6498 typedef __int64 ac__type_sizeof_;
6502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest.$ac_objext; then
6526 ac_hi=$ac_mid; break
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 ac_lo=`expr $ac_mid + 1`
6532 if test $ac_lo -le $ac_mid; then
6536 ac_mid=`expr 2 '*' $ac_mid + 1`
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 typedef __int64 ac__type_sizeof_;
6556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6563 rm -f conftest.$ac_objext
6564 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6572 grep -v '^ *+' conftest.er1 >conftest.err
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 } && test -s conftest.$ac_objext; then
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6589 typedef __int64 ac__type_sizeof_;
6593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.$ac_objext; then
6617 ac_lo=$ac_mid; break
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_hi=`expr '(' $ac_mid ')' - 1`
6623 if test $ac_mid -le $ac_hi; then
6627 ac_mid=`expr 2 '*' $ac_mid`
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 # Binary search between lo and hi bounds.
6644 while test "x$ac_lo" != "x$ac_hi"; do
6645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 $ac_includes_default
6653 typedef __int64 ac__type_sizeof_;
6657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_compile") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_lo=`expr '(' $ac_mid ')' + 1`
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 ?*) ac_cv_sizeof___int64=$ac_lo;;
6693 '') if test "$ac_cv_type___int64" = yes; then
6694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6695 See \`config.log' for more details." >&5
6696 echo "$as_me: error: cannot compute sizeof (__int64)
6697 See \`config.log' for more details." >&2;}
6698 { (exit 77); exit 77; }; }
6700 ac_cv_sizeof___int64=0
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 $ac_includes_default
6711 typedef __int64 ac__type_sizeof_;
6712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6720 FILE *f = fopen ("conftest.val", "w");
6723 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6725 long int i = longval ();
6726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6728 fprintf (f, "%ld\n", i);
6732 unsigned long int i = ulongval ();
6733 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6735 fprintf (f, "%lu\n", i);
6737 return ferror (f) || fclose (f) != 0;
6743 rm -f conftest$ac_exeext
6744 if { (ac_try="$ac_link"
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_link") 2>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof___int64=`cat conftest.val`
6765 echo "$as_me: program exited with status $ac_status" >&5
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6770 if test "$ac_cv_type___int64" = yes; then
6771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6772 See \`config.log' for more details." >&5
6773 echo "$as_me: error: cannot compute sizeof (__int64)
6774 See \`config.log' for more details." >&2;}
6775 { (exit 77); exit 77; }; }
6777 ac_cv_sizeof___int64=0
6780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6785 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
6789 cat >>confdefs.h <<_ACEOF
6790 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6797 # ---------------------
6798 # Warnings and checking
6799 # ---------------------
6801 # Check $CC warning features (if it's GCC).
6802 # We want to use -pedantic, but we don't want warnings about
6805 # * overlong strings
6806 # So, we only use -pedantic if we can disable those warnings.
6809 save_CFLAGS="$CFLAGS"
6810 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6811 -Wmissing-prototypes; do
6812 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6814 { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6815 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6816 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6835 rm -f conftest.$ac_objext
6836 if { (ac_try="$ac_compile"
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 eval "$as_acx_Woption=yes"
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 eval "$as_acx_Woption=no"
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863 ac_res=`eval echo '${'$as_acx_Woption'}'`
6864 { echo "$as_me:$LINENO: result: $ac_res" >&5
6865 echo "${ECHO_T}$ac_res" >&6; }
6866 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6867 loose_warn="$loose_warn${loose_warn:+ }$option"
6871 CFLAGS="$save_CFLAGS"
6874 save_CFLAGS="$CFLAGS"
6875 for option in -Wc++-compat; do
6876 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6878 { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6879 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6880 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 eval "$as_acx_Woption=yes"
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 eval "$as_acx_Woption=no"
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 ac_res=`eval echo '${'$as_acx_Woption'}'`
6928 { echo "$as_me:$LINENO: result: $ac_res" >&5
6929 echo "${ECHO_T}$ac_res" >&6; }
6930 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6931 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6935 CFLAGS="$save_CFLAGS"
6938 save_CFLAGS="$CFLAGS"
6939 for option in -Wold-style-definition \
6940 -Wmissing-format-attribute; do
6941 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6943 { echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6944 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6; }
6945 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext
6965 if { (ac_try="$ac_compile"
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.$ac_objext; then
6981 eval "$as_acx_Woption=yes"
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 eval "$as_acx_Woption=no"
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 ac_res=`eval echo '${'$as_acx_Woption'}'`
6993 { echo "$as_me:$LINENO: result: $ac_res" >&5
6994 echo "${ECHO_T}$ac_res" >&6; }
6995 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6996 strict_warn="$strict_warn${strict_warn:+ }$option"
7000 CFLAGS="$save_CFLAGS"
7002 if test "$GCC" = yes; then
7003 { echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7004 -Wno-overlength-strings" >&5
7005 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7006 -Wno-overlength-strings... $ECHO_C" >&6; }
7007 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 save_CFLAGS="$CFLAGS"
7011 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7012 -Wno-overlength-strings"
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 CFLAGS="$save_CFLAGS"
7056 { echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7057 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6; }
7058 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7059 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7060 -Wno-overlength-strings"
7067 # Check whether --enable-werror-always was given.
7068 if test "${enable_werror_always+set}" = set; then
7069 enableval=$enable_werror_always;
7071 enable_werror_always=no
7074 if test $enable_werror_always = yes; then
7075 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7081 # The above macros do nothing if the compiler is not GCC. However, the
7082 # Makefile has more goo to add other flags, so this variabl is used to
7083 # enables warnings only for GCC.
7085 if test "x$GCC" = "xyes"; then
7086 warn_cflags='$(GCC_WARN_CFLAGS)'
7090 # Enable expensive internal checks
7092 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7096 # Check whether --enable-checking was given.
7097 if test "${enable_checking+set}" = set; then
7098 enableval=$enable_checking; ac_checking_flags="${enableval}"
7101 # Determine the default checks.
7102 if test x$is_release = x ; then
7103 ac_checking_flags=yes
7105 ac_checking_flags=release
7109 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7110 for check in release $ac_checking_flags
7113 # these set all the flags to specific states
7114 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7115 ac_fold_checking= ; ac_gc_checking=1 ;
7116 ac_gc_always_collect= ; ac_rtl_checking= ;
7117 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7118 ac_tree_checking=1 ; ac_valgrind_checking= ;
7119 ac_types_checking= ;;
7120 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7121 ac_fold_checking= ; ac_gc_checking= ;
7122 ac_gc_always_collect= ; ac_rtl_checking= ;
7123 ac_rtlflag_checking= ; ac_runtime_checking= ;
7124 ac_tree_checking= ; ac_valgrind_checking= ;
7125 ac_types_checking= ;;
7126 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7127 ac_fold_checking=1 ; ac_gc_checking=1 ;
7128 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7129 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7130 ac_tree_checking=1 ; ac_valgrind_checking= ;
7131 ac_types_checking=1 ;;
7132 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7133 ac_fold_checking= ; ac_gc_checking= ;
7134 ac_gc_always_collect= ; ac_rtl_checking= ;
7135 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7136 ac_tree_checking= ; ac_valgrind_checking= ;
7137 ac_types_checking= ;;
7138 # these enable particular checks
7139 assert) ac_assert_checking=1 ;;
7140 df) ac_df_checking=1 ;;
7141 fold) ac_fold_checking=1 ;;
7142 gc) ac_gc_checking=1 ;;
7143 gcac) ac_gc_always_collect=1 ;;
7144 misc) ac_checking=1 ;;
7145 rtl) ac_rtl_checking=1 ;;
7146 rtlflag) ac_rtlflag_checking=1 ;;
7147 runtime) ac_runtime_checking=1 ;;
7148 tree) ac_tree_checking=1 ;;
7149 types) ac_types_checking=1 ;;
7150 valgrind) ac_valgrind_checking=1 ;;
7151 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7152 echo "$as_me: error: unknown check category $check" >&2;}
7153 { (exit 1); exit 1; }; } ;;
7159 if test x$ac_checking != x ; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define ENABLE_CHECKING 1
7165 nocommon_flag=-fno-common
7168 if test x$ac_df_checking != x ; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define ENABLE_DF_CHECKING 1
7175 if test x$ac_assert_checking != x ; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_ASSERT_CHECKING 1
7183 if test x$ac_runtime_checking != x ; then
7185 cat >>confdefs.h <<\_ACEOF
7186 #define ENABLE_RUNTIME_CHECKING 1
7190 if test x$ac_tree_checking != x ; then
7192 cat >>confdefs.h <<\_ACEOF
7193 #define ENABLE_TREE_CHECKING 1
7196 TREEBROWSER=tree-browser.o
7198 if test x$ac_types_checking != x ; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define ENABLE_TYPES_CHECKING 1
7206 if test x$ac_rtl_checking != x ; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define ENABLE_RTL_CHECKING 1
7213 if test x$ac_rtlflag_checking != x ; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define ENABLE_RTL_FLAG_CHECKING 1
7220 if test x$ac_gc_checking != x ; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define ENABLE_GC_CHECKING 1
7227 if test x$ac_gc_always_collect != x ; then
7229 cat >>confdefs.h <<\_ACEOF
7230 #define ENABLE_GC_ALWAYS_COLLECT 1
7234 if test x$ac_fold_checking != x ; then
7236 cat >>confdefs.h <<\_ACEOF
7237 #define ENABLE_FOLD_CHECKING 1
7241 valgrind_path_defines=
7244 if test "${ac_cv_header_valgrind_h+set}" = set; then
7245 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7246 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7247 if test "${ac_cv_header_valgrind_h+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7251 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7253 # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7255 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 #include <valgrind.h>
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_header_compiler=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_header_compiler=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7292 echo "${ECHO_T}$ac_header_compiler" >&6; }
7294 # Is the header present?
7295 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7296 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 #include <valgrind.h>
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev/null && {
7318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7321 ac_header_preproc=yes
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_header_preproc=no
7329 rm -f conftest.err conftest.$ac_ext
7330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7331 echo "${ECHO_T}$ac_header_preproc" >&6; }
7333 # So? What about this header?
7334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7336 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7337 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7339 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7340 ac_header_preproc=yes
7343 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7348 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7350 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7354 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7358 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7359 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7360 if test "${ac_cv_header_valgrind_h+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_cv_header_valgrind_h=$ac_header_preproc
7365 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7366 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7369 if test $ac_cv_header_valgrind_h = yes; then
7377 if test x$ac_valgrind_checking != x ; then
7378 # It is certainly possible that there's valgrind but no valgrind.h.
7379 # GCC relies on making annotations so we must have both.
7380 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7381 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <valgrind/memcheck.h>
7389 #ifndef VALGRIND_DISCARD
7390 #error VALGRIND_DISCARD not defined
7393 if { (ac_try="$ac_cpp conftest.$ac_ext"
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } >/dev/null && {
7406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7409 gcc_cv_header_valgrind_memcheck_h=yes
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 gcc_cv_header_valgrind_memcheck_h=no
7417 rm -f conftest.err conftest.$ac_ext
7418 { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7419 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
7420 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7421 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 #include <memcheck.h>
7429 #ifndef VALGRIND_DISCARD
7430 #error VALGRIND_DISCARD not defined
7433 if { (ac_try="$ac_cpp conftest.$ac_ext"
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null && {
7446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7449 gcc_cv_header_memcheck_h=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 gcc_cv_header_memcheck_h=no
7457 rm -f conftest.err conftest.$ac_ext
7458 { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7459 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
7461 # Prepare PATH_SEPARATOR.
7462 # The user is always right.
7463 if test "${PATH_SEPARATOR+set}" != set; then
7464 echo "#! /bin/sh" >conf$$.sh
7465 echo "exit 0" >>conf$$.sh
7467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7475 # Find out how to test for executable files. Don't use a zero-byte file,
7476 # as systems may use methods other than mode bits to determine executability.
7477 cat >conf$$.file <<_ASEOF
7481 chmod +x conf$$.file
7482 if test -x conf$$.file >/dev/null 2>&1; then
7483 ac_executable_p="test -x"
7485 ac_executable_p="test -f"
7489 # Extract the first word of "valgrind", so it can be a program name with args.
7490 set dummy valgrind; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_valgrind_path+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 case "$valgrind_path" in
7498 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7502 for ac_dir in $PATH; do
7504 test -z "$ac_dir" && ac_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7507 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7508 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7518 valgrind_path="$ac_cv_path_valgrind_path"
7519 if test -n "$valgrind_path"; then
7520 { echo "$as_me:$LINENO: result: $valgrind_path" >&5
7521 echo "${ECHO_T}$valgrind_path" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7527 if test "x$valgrind_path" = "x" \
7528 || (test $have_valgrind_h = no \
7529 && test $gcc_cv_header_memcheck_h = no \
7530 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7531 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7532 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7533 { (exit 1); exit 1; }; }
7535 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7536 valgrind_command="$valgrind_path -q"
7538 cat >>confdefs.h <<\_ACEOF
7539 #define ENABLE_VALGRIND_CHECKING 1
7542 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_VALGRIND_MEMCHECK_H 1
7549 if test $gcc_cv_header_memcheck_h = yes; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_MEMCHECK_H 1
7560 # Check whether --enable-mapped-location was given.
7561 if test "${enable_mapped_location+set}" = set; then
7562 enableval=$enable_mapped_location;
7564 enable_mapped_location=no
7568 if test "$enable_mapped_location" = yes ; then
7570 cat >>confdefs.h <<\_ACEOF
7571 #define USE_MAPPED_LOCATION 1
7576 # Enable code coverage collection
7577 # Check whether --enable-coverage was given.
7578 if test "${enable_coverage+set}" = set; then
7579 enableval=$enable_coverage; case "${enableval}" in
7581 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7584 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7587 # a.k.a. --disable-coverage
7591 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7592 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7593 { (exit 1); exit 1; }; }
7602 # Check whether --enable-gather-detailed-mem-stats was given.
7603 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7604 enableval=$enable_gather_detailed_mem_stats;
7606 enable_gather_detailed_mem_stats=no
7609 if test x$enable_gather_detailed_mem_stats = xyes ; then
7611 cat >>confdefs.h <<\_ACEOF
7612 #define GATHER_STATISTICS 1
7617 # -------------------------------
7618 # Miscenalleous configure options
7619 # -------------------------------
7623 # Check whether --with-stabs was given.
7624 if test "${with_stabs+set}" = set; then
7625 withval=$with_stabs; stabs="$with_stabs"
7631 # Determine whether or not multilibs are enabled.
7632 # Check whether --enable-multilib was given.
7633 if test "${enable_multilib+set}" = set; then
7634 enableval=$enable_multilib;
7641 # Enable __cxa_atexit for C++.
7642 # Check whether --enable-__cxa_atexit was given.
7643 if test "${enable___cxa_atexit+set}" = set; then
7644 enableval=$enable___cxa_atexit;
7648 # Enable C extension for decimal float if target supports it.
7649 # Check whether --enable-decimal-float was given.
7650 if test "${enable_decimal_float+set}" = set; then
7651 enableval=$enable_decimal_float;
7652 case $enable_decimal_float in
7653 yes | no | bid | dpd) ;;
7654 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7655 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7656 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7657 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7658 { (exit 1); exit 1; }; } ;;
7664 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7665 enable_decimal_float=yes
7668 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7669 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7670 enable_decimal_float=no
7677 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7679 cat >>confdefs.h <<_ACEOF
7680 #define ENABLE_DECIMAL_FLOAT $dfp
7684 # x86's use BID format instead of DPD
7685 case x$enable_decimal_float in
7688 i?86*-*-linux* | x86_64*-*-linux*)
7689 enable_decimal_float=bid
7692 enable_decimal_float=dpd
7697 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7698 # dependency on libdecnumber.
7699 enable_decimal_float=dpd
7704 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7706 cat >>confdefs.h <<_ACEOF
7707 #define ENABLE_DECIMAL_BID_FORMAT $bid
7711 # Enable C extension for fixed-point arithmetic.
7712 # Check whether --enable-fixed-point was given.
7713 if test "${enable_fixed_point+set}" = set; then
7714 enableval=$enable_fixed_point;
7720 enable_fixed_point=yes
7723 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7724 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7725 enable_fixed_point=no
7733 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7735 cat >>confdefs.h <<_ACEOF
7736 #define ENABLE_FIXED_POINT $fixedpoint
7741 # Pass with no value to take the default
7742 # Pass with a value to specify a thread package
7743 # Check whether --enable-threads was given.
7744 if test "${enable_threads+set}" = set; then
7745 enableval=$enable_threads;
7751 # Check whether --enable-tls was given.
7752 if test "${enable_tls+set}" = set; then
7753 enableval=$enable_tls;
7756 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7757 Valid choices are 'yes' and 'no'." >&5
7758 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7759 Valid choices are 'yes' and 'no'." >&2;}
7760 { (exit 1); exit 1; }; } ;;
7768 # Check whether --enable-objc-gc was given.
7769 if test "${enable_objc_gc+set}" = set; then
7770 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7781 # Check whether --with-dwarf2 was given.
7782 if test "${with_dwarf2+set}" = set; then
7783 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7789 # Check whether --enable-shared was given.
7790 if test "${enable_shared+set}" = set; then
7791 enableval=$enable_shared;
7792 case $enable_shared in
7796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7797 for pkg in $enableval; do
7798 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7813 # Check whether --with-build-sysroot was given.
7814 if test "${with_build_sysroot+set}" = set; then
7815 withval=$with_build_sysroot;
7820 # Check whether --with-sysroot was given.
7821 if test "${with_sysroot+set}" = set; then
7822 withval=$with_sysroot;
7823 case ${with_sysroot} in
7824 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7825 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7828 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7829 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7831 if test "x$prefix" = xNONE; then
7832 test_prefix=/usr/local
7836 if test "x$exec_prefix" = xNONE; then
7837 test_exec_prefix=$test_prefix
7839 test_exec_prefix=$exec_prefix
7841 case ${TARGET_SYSTEM_ROOT} in
7842 "${test_prefix}"|"${test_prefix}/"*|\
7843 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7844 '${prefix}'|'${prefix}/'*|\
7845 '${exec_prefix}'|'${exec_prefix}/'*)
7846 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7847 TARGET_SYSTEM_ROOT_DEFINE="$t"
7854 TARGET_SYSTEM_ROOT_DEFINE=
7855 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7863 # Build with intermodule optimisations
7864 # Check whether --enable-intermodule was given.
7865 if test "${enable_intermodule+set}" = set; then
7866 enableval=$enable_intermodule; case ${enable_intermodule} in
7867 yes) onestep="-onestep";;
7878 # Check whether --with-pkgversion was given.
7879 if test "${with_pkgversion+set}" = set; then
7880 withval=$with_pkgversion; case "$withval" in
7881 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7882 echo "$as_me: error: package version not specified" >&2;}
7883 { (exit 1); exit 1; }; } ;;
7885 *) PKGVERSION="($withval) " ;;
7896 # Check whether --with-bugurl was given.
7897 if test "${with_bugurl+set}" = set; then
7898 withval=$with_bugurl; case "$withval" in
7899 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7900 echo "$as_me: error: bug URL not specified" >&2;}
7901 { (exit 1); exit 1; }; } ;;
7904 *) BUGURL="$withval"
7908 BUGURL="http://gcc.gnu.org/bugs.html"
7918 REPORT_BUGS_TO="<$BUGURL>"
7919 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7926 # Sanity check enable_languages in case someone does not run the toplevel
7927 # configure # script.
7928 # Check whether --enable-languages was given.
7929 if test "${enable_languages+set}" = set; then
7930 enableval=$enable_languages; case ,${enable_languages}, in
7932 # go safe -- we cannot be much sure without the toplevel
7934 # analysis of which target libs are present and usable
7938 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7939 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7940 { (exit 1); exit 1; }; }
7945 enable_languages=c,${enable_languages}
7953 # Used by documentation targets
7958 # -------------------------
7959 # Checks for other programs
7960 # -------------------------
7962 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7963 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7964 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7965 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 cat >conftest.make <<\_ACEOF
7971 @echo '@@@%%%=$(MAKE)=@@@%%%'
7973 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7974 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7976 eval ac_cv_prog_make_${ac_make}_set=yes;;
7978 eval ac_cv_prog_make_${ac_make}_set=no;;
7982 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7983 { echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6; }
7987 { echo "$as_me:$LINENO: result: no" >&5
7988 echo "${ECHO_T}no" >&6; }
7989 SET_MAKE="MAKE=${MAKE-make}"
7993 # Find some useful tools
7994 for ac_prog in gawk mawk nawk awk
7996 # Extract the first word of "$ac_prog", so it can be a program name with args.
7997 set dummy $ac_prog; ac_word=$2
7998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8000 if test "${ac_cv_prog_AWK+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 if test -n "$AWK"; then
8004 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_AWK="$ac_prog"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 if test -n "$AWK"; then
8025 { echo "$as_me:$LINENO: result: $AWK" >&5
8026 echo "${ECHO_T}$AWK" >&6; }
8028 { echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6; }
8033 test -n "$AWK" && break
8036 # We need awk to create options.c and options.h.
8037 # Bail out if it's missing.
8039 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8040 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8041 { (exit 1); exit 1; }; } ;;
8044 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8045 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8046 if test "${gcc_cv_prog_LN_S+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 rm -f conftestdata_t
8050 echo >conftestdata_f
8051 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8053 gcc_cv_prog_LN_S="ln -s"
8055 if ln conftestdata_f conftestdata_t 2>/dev/null
8059 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8061 gcc_cv_prog_LN_S="cp -p"
8067 rm -f conftestdata_f conftestdata_t
8070 LN_S="$gcc_cv_prog_LN_S"
8071 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8072 { echo "$as_me:$LINENO: result: yes" >&5
8073 echo "${ECHO_T}yes" >&6; }
8075 if test "$gcc_cv_prog_LN_S" = "ln"; then
8076 { echo "$as_me:$LINENO: result: no, using ln" >&5
8077 echo "${ECHO_T}no, using ln" >&6; }
8079 { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8080 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8084 { echo "$as_me:$LINENO: checking whether ln works" >&5
8085 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8086 if test "${acx_cv_prog_LN+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 rm -f conftestdata_t
8090 echo >conftestdata_f
8091 if ln conftestdata_f conftestdata_t 2>/dev/null
8097 rm -f conftestdata_f conftestdata_t
8100 if test $acx_cv_prog_LN = no; then
8102 { echo "$as_me:$LINENO: result: no, using $LN" >&5
8103 echo "${ECHO_T}no, using $LN" >&6; }
8105 LN="$acx_cv_prog_LN"
8106 { echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6; }
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8115 if test "${ac_cv_prog_RANLIB+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 if test -n "$RANLIB"; then
8119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 RANLIB=$ac_cv_prog_RANLIB
8139 if test -n "$RANLIB"; then
8140 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8141 echo "${ECHO_T}$RANLIB" >&6; }
8143 { echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6; }
8149 if test -z "$ac_cv_prog_RANLIB"; then
8150 ac_ct_RANLIB=$RANLIB
8151 # Extract the first word of "ranlib", so it can be a program name with args.
8152 set dummy ranlib; ac_word=$2
8153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8155 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 if test -n "$ac_ct_RANLIB"; then
8159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_ac_ct_RANLIB="ranlib"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8179 if test -n "$ac_ct_RANLIB"; then
8180 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8181 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8183 { echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6; }
8187 if test "x$ac_ct_RANLIB" = x; then
8190 case $cross_compiling:$ac_tool_warned in
8192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8193 whose name does not start with the host triplet. If you think this
8194 configuration is useful to you, please write to autoconf@gnu.org." >&5
8195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8196 whose name does not start with the host triplet. If you think this
8197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8198 ac_tool_warned=yes ;;
8200 RANLIB=$ac_ct_RANLIB
8203 RANLIB="$ac_cv_prog_RANLIB"
8208 # By default, the Darwin ranlib will not treat common symbols as
8209 # definitions when building the archive table of contents. Other
8210 # ranlibs do that; pass an option to the Darwin ranlib that makes
8211 # it behave similarly.
8219 # Find a good install program. We prefer a C program (faster),
8220 # so one script is as good as another. But avoid the broken or
8221 # incompatible versions:
8222 # SysV /etc/install, /usr/sbin/install
8223 # SunOS /usr/etc/install
8224 # IRIX /sbin/install
8226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8228 # ./install, which can be erroneously created by make from ./install.sh.
8229 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8230 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
8231 if test -z "$INSTALL"; then
8232 if test "${ac_cv_path_install+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8236 for ac_dir in $PATH; do
8237 # Account for people who put trailing slashes in PATH elements.
8239 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8241 # OSF1 and SCO ODT 3.0 have their own names for install.
8242 for ac_prog in ginstall scoinst install; do
8243 if test -f $ac_dir/$ac_prog; then
8244 if test $ac_prog = install &&
8245 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8246 # AIX install. It has an incompatible calling convention.
8247 # OSF/1 installbsd also uses dspmsg, but is usable.
8250 ac_cv_path_install="$ac_dir/$ac_prog -c"
8261 if test "${ac_cv_path_install+set}" = set; then
8262 INSTALL="$ac_cv_path_install"
8264 # As a last resort, use the slow shell script. We don't cache a
8265 # path for INSTALL within a source directory, because that will
8266 # break other packages using the cache if that directory is
8267 # removed, or if the path is relative.
8268 INSTALL="$ac_install_sh"
8271 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8272 echo "${ECHO_T}$INSTALL" >&6; }
8274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8275 # It thinks the first close brace ends the variable substitution.
8276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8281 # See if cmp has --ignore-initial.
8282 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8283 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
8284 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 gcc_cv_prog_cmp_skip=slowcompare
8290 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8291 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8294 gcc_cv_prog_cmp_skip=gnucompare
8297 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8298 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8299 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8302 gcc_cv_prog_cmp_skip=fastcompare
8309 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8310 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
8311 make_compare_target=$gcc_cv_prog_cmp_skip
8315 # See if we have the mktemp command.
8316 # Extract the first word of "mktemp", so it can be a program name with args.
8317 set dummy mktemp; ac_word=$2
8318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8320 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 if test -n "$have_mktemp_command"; then
8324 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_prog_have_mktemp_command="yes"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8344 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8345 if test -n "$have_mktemp_command"; then
8346 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8347 echo "${ECHO_T}$have_mktemp_command" >&6; }
8349 { echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6; }
8355 # See if makeinfo has been installed and is modern enough
8356 # that we can use it.
8358 # Extract the first word of "makeinfo", so it can be a program name with args.
8359 set dummy makeinfo; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 if test -n "$MAKEINFO"; then
8366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375 ac_cv_prog_MAKEINFO="makeinfo"
8376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 MAKEINFO=$ac_cv_prog_MAKEINFO
8386 if test -n "$MAKEINFO"; then
8387 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8388 echo "${ECHO_T}$MAKEINFO" >&6; }
8390 { echo "$as_me:$LINENO: result: no" >&5
8391 echo "${ECHO_T}no" >&6; }
8395 if test -n "$MAKEINFO"; then
8396 # Found it, now check the version.
8397 { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8398 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
8399 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8403 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8405 case $ac_prog_version in
8406 '') gcc_cv_prog_makeinfo_modern=no;;
8407 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8408 *) gcc_cv_prog_makeinfo_modern=no;;
8412 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8413 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
8415 gcc_cv_prog_makeinfo_modern=no
8417 if test $gcc_cv_prog_makeinfo_modern = no; then
8418 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8421 if test $gcc_cv_prog_makeinfo_modern = no; then
8422 { echo "$as_me:$LINENO: WARNING:
8423 *** Makeinfo is missing or too old.
8424 *** Info documentation will not be built." >&5
8425 echo "$as_me: WARNING:
8426 *** Makeinfo is missing or too old.
8427 *** Info documentation will not be built." >&2;}
8434 # Is pod2man recent enough to regenerate manpages?
8435 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8436 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
8437 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8438 { echo "$as_me:$LINENO: result: yes" >&5
8439 echo "${ECHO_T}yes" >&6; }
8440 GENERATED_MANPAGES=generated-manpages
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8448 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8453 # Extract the first word of "$ac_prog", so it can be a program name with args.
8454 set dummy $ac_prog; ac_word=$2
8455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8457 if test "${ac_cv_prog_FLEX+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 if test -n "$FLEX"; then
8461 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_FLEX="$ac_prog"
8471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 FLEX=$ac_cv_prog_FLEX
8481 if test -n "$FLEX"; then
8482 { echo "$as_me:$LINENO: result: $FLEX" >&5
8483 echo "${ECHO_T}$FLEX" >&6; }
8485 { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8490 test -n "$FLEX" && break
8492 test -n "$FLEX" || FLEX="$MISSING flex"
8496 for ac_prog in bison
8498 # Extract the first word of "$ac_prog", so it can be a program name with args.
8499 set dummy $ac_prog; ac_word=$2
8500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8502 if test "${ac_cv_prog_BISON+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 if test -n "$BISON"; then
8506 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_BISON="$ac_prog"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 BISON=$ac_cv_prog_BISON
8526 if test -n "$BISON"; then
8527 { echo "$as_me:$LINENO: result: $BISON" >&5
8528 echo "${ECHO_T}$BISON" >&6; }
8530 { echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6; }
8535 test -n "$BISON" && break
8537 test -n "$BISON" || BISON="$MISSING bison"
8540 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8541 # check for build == host before using them.
8544 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8545 && test -d ../binutils ; then
8546 NM='$(objdir)/../binutils/nm-new'
8548 # Extract the first word of "nm", so it can be a program name with args.
8549 set dummy nm; ac_word=$2
8550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_NM+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 if test -n "$NM"; then
8556 ac_cv_prog_NM="$NM" # Let the user override the test.
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8577 if test -n "$NM"; then
8578 { echo "$as_me:$LINENO: result: $NM" >&5
8579 echo "${ECHO_T}$NM" >&6; }
8581 { echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6; }
8589 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8590 && test -d ../binutils ; then
8591 AR='$(objdir)/../binutils/ar'
8593 # Extract the first word of "ar", so it can be a program name with args.
8594 set dummy ar; ac_word=$2
8595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597 if test "${ac_cv_prog_AR+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8622 if test -n "$AR"; then
8623 { echo "$as_me:$LINENO: result: $AR" >&5
8624 echo "${ECHO_T}$AR" >&6; }
8626 { echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6; }
8634 # --------------------
8635 # Checks for C headers
8636 # --------------------
8638 { echo "$as_me:$LINENO: checking for GNU C library" >&5
8639 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
8640 if test "${gcc_cv_glibc+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <features.h>
8654 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8655 #error Not a GNU C library system
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8690 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
8691 if test $gcc_cv_glibc = yes; then
8693 cat >>confdefs.h <<\_ACEOF
8694 #define _GNU_SOURCE 1
8699 # Need to reject headers which give warnings, so that the -Werror bootstrap
8700 # works later. *sigh* This needs to come before all header checks.
8702 ac_c_preproc_warn_flag=yes
8704 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8706 if test "${ac_cv_header_stdc+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8737 grep -v '^ *+' conftest.er1 >conftest.err
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.$ac_objext; then
8745 ac_cv_header_stdc=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_cv_header_stdc=no
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 if test $ac_cv_header_stdc = yes; then
8756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 $EGREP "memchr" >/dev/null 2>&1; then
8770 ac_cv_header_stdc=no
8776 if test $ac_cv_header_stdc = yes; then
8777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "free" >/dev/null 2>&1; then
8791 ac_cv_header_stdc=no
8797 if test $ac_cv_header_stdc = yes; then
8798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8799 if test "$cross_compiling" = yes; then
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8810 #if ((' ' & 0x0FF) == 0x020)
8811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8814 # define ISLOWER(c) \
8815 (('a' <= (c) && (c) <= 'i') \
8816 || ('j' <= (c) && (c) <= 'r') \
8817 || ('s' <= (c) && (c) <= 'z'))
8818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8826 for (i = 0; i < 256; i++)
8827 if (XOR (islower (i), ISLOWER (i))
8828 || toupper (i) != TOUPPER (i))
8833 rm -f conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_link") 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8844 { (case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_try") 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8855 echo "$as_me: program exited with status $ac_status" >&5
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_cv_header_stdc=no
8862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8868 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8869 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8870 if test $ac_cv_header_stdc = yes; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define STDC_HEADERS 1
8878 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8879 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8880 if test "${ac_cv_header_time+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <sys/time.h>
8896 if ((struct tm *) 0)
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8919 ac_cv_header_time=yes
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 ac_cv_header_time=no
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8930 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8931 if test $ac_cv_header_time = yes; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define TIME_WITH_SYS_TIME 1
8939 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8940 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
8941 if test "${gcc_cv_header_string+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 #include <strings.h>
8960 rm -f conftest.$ac_objext
8961 if { (ac_try="$ac_compile"
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_compile") 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && {
8974 test -z "$ac_c_werror_flag" ||
8975 test ! -s conftest.err
8976 } && test -s conftest.$ac_objext; then
8977 gcc_cv_header_string=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 gcc_cv_header_string=no
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8988 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
8989 if test $gcc_cv_header_string = yes; then
8991 cat >>confdefs.h <<\_ACEOF
8992 #define STRING_WITH_STRINGS 1
8997 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #include <sys/types.h>
9009 #include <sys/wait.h>
9011 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_compile") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && {
9041 test -z "$ac_c_werror_flag" ||
9042 test ! -s conftest.err
9043 } && test -s conftest.$ac_objext; then
9044 ac_cv_header_sys_wait_h=yes
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_cv_header_sys_wait_h=no
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9056 if test $ac_cv_header_sys_wait_h = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_SYS_WAIT_H 1
9086 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9087 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9088 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9089 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include <$ac_header>
9105 if { (ac_try="$ac_cpp conftest.$ac_ext"
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } >/dev/null && {
9118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9121 eval "$as_ac_Header=yes"
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 eval "$as_ac_Header=no"
9129 rm -f conftest.err conftest.$ac_ext
9131 ac_res=`eval echo '${'$as_ac_Header'}'`
9132 { echo "$as_me:$LINENO: result: $ac_res" >&5
9133 echo "${ECHO_T}$ac_res" >&6; }
9134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9135 cat >>confdefs.h <<_ACEOF
9136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9143 # Check for thread headers.
9144 { echo "$as_me:$LINENO: checking for thread.h" >&5
9145 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
9146 if test "${ac_cv_header_thread_h+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9157 if { (ac_try="$ac_cpp conftest.$ac_ext"
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9165 grep -v '^ *+' conftest.er1 >conftest.err
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } >/dev/null && {
9170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9173 ac_cv_header_thread_h=yes
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_header_thread_h=no
9181 rm -f conftest.err conftest.$ac_ext
9183 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9184 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
9185 if test $ac_cv_header_thread_h = yes; then
9191 { echo "$as_me:$LINENO: checking for pthread.h" >&5
9192 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
9193 if test "${ac_cv_header_pthread_h+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <pthread.h>
9204 if { (ac_try="$ac_cpp conftest.$ac_ext"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } >/dev/null && {
9217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9220 ac_cv_header_pthread_h=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_header_pthread_h=no
9228 rm -f conftest.err conftest.$ac_ext
9230 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
9232 if test $ac_cv_header_pthread_h = yes; then
9239 # These tests can't be done till we know if we have limits.h.
9240 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9241 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
9242 if test "${gcc_cv_decl_char_bit+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #ifdef HAVE_LIMITS_H
9258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9259 $EGREP "found" >/dev/null 2>&1; then
9260 gcc_cv_decl_char_bit=yes
9262 gcc_cv_decl_char_bit=no
9268 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9269 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
9270 if test $gcc_cv_decl_char_bit = no; then
9271 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9272 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
9273 if test "${gcc_cv_c_nbby+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 while test $i -lt 65; do
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9290 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9291 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_compile") 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest.$ac_objext; then
9314 gcc_cv_c_nbby=$i; break
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9328 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9329 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
9330 if test $gcc_cv_c_nbby = failed; then
9331 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9332 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9333 { (exit 1); exit 1; }; }
9336 cat >>confdefs.h <<_ACEOF
9337 #define CHAR_BIT $gcc_cv_c_nbby
9342 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9344 if test "${ac_cv_c_bigendian+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 # See if sys/param.h defines the BYTE_ORDER macro.
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <sys/types.h>
9355 #include <sys/param.h>
9360 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9361 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9386 # It does; now see whether it defined to BIG_ENDIAN or not.
9387 cat >conftest.$ac_ext <<_ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <sys/param.h>
9399 #if BYTE_ORDER != BIG_ENDIAN
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_compile") 2>conftest.er1
9416 grep -v '^ *+' conftest.er1 >conftest.err
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest.$ac_objext; then
9424 ac_cv_c_bigendian=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_c_bigendian=no
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 # It does not; compile a test program.
9438 if test "$cross_compiling" = yes; then
9439 # try to guess the endianness by grepping values into an object file
9440 ac_cv_c_bigendian=unknown
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9448 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9449 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9450 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9451 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9452 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9456 _ascii (); _ebcdic ();
9461 rm -f conftest.$ac_objext
9462 if { (ac_try="$ac_compile"
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_compile") 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest.$ac_objext; then
9478 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9479 ac_cv_c_bigendian=yes
9481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9482 if test "$ac_cv_c_bigendian" = unknown; then
9483 ac_cv_c_bigendian=no
9485 # finding both strings is unlikely to happen, but who knows?
9486 ac_cv_c_bigendian=unknown
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9509 /* Are we little or big endian? From Harbison&Steele. */
9513 char c[sizeof (long int)];
9516 return u.c[sizeof (long int) - 1] == 1;
9522 rm -f conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_link") 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9533 { (case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_c_bigendian=no
9544 echo "$as_me: program exited with status $ac_status" >&5
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_c_bigendian=yes
9551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9560 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9561 case $ac_cv_c_bigendian in
9564 cat >>confdefs.h <<\_ACEOF
9565 #define WORDS_BIGENDIAN 1
9571 { { echo "$as_me:$LINENO: error: unknown endianness
9572 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9573 echo "$as_me: error: unknown endianness
9574 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9575 { (exit 1); exit 1; }; } ;;
9584 # These libraries may be used by collect2.
9585 # We may need a special search path to get them linked.
9586 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9587 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
9588 if test "${gcc_cv_collect2_libs+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 for libs in '' -lld -lmld \
9593 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9594 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9597 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest$ac_exeext &&
9636 $as_test_x conftest$ac_exeext; then
9637 gcc_cv_collect2_libs="$libs"; break
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646 conftest$ac_exeext conftest.$ac_ext
9649 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9651 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9652 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
9653 case $gcc_cv_collect2_libs in
9655 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9659 # When building Ada code on Alpha, we need exc_resume which is usually in
9660 # -lexc. So test for it.
9663 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9664 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
9665 if test "${ac_cv_search_exc_resume+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_func_search_save_LIBS=$LIBS
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9686 return exc_resume ();
9691 for ac_lib in '' exc; do
9692 if test -z "$ac_lib"; then
9693 ac_res="none required"
9696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest$ac_exeext &&
9715 $as_test_x conftest$ac_exeext; then
9716 ac_cv_search_exc_resume=$ac_res
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 if test "${ac_cv_search_exc_resume+set}" = set; then
9730 if test "${ac_cv_search_exc_resume+set}" = set; then
9733 ac_cv_search_exc_resume=no
9736 LIBS=$ac_func_search_save_LIBS
9738 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9739 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
9740 ac_res=$ac_cv_search_exc_resume
9741 if test "$ac_res" != no; then
9742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9750 # Some systems put ldexp and frexp in libm instead of libc; assume
9751 # they're both in the same place. jcf-dump needs them.
9754 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9755 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
9756 if test "${ac_cv_search_ldexp+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_func_search_save_LIBS=$LIBS
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9782 for ac_lib in '' m; do
9783 if test -z "$ac_lib"; then
9784 ac_res="none required"
9787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9798 grep -v '^ *+' conftest.er1 >conftest.err
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest$ac_exeext &&
9806 $as_test_x conftest$ac_exeext; then
9807 ac_cv_search_ldexp=$ac_res
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817 if test "${ac_cv_search_ldexp+set}" = set; then
9821 if test "${ac_cv_search_ldexp+set}" = set; then
9824 ac_cv_search_ldexp=no
9827 LIBS=$ac_func_search_save_LIBS
9829 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9830 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
9831 ac_res=$ac_cv_search_ldexp
9832 if test "$ac_res" != no; then
9833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9841 # Use <inttypes.h> only if it exists,
9842 # doesn't clash with <sys/types.h>, and declares intmax_t.
9843 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9844 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9845 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 cat >conftest.$ac_ext <<_ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9855 #include <inttypes.h>
9864 rm -f conftest.$ac_objext
9865 if { (ac_try="$ac_compile"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_compile") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && {
9878 test -z "$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 } && test -s conftest.$ac_objext; then
9881 gcc_cv_header_inttypes_h=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 gcc_cv_header_inttypes_h=no
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9893 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
9894 if test $gcc_cv_header_inttypes_h = yes; then
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_INTTYPES_H 1
9939 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9940 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9941 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9942 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
9944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958 #define $ac_func innocuous_$ac_func
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9966 # include <limits.h>
9968 # include <assert.h>
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined __stub_$ac_func || defined __stub___$ac_func
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_link") 2>conftest.er1
10004 grep -v '^ *+' conftest.er1 >conftest.err
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } && {
10009 test -z "$ac_c_werror_flag" ||
10010 test ! -s conftest.err
10011 } && test -s conftest$ac_exeext &&
10012 $as_test_x conftest$ac_exeext; then
10013 eval "$as_ac_var=yes"
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 eval "$as_ac_var=no"
10021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022 conftest$ac_exeext conftest.$ac_ext
10024 ac_res=`eval echo '${'$as_ac_var'}'`
10025 { echo "$as_me:$LINENO: result: $ac_res" >&5
10026 echo "${ECHO_T}$ac_res" >&6; }
10027 if test `eval echo '${'$as_ac_var'}'` = yes; then
10028 cat >>confdefs.h <<_ACEOF
10029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10036 if test x$ac_cv_func_mbstowcs = xyes; then
10037 { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10038 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
10039 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 if test "$cross_compiling" = yes; then
10043 gcc_cv_func_mbstowcs_works=yes
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #include <stdlib.h>
10054 mbstowcs(0, "", 0);
10058 rm -f conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_link") 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 gcc_cv_func_mbstowcs_works=yes
10080 echo "$as_me: program exited with status $ac_status" >&5
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ( exit $ac_status )
10085 gcc_cv_func_mbstowcs_works=no
10087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10093 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
10094 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_WORKING_MBSTOWCS 1
10103 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10104 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10105 if test "${ac_cv_type_ssize_t+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 $ac_includes_default
10115 typedef ssize_t ac__type_new_;
10119 if ((ac__type_new_ *) 0)
10121 if (sizeof (ac__type_new_))
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 ac_cv_type_ssize_t=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_type_ssize_t=no
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10155 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10156 if test $ac_cv_type_ssize_t = yes; then
10160 cat >>confdefs.h <<_ACEOF
10161 #define ssize_t int
10167 # Try to determine the array type of the second argument of getgroups
10168 # for the target system (int or gid_t).
10169 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10170 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10171 if test "${ac_cv_type_uid_t+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <sys/types.h>
10183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10184 $EGREP "uid_t" >/dev/null 2>&1; then
10185 ac_cv_type_uid_t=yes
10187 ac_cv_type_uid_t=no
10192 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10193 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10194 if test $ac_cv_type_uid_t = no; then
10196 cat >>confdefs.h <<\_ACEOF
10201 cat >>confdefs.h <<\_ACEOF
10207 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10208 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
10209 if test "${ac_cv_type_getgroups+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 if test "$cross_compiling" = yes; then
10213 ac_cv_type_getgroups=cross
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 /* Thanks to Mike Rendell for this test. */
10222 $ac_includes_default
10225 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10230 gid_t gidset[NGID];
10232 union { gid_t gval; long int lval; } val;
10235 for (i = 0; i < NGID; i++)
10236 gidset[i] = val.gval;
10237 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10239 /* Exit non-zero if getgroups seems to require an array of ints. This
10240 happens when gid_t is short int but getgroups modifies an array
10242 return n > 0 && gidset[n] != val.gval;
10245 rm -f conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10256 { (case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_try") 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_cv_type_getgroups=gid_t
10267 echo "$as_me: program exited with status $ac_status" >&5
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ( exit $ac_status )
10272 ac_cv_type_getgroups=int
10274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10278 if test $ac_cv_type_getgroups = cross; then
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <unistd.h>
10288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10289 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10290 ac_cv_type_getgroups=gid_t
10292 ac_cv_type_getgroups=int
10298 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10299 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
10301 cat >>confdefs.h <<_ACEOF
10302 #define GETGROUPS_T $ac_cv_type_getgroups
10306 if test "${target}" = "${build}"; then
10307 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10309 case "${target}" in
10310 # This condition may need some tweaking. It should include all
10311 # targets where the array type of the second argument of getgroups
10312 # is int and the type of gid_t is not equivalent to int.
10313 *-*-sunos* | *-*-ultrix*)
10314 TARGET_GETGROUPS_T=int
10317 TARGET_GETGROUPS_T=gid_t
10324 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10325 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
10326 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <sys/mman.h>
10337 if { (ac_try="$ac_cpp conftest.$ac_ext"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } >/dev/null && {
10350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10353 ac_cv_header_sys_mman_h=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_header_sys_mman_h=no
10361 rm -f conftest.err conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
10365 if test $ac_cv_header_sys_mman_h = yes; then
10366 gcc_header_sys_mman_h=yes
10368 gcc_header_sys_mman_h=no
10371 { echo "$as_me:$LINENO: checking for mmap" >&5
10372 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
10373 if test "${ac_cv_func_mmap+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10384 #define mmap innocuous_mmap
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char mmap (); below.
10388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389 <limits.h> exists even on freestanding compilers. */
10392 # include <limits.h>
10394 # include <assert.h>
10399 /* Override any GCC internal prototype to avoid an error.
10400 Use char because int might match the return type of a GCC
10401 builtin and then its argument prototype would still apply. */
10406 /* The GNU C library defines this for functions which it implements
10407 to always fail with ENOSYS. Some functions are actually named
10408 something starting with __ and the normal name is an alias. */
10409 #if defined __stub_mmap || defined __stub___mmap
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (ac_try="$ac_link"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_link") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext &&
10438 $as_test_x conftest$ac_exeext; then
10439 ac_cv_func_mmap=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10448 conftest$ac_exeext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10451 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
10452 if test $ac_cv_func_mmap = yes; then
10458 if test "$gcc_header_sys_mman_h" != yes \
10459 || test "$gcc_func_mmap" != yes; then
10460 gcc_cv_func_mmap_file=no
10461 gcc_cv_func_mmap_dev_zero=no
10462 gcc_cv_func_mmap_anon=no
10464 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10465 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
10466 if test "${gcc_cv_func_mmap_file+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 # Add a system to this blacklist if
10470 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10471 # memory area containing the same data that you'd get if you applied
10472 # read() to the same fd. The only system known to have a problem here
10473 # is VMS, where text files have record structure.
10476 gcc_cv_func_mmap_file=no ;;
10478 gcc_cv_func_mmap_file=yes;;
10481 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10482 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
10483 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10484 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
10485 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 # Add a system to this blacklist if it has mmap() but /dev/zero
10489 # does not exist, or if mmapping /dev/zero does not give anonymous
10490 # zeroed pages with both the following properties:
10491 # 1. If you map N consecutive pages in with one call, and then
10492 # unmap any subset of those pages, the pages that were not
10493 # explicitly unmapped remain accessible.
10494 # 2. If you map two adjacent blocks of memory and then unmap them
10495 # both at once, they must both go away.
10496 # Systems known to be in this category are Windows (all variants),
10499 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10500 gcc_cv_func_mmap_dev_zero=no ;;
10502 gcc_cv_func_mmap_dev_zero=yes;;
10505 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10506 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
10508 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10509 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10510 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
10511 if test "${gcc_cv_decl_map_anon+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 #include <sys/types.h>
10521 #include <sys/mman.h>
10522 #include <unistd.h>
10524 #ifndef MAP_ANONYMOUS
10525 #define MAP_ANONYMOUS MAP_ANON
10531 int n = MAP_ANONYMOUS;
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest.$ac_objext; then
10553 gcc_cv_decl_map_anon=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 gcc_cv_decl_map_anon=no
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10564 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
10566 if test $gcc_cv_decl_map_anon = no; then
10567 gcc_cv_func_mmap_anon=no
10569 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10570 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
10571 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10575 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10576 # doesn't give anonymous zeroed pages with the same properties listed
10577 # above for use of /dev/zero.
10578 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10580 vms* | cygwin* | pe | mingw* | sco* | udk* )
10581 gcc_cv_func_mmap_anon=no ;;
10583 gcc_cv_func_mmap_anon=yes;;
10586 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10587 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
10591 if test $gcc_cv_func_mmap_file = yes; then
10593 cat >>confdefs.h <<\_ACEOF
10594 #define HAVE_MMAP_FILE 1
10598 if test $gcc_cv_func_mmap_dev_zero = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_MMAP_DEV_ZERO 1
10605 if test $gcc_cv_func_mmap_anon = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_MMAP_ANON 1
10616 # Under VMS, vfork works very differently than on Unix. The standard test
10617 # won't work, and it isn't easily adaptable. It makes more sense to
10619 ac_cv_func_vfork_works=yes
10622 { echo "$as_me:$LINENO: checking for pid_t" >&5
10623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10624 if test "${ac_cv_type_pid_t+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10634 typedef pid_t ac__type_new_;
10638 if ((ac__type_new_ *) 0)
10640 if (sizeof (ac__type_new_))
10646 rm -f conftest.$ac_objext
10647 if { (ac_try="$ac_compile"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_compile") 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
10662 } && test -s conftest.$ac_objext; then
10663 ac_cv_type_pid_t=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_cv_type_pid_t=no
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10675 if test $ac_cv_type_pid_t = yes; then
10679 cat >>confdefs.h <<_ACEOF
10686 for ac_header in vfork.h
10688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <$ac_header>
10702 if { (ac_try="$ac_cpp conftest.$ac_ext"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } >/dev/null && {
10715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10718 eval "$as_ac_Header=yes"
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 eval "$as_ac_Header=no"
10726 rm -f conftest.err conftest.$ac_ext
10728 ac_res=`eval echo '${'$as_ac_Header'}'`
10729 { echo "$as_me:$LINENO: result: $ac_res" >&5
10730 echo "${ECHO_T}$ac_res" >&6; }
10731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10732 cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10741 for ac_func in fork vfork
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10757 #define $ac_func innocuous_$ac_func
10759 /* System header to define __stub macros and hopefully few prototypes,
10760 which can conflict with char $ac_func (); below.
10761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10762 <limits.h> exists even on freestanding compilers. */
10765 # include <limits.h>
10767 # include <assert.h>
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10779 /* The GNU C library defines this for functions which it implements
10780 to always fail with ENOSYS. Some functions are actually named
10781 something starting with __ and the normal name is an alias. */
10782 #if defined __stub_$ac_func || defined __stub___$ac_func
10789 return $ac_func ();
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext &&
10811 $as_test_x conftest$ac_exeext; then
10812 eval "$as_ac_var=yes"
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821 conftest$ac_exeext conftest.$ac_ext
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10834 if test "x$ac_cv_func_fork" = xyes; then
10835 { echo "$as_me:$LINENO: checking for working fork" >&5
10836 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10837 if test "${ac_cv_func_fork_works+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 if test "$cross_compiling" = yes; then
10841 ac_cv_func_fork_works=cross
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 $ac_includes_default
10854 /* By Ruediger Kuhlmann. */
10855 return fork () < 0;
10861 rm -f conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_func_fork_works=yes
10883 echo "$as_me: program exited with status $ac_status" >&5
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 ( exit $ac_status )
10888 ac_cv_func_fork_works=no
10890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10896 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10899 ac_cv_func_fork_works=$ac_cv_func_fork
10901 if test "x$ac_cv_func_fork_works" = xcross; then
10903 *-*-amigaos* | *-*-msdosdjgpp*)
10904 # Override, as these systems have only a dummy fork() stub
10905 ac_cv_func_fork_works=no
10908 ac_cv_func_fork_works=yes
10911 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10912 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10914 ac_cv_func_vfork_works=$ac_cv_func_vfork
10915 if test "x$ac_cv_func_vfork" = xyes; then
10916 { echo "$as_me:$LINENO: checking for working vfork" >&5
10917 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10918 if test "${ac_cv_func_vfork_works+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 if test "$cross_compiling" = yes; then
10922 ac_cv_func_vfork_works=cross
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 /* Thanks to Paul Eggert for this test. */
10931 $ac_includes_default
10932 #include <sys/wait.h>
10933 #ifdef HAVE_VFORK_H
10934 # include <vfork.h>
10936 /* On some sparc systems, changes by the child to local and incoming
10937 argument registers are propagated back to the parent. The compiler
10938 is told about this with #include <vfork.h>, but some compilers
10939 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10940 static variable whose address is put into a register that is
10941 clobbered by the vfork. */
10944 sparc_address_test (int arg)
10946 sparc_address_test (arg) int arg;
10949 static pid_t child;
10967 pid_t parent = getpid ();
10970 sparc_address_test (0);
10975 /* Here is another test for sparc vfork register problems. This
10976 test uses lots of local variables, at least as many local
10977 variables as main has allocated so far including compiler
10978 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10979 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10980 reuse the register of parent for one of the local variables,
10981 since it will think that parent can't possibly be used any more
10982 in this routine. Assigning to the local variable will thus
10983 munge parent in the parent process. */
10985 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10986 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10987 /* Convince the compiler that p..p7 are live; otherwise, it might
10988 use the same hardware register for all 8 local variables. */
10989 if (p != p1 || p != p2 || p != p3 || p != p4
10990 || p != p5 || p != p6 || p != p7)
10993 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10994 from child file descriptors. If the child closes a descriptor
10995 before it execs or exits, this munges the parent's descriptor
10996 as well. Test for this by closing stdout in the child. */
10997 _exit(close(fileno(stdout)) != 0);
11002 while (wait(&status) != child)
11005 /* Was there some problem with vforking? */
11008 /* Did the child fail? (This shouldn't happen.) */
11011 /* Did the vfork/compiler bug occur? */
11012 || parent != getpid()
11014 /* Did the file descriptor bug occur? */
11015 || fstat(fileno(stdout), &st) != 0
11020 rm -f conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_link") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_func_vfork_works=yes
11042 echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ( exit $ac_status )
11047 ac_cv_func_vfork_works=no
11049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11054 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11055 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
11058 if test "x$ac_cv_func_fork_works" = xcross; then
11059 ac_cv_func_vfork_works=$ac_cv_func_vfork
11060 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11061 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11064 if test "x$ac_cv_func_vfork_works" = xyes; then
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_WORKING_VFORK 1
11072 cat >>confdefs.h <<\_ACEOF
11077 if test "x$ac_cv_func_fork_works" = xyes; then
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_WORKING_FORK 1
11087 if test "X$prefix" = "XNONE"; then
11088 acl_final_prefix="$ac_default_prefix"
11090 acl_final_prefix="$prefix"
11092 if test "X$exec_prefix" = "XNONE"; then
11093 acl_final_exec_prefix='${prefix}'
11095 acl_final_exec_prefix="$exec_prefix"
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11100 prefix="$acl_save_prefix"
11103 # Check whether --with-gnu-ld was given.
11104 if test "${with_gnu_ld+set}" = set; then
11105 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11110 # Prepare PATH_SEPARATOR.
11111 # The user is always right.
11112 if test "${PATH_SEPARATOR+set}" != set; then
11113 echo "#! /bin/sh" >conf$$.sh
11114 echo "exit 0" >>conf$$.sh
11116 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11124 if test "$GCC" = yes; then
11125 # Check if gcc -print-prog-name=ld gives a path.
11126 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11127 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11130 # gcc leaves a trailing carriage return which upsets mingw
11131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11136 # Accept absolute paths.
11137 [\\/]* | [A-Za-z]:[\\/]*)
11138 re_direlt='/[^/][^/]*/\.\./'
11139 # Canonicalize the path of ld
11140 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11141 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11142 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11144 test -z "$LD" && LD="$ac_prog"
11147 # If it fails, then pretend we aren't using GCC.
11151 # If it is relative, then search for the first ld in PATH.
11152 with_gnu_ld=unknown
11155 elif test "$with_gnu_ld" = yes; then
11156 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11159 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11162 if test "${acl_cv_path_LD+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 if test -z "$LD"; then
11166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11167 for ac_dir in $PATH; do
11168 test -z "$ac_dir" && ac_dir=.
11169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11170 acl_cv_path_LD="$ac_dir/$ac_prog"
11171 # Check to see if the program is GNU ld. I'd rather use --version,
11172 # but apparently some GNU ld's only accept -v.
11173 # Break only if it was the GNU/non-GNU ld that we prefer.
11174 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11175 test "$with_gnu_ld" != no && break
11177 test "$with_gnu_ld" != yes && break
11183 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11187 LD="$acl_cv_path_LD"
11188 if test -n "$LD"; then
11189 { echo "$as_me:$LINENO: result: $LD" >&5
11190 echo "${ECHO_T}$LD" >&6; }
11192 { echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6; }
11195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11197 { (exit 1); exit 1; }; }
11198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11200 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11204 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11205 acl_cv_prog_gnu_ld=yes
11207 acl_cv_prog_gnu_ld=no
11210 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11211 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11212 with_gnu_ld=$acl_cv_prog_gnu_ld
11216 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11217 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11218 if test "${acl_cv_rpath+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11223 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11225 rm -f ./conftest.sh
11229 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11230 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11232 libext="$acl_cv_libext"
11233 shlibext="$acl_cv_shlibext"
11234 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11235 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11236 hardcode_direct="$acl_cv_hardcode_direct"
11237 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11238 # Check whether --enable-rpath was given.
11239 if test "${enable_rpath+set}" = set; then
11240 enableval=$enable_rpath; :
11254 acl_save_prefix="$prefix"
11255 prefix="$acl_final_prefix"
11256 acl_save_exec_prefix="$exec_prefix"
11257 exec_prefix="$acl_final_exec_prefix"
11259 eval additional_includedir=\"$includedir\"
11260 eval additional_libdir=\"$libdir\"
11262 exec_prefix="$acl_save_exec_prefix"
11263 prefix="$acl_save_prefix"
11266 # Check whether --with-libiconv-prefix was given.
11267 if test "${with_libiconv_prefix+set}" = set; then
11268 withval=$with_libiconv_prefix;
11269 if test "X$withval" = "Xno"; then
11272 if test "X$withval" = "X"; then
11274 acl_save_prefix="$prefix"
11275 prefix="$acl_final_prefix"
11276 acl_save_exec_prefix="$exec_prefix"
11277 exec_prefix="$acl_final_exec_prefix"
11279 eval additional_includedir=\"$includedir\"
11280 eval additional_libdir=\"$libdir\"
11282 exec_prefix="$acl_save_exec_prefix"
11283 prefix="$acl_save_prefix"
11286 additional_includedir="$withval/include"
11287 additional_libdir="$withval/lib"
11298 names_already_handled=
11299 names_next_round='iconv '
11300 while test -n "$names_next_round"; do
11301 names_this_round="$names_next_round"
11303 for name in $names_this_round; do
11305 for n in $names_already_handled; do
11306 if test "$n" = "$name"; then
11307 already_handled=yes
11311 if test -z "$already_handled"; then
11312 names_already_handled="$names_already_handled $name"
11313 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11314 eval value=\"\$HAVE_LIB$uppername\"
11315 if test -n "$value"; then
11316 if test "$value" = yes; then
11317 eval value=\"\$LIB$uppername\"
11318 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11319 eval value=\"\$LTLIB$uppername\"
11320 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11329 if test $use_additional = yes; then
11330 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11331 found_dir="$additional_libdir"
11332 found_so="$additional_libdir/lib$name.$shlibext"
11333 if test -f "$additional_libdir/lib$name.la"; then
11334 found_la="$additional_libdir/lib$name.la"
11337 if test -f "$additional_libdir/lib$name.$libext"; then
11338 found_dir="$additional_libdir"
11339 found_a="$additional_libdir/lib$name.$libext"
11340 if test -f "$additional_libdir/lib$name.la"; then
11341 found_la="$additional_libdir/lib$name.la"
11346 if test "X$found_dir" = "X"; then
11347 for x in $LDFLAGS $LTLIBICONV; do
11349 acl_save_prefix="$prefix"
11350 prefix="$acl_final_prefix"
11351 acl_save_exec_prefix="$exec_prefix"
11352 exec_prefix="$acl_final_exec_prefix"
11354 exec_prefix="$acl_save_exec_prefix"
11355 prefix="$acl_save_prefix"
11359 dir=`echo "X$x" | sed -e 's/^X-L//'`
11360 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11362 found_so="$dir/lib$name.$shlibext"
11363 if test -f "$dir/lib$name.la"; then
11364 found_la="$dir/lib$name.la"
11367 if test -f "$dir/lib$name.$libext"; then
11369 found_a="$dir/lib$name.$libext"
11370 if test -f "$dir/lib$name.la"; then
11371 found_la="$dir/lib$name.la"
11377 if test "X$found_dir" != "X"; then
11382 if test "X$found_dir" != "X"; then
11383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11384 if test "X$found_so" != "X"; then
11385 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11386 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11389 for x in $ltrpathdirs; do
11390 if test "X$x" = "X$found_dir"; then
11395 if test -z "$haveit"; then
11396 ltrpathdirs="$ltrpathdirs $found_dir"
11398 if test "$hardcode_direct" = yes; then
11399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11401 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11404 for x in $rpathdirs; do
11405 if test "X$x" = "X$found_dir"; then
11410 if test -z "$haveit"; then
11411 rpathdirs="$rpathdirs $found_dir"
11415 for x in $LDFLAGS $LIBICONV; do
11417 acl_save_prefix="$prefix"
11418 prefix="$acl_final_prefix"
11419 acl_save_exec_prefix="$exec_prefix"
11420 exec_prefix="$acl_final_exec_prefix"
11422 exec_prefix="$acl_save_exec_prefix"
11423 prefix="$acl_save_prefix"
11425 if test "X$x" = "X-L$found_dir"; then
11430 if test -z "$haveit"; then
11431 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11433 if test "$hardcode_minus_L" != no; then
11434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11436 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11442 if test "X$found_a" != "X"; then
11443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11445 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11448 additional_includedir=
11449 case "$found_dir" in
11451 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11452 additional_includedir="$basedir/include"
11455 if test "X$additional_includedir" != "X"; then
11456 if test "X$additional_includedir" != "X/usr/include"; then
11458 if test "X$additional_includedir" = "X/usr/local/include"; then
11459 if test -n "$GCC"; then
11461 linux*) haveit=yes;;
11465 if test -z "$haveit"; then
11466 for x in $CPPFLAGS $INCICONV; do
11468 acl_save_prefix="$prefix"
11469 prefix="$acl_final_prefix"
11470 acl_save_exec_prefix="$exec_prefix"
11471 exec_prefix="$acl_final_exec_prefix"
11473 exec_prefix="$acl_save_exec_prefix"
11474 prefix="$acl_save_prefix"
11476 if test "X$x" = "X-I$additional_includedir"; then
11481 if test -z "$haveit"; then
11482 if test -d "$additional_includedir"; then
11483 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11489 if test -n "$found_la"; then
11490 save_libdir="$libdir"
11491 case "$found_la" in
11492 */* | *\\*) . "$found_la" ;;
11493 *) . "./$found_la" ;;
11495 libdir="$save_libdir"
11496 for dep in $dependency_libs; do
11499 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11500 if test "X$additional_libdir" != "X/usr/lib"; then
11502 if test "X$additional_libdir" = "X/usr/local/lib"; then
11503 if test -n "$GCC"; then
11505 linux*) haveit=yes;;
11509 if test -z "$haveit"; then
11511 for x in $LDFLAGS $LIBICONV; do
11513 acl_save_prefix="$prefix"
11514 prefix="$acl_final_prefix"
11515 acl_save_exec_prefix="$exec_prefix"
11516 exec_prefix="$acl_final_exec_prefix"
11518 exec_prefix="$acl_save_exec_prefix"
11519 prefix="$acl_save_prefix"
11521 if test "X$x" = "X-L$additional_libdir"; then
11526 if test -z "$haveit"; then
11527 if test -d "$additional_libdir"; then
11528 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11532 for x in $LDFLAGS $LTLIBICONV; do
11534 acl_save_prefix="$prefix"
11535 prefix="$acl_final_prefix"
11536 acl_save_exec_prefix="$exec_prefix"
11537 exec_prefix="$acl_final_exec_prefix"
11539 exec_prefix="$acl_save_exec_prefix"
11540 prefix="$acl_save_prefix"
11542 if test "X$x" = "X-L$additional_libdir"; then
11547 if test -z "$haveit"; then
11548 if test -d "$additional_libdir"; then
11549 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11556 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11557 if test "$enable_rpath" != no; then
11559 for x in $rpathdirs; do
11560 if test "X$x" = "X$dir"; then
11565 if test -z "$haveit"; then
11566 rpathdirs="$rpathdirs $dir"
11569 for x in $ltrpathdirs; do
11570 if test "X$x" = "X$dir"; then
11575 if test -z "$haveit"; then
11576 ltrpathdirs="$ltrpathdirs $dir"
11581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11584 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11587 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11594 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11601 if test "X$rpathdirs" != "X"; then
11602 if test -n "$hardcode_libdir_separator"; then
11604 for found_dir in $rpathdirs; do
11605 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11607 acl_save_libdir="$libdir"
11609 eval flag=\"$hardcode_libdir_flag_spec\"
11610 libdir="$acl_save_libdir"
11611 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11613 for found_dir in $rpathdirs; do
11614 acl_save_libdir="$libdir"
11615 libdir="$found_dir"
11616 eval flag=\"$hardcode_libdir_flag_spec\"
11617 libdir="$acl_save_libdir"
11618 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11622 if test "X$ltrpathdirs" != "X"; then
11623 for found_dir in $ltrpathdirs; do
11624 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11634 am_save_CPPFLAGS="$CPPFLAGS"
11636 for element in $INCICONV; do
11638 for x in $CPPFLAGS; do
11640 acl_save_prefix="$prefix"
11641 prefix="$acl_final_prefix"
11642 acl_save_exec_prefix="$exec_prefix"
11643 exec_prefix="$acl_final_exec_prefix"
11645 exec_prefix="$acl_save_exec_prefix"
11646 prefix="$acl_save_prefix"
11648 if test "X$x" = "X$element"; then
11653 if test -z "$haveit"; then
11654 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11659 { echo "$as_me:$LINENO: checking for iconv" >&5
11660 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11661 if test "${am_cv_func_iconv+set}" = set; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 am_cv_func_iconv="no, consider installing GNU libiconv"
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 #include <stdlib.h>
11678 iconv_t cd = iconv_open("","");
11679 iconv(cd,NULL,NULL,NULL,NULL);
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (ac_try="$ac_link"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_link") 2>conftest.er1
11694 grep -v '^ *+' conftest.er1 >conftest.err
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest$ac_exeext &&
11702 $as_test_x conftest$ac_exeext; then
11703 am_cv_func_iconv=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11712 conftest$ac_exeext conftest.$ac_ext
11713 if test "$am_cv_func_iconv" != yes; then
11714 am_save_LIBS="$LIBS"
11715 LIBS="$LIBS $LIBICONV"
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 #include <stdlib.h>
11727 iconv_t cd = iconv_open("","");
11728 iconv(cd,NULL,NULL,NULL,NULL);
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_link") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest$ac_exeext &&
11751 $as_test_x conftest$ac_exeext; then
11752 am_cv_lib_iconv=yes
11753 am_cv_func_iconv=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS="$am_save_LIBS"
11767 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11768 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11769 if test "$am_cv_func_iconv" = yes; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_ICONV 1
11776 if test "$am_cv_lib_iconv" = yes; then
11777 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11778 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11779 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11780 echo "${ECHO_T}$LIBICONV" >&6; }
11782 CPPFLAGS="$am_save_CPPFLAGS"
11789 if test "$am_cv_func_iconv" = yes; then
11790 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11791 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11792 if test "${am_cv_proto_iconv+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 #include <stdlib.h>
11809 #if defined(__STDC__) || defined(__cplusplus)
11810 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.$ac_objext; then
11840 am_cv_proto_iconv_arg1=""
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 am_cv_proto_iconv_arg1="const"
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 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);"
11852 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11853 { echo "$as_me:$LINENO: result: ${ac_t:-
11854 }$am_cv_proto_iconv" >&5
11855 echo "${ECHO_T}${ac_t:-
11856 }$am_cv_proto_iconv" >&6; }
11858 cat >>confdefs.h <<_ACEOF
11859 #define ICONV_CONST $am_cv_proto_iconv_arg1
11864 # Until we have in-tree GNU iconv:
11869 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11870 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11871 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <locale.h>
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (ac_try="$ac_link"
11891 case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_link") 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } && {
11903 test -z "$ac_c_werror_flag" ||
11904 test ! -s conftest.err
11905 } && test -s conftest$ac_exeext &&
11906 $as_test_x conftest$ac_exeext; then
11907 am_cv_val_LC_MESSAGES=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 am_cv_val_LC_MESSAGES=no
11915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11916 conftest$ac_exeext conftest.$ac_ext
11918 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11919 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11920 if test $am_cv_val_LC_MESSAGES = yes; then
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_LC_MESSAGES 1
11930 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11931 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11932 if test "${am_cv_langinfo_codeset+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 #include <langinfo.h>
11945 char* cs = nl_langinfo(CODESET);
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 am_cv_langinfo_codeset=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 am_cv_langinfo_codeset=no
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11981 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11982 if test $am_cv_langinfo_codeset = yes; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_LANGINFO_CODESET 1
11991 # We will need to find libiberty.h and ansidecl.h
11992 saved_CFLAGS="$CFLAGS"
11993 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12033 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12034 strsignal strstr strverscmp \
12035 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12036 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
12038 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12039 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12040 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12041 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12051 #define $ac_tr_decl 1
12053 #include "ansidecl.h"
12054 #include "system.h"
12060 char *(*pfn) = (char *(*)) $ac_func ;
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } && {
12080 test -z "$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 } && test -s conftest.$ac_objext; then
12083 eval "gcc_cv_have_decl_$ac_func=yes"
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 eval "gcc_cv_have_decl_$ac_func=no"
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12095 { echo "$as_me:$LINENO: result: yes" >&5
12096 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12097 #define $ac_tr_decl 1
12101 { echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12103 #define $ac_tr_decl 0
12114 for ac_func in getrlimit setrlimit getrusage
12116 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12117 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12118 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12119 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 #define $ac_tr_decl 1
12131 #include "ansidecl.h"
12132 #include "system.h"
12133 #ifdef HAVE_SYS_RESOURCE_H
12134 #include <sys/resource.h>
12142 char *(*pfn) = (char *(*)) $ac_func ;
12148 rm -f conftest.$ac_objext
12149 if { (ac_try="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12157 grep -v '^ *+' conftest.er1 >conftest.err
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest.$ac_objext; then
12165 eval "gcc_cv_have_decl_$ac_func=yes"
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 eval "gcc_cv_have_decl_$ac_func=no"
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12177 { echo "$as_me:$LINENO: result: yes" >&5
12178 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12179 #define $ac_tr_decl 1
12183 { echo "$as_me:$LINENO: result: no" >&5
12184 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12185 #define $ac_tr_decl 0
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12200 #include "ansidecl.h"
12201 #include "system.h"
12202 #ifdef HAVE_SYS_RESOURCE_H
12203 #include <sys/resource.h>
12214 rm -f conftest.$ac_objext
12215 if { (ac_try="$ac_compile"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_compile") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest.$ac_objext; then
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12237 cat >>confdefs.h <<\_ACEOF
12238 #define rlim_t long
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12246 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12247 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12248 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12250 for ac_func in ldgetname
12252 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12253 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12254 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12255 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #define $ac_tr_decl 1
12267 #include "ansidecl.h"
12268 #include "system.h"
12269 #ifdef HAVE_LDFCN_H
12280 char *(*pfn) = (char *(*)) $ac_func ;
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_compile") 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } && {
12300 test -z "$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 } && test -s conftest.$ac_objext; then
12303 eval "gcc_cv_have_decl_$ac_func=yes"
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 eval "gcc_cv_have_decl_$ac_func=no"
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12315 { echo "$as_me:$LINENO: result: yes" >&5
12316 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12317 #define $ac_tr_decl 1
12321 { echo "$as_me:$LINENO: result: no" >&5
12322 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12323 #define $ac_tr_decl 0
12332 for ac_func in times
12334 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12335 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12336 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12337 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12347 #define $ac_tr_decl 1
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #ifdef HAVE_SYS_TIMES_H
12352 #include <sys/times.h>
12360 char *(*pfn) = (char *(*)) $ac_func ;
12366 rm -f conftest.$ac_objext
12367 if { (ac_try="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12383 eval "gcc_cv_have_decl_$ac_func=yes"
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 eval "gcc_cv_have_decl_$ac_func=no"
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12395 { echo "$as_me:$LINENO: result: yes" >&5
12396 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12397 #define $ac_tr_decl 1
12401 { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12403 #define $ac_tr_decl 0
12412 for ac_func in sigaltstack
12414 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12415 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12416 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12427 #define $ac_tr_decl 1
12429 #include "ansidecl.h"
12430 #include "system.h"
12431 #include <signal.h>
12438 char *(*pfn) = (char *(*)) $ac_func ;
12444 rm -f conftest.$ac_objext
12445 if { (ac_try="$ac_compile"
12446 case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_compile") 2>conftest.er1
12453 grep -v '^ *+' conftest.er1 >conftest.err
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_c_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest.$ac_objext; then
12461 eval "gcc_cv_have_decl_$ac_func=yes"
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 eval "gcc_cv_have_decl_$ac_func=no"
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12473 { echo "$as_me:$LINENO: result: yes" >&5
12474 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12475 #define $ac_tr_decl 1
12479 { echo "$as_me:$LINENO: result: no" >&5
12480 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12481 #define $ac_tr_decl 0
12489 # More time-related stuff.
12490 { echo "$as_me:$LINENO: checking for struct tms" >&5
12491 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
12492 if test "${ac_cv_struct_tms+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 #include "ansidecl.h"
12504 #include "system.h"
12505 #ifdef HAVE_SYS_TIMES_H
12506 #include <sys/times.h>
12517 rm -f conftest.$ac_objext
12518 if { (ac_try="$ac_compile"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
12534 ac_cv_struct_tms=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_struct_tms=no
12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12545 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
12546 if test $ac_cv_struct_tms = yes; then
12548 cat >>confdefs.h <<\_ACEOF
12549 #define HAVE_STRUCT_TMS 1
12554 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12555 # revisit after autoconf 2.50.
12556 { echo "$as_me:$LINENO: checking for clock_t" >&5
12557 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
12558 if test "${gcc_cv_type_clock_t+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12569 #include "ansidecl.h"
12570 #include "system.h"
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_compile") 2>conftest.er1
12589 grep -v '^ *+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest.$ac_objext; then
12597 gcc_cv_type_clock_t=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 gcc_cv_type_clock_t=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12608 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
12609 if test $gcc_cv_type_clock_t = yes; then
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_CLOCK_T 1
12617 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12618 CFLAGS="$saved_CFLAGS"
12620 # Check whether --enable-initfini-array was given.
12621 if test "${enable_initfini_array+set}" = set; then
12622 enableval=$enable_initfini_array;
12625 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12626 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12627 if test "${gcc_cv_initfini_array+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 if test "$cross_compiling" = yes; then
12631 gcc_cv_initfini_array=no
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12641 int main (void) { return x; }
12642 int foo (void) { x = 0; }
12643 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12645 rm -f conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_link") 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 gcc_cv_initfini_array=yes
12667 echo "$as_me: program exited with status $ac_status" >&5
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ( exit $ac_status )
12672 gcc_cv_initfini_array=no
12674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12679 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12680 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
12681 enable_initfini_array=$gcc_cv_initfini_array
12685 if test $enable_initfini_array = yes; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_INITFINI_ARRAY 1
12693 # mkdir takes a single argument on some systems.
12694 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12695 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
12696 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 #include <sys/types.h>
12707 #ifdef HAVE_SYS_STAT_H
12708 # include <sys/stat.h>
12710 #ifdef HAVE_UNISTD_H
12711 # include <unistd.h>
12713 #ifdef HAVE_DIRECT_H
12714 # include <direct.h>
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1 >conftest.err
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.$ac_objext; then
12741 gcc_cv_mkdir_takes_one_arg=no
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 gcc_cv_mkdir_takes_one_arg=yes
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12752 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
12753 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12755 cat >>confdefs.h <<\_ACEOF
12756 #define MKDIR_TAKES_ONE_ARG 1
12768 # With Setjmp/Longjmp based exception handling.
12769 # Check whether --enable-sjlj-exceptions was given.
12770 if test "${enable_sjlj_exceptions+set}" = set; then
12771 enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12773 cat >>confdefs.h <<_ACEOF
12774 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12780 # For platforms with the unwind ABI which includes an unwind library,
12781 # libunwind, we can choose to use the system libunwind.
12783 # Check whether --with-system-libunwind was given.
12784 if test "${with_system_libunwind+set}" = set; then
12785 withval=$with_system_libunwind;
12789 # config.gcc also contains tests of with_system_libunwind.
12790 if test x$with_system_libunwind = xyes; then
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_GETIPINFO 1
12798 # --------------------------------------------------------
12799 # Build, host, and target specific configuration fragments
12800 # --------------------------------------------------------
12802 # Collect build-machine-specific information.
12803 . ${srcdir}/config.build
12805 # Collect host-machine-specific information.
12806 . ${srcdir}/config.host
12810 # Collect target-machine-specific information.
12811 . ${srcdir}/config.gcc
12813 extra_objs="${host_extra_objs} ${extra_objs}"
12814 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12816 # Default the target-machine variables that were not explicitly set.
12817 if test x"$tm_file" = x
12818 then tm_file=$cpu_type/$cpu_type.h; fi
12820 if test x"$extra_headers" = x
12821 then extra_headers=; fi
12823 if test x$md_file = x
12824 then md_file=$cpu_type/$cpu_type.md; fi
12826 if test x$out_file = x
12827 then out_file=$cpu_type/$cpu_type.c; fi
12829 if test x"$tmake_file" = x
12830 then tmake_file=$cpu_type/t-$cpu_type
12833 if test x"$dwarf2" = xyes
12834 then tm_file="$tm_file tm-dwarf2.h"
12837 # Say what files are being used for the output code and MD file.
12838 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12839 echo "Using \`$srcdir/config/$md_file' as machine description file."
12841 # If any of the xm_file variables contain nonexistent files, warn
12842 # about them and drop them.
12845 for x in $build_xm_file; do
12846 if test -f $srcdir/config/$x
12848 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12849 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12852 build_xm_file="$bx"
12855 for x in $host_xm_file; do
12856 if test -f $srcdir/config/$x
12858 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12859 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12865 for x in $xm_file; do
12866 if test -f $srcdir/config/$x
12868 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12869 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12875 for f in $tm_file; do
12878 if test $count = ax; then
12879 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12881 echo "Using the following target machine macro files:"
12882 for f in $tm_file; do
12883 echo " $srcdir/config/$f"
12887 if test x$need_64bit_hwint = xyes; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define NEED_64BIT_HOST_WIDE_INT 1
12895 if test x$use_long_long_for_widest_fast_int = xyes; then
12897 cat >>confdefs.h <<\_ACEOF
12898 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12904 for f in $host_xm_file; do
12907 if test $count = a; then
12909 elif test $count = ax; then
12910 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12912 echo "Using the following host machine macro files:"
12913 for f in $host_xm_file; do
12914 echo " $srcdir/config/$f"
12917 echo "Using ${out_host_hook_obj} for host machine hooks."
12919 if test "$host_xm_file" != "$build_xm_file"; then
12921 for f in $build_xm_file; do
12924 if test $count = a; then
12926 elif test $count = ax; then
12927 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12929 echo "Using the following build machine macro files:"
12930 for f in $build_xm_file; do
12931 echo " $srcdir/config/$f"
12937 powerpc*-*-darwin*)
12938 { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12939 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
12940 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12945 #include <sys/cdefs.h>
12946 #include <sys/signal.h>
12947 #include <ucontext.h>
12948 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12951 rm -f conftest.$ac_objext
12952 if { (ac_try="$ac_compile"
12953 case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_compile") 2>conftest.er1
12960 grep -v '^ *+' conftest.er1 >conftest.err
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } && {
12965 test -z "$ac_c_werror_flag" ||
12966 test ! -s conftest.err
12967 } && test -s conftest.$ac_objext; then
12968 gcc_cv_mcontext_underscores=no
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 gcc_cv_mcontext_underscores=yes
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12979 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
12980 if test $gcc_cv_mcontext_underscores = yes; then
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAS_MCONTEXT_T_UNDERSCORES
12994 # Check if a valid thread package
12995 case ${enable_threads} in
12998 target_thread_file='single'
13002 target_thread_file='single'
13004 aix | dce | gnat | irix | posix | posix95 | rtems | \
13005 single | solaris | vxworks | win32 )
13006 target_thread_file=${enable_threads}
13009 echo "${enable_threads} is an unknown thread package" 1>&2
13014 if test x${thread_file} = x; then
13015 # No thread file set by target-specific clauses in config.gcc,
13016 # so use file chosen by default logic above
13017 thread_file=${target_thread_file}
13020 # Make gthr-default.h if we have a thread file.
13022 if test $thread_file != single; then
13023 rm -f gthr-default.h
13024 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13025 gthread_flags=-DHAVE_GTHR_DEFAULT
13034 if test x$enable___cxa_atexit = xyes || \
13035 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13036 if test x$host = x$target; then
13038 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13039 # keyed to flag_use_cxa_atexit
13044 { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13045 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
13046 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13057 #define __cxa_atexit innocuous___cxa_atexit
13059 /* System header to define __stub macros and hopefully few prototypes,
13060 which can conflict with char __cxa_atexit (); below.
13061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13062 <limits.h> exists even on freestanding compilers. */
13065 # include <limits.h>
13067 # include <assert.h>
13070 #undef __cxa_atexit
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13078 char __cxa_atexit ();
13079 /* The GNU C library defines this for functions which it implements
13080 to always fail with ENOSYS. Some functions are actually named
13081 something starting with __ and the normal name is an alias. */
13082 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
13089 return __cxa_atexit ();
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_link") 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } && {
13108 test -z "$ac_c_werror_flag" ||
13109 test ! -s conftest.err
13110 } && test -s conftest$ac_exeext &&
13111 $as_test_x conftest$ac_exeext; then
13112 ac_cv_func___cxa_atexit=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_cv_func___cxa_atexit=no
13120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13121 conftest$ac_exeext conftest.$ac_ext
13123 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13124 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
13125 if test $ac_cv_func___cxa_atexit = yes; then
13128 echo "__cxa_atexit can't be enabled on this target"
13134 # We can't check for __cxa_atexit when building a cross, so assume
13138 if test x$use_cxa_atexit = xyes; then
13140 cat >>confdefs.h <<\_ACEOF
13141 #define DEFAULT_USE_CXA_ATEXIT 2
13148 if test x$with_system_libunwind = xyes; then
13149 if test x$host = x$target; then
13150 { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13151 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
13152 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 ac_func_search_save_LIBS=$LIBS
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13169 char _Unwind_GetIPInfo ();
13173 return _Unwind_GetIPInfo ();
13178 for ac_lib in '' unwind; do
13179 if test -z "$ac_lib"; then
13180 ac_res="none required"
13183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (ac_try="$ac_link"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_link") 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest$ac_exeext &&
13202 $as_test_x conftest$ac_exeext; then
13203 ac_cv_search__Unwind_GetIPInfo=$ac_res
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13213 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13217 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13220 ac_cv_search__Unwind_GetIPInfo=no
13222 rm conftest.$ac_ext
13223 LIBS=$ac_func_search_save_LIBS
13225 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13226 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
13227 ac_res=$ac_cv_search__Unwind_GetIPInfo
13228 if test "$ac_res" != no; then
13229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238 if test x$use_getipinfo = xyes; then
13240 cat >>confdefs.h <<\_ACEOF
13241 #define HAVE_GETIPINFO 1
13245 echo "The system unwind library does not support _Unwind_GetIPInfo."
13248 # Look for a file containing extra machine modes.
13249 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13250 extra_modes_file='$(srcdir)'/config/${extra_modes}
13253 cat >>confdefs.h <<_ACEOF
13254 #define EXTRA_MODES_FILE "config/$extra_modes"
13259 # Convert extra_options into a form suitable for Makefile use.
13261 for f in $extra_options; do
13262 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13266 # auto-host.h is the file containing items generated by autoconf and is
13267 # the first file included by config.h.
13268 # If host=build, it is correct to have bconfig include auto-host.h
13269 # as well. If host!=build, we are in error and need to do more
13270 # work to find out the build config parameters.
13271 if test x$host = x$build
13273 build_auto=auto-host.h
13275 # We create a subdir, then run autoconf in the subdir.
13276 # To prevent recursion we set host and build for the new
13277 # invocation of configure to the build for this invocation
13284 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13285 *) realsrcdir=../${srcdir};;
13287 saved_CFLAGS="${CFLAGS}"
13288 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13289 ${realsrcdir}/configure \
13290 --enable-languages=${enable_languages-all} \
13291 --target=$target_alias --host=$build_alias --build=$build_alias
13292 CFLAGS="${saved_CFLAGS}"
13294 # We just finished tests for the build machine, so rename
13295 # the file auto-build.h in the gcc directory.
13296 mv auto-host.h ../auto-build.h
13299 build_auto=auto-build.h
13303 tm_file="${tm_file} defaults.h"
13304 tm_p_file="${tm_p_file} tm-preds.h"
13305 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13306 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13307 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13308 # put this back in temporarily.
13309 xm_file="auto-host.h ansidecl.h ${xm_file}"
13315 # Compile in configure arguments.
13316 if test -f configargs.h ; then
13317 # Being re-configured.
13318 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13319 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13321 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13324 # Double all backslashes and backslash all quotes to turn
13325 # gcc_config_arguments into a C string.
13326 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13327 $gcc_config_arguments
13329 gcc_config_arguments_str=`cat conftest.out`
13332 cat > configargs.h <<EOF
13333 /* Generated automatically. */
13334 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13335 static const char thread_model[] = "$thread_file";
13337 static const struct {
13338 const char *name, *value;
13339 } configure_default_options[] = $configure_default_options;
13342 # Internationalization
13343 # If we haven't got the data from the intl directory,
13344 # assume NLS is disabled.
13353 if test -f ../intl/config.intl; then
13354 . ../intl/config.intl
13356 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13357 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13358 if test x"$USE_NLS" != xyes; then
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13362 { echo "$as_me:$LINENO: result: yes" >&5
13363 echo "${ECHO_T}yes" >&6; }
13365 cat >>confdefs.h <<\_ACEOF
13366 #define ENABLE_NLS 1
13370 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13371 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13372 # Look for .po and .gmo files in the source directory.
13375 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13376 # If there aren't any .gmo files the shell will give us the
13377 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13379 case "$cat" in *\**)
13382 # The quadruple backslash is collapsed to a double backslash
13383 # by the backticks, then collapsed again by the double quotes,
13384 # leaving us with one backslash in the sed expression (right
13385 # before the dot that mustn't act as a wildcard).
13386 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13387 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13388 # The user is allowed to set LINGUAS to a list of languages to
13389 # install catalogs for. If it's empty that means "all of them."
13390 if test "x$LINGUAS" = x; then
13391 CATALOGS="$CATALOGS $cat"
13392 XLINGUAS="$XLINGUAS $lang"
13394 case "$LINGUAS" in *$lang*)
13395 CATALOGS="$CATALOGS $cat"
13396 XLINGUAS="$XLINGUAS $lang"
13401 LINGUAS="$XLINGUAS"
13402 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13403 echo "${ECHO_T}$LINGUAS" >&6; }
13416 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13417 # -liconv on the link line twice.
13418 case "$LIBINTL" in *$LIBICONV*)
13422 # Check whether --enable-secureplt was given.
13423 if test "${enable_secureplt+set}" = set; then
13424 enableval=$enable_secureplt;
13428 # Windows32 Registry support for specifying GCC installation paths.
13429 # Check whether --enable-win32-registry was given.
13430 if test "${enable_win32_registry+set}" = set; then
13431 enableval=$enable_win32_registry;
13436 win32 | pe | cygwin* | mingw32* | uwin*)
13437 if test "x$enable_win32_registry" != xno; then
13438 { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13439 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
13440 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 ac_func_search_save_LIBS=$LIBS
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13457 char RegOpenKeyExA ();
13461 return RegOpenKeyExA ();
13466 for ac_lib in '' advapi32; do
13467 if test -z "$ac_lib"; then
13468 ac_res="none required"
13471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } && {
13487 test -z "$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest$ac_exeext &&
13490 $as_test_x conftest$ac_exeext; then
13491 ac_cv_search_RegOpenKeyExA=$ac_res
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13505 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13508 ac_cv_search_RegOpenKeyExA=no
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13513 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13514 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
13515 ac_res=$ac_cv_search_RegOpenKeyExA
13516 if test "$ac_res" != no; then
13517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13520 enable_win32_registry=no
13525 if test "x$enable_win32_registry" != xno; then
13527 cat >>confdefs.h <<\_ACEOF
13528 #define ENABLE_WIN32_REGISTRY 1
13532 if test "x$enable_win32_registry" != xyes \
13533 && test "x$enable_win32_registry" != x; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13544 # Get an absolute path to the GCC top-level source directory
13545 holddir=`${PWDCMD-pwd}`
13547 topdir=`${PWDCMD-pwd}`
13550 # Conditionalize the makefile for this host machine.
13552 for f in ${host_xmake_file}
13554 if test -f ${srcdir}/config/$f
13556 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13560 # Conditionalize the makefile for this target machine.
13562 for f in ${tmake_file}
13564 if test -f ${srcdir}/config/$f
13566 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13569 tmake_file="${tmake_file_}"
13571 # This is a terrible hack which will go away some day.
13572 host_cc_for_libada=${CC}
13575 out_object_file=`basename $out_file .c`.o
13577 tm_file_list="options.h"
13578 tm_include_list="options.h"
13579 for f in $tm_file; do
13582 f=`echo $f | sed 's/^..//'`
13583 tm_file_list="${tm_file_list} $f"
13584 tm_include_list="${tm_include_list} $f"
13587 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13588 tm_include_list="${tm_include_list} $f"
13591 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13592 tm_include_list="${tm_include_list} config/$f"
13599 for f in $tm_p_file; do
13602 tm_p_file_list="${tm_p_file_list} $f"
13603 tm_p_include_list="${tm_p_include_list} $f"
13606 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13607 tm_p_include_list="${tm_p_include_list} config/$f"
13613 for f in $xm_file; do
13616 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13617 xm_include_list="${xm_include_list} $f"
13620 xm_file_list="${xm_file_list} $f"
13621 xm_include_list="${xm_include_list} $f"
13624 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13625 xm_include_list="${xm_include_list} config/$f"
13631 host_xm_include_list=
13632 for f in $host_xm_file; do
13635 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13636 host_xm_include_list="${host_xm_include_list} $f"
13639 host_xm_file_list="${host_xm_file_list} $f"
13640 host_xm_include_list="${host_xm_include_list} $f"
13643 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13644 host_xm_include_list="${host_xm_include_list} config/$f"
13649 build_xm_file_list=
13650 for f in $build_xm_file; do
13653 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13654 build_xm_include_list="${build_xm_include_list} $f"
13656 auto-build.h | auto-host.h )
13657 build_xm_file_list="${build_xm_file_list} $f"
13658 build_xm_include_list="${build_xm_include_list} $f"
13661 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13662 build_xm_include_list="${build_xm_include_list} config/$f"
13667 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13668 # cross-compiler which does not use the native headers and libraries.
13669 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13672 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13674 if test "x$with_build_sysroot" != x; then
13675 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13677 # This value is used, even on a native system, because
13678 # CROSS_SYSTEM_HEADER_DIR is just
13679 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13680 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13683 if test x$host != x$target
13685 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13687 SYSTEM_HEADER_DIR=$build_system_header_dir
13688 case "$host","$target" in
13689 # Darwin crosses can use the host system's libraries and headers,
13690 # because of the fat library support. Of course, it must be the
13691 # same version of Darwin on both sides. Allow the user to
13692 # just say --target=foo-darwin without a version number to mean
13693 # "the version on this system".
13694 *-*-darwin*,*-*-darwin*)
13695 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13696 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13697 if test $hostos = $targetos -o $targetos = darwin ; then
13699 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13704 i?86-*-*,x86_64-*-* \
13705 | powerpc*-*-*,powerpc64*-*-*)
13706 CROSS="$CROSS -DNATIVE_CROSS" ;;
13708 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13709 SYSTEM_HEADER_DIR=$build_system_header_dir
13712 # If this is a cross-compiler that does not
13713 # have its own set of headers then define
13716 # If this is using newlib, without having the headers available now,
13717 # then define inhibit_libc in LIBGCC2_CFLAGS.
13718 # This prevents libgcc2 from containing any code which requires libc
13721 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13722 test x$with_newlib = xyes ; } &&
13723 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13728 # When building gcc with a cross-compiler, we need to adjust things so
13729 # that the generator programs are still built with the native compiler.
13730 # Also, we cannot run fixincludes or fix-header.
13732 # These are the normal (build=host) settings:
13733 CC_FOR_BUILD='$(CC)'
13734 BUILD_CFLAGS='$(ALL_CFLAGS)'
13735 STMP_FIXINC=stmp-fixinc
13737 # Possibly disable fixproto, on a per-target basis.
13738 case ${use_fixproto} in
13743 STMP_FIXPROTO=stmp-fixproto
13748 # And these apply if build != host, or we are generating coverage data
13749 if test x$build != x$host || test "x$coverage_flags" != x
13751 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13753 if test "x$TARGET_SYSTEM_ROOT" = x; then
13754 if test "x$STMP_FIXPROTO" != x; then
13755 STMP_FIXPROTO=stmp-install-fixproto
13760 # Expand extra_headers to include complete path.
13761 # This substitutes for lots of t-* files.
13762 extra_headers_list=
13763 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13764 for file in ${extra_headers} ; do
13765 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13768 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13769 if test x"$use_gcc_tgmath" = xyes
13770 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13773 # Define collect2 in Makefile.
13774 case $host_can_use_collect2 in
13776 *) collect2='collect2$(exeext)' ;;
13780 # Add a definition of USE_COLLECT2 if system wants one.
13781 case $use_collect2 in
13782 no) use_collect2= ;;
13785 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13786 xm_defines="${xm_defines} USE_COLLECT2"
13787 case $host_can_use_collect2 in
13789 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13790 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13791 { (exit 1); exit 1; }; }
13797 # ---------------------------
13798 # Assembler & linker features
13799 # ---------------------------
13801 # Identify the assembler which will work hand-in-glove with the newly
13802 # built GCC, so that we can examine its features. This is the assembler
13803 # which will be driven by the driver program.
13805 # If build != host, and we aren't building gas in-tree, we identify a
13806 # build->target assembler and hope that it will have the same features
13807 # as the host->target assembler we'll be using.
13808 gcc_cv_gas_major_version=
13809 gcc_cv_gas_minor_version=
13810 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13812 if test "${gcc_cv_as+set}" = set; then
13816 if test -x "$DEFAULT_ASSEMBLER"; then
13817 gcc_cv_as="$DEFAULT_ASSEMBLER"
13818 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13819 && test -f ../gas/Makefile \
13820 && test x$build = x$host; then
13821 gcc_cv_as=../gas/as-new$build_exeext
13822 elif test -x as$build_exeext; then
13823 # Build using assembler in the current directory.
13824 gcc_cv_as=./as$build_exeext
13825 elif test -x $AS_FOR_TARGET; then
13826 gcc_cv_as="$AS_FOR_TARGET"
13828 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13829 set dummy $AS_FOR_TARGET; ac_word=$2
13830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13832 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13847 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 gcc_cv_as=$ac_cv_path_gcc_cv_as
13859 if test -n "$gcc_cv_as"; then
13860 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13861 echo "${ECHO_T}$gcc_cv_as" >&6; }
13863 { echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6; }
13872 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13874 case "$ORIGINAL_AS_FOR_TARGET" in
13875 ./as | ./as$build_exeext) ;;
13876 *) ac_config_files="$ac_config_files as:exec-tool.in"
13880 { echo "$as_me:$LINENO: checking what assembler to use" >&5
13881 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
13882 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13883 # Single tree build which includes gas. We want to prefer it
13884 # over whatever linker top-level may have detected, since
13885 # we'll use what we're building after installation anyway.
13886 { echo "$as_me:$LINENO: result: newly built gas" >&5
13887 echo "${ECHO_T}newly built gas" >&6; }
13889 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13890 for f in $gcc_cv_as_bfd_srcdir/configure \
13891 $gcc_cv_as_gas_srcdir/configure \
13892 $gcc_cv_as_gas_srcdir/configure.in \
13893 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13894 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13895 if test x$gcc_cv_gas_version != x; then
13899 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13900 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13901 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13902 case $gcc_cv_gas_patch_version in
13903 "") gcc_cv_gas_patch_version="0" ;;
13905 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13906 + $gcc_cv_gas_minor_version \) \* 1000 \
13907 + $gcc_cv_gas_patch_version`
13909 in_tree_gas_is_elf=no
13910 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13911 || (grep 'obj_format = multi' ../gas/Makefile \
13912 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13914 in_tree_gas_is_elf=yes
13917 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13918 echo "${ECHO_T}$gcc_cv_as" >&6; }
13922 # Identify the linker which will work hand-in-glove with the newly
13923 # built GCC, so that we can examine its features. This is the linker
13924 # which will be driven by the driver program.
13926 # If build != host, and we aren't building gas in-tree, we identify a
13927 # build->target linker and hope that it will have the same features
13928 # as the host->target linker we'll be using.
13929 gcc_cv_gld_major_version=
13930 gcc_cv_gld_minor_version=
13931 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13932 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13934 if test "${gcc_cv_ld+set}" = set; then
13938 if test -x "$DEFAULT_LINKER"; then
13939 gcc_cv_ld="$DEFAULT_LINKER"
13940 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13941 && test -f ../ld/Makefile \
13942 && test x$build = x$host; then
13943 gcc_cv_ld=../ld/ld-new$build_exeext
13944 elif test -x collect-ld$build_exeext; then
13945 # Build using linker in the current directory.
13946 gcc_cv_ld=./collect-ld$build_exeext
13947 elif test -x $LD_FOR_TARGET; then
13948 gcc_cv_ld="$LD_FOR_TARGET"
13950 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13951 set dummy $LD_FOR_TARGET; ac_word=$2
13952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13954 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13981 if test -n "$gcc_cv_ld"; then
13982 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13983 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13985 { echo "$as_me:$LINENO: result: no" >&5
13986 echo "${ECHO_T}no" >&6; }
13994 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13996 case "$ORIGINAL_LD_FOR_TARGET" in
13997 ./collect-ld | ./collect-ld$build_exeext) ;;
13998 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
14002 { echo "$as_me:$LINENO: checking what linker to use" >&5
14003 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
14004 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
14005 # Single tree build which includes ld. We want to prefer it
14006 # over whatever linker top-level may have detected, since
14007 # we'll use what we're building after installation anyway.
14008 { echo "$as_me:$LINENO: result: newly built ld" >&5
14009 echo "${ECHO_T}newly built ld" >&6; }
14011 in_tree_ld_is_elf=no
14012 if (grep 'EMUL = .*elf' ../ld/Makefile \
14013 || grep 'EMUL = .*linux' ../ld/Makefile \
14014 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
14015 in_tree_ld_is_elf=yes
14017 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
14019 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
14020 if test x$gcc_cv_gld_version != x; then
14024 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
14025 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
14027 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
14028 echo "${ECHO_T}$gcc_cv_ld" >&6; }
14032 # Figure out what nm we will be using.
14033 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
14034 if test "${gcc_cv_nm+set}" = set; then
14038 if test -f $gcc_cv_binutils_srcdir/configure.in \
14039 && test -f ../binutils/Makefile \
14040 && test x$build = x$host; then
14041 gcc_cv_nm=../binutils/nm-new$build_exeext
14042 elif test -x nm$build_exeext; then
14043 gcc_cv_nm=./nm$build_exeext
14044 elif test -x $NM_FOR_TARGET; then
14045 gcc_cv_nm="$NM_FOR_TARGET"
14047 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14048 set dummy $NM_FOR_TARGET; ac_word=$2
14049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14051 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14077 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14078 if test -n "$gcc_cv_nm"; then
14079 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14080 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14082 { echo "$as_me:$LINENO: result: no" >&5
14083 echo "${ECHO_T}no" >&6; }
14091 { echo "$as_me:$LINENO: checking what nm to use" >&5
14092 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
14093 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14094 # Single tree build which includes binutils.
14095 { echo "$as_me:$LINENO: result: newly built nm" >&5
14096 echo "${ECHO_T}newly built nm" >&6; }
14099 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14100 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14104 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14106 case "$ORIGINAL_NM_FOR_TARGET" in
14107 ./nm | ./nm$build_exeext) ;;
14108 *) ac_config_files="$ac_config_files nm:exec-tool.in"
14113 # Figure out what objdump we will be using.
14114 if test "${gcc_cv_objdump+set}" = set; then
14118 if test -f $gcc_cv_binutils_srcdir/configure.in \
14119 && test -f ../binutils/Makefile \
14120 && test x$build = x$host; then
14121 # Single tree build which includes binutils.
14122 gcc_cv_objdump=../binutils/objdump$build_exeext
14123 elif test -x objdump$build_exeext; then
14124 gcc_cv_objdump=./objdump$build_exeext
14125 elif test -x $OBJDUMP_FOR_TARGET; then
14126 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14128 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14129 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14132 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 case $gcc_cv_objdump in
14137 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14159 if test -n "$gcc_cv_objdump"; then
14160 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14161 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14163 { echo "$as_me:$LINENO: result: no" >&5
14164 echo "${ECHO_T}no" >&6; }
14172 { echo "$as_me:$LINENO: checking what objdump to use" >&5
14173 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
14174 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14175 # Single tree build which includes binutils.
14176 { echo "$as_me:$LINENO: result: newly built objdump" >&5
14177 echo "${ECHO_T}newly built objdump" >&6; }
14178 elif test x$gcc_cv_objdump = x; then
14179 { echo "$as_me:$LINENO: result: not found" >&5
14180 echo "${ECHO_T}not found" >&6; }
14182 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14183 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14186 # Figure out what assembler alignment features are present.
14187 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14188 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
14189 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 gcc_cv_as_balign_and_p2align=no
14193 if test $in_tree_gas = yes; then
14194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14195 then gcc_cv_as_balign_and_p2align=yes
14197 elif test x$gcc_cv_as != x; then
14199 .p2align 2' > conftest.s
14200 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }
14207 gcc_cv_as_balign_and_p2align=yes
14209 echo "configure: failed program was" >&5
14212 rm -f conftest.o conftest.s
14215 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14216 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
14217 if test $gcc_cv_as_balign_and_p2align = yes; then
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14225 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14226 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
14227 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 gcc_cv_as_max_skip_p2align=no
14231 if test $in_tree_gas = yes; then
14232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14233 then gcc_cv_as_max_skip_p2align=yes
14235 elif test x$gcc_cv_as != x; then
14236 echo '.p2align 4,,7' > conftest.s
14237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }
14244 gcc_cv_as_max_skip_p2align=yes
14246 echo "configure: failed program was" >&5
14249 rm -f conftest.o conftest.s
14252 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14253 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
14254 if test $gcc_cv_as_max_skip_p2align = yes; then
14256 cat >>confdefs.h <<\_ACEOF
14257 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14262 { echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14263 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6; }
14264 if test "${gcc_cv_as_literal16+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 gcc_cv_as_literal16=no
14268 if test $in_tree_gas = yes; then
14269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14270 then gcc_cv_as_literal16=yes
14272 elif test x$gcc_cv_as != x; then
14273 echo '.literal16' > conftest.s
14274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }
14281 gcc_cv_as_literal16=yes
14283 echo "configure: failed program was" >&5
14286 rm -f conftest.o conftest.s
14289 { echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14290 echo "${ECHO_T}$gcc_cv_as_literal16" >&6; }
14291 if test $gcc_cv_as_literal16 = yes; then
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_GAS_LITERAL16 1
14299 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14300 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
14301 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 gcc_cv_as_subsection_m1=no
14305 if test $in_tree_gas = yes; then
14306 if test $in_tree_gas_is_elf = yes \
14307 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14308 then gcc_cv_as_subsection_m1=yes
14310 elif test x$gcc_cv_as != x; then
14311 echo 'conftest_label1: .word 0
14313 conftest_label2: .word 0
14314 .previous' > conftest.s
14315 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }
14322 if test x$gcc_cv_nm != x; then
14323 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14324 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14325 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14327 else gcc_cv_as_subsection_m1=yes
14329 rm -f conftest.nm1 conftest.nm2
14332 echo "configure: failed program was" >&5
14335 rm -f conftest.o conftest.s
14338 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14339 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
14340 if test $gcc_cv_as_subsection_m1 = yes; then
14342 cat >>confdefs.h <<\_ACEOF
14343 #define HAVE_GAS_SUBSECTION_ORDERING 1
14348 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
14349 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
14350 if test "${gcc_cv_as_weak+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 if test $in_tree_gas = yes; then
14355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14356 then gcc_cv_as_weak=yes
14358 elif test x$gcc_cv_as != x; then
14359 echo ' .weak foobar' > conftest.s
14360 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }
14369 echo "configure: failed program was" >&5
14372 rm -f conftest.o conftest.s
14375 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14376 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
14377 if test $gcc_cv_as_weak = yes; then
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_GAS_WEAK 1
14385 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14386 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
14387 if test "${gcc_cv_as_weakref+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 gcc_cv_as_weakref=no
14391 if test $in_tree_gas = yes; then
14392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14393 then gcc_cv_as_weakref=yes
14395 elif test x$gcc_cv_as != x; then
14396 echo ' .weakref foobar, barfnot' > conftest.s
14397 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }
14404 gcc_cv_as_weakref=yes
14406 echo "configure: failed program was" >&5
14409 rm -f conftest.o conftest.s
14412 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14413 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
14414 if test $gcc_cv_as_weakref = yes; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_GAS_WEAKREF 1
14422 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14423 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
14424 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 gcc_cv_as_nsubspa_comdat=no
14428 if test $in_tree_gas = yes; then
14429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14430 then gcc_cv_as_nsubspa_comdat=yes
14432 elif test x$gcc_cv_as != x; then
14433 echo ' .SPACE $TEXT$
14434 .NSUBSPA $CODE$,COMDAT' > conftest.s
14435 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }
14442 gcc_cv_as_nsubspa_comdat=yes
14444 echo "configure: failed program was" >&5
14447 rm -f conftest.o conftest.s
14450 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14451 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
14452 if test $gcc_cv_as_nsubspa_comdat = yes; then
14454 cat >>confdefs.h <<\_ACEOF
14455 #define HAVE_GAS_NSUBSPA_COMDAT 1
14460 # .hidden needs to be supported in both the assembler and the linker,
14461 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14462 # This is irritatingly difficult to feature test for; we have to check the
14463 # date string after the version number. If we've got an in-tree
14464 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14466 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14467 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14468 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
14469 if test "${gcc_cv_as_hidden+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 gcc_cv_as_hidden=no
14473 if test $in_tree_gas = yes; then
14474 if test $in_tree_gas_is_elf = yes \
14475 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14476 then gcc_cv_as_hidden=yes
14478 elif test x$gcc_cv_as != x; then
14479 echo ' .hidden foobar
14480 foobar:' > conftest.s
14481 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }
14488 gcc_cv_as_hidden=yes
14490 echo "configure: failed program was" >&5
14493 rm -f conftest.o conftest.s
14496 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14497 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
14500 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14501 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
14502 if test "${gcc_cv_ld_hidden+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 if test $in_tree_ld = yes ; then
14506 gcc_cv_ld_hidden=no
14507 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 \
14508 && test $in_tree_ld_is_elf = yes; then
14509 gcc_cv_ld_hidden=yes
14512 gcc_cv_ld_hidden=yes
14513 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14514 if echo "$ld_ver" | grep GNU > /dev/null; then
14515 ld_vers=`echo $ld_ver | sed -n \
14516 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14517 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14518 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14519 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14520 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14521 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14522 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14523 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'`
14524 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14525 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14526 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14527 if test 0"$ld_date" -lt 20020404; then
14528 if test -n "$ld_date"; then
14529 # If there was date string, but was earlier than 2002-04-04, fail
14530 gcc_cv_ld_hidden=no
14531 elif test -z "$ld_vers"; then
14532 # If there was no date string nor ld version number, something is wrong
14533 gcc_cv_ld_hidden=no
14535 test -z "$ld_vers_patch" && ld_vers_patch=0
14536 if test "$ld_vers_major" -lt 2; then
14537 gcc_cv_ld_hidden=no
14538 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14539 gcc_cv_ld_hidden="no"
14540 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14541 gcc_cv_ld_hidden=no
14546 case "${target}" in
14547 hppa64*-*-hpux* | ia64*-*-hpux*)
14548 gcc_cv_ld_hidden=yes
14551 gcc_cv_ld_hidden=no
14557 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14558 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
14559 libgcc_visibility=no
14562 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14563 libgcc_visibility=yes
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE_GAS_HIDDEN 1
14571 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14572 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14573 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
14574 if test "${gcc_cv_as_leb128+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 gcc_cv_as_leb128=no
14578 if test $in_tree_gas = yes; then
14579 if test $in_tree_gas_is_elf = yes \
14580 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14581 then gcc_cv_as_leb128=yes
14583 elif test x$gcc_cv_as != x; then
14590 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }
14597 # GAS versions before 2.11 do not support uleb128,
14598 # despite appearing to.
14599 # ??? There exists an elf-specific test that will crash
14600 # the assembler. Perhaps it's better to figure out whether
14601 # arbitrary sections are supported and try the test.
14602 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14603 if echo "$as_ver" | grep GNU > /dev/null; then
14604 as_vers=`echo $as_ver | sed -n \
14605 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14606 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14607 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14608 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14609 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14610 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14611 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14612 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14613 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14614 if test $as_major -eq 2 && test $as_minor -lt 11
14616 else gcc_cv_as_leb128=yes
14620 echo "configure: failed program was" >&5
14623 rm -f conftest.o conftest.s
14626 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14627 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
14628 if test $gcc_cv_as_leb128 = yes; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_AS_LEB128 1
14636 # GAS versions up to and including 2.11.0 may mis-optimize
14638 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14639 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
14640 if test "${gcc_cv_as_eh_frame+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 gcc_cv_as_eh_frame=no
14644 if test $in_tree_gas = yes; then
14645 if test $in_tree_gas_is_elf = yes \
14646 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14647 then gcc_cv_as_eh_frame=yes
14649 elif test x$gcc_cv_as != x; then
14656 .section .eh_frame,"aw",@progbits
14658 .4byte .LECIE1-.LSCIE1
14672 .4byte .LEFDE1-.LASFDE1
14674 .4byte .LASFDE1-__FRAME_BEGIN__
14681 .LEFDE1:' > conftest.s
14682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }
14689 cat > conftest.lit <<EOF
14690 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14691 0010 01000000 12000000 18000000 00000000 ................
14692 0020 08000000 04080000 0044 .........D
14694 cat > conftest.big <<EOF
14695 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14696 0010 00000001 00000012 00000018 00000000 ................
14697 0020 00000008 04000000 0844 .........D
14699 # If the assembler didn't choke, and we can objdump,
14700 # and we got the correct data, then succeed.
14701 # The text in the here-document typically retains its unix-style line
14702 # endings, while the output of objdump will use host line endings.
14703 # Therefore, use diff -b for the comparisons.
14704 if test x$gcc_cv_objdump != x \
14705 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14706 | tail -3 > conftest.got \
14707 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14708 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14710 gcc_cv_as_eh_frame=yes
14711 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 gcc_cv_as_eh_frame=buggy
14719 # Uh oh, what do we do now?
14720 gcc_cv_as_eh_frame=no
14723 echo "configure: failed program was" >&5
14726 rm -f conftest.o conftest.s
14729 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14730 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
14733 if test $gcc_cv_as_eh_frame = buggy; then
14735 cat >>confdefs.h <<\_ACEOF
14736 #define USE_AS_TRADITIONAL_FORMAT 1
14741 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14742 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14743 if test "${gcc_cv_as_shf_merge+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 gcc_cv_as_shf_merge=no
14747 if test $in_tree_gas = yes; then
14748 if test $in_tree_gas_is_elf = yes \
14749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14750 then gcc_cv_as_shf_merge=yes
14752 elif test x$gcc_cv_as != x; then
14753 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14754 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }
14761 gcc_cv_as_shf_merge=yes
14763 echo "configure: failed program was" >&5
14766 rm -f conftest.o conftest.s
14769 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14770 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14772 if test $gcc_cv_as_shf_merge = no; then
14773 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14774 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14775 if test "${gcc_cv_as_shf_merge+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 gcc_cv_as_shf_merge=no
14779 if test $in_tree_gas = yes; then
14780 if test $in_tree_gas_is_elf = yes \
14781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14782 then gcc_cv_as_shf_merge=yes
14784 elif test x$gcc_cv_as != x; then
14785 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14786 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }
14793 gcc_cv_as_shf_merge=yes
14795 echo "configure: failed program was" >&5
14798 rm -f conftest.o conftest.s
14801 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14802 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14811 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14812 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14813 if test "${gcc_cv_as_comdat_group+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 gcc_cv_as_comdat_group=no
14817 if test $in_tree_gas = yes; then
14818 if test $in_tree_gas_is_elf = yes \
14819 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14820 then gcc_cv_as_comdat_group=yes
14822 elif test x$gcc_cv_as != x; then
14823 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14824 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }
14831 gcc_cv_as_comdat_group=yes
14833 echo "configure: failed program was" >&5
14836 rm -f conftest.o conftest.s
14839 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14840 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
14842 if test $gcc_cv_as_comdat_group = yes; then
14843 gcc_cv_as_comdat_group_percent=no
14845 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14846 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14847 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 gcc_cv_as_comdat_group_percent=no
14851 if test $in_tree_gas = yes; then
14852 if test $in_tree_gas_is_elf = yes \
14853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14854 then gcc_cv_as_comdat_group_percent=yes
14856 elif test x$gcc_cv_as != x; then
14857 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14858 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }
14865 gcc_cv_as_comdat_group_percent=yes
14867 echo "configure: failed program was" >&5
14870 rm -f conftest.o conftest.s
14873 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14874 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
14877 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14879 if test 0"$ld_date" -lt 20050308; then
14880 if test -n "$ld_date"; then
14881 # If there was date string, but was earlier than 2005-03-08, fail
14883 elif test "$ld_vers_major" -lt 2; then
14885 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14890 # assume linkers other than GNU ld don't support COMDAT group
14893 if test $comdat_group = no; then
14894 gcc_cv_as_comdat_group=no
14895 gcc_cv_as_comdat_group_percent=no
14898 cat >>confdefs.h <<_ACEOF
14899 #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`
14903 # Thread-local storage - the check is heavily parametrized.
14911 .section ".tdata","awT",@progbits
14914 ldq $27,__tls_get_addr($29) !literal!1
14915 lda $16,foo($29) !tlsgd!1
14916 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14917 ldq $27,__tls_get_addr($29) !literal!2
14918 lda $16,foo($29) !tlsldm!2
14919 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14920 ldq $1,foo($29) !gotdtprel
14921 ldah $2,foo($29) !dtprelhi
14922 lda $3,foo($2) !dtprello
14923 lda $4,foo($29) !dtprel
14924 ldq $1,foo($29) !gottprel
14925 ldah $2,foo($29) !tprelhi
14926 lda $3,foo($2) !tprello
14927 lda $4,foo($29) !tprel'
14930 tls_as_opt=--fatal-warnings
14934 .section ".tdata","awT",@progbits
14937 call #gettlsoff(x)'
14946 .section ".tdata","awT",@progbits
14950 addil LT%foo-$tls_gdidx$,gp
14951 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14954 addil LT%foo-$tls_ldidx$,gp
14956 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14957 addil LR%foo-$tls_dtpoff$,%ret0
14958 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14960 addil LT%foo-$tls_ieoff$,gp
14961 ldw RT%foo-$tls_ieoff$(%r1),%t2
14964 addil LR%foo-$tls_leoff$,%t1
14965 ldo RR%foo-$tls_leoff$(%r1),%t2'
14968 tls_as_opt=--fatal-warnings
14972 .section ".tdata","awT",%progbits
14975 .word foo(gottpoff)
14985 .section ".tdata","awT",@progbits
14989 leal foo@TLSGD(,%ebx,1), %eax
14990 leal foo@TLSLDM(%ebx), %eax
14991 leal foo@DTPOFF(%eax), %edx
14992 movl foo@GOTTPOFF(%ebx), %eax
14993 subl foo@GOTTPOFF(%ebx), %eax
14994 addl foo@GOTNTPOFF(%ebx), %eax
14995 movl foo@INDNTPOFF, %eax
14996 movl $foo@TPOFF, %eax
14997 subl $foo@TPOFF, %eax
14998 leal foo@NTPOFF(%ecx), %eax'
15001 tls_as_opt=--fatal-warnings
15005 .section ".tdata","awT",@progbits
15009 leaq foo@TLSGD(%rip), %rdi
15010 leaq foo@TLSLD(%rip), %rdi
15011 leaq foo@DTPOFF(%rax), %rdx
15012 movq foo@GOTTPOFF(%rip), %rax
15013 movq $foo@TPOFF, %rax'
15016 tls_as_opt=--fatal-warnings
15020 .section ".tdata","awT",@progbits
15023 addl r16 = @ltoff(@dtpmod(foo#)), gp
15024 addl r17 = @ltoff(@dtprel(foo#)), gp
15025 addl r18 = @ltoff(@tprel(foo#)), gp
15026 addl r19 = @dtprel(foo#), gp
15027 adds r21 = @dtprel(foo#), r13
15028 movl r23 = @dtprel(foo#)
15029 addl r20 = @tprel(foo#), gp
15030 adds r22 = @tprel(foo#), r13
15031 movl r24 = @tprel(foo#)'
15034 tls_as_opt=--fatal-warnings
15038 .section .tdata,"awT",@progbits
15042 addiu $4, $28, %tlsgd(x)
15043 addiu $4, $28, %tlsldm(x)
15044 lui $4, %dtprel_hi(x)
15045 addiu $4, $4, %dtprel_lo(x)
15046 lw $4, %gottprel(x)($28)
15047 lui $4, %tprel_hi(x)
15048 addiu $4, $4, %tprel_lo(x)'
15051 tls_as_opt='-32 --fatal-warnings'
15055 .section ".tdata","awT",@progbits
15063 addi 3,31,ld0@got@tlsgd
15065 addi 3,31,x1@got@tlsld
15068 addis 9,3,x2@dtprel@ha
15069 addi 9,9,x2@dtprel@l
15070 lwz 9,x3@got@tprel(31)
15073 addis 9,2,x2@tprel@ha
15074 addi 9,9,x2@tprel@l'
15077 tls_as_opt="-a32 --fatal-warnings"
15081 .section ".tdata","awT",@progbits
15089 addi 3,2,ld0@got@tlsgd
15095 addi 3,2,x1@got@tlsld
15101 addis 9,3,x2@dtprel@ha
15102 addi 9,9,x2@dtprel@l
15105 ld 9,x3@got@dtprel(2)
15111 tls_as_opt="-a64 --fatal-warnings"
15115 .section ".tdata","awT",@progbits
15122 .long foo@GOTNTPOFF
15123 .long foo@INDNTPOFF
15124 l %r1,foo@GOTNTPOFF(%r12)
15125 l %r1,0(%r1):tls_load:foo
15126 bas %r14,0(%r1,%r13):tls_gdcall:foo
15127 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15130 tls_as_opt="-m31 --fatal-warnings"
15134 .section ".tdata","awT",@progbits
15141 .quad foo@GOTNTPOFF
15142 lg %r1,foo@GOTNTPOFF(%r12)
15143 larl %r1,foo@INDNTPOFF
15144 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15145 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15148 tls_as_opt="-m64 -Aesame --fatal-warnings"
15150 sh-*-* | sh[34]-*-*)
15152 .section ".tdata","awT",@progbits
15162 tls_as_opt=--fatal-warnings
15166 sparc*-sun-solaris2.[56789]*)
15167 # TLS was introduced in the Solaris 9 4/04 release but
15168 # we do not enable it by default on Solaris 9 either.
15169 if test "x$enable_tls" = xyes ; then
15175 sparc*-sun-solaris2.*)
15182 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15184 .section ".tdata",#alloc,#write,#tls
15187 sethi %tgd_hi22(foo), %o0
15188 add %o0, %tgd_lo10(foo), %o1
15189 add %l7, %o1, %o0, %tgd_add(foo)
15190 call __tls_get_addr, %tgd_call(foo)
15191 sethi %tldm_hi22(foo), %l1
15192 add %l1, %tldm_lo10(foo), %l2
15193 add %l7, %l2, %o0, %tldm_add(foo)
15194 call __tls_get_addr, %tldm_call(foo)
15195 sethi %tldo_hix22(foo), %l3
15196 xor %l3, %tldo_lox10(foo), %l4
15197 add %o0, %l4, %l5, %tldo_add(foo)
15198 sethi %tie_hi22(foo), %o3
15199 add %o3, %tie_lo10(foo), %o3
15200 ld [%l7 + %o3], %o2, %tie_ld(foo)
15201 add %g7, %o2, %o4, %tie_add(foo)
15202 sethi %tle_hix22(foo), %l1
15203 xor %l1, %tle_lox10(foo), %o5
15204 ld [%g7 + %o5], %o1'
15209 .section ".tdata","awT",@progbits
15212 sethi %tgd_hi22(foo), %o0
15213 add %o0, %tgd_lo10(foo), %o1
15214 add %l7, %o1, %o0, %tgd_add(foo)
15215 call __tls_get_addr, %tgd_call(foo)
15216 sethi %tldm_hi22(foo), %l1
15217 add %l1, %tldm_lo10(foo), %l2
15218 add %l7, %l2, %o0, %tldm_add(foo)
15219 call __tls_get_addr, %tldm_call(foo)
15220 sethi %tldo_hix22(foo), %l3
15221 xor %l3, %tldo_lox10(foo), %l4
15222 add %o0, %l4, %l5, %tldo_add(foo)
15223 sethi %tie_hi22(foo), %o3
15224 add %o3, %tie_lo10(foo), %o3
15225 ld [%l7 + %o3], %o2, %tie_ld(foo)
15226 add %g7, %o2, %o4, %tie_add(foo)
15227 sethi %tle_hix22(foo), %l1
15228 xor %l1, %tle_lox10(foo), %o5
15229 ld [%g7 + %o5], %o1'
15232 tls_as_opt="-32 --fatal-warnings"
15237 if test "x$enable_tls" = xno ; then
15238 : # TLS explicitly disabled.
15239 elif test "x$enable_tls" = xyes ; then
15240 set_have_as_tls=yes # TLS explicitly enabled.
15241 elif test -z "$tls_first_major"; then
15242 : # If we don't have a check, assume no support.
15244 { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15245 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
15246 if test "${gcc_cv_as_tls+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 if test $in_tree_gas = yes; then
15251 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15252 then gcc_cv_as_tls=yes
15254 elif test x$gcc_cv_as != x; then
15255 echo "$conftest_s" > conftest.s
15256 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }
15265 echo "configure: failed program was" >&5
15268 rm -f conftest.o conftest.s
15271 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15272 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
15273 if test $gcc_cv_as_tls = yes; then
15274 set_have_as_tls=yes
15277 if test $set_have_as_tls = yes ; then
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_AS_TLS 1
15285 # Target-specific assembler checks.
15287 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15288 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
15289 gcc_cv_ld_static_dynamic=no
15290 if test $in_tree_ld = yes ; then
15291 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15292 gcc_cv_ld_static_dynamic=yes
15294 elif test x$gcc_cv_ld != x; then
15295 # Check if linker supports -Bstatic/-Bdynamic option
15296 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15297 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15298 gcc_cv_ld_static_dynamic=yes
15301 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15303 cat >>confdefs.h <<\_ACEOF
15304 #define HAVE_LD_STATIC_DYNAMIC 1
15308 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15309 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
15311 if test x"$demangler_in_ld" = xyes; then
15312 { echo "$as_me:$LINENO: checking linker --demangle support" >&5
15313 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
15314 gcc_cv_ld_demangle=no
15315 if test $in_tree_ld = yes; then
15316 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 \
15317 gcc_cv_ld_demangle=yes
15319 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15320 # Check if the GNU linker supports --demangle option
15321 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15322 gcc_cv_ld_demangle=yes
15325 if test x"$gcc_cv_ld_demangle" = xyes; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_LD_DEMANGLE 1
15332 { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15333 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
15337 # All TARGET_ABI_OSF targets.
15338 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15339 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15340 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
15341 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 gcc_cv_as_alpha_explicit_relocs=no
15345 if test $in_tree_gas = yes; then
15346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15347 then gcc_cv_as_alpha_explicit_relocs=yes
15349 elif test x$gcc_cv_as != x; then
15350 echo ' .set nomacro
15352 extbl $3, $2, $3 !lituse_bytoff!1
15353 ldq $2, a($29) !literal!1
15354 ldq $4, b($29) !literal!2
15355 ldq_u $3, 0($2) !lituse_base!1
15356 ldq $27, f($29) !literal!5
15357 jsr $26, ($27), f !lituse_jsr!5
15358 ldah $29, 0($26) !gpdisp!3
15359 lda $0, c($29) !gprel
15360 ldah $1, d($29) !gprelhigh
15361 lda $1, d($1) !gprellow
15362 lda $29, 0($29) !gpdisp!3' > conftest.s
15363 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }
15370 gcc_cv_as_alpha_explicit_relocs=yes
15372 echo "configure: failed program was" >&5
15375 rm -f conftest.o conftest.s
15378 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15379 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
15380 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_AS_EXPLICIT_RELOCS 1
15387 { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15388 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
15389 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 gcc_cv_as_alpha_jsrdirect_relocs=no
15393 if test $in_tree_gas = yes; then
15394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15395 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15397 elif test x$gcc_cv_as != x; then
15398 echo ' .set nomacro
15400 ldq $27, a($29) !literal!1
15401 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15402 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }
15409 gcc_cv_as_alpha_jsrdirect_relocs=yes
15411 echo "configure: failed program was" >&5
15414 rm -f conftest.o conftest.s
15417 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15418 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15419 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_AS_JSRDIRECT_RELOCS 1
15429 { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15430 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
15431 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 gcc_cv_as_cris_no_mul_bug=no
15435 if test $in_tree_gas = yes; then
15436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15437 then gcc_cv_as_cris_no_mul_bug=yes
15439 elif test x$gcc_cv_as != x; then
15440 echo '.text' > conftest.s
15441 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }
15448 gcc_cv_as_cris_no_mul_bug=yes
15450 echo "configure: failed program was" >&5
15453 rm -f conftest.o conftest.s
15456 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15457 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
15458 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15468 { echo "$as_me:$LINENO: checking assembler for .register" >&5
15469 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
15470 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 gcc_cv_as_sparc_register_op=no
15474 if test x$gcc_cv_as != x; then
15475 echo '.register %g2, #scratch' > conftest.s
15476 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }
15483 gcc_cv_as_sparc_register_op=yes
15485 echo "configure: failed program was" >&5
15488 rm -f conftest.o conftest.s
15491 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15492 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
15493 if test $gcc_cv_as_sparc_register_op = yes; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15501 { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15502 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
15503 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 gcc_cv_as_sparc_relax=no
15507 if test x$gcc_cv_as != x; then
15508 echo '.text' > conftest.s
15509 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }
15516 gcc_cv_as_sparc_relax=yes
15518 echo "configure: failed program was" >&5
15521 rm -f conftest.o conftest.s
15524 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15525 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
15526 if test $gcc_cv_as_sparc_relax = yes; then
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_AS_RELAX_OPTION 1
15534 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15535 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
15536 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 gcc_cv_as_sparc_ua_pcrel=no
15540 if test x$gcc_cv_as != x; then
15547 .uaword %r_disp32(foo)' > conftest.s
15548 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }
15555 if test x$gcc_cv_ld != x \
15556 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15557 gcc_cv_as_sparc_ua_pcrel=yes
15561 echo "configure: failed program was" >&5
15564 rm -f conftest.o conftest.s
15567 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15568 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
15569 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE_AS_SPARC_UA_PCREL 1
15576 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15577 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
15578 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 gcc_cv_as_sparc_ua_pcrel_hidden=no
15582 if test x$gcc_cv_as != x; then
15586 .uaword %r_disp32(foo)
15587 .byte 0x32, 0x33, 0x34
15591 .skip 4' > conftest.s
15592 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }
15599 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15600 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15601 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15602 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15603 if $gcc_cv_objdump -R conftest 2> /dev/null \
15604 | grep 'DISP32' > /dev/null 2>&1; then
15607 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15612 echo "configure: failed program was" >&5
15615 rm -f conftest.o conftest.s
15618 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15619 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
15620 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15628 fi # unaligned pcrel relocs
15630 { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15631 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
15632 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 gcc_cv_as_sparc_offsetable_lo10=no
15636 if test x$gcc_cv_as != x; then
15638 or %g1, %lo(ab) + 12, %g1
15639 or %g1, %lo(ab + 12), %g1' > conftest.s
15640 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }
15647 if test x$gcc_cv_objdump != x \
15648 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15649 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15650 gcc_cv_as_sparc_offsetable_lo10=yes
15653 echo "configure: failed program was" >&5
15656 rm -f conftest.o conftest.s
15659 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15660 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
15661 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15663 cat >>confdefs.h <<\_ACEOF
15664 #define HAVE_AS_OFFSETABLE_LO10 1
15670 i[34567]86-*-* | x86_64-*-*)
15672 cygwin* | pe | mingw32*)
15673 # Used for DWARF 2 in PE
15674 { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15675 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
15676 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 gcc_cv_as_ix86_pe_secrel32=no
15680 if test $in_tree_gas = yes; then
15681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15682 then gcc_cv_as_ix86_pe_secrel32=yes
15684 elif test x$gcc_cv_as != x; then
15688 .secrel32 foo' > conftest.s
15689 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }
15696 if test x$gcc_cv_ld != x \
15697 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15698 gcc_cv_as_ix86_pe_secrel32=yes
15702 echo "configure: failed program was" >&5
15705 rm -f conftest.o conftest.s
15708 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15709 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
15710 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15712 cat >>confdefs.h <<\_ACEOF
15713 #define HAVE_GAS_PE_SECREL32_RELOC 1
15720 { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15721 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
15722 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 gcc_cv_as_ix86_filds_fists=no
15726 if test $in_tree_gas = yes; then
15727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15728 then gcc_cv_as_ix86_filds_fists=yes
15730 elif test x$gcc_cv_as != x; then
15731 echo 'filds mem; fists mem' > conftest.s
15732 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }
15739 gcc_cv_as_ix86_filds_fists=yes
15741 echo "configure: failed program was" >&5
15744 rm -f conftest.o conftest.s
15747 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15748 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
15749 if test $gcc_cv_as_ix86_filds_fists = yes; then
15751 cat >>confdefs.h <<\_ACEOF
15752 #define HAVE_GAS_FILDS_FISTS 1
15757 { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15758 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
15759 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 gcc_cv_as_ix86_cmov_sun_syntax=no
15763 if test x$gcc_cv_as != x; then
15764 echo 'cmovl.l %edx, %eax' > conftest.s
15765 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }
15772 gcc_cv_as_ix86_cmov_sun_syntax=yes
15774 echo "configure: failed program was" >&5
15777 rm -f conftest.o conftest.s
15780 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15781 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
15782 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15790 { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15791 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
15792 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 gcc_cv_as_ix86_ffreep=no
15796 if test x$gcc_cv_as != x; then
15797 echo 'ffreep %st(1)' > conftest.s
15798 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }
15805 gcc_cv_as_ix86_ffreep=yes
15807 echo "configure: failed program was" >&5
15810 rm -f conftest.o conftest.s
15813 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15814 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
15815 if test $gcc_cv_as_ix86_ffreep = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_AS_IX86_FFREEP 1
15823 { echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15824 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6; }
15825 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 gcc_cv_as_ix86_sahf=no
15829 if test x$gcc_cv_as != x; then
15830 echo 'sahf' > conftest.s
15831 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }
15838 gcc_cv_as_ix86_sahf=yes
15840 echo "configure: failed program was" >&5
15843 rm -f conftest.o conftest.s
15846 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15847 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6; }
15848 if test $gcc_cv_as_ix86_sahf = yes; then
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_AS_IX86_SAHF 1
15856 { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15857 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
15858 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 gcc_cv_as_ix86_diff_sect_delta=no
15862 if test x$gcc_cv_as != x; then
15863 echo '.section .rodata
15869 .L2: nop' > conftest.s
15870 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }
15877 gcc_cv_as_ix86_diff_sect_delta=yes
15879 echo "configure: failed program was" >&5
15882 rm -f conftest.o conftest.s
15885 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15886 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
15887 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15895 # This one is used unconditionally by i386.[ch]; it is to be defined
15896 # to 1 if the feature is present, 0 otherwise.
15897 { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15898 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
15899 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 gcc_cv_as_ix86_gotoff_in_data=no
15903 if test $in_tree_gas = yes; then
15904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15905 then gcc_cv_as_ix86_gotoff_in_data=yes
15907 elif test x$gcc_cv_as != x; then
15912 .long .L0@GOTOFF' > conftest.s
15913 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }
15920 gcc_cv_as_ix86_gotoff_in_data=yes
15922 echo "configure: failed program was" >&5
15925 rm -f conftest.o conftest.s
15928 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15929 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
15932 cat >>confdefs.h <<_ACEOF
15933 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15939 { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15940 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
15941 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15945 if test $in_tree_gas = yes; then
15946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15947 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15949 elif test x$gcc_cv_as != x; then
15951 addl r15 = @ltoffx(x#), gp
15953 ld8.mov r16 = [r15], x#' > conftest.s
15954 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }
15961 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15963 echo "configure: failed program was" >&5
15966 rm -f conftest.o conftest.s
15969 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15970 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
15971 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15983 *-*-aix*) conftest_s=' .machine "pwr5"
15987 { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15988 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
15989 if test "${gcc_cv_as_machine_directive+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 gcc_cv_as_machine_directive=no
15993 if test x$gcc_cv_as != x; then
15994 echo ' .machine ppc7400' > conftest.s
15995 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }
16002 gcc_cv_as_machine_directive=yes
16004 echo "configure: failed program was" >&5
16007 rm -f conftest.o conftest.s
16010 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
16011 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
16013 if test x$gcc_cv_as_machine_directive != xyes; then
16014 echo "*** This target requires an assembler supporting \".machine\"" >&2
16015 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
16016 test x$build = x$target && exit 1
16020 *) conftest_s=' .machine power4
16025 { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
16026 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
16027 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 gcc_cv_as_powerpc_mfcrf=no
16031 if test $in_tree_gas = yes; then
16032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16033 then gcc_cv_as_powerpc_mfcrf=yes
16035 elif test x$gcc_cv_as != x; then
16036 echo "$conftest_s" > conftest.s
16037 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }
16044 gcc_cv_as_powerpc_mfcrf=yes
16046 echo "configure: failed program was" >&5
16049 rm -f conftest.o conftest.s
16052 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16053 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
16054 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_AS_MFCRF 1
16063 *-*-aix*) conftest_s=' .machine "pwr5"
16066 *) conftest_s=' .machine power5
16071 { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16072 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
16073 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 gcc_cv_as_powerpc_popcntb=no
16077 if test $in_tree_gas = yes; then
16078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16079 then gcc_cv_as_powerpc_popcntb=yes
16081 elif test x$gcc_cv_as != x; then
16082 echo "$conftest_s" > conftest.s
16083 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }
16090 gcc_cv_as_powerpc_popcntb=yes
16092 echo "configure: failed program was" >&5
16095 rm -f conftest.o conftest.s
16098 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16099 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
16100 if test $gcc_cv_as_powerpc_popcntb = yes; then
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_AS_POPCNTB 1
16109 *-*-aix*) conftest_s=' .machine "pwr5x"
16112 *) conftest_s=' .machine power5
16117 { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16118 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
16119 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 gcc_cv_as_powerpc_fprnd=no
16123 if test $in_tree_gas = yes; then
16124 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16125 then gcc_cv_as_powerpc_fprnd=yes
16127 elif test x$gcc_cv_as != x; then
16128 echo "$conftest_s" > conftest.s
16129 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }
16136 gcc_cv_as_powerpc_fprnd=yes
16138 echo "configure: failed program was" >&5
16141 rm -f conftest.o conftest.s
16144 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16145 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
16146 if test $gcc_cv_as_powerpc_fprnd = yes; then
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_AS_FPRND 1
16155 *-*-aix*) conftest_s=' .machine "pwr6"
16158 *) conftest_s=' .machine power6
16163 { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16164 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
16165 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 gcc_cv_as_powerpc_mfpgpr=no
16169 if test $in_tree_gas = yes; then
16170 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16171 then gcc_cv_as_powerpc_mfpgpr=yes
16173 elif test x$gcc_cv_as != x; then
16174 echo "$conftest_s" > conftest.s
16175 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }
16182 gcc_cv_as_powerpc_mfpgpr=yes
16184 echo "configure: failed program was" >&5
16187 rm -f conftest.o conftest.s
16190 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16191 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
16192 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_AS_MFPGPR 1
16201 *-*-aix*) conftest_s=' .csect .text[PR]
16203 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16207 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16208 *) conftest_s=' .text
16210 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16213 { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16214 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
16215 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 gcc_cv_as_powerpc_rel16=no
16219 if test $in_tree_gas = yes; then
16220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16221 then gcc_cv_as_powerpc_rel16=yes
16223 elif test x$gcc_cv_as != x; then
16224 echo "$conftest_s" > conftest.s
16225 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }
16232 gcc_cv_as_powerpc_rel16=yes
16234 echo "configure: failed program was" >&5
16237 rm -f conftest.o conftest.s
16240 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16241 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
16242 if test $gcc_cv_as_powerpc_rel16 = yes; then
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_AS_REL16 1
16251 *-*-aix*) conftest_s=' .machine "pwr6"
16254 *) conftest_s=' .machine power6
16259 { echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16260 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6; }
16261 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 gcc_cv_as_powerpc_cmpb=no
16265 if test $in_tree_gas = yes; then
16266 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16267 then gcc_cv_as_powerpc_cmpb=yes
16269 elif test x$gcc_cv_as != x; then
16270 echo "$conftest_s" > conftest.s
16271 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }
16278 gcc_cv_as_powerpc_cmpb=yes
16280 echo "configure: failed program was" >&5
16283 rm -f conftest.o conftest.s
16286 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16287 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6; }
16288 if test $gcc_cv_as_powerpc_cmpb = yes; then
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_AS_CMPB 1
16297 *-*-aix*) conftest_s=' .machine "pwr6"
16300 *) conftest_s=' .machine power6
16305 { echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16306 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6; }
16307 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 gcc_cv_as_powerpc_dfp=no
16311 if test $in_tree_gas = yes; then
16312 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16313 then gcc_cv_as_powerpc_dfp=yes
16315 elif test x$gcc_cv_as != x; then
16316 echo "$conftest_s" > conftest.s
16317 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }
16324 gcc_cv_as_powerpc_dfp=yes
16326 echo "configure: failed program was" >&5
16329 rm -f conftest.o conftest.s
16332 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16333 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6; }
16334 if test $gcc_cv_as_powerpc_dfp = yes; then
16336 cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_AS_DFP 1
16342 { echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16343 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6; }
16344 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 gcc_cv_as_powerpc_gnu_attribute=no
16348 if test $in_tree_gas = yes; then
16349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16350 then gcc_cv_as_powerpc_gnu_attribute=yes
16352 elif test x$gcc_cv_as != x; then
16353 echo '.gnu_attribute 4,1' > conftest.s
16354 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }
16361 gcc_cv_as_powerpc_gnu_attribute=yes
16363 echo "configure: failed program was" >&5
16366 rm -f conftest.o conftest.s
16369 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16370 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6; }
16371 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_AS_GNU_ATTRIBUTE 1
16381 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16382 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16383 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 gcc_cv_as_mips_explicit_relocs=no
16387 if test $in_tree_gas = yes; then
16388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16389 then gcc_cv_as_mips_explicit_relocs=yes
16391 elif test x$gcc_cv_as != x; then
16392 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16393 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }
16400 gcc_cv_as_mips_explicit_relocs=yes
16402 echo "configure: failed program was" >&5
16405 rm -f conftest.o conftest.s
16408 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16409 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
16410 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16411 if test x$target_cpu_default = x
16412 then target_cpu_default=MASK_EXPLICIT_RELOCS
16413 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16416 { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16417 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
16418 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 gcc_cv_as_mips_no_shared=no
16422 if test $in_tree_gas = yes; then
16423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16424 then gcc_cv_as_mips_no_shared=yes
16426 elif test x$gcc_cv_as != x; then
16427 echo 'nop' > conftest.s
16428 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }
16435 gcc_cv_as_mips_no_shared=yes
16437 echo "configure: failed program was" >&5
16440 rm -f conftest.o conftest.s
16443 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16444 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
16445 if test $gcc_cv_as_mips_no_shared = yes; then
16447 cat >>confdefs.h <<\_ACEOF
16448 #define HAVE_AS_NO_SHARED 1
16453 { echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16454 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6; }
16455 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 gcc_cv_as_mips_gnu_attribute=no
16459 if test $in_tree_gas = yes; then
16460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16461 then gcc_cv_as_mips_gnu_attribute=yes
16463 elif test x$gcc_cv_as != x; then
16464 echo '.gnu_attribute 4,1' > conftest.s
16465 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }
16472 gcc_cv_as_mips_gnu_attribute=yes
16474 echo "configure: failed program was" >&5
16477 rm -f conftest.o conftest.s
16480 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16481 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6; }
16482 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_AS_GNU_ATTRIBUTE 1
16490 { echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16491 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6; }
16492 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 gcc_cv_as_mips_dtprelword=no
16496 if test $in_tree_gas = yes; then
16497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16498 then gcc_cv_as_mips_dtprelword=yes
16500 elif test x$gcc_cv_as != x; then
16501 echo '.section .tdata,"awT",@progbits
16505 .dtprelword x+0x8000' > conftest.s
16506 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }
16513 gcc_cv_as_mips_dtprelword=yes
16515 echo "configure: failed program was" >&5
16518 rm -f conftest.o conftest.s
16521 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16522 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6; }
16523 if test $gcc_cv_as_mips_dtprelword = yes; then
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_AS_DTPRELWORD 1
16533 # Mips and HP-UX need the GNU assembler.
16534 # Linux on IA64 might be able to use the Intel assembler.
16537 mips*-*-* | *-*-hpux* )
16538 if test x$gas_flag = xyes \
16539 || test x"$host" != x"$build" \
16540 || test ! -x "$gcc_cv_as" \
16541 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16544 echo "*** This configuration requires the GNU assembler" >&2
16550 # ??? Not all targets support dwarf2 debug_line, even within a version
16551 # of gas. Moreover, we need to emit a valid instruction to trigger any
16552 # info to the output file. So, as supported targets are added to gas 2.11,
16553 # add some instruction here to (also) show we expect this might work.
16554 # ??? Once 2.11 is released, probably need to add first known working
16555 # version to the per-target configury.
16557 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16558 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16559 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16562 ia64*-*-* | s390*-*-*)
16569 if test x"$insn" != x; then
16571 .file 1 \"conftest.s\"
16574 { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16575 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
16576 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 gcc_cv_as_dwarf2_debug_line=no
16580 if test $in_tree_gas = yes; then
16581 if test $in_tree_gas_is_elf = yes \
16582 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16583 then gcc_cv_as_dwarf2_debug_line=yes
16585 elif test x$gcc_cv_as != x; then
16586 echo "$conftest_s" > conftest.s
16587 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }
16594 if test x$gcc_cv_objdump != x \
16595 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16596 | grep debug_line > /dev/null 2>&1; then
16597 gcc_cv_as_dwarf2_debug_line=yes
16600 echo "configure: failed program was" >&5
16603 rm -f conftest.o conftest.s
16606 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16607 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
16610 # The .debug_line file table must be in the exact order that
16611 # we specified the files, since these indices are also used
16612 # by DW_AT_decl_file. Approximate this test by testing if
16613 # the assembler bitches if the same index is assigned twice.
16614 { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16615 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
16616 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 gcc_cv_as_dwarf2_file_buggy=no
16620 if test x$gcc_cv_as != x; then
16621 echo ' .file 1 "foo.s"
16622 .file 1 "bar.s"' > conftest.s
16623 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }
16630 gcc_cv_as_dwarf2_file_buggy=yes
16632 echo "configure: failed program was" >&5
16635 rm -f conftest.o conftest.s
16638 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16639 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
16642 if test $gcc_cv_as_dwarf2_debug_line = yes \
16643 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16651 { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16652 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
16653 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 gcc_cv_as_gdwarf2_flag=no
16657 if test $in_tree_gas = yes; then
16658 if test $in_tree_gas_is_elf = yes \
16659 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16660 then gcc_cv_as_gdwarf2_flag=yes
16662 elif test x$gcc_cv_as != x; then
16663 echo "$insn" > conftest.s
16664 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }
16671 gcc_cv_as_gdwarf2_flag=yes
16673 echo "configure: failed program was" >&5
16676 rm -f conftest.o conftest.s
16679 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16680 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
16681 if test $gcc_cv_as_gdwarf2_flag = yes; then
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16689 { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16690 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
16691 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 gcc_cv_as_gstabs_flag=no
16695 if test $in_tree_gas = yes; then
16696 if test $in_tree_gas_is_elf = yes \
16697 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16698 then gcc_cv_as_gstabs_flag=yes
16700 elif test x$gcc_cv_as != x; then
16701 echo "$insn" > conftest.s
16702 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }
16709 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16710 # and warns about it, but still exits successfully. So check for
16712 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }
16719 else gcc_cv_as_gstabs_flag=yes
16722 echo "configure: failed program was" >&5
16725 rm -f conftest.o conftest.s
16728 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16729 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
16730 if test $gcc_cv_as_gstabs_flag = yes; then
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16738 { echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16739 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6; }
16740 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 gcc_cv_as_debug_prefix_map_flag=no
16744 if test $in_tree_gas = yes; then
16745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16746 then gcc_cv_as_debug_prefix_map_flag=yes
16748 elif test x$gcc_cv_as != x; then
16749 echo "$insn" > conftest.s
16750 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }
16757 gcc_cv_as_debug_prefix_map_flag=yes
16759 echo "configure: failed program was" >&5
16762 rm -f conftest.o conftest.s
16765 { echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16766 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6; }
16767 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16769 cat >>confdefs.h <<\_ACEOF
16770 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16776 { echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16777 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6; }
16778 if test "${gcc_cv_as_line_zero+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 gcc_cv_as_line_zero=no
16782 if test $in_tree_gas = yes; then
16783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16784 then gcc_cv_as_line_zero=yes
16786 elif test "x$gcc_cv_as" != x; then
16787 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16788 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 test "x`cat conftest.out`" = x
16796 gcc_cv_as_line_zero=yes
16798 echo "configure: failed program was" >&5
16800 echo "configure: error output was" >&5
16801 cat conftest.out >&5
16803 rm -f conftest.o conftest.s conftest.out
16806 { echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16807 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6; }
16808 if test "x$gcc_cv_as_line_zero" = xyes; then
16810 cat >>confdefs.h <<\_ACEOF
16811 #define HAVE_AS_LINE_ZERO 1
16816 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16817 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
16818 gcc_cv_ld_ro_rw_mix=unknown
16819 if test $in_tree_ld = yes ; then
16820 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 \
16821 && test $in_tree_ld_is_elf = yes; then
16822 gcc_cv_ld_ro_rw_mix=read-write
16824 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16825 echo '.section myfoosect, "a"' > conftest1.s
16826 echo '.section myfoosect, "aw"' > conftest2.s
16827 echo '.byte 1' >> conftest2.s
16828 echo '.section myfoosect, "a"' > conftest3.s
16829 echo '.byte 0' >> conftest3.s
16830 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16831 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16832 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16833 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16834 conftest2.o conftest3.o > /dev/null 2>&1; then
16835 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16836 | sed -e '/myfoosect/!d' -e N`
16837 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16838 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16839 gcc_cv_ld_ro_rw_mix=read-only
16841 gcc_cv_ld_ro_rw_mix=read-write
16845 rm -f conftest.* conftest[123].*
16847 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16849 cat >>confdefs.h <<\_ACEOF
16850 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16854 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16855 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
16857 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16858 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
16859 gcc_cv_ld_eh_frame_hdr=no
16860 if test $in_tree_ld = yes ; then
16861 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 \
16862 && test $in_tree_ld_is_elf = yes; then
16863 gcc_cv_ld_eh_frame_hdr=yes
16865 elif test x$gcc_cv_ld != x; then
16866 # Check if linker supports --eh-frame-hdr option
16867 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16868 gcc_cv_ld_eh_frame_hdr=yes
16872 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_LD_EH_FRAME_HDR 1
16879 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16880 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
16882 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16883 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
16885 if test $in_tree_ld = yes ; then
16886 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 \
16887 && test $in_tree_ld_is_elf = yes; then
16890 elif test x$gcc_cv_ld != x; then
16891 # Check if linker supports -pie option
16892 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16896 if test x"$gcc_cv_ld_pie" = xyes; then
16898 cat >>confdefs.h <<\_ACEOF
16899 #define HAVE_LD_PIE 1
16903 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16904 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
16906 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16907 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
16908 gcc_cv_ld_eh_gc_sections=no
16909 if test $in_tree_ld = yes ; then
16910 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 \
16911 && test $in_tree_ld_is_elf = yes; then
16912 gcc_cv_ld_eh_gc_sections=yes
16914 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16915 cat > conftest.s <<EOF
16918 .type _start, @function
16921 .size _start, .-_start
16922 .section .text.foo,"ax",@progbits
16923 .type foo, @function
16927 .section .gcc_except_table.foo,"a",@progbits
16930 .section .eh_frame,"a",@progbits
16933 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16934 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16935 | grep "gc-sections option ignored" > /dev/null; then
16936 gcc_cv_ld_eh_gc_sections=no
16937 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16938 gcc_cv_ld_eh_gc_sections=yes
16939 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16940 if test x$gcc_cv_as_comdat_group != xyes; then
16941 gcc_cv_ld_eh_gc_sections=no
16942 cat > conftest.s <<EOF
16945 .type _start, @function
16948 .size _start, .-_start
16949 .section .gnu.linkonce.t.foo,"ax",@progbits
16950 .type foo, @function
16954 .section .gcc_except_table.foo,"a",@progbits
16957 .section .eh_frame,"a",@progbits
16960 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16961 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16962 | grep "gc-sections option ignored" > /dev/null; then
16963 gcc_cv_ld_eh_gc_sections=no
16964 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16965 gcc_cv_ld_eh_gc_sections=yes
16971 rm -f conftest.s conftest.o conftest
16975 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16976 gcc_cv_ld_eh_gc_sections=no
16979 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_LD_EH_GC_SECTIONS 1
16986 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16987 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
16993 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16994 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
16995 if test "${gcc_cv_ld_as_needed+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 gcc_cv_ld_as_needed=no
16999 if test $in_tree_ld = yes ; then
17000 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 \
17001 && test $in_tree_ld_is_elf = yes; then
17002 gcc_cv_ld_as_needed=yes
17004 elif test x$gcc_cv_ld != x; then
17005 # Check if linker supports --as-needed and --no-as-needed options
17006 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
17007 gcc_cv_ld_as_needed=yes
17012 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
17013 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
17014 if test x"$gcc_cv_ld_as_needed" = xyes; then
17016 cat >>confdefs.h <<\_ACEOF
17017 #define HAVE_LD_AS_NEEDED 1
17022 case "$target:$tm_file" in
17023 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
17024 { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
17025 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
17026 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 gcc_cv_ld_no_dot_syms=no
17030 if test $in_tree_ld = yes ; then
17031 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
17032 gcc_cv_ld_no_dot_syms=yes
17034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
17035 cat > conftest1.s <<EOF
17039 cat > conftest2.s <<EOF
17040 .section ".opd","aw"
17043 .type foo,@function
17045 .quad .LEfoo,.TOC.@tocbase,0
17051 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
17052 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17053 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17054 gcc_cv_ld_no_dot_syms=yes
17056 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17060 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17061 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
17062 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17064 cat >>confdefs.h <<\_ACEOF
17065 #define HAVE_LD_NO_DOT_SYMS 1
17072 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17073 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
17074 if test "${gcc_cv_ld_sysroot+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 gcc_cv_ld_sysroot=no
17078 if test $in_tree_ld = yes ; then
17079 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
17080 gcc_cv_ld_sysroot=yes
17082 elif test x$gcc_cv_ld != x; then
17083 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17084 gcc_cv_ld_sysroot=yes
17088 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17089 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
17090 if test x"$gcc_cv_ld_sysroot" = xyes; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_LD_SYSROOT 1
17098 if test x$with_sysroot = x && test x$host = x$target \
17099 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17100 && test "$prefix" != "NONE"; then
17102 cat >>confdefs.h <<_ACEOF
17103 #define PREFIX_INCLUDE_DIR "$prefix/include"
17108 # Test for stack protector support in target C library.
17109 { echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17110 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6; }
17111 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 gcc_cv_libc_provides_ssp=no
17117 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17118 if test "x$with_sysroot" = x; then
17119 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17120 elif test "x$with_build_sysroot" != "x"; then
17121 glibc_header_dir="${with_build_sysroot}/usr/include"
17122 elif test "x$with_sysroot" = xyes; then
17123 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17125 glibc_header_dir="${with_sysroot}/usr/include"
17128 glibc_header_dir=/usr/include
17130 # glibc 2.4 and later provides __stack_chk_fail and
17131 # either __stack_chk_guard, or TLS access to stack guard canary.
17132 if test -f $glibc_header_dir/features.h \
17133 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
17134 $glibc_header_dir/features.h > /dev/null; then
17135 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
17136 $glibc_header_dir/features.h > /dev/null; then
17137 gcc_cv_libc_provides_ssp=yes
17138 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
17139 $glibc_header_dir/features.h > /dev/null \
17140 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
17141 $glibc_header_dir/features.h > /dev/null; then
17142 gcc_cv_libc_provides_ssp=yes
17147 { echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17148 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6; }
17149 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 cat >conftest.$ac_ext <<_ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17160 #define __stack_chk_fail innocuous___stack_chk_fail
17162 /* System header to define __stub macros and hopefully few prototypes,
17163 which can conflict with char __stack_chk_fail (); below.
17164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165 <limits.h> exists even on freestanding compilers. */
17168 # include <limits.h>
17170 # include <assert.h>
17173 #undef __stack_chk_fail
17175 /* Override any GCC internal prototype to avoid an error.
17176 Use char because int might match the return type of a GCC
17177 builtin and then its argument prototype would still apply. */
17181 char __stack_chk_fail ();
17182 /* The GNU C library defines this for functions which it implements
17183 to always fail with ENOSYS. Some functions are actually named
17184 something starting with __ and the normal name is an alias. */
17185 #if defined __stub___stack_chk_fail || defined __stub_____stack_chk_fail
17192 return __stack_chk_fail ();
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (ac_try="$ac_link"
17199 case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_link") 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } && {
17211 test -z "$ac_c_werror_flag" ||
17212 test ! -s conftest.err
17213 } && test -s conftest$ac_exeext &&
17214 $as_test_x conftest$ac_exeext; then
17215 ac_cv_func___stack_chk_fail=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_func___stack_chk_fail=no
17223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17224 conftest$ac_exeext conftest.$ac_ext
17226 { echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17227 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6; }
17228 if test $ac_cv_func___stack_chk_fail = yes; then
17229 gcc_cv_libc_provides_ssp=yes
17231 echo "no __stack_chk_fail on this target"
17235 *) gcc_cv_libc_provides_ssp=no ;;
17238 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17239 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; }
17241 if test x$gcc_cv_libc_provides_ssp = xyes; then
17243 cat >>confdefs.h <<\_ACEOF
17244 #define TARGET_LIBC_PROVIDES_SSP 1
17249 # Check if TFmode long double should be used by default or not.
17250 # Some glibc targets used DFmode long double, but with glibc 2.4
17251 # and later they can use TFmode.
17253 powerpc*-*-linux* | \
17254 powerpc*-*-gnu* | \
17255 sparc*-*-linux* | \
17259 # Check whether --with-long-double-128 was given.
17260 if test "${with_long_double_128+set}" = set; then
17261 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
17263 gcc_cv_target_ldbl128=no
17264 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17265 if test "x$with_sysroot" = x; then
17266 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17267 elif test "x$with_build_sysroot" != "x"; then
17268 glibc_header_dir="${with_build_sysroot}/usr/include"
17269 elif test "x$with_sysroot" = xyes; then
17270 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17272 glibc_header_dir="${with_sysroot}/usr/include"
17275 glibc_header_dir=/usr/include
17277 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17278 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17279 && gcc_cv_target_ldbl128=yes
17285 if test x$gcc_cv_target_ldbl128 = xyes; then
17287 cat >>confdefs.h <<\_ACEOF
17288 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17293 # Find out what GC implementation we want, or may, use.
17295 # Check whether --with-gc was given.
17296 if test "${with_gc+set}" = set; then
17297 withval=$with_gc; case "$withval" in
17304 cat >>confdefs.h <<\_ACEOF
17310 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17311 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17312 { (exit 1); exit 1; }; }
17320 echo "Using $GGC for garbage collection."
17322 # Use the system's zlib library.
17324 zlibinc="-I\$(srcdir)/../zlib"
17326 # Check whether --with-system-zlib was given.
17327 if test "${with_system_zlib+set}" = set; then
17328 withval=$with_system_zlib; zlibdir=
17337 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17338 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
17339 # Check whether --enable-maintainer-mode was given.
17340 if test "${enable_maintainer_mode+set}" = set; then
17341 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17347 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17348 echo "${ECHO_T}$maintainer_mode" >&6; }
17350 if test "$maintainer_mode" = "yes"; then
17360 # Make empty files to contain the specs and options for each language.
17361 # Then add #include lines to for a compiler that has specs and/or options.
17367 # These (without "all_") are set in each config-lang.in.
17368 # `language' must be a single word so is spelled singularly.
17371 all_outputs='Makefile gccbug libada-mk'
17372 # List of language makefile fragments.
17373 all_lang_makefrags=
17374 # List of language subdirectory makefiles. Deprecated.
17375 all_lang_makefiles=
17376 # Additional files for gengtype
17377 all_gtfiles="$target_gtfiles"
17379 # These are the languages that are set in --enable-languages,
17380 # and are available in the GCC tree.
17381 all_selected_languages=
17383 # Add the language fragments.
17384 # Languages are added via two mechanisms. Some information must be
17385 # recorded in makefile variables, these are defined in config-lang.in.
17386 # We accumulate them and plug them into the main Makefile.
17387 # The other mechanism is a set of hooks for each of the main targets
17388 # like `clean', `install', etc.
17390 language_hooks="Make-hooks"
17392 for lang in ${srcdir}/*/config-lang.in
17394 test "$lang" = "${srcdir}/*/config-lang.in" && continue
17396 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
17397 if test "x$lang_alias" = x
17399 echo "$lang doesn't set \$language." 1>&2
17402 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17403 subdirs="$subdirs $subdir"
17404 case ",$enable_languages," in
17406 all_selected_languages="$all_selected_languages $lang_alias"
17407 if test -f $srcdir/$subdir/lang-specs.h; then
17408 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17419 . ${srcdir}/$subdir/config-lang.in
17420 if test "x$language" = x
17422 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17427 case ",$enable_languages," in
17428 *,$lang_alias,*) ;;
17430 for i in $subdir_requires; do
17431 test -f "${srcdir}/$i/config-lang.in" && continue
17439 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17440 if test -f $srcdir/$subdir/lang.opt; then
17441 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17443 if test -f $srcdir/$subdir/$subdir-tree.def; then
17444 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17446 if test -f ${srcdir}/$subdir/Makefile.in
17447 then all_lang_makefiles="$subdir/Makefile"
17449 all_languages="$all_languages $language"
17450 all_compilers="$all_compilers $compilers"
17451 all_outputs="$all_outputs $outputs"
17452 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17455 # Pick up gtfiles for c
17457 . ${srcdir}/c-config-lang.in
17458 all_gtfiles="$all_gtfiles [c] $gtfiles"
17461 for language in $all_selected_languages
17463 check_languages="$check_languages check-$language"
17466 # We link each language in with a set of hooks, reached indirectly via
17467 # lang.${target}. Only do so for selected languages.
17471 target_list="all.cross start.encap rest.encap tags \
17472 install-common install-man install-info install-pdf dvi pdf \
17473 html uninstall info man srcextra srcman srcinfo \
17474 mostlyclean clean distclean maintainer-clean"
17476 for t in $target_list
17479 for lang in $all_selected_languages
17483 echo "lang.$t: $x" >> Make-hooks
17492 echo "dir ." > .gdbinit
17493 echo "dir ${srcdir}" >> .gdbinit
17494 if test x$gdb_needs_out_file_path = xyes
17496 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17498 if test "x$subdirs" != x; then
17501 echo "dir ${srcdir}/$s" >> .gdbinit
17504 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17506 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17510 # Find a directory in which to install a shared libgcc.
17512 # Check whether --enable-version-specific-runtime-libs was given.
17513 if test "${enable_version_specific_runtime_libs+set}" = set; then
17514 enableval=$enable_version_specific_runtime_libs;
17519 # Check whether --with-slibdir was given.
17520 if test "${with_slibdir+set}" = set; then
17521 withval=$with_slibdir; slibdir="$with_slibdir"
17523 if test "${enable_version_specific_runtime_libs+set}" = set; then
17524 slibdir='$(libsubdir)'
17525 elif test "$host" != "$target"; then
17526 slibdir='$(build_tooldir)/lib'
17528 slibdir='$(libdir)'
17534 objdir=`${PWDCMD-pwd}`
17538 # Check whether --with-datarootdir was given.
17539 if test "${with_datarootdir+set}" = set; then
17540 withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
17542 datarootdir='$(prefix)/share'
17548 # Check whether --with-docdir was given.
17549 if test "${with_docdir+set}" = set; then
17550 withval=$with_docdir; docdir="\${prefix}/$with_docdir"
17552 docdir='$(datarootdir)'
17558 # Check whether --with-htmldir was given.
17559 if test "${with_htmldir+set}" = set; then
17560 withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
17562 htmldir='$(docdir)'
17567 # Substitute configuration variables
17624 if test x${build} = x${host} ; then
17625 if test x${host} = x${target} ; then
17626 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17628 echo "Links are now set up to build a cross-compiler" 1>&2
17629 echo " from ${host} to ${target}." 1>&2
17632 if test x${host} = x${target} ; then
17633 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17634 echo " for ${target}." 1>&2
17636 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17637 echo " from ${host} to ${target}." 1>&2
17644 # Configure the subdirectories
17645 # AC_CONFIG_SUBDIRS($subdirs)
17647 # Create the Makefile
17648 # and configure language subdirectories
17649 ac_config_files="$ac_config_files $all_outputs"
17652 ac_config_commands="$ac_config_commands default"
17654 cat >confcache <<\_ACEOF
17655 # This file is a shell script that caches the results of configure
17656 # tests run on this system so they can be shared between configure
17657 # scripts and configure runs, see configure's option --config-cache.
17658 # It is not useful on other systems. If it contains results you don't
17659 # want to keep, you may remove or edit it.
17661 # config.status only pays attention to the cache file if you give it
17662 # the --recheck option to rerun configure.
17664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17666 # following values.
17670 # The following way of writing the cache mishandles newlines in values,
17671 # but we know of no workaround that is simple, portable, and efficient.
17672 # So, we kill variables containing newlines.
17673 # Ultrix sh set writes to stderr and can't be redirected directly,
17674 # and sets the high bit in the cache file unless we assign to the vars.
17676 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17677 eval ac_val=\$$ac_var
17681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17685 _ | IFS | as_nl) ;; #(
17686 *) $as_unset $ac_var ;;
17692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17693 *${as_nl}ac_space=\ *)
17694 # `set' does not quote correctly, so add quotes (double-quote
17695 # substitution turns \\\\ into \\, and sed turns \\ into \).
17698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17701 # `set' quotes correctly as required by POSIX, so do not add quotes.
17702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17716 if test -w "$cache_file"; then
17717 test "x$cache_file" != "x/dev/null" &&
17718 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17719 echo "$as_me: updating cache $cache_file" >&6;}
17720 cat confcache >$cache_file
17722 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17723 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17729 # Let make expand exec_prefix.
17730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17732 DEFS=-DHAVE_CONFIG_H
17736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17737 # 1. Remove the extension, and $U if already installed.
17738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17739 ac_i=`echo "$ac_i" | sed "$ac_script"`
17740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17741 # will be set to the directory where LIBOBJS objects are built.
17742 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17743 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17745 LIBOBJS=$ac_libobjs
17747 LTLIBOBJS=$ac_ltlibobjs
17751 : ${CONFIG_STATUS=./config.status}
17752 ac_clean_files_save=$ac_clean_files
17753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17756 cat >$CONFIG_STATUS <<_ACEOF
17758 # Generated by $as_me.
17759 # Run this file to recreate the current configuration.
17760 # Compiler output produced by configure, useful for debugging
17761 # configure, is in config.log if it exists.
17764 ac_cs_recheck=false
17766 SHELL=\${CONFIG_SHELL-$SHELL}
17769 cat >>$CONFIG_STATUS <<\_ACEOF
17770 ## --------------------- ##
17771 ## M4sh Initialization. ##
17772 ## --------------------- ##
17774 # Be more Bourne compatible
17775 DUALCASE=1; export DUALCASE # for MKS sh
17776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17779 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17780 # is contrary to our usage. Disable this feature.
17781 alias -g '${1+"$@"}'='"$@"'
17782 setopt NO_GLOB_SUBST
17784 case `(set -o) 2>/dev/null` in
17785 *posix*) set -o posix ;;
17794 # Avoid depending upon Character Ranges.
17795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17798 as_cr_digits='0123456789'
17799 as_cr_alnum=$as_cr_Letters$as_cr_digits
17801 # The user is always right.
17802 if test "${PATH_SEPARATOR+set}" != set; then
17803 echo "#! /bin/sh" >conf$$.sh
17804 echo "exit 0" >>conf$$.sh
17806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17814 # Support unset when possible.
17815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17823 # We need space, tab and new line, in precisely that order. Quoting is
17824 # there to prevent editors from complaining about space-tab.
17825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17826 # splitting by setting IFS to empty value.)
17831 # Find who we are. Look in the path if we contain no directory separator.
17833 *[\\/]* ) as_myself=$0 ;;
17834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17835 for as_dir in $PATH
17838 test -z "$as_dir" && as_dir=.
17839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17845 # We did not find ourselves, most probably we were run as `sh COMMAND'
17846 # in which case we are not to be found in the path.
17847 if test "x$as_myself" = x; then
17850 if test ! -f "$as_myself"; then
17851 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17852 { (exit 1); exit 1; }
17855 # Work around bugs in pre-3.0 UWIN ksh.
17856 for as_var in ENV MAIL MAILPATH
17857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17865 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17866 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17867 LC_TELEPHONE LC_TIME
17869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17870 eval $as_var=C; export $as_var
17872 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17876 # Required to use basename.
17877 if expr a : '\(a\)' >/dev/null 2>&1 &&
17878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17885 as_basename=basename
17891 # Name of the executable.
17892 as_me=`$as_basename -- "$0" ||
17893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17894 X"$0" : 'X\(//\)$' \| \
17895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17897 sed '/^.*\/\([^/][^/]*\)\/*$/{
17916 as_lineno_1=$LINENO
17917 as_lineno_2=$LINENO
17918 test "x$as_lineno_1" != "x$as_lineno_2" &&
17919 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17922 # uniformly replaced by the line number. The first 'sed' inserts a
17923 # line-number line after each line using $LINENO; the second 'sed'
17924 # does the real work. The second script uses 'N' to pair each
17925 # line-number line with the line containing $LINENO, and appends
17926 # trailing '-' during substitution so that $LINENO is not a special
17927 # case at line end.
17928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17929 # scripts with optimization help from Paolo Bonzini. Blame Lee
17930 # E. McMahon (1931-1989) for sed's syntax. :-)
17942 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17945 ' >$as_me.lineno &&
17946 chmod +x "$as_me.lineno" ||
17947 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17948 { (exit 1); exit 1; }; }
17950 # Don't try to exec as it changes $[0], causing all sort of problems
17951 # (the dirname of $[0] is not the place where we might find the
17952 # original and so on. Autoconf is especially sensitive to this).
17953 . "./$as_me.lineno"
17954 # Exit status is that of the last command.
17959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17965 ECHO_C= ECHO_N= ECHO_T=
17966 case `echo -n x` in
17968 case `echo 'x\c'` in
17969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17976 if expr a : '\(a\)' >/dev/null 2>&1 &&
17977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17983 rm -f conf$$ conf$$.exe conf$$.file
17984 if test -d conf$$.dir; then
17985 rm -f conf$$.dir/conf$$.file
17991 if ln -s conf$$.file conf$$ 2>/dev/null; then
17993 # ... but there are two gotchas:
17994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17996 # In both cases, we have to default to `cp -p'.
17997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17999 elif ln conf$$.file conf$$ 2>/dev/null; then
18004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18005 rmdir conf$$.dir 2>/dev/null
18007 if mkdir -p . 2>/dev/null; then
18010 test -d ./-p && rmdir ./-p
18014 if test -x / >/dev/null 2>&1; then
18015 as_test_x='test -x'
18017 if ls -dL / >/dev/null 2>&1; then
18024 if test -d "$1"; then
18030 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18031 ???[sx]*):;;*)false;;esac;fi
18035 as_executable_p=$as_test_x
18037 # Sed expression to map a string onto a valid CPP name.
18038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18040 # Sed expression to map a string onto a valid variable name.
18041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18046 # Save the log message, to keep $[0] and so on meaningful, and to
18047 # report actual input values of CONFIG_FILES etc. instead of their
18048 # values after options handling.
18050 This file was extended by $as_me, which was
18051 generated by GNU Autoconf 2.61. Invocation command line was
18053 CONFIG_FILES = $CONFIG_FILES
18054 CONFIG_HEADERS = $CONFIG_HEADERS
18055 CONFIG_LINKS = $CONFIG_LINKS
18056 CONFIG_COMMANDS = $CONFIG_COMMANDS
18059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18064 cat >>$CONFIG_STATUS <<_ACEOF
18065 # Files that config.status was made for.
18066 config_files="$ac_config_files"
18067 config_headers="$ac_config_headers"
18068 config_commands="$ac_config_commands"
18072 cat >>$CONFIG_STATUS <<\_ACEOF
18074 \`$as_me' instantiates files from templates according to the
18075 current configuration.
18077 Usage: $0 [OPTIONS] [FILE]...
18079 -h, --help print this help, then exit
18080 -V, --version print version number and configuration settings, then exit
18081 -q, --quiet do not print progress messages
18082 -d, --debug don't remove temporary files
18083 --recheck update $as_me by reconfiguring in the same conditions
18084 --file=FILE[:TEMPLATE]
18085 instantiate the configuration file FILE
18086 --header=FILE[:TEMPLATE]
18087 instantiate the configuration header FILE
18089 Configuration files:
18092 Configuration headers:
18095 Configuration commands:
18098 Report bugs to <bug-autoconf@gnu.org>."
18101 cat >>$CONFIG_STATUS <<_ACEOF
18104 configured by $0, generated by GNU Autoconf 2.61,
18105 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18107 Copyright (C) 2006 Free Software Foundation, Inc.
18108 This config.status script is free software; the Free Software Foundation
18109 gives unlimited permission to copy, distribute and modify it."
18115 cat >>$CONFIG_STATUS <<\_ACEOF
18116 # If no file are specified by the user, then we need to provide default
18117 # value. By we need to know if files were specified by the user.
18123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18135 # Handling of the options.
18136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18138 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18139 echo "$ac_cs_version"; exit ;;
18140 --debug | --debu | --deb | --de | --d | -d )
18142 --file | --fil | --fi | --f )
18144 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18145 ac_need_defaults=false;;
18146 --header | --heade | --head | --hea )
18148 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18149 ac_need_defaults=false;;
18151 # Conflict between --help and --header
18152 { echo "$as_me: error: ambiguous option: $1
18153 Try \`$0 --help' for more information." >&2
18154 { (exit 1); exit 1; }; };;
18155 --help | --hel | -h )
18156 echo "$ac_cs_usage"; exit ;;
18157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18158 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18161 # This is an error.
18162 -*) { echo "$as_me: error: unrecognized option: $1
18163 Try \`$0 --help' for more information." >&2
18164 { (exit 1); exit 1; }; } ;;
18166 *) ac_config_targets="$ac_config_targets $1"
18167 ac_need_defaults=false ;;
18173 ac_configure_extra_args=
18175 if $ac_cs_silent; then
18177 ac_configure_extra_args="$ac_configure_extra_args --silent"
18181 cat >>$CONFIG_STATUS <<_ACEOF
18182 if \$ac_cs_recheck; then
18183 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18184 CONFIG_SHELL=$SHELL
18185 export CONFIG_SHELL
18186 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18190 cat >>$CONFIG_STATUS <<\_ACEOF
18194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18195 ## Running $as_me. ##
18201 cat >>$CONFIG_STATUS <<_ACEOF
18209 cat >>$CONFIG_STATUS <<\_ACEOF
18211 # Handling of arguments.
18212 for ac_config_target in $ac_config_targets
18214 case $ac_config_target in
18215 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18216 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18217 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18218 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18219 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18220 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18222 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18224 { (exit 1); exit 1; }; };;
18229 # If the user did not use the arguments to specify the items to instantiate,
18230 # then the envvar interface is used. Set only those that are not.
18231 # We use the long form for the default assignment because of an extremely
18232 # bizarre bug on SunOS 4.1.3.
18233 if $ac_need_defaults; then
18234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18239 # Have a temporary directory for convenience. Make it in the build tree
18240 # simply because there is no reason against having it here, and in addition,
18241 # creating and moving files from /tmp can sometimes cause problems.
18242 # Hook for its removal unless debugging.
18243 # Note that there is a small window in which the directory will not be cleaned:
18244 # after its creation but before its name has been assigned to `$tmp'.
18248 trap 'exit_status=$?
18249 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18251 trap '{ (exit 1); exit 1; }' 1 2 13 15
18253 # Create a (secure) tmp directory for tmp files.
18256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18257 test -n "$tmp" && test -d "$tmp"
18260 tmp=./conf$$-$RANDOM
18261 (umask 077 && mkdir "$tmp")
18264 echo "$me: cannot create a temporary directory in ." >&2
18265 { (exit 1); exit 1; }
18269 # Set up the sed scripts for CONFIG_FILES section.
18272 # No need to generate the scripts if there are no CONFIG_FILES.
18273 # This happens for instance when ./config.status config.h
18274 if test -n "$CONFIG_FILES"; then
18278 # Create sed commands to just substitute file output variables.
18280 # Remaining file output variables are in a fragment that also has non-file
18286 for ac_last_try in false false false false false :; do
18287 cat >conf$$subs.sed <<_ACEOF
18288 SHELL!$SHELL$ac_delim
18289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18295 exec_prefix!$exec_prefix$ac_delim
18296 prefix!$prefix$ac_delim
18297 program_transform_name!$program_transform_name$ac_delim
18298 bindir!$bindir$ac_delim
18299 sbindir!$sbindir$ac_delim
18300 libexecdir!$libexecdir$ac_delim
18301 datarootdir!$datarootdir$ac_delim
18302 datadir!$datadir$ac_delim
18303 sysconfdir!$sysconfdir$ac_delim
18304 sharedstatedir!$sharedstatedir$ac_delim
18305 localstatedir!$localstatedir$ac_delim
18306 includedir!$includedir$ac_delim
18307 oldincludedir!$oldincludedir$ac_delim
18308 docdir!$docdir$ac_delim
18309 infodir!$infodir$ac_delim
18310 htmldir!$htmldir$ac_delim
18311 dvidir!$dvidir$ac_delim
18312 pdfdir!$pdfdir$ac_delim
18313 psdir!$psdir$ac_delim
18314 libdir!$libdir$ac_delim
18315 localedir!$localedir$ac_delim
18316 mandir!$mandir$ac_delim
18317 DEFS!$DEFS$ac_delim
18318 ECHO_C!$ECHO_C$ac_delim
18319 ECHO_N!$ECHO_N$ac_delim
18320 ECHO_T!$ECHO_T$ac_delim
18321 LIBS!$LIBS$ac_delim
18322 build_alias!$build_alias$ac_delim
18323 host_alias!$host_alias$ac_delim
18324 target_alias!$target_alias$ac_delim
18325 build!$build$ac_delim
18326 build_cpu!$build_cpu$ac_delim
18327 build_vendor!$build_vendor$ac_delim
18328 build_os!$build_os$ac_delim
18329 host!$host$ac_delim
18330 host_cpu!$host_cpu$ac_delim
18331 host_vendor!$host_vendor$ac_delim
18332 host_os!$host_os$ac_delim
18333 target!$target$ac_delim
18334 target_cpu!$target_cpu$ac_delim
18335 target_vendor!$target_vendor$ac_delim
18336 target_os!$target_os$ac_delim
18337 target_noncanonical!$target_noncanonical$ac_delim
18338 build_libsubdir!$build_libsubdir$ac_delim
18339 build_subdir!$build_subdir$ac_delim
18340 host_subdir!$host_subdir$ac_delim
18341 target_subdir!$target_subdir$ac_delim
18342 GENINSRC!$GENINSRC$ac_delim
18344 CFLAGS!$CFLAGS$ac_delim
18345 LDFLAGS!$LDFLAGS$ac_delim
18346 CPPFLAGS!$CPPFLAGS$ac_delim
18347 ac_ct_CC!$ac_ct_CC$ac_delim
18348 EXEEXT!$EXEEXT$ac_delim
18349 OBJEXT!$OBJEXT$ac_delim
18350 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
18351 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
18353 GREP!$GREP$ac_delim
18354 EGREP!$EGREP$ac_delim
18355 loose_warn!$loose_warn$ac_delim
18356 cxx_compat_warn!$cxx_compat_warn$ac_delim
18357 strict_warn!$strict_warn$ac_delim
18358 warn_cflags!$warn_cflags$ac_delim
18359 nocommon_flag!$nocommon_flag$ac_delim
18360 TREEBROWSER!$TREEBROWSER$ac_delim
18361 valgrind_path!$valgrind_path$ac_delim
18362 valgrind_path_defines!$valgrind_path_defines$ac_delim
18363 valgrind_command!$valgrind_command$ac_delim
18364 coverage_flags!$coverage_flags$ac_delim
18365 enable_multilib!$enable_multilib$ac_delim
18366 enable_decimal_float!$enable_decimal_float$ac_delim
18367 enable_fixed_point!$enable_fixed_point$ac_delim
18368 enable_shared!$enable_shared$ac_delim
18369 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
18370 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
18371 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
18372 onestep!$onestep$ac_delim
18373 PKGVERSION!$PKGVERSION$ac_delim
18374 REPORT_BUGS_TO!$REPORT_BUGS_TO$ac_delim
18375 REPORT_BUGS_TEXI!$REPORT_BUGS_TEXI$ac_delim
18376 SET_MAKE!$SET_MAKE$ac_delim
18378 LN_S!$LN_S$ac_delim
18380 RANLIB!$RANLIB$ac_delim
18381 ranlib_flags!$ranlib_flags$ac_delim
18384 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
18386 elif $ac_last_try; then
18387 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18388 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18389 { (exit 1); exit 1; }; }
18391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18395 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18396 if test -n "$ac_eof"; then
18397 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18398 ac_eof=`expr $ac_eof + 1`
18401 cat >>$CONFIG_STATUS <<_ACEOF
18402 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18404 /^[ ]*@language_hooks@[ ]*$/{
18410 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18411 s/^/s,@/; s/!/@,|#_!!_#|/
18414 s/'"$ac_delim"'$/,g/; t
18416 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18417 ' >>$CONFIG_STATUS <conf$$subs.sed
18418 rm -f conf$$subs.sed
18419 cat >>$CONFIG_STATUS <<_ACEOF
18425 for ac_last_try in false false false false false :; do
18426 cat >conf$$subs.sed <<_ACEOF
18427 INSTALL!$INSTALL$ac_delim
18428 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18429 INSTALL_DATA!$INSTALL_DATA$ac_delim
18430 make_compare_target!$make_compare_target$ac_delim
18431 have_mktemp_command!$have_mktemp_command$ac_delim
18432 MAKEINFO!$MAKEINFO$ac_delim
18433 BUILD_INFO!$BUILD_INFO$ac_delim
18434 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
18435 FLEX!$FLEX$ac_delim
18436 BISON!$BISON$ac_delim
18439 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
18440 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
18441 LDEXP_LIB!$LDEXP_LIB$ac_delim
18442 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
18443 LIBICONV!$LIBICONV$ac_delim
18444 LTLIBICONV!$LTLIBICONV$ac_delim
18445 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
18446 manext!$manext$ac_delim
18447 objext!$objext$ac_delim
18448 gthread_flags!$gthread_flags$ac_delim
18449 extra_modes_file!$extra_modes_file$ac_delim
18450 extra_opt_files!$extra_opt_files$ac_delim
18451 USE_NLS!$USE_NLS$ac_delim
18452 LIBINTL!$LIBINTL$ac_delim
18453 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
18454 INCINTL!$INCINTL$ac_delim
18455 XGETTEXT!$XGETTEXT$ac_delim
18456 GMSGFMT!$GMSGFMT$ac_delim
18457 POSUB!$POSUB$ac_delim
18458 CATALOGS!$CATALOGS$ac_delim
18459 DATADIRNAME!$DATADIRNAME$ac_delim
18460 INSTOBJEXT!$INSTOBJEXT$ac_delim
18461 GENCAT!$GENCAT$ac_delim
18462 CATOBJEXT!$CATOBJEXT$ac_delim
18463 host_cc_for_libada!$host_cc_for_libada$ac_delim
18464 CROSS!$CROSS$ac_delim
18466 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
18467 inhibit_libc!$inhibit_libc$ac_delim
18468 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
18469 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
18470 STMP_FIXINC!$STMP_FIXINC$ac_delim
18471 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
18472 collect2!$collect2$ac_delim
18473 gcc_cv_as!$gcc_cv_as$ac_delim
18474 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
18475 gcc_cv_ld!$gcc_cv_ld$ac_delim
18476 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
18477 gcc_cv_nm!$gcc_cv_nm$ac_delim
18478 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
18479 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
18480 libgcc_visibility!$libgcc_visibility$ac_delim
18482 zlibdir!$zlibdir$ac_delim
18483 zlibinc!$zlibinc$ac_delim
18484 MAINT!$MAINT$ac_delim
18485 gcc_tooldir!$gcc_tooldir$ac_delim
18486 dollar!$dollar$ac_delim
18487 slibdir!$slibdir$ac_delim
18488 objdir!$objdir$ac_delim
18489 subdirs!$subdirs$ac_delim
18490 srcdir!$srcdir$ac_delim
18491 all_compilers!$all_compilers$ac_delim
18492 all_gtfiles!$all_gtfiles$ac_delim
18493 all_lang_makefrags!$all_lang_makefrags$ac_delim
18494 all_lang_makefiles!$all_lang_makefiles$ac_delim
18495 all_languages!$all_languages$ac_delim
18496 all_selected_languages!$all_selected_languages$ac_delim
18497 build_exeext!$build_exeext$ac_delim
18498 build_install_headers_dir!$build_install_headers_dir$ac_delim
18499 build_xm_file_list!$build_xm_file_list$ac_delim
18500 build_xm_include_list!$build_xm_include_list$ac_delim
18501 build_xm_defines!$build_xm_defines$ac_delim
18502 check_languages!$check_languages$ac_delim
18503 cpp_install_dir!$cpp_install_dir$ac_delim
18504 xmake_file!$xmake_file$ac_delim
18505 tmake_file!$tmake_file$ac_delim
18506 extra_gcc_objs!$extra_gcc_objs$ac_delim
18507 extra_headers_list!$extra_headers_list$ac_delim
18508 extra_objs!$extra_objs$ac_delim
18509 extra_parts!$extra_parts$ac_delim
18510 extra_passes!$extra_passes$ac_delim
18511 extra_programs!$extra_programs$ac_delim
18512 float_h_file!$float_h_file$ac_delim
18513 gcc_config_arguments!$gcc_config_arguments$ac_delim
18514 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
18515 host_exeext!$host_exeext$ac_delim
18516 host_xm_file_list!$host_xm_file_list$ac_delim
18517 host_xm_include_list!$host_xm_include_list$ac_delim
18518 host_xm_defines!$host_xm_defines$ac_delim
18519 out_host_hook_obj!$out_host_hook_obj$ac_delim
18520 install!$install$ac_delim
18521 lang_opt_files!$lang_opt_files$ac_delim
18522 lang_specs_files!$lang_specs_files$ac_delim
18523 lang_tree_files!$lang_tree_files$ac_delim
18526 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18528 elif $ac_last_try; then
18529 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18531 { (exit 1); exit 1; }; }
18533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18538 if test -n "$ac_eof"; then
18539 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18540 ac_eof=`expr $ac_eof + 1`
18543 cat >>$CONFIG_STATUS <<_ACEOF
18544 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18548 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18549 s/^/s,@/; s/!/@,|#_!!_#|/
18552 s/'"$ac_delim"'$/,g/; t
18554 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18555 ' >>$CONFIG_STATUS <conf$$subs.sed
18556 rm -f conf$$subs.sed
18557 cat >>$CONFIG_STATUS <<_ACEOF
18563 for ac_last_try in false false false false false :; do
18564 cat >conf$$subs.sed <<_ACEOF
18565 local_prefix!$local_prefix$ac_delim
18566 md_file!$md_file$ac_delim
18567 objc_boehm_gc!$objc_boehm_gc$ac_delim
18568 out_file!$out_file$ac_delim
18569 out_object_file!$out_object_file$ac_delim
18570 thread_file!$thread_file$ac_delim
18571 tm_file_list!$tm_file_list$ac_delim
18572 tm_include_list!$tm_include_list$ac_delim
18573 tm_defines!$tm_defines$ac_delim
18574 tm_p_file_list!$tm_p_file_list$ac_delim
18575 tm_p_include_list!$tm_p_include_list$ac_delim
18576 xm_file_list!$xm_file_list$ac_delim
18577 xm_include_list!$xm_include_list$ac_delim
18578 xm_defines!$xm_defines$ac_delim
18579 c_target_objs!$c_target_objs$ac_delim
18580 cxx_target_objs!$cxx_target_objs$ac_delim
18581 target_cpu_default!$target_cpu_default$ac_delim
18582 GMPLIBS!$GMPLIBS$ac_delim
18583 GMPINC!$GMPINC$ac_delim
18584 LIBOBJS!$LIBOBJS$ac_delim
18585 LTLIBOBJS!$LTLIBOBJS$ac_delim
18588 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
18590 elif $ac_last_try; then
18591 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18593 { (exit 1); exit 1; }; }
18595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18600 if test -n "$ac_eof"; then
18601 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18602 ac_eof=`expr $ac_eof + 1`
18605 cat >>$CONFIG_STATUS <<_ACEOF
18606 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18611 s/^/s,@/; s/!/@,|#_!!_#|/
18614 s/'"$ac_delim"'$/,g/; t
18616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18617 ' >>$CONFIG_STATUS <conf$$subs.sed
18618 rm -f conf$$subs.sed
18619 cat >>$CONFIG_STATUS <<_ACEOF
18626 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18627 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18628 # trailing colons and then remove the whole line if VPATH becomes empty
18629 # (actually we leave an empty line to preserve line numbers).
18630 if test "x$srcdir" = x.; then
18631 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18632 s/:*\$(srcdir):*/:/
18633 s/:*\${srcdir}:*/:/
18635 s/^\([^=]*=[ ]*\):*/\1/
18641 cat >>$CONFIG_STATUS <<\_ACEOF
18642 fi # test -n "$CONFIG_FILES"
18645 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18648 :[FHLC]) ac_mode=$ac_tag; continue;;
18650 case $ac_mode$ac_tag in
18652 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18653 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18654 { (exit 1); exit 1; }; };;
18655 :[FH]-) ac_tag=-:-;;
18656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18673 -) ac_f="$tmp/stdin";;
18674 *) # Look for the file first in the build tree, then in the source tree
18675 # (if the path is not absolute). The absolute path cannot be DOS-style,
18676 # because $ac_f cannot contain `:'.
18680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18682 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18683 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18684 { (exit 1); exit 1; }; };;
18686 ac_file_inputs="$ac_file_inputs $ac_f"
18689 # Let's still pretend it is `configure' which instantiates (i.e., don't
18690 # use $as_me), people would be surprised to read:
18691 # /* config.h. Generated by config.status. */
18692 configure_input="Generated from "`IFS=:
18693 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18694 if test x"$ac_file" != x-; then
18695 configure_input="$ac_file. $configure_input"
18696 { echo "$as_me:$LINENO: creating $ac_file" >&5
18697 echo "$as_me: creating $ac_file" >&6;}
18701 *:-:* | *:-) cat >"$tmp/stdin";;
18706 ac_dir=`$as_dirname -- "$ac_file" ||
18707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18708 X"$ac_file" : 'X\(//\)[^/]' \| \
18709 X"$ac_file" : 'X\(//\)$' \| \
18710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18716 /^X\(\/\/\)[^/].*/{
18731 -*) as_dir=./$as_dir;;
18733 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18737 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18738 *) as_qdir=$as_dir;;
18740 as_dirs="'$as_qdir' $as_dirs"
18741 as_dir=`$as_dirname -- "$as_dir" ||
18742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18743 X"$as_dir" : 'X\(//\)[^/]' \| \
18744 X"$as_dir" : 'X\(//\)$' \| \
18745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18751 /^X\(\/\/\)[^/].*/{
18764 test -d "$as_dir" && break
18766 test -z "$as_dirs" || eval "mkdir $as_dirs"
18767 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18768 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18769 { (exit 1); exit 1; }; }; }
18773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18776 # A ".." for each directory in $ac_dir_suffix.
18777 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18778 case $ac_top_builddir_sub in
18779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18783 ac_abs_top_builddir=$ac_pwd
18784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18785 # for backward compatibility:
18786 ac_top_builddir=$ac_top_build_prefix
18789 .) # We are building in place.
18791 ac_top_srcdir=$ac_top_builddir_sub
18792 ac_abs_top_srcdir=$ac_pwd ;;
18793 [\\/]* | ?:[\\/]* ) # Absolute name.
18794 ac_srcdir=$srcdir$ac_dir_suffix;
18795 ac_top_srcdir=$srcdir
18796 ac_abs_top_srcdir=$srcdir ;;
18797 *) # Relative name.
18798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18799 ac_top_srcdir=$ac_top_build_prefix$srcdir
18800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 # If the template does not know about datarootdir, expand it.
18815 # FIXME: This hack should be removed a few years after 2.60.
18816 ac_datarootdir_hack=; ac_datarootdir_seen=
18818 case `sed -n '/datarootdir/ {
18827 ' $ac_file_inputs` in
18828 *datarootdir*) ac_datarootdir_seen=yes;;
18829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18830 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18831 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18833 cat >>$CONFIG_STATUS <<_ACEOF
18834 ac_datarootdir_hack='
18835 s&@datadir@&$datadir&g
18836 s&@docdir@&$docdir&g
18837 s&@infodir@&$infodir&g
18838 s&@localedir@&$localedir&g
18839 s&@mandir@&$mandir&g
18840 s&\\\${datarootdir}&$datarootdir&g' ;;
18844 # Neutralize VPATH when `$srcdir' = `.'.
18845 # Shell code in configure.ac might set extrasub.
18846 # FIXME: do we really want to maintain this feature?
18847 cat >>$CONFIG_STATUS <<_ACEOF
18851 cat >>$CONFIG_STATUS <<\_ACEOF
18853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18854 s&@configure_input@&$configure_input&;t t
18855 s&@top_builddir@&$ac_top_builddir_sub&;t t
18856 s&@srcdir@&$ac_srcdir&;t t
18857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18858 s&@top_srcdir@&$ac_top_srcdir&;t t
18859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18860 s&@builddir@&$ac_builddir&;t t
18861 s&@abs_builddir@&$ac_abs_builddir&;t t
18862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18863 $ac_datarootdir_hack
18864 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
18866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18869 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18870 which seems to be undefined. Please make sure it is defined." >&5
18871 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18872 which seems to be undefined. Please make sure it is defined." >&2;}
18876 -) cat "$tmp/out"; rm -f "$tmp/out";;
18877 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18886 # Transform confdefs.h into a sed script `conftest.defines', that
18887 # substitutes the proper values into config.h.in to produce config.h.
18888 rm -f conftest.defines conftest.tail
18889 # First, append a space to every undef/define line, to ease matching.
18890 echo 's/$/ /' >conftest.defines
18891 # Then, protect against being on the right side of a sed subst, or in
18892 # an unquoted here document, in config.status. If some macros were
18893 # called several times there might be several #defines for the same
18894 # symbol, which is useless. But do not sort them, since the last
18895 # AC_DEFINE must be honored.
18896 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18897 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18898 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18899 # PARAMS is the parameter list in the macro definition--in most cases, it's
18900 # just an empty string.
18901 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
18902 ac_dB='\\)[ (].*,\\1define\\2'
18910 s/^[ ]*#[ ]*define[ ][ ]*//
18915 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18916 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18917 ' >>conftest.defines
18919 # Remove the space that was appended to ease matching.
18920 # Then replace #undef with comments. This is necessary, for
18921 # example, in the case of _POSIX_SOURCE, which is predefined and required
18922 # on some systems where configure will not decide to define it.
18923 # (The regexp can be short, since the line contains either #define or #undef.)
18925 s,^[ #]*u.*,/* & */,' >>conftest.defines
18927 # Break up conftest.defines:
18928 ac_max_sed_lines=50
18930 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18931 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18932 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18934 ac_in='$ac_file_inputs'
18935 ac_out='"$tmp/out1"'
18936 ac_nxt='"$tmp/out2"'
18940 # Write a here document:
18941 cat >>$CONFIG_STATUS <<_ACEOF
18942 # First, check the format of the line:
18943 cat >"\$tmp/defines.sed" <<\\CEOF
18944 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
18945 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
18949 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18951 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18952 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18953 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18954 grep . conftest.tail >/dev/null || break
18955 rm -f conftest.defines
18956 mv conftest.tail conftest.defines
18958 rm -f conftest.defines conftest.tail
18960 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18961 cat >>$CONFIG_STATUS <<\_ACEOF
18962 if test x"$ac_file" != x-; then
18963 echo "/* $configure_input */" >"$tmp/config.h"
18964 cat "$ac_result" >>"$tmp/config.h"
18965 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18967 echo "$as_me: $ac_file is unchanged" >&6;}
18970 mv "$tmp/config.h" $ac_file
18973 echo "/* $configure_input */"
18979 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18980 echo "$as_me: executing $ac_file commands" >&6;}
18985 case $ac_file$ac_mode in
18986 "as":F) chmod +x as ;;
18987 "collect-ld":F) chmod +x collect-ld ;;
18988 "nm":F) chmod +x nm ;;
18990 case ${CONFIG_HEADERS} in
18991 *auto-host.h:config.in*)
18994 # Make sure all the subdirs exist.
18995 for d in $subdirs doc build
18997 test -d $d || mkdir $d
19005 { (exit 0); exit 0; }
19007 chmod +x $CONFIG_STATUS
19008 ac_clean_files=$ac_clean_files_save
19011 # configure is writing to config.log, and then calls config.status.
19012 # config.status does its own redirection, appending to config.log.
19013 # Unfortunately, on DOS this fails, as config.log is still kept open
19014 # by configure, so config.status won't be able to write to it; its
19015 # output is simply discarded. So we exec the FD to /dev/null,
19016 # effectively closing config.log, so it can be properly (re)opened and
19017 # appended to by config.status. When coming back to configure, we
19018 # need to make the FD available again.
19019 if test "$no_create" != yes; then
19021 ac_config_status_args=
19022 test "$silent" = yes &&
19023 ac_config_status_args="$ac_config_status_args --quiet"
19025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19028 # would make configure fail if this is the last instruction.
19029 $ac_cs_success || { (exit 1); exit 1; }