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
689 valgrind_path_defines
696 TARGET_SYSTEM_ROOT_DEFINE
697 CROSS_SYSTEM_HEADER_DIR
752 ORIGINAL_AS_FOR_TARGET
754 ORIGINAL_LD_FOR_TARGET
756 ORIGINAL_NM_FOR_TARGET
774 all_selected_languages
776 build_install_headers_dir
778 build_xm_include_list
823 ac_subst_files='language_hooks'
824 ac_precious_vars='build_alias
837 # Initialize some variables set by options.
839 ac_init_version=false
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
849 program_transform_name=s,x,x,
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE}'
874 infodir='${datarootdir}/info'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
944 eval enable_$ac_feature=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 -enable-* | --enable-*)
957 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
960 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961 { (exit 1); exit 1; }; }
962 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
963 eval enable_$ac_feature=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid package name: $ac_package" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1160 eval with_$ac_package=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid package name: $ac_package" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1169 eval with_$ac_package=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) { echo "$as_me: error: unrecognized option: $ac_option
1190 Try \`$0 --help' for more information." >&2
1191 { (exit 1); exit 1; }; }
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199 { (exit 1); exit 1; }; }
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 { echo "$as_me: error: missing argument to $ac_option" >&2
1217 { (exit 1); exit 1; }; }
1220 # Be sure to have absolute directory names.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1232 { (exit 1); exit 1; }; }
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247 If a cross compiler is detected then cross compile mode will be used." >&2
1248 elif test "x$build_alias" != "x$host_alias"; then
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256 test "$silent" = yes && exec 6>/dev/null
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 { echo "$as_me: error: Working directory cannot be determined" >&2
1263 { (exit 1); exit 1; }; }
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 { echo "$as_me: error: pwd does not report name of working directory" >&2
1266 { (exit 1); exit 1; }; }
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$0" ||
1274 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$0" : 'X\(//\)[^/]' \| \
1276 X"$0" : 'X\(//\)$' \| \
1277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1301 ac_srcdir_defaulted=no
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1306 { (exit 1); exit 1; }; }
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1311 { (exit 1); exit 1; }; }
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures this package to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1406 if test -n "$ac_init_help"; then
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-generated-files-in-srcdir
1414 put copies of generated files in source dir
1415 intended for creating source tarballs for users
1416 without texinfo bison or flex.
1417 --enable-werror-always enable -Werror always
1418 --enable-checking=LIST
1419 enable expensive run-time checks. With LIST,
1420 enable only specific categories of checks.
1421 Categories are: yes,no,all,none,release.
1422 Flags are: assert,fold,gc,gcac,misc,
1423 rtlflag,rtl,runtime,tree,valgrind.
1424 --enable-mapped-location location_t is fileline integer cookie
1425 --enable-coverage=LEVEL
1426 enable compiler's code coverage collection.
1427 Use to measure compiler performance and locate
1428 unused parts of the compiler. With LEVEL, specify
1429 optimization. Values are opt, noopt,
1431 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1432 --enable-multilib enable library support for multiple ABIs
1433 --enable-__cxa_atexit enable __cxa_atexit for C++
1434 --enable-decimal-float={no,yes,bid,dpd}
1435 enable decimal float extension to C. Selecting 'bid'
1436 or 'dpd' choses which decimal floating point format
1438 --enable-threads enable thread usage for target GCC
1439 --enable-threads=LIB use LIB thread package for target GCC
1440 --enable-tls enable or disable generation of tls code
1441 overriding the assembler check for tls support
1442 --enable-objc-gc enable the use of Boehm's garbage collector with
1443 the GNU Objective-C runtime
1444 --disable-shared don't provide a shared libgcc
1445 --enable-intermodule build the compiler in one step
1446 --enable-languages=LIST specify which front-ends to build
1447 --disable-rpath do not hardcode runtime library paths
1448 --enable-initfini-array use .init_array/.fini_array sections
1449 --enable-sjlj-exceptions
1450 arrange to use setjmp/longjmp exception handling
1451 --enable-secureplt enable -msecure-plt by default for PowerPC
1452 --disable-win32-registry
1453 disable lookup of installation paths in the
1454 Registry on Windows hosts
1455 --enable-win32-registry enable registry lookup (default)
1456 --enable-win32-registry=KEY
1457 use KEY instead of GCC version as the last portion
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful
1461 (and sometimes confusing) to the casual installer
1462 --enable-version-specific-runtime-libs
1463 specify that runtime libraries should be
1464 installed in a compiler-specific directory
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-build-libsubdir=DIR Directory where to find libraries for build system
1470 --with-local-prefix=DIR specifies directory to put local include
1471 --with-gxx-include-dir=DIR
1472 specifies directory to put g++ header files
1473 --with-cpp-install-dir=DIR
1474 install the user visible C preprocessor in DIR
1475 (relative to PREFIX) as well as PREFIX/bin
1476 --with-gnu-ld arrange to work with GNU ld.
1477 --with-ld arrange to use the specified ld (full pathname)
1478 --with-demangler-in-ld try to use demangler in GNU ld.
1479 --with-gnu-as arrange to work with GNU as
1480 --with-as arrange to use the specified as (full pathname)
1481 --with-stabs arrange to use stabs instead of host debug format
1482 --with-dwarf2 force the default debug format to be DWARF 2
1483 --with-build-sysroot=sysroot
1484 use sysroot as the system root during the build
1485 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1486 --with-gnu-ld assume the C compiler uses GNU ld default=no
1487 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1488 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1489 --with-system-libunwind use installed libunwind
1490 --with-long-double-128 Use 128-bit long double by default.
1491 --with-gc={page,zone} choose the garbage collection mechanism to use
1493 --with-system-zlib use installed libz
1494 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1495 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1496 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1497 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1508 GMPLIBS How to link GMP
1509 GMPINC How to find GMP include files
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" || continue
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1541 .) # We are building in place.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1575 generated by GNU Autoconf 2.61
1577 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1578 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1584 cat >config.log <<_ACEOF
1585 This file contains any messages produced by compilers while
1586 running configure, to aid debugging if configure makes a mistake.
1588 It was created by $as_me, which was
1589 generated by GNU Autoconf 2.61. Invocation command line was
1601 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1611 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1612 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1613 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1614 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1615 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1616 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir=.
1625 echo "PATH: $as_dir"
1641 # Keep a trace of the command line.
1642 # Strip out --no-create and --no-recursion so they do not pile up.
1643 # Strip out --silent because we don't want to record it for future runs.
1644 # Also quote any args containing shell meta-characters.
1645 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_must_keep_next=false
1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666 if test $ac_must_keep_next = true; then
1667 ac_must_keep_next=false # Got value, back to normal.
1670 *=* | --config-cache | -C | -disable-* | --disable-* \
1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673 | -with-* | --with-* | -without-* | --without-* | --x)
1674 case "$ac_configure_args0 " in
1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 -* ) ac_must_keep_next=true ;;
1681 ac_configure_args="$ac_configure_args '$ac_arg'"
1686 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689 # When interrupted or exit'd, cleanup temporary files, and complete
1690 # config.log. We remove comments because anyway the quotes in there
1691 # would cause problems or look ugly.
1692 # WARNING: Use '\'' to represent an apostrophe within the trap.
1693 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1694 trap 'exit_status=$?
1695 # Save into config.log some information that might help in debugging.
1700 ## ---------------- ##
1701 ## Cache variables. ##
1702 ## ---------------- ##
1705 # The following way of writing the cache mishandles newlines in values,
1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708 eval ac_val=\$$ac_var
1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 _ | IFS | as_nl) ;; #(
1717 *) $as_unset $ac_var ;;
1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 ## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##
1742 for ac_var in $ac_subst_vars
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1752 if test -n "$ac_subst_files"; then
1754 ## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##
1759 for ac_var in $ac_subst_files
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 echo "$ac_var='\''$ac_val'\''"
1770 if test -s confdefs.h; then
1780 test "$ac_signal" != 0 &&
1781 echo "$as_me: caught signal $ac_signal"
1782 echo "$as_me: exit $exit_status"
1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1794 rm -f -r conftest* confdefs.h
1796 # Predefined preprocessor variables.
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 # Let the site file select an alternate cache file if it wants to.
1824 # Prefer explicitly selected file to automatically selected ones.
1825 if test -n "$CONFIG_SITE"; then
1826 set x "$CONFIG_SITE"
1827 elif test "x$prefix" != xNONE; then
1828 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 set x "$ac_default_prefix/share/config.site" \
1831 "$ac_default_prefix/etc/config.site"
1836 if test -r "$ac_site_file"; then
1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838 echo "$as_me: loading site script $ac_site_file" >&6;}
1839 sed 's/^/| /' "$ac_site_file" >&5
1844 if test -r "$cache_file"; then
1845 # Some versions of bash will fail to source /dev/null (special
1846 # files actually), so we avoid doing that.
1847 if test -f "$cache_file"; then
1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849 echo "$as_me: loading cache $cache_file" >&6;}
1851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852 *) . "./$cache_file";;
1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857 echo "$as_me: creating cache $cache_file" >&6;}
1861 # Check that the precious variables saved in the cache have kept the same
1863 ac_cache_corrupted=false
1864 for ac_var in $ac_precious_vars; do
1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866 eval ac_new_set=\$ac_env_${ac_var}_set
1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868 eval ac_new_val=\$ac_env_${ac_var}_value
1869 case $ac_old_set,$ac_new_set in
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1880 if test "x$ac_old_val" != "x$ac_new_val"; then
1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1882 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1884 echo "$as_me: former value: $ac_old_val" >&2;}
1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1886 echo "$as_me: current value: $ac_new_val" >&2;}
1887 ac_cache_corrupted=:
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 *) ac_arg=$ac_var=$ac_new_val ;;
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902 if $ac_cache_corrupted; then
1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1904 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1906 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1907 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1937 gcc_version=`cat $srcdir/BASE-VER`
1939 # Determine the host, build, and target systems
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 elif test -f "$ac_dir/install.sh"; then
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 elif test -f "$ac_dir/shtool"; then
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 if test -z "$ac_aux_dir"; then
1957 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975 { (exit 1); exit 1; }; }
1977 { echo "$as_me:$LINENO: checking build system type" >&5
1978 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988 { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992 { (exit 1); exit 1; }; }
1995 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 echo "${ECHO_T}$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 echo "$as_me: error: invalid value of canonical build" >&2;}
2001 { (exit 1); exit 1; }; };;
2004 ac_save_IFS=$IFS; IFS='-'
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2017 { echo "$as_me:$LINENO: checking host system type" >&5
2018 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test "x$host_alias" = x; then
2023 ac_cv_host=$ac_cv_build
2025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028 { (exit 1); exit 1; }; }
2032 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 echo "${ECHO_T}$ac_cv_host" >&6; }
2036 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 echo "$as_me: error: invalid value of canonical host" >&2;}
2038 { (exit 1); exit 1; }; };;
2041 ac_save_IFS=$IFS; IFS='-'
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2054 { echo "$as_me:$LINENO: checking target system type" >&5
2055 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2056 if test "${ac_cv_target+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test "x$target_alias" = x; then
2060 ac_cv_target=$ac_cv_host
2062 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2065 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2070 echo "${ECHO_T}$ac_cv_target" >&6; }
2071 case $ac_cv_target in
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2074 echo "$as_me: error: invalid value of canonical target" >&2;}
2075 { (exit 1); exit 1; }; };;
2077 target=$ac_cv_target
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2091 # The aliases save the names the user supplied, while $host etc.
2092 # will get canonicalized.
2093 test -n "$target_alias" &&
2094 test "$program_prefix$program_suffix$program_transform_name" = \
2096 program_prefix=${target_alias}-
2098 # Determine the noncanonical target name, for directory use.
2099 case ${build_alias} in
2100 "") build_noncanonical=${build} ;;
2101 *) build_noncanonical=${build_alias} ;;
2104 case ${host_alias} in
2105 "") host_noncanonical=${build_noncanonical} ;;
2106 *) host_noncanonical=${host_alias} ;;
2109 case ${target_alias} in
2110 "") target_noncanonical=${host_noncanonical} ;;
2111 *) target_noncanonical=${target_alias} ;;
2117 # Determine the target- and build-specific subdirectories
2119 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2120 # have matching libraries, they should use host libraries: Makefile.tpl
2121 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2122 # However, they still use the build modules, because the corresponding
2123 # host modules (e.g. bison) are only built for the host when bootstrap
2125 # - build_subdir is where we find build modules, and never changes.
2126 # - build_libsubdir is where we find build libraries, and can be overridden.
2128 # Prefix 'build-' so this never conflicts with target_subdir.
2129 build_subdir="build-${build_noncanonical}"
2131 # Check whether --with-build-libsubdir was given.
2132 if test "${with_build_libsubdir+set}" = set; then
2133 withval=$with_build_libsubdir; build_libsubdir="$withval"
2135 build_libsubdir="$build_subdir"
2138 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2139 if ( test $srcdir = . && test -d gcc ) \
2140 || test -d $srcdir/../host-${host_noncanonical}; then
2141 host_subdir="host-${host_noncanonical}"
2146 target_subdir=${target_noncanonical}
2149 # Set program_transform_name
2150 test "$program_prefix" != NONE &&
2151 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2152 # Use a double $ so make ignores it.
2153 test "$program_suffix" != NONE &&
2154 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2155 # Double any \ or $. echo might interpret backslashes.
2156 # By default was `s,x,x', remove it if useless.
2157 cat <<\_ACEOF >conftest.sed
2158 s/[\\$]/&&/g;s/;s,x,x,$//
2160 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2164 # Check for bogus environment variables.
2165 # Test if LIBRARY_PATH contains the notation for the current directory
2166 # since this would lead to problems installing/building glibc.
2167 # LIBRARY_PATH contains the current directory if one of the following
2169 # - one of the terminals (":" and ";") is the first or last sign
2170 # - two terminals occur directly after each other
2171 # - the path contains an element with a dot in it
2172 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2173 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2174 case ${LIBRARY_PATH} in
2175 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2176 library_path_setting="contains current directory"
2179 library_path_setting="ok"
2182 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2183 echo "${ECHO_T}$library_path_setting" >&6; }
2184 if test "$library_path_setting" != "ok"; then
2185 { { echo "$as_me:$LINENO: error:
2186 *** LIBRARY_PATH shouldn't contain the current directory when
2187 *** building gcc. Please change the environment variable
2188 *** and run configure again." >&5
2189 echo "$as_me: error:
2190 *** LIBRARY_PATH shouldn't contain the current directory when
2191 *** building gcc. Please change the environment variable
2192 *** and run configure again." >&2;}
2193 { (exit 1); exit 1; }; }
2196 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2197 # since this would lead to problems installing/building glibc.
2198 # GCC_EXEC_PREFIX contains the current directory if one of the following
2200 # - one of the terminals (":" and ";") is the first or last sign
2201 # - two terminals occur directly after each other
2202 # - the path contains an element with a dot in it
2203 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2204 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2205 case ${GCC_EXEC_PREFIX} in
2206 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2207 gcc_exec_prefix_setting="contains current directory"
2210 gcc_exec_prefix_setting="ok"
2213 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2214 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2215 if test "$gcc_exec_prefix_setting" != "ok"; then
2216 { { echo "$as_me:$LINENO: error:
2217 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2218 *** building gcc. Please change the environment variable
2219 *** and run configure again." >&5
2220 echo "$as_me: error:
2221 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2222 *** building gcc. Please change the environment variable
2223 *** and run configure again." >&2;}
2224 { (exit 1); exit 1; }; }
2231 # Specify the local prefix
2234 # Check whether --with-local-prefix was given.
2235 if test "${with_local_prefix+set}" = set; then
2236 withval=$with_local_prefix; case "${withval}" in
2237 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2238 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2239 { (exit 1); exit 1; }; } ;;
2241 *) local_prefix=$with_local_prefix ;;
2246 # Default local prefix if it is empty
2247 if test x$local_prefix = x; then
2248 local_prefix=/usr/local
2251 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2252 # passed in by the toplevel make and thus we'd get different behavior
2253 # depending on where we built the sources.
2254 gcc_gxx_include_dir=
2255 # Specify the g++ header file directory
2257 # Check whether --with-gxx-include-dir was given.
2258 if test "${with_gxx_include_dir+set}" = set; then
2259 withval=$with_gxx_include_dir; case "${withval}" in
2260 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2261 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2262 { (exit 1); exit 1; }; } ;;
2264 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
2269 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2270 if test x${gcc_gxx_include_dir} = x; then
2271 if test x${enable_version_specific_runtime_libs} = xyes; then
2272 gcc_gxx_include_dir='${libsubdir}/include/c++'
2274 libstdcxx_incdir='include/c++/$(version)'
2275 if test x$host != x$target; then
2276 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2278 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
2283 # Check whether --with-cpp_install_dir was given.
2284 if test "${with_cpp_install_dir+set}" = set; then
2285 withval=$with_cpp_install_dir; if test x$withval = xyes; then
2286 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2287 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2288 { (exit 1); exit 1; }; }
2289 elif test x$withval != xno; then
2290 cpp_install_dir=$withval
2295 # We would like to our source tree to be readonly. However when releases or
2296 # pre-releases are generated, the flex/bison generated files as well as the
2297 # various formats of manuals need to be included along with the rest of the
2298 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2301 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2302 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2303 # Check whether --enable-generated-files-in-srcdir was given.
2304 if test "${enable_generated_files_in_srcdir+set}" = set; then
2305 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2307 generated_files_in_srcdir=no
2311 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2312 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2314 if test "$generated_files_in_srcdir" = "yes"; then
2321 # -------------------
2322 # Find default linker
2323 # -------------------
2327 # Check whether --with-gnu-ld was given.
2328 if test "${with_gnu_ld+set}" = set; then
2329 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2335 # With pre-defined ld
2337 # Check whether --with-ld was given.
2338 if test "${with_ld+set}" = set; then
2339 withval=$with_ld; DEFAULT_LINKER="$with_ld"
2342 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2343 if test ! -x "$DEFAULT_LINKER"; then
2344 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2345 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2346 { (exit 1); exit 1; }; }
2347 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2351 cat >>confdefs.h <<_ACEOF
2352 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2357 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2358 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2359 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2360 if test x"$gnu_ld_flag" = x"no"; then
2361 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2362 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2364 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2365 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2368 { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2372 # With demangler in GNU ld
2374 # Check whether --with-demangler-in-ld was given.
2375 if test "${with_demangler_in_ld+set}" = set; then
2376 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2382 # ----------------------
2383 # Find default assembler
2384 # ----------------------
2388 # Check whether --with-gnu-as was given.
2389 if test "${with_gnu_as+set}" = set; then
2390 withval=$with_gnu_as; gas_flag="$with_gnu_as"
2397 # Check whether --with-as was given.
2398 if test "${with_as+set}" = set; then
2399 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2402 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2403 if test ! -x "$DEFAULT_ASSEMBLER"; then
2404 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2405 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2406 { (exit 1); exit 1; }; }
2407 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2411 cat >>confdefs.h <<_ACEOF
2412 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2417 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2418 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2419 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2420 if test x"$gas_flag" = x"no"; then
2421 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2422 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2424 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2425 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2436 # If a non-executable a.out is present (e.g. created by GNU as above even if
2437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2438 # file, even when creating an executable, so an execution test fails.
2439 # Remove possible default executable files to avoid this.
2441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2442 # Autoconf includes it.
2443 rm -f a.out a.exe b.out
2445 # Find the native compiler
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 if test -n "$CC"; then
2481 { echo "$as_me:$LINENO: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6; }
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2490 if test -z "$ac_cv_prog_CC"; then
2492 # Extract the first word of "gcc", so it can be a program name with args.
2493 set dummy gcc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$ac_ct_CC"; then
2500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_ac_ct_CC="gcc"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2522 echo "${ECHO_T}$ac_ct_CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2528 if test "x$ac_ct_CC" = x; then
2531 case $cross_compiling:$ac_tool_warned in
2533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2534 whose name does not start with the host triplet. If you think this
2535 configuration is useful to you, please write to autoconf@gnu.org." >&5
2536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2537 whose name does not start with the host triplet. If you think this
2538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2539 ac_tool_warned=yes ;;
2547 if test -z "$CC"; then
2548 if test -n "$ac_tool_prefix"; then
2549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}cc; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_CC="${ac_tool_prefix}cc"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2588 if test -z "$CC"; then
2589 # Extract the first word of "cc", so it can be a program name with args.
2590 set dummy cc; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608 ac_prog_rejected=yes
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test $ac_prog_rejected = yes; then
2620 # We found a bogon in the path, so make sure we never use it.
2621 set dummy $ac_cv_prog_CC
2623 if test $# != 0; then
2624 # We chose a different compiler from the bogus one.
2625 # However, it has the same basename, so the bogon will be chosen
2626 # first if we set CC to just the basename; use the full file name.
2628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634 if test -n "$CC"; then
2635 { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2644 if test -z "$CC"; then
2645 if test -n "$ac_tool_prefix"; then
2646 for ac_prog in cl.exe
2648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 if test -n "$CC"; then
2677 { echo "$as_me:$LINENO: result: $CC" >&5
2678 echo "${ECHO_T}$CC" >&6; }
2680 { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2685 test -n "$CC" && break
2688 if test -z "$CC"; then
2690 for ac_prog in cl.exe
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$ac_ct_CC"; then
2700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_ac_ct_CC="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2722 echo "${ECHO_T}$ac_ct_CC" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$ac_ct_CC" && break
2732 if test "x$ac_ct_CC" = x; then
2735 case $cross_compiling:$ac_tool_warned in
2737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2738 whose name does not start with the host triplet. If you think this
2739 configuration is useful to you, please write to autoconf@gnu.org." >&5
2740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet. If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2743 ac_tool_warned=yes ;;
2752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details." >&2;}
2756 { (exit 1); exit 1; }; }
2758 # Provide some information about the compiler.
2759 echo "$as_me:$LINENO: checking for C compiler version" >&5
2760 ac_compiler=`set X $ac_compile; echo $2`
2761 { (ac_try="$ac_compiler --version >&5"
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler --version >&5") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -v >&5"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -v >&5") 2>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (ac_try="$ac_compiler -V >&5"
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compiler -V >&5") 2>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }
2792 cat >conftest.$ac_ext <<_ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2807 ac_clean_files_save=$ac_clean_files
2808 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2809 # Try to create an executable without -o first, disregard a.out.
2810 # It will help us diagnose broken compilers, and finding out an intuition
2812 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2813 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2814 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2816 # List of possible output files, starting from the most likely.
2817 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2818 # only as a last resort. b.out is created by i960 compilers.
2819 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2821 # The IRIX 6 linker writes into existing files which may not be
2822 # executable, retaining their permissions. Remove them first so a
2823 # subsequent execution test works.
2825 for ac_file in $ac_files
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2834 if { (ac_try="$ac_link_default"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link_default") 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2846 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2847 # so that the user can short-circuit this test for compilers unknown to
2849 for ac_file in $ac_files ''
2851 test -f "$ac_file" || continue
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2856 # We found the default executable, but exeext='' is most
2860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 # We set ac_cv_exeext here because the later test for it is not
2865 # safe: cross compilers may not add the suffix if given an `-o'
2866 # argument, so we may need to know it at that point already.
2867 # Even if this section looks crufty: it has the advantage of
2874 test "$ac_cv_exeext" = no && ac_cv_exeext=
2880 { echo "$as_me:$LINENO: result: $ac_file" >&5
2881 echo "${ECHO_T}$ac_file" >&6; }
2882 if test -z "$ac_file"; then
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: C compiler cannot create executables
2889 See \`config.log' for more details." >&2;}
2890 { (exit 77); exit 77; }; }
2893 ac_exeext=$ac_cv_exeext
2895 # Check that the compiler produces executables we can run. If not, either
2896 # the compiler is broken, or we cross compile.
2897 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2898 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2899 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2900 # If not cross compiling, check that we can run a simple program.
2901 if test "$cross_compiling" != yes; then
2902 if { ac_try='./$ac_file'
2903 { (case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_try") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2914 if test "$cross_compiling" = maybe; then
2917 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2918 If you meant to cross compile, use \`--host'.
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot run C compiled programs.
2921 If you meant to cross compile, use \`--host'.
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2927 { echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6; }
2930 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2931 ac_clean_files=$ac_clean_files_save
2932 # Check that the compiler produces executables we can run. If not, either
2933 # the compiler is broken, or we cross compile.
2934 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2935 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2936 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2937 echo "${ECHO_T}$cross_compiling" >&6; }
2939 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2940 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2941 if { (ac_try="$ac_link"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_link") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2952 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2953 # work properly (i.e., refer to `conftest.exe'), while it won't with
2955 for ac_file in conftest.exe conftest conftest.*; do
2956 test -f "$ac_file" || continue
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2959 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2972 rm -f conftest$ac_cv_exeext
2973 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2974 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2976 rm -f conftest.$ac_ext
2977 EXEEXT=$ac_cv_exeext
2979 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2980 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2981 if test "${ac_cv_objext+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.o conftest.obj
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; then
3010 for ac_file in conftest.o conftest.obj conftest.*; do
3011 test -f "$ac_file" || continue;
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3014 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3031 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3032 echo "${ECHO_T}$ac_cv_objext" >&6; }
3033 OBJEXT=$ac_cv_objext
3035 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3036 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3037 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3087 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3088 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3089 GCC=`test $ac_compiler_gnu = yes && echo yes`
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3093 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 ac_save_c_werror_flag=$ac_c_werror_flag
3098 ac_c_werror_flag=yes
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3163 grep -v '^ *+' conftest.er1 >conftest.err
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 ac_c_werror_flag=$ac_save_c_werror_flag
3178 cat >conftest.$ac_ext <<_ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3227 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3228 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3229 if test "$ac_test_CFLAGS" = set; then
3230 CFLAGS=$ac_save_CFLAGS
3231 elif test $ac_cv_prog_cc_g = yes; then
3232 if test "$GCC" = yes; then
3238 if test "$GCC" = yes; then
3244 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3245 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_cc_c89+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 ac_cv_prog_cc_c89=no
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3259 #include <sys/types.h>
3260 #include <sys/stat.h>
3261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3262 struct buf { int x; };
3263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3264 static char *e (p, i)
3270 static char *f (char * (*g) (char **, int), char **p, ...)
3275 s = g (p, va_arg (v,int));
3280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3281 function prototypes and stuff, but not '\xHH' hex character constants.
3282 These don't provoke an error unfortunately, instead are silently treated
3283 as 'x'. The following induces an error, until -std is added to get
3284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3285 array size at least. It's necessary to write '\x00'==0 to get something
3286 that's true only with -std. */
3287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3290 inside strings and character constants. */
3292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3311 CC="$ac_save_CC $ac_arg"
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv_prog_cc_c89=$ac_arg
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3337 rm -f core conftest.err conftest.$ac_objext
3338 test "x$ac_cv_prog_cc_c89" != "xno" && break
3340 rm -f conftest.$ac_ext
3345 case "x$ac_cv_prog_cc_c89" in
3347 { echo "$as_me:$LINENO: result: none needed" >&5
3348 echo "${ECHO_T}none needed" >&6; } ;;
3350 { echo "$as_me:$LINENO: result: unsupported" >&5
3351 echo "${ECHO_T}unsupported" >&6; } ;;
3353 CC="$CC $ac_cv_prog_cc_c89"
3354 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3355 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 if test "x$CC" != xcc; then
3366 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3367 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3369 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3370 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3372 set dummy $CC; ac_cc=`echo $2 |
3373 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3374 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3392 # Make sure it works both with $CC and with simple cc.
3393 # We do the test twice because some compilers refuse to overwrite an
3394 # existing .o file with -o, though they will create one.
3395 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3397 if { (case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_try") 2>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); };
3416 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3417 if test "x$CC" != xcc; then
3418 # Test first that cc exists at all.
3419 if { ac_try='cc -c conftest.$ac_ext >&5'
3420 { (case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_try") 2>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3431 if { (case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_try") 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_try") 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); };
3453 # cc exists but doesn't like -o.
3454 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3459 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3461 rm -f core conftest*
3464 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3465 { echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6; }
3468 { echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6; }
3471 cat >>confdefs.h <<\_ACEOF
3472 #define NO_MINUS_C_MINUS_O 1
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir=`cd $ac_aux_dir && pwd`
3480 # FIXME: we rely on the cache variable name because
3481 # there is no other way.
3483 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3484 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3485 # Losing compiler, so override with the script.
3486 # FIXME: It is wrong to rewrite CC.
3487 # But if we don't then we get into trouble of one sort or another.
3488 # A longer-term fix would be to have automake use am__CC in this case,
3489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3490 CC="$am_aux_dir/compile $CC"
3493 # autoconf is lame and doesn't give us any substitution variable for this.
3494 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3495 NO_MINUS_C_MINUS_O=yes
3497 OUTPUT_OPTION='-o $@'
3502 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3503 # optimizations to be activated explicitly by the toplevel.
3505 */prev-gcc/xgcc*) ;;
3506 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3510 # -------------------------
3511 # Check C compiler features
3512 # -------------------------
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3525 if test -z "$CPP"; then
3526 if test "${ac_cv_prog_CPP+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 # Double quotes because CPP needs to be expanded
3530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3533 for ac_c_preproc_warn_flag in '' yes
3535 # Use a header file that comes with gcc, so configuring glibc
3536 # with a fresh cross-compiler works.
3537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538 # <limits.h> exists even on freestanding compilers.
3539 # On the NeXT, cc -E runs the code through the compiler's parser,
3540 # not just through cpp. "Syntax error" is here to catch this case.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3548 # include <limits.h>
3550 # include <assert.h>
3554 if { (ac_try="$ac_cpp conftest.$ac_ext"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } >/dev/null && {
3567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null && {
3604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3605 test ! -s conftest.err
3607 # Broken: success on invalid input.
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 # Passes both tests.
3618 rm -f conftest.err conftest.$ac_ext
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3635 { echo "$as_me:$LINENO: result: $CPP" >&5
3636 echo "${ECHO_T}$CPP" >&6; }
3638 for ac_c_preproc_warn_flag in '' yes
3640 # Use a header file that comes with gcc, so configuring glibc
3641 # with a fresh cross-compiler works.
3642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643 # <limits.h> exists even on freestanding compilers.
3644 # On the NeXT, cc -E runs the code through the compiler's parser,
3645 # not just through cpp. "Syntax error" is here to catch this case.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3653 # include <limits.h>
3655 # include <assert.h>
3659 if { (ac_try="$ac_cpp conftest.$ac_ext"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null && {
3672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 # Broken: fails on valid input.
3684 rm -f conftest.err conftest.$ac_ext
3686 # OK, works on sane cases. Now check whether nonexistent headers
3687 # can be detected and how.
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #include <ac_nonexistent.h>
3696 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null && {
3709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3712 # Broken: success on invalid input.
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Passes both tests.
3723 rm -f conftest.err conftest.$ac_ext
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3731 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { echo "$as_me:$LINENO: checking for inline" >&5
3746 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3747 if test "${ac_cv_c_inline+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 for ac_kw in inline __inline__ __inline; do
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3760 static $ac_kw foo_t static_foo () {return 0; }
3761 $ac_kw foo_t foo () {return 0; }
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 ac_cv_c_inline=$ac_kw
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 test "$ac_cv_c_inline" != no && break
3795 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3796 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3799 case $ac_cv_c_inline in
3802 case $ac_cv_c_inline in
3804 *) ac_val=$ac_cv_c_inline;;
3806 cat >>confdefs.h <<_ACEOF
3808 #define inline $ac_val
3815 # sizeof(char) is 1 by definition.
3817 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3818 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 # Extract the first word of "grep ggrep" to use in msg output
3823 if test -z "$GREP"; then
3824 set dummy grep ggrep; ac_prog_name=$2
3825 if test "${ac_cv_path_GREP+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 ac_path_GREP_found=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3834 test -z "$as_dir" && as_dir=.
3835 for ac_prog in grep ggrep; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3838 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3839 # Check for GNU ac_path_GREP and select it if it is found.
3840 # Check for GNU $ac_path_GREP
3841 case `"$ac_path_GREP" --version 2>&1` in
3843 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3846 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3849 cat "conftest.in" "conftest.in" >"conftest.tmp"
3850 mv "conftest.tmp" "conftest.in"
3851 cp "conftest.in" "conftest.nl"
3852 echo 'GREP' >> "conftest.nl"
3853 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3855 ac_count=`expr $ac_count + 1`
3856 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3857 # Best one so far, save it but keep looking for a better one
3858 ac_cv_path_GREP="$ac_path_GREP"
3859 ac_path_GREP_max=$ac_count
3861 # 10*(2^10) chars as input seems more than enough
3862 test $ac_count -gt 10 && break
3864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 $ac_path_GREP_found && break 3
3878 GREP="$ac_cv_path_GREP"
3879 if test -z "$GREP"; then
3880 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3881 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3882 { (exit 1); exit 1; }; }
3886 ac_cv_path_GREP=$GREP
3891 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3892 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3893 GREP="$ac_cv_path_GREP"
3896 { echo "$as_me:$LINENO: checking for egrep" >&5
3897 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3898 if test "${ac_cv_path_EGREP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3902 then ac_cv_path_EGREP="$GREP -E"
3904 # Extract the first word of "egrep" to use in msg output
3905 if test -z "$EGREP"; then
3906 set dummy egrep; ac_prog_name=$2
3907 if test "${ac_cv_path_EGREP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_path_EGREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in egrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3920 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3921 # Check for GNU ac_path_EGREP and select it if it is found.
3922 # Check for GNU $ac_path_EGREP
3923 case `"$ac_path_EGREP" --version 2>&1` in
3925 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 echo 'EGREP' >> "conftest.nl"
3935 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 ac_count=`expr $ac_count + 1`
3938 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_EGREP="$ac_path_EGREP"
3941 ac_path_EGREP_max=$ac_count
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 $ac_path_EGREP_found && break 3
3960 EGREP="$ac_cv_path_EGREP"
3961 if test -z "$EGREP"; then
3962 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964 { (exit 1); exit 1; }; }
3968 ac_cv_path_EGREP=$EGREP
3974 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3975 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3976 EGREP="$ac_cv_path_EGREP"
3979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3981 if test "${ac_cv_header_stdc+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest.$ac_objext; then
4020 ac_cv_header_stdc=yes
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 if test $ac_cv_header_stdc = yes; then
4031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "memchr" >/dev/null 2>&1; then
4045 ac_cv_header_stdc=no
4051 if test $ac_cv_header_stdc = yes; then
4052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063 $EGREP "free" >/dev/null 2>&1; then
4066 ac_cv_header_stdc=no
4072 if test $ac_cv_header_stdc = yes; then
4073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4074 if test "$cross_compiling" = yes; then
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4085 #if ((' ' & 0x0FF) == 0x020)
4086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4089 # define ISLOWER(c) \
4090 (('a' <= (c) && (c) <= 'i') \
4091 || ('j' <= (c) && (c) <= 'r') \
4092 || ('s' <= (c) && (c) <= 'z'))
4093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4101 for (i = 0; i < 256; i++)
4102 if (XOR (islower (i), ISLOWER (i))
4103 || toupper (i) != TOUPPER (i))
4108 rm -f conftest$ac_exeext
4109 if { (ac_try="$ac_link"
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_link") 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_header_stdc=no
4137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4143 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4144 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4145 if test $ac_cv_header_stdc = yes; then
4147 cat >>confdefs.h <<\_ACEOF
4148 #define STDC_HEADERS 1
4153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4164 inttypes.h stdint.h unistd.h
4166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 $ac_includes_default
4180 #include <$ac_header>
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest.$ac_objext; then
4199 eval "$as_ac_Header=yes"
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 eval "$as_ac_Header=no"
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_res=`eval echo '${'$as_ac_Header'}'`
4210 { echo "$as_me:$LINENO: result: $ac_res" >&5
4211 echo "${ECHO_T}$ac_res" >&6; }
4212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4213 cat >>confdefs.h <<_ACEOF
4214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 { echo "$as_me:$LINENO: checking for void *" >&5
4223 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4224 if test "${ac_cv_type_void_p+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 $ac_includes_default
4234 typedef void * ac__type_new_;
4238 if ((ac__type_new_ *) 0)
4240 if (sizeof (ac__type_new_))
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_c_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.$ac_objext; then
4263 ac_cv_type_void_p=yes
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_type_void_p=no
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4274 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4276 # The cast to long int works around a bug in the HP C Compiler
4277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4279 # This bug is HP SR number 8606223364.
4280 { echo "$as_me:$LINENO: checking size of void *" >&5
4281 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4282 if test "${ac_cv_sizeof_void_p+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test "$cross_compiling" = yes; then
4286 # Depending upon the size, compute the lo and hi bounds.
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4294 typedef void * ac__type_sizeof_;
4298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && {
4319 test -z "$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 } && test -s conftest.$ac_objext; then
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 $ac_includes_default
4331 typedef void * ac__type_sizeof_;
4335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && {
4356 test -z "$ac_c_werror_flag" ||
4357 test ! -s conftest.err
4358 } && test -s conftest.$ac_objext; then
4359 ac_hi=$ac_mid; break
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 ac_lo=`expr $ac_mid + 1`
4365 if test $ac_lo -le $ac_mid; then
4369 ac_mid=`expr 2 '*' $ac_mid + 1`
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4385 typedef void * ac__type_sizeof_;
4389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4396 rm -f conftest.$ac_objext
4397 if { (ac_try="$ac_compile"
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_compile") 2>conftest.er1
4405 grep -v '^ *+' conftest.er1 >conftest.err
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } && {
4410 test -z "$ac_c_werror_flag" ||
4411 test ! -s conftest.err
4412 } && test -s conftest.$ac_objext; then
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 $ac_includes_default
4422 typedef void * ac__type_sizeof_;
4426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_compile") 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && {
4447 test -z "$ac_c_werror_flag" ||
4448 test ! -s conftest.err
4449 } && test -s conftest.$ac_objext; then
4450 ac_lo=$ac_mid; break
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_hi=`expr '(' $ac_mid ')' - 1`
4456 if test $ac_mid -le $ac_hi; then
4460 ac_mid=`expr 2 '*' $ac_mid`
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 # Binary search between lo and hi bounds.
4477 while test "x$ac_lo" != "x$ac_hi"; do
4478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4486 typedef void * ac__type_sizeof_;
4490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest.$ac_objext; then
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 ac_lo=`expr '(' $ac_mid ')' + 1`
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4526 '') if test "$ac_cv_type_void_p" = yes; then
4527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4528 See \`config.log' for more details." >&5
4529 echo "$as_me: error: cannot compute sizeof (void *)
4530 See \`config.log' for more details." >&2;}
4531 { (exit 77); exit 77; }; }
4533 ac_cv_sizeof_void_p=0
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 $ac_includes_default
4544 typedef void * ac__type_sizeof_;
4545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4553 FILE *f = fopen ("conftest.val", "w");
4556 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4558 long int i = longval ();
4559 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4561 fprintf (f, "%ld\n", i);
4565 unsigned long int i = ulongval ();
4566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4568 fprintf (f, "%lu\n", i);
4570 return ferror (f) || fclose (f) != 0;
4576 rm -f conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_link") 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_sizeof_void_p=`cat conftest.val`
4598 echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4603 if test "$ac_cv_type_void_p" = yes; then
4604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (void *)
4607 See \`config.log' for more details." >&2;}
4608 { (exit 77); exit 77; }; }
4610 ac_cv_sizeof_void_p=0
4613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4618 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4622 cat >>confdefs.h <<_ACEOF
4623 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4627 { echo "$as_me:$LINENO: checking for short" >&5
4628 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_short+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 typedef short ac__type_new_;
4643 if ((ac__type_new_ *) 0)
4645 if (sizeof (ac__type_new_))
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } && {
4665 test -z "$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 } && test -s conftest.$ac_objext; then
4668 ac_cv_type_short=yes
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4679 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4681 # The cast to long int works around a bug in the HP C Compiler
4682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4684 # This bug is HP SR number 8606223364.
4685 { echo "$as_me:$LINENO: checking size of short" >&5
4686 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4687 if test "${ac_cv_sizeof_short+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 if test "$cross_compiling" = yes; then
4691 # Depending upon the size, compute the lo and hi bounds.
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4699 typedef short ac__type_sizeof_;
4703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4710 rm -f conftest.$ac_objext
4711 if { (ac_try="$ac_compile"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 $ac_includes_default
4736 typedef short ac__type_sizeof_;
4740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_compile") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest.$ac_objext; then
4764 ac_hi=$ac_mid; break
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 ac_lo=`expr $ac_mid + 1`
4770 if test $ac_lo -le $ac_mid; then
4774 ac_mid=`expr 2 '*' $ac_mid + 1`
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 cat >conftest.$ac_ext <<_ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 $ac_includes_default
4790 typedef short ac__type_sizeof_;
4794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4801 rm -f conftest.$ac_objext
4802 if { (ac_try="$ac_compile"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_compile") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest.$ac_objext; then
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 typedef short ac__type_sizeof_;
4831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_lo=$ac_mid; break
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_hi=`expr '(' $ac_mid ')' - 1`
4861 if test $ac_mid -le $ac_hi; then
4865 ac_mid=`expr 2 '*' $ac_mid`
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 # Binary search between lo and hi bounds.
4882 while test "x$ac_lo" != "x$ac_hi"; do
4883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4891 typedef short ac__type_sizeof_;
4895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 ac_lo=`expr '(' $ac_mid ')' + 1`
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 ?*) ac_cv_sizeof_short=$ac_lo;;
4931 '') if test "$ac_cv_type_short" = yes; then
4932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4933 See \`config.log' for more details." >&5
4934 echo "$as_me: error: cannot compute sizeof (short)
4935 See \`config.log' for more details." >&2;}
4936 { (exit 77); exit 77; }; }
4938 ac_cv_sizeof_short=0
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4949 typedef short ac__type_sizeof_;
4950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4958 FILE *f = fopen ("conftest.val", "w");
4961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4963 long int i = longval ();
4964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4966 fprintf (f, "%ld\n", i);
4970 unsigned long int i = ulongval ();
4971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4973 fprintf (f, "%lu\n", i);
4975 return ferror (f) || fclose (f) != 0;
4981 rm -f conftest$ac_exeext
4982 if { (ac_try="$ac_link"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_link") 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4992 { (case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_try") 2>&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_cv_sizeof_short=`cat conftest.val`
5003 echo "$as_me: program exited with status $ac_status" >&5
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5008 if test "$ac_cv_type_short" = yes; then
5009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: cannot compute sizeof (short)
5012 See \`config.log' for more details." >&2;}
5013 { (exit 77); exit 77; }; }
5015 ac_cv_sizeof_short=0
5018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5023 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5027 cat >>confdefs.h <<_ACEOF
5028 #define SIZEOF_SHORT $ac_cv_sizeof_short
5032 { echo "$as_me:$LINENO: checking for int" >&5
5033 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5034 if test "${ac_cv_type_int+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5044 typedef int ac__type_new_;
5048 if ((ac__type_new_ *) 0)
5050 if (sizeof (ac__type_new_))
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5084 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5086 # The cast to long int works around a bug in the HP C Compiler
5087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5089 # This bug is HP SR number 8606223364.
5090 { echo "$as_me:$LINENO: checking size of int" >&5
5091 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5092 if test "${ac_cv_sizeof_int+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 if test "$cross_compiling" = yes; then
5096 # Depending upon the size, compute the lo and hi bounds.
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5104 typedef int ac__type_sizeof_;
5108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_compile") 2>conftest.er1
5124 grep -v '^ *+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest.$ac_objext; then
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 typedef int ac__type_sizeof_;
5145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.$ac_objext; then
5169 ac_hi=$ac_mid; break
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ac_lo=`expr $ac_mid + 1`
5175 if test $ac_lo -le $ac_mid; then
5179 ac_mid=`expr 2 '*' $ac_mid + 1`
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5195 typedef int ac__type_sizeof_;
5199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_compile") 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest.$ac_objext; then
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5232 typedef int ac__type_sizeof_;
5236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 ac_lo=$ac_mid; break
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 ac_hi=`expr '(' $ac_mid ')' - 1`
5266 if test $ac_mid -le $ac_hi; then
5270 ac_mid=`expr 2 '*' $ac_mid`
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 # Binary search between lo and hi bounds.
5287 while test "x$ac_lo" != "x$ac_hi"; do
5288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5289 cat >conftest.$ac_ext <<_ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 typedef int ac__type_sizeof_;
5300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5307 rm -f conftest.$ac_objext
5308 if { (ac_try="$ac_compile"
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_compile") 2>conftest.er1
5316 grep -v '^ *+' conftest.er1 >conftest.err
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && {
5321 test -z "$ac_c_werror_flag" ||
5322 test ! -s conftest.err
5323 } && test -s conftest.$ac_objext; then
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5329 ac_lo=`expr '(' $ac_mid ')' + 1`
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ?*) ac_cv_sizeof_int=$ac_lo;;
5336 '') if test "$ac_cv_type_int" = yes; then
5337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: cannot compute sizeof (int)
5340 See \`config.log' for more details." >&2;}
5341 { (exit 77); exit 77; }; }
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 typedef int ac__type_sizeof_;
5355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5363 FILE *f = fopen ("conftest.val", "w");
5366 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5368 long int i = longval ();
5369 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5371 fprintf (f, "%ld\n", i);
5375 unsigned long int i = ulongval ();
5376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5378 fprintf (f, "%lu\n", i);
5380 return ferror (f) || fclose (f) != 0;
5386 rm -f conftest$ac_exeext
5387 if { (ac_try="$ac_link"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_link") 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_sizeof_int=`cat conftest.val`
5408 echo "$as_me: program exited with status $ac_status" >&5
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5413 if test "$ac_cv_type_int" = yes; then
5414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: cannot compute sizeof (int)
5417 See \`config.log' for more details." >&2;}
5418 { (exit 77); exit 77; }; }
5423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5428 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5432 cat >>confdefs.h <<_ACEOF
5433 #define SIZEOF_INT $ac_cv_sizeof_int
5437 { echo "$as_me:$LINENO: checking for long" >&5
5438 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5439 if test "${ac_cv_type_long+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 $ac_includes_default
5449 typedef long ac__type_new_;
5453 if ((ac__type_new_ *) 0)
5455 if (sizeof (ac__type_new_))
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5489 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5491 # The cast to long int works around a bug in the HP C Compiler
5492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5494 # This bug is HP SR number 8606223364.
5495 { echo "$as_me:$LINENO: checking size of long" >&5
5496 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5497 if test "${ac_cv_sizeof_long+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 if test "$cross_compiling" = yes; then
5501 # Depending upon the size, compute the lo and hi bounds.
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 $ac_includes_default
5509 typedef long ac__type_sizeof_;
5513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_c_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5546 typedef long ac__type_sizeof_;
5550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.$ac_objext; then
5574 ac_hi=$ac_mid; break
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 ac_lo=`expr $ac_mid + 1`
5580 if test $ac_lo -le $ac_mid; then
5584 ac_mid=`expr 2 '*' $ac_mid + 1`
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5600 typedef long ac__type_sizeof_;
5604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5637 typedef long ac__type_sizeof_;
5641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_lo=$ac_mid; break
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_hi=`expr '(' $ac_mid ')' - 1`
5671 if test $ac_mid -le $ac_hi; then
5675 ac_mid=`expr 2 '*' $ac_mid`
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 # Binary search between lo and hi bounds.
5692 while test "x$ac_lo" != "x$ac_hi"; do
5693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $ac_includes_default
5701 typedef long ac__type_sizeof_;
5705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5712 rm -f conftest.$ac_objext
5713 if { (ac_try="$ac_compile"
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ac_lo=`expr '(' $ac_mid ')' + 1`
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 ?*) ac_cv_sizeof_long=$ac_lo;;
5741 '') if test "$ac_cv_type_long" = yes; then
5742 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5743 See \`config.log' for more details." >&5
5744 echo "$as_me: error: cannot compute sizeof (long)
5745 See \`config.log' for more details." >&2;}
5746 { (exit 77); exit 77; }; }
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5759 typedef long ac__type_sizeof_;
5760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5768 FILE *f = fopen ("conftest.val", "w");
5771 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5773 long int i = longval ();
5774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5776 fprintf (f, "%ld\n", i);
5780 unsigned long int i = ulongval ();
5781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5783 fprintf (f, "%lu\n", i);
5785 return ferror (f) || fclose (f) != 0;
5791 rm -f conftest$ac_exeext
5792 if { (ac_try="$ac_link"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_link") 2>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5802 { (case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_try") 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 ac_cv_sizeof_long=`cat conftest.val`
5813 echo "$as_me: program exited with status $ac_status" >&5
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5818 if test "$ac_cv_type_long" = yes; then
5819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5820 See \`config.log' for more details." >&5
5821 echo "$as_me: error: cannot compute sizeof (long)
5822 See \`config.log' for more details." >&2;}
5823 { (exit 77); exit 77; }; }
5828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5833 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5837 cat >>confdefs.h <<_ACEOF
5838 #define SIZEOF_LONG $ac_cv_sizeof_long
5842 { echo "$as_me:$LINENO: checking for long long" >&5
5843 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5844 if test "${ac_cv_type_long_long+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5854 typedef long long ac__type_new_;
5858 if ((ac__type_new_ *) 0)
5860 if (sizeof (ac__type_new_))
5866 rm -f conftest.$ac_objext
5867 if { (ac_try="$ac_compile"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_cv_type_long_long=yes
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_cv_type_long_long=no
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5894 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5895 if test $ac_cv_type_long_long = yes; then
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_LONG_LONG 1
5901 { echo "$as_me:$LINENO: checking for long long" >&5
5902 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5903 if test "${ac_cv_type_long_long+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 typedef long long ac__type_new_;
5917 if ((ac__type_new_ *) 0)
5919 if (sizeof (ac__type_new_))
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_compile") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest.$ac_objext; then
5942 ac_cv_type_long_long=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_cv_type_long_long=no
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5953 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { echo "$as_me:$LINENO: checking size of long long" >&5
5960 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5961 if test "${ac_cv_sizeof_long_long+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 if test "$cross_compiling" = yes; then
5965 # Depending upon the size, compute the lo and hi bounds.
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 typedef long long ac__type_sizeof_;
5977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6010 typedef long long ac__type_sizeof_;
6014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6021 rm -f conftest.$ac_objext
6022 if { (ac_try="$ac_compile"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6030 grep -v '^ *+' conftest.er1 >conftest.err
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest.$ac_objext; then
6038 ac_hi=$ac_mid; break
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_lo=`expr $ac_mid + 1`
6044 if test $ac_lo -le $ac_mid; then
6048 ac_mid=`expr 2 '*' $ac_mid + 1`
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064 typedef long long ac__type_sizeof_;
6068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compile") 2>conftest.er1
6084 grep -v '^ *+' conftest.er1 >conftest.err
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && {
6089 test -z "$ac_c_werror_flag" ||
6090 test ! -s conftest.err
6091 } && test -s conftest.$ac_objext; then
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 typedef long long ac__type_sizeof_;
6105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 ac_lo=$ac_mid; break
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_hi=`expr '(' $ac_mid ')' - 1`
6135 if test $ac_mid -le $ac_hi; then
6139 ac_mid=`expr 2 '*' $ac_mid`
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 # Binary search between lo and hi bounds.
6156 while test "x$ac_lo" != "x$ac_hi"; do
6157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 $ac_includes_default
6165 typedef long long ac__type_sizeof_;
6169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1 >conftest.err
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_lo=`expr '(' $ac_mid ')' + 1`
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6205 '') if test "$ac_cv_type_long_long" = yes; then
6206 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6207 See \`config.log' for more details." >&5
6208 echo "$as_me: error: cannot compute sizeof (long long)
6209 See \`config.log' for more details." >&2;}
6210 { (exit 77); exit 77; }; }
6212 ac_cv_sizeof_long_long=0
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223 typedef long long ac__type_sizeof_;
6224 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6225 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6232 FILE *f = fopen ("conftest.val", "w");
6235 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6237 long int i = longval ();
6238 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6240 fprintf (f, "%ld\n", i);
6244 unsigned long int i = ulongval ();
6245 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6247 fprintf (f, "%lu\n", i);
6249 return ferror (f) || fclose (f) != 0;
6255 rm -f conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_sizeof_long_long=`cat conftest.val`
6277 echo "$as_me: program exited with status $ac_status" >&5
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6282 if test "$ac_cv_type_long_long" = yes; then
6283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6284 See \`config.log' for more details." >&5
6285 echo "$as_me: error: cannot compute sizeof (long long)
6286 See \`config.log' for more details." >&2;}
6287 { (exit 77); exit 77; }; }
6289 ac_cv_sizeof_long_long=0
6292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6296 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6297 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6301 cat >>confdefs.h <<_ACEOF
6302 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6308 { echo "$as_me:$LINENO: checking for __int64" >&5
6309 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6310 if test "${ac_cv_type___int64+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 typedef __int64 ac__type_new_;
6324 if ((ac__type_new_ *) 0)
6326 if (sizeof (ac__type_new_))
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compile") 2>conftest.er1
6341 grep -v '^ *+' conftest.er1 >conftest.err
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } && {
6346 test -z "$ac_c_werror_flag" ||
6347 test ! -s conftest.err
6348 } && test -s conftest.$ac_objext; then
6349 ac_cv_type___int64=yes
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 ac_cv_type___int64=no
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6360 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6361 if test $ac_cv_type___int64 = yes; then
6363 cat >>confdefs.h <<_ACEOF
6364 #define HAVE___INT64 1
6367 { echo "$as_me:$LINENO: checking for __int64" >&5
6368 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6369 if test "${ac_cv_type___int64+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 $ac_includes_default
6379 typedef __int64 ac__type_new_;
6383 if ((ac__type_new_ *) 0)
6385 if (sizeof (ac__type_new_))
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.$ac_objext; then
6408 ac_cv_type___int64=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_cv_type___int64=no
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6419 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6421 # The cast to long int works around a bug in the HP C Compiler
6422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6424 # This bug is HP SR number 8606223364.
6425 { echo "$as_me:$LINENO: checking size of __int64" >&5
6426 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6427 if test "${ac_cv_sizeof___int64+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if test "$cross_compiling" = yes; then
6431 # Depending upon the size, compute the lo and hi bounds.
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 $ac_includes_default
6439 typedef __int64 ac__type_sizeof_;
6443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6459 grep -v '^ *+' conftest.er1 >conftest.err
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && {
6464 test -z "$ac_c_werror_flag" ||
6465 test ! -s conftest.err
6466 } && test -s conftest.$ac_objext; then
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 typedef __int64 ac__type_sizeof_;
6480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6487 rm -f conftest.$ac_objext
6488 if { (ac_try="$ac_compile"
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_compile") 2>conftest.er1
6496 grep -v '^ *+' conftest.er1 >conftest.err
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } && {
6501 test -z "$ac_c_werror_flag" ||
6502 test ! -s conftest.err
6503 } && test -s conftest.$ac_objext; then
6504 ac_hi=$ac_mid; break
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_lo=`expr $ac_mid + 1`
6510 if test $ac_lo -le $ac_mid; then
6514 ac_mid=`expr 2 '*' $ac_mid + 1`
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 typedef __int64 ac__type_sizeof_;
6534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6550 grep -v '^ *+' conftest.er1 >conftest.err
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 $ac_includes_default
6567 typedef __int64 ac__type_sizeof_;
6571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_lo=$ac_mid; break
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_hi=`expr '(' $ac_mid ')' - 1`
6601 if test $ac_mid -le $ac_hi; then
6605 ac_mid=`expr 2 '*' $ac_mid`
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 # Binary search between lo and hi bounds.
6622 while test "x$ac_lo" != "x$ac_hi"; do
6623 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 $ac_includes_default
6631 typedef __int64 ac__type_sizeof_;
6635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.$ac_objext; then
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 ac_lo=`expr '(' $ac_mid ')' + 1`
6667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 ?*) ac_cv_sizeof___int64=$ac_lo;;
6671 '') if test "$ac_cv_type___int64" = yes; then
6672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6673 See \`config.log' for more details." >&5
6674 echo "$as_me: error: cannot compute sizeof (__int64)
6675 See \`config.log' for more details." >&2;}
6676 { (exit 77); exit 77; }; }
6678 ac_cv_sizeof___int64=0
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 typedef __int64 ac__type_sizeof_;
6690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6698 FILE *f = fopen ("conftest.val", "w");
6701 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6703 long int i = longval ();
6704 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6706 fprintf (f, "%ld\n", i);
6710 unsigned long int i = ulongval ();
6711 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6713 fprintf (f, "%lu\n", i);
6715 return ferror (f) || fclose (f) != 0;
6721 rm -f conftest$ac_exeext
6722 if { (ac_try="$ac_link"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_link") 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6732 { (case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_try") 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; }; then
6741 ac_cv_sizeof___int64=`cat conftest.val`
6743 echo "$as_me: program exited with status $ac_status" >&5
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6748 if test "$ac_cv_type___int64" = yes; then
6749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6750 See \`config.log' for more details." >&5
6751 echo "$as_me: error: cannot compute sizeof (__int64)
6752 See \`config.log' for more details." >&2;}
6753 { (exit 77); exit 77; }; }
6755 ac_cv_sizeof___int64=0
6758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6763 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
6767 cat >>confdefs.h <<_ACEOF
6768 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6775 # ---------------------
6776 # Warnings and checking
6777 # ---------------------
6779 # Check $CC warning features (if it's GCC).
6780 # We want to use -pedantic, but we don't want warnings about
6783 # * overlong strings
6784 # So, we only use -pedantic if we can disable those warnings.
6786 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6787 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6; }
6788 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 save_CFLAGS="$CFLAGS"
6792 CFLAGS="-Wno-long-long"
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_compile") 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest.$ac_objext; then
6818 ac_cv_prog_cc_w_no_long_long=yes
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6823 ac_cv_prog_cc_w_no_long_long=no
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 CFLAGS="$save_CFLAGS"
6830 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6831 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6; }
6833 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6834 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6; }
6835 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 save_CFLAGS="$CFLAGS"
6839 CFLAGS="-Wno-variadic-macros"
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6848 rm -f conftest.$ac_objext
6849 if { (ac_try="$ac_compile"
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855 (eval "$ac_compile") 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest.$ac_objext; then
6865 ac_cv_prog_cc_w_no_variadic_macros=yes
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 ac_cv_prog_cc_w_no_variadic_macros=no
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 CFLAGS="$save_CFLAGS"
6877 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6878 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6880 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6881 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 save_CFLAGS="$CFLAGS"
6886 CFLAGS="-Wno-overlength-strings"
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6912 ac_cv_prog_cc_w_no_overlength_strings=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_prog_cc_w_no_overlength_strings=no
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 CFLAGS="$save_CFLAGS"
6924 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6925 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6; }
6928 if test $ac_cv_prog_cc_w_no_long_long = yes \
6929 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6930 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6931 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6934 # Add -Wold-style-definition if it's accepted
6935 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6936 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6; }
6937 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 save_CFLAGS="$CFLAGS"
6941 CFLAGS="-Wold-style-definition"
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 ac_cv_prog_cc_w_old_style_definition=yes
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_prog_cc_w_old_style_definition=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 CFLAGS="$save_CFLAGS"
6979 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6980 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6; }
6981 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6982 strict_warn="${strict_warn} -Wold-style-definition"
6985 # Add -Wmissing-format-attribute if it's accepted
6986 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6987 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6; }
6988 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 save_CFLAGS="$CFLAGS"
6992 CFLAGS="-Wmissing-format-attribute"
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7001 rm -f conftest.$ac_objext
7002 if { (ac_try="$ac_compile"
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7010 grep -v '^ *+' conftest.er1 >conftest.err
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 ac_cv_prog_cc_w_missing_format_attribute=yes
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_prog_cc_w_missing_format_attribute=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 CFLAGS="$save_CFLAGS"
7030 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
7031 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
7032 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
7033 strict_warn="${strict_warn} -Wmissing-format-attribute"
7036 # Enable -Werror, period.
7037 # Check whether --enable-werror_always was given.
7038 if test "${enable_werror_always+set}" = set; then
7039 enableval=$enable_werror_always;
7041 enable_werror_always=no
7044 if test x${enable_werror_always} = xyes ; then
7045 strict_warn="${strict_warn} -Werror"
7049 # Get C++ compatibility warning flag, if supported.
7050 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
7051 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6; }
7052 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 save_CFLAGS="$CFLAGS"
7056 CFLAGS="-Wc++-compat"
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_prog_cc_w_cxx_compat=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_prog_cc_w_cxx_compat=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 CFLAGS="$save_CFLAGS"
7094 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
7095 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6; }
7096 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
7097 cxx_compat_warn="-Wc++-compat"
7102 # If the native compiler is GCC, we can enable warnings even in stage1.
7103 # That's useful for people building cross-compilers, or just running a
7106 if test "x$GCC" = "xyes"; then
7107 warn_cflags='$(GCC_WARN_CFLAGS)'
7111 # Enable expensive internal checks
7113 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7117 # Check whether --enable-checking was given.
7118 if test "${enable_checking+set}" = set; then
7119 enableval=$enable_checking; ac_checking_flags="${enableval}"
7122 # Determine the default checks.
7123 if test x$is_release = x ; then
7124 ac_checking_flags=yes
7126 ac_checking_flags=release
7130 ac_assert_checking=1
7134 ac_gc_always_collect=
7136 ac_rtlflag_checking=
7137 ac_runtime_checking=1
7139 ac_valgrind_checking=
7140 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7141 for check in $ac_checking_flags
7144 # these set all the flags to specific states
7145 yes) ac_assert_checking=1 ; ac_checking=1 ;
7146 ac_fold_checking= ; ac_gc_checking=1 ;
7147 ac_gc_always_collect= ; ac_rtl_checking= ;
7148 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7149 ac_tree_checking=1 ; ac_valgrind_checking= ;;
7150 no|none) ac_assert_checking= ; ac_checking= ;
7151 ac_fold_checking= ; ac_gc_checking= ;
7152 ac_gc_always_collect= ; ac_rtl_checking= ;
7153 ac_rtlflag_checking= ; ac_runtime_checking= ;
7154 ac_tree_checking= ; ac_valgrind_checking= ;;
7155 all) ac_assert_checking=1 ; ac_checking=1 ;
7156 ac_fold_checking=1 ; ac_gc_checking=1 ;
7157 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7158 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7159 ac_tree_checking=1 ; ac_valgrind_checking= ;;
7160 release) ac_assert_checking=1 ; ac_checking= ;
7161 ac_fold_checking= ; ac_gc_checking= ;
7162 ac_gc_always_collect= ; ac_rtl_checking= ;
7163 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7164 ac_tree_checking= ; ac_valgrind_checking= ;;
7165 # these enable particular checks
7166 assert) ac_assert_checking=1 ;;
7167 fold) ac_fold_checking=1 ;;
7168 gc) ac_gc_checking=1 ;;
7169 gcac) ac_gc_always_collect=1 ;;
7170 misc) ac_checking=1 ;;
7171 rtl) ac_rtl_checking=1 ;;
7172 rtlflag) ac_rtlflag_checking=1 ;;
7173 runtime) ac_runtime_checking=1 ;;
7174 tree) ac_tree_checking=1 ;;
7175 valgrind) ac_valgrind_checking=1 ;;
7176 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7177 echo "$as_me: error: unknown check category $check" >&2;}
7178 { (exit 1); exit 1; }; } ;;
7184 if test x$ac_checking != x ; then
7186 cat >>confdefs.h <<\_ACEOF
7187 #define ENABLE_CHECKING 1
7190 nocommon_flag=-fno-common
7193 if test x$ac_assert_checking != x ; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define ENABLE_ASSERT_CHECKING 1
7201 if test x$ac_runtime_checking != x ; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define ENABLE_RUNTIME_CHECKING 1
7208 if test x$ac_tree_checking != x ; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define ENABLE_TREE_CHECKING 1
7214 TREEBROWSER=tree-browser.o
7217 if test x$ac_rtl_checking != x ; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define ENABLE_RTL_CHECKING 1
7224 if test x$ac_rtlflag_checking != x ; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define ENABLE_RTL_FLAG_CHECKING 1
7231 if test x$ac_gc_checking != x ; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define ENABLE_GC_CHECKING 1
7238 if test x$ac_gc_always_collect != x ; then
7240 cat >>confdefs.h <<\_ACEOF
7241 #define ENABLE_GC_ALWAYS_COLLECT 1
7245 if test x$ac_fold_checking != x ; then
7247 cat >>confdefs.h <<\_ACEOF
7248 #define ENABLE_FOLD_CHECKING 1
7252 valgrind_path_defines=
7255 if test "${ac_cv_header_valgrind_h+set}" = set; then
7256 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7257 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7258 if test "${ac_cv_header_valgrind_h+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7262 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7264 # Is the header compilable?
7265 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7266 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 $ac_includes_default
7274 #include <valgrind.h>
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_header_compiler=yes
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_header_compiler=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7303 echo "${ECHO_T}$ac_header_compiler" >&6; }
7305 # Is the header present?
7306 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7307 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
7308 cat >conftest.$ac_ext <<_ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <valgrind.h>
7316 if { (ac_try="$ac_cpp conftest.$ac_ext"
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } >/dev/null && {
7329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7332 ac_header_preproc=yes
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 ac_header_preproc=no
7340 rm -f conftest.err conftest.$ac_ext
7341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7342 echo "${ECHO_T}$ac_header_preproc" >&6; }
7344 # So? What about this header?
7345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7347 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7348 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7350 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7351 ac_header_preproc=yes
7354 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7355 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7356 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7357 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7359 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7361 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7363 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7365 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7369 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7370 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7371 if test "${ac_cv_header_valgrind_h+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cv_header_valgrind_h=$ac_header_preproc
7376 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7377 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7380 if test $ac_cv_header_valgrind_h = yes; then
7388 if test x$ac_valgrind_checking != x ; then
7389 # It is certainly possible that there's valgrind but no valgrind.h.
7390 # GCC relies on making annotations so we must have both.
7391 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7392 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 #include <valgrind/memcheck.h>
7400 #ifndef VALGRIND_DISCARD
7401 #error VALGRIND_DISCARD not defined
7404 if { (ac_try="$ac_cpp conftest.$ac_ext"
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } >/dev/null && {
7417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7420 gcc_cv_header_valgrind_memcheck_h=yes
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 gcc_cv_header_valgrind_memcheck_h=no
7428 rm -f conftest.err conftest.$ac_ext
7429 { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7430 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
7431 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7432 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <memcheck.h>
7440 #ifndef VALGRIND_DISCARD
7441 #error VALGRIND_DISCARD not defined
7444 if { (ac_try="$ac_cpp conftest.$ac_ext"
7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447 *) ac_try_echo=$ac_try;;
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null && {
7457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7460 gcc_cv_header_memcheck_h=yes
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 gcc_cv_header_memcheck_h=no
7468 rm -f conftest.err conftest.$ac_ext
7469 { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7470 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
7472 # Prepare PATH_SEPARATOR.
7473 # The user is always right.
7474 if test "${PATH_SEPARATOR+set}" != set; then
7475 echo "#! /bin/sh" >conf$$.sh
7476 echo "exit 0" >>conf$$.sh
7478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7486 # Find out how to test for executable files. Don't use a zero-byte file,
7487 # as systems may use methods other than mode bits to determine executability.
7488 cat >conf$$.file <<_ASEOF
7492 chmod +x conf$$.file
7493 if test -x conf$$.file >/dev/null 2>&1; then
7494 ac_executable_p="test -x"
7496 ac_executable_p="test -f"
7500 # Extract the first word of "valgrind", so it can be a program name with args.
7501 set dummy valgrind; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_valgrind_path+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 case "$valgrind_path" in
7509 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7513 for ac_dir in $PATH; do
7515 test -z "$ac_dir" && ac_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7518 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7519 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7529 valgrind_path="$ac_cv_path_valgrind_path"
7530 if test -n "$valgrind_path"; then
7531 { echo "$as_me:$LINENO: result: $valgrind_path" >&5
7532 echo "${ECHO_T}$valgrind_path" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7538 if test "x$valgrind_path" = "x" \
7539 || (test $have_valgrind_h = no \
7540 && test $gcc_cv_header_memcheck_h = no \
7541 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7542 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7543 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7544 { (exit 1); exit 1; }; }
7546 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7547 valgrind_command="$valgrind_path -q"
7549 cat >>confdefs.h <<\_ACEOF
7550 #define ENABLE_VALGRIND_CHECKING 1
7553 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_VALGRIND_MEMCHECK_H 1
7560 if test $gcc_cv_header_memcheck_h = yes; then
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_MEMCHECK_H 1
7571 # Check whether --enable-mapped-location was given.
7572 if test "${enable_mapped_location+set}" = set; then
7573 enableval=$enable_mapped_location;
7575 enable_mapped_location=no
7579 if test "$enable_mapped_location" = yes ; then
7581 cat >>confdefs.h <<\_ACEOF
7582 #define USE_MAPPED_LOCATION 1
7587 # Enable code coverage collection
7588 # Check whether --enable-coverage was given.
7589 if test "${enable_coverage+set}" = set; then
7590 enableval=$enable_coverage; case "${enableval}" in
7592 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7595 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7598 # a.k.a. --disable-coverage
7602 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7603 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7604 { (exit 1); exit 1; }; }
7613 # Check whether --enable-gather-detailed-mem-stats was given.
7614 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7615 enableval=$enable_gather_detailed_mem_stats;
7617 enable_gather_detailed_mem_stats=no
7620 if test x$enable_gather_detailed_mem_stats = xyes ; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define GATHER_STATISTICS 1
7628 # -------------------------------
7629 # Miscenalleous configure options
7630 # -------------------------------
7634 # Check whether --with-stabs was given.
7635 if test "${with_stabs+set}" = set; then
7636 withval=$with_stabs; stabs="$with_stabs"
7642 # Determine whether or not multilibs are enabled.
7643 # Check whether --enable-multilib was given.
7644 if test "${enable_multilib+set}" = set; then
7645 enableval=$enable_multilib;
7652 # Enable __cxa_atexit for C++.
7653 # Check whether --enable-__cxa_atexit was given.
7654 if test "${enable___cxa_atexit+set}" = set; then
7655 enableval=$enable___cxa_atexit;
7659 # Enable C extension for decimal float if target supports it.
7660 # Check whether --enable-decimal-float was given.
7661 if test "${enable_decimal_float+set}" = set; then
7662 enableval=$enable_decimal_float;
7663 case $enable_decimal_float in
7664 yes | no | bid | dpd) ;;
7665 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7666 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7667 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7668 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7669 { (exit 1); exit 1; }; } ;;
7675 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7676 enable_decimal_float=yes
7679 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7680 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7681 enable_decimal_float=no
7688 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7690 cat >>confdefs.h <<_ACEOF
7691 #define ENABLE_DECIMAL_FLOAT $dfp
7695 # x86's use BID format instead of DPD
7696 case x$enable_decimal_float in
7699 i?86*-*-linux* | x86_64*-*-linux*)
7700 enable_decimal_float=bid
7703 enable_decimal_float=dpd
7708 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7709 # dependency on libdecnumber.
7710 enable_decimal_float=dpd
7715 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7717 cat >>confdefs.h <<_ACEOF
7718 #define ENABLE_DECIMAL_BID_FORMAT $bid
7723 # Pass with no value to take the default
7724 # Pass with a value to specify a thread package
7725 # Check whether --enable-threads was given.
7726 if test "${enable_threads+set}" = set; then
7727 enableval=$enable_threads;
7733 # Check whether --enable-tls was given.
7734 if test "${enable_tls+set}" = set; then
7735 enableval=$enable_tls;
7738 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7739 Valid choices are 'yes' and 'no'." >&5
7740 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7741 Valid choices are 'yes' and 'no'." >&2;}
7742 { (exit 1); exit 1; }; } ;;
7750 # Check whether --enable-objc-gc was given.
7751 if test "${enable_objc_gc+set}" = set; then
7752 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7763 # Check whether --with-dwarf2 was given.
7764 if test "${with_dwarf2+set}" = set; then
7765 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7771 # Check whether --enable-shared was given.
7772 if test "${enable_shared+set}" = set; then
7773 enableval=$enable_shared;
7774 case $enable_shared in
7778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7779 for pkg in $enableval; do
7780 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7795 # Check whether --with-build-sysroot was given.
7796 if test "${with_build_sysroot+set}" = set; then
7797 withval=$with_build_sysroot;
7802 # Check whether --with-sysroot was given.
7803 if test "${with_sysroot+set}" = set; then
7804 withval=$with_sysroot;
7805 case ${with_sysroot} in
7806 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7807 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7810 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7811 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7813 if test "x$exec_prefix" = xNONE; then
7814 if test "x$prefix" = xNONE; then
7815 test_prefix=/usr/local
7820 test_prefix=$exec_prefix
7822 case ${TARGET_SYSTEM_ROOT} in
7823 "${test_prefix}"|"${test_prefix}/"*|\
7824 '${exec_prefix}'|'${exec_prefix}/'*)
7825 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7826 TARGET_SYSTEM_ROOT_DEFINE="$t"
7833 TARGET_SYSTEM_ROOT_DEFINE=
7834 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7842 # Build with intermodule optimisations
7843 # Check whether --enable-intermodule was given.
7844 if test "${enable_intermodule+set}" = set; then
7845 enableval=$enable_intermodule; case ${enable_intermodule} in
7846 yes) onestep="-onestep";;
7855 # Sanity check enable_languages in case someone does not run the toplevel
7856 # configure # script.
7857 # Check whether --enable-languages was given.
7858 if test "${enable_languages+set}" = set; then
7859 enableval=$enable_languages; case ,${enable_languages}, in
7861 # go safe -- we cannot be much sure without the toplevel
7863 # analysis of which target libs are present and usable
7867 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7868 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7869 { (exit 1); exit 1; }; }
7874 enable_languages=c,${enable_languages}
7882 # Used by documentation targets
7887 # -------------------------
7888 # Checks for other programs
7889 # -------------------------
7891 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7892 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7893 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7894 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 cat >conftest.make <<\_ACEOF
7900 @echo '@@@%%%=$(MAKE)=@@@%%%'
7902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7903 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7905 eval ac_cv_prog_make_${ac_make}_set=yes;;
7907 eval ac_cv_prog_make_${ac_make}_set=no;;
7911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7912 { echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6; }
7916 { echo "$as_me:$LINENO: result: no" >&5
7917 echo "${ECHO_T}no" >&6; }
7918 SET_MAKE="MAKE=${MAKE-make}"
7922 # Find some useful tools
7923 for ac_prog in gawk mawk nawk awk
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929 if test "${ac_cv_prog_AWK+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 if test -n "$AWK"; then
7933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_prog_AWK="$ac_prog"
7943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 if test -n "$AWK"; then
7954 { echo "$as_me:$LINENO: result: $AWK" >&5
7955 echo "${ECHO_T}$AWK" >&6; }
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 test -n "$AWK" && break
7965 # We need awk to create options.c and options.h.
7966 # Bail out if it's missing.
7968 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7969 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7970 { (exit 1); exit 1; }; } ;;
7973 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7974 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7975 if test "${gcc_cv_prog_LN_S+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 rm -f conftestdata_t
7979 echo >conftestdata_f
7980 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7982 gcc_cv_prog_LN_S="ln -s"
7984 if ln conftestdata_f conftestdata_t 2>/dev/null
7988 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7990 gcc_cv_prog_LN_S="cp -p"
7996 rm -f conftestdata_f conftestdata_t
7999 LN_S="$gcc_cv_prog_LN_S"
8000 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8001 { echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6; }
8004 if test "$gcc_cv_prog_LN_S" = "ln"; then
8005 { echo "$as_me:$LINENO: result: no, using ln" >&5
8006 echo "${ECHO_T}no, using ln" >&6; }
8008 { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8009 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8013 { echo "$as_me:$LINENO: checking whether ln works" >&5
8014 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8015 if test "${acx_cv_prog_LN+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 rm -f conftestdata_t
8019 echo >conftestdata_f
8020 if ln conftestdata_f conftestdata_t 2>/dev/null
8026 rm -f conftestdata_f conftestdata_t
8029 if test $acx_cv_prog_LN = no; then
8031 { echo "$as_me:$LINENO: result: no, using $LN" >&5
8032 echo "${ECHO_T}no, using $LN" >&6; }
8034 LN="$acx_cv_prog_LN"
8035 { echo "$as_me:$LINENO: result: yes" >&5
8036 echo "${ECHO_T}yes" >&6; }
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8044 if test "${ac_cv_prog_RANLIB+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 if test -n "$RANLIB"; then
8048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 RANLIB=$ac_cv_prog_RANLIB
8068 if test -n "$RANLIB"; then
8069 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8070 echo "${ECHO_T}$RANLIB" >&6; }
8072 { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8078 if test -z "$ac_cv_prog_RANLIB"; then
8079 ac_ct_RANLIB=$RANLIB
8080 # Extract the first word of "ranlib", so it can be a program name with args.
8081 set dummy ranlib; ac_word=$2
8082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 if test -n "$ac_ct_RANLIB"; then
8088 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_ac_ct_RANLIB="ranlib"
8098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8108 if test -n "$ac_ct_RANLIB"; then
8109 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8110 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8112 { echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6; }
8116 if test "x$ac_ct_RANLIB" = x; then
8119 case $cross_compiling:$ac_tool_warned in
8121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8122 whose name does not start with the host triplet. If you think this
8123 configuration is useful to you, please write to autoconf@gnu.org." >&5
8124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8125 whose name does not start with the host triplet. If you think this
8126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8127 ac_tool_warned=yes ;;
8129 RANLIB=$ac_ct_RANLIB
8132 RANLIB="$ac_cv_prog_RANLIB"
8137 # By default, the Darwin ranlib will not treat common symbols as
8138 # definitions when building the archive table of contents. Other
8139 # ranlibs do that; pass an option to the Darwin ranlib that makes
8140 # it behave similarly.
8148 # Find a good install program. We prefer a C program (faster),
8149 # so one script is as good as another. But avoid the broken or
8150 # incompatible versions:
8151 # SysV /etc/install, /usr/sbin/install
8152 # SunOS /usr/etc/install
8153 # IRIX /sbin/install
8155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8157 # ./install, which can be erroneously created by make from ./install.sh.
8158 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8159 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
8160 if test -z "$INSTALL"; then
8161 if test "${ac_cv_path_install+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8165 for ac_dir in $PATH; do
8166 # Account for people who put trailing slashes in PATH elements.
8168 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8170 # OSF1 and SCO ODT 3.0 have their own names for install.
8171 for ac_prog in ginstall scoinst install; do
8172 if test -f $ac_dir/$ac_prog; then
8173 if test $ac_prog = install &&
8174 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8175 # AIX install. It has an incompatible calling convention.
8176 # OSF/1 installbsd also uses dspmsg, but is usable.
8179 ac_cv_path_install="$ac_dir/$ac_prog -c"
8190 if test "${ac_cv_path_install+set}" = set; then
8191 INSTALL="$ac_cv_path_install"
8193 # As a last resort, use the slow shell script. We don't cache a
8194 # path for INSTALL within a source directory, because that will
8195 # break other packages using the cache if that directory is
8196 # removed, or if the path is relative.
8197 INSTALL="$ac_install_sh"
8200 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8201 echo "${ECHO_T}$INSTALL" >&6; }
8203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8204 # It thinks the first close brace ends the variable substitution.
8205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8210 # See if cmp has --ignore-initial.
8211 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8212 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
8213 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 gcc_cv_prog_cmp_skip=slowcompare
8219 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8220 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8223 gcc_cv_prog_cmp_skip=gnucompare
8226 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8227 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8228 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8231 gcc_cv_prog_cmp_skip=fastcompare
8238 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8239 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
8240 make_compare_target=$gcc_cv_prog_cmp_skip
8244 # See if we have the mktemp command.
8245 # Extract the first word of "mktemp", so it can be a program name with args.
8246 set dummy mktemp; ac_word=$2
8247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8249 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 if test -n "$have_mktemp_command"; then
8253 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_prog_have_mktemp_command="yes"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8273 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8274 if test -n "$have_mktemp_command"; then
8275 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8276 echo "${ECHO_T}$have_mktemp_command" >&6; }
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8284 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8286 # See if makeinfo has been installed and is modern enough
8287 # that we can use it.
8289 ac_executable_extensions="$build_exeext"
8291 # Extract the first word of "makeinfo", so it can be a program name with args.
8292 set dummy makeinfo; ac_word=$2
8293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8295 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 if test -n "$MAKEINFO"; then
8299 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_MAKEINFO="makeinfo"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 MAKEINFO=$ac_cv_prog_MAKEINFO
8319 if test -n "$MAKEINFO"; then
8320 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8321 echo "${ECHO_T}$MAKEINFO" >&6; }
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 if test -n "$MAKEINFO"; then
8329 # Found it, now check the version.
8330 { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8331 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
8332 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 ac_prog_version=`$MAKEINFO --version 2>&1 |
8336 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8337 echo "configure:8337: version of makeinfo is $ac_prog_version" >&5
8338 case $ac_prog_version in
8339 '') gcc_cv_prog_makeinfo_modern=no;;
8341 gcc_cv_prog_makeinfo_modern=yes;;
8342 *) gcc_cv_prog_makeinfo_modern=no;;
8346 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8347 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
8349 gcc_cv_prog_makeinfo_modern=no
8352 if test $gcc_cv_prog_makeinfo_modern = no; then
8353 MAKEINFO="$MISSING makeinfo"
8354 { echo "$as_me:$LINENO: WARNING:
8355 *** Makeinfo is missing or too old.
8356 *** Info documentation will not be built." >&5
8357 echo "$as_me: WARNING:
8358 *** Makeinfo is missing or too old.
8359 *** Info documentation will not be built." >&2;}
8366 # Is pod2man recent enough to regenerate manpages?
8367 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8368 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
8369 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8370 { echo "$as_me:$LINENO: result: yes" >&5
8371 echo "${ECHO_T}yes" >&6; }
8372 GENERATED_MANPAGES=generated-manpages
8374 { echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6; }
8383 # Extract the first word of "$ac_prog", so it can be a program name with args.
8384 set dummy $ac_prog; ac_word=$2
8385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8387 if test "${ac_cv_prog_FLEX+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 if test -n "$FLEX"; then
8391 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_FLEX="$ac_prog"
8401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 FLEX=$ac_cv_prog_FLEX
8411 if test -n "$FLEX"; then
8412 { echo "$as_me:$LINENO: result: $FLEX" >&5
8413 echo "${ECHO_T}$FLEX" >&6; }
8415 { echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6; }
8420 test -n "$FLEX" && break
8422 test -n "$FLEX" || FLEX="$MISSING flex"
8426 for ac_prog in bison
8428 # Extract the first word of "$ac_prog", so it can be a program name with args.
8429 set dummy $ac_prog; ac_word=$2
8430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8432 if test "${ac_cv_prog_BISON+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 if test -n "$BISON"; then
8436 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_BISON="$ac_prog"
8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 BISON=$ac_cv_prog_BISON
8456 if test -n "$BISON"; then
8457 { echo "$as_me:$LINENO: result: $BISON" >&5
8458 echo "${ECHO_T}$BISON" >&6; }
8460 { echo "$as_me:$LINENO: result: no" >&5
8461 echo "${ECHO_T}no" >&6; }
8465 test -n "$BISON" && break
8467 test -n "$BISON" || BISON="$MISSING bison"
8470 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8471 # check for build == host before using them.
8474 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8475 && test -d ../binutils ; then
8476 NM='$(objdir)/../binutils/nm-new'
8478 # Extract the first word of "nm", so it can be a program name with args.
8479 set dummy nm; ac_word=$2
8480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8482 if test "${ac_cv_prog_NM+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 if test -n "$NM"; then
8486 ac_cv_prog_NM="$NM" # Let the user override the test.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8507 if test -n "$NM"; then
8508 { echo "$as_me:$LINENO: result: $NM" >&5
8509 echo "${ECHO_T}$NM" >&6; }
8511 { echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6; }
8519 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8520 && test -d ../binutils ; then
8521 AR='$(objdir)/../binutils/ar'
8523 # Extract the first word of "ar", so it can be a program name with args.
8524 set dummy ar; ac_word=$2
8525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8527 if test "${ac_cv_prog_AR+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 if test -n "$AR"; then
8531 ac_cv_prog_AR="$AR" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8552 if test -n "$AR"; then
8553 { echo "$as_me:$LINENO: result: $AR" >&5
8554 echo "${ECHO_T}$AR" >&6; }
8556 { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8564 # --------------------
8565 # Checks for C headers
8566 # --------------------
8568 { echo "$as_me:$LINENO: checking for GNU C library" >&5
8569 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
8570 if test "${gcc_cv_glibc+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 #include <features.h>
8584 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8585 #error Not a GNU C library system
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8620 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
8621 if test $gcc_cv_glibc = yes; then
8623 cat >>confdefs.h <<\_ACEOF
8624 #define _GNU_SOURCE 1
8629 # Need to reject headers which give warnings, so that the -Werror bootstrap
8630 # works later. *sigh* This needs to come before all header checks.
8632 ac_c_preproc_warn_flag=yes
8634 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8636 if test "${ac_cv_header_stdc+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8658 rm -f conftest.$ac_objext
8659 if { (ac_try="$ac_compile"
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_compile") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest.$ac_objext; then
8675 ac_cv_header_stdc=yes
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 ac_cv_header_stdc=no
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 if test $ac_cv_header_stdc = yes; then
8686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697 $EGREP "memchr" >/dev/null 2>&1; then
8700 ac_cv_header_stdc=no
8706 if test $ac_cv_header_stdc = yes; then
8707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8708 cat >conftest.$ac_ext <<_ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 $EGREP "free" >/dev/null 2>&1; then
8721 ac_cv_header_stdc=no
8727 if test $ac_cv_header_stdc = yes; then
8728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8729 if test "$cross_compiling" = yes; then
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8740 #if ((' ' & 0x0FF) == 0x020)
8741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8744 # define ISLOWER(c) \
8745 (('a' <= (c) && (c) <= 'i') \
8746 || ('j' <= (c) && (c) <= 'r') \
8747 || ('s' <= (c) && (c) <= 'z'))
8748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8756 for (i = 0; i < 256; i++)
8757 if (XOR (islower (i), ISLOWER (i))
8758 || toupper (i) != TOUPPER (i))
8763 rm -f conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_link") 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8785 echo "$as_me: program exited with status $ac_status" >&5
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_header_stdc=no
8792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8798 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8799 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8800 if test $ac_cv_header_stdc = yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define STDC_HEADERS 1
8808 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8809 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8810 if test "${ac_cv_header_time+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <sys/types.h>
8820 #include <sys/time.h>
8826 if ((struct tm *) 0)
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.$ac_objext; then
8849 ac_cv_header_time=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_header_time=no
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8860 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8861 if test $ac_cv_header_time = yes; then
8863 cat >>confdefs.h <<\_ACEOF
8864 #define TIME_WITH_SYS_TIME 1
8869 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8870 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
8871 if test "${gcc_cv_header_string+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 #include <strings.h>
8890 rm -f conftest.$ac_objext
8891 if { (ac_try="$ac_compile"
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 gcc_cv_header_string=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 gcc_cv_header_string=no
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8918 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
8919 if test $gcc_cv_header_string = yes; then
8921 cat >>confdefs.h <<\_ACEOF
8922 #define STRING_WITH_STRINGS 1
8927 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8928 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8929 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 #include <sys/types.h>
8939 #include <sys/wait.h>
8941 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8944 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8957 rm -f conftest.$ac_objext
8958 if { (ac_try="$ac_compile"
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8966 grep -v '^ *+' conftest.er1 >conftest.err
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.$ac_objext; then
8974 ac_cv_header_sys_wait_h=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_cv_header_sys_wait_h=no
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8985 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8986 if test $ac_cv_header_sys_wait_h = yes; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_SYS_WAIT_H 1
9016 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9017 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9018 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9019 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 #include <$ac_header>
9035 if { (ac_try="$ac_cpp conftest.$ac_ext"
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } >/dev/null && {
9048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9051 eval "$as_ac_Header=yes"
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 eval "$as_ac_Header=no"
9059 rm -f conftest.err conftest.$ac_ext
9061 ac_res=`eval echo '${'$as_ac_Header'}'`
9062 { echo "$as_me:$LINENO: result: $ac_res" >&5
9063 echo "${ECHO_T}$ac_res" >&6; }
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 # Check for thread headers.
9074 { echo "$as_me:$LINENO: checking for thread.h" >&5
9075 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
9076 if test "${ac_cv_header_thread_h+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9087 if { (ac_try="$ac_cpp conftest.$ac_ext"
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null && {
9100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9103 ac_cv_header_thread_h=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ac_cv_header_thread_h=no
9111 rm -f conftest.err conftest.$ac_ext
9113 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9114 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
9115 if test $ac_cv_header_thread_h = yes; then
9121 { echo "$as_me:$LINENO: checking for pthread.h" >&5
9122 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
9123 if test "${ac_cv_header_pthread_h+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <pthread.h>
9134 if { (ac_try="$ac_cpp conftest.$ac_ext"
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9142 grep -v '^ *+' conftest.er1 >conftest.err
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } >/dev/null && {
9147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9150 ac_cv_header_pthread_h=yes
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_cv_header_pthread_h=no
9158 rm -f conftest.err conftest.$ac_ext
9160 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9161 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
9162 if test $ac_cv_header_pthread_h = yes; then
9169 # These tests can't be done till we know if we have limits.h.
9170 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9171 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
9172 if test "${gcc_cv_decl_char_bit+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 #ifdef HAVE_LIMITS_H
9188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189 $EGREP "found" >/dev/null 2>&1; then
9190 gcc_cv_decl_char_bit=yes
9192 gcc_cv_decl_char_bit=no
9198 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9199 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
9200 if test $gcc_cv_decl_char_bit = no; then
9201 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9202 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
9203 if test "${gcc_cv_c_nbby+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 while test $i -lt 65; do
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9220 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9221 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9227 rm -f conftest.$ac_objext
9228 if { (ac_try="$ac_compile"
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 gcc_cv_c_nbby=$i; break
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9258 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9259 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
9260 if test $gcc_cv_c_nbby = failed; then
9261 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9262 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9263 { (exit 1); exit 1; }; }
9266 cat >>confdefs.h <<_ACEOF
9267 #define CHAR_BIT $gcc_cv_c_nbby
9272 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9273 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9274 if test "${ac_cv_c_bigendian+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 # See if sys/param.h defines the BYTE_ORDER macro.
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <sys/types.h>
9285 #include <sys/param.h>
9290 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9291 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9299 rm -f conftest.$ac_objext
9300 if { (ac_try="$ac_compile"
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_compile") 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && {
9313 test -z "$ac_c_werror_flag" ||
9314 test ! -s conftest.err
9315 } && test -s conftest.$ac_objext; then
9316 # It does; now see whether it defined to BIG_ENDIAN or not.
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 #include <sys/types.h>
9324 #include <sys/param.h>
9329 #if BYTE_ORDER != BIG_ENDIAN
9337 rm -f conftest.$ac_objext
9338 if { (ac_try="$ac_compile"
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_compile") 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_c_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest.$ac_objext; then
9354 ac_cv_c_bigendian=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 ac_cv_c_bigendian=no
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 # It does not; compile a test program.
9368 if test "$cross_compiling" = yes; then
9369 # try to guess the endianness by grepping values into an object file
9370 ac_cv_c_bigendian=unknown
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9378 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9379 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9380 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9381 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9382 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9386 _ascii (); _ebcdic ();
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9408 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9409 ac_cv_c_bigendian=yes
9411 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9412 if test "$ac_cv_c_bigendian" = unknown; then
9413 ac_cv_c_bigendian=no
9415 # finding both strings is unlikely to happen, but who knows?
9416 ac_cv_c_bigendian=unknown
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 $ac_includes_default
9439 /* Are we little or big endian? From Harbison&Steele. */
9443 char c[sizeof (long int)];
9446 return u.c[sizeof (long int) - 1] == 1;
9452 rm -f conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_link") 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9463 { (case "(($ac_try" in
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_try") 2>&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 ac_cv_c_bigendian=no
9474 echo "$as_me: program exited with status $ac_status" >&5
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_c_bigendian=yes
9481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9490 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9491 case $ac_cv_c_bigendian in
9494 cat >>confdefs.h <<\_ACEOF
9495 #define WORDS_BIGENDIAN 1
9501 { { echo "$as_me:$LINENO: error: unknown endianness
9502 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9503 echo "$as_me: error: unknown endianness
9504 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9505 { (exit 1); exit 1; }; } ;;
9514 # These libraries may be used by collect2.
9515 # We may need a special search path to get them linked.
9516 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9517 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
9518 if test "${gcc_cv_collect2_libs+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 for libs in '' -lld -lmld \
9523 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9524 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest$ac_exeext &&
9566 $as_test_x conftest$ac_exeext; then
9567 gcc_cv_collect2_libs="$libs"; break
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576 conftest$ac_exeext conftest.$ac_ext
9579 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9581 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9582 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
9583 case $gcc_cv_collect2_libs in
9585 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9589 # When building Ada code on Alpha, we need exc_resume which is usually in
9590 # -lexc. So test for it.
9593 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9594 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
9595 if test "${ac_cv_search_exc_resume+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 ac_func_search_save_LIBS=$LIBS
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9616 return exc_resume ();
9621 for ac_lib in '' exc; do
9622 if test -z "$ac_lib"; then
9623 ac_res="none required"
9626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest$ac_exeext &&
9645 $as_test_x conftest$ac_exeext; then
9646 ac_cv_search_exc_resume=$ac_res
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656 if test "${ac_cv_search_exc_resume+set}" = set; then
9660 if test "${ac_cv_search_exc_resume+set}" = set; then
9663 ac_cv_search_exc_resume=no
9666 LIBS=$ac_func_search_save_LIBS
9668 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9669 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
9670 ac_res=$ac_cv_search_exc_resume
9671 if test "$ac_res" != no; then
9672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9680 # Some systems put ldexp and frexp in libm instead of libc; assume
9681 # they're both in the same place. jcf-dump needs them.
9684 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9685 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
9686 if test "${ac_cv_search_ldexp+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_func_search_save_LIBS=$LIBS
9690 cat >conftest.$ac_ext <<_ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9712 for ac_lib in '' m; do
9713 if test -z "$ac_lib"; then
9714 ac_res="none required"
9717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_search_ldexp=$ac_res
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 if test "${ac_cv_search_ldexp+set}" = set; then
9751 if test "${ac_cv_search_ldexp+set}" = set; then
9754 ac_cv_search_ldexp=no
9757 LIBS=$ac_func_search_save_LIBS
9759 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9760 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
9761 ac_res=$ac_cv_search_ldexp
9762 if test "$ac_res" != no; then
9763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9771 # Use <inttypes.h> only if it exists,
9772 # doesn't clash with <sys/types.h>, and declares intmax_t.
9773 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9774 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9775 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 #include <sys/types.h>
9785 #include <inttypes.h>
9794 rm -f conftest.$ac_objext
9795 if { (ac_try="$ac_compile"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_compile") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest.$ac_objext; then
9811 gcc_cv_header_inttypes_h=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 gcc_cv_header_inttypes_h=no
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9823 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
9824 if test $gcc_cv_header_inttypes_h = yes; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_INTTYPES_H 1
9869 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9870 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9871 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9872 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
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9896 # include <limits.h>
9898 # include <assert.h>
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 eval "$as_ac_var=yes"
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 eval "$as_ac_var=no"
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9966 if test x$ac_cv_func_mbstowcs = xyes; then
9967 { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9968 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
9969 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 if test "$cross_compiling" = yes; then
9973 gcc_cv_func_mbstowcs_works=yes
9975 cat >conftest.$ac_ext <<_ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9988 rm -f conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_link") 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 gcc_cv_func_mbstowcs_works=yes
10010 echo "$as_me: program exited with status $ac_status" >&5
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ( exit $ac_status )
10015 gcc_cv_func_mbstowcs_works=no
10017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10022 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10023 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
10024 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10026 cat >>confdefs.h <<\_ACEOF
10027 #define HAVE_WORKING_MBSTOWCS 1
10033 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10034 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10035 if test "${ac_cv_type_ssize_t+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 $ac_includes_default
10045 typedef ssize_t ac__type_new_;
10049 if ((ac__type_new_ *) 0)
10051 if (sizeof (ac__type_new_))
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 ac_cv_type_ssize_t=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_type_ssize_t=no
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10085 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10086 if test $ac_cv_type_ssize_t = yes; then
10090 cat >>confdefs.h <<_ACEOF
10091 #define ssize_t int
10097 # Try to determine the array type of the second argument of getgroups
10098 # for the target system (int or gid_t).
10099 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10100 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10101 if test "${ac_cv_type_uid_t+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 #include <sys/types.h>
10113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10114 $EGREP "uid_t" >/dev/null 2>&1; then
10115 ac_cv_type_uid_t=yes
10117 ac_cv_type_uid_t=no
10122 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10123 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10124 if test $ac_cv_type_uid_t = no; then
10126 cat >>confdefs.h <<\_ACEOF
10131 cat >>confdefs.h <<\_ACEOF
10137 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10138 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
10139 if test "${ac_cv_type_getgroups+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 if test "$cross_compiling" = yes; then
10143 ac_cv_type_getgroups=cross
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Thanks to Mike Rendell for this test. */
10152 $ac_includes_default
10155 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10160 gid_t gidset[NGID];
10162 union { gid_t gval; long int lval; } val;
10165 for (i = 0; i < NGID; i++)
10166 gidset[i] = val.gval;
10167 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10169 /* Exit non-zero if getgroups seems to require an array of ints. This
10170 happens when gid_t is short int but getgroups modifies an array
10172 return n > 0 && gidset[n] != val.gval;
10175 rm -f conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_type_getgroups=gid_t
10197 echo "$as_me: program exited with status $ac_status" >&5
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ( exit $ac_status )
10202 ac_cv_type_getgroups=int
10204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10208 if test $ac_cv_type_getgroups = cross; then
10209 cat >conftest.$ac_ext <<_ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 #include <unistd.h>
10218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10219 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10220 ac_cv_type_getgroups=gid_t
10222 ac_cv_type_getgroups=int
10228 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10229 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
10231 cat >>confdefs.h <<_ACEOF
10232 #define GETGROUPS_T $ac_cv_type_getgroups
10236 if test "${target}" = "${build}"; then
10237 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10239 case "${target}" in
10240 # This condition may need some tweaking. It should include all
10241 # targets where the array type of the second argument of getgroups
10242 # is int and the type of gid_t is not equivalent to int.
10243 *-*-sunos* | *-*-ultrix*)
10244 TARGET_GETGROUPS_T=int
10247 TARGET_GETGROUPS_T=gid_t
10254 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10255 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
10256 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 #include <sys/mman.h>
10267 if { (ac_try="$ac_cpp conftest.$ac_ext"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } >/dev/null && {
10280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10281 test ! -s conftest.err
10283 ac_cv_header_sys_mman_h=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ac_cv_header_sys_mman_h=no
10291 rm -f conftest.err conftest.$ac_ext
10293 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10294 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
10295 if test $ac_cv_header_sys_mman_h = yes; then
10296 gcc_header_sys_mman_h=yes
10298 gcc_header_sys_mman_h=no
10301 { echo "$as_me:$LINENO: checking for mmap" >&5
10302 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
10303 if test "${ac_cv_func_mmap+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10314 #define mmap innocuous_mmap
10316 /* System header to define __stub macros and hopefully few prototypes,
10317 which can conflict with char mmap (); below.
10318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10319 <limits.h> exists even on freestanding compilers. */
10322 # include <limits.h>
10324 # include <assert.h>
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10336 /* The GNU C library defines this for functions which it implements
10337 to always fail with ENOSYS. Some functions are actually named
10338 something starting with __ and the normal name is an alias. */
10339 #if defined __stub_mmap || defined __stub___mmap
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest$ac_exeext &&
10368 $as_test_x conftest$ac_exeext; then
10369 ac_cv_func_mmap=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378 conftest$ac_exeext conftest.$ac_ext
10380 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10381 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
10382 if test $ac_cv_func_mmap = yes; then
10388 if test "$gcc_header_sys_mman_h" != yes \
10389 || test "$gcc_func_mmap" != yes; then
10390 gcc_cv_func_mmap_file=no
10391 gcc_cv_func_mmap_dev_zero=no
10392 gcc_cv_func_mmap_anon=no
10394 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10395 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
10396 if test "${gcc_cv_func_mmap_file+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 # Add a system to this blacklist if
10400 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10401 # memory area containing the same data that you'd get if you applied
10402 # read() to the same fd. The only system known to have a problem here
10403 # is VMS, where text files have record structure.
10406 gcc_cv_func_mmap_file=no ;;
10408 gcc_cv_func_mmap_file=yes;;
10411 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10412 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
10413 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10414 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
10415 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 # Add a system to this blacklist if it has mmap() but /dev/zero
10419 # does not exist, or if mmapping /dev/zero does not give anonymous
10420 # zeroed pages with both the following properties:
10421 # 1. If you map N consecutive pages in with one call, and then
10422 # unmap any subset of those pages, the pages that were not
10423 # explicitly unmapped remain accessible.
10424 # 2. If you map two adjacent blocks of memory and then unmap them
10425 # both at once, they must both go away.
10426 # Systems known to be in this category are Windows (all variants),
10429 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10430 gcc_cv_func_mmap_dev_zero=no ;;
10432 gcc_cv_func_mmap_dev_zero=yes;;
10435 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10436 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
10438 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10439 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10440 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
10441 if test "${gcc_cv_decl_map_anon+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 #include <sys/types.h>
10451 #include <sys/mman.h>
10452 #include <unistd.h>
10454 #ifndef MAP_ANONYMOUS
10455 #define MAP_ANONYMOUS MAP_ANON
10461 int n = MAP_ANONYMOUS;
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_compile") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest.$ac_objext; then
10483 gcc_cv_decl_map_anon=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 gcc_cv_decl_map_anon=no
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10494 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
10496 if test $gcc_cv_decl_map_anon = no; then
10497 gcc_cv_func_mmap_anon=no
10499 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10500 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
10501 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10505 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10506 # doesn't give anonymous zeroed pages with the same properties listed
10507 # above for use of /dev/zero.
10508 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10510 vms* | cygwin* | pe | mingw* | sco* | udk* )
10511 gcc_cv_func_mmap_anon=no ;;
10513 gcc_cv_func_mmap_anon=yes;;
10516 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10517 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
10521 if test $gcc_cv_func_mmap_file = yes; then
10523 cat >>confdefs.h <<\_ACEOF
10524 #define HAVE_MMAP_FILE 1
10528 if test $gcc_cv_func_mmap_dev_zero = yes; then
10530 cat >>confdefs.h <<\_ACEOF
10531 #define HAVE_MMAP_DEV_ZERO 1
10535 if test $gcc_cv_func_mmap_anon = yes; then
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_MMAP_ANON 1
10546 # Under VMS, vfork works very differently than on Unix. The standard test
10547 # won't work, and it isn't easily adaptable. It makes more sense to
10549 ac_cv_func_vfork_works=yes
10552 { echo "$as_me:$LINENO: checking for pid_t" >&5
10553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10554 if test "${ac_cv_type_pid_t+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 $ac_includes_default
10564 typedef pid_t ac__type_new_;
10568 if ((ac__type_new_ *) 0)
10570 if (sizeof (ac__type_new_))
10576 rm -f conftest.$ac_objext
10577 if { (ac_try="$ac_compile"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10585 grep -v '^ *+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_cv_type_pid_t=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_type_pid_t=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10604 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10605 if test $ac_cv_type_pid_t = yes; then
10609 cat >>confdefs.h <<_ACEOF
10616 for ac_header in vfork.h
10618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 #include <$ac_header>
10632 if { (ac_try="$ac_cpp conftest.$ac_ext"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } >/dev/null && {
10645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10648 eval "$as_ac_Header=yes"
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 eval "$as_ac_Header=no"
10656 rm -f conftest.err conftest.$ac_ext
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 for ac_func in fork vfork
10673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10687 #define $ac_func innocuous_$ac_func
10689 /* System header to define __stub macros and hopefully few prototypes,
10690 which can conflict with char $ac_func (); below.
10691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10692 <limits.h> exists even on freestanding compilers. */
10695 # include <limits.h>
10697 # include <assert.h>
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10709 /* The GNU C library defines this for functions which it implements
10710 to always fail with ENOSYS. Some functions are actually named
10711 something starting with __ and the normal name is an alias. */
10712 #if defined __stub_$ac_func || defined __stub___$ac_func
10719 return $ac_func ();
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_link") 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext &&
10741 $as_test_x conftest$ac_exeext; then
10742 eval "$as_ac_var=yes"
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 eval "$as_ac_var=no"
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751 conftest$ac_exeext conftest.$ac_ext
10753 ac_res=`eval echo '${'$as_ac_var'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10756 if test `eval echo '${'$as_ac_var'}'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10764 if test "x$ac_cv_func_fork" = xyes; then
10765 { echo "$as_me:$LINENO: checking for working fork" >&5
10766 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10767 if test "${ac_cv_func_fork_works+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 if test "$cross_compiling" = yes; then
10771 ac_cv_func_fork_works=cross
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10784 /* By Ruediger Kuhlmann. */
10785 return fork () < 0;
10791 rm -f conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_link") 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_func_fork_works=yes
10813 echo "$as_me: program exited with status $ac_status" >&5
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 ( exit $ac_status )
10818 ac_cv_func_fork_works=no
10820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10826 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10829 ac_cv_func_fork_works=$ac_cv_func_fork
10831 if test "x$ac_cv_func_fork_works" = xcross; then
10833 *-*-amigaos* | *-*-msdosdjgpp*)
10834 # Override, as these systems have only a dummy fork() stub
10835 ac_cv_func_fork_works=no
10838 ac_cv_func_fork_works=yes
10841 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10842 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10844 ac_cv_func_vfork_works=$ac_cv_func_vfork
10845 if test "x$ac_cv_func_vfork" = xyes; then
10846 { echo "$as_me:$LINENO: checking for working vfork" >&5
10847 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10848 if test "${ac_cv_func_vfork_works+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 if test "$cross_compiling" = yes; then
10852 ac_cv_func_vfork_works=cross
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 /* Thanks to Paul Eggert for this test. */
10861 $ac_includes_default
10862 #include <sys/wait.h>
10863 #ifdef HAVE_VFORK_H
10864 # include <vfork.h>
10866 /* On some sparc systems, changes by the child to local and incoming
10867 argument registers are propagated back to the parent. The compiler
10868 is told about this with #include <vfork.h>, but some compilers
10869 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10870 static variable whose address is put into a register that is
10871 clobbered by the vfork. */
10874 sparc_address_test (int arg)
10876 sparc_address_test (arg) int arg;
10879 static pid_t child;
10897 pid_t parent = getpid ();
10900 sparc_address_test (0);
10905 /* Here is another test for sparc vfork register problems. This
10906 test uses lots of local variables, at least as many local
10907 variables as main has allocated so far including compiler
10908 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10909 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10910 reuse the register of parent for one of the local variables,
10911 since it will think that parent can't possibly be used any more
10912 in this routine. Assigning to the local variable will thus
10913 munge parent in the parent process. */
10915 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10916 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10917 /* Convince the compiler that p..p7 are live; otherwise, it might
10918 use the same hardware register for all 8 local variables. */
10919 if (p != p1 || p != p2 || p != p3 || p != p4
10920 || p != p5 || p != p6 || p != p7)
10923 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10924 from child file descriptors. If the child closes a descriptor
10925 before it execs or exits, this munges the parent's descriptor
10926 as well. Test for this by closing stdout in the child. */
10927 _exit(close(fileno(stdout)) != 0);
10932 while (wait(&status) != child)
10935 /* Was there some problem with vforking? */
10938 /* Did the child fail? (This shouldn't happen.) */
10941 /* Did the vfork/compiler bug occur? */
10942 || parent != getpid()
10944 /* Did the file descriptor bug occur? */
10945 || fstat(fileno(stdout), &st) != 0
10950 rm -f conftest$ac_exeext
10951 if { (ac_try="$ac_link"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_link") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_func_vfork_works=yes
10972 echo "$as_me: program exited with status $ac_status" >&5
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ( exit $ac_status )
10977 ac_cv_func_vfork_works=no
10979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10984 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10985 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10988 if test "x$ac_cv_func_fork_works" = xcross; then
10989 ac_cv_func_vfork_works=$ac_cv_func_vfork
10990 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10991 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10994 if test "x$ac_cv_func_vfork_works" = xyes; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_WORKING_VFORK 1
11002 cat >>confdefs.h <<\_ACEOF
11007 if test "x$ac_cv_func_fork_works" = xyes; then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_WORKING_FORK 1
11017 if test "X$prefix" = "XNONE"; then
11018 acl_final_prefix="$ac_default_prefix"
11020 acl_final_prefix="$prefix"
11022 if test "X$exec_prefix" = "XNONE"; then
11023 acl_final_exec_prefix='${prefix}'
11025 acl_final_exec_prefix="$exec_prefix"
11027 acl_save_prefix="$prefix"
11028 prefix="$acl_final_prefix"
11029 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11030 prefix="$acl_save_prefix"
11033 # Check whether --with-gnu-ld was given.
11034 if test "${with_gnu_ld+set}" = set; then
11035 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11040 # Prepare PATH_SEPARATOR.
11041 # The user is always right.
11042 if test "${PATH_SEPARATOR+set}" != set; then
11043 echo "#! /bin/sh" >conf$$.sh
11044 echo "exit 0" >>conf$$.sh
11046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11054 if test "$GCC" = yes; then
11055 # Check if gcc -print-prog-name=ld gives a path.
11056 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11057 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11060 # gcc leaves a trailing carriage return which upsets mingw
11061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11066 # Accept absolute paths.
11067 [\\/]* | [A-Za-z]:[\\/]*)
11068 re_direlt='/[^/][^/]*/\.\./'
11069 # Canonicalize the path of ld
11070 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11071 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11072 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11074 test -z "$LD" && LD="$ac_prog"
11077 # If it fails, then pretend we aren't using GCC.
11081 # If it is relative, then search for the first ld in PATH.
11082 with_gnu_ld=unknown
11085 elif test "$with_gnu_ld" = yes; then
11086 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11087 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11089 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11090 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11092 if test "${acl_cv_path_LD+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 if test -z "$LD"; then
11096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11097 for ac_dir in $PATH; do
11098 test -z "$ac_dir" && ac_dir=.
11099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11100 acl_cv_path_LD="$ac_dir/$ac_prog"
11101 # Check to see if the program is GNU ld. I'd rather use --version,
11102 # but apparently some GNU ld's only accept -v.
11103 # Break only if it was the GNU/non-GNU ld that we prefer.
11104 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11105 test "$with_gnu_ld" != no && break
11107 test "$with_gnu_ld" != yes && break
11113 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11117 LD="$acl_cv_path_LD"
11118 if test -n "$LD"; then
11119 { echo "$as_me:$LINENO: result: $LD" >&5
11120 echo "${ECHO_T}$LD" >&6; }
11122 { echo "$as_me:$LINENO: result: no" >&5
11123 echo "${ECHO_T}no" >&6; }
11125 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11126 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11127 { (exit 1); exit 1; }; }
11128 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11129 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11130 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11134 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11135 acl_cv_prog_gnu_ld=yes
11137 acl_cv_prog_gnu_ld=no
11140 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11141 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11142 with_gnu_ld=$acl_cv_prog_gnu_ld
11146 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11147 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11148 if test "${acl_cv_rpath+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11153 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11155 rm -f ./conftest.sh
11159 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11160 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11162 libext="$acl_cv_libext"
11163 shlibext="$acl_cv_shlibext"
11164 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11165 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11166 hardcode_direct="$acl_cv_hardcode_direct"
11167 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11168 # Check whether --enable-rpath was given.
11169 if test "${enable_rpath+set}" = set; then
11170 enableval=$enable_rpath; :
11184 acl_save_prefix="$prefix"
11185 prefix="$acl_final_prefix"
11186 acl_save_exec_prefix="$exec_prefix"
11187 exec_prefix="$acl_final_exec_prefix"
11189 eval additional_includedir=\"$includedir\"
11190 eval additional_libdir=\"$libdir\"
11192 exec_prefix="$acl_save_exec_prefix"
11193 prefix="$acl_save_prefix"
11196 # Check whether --with-libiconv-prefix was given.
11197 if test "${with_libiconv_prefix+set}" = set; then
11198 withval=$with_libiconv_prefix;
11199 if test "X$withval" = "Xno"; then
11202 if test "X$withval" = "X"; then
11204 acl_save_prefix="$prefix"
11205 prefix="$acl_final_prefix"
11206 acl_save_exec_prefix="$exec_prefix"
11207 exec_prefix="$acl_final_exec_prefix"
11209 eval additional_includedir=\"$includedir\"
11210 eval additional_libdir=\"$libdir\"
11212 exec_prefix="$acl_save_exec_prefix"
11213 prefix="$acl_save_prefix"
11216 additional_includedir="$withval/include"
11217 additional_libdir="$withval/lib"
11228 names_already_handled=
11229 names_next_round='iconv '
11230 while test -n "$names_next_round"; do
11231 names_this_round="$names_next_round"
11233 for name in $names_this_round; do
11235 for n in $names_already_handled; do
11236 if test "$n" = "$name"; then
11237 already_handled=yes
11241 if test -z "$already_handled"; then
11242 names_already_handled="$names_already_handled $name"
11243 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11244 eval value=\"\$HAVE_LIB$uppername\"
11245 if test -n "$value"; then
11246 if test "$value" = yes; then
11247 eval value=\"\$LIB$uppername\"
11248 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11249 eval value=\"\$LTLIB$uppername\"
11250 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11259 if test $use_additional = yes; then
11260 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11261 found_dir="$additional_libdir"
11262 found_so="$additional_libdir/lib$name.$shlibext"
11263 if test -f "$additional_libdir/lib$name.la"; then
11264 found_la="$additional_libdir/lib$name.la"
11267 if test -f "$additional_libdir/lib$name.$libext"; then
11268 found_dir="$additional_libdir"
11269 found_a="$additional_libdir/lib$name.$libext"
11270 if test -f "$additional_libdir/lib$name.la"; then
11271 found_la="$additional_libdir/lib$name.la"
11276 if test "X$found_dir" = "X"; then
11277 for x in $LDFLAGS $LTLIBICONV; do
11279 acl_save_prefix="$prefix"
11280 prefix="$acl_final_prefix"
11281 acl_save_exec_prefix="$exec_prefix"
11282 exec_prefix="$acl_final_exec_prefix"
11284 exec_prefix="$acl_save_exec_prefix"
11285 prefix="$acl_save_prefix"
11289 dir=`echo "X$x" | sed -e 's/^X-L//'`
11290 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11292 found_so="$dir/lib$name.$shlibext"
11293 if test -f "$dir/lib$name.la"; then
11294 found_la="$dir/lib$name.la"
11297 if test -f "$dir/lib$name.$libext"; then
11299 found_a="$dir/lib$name.$libext"
11300 if test -f "$dir/lib$name.la"; then
11301 found_la="$dir/lib$name.la"
11307 if test "X$found_dir" != "X"; then
11312 if test "X$found_dir" != "X"; then
11313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11314 if test "X$found_so" != "X"; then
11315 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11316 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11319 for x in $ltrpathdirs; do
11320 if test "X$x" = "X$found_dir"; then
11325 if test -z "$haveit"; then
11326 ltrpathdirs="$ltrpathdirs $found_dir"
11328 if test "$hardcode_direct" = yes; then
11329 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11331 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11332 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11334 for x in $rpathdirs; do
11335 if test "X$x" = "X$found_dir"; then
11340 if test -z "$haveit"; then
11341 rpathdirs="$rpathdirs $found_dir"
11345 for x in $LDFLAGS $LIBICONV; do
11347 acl_save_prefix="$prefix"
11348 prefix="$acl_final_prefix"
11349 acl_save_exec_prefix="$exec_prefix"
11350 exec_prefix="$acl_final_exec_prefix"
11352 exec_prefix="$acl_save_exec_prefix"
11353 prefix="$acl_save_prefix"
11355 if test "X$x" = "X-L$found_dir"; then
11360 if test -z "$haveit"; then
11361 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11363 if test "$hardcode_minus_L" != no; then
11364 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11366 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11372 if test "X$found_a" != "X"; then
11373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11375 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11378 additional_includedir=
11379 case "$found_dir" in
11381 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11382 additional_includedir="$basedir/include"
11385 if test "X$additional_includedir" != "X"; then
11386 if test "X$additional_includedir" != "X/usr/include"; then
11388 if test "X$additional_includedir" = "X/usr/local/include"; then
11389 if test -n "$GCC"; then
11391 linux*) haveit=yes;;
11395 if test -z "$haveit"; then
11396 for x in $CPPFLAGS $INCICONV; do
11398 acl_save_prefix="$prefix"
11399 prefix="$acl_final_prefix"
11400 acl_save_exec_prefix="$exec_prefix"
11401 exec_prefix="$acl_final_exec_prefix"
11403 exec_prefix="$acl_save_exec_prefix"
11404 prefix="$acl_save_prefix"
11406 if test "X$x" = "X-I$additional_includedir"; then
11411 if test -z "$haveit"; then
11412 if test -d "$additional_includedir"; then
11413 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11419 if test -n "$found_la"; then
11420 save_libdir="$libdir"
11421 case "$found_la" in
11422 */* | *\\*) . "$found_la" ;;
11423 *) . "./$found_la" ;;
11425 libdir="$save_libdir"
11426 for dep in $dependency_libs; do
11429 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11430 if test "X$additional_libdir" != "X/usr/lib"; then
11432 if test "X$additional_libdir" = "X/usr/local/lib"; then
11433 if test -n "$GCC"; then
11435 linux*) haveit=yes;;
11439 if test -z "$haveit"; then
11441 for x in $LDFLAGS $LIBICONV; do
11443 acl_save_prefix="$prefix"
11444 prefix="$acl_final_prefix"
11445 acl_save_exec_prefix="$exec_prefix"
11446 exec_prefix="$acl_final_exec_prefix"
11448 exec_prefix="$acl_save_exec_prefix"
11449 prefix="$acl_save_prefix"
11451 if test "X$x" = "X-L$additional_libdir"; then
11456 if test -z "$haveit"; then
11457 if test -d "$additional_libdir"; then
11458 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11462 for x in $LDFLAGS $LTLIBICONV; do
11464 acl_save_prefix="$prefix"
11465 prefix="$acl_final_prefix"
11466 acl_save_exec_prefix="$exec_prefix"
11467 exec_prefix="$acl_final_exec_prefix"
11469 exec_prefix="$acl_save_exec_prefix"
11470 prefix="$acl_save_prefix"
11472 if test "X$x" = "X-L$additional_libdir"; then
11477 if test -z "$haveit"; then
11478 if test -d "$additional_libdir"; then
11479 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11486 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11487 if test "$enable_rpath" != no; then
11489 for x in $rpathdirs; do
11490 if test "X$x" = "X$dir"; then
11495 if test -z "$haveit"; then
11496 rpathdirs="$rpathdirs $dir"
11499 for x in $ltrpathdirs; do
11500 if test "X$x" = "X$dir"; then
11505 if test -z "$haveit"; then
11506 ltrpathdirs="$ltrpathdirs $dir"
11511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11514 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11517 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11524 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11531 if test "X$rpathdirs" != "X"; then
11532 if test -n "$hardcode_libdir_separator"; then
11534 for found_dir in $rpathdirs; do
11535 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11537 acl_save_libdir="$libdir"
11539 eval flag=\"$hardcode_libdir_flag_spec\"
11540 libdir="$acl_save_libdir"
11541 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11543 for found_dir in $rpathdirs; do
11544 acl_save_libdir="$libdir"
11545 libdir="$found_dir"
11546 eval flag=\"$hardcode_libdir_flag_spec\"
11547 libdir="$acl_save_libdir"
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11552 if test "X$ltrpathdirs" != "X"; then
11553 for found_dir in $ltrpathdirs; do
11554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11564 am_save_CPPFLAGS="$CPPFLAGS"
11566 for element in $INCICONV; do
11568 for x in $CPPFLAGS; do
11570 acl_save_prefix="$prefix"
11571 prefix="$acl_final_prefix"
11572 acl_save_exec_prefix="$exec_prefix"
11573 exec_prefix="$acl_final_exec_prefix"
11575 exec_prefix="$acl_save_exec_prefix"
11576 prefix="$acl_save_prefix"
11578 if test "X$x" = "X$element"; then
11583 if test -z "$haveit"; then
11584 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11589 { echo "$as_me:$LINENO: checking for iconv" >&5
11590 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11591 if test "${am_cv_func_iconv+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 am_cv_func_iconv="no, consider installing GNU libiconv"
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <stdlib.h>
11608 iconv_t cd = iconv_open("","");
11609 iconv(cd,NULL,NULL,NULL,NULL);
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633 am_cv_func_iconv=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642 conftest$ac_exeext conftest.$ac_ext
11643 if test "$am_cv_func_iconv" != yes; then
11644 am_save_LIBS="$LIBS"
11645 LIBS="$LIBS $LIBICONV"
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <stdlib.h>
11657 iconv_t cd = iconv_open("","");
11658 iconv(cd,NULL,NULL,NULL,NULL);
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_link") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && {
11678 test -z "$ac_c_werror_flag" ||
11679 test ! -s conftest.err
11680 } && test -s conftest$ac_exeext &&
11681 $as_test_x conftest$ac_exeext; then
11682 am_cv_lib_iconv=yes
11683 am_cv_func_iconv=yes
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS="$am_save_LIBS"
11697 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11698 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11699 if test "$am_cv_func_iconv" = yes; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_ICONV 1
11706 if test "$am_cv_lib_iconv" = yes; then
11707 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11708 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11709 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11710 echo "${ECHO_T}$LIBICONV" >&6; }
11712 CPPFLAGS="$am_save_CPPFLAGS"
11719 if test "$am_cv_func_iconv" = yes; then
11720 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11721 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11722 if test "${am_cv_proto_iconv+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 #include <stdlib.h>
11739 #if defined(__STDC__) || defined(__cplusplus)
11740 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_compile") 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } && {
11767 test -z "$ac_c_werror_flag" ||
11768 test ! -s conftest.err
11769 } && test -s conftest.$ac_objext; then
11770 am_cv_proto_iconv_arg1=""
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 am_cv_proto_iconv_arg1="const"
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 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);"
11782 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11783 { echo "$as_me:$LINENO: result: ${ac_t:-
11784 }$am_cv_proto_iconv" >&5
11785 echo "${ECHO_T}${ac_t:-
11786 }$am_cv_proto_iconv" >&6; }
11788 cat >>confdefs.h <<_ACEOF
11789 #define ICONV_CONST $am_cv_proto_iconv_arg1
11794 # Until we have in-tree GNU iconv:
11799 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11800 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11801 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <locale.h>
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest$ac_exeext &&
11836 $as_test_x conftest$ac_exeext; then
11837 am_cv_val_LC_MESSAGES=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 am_cv_val_LC_MESSAGES=no
11845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11846 conftest$ac_exeext conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11849 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11850 if test $am_cv_val_LC_MESSAGES = yes; then
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_LC_MESSAGES 1
11860 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11861 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11862 if test "${am_cv_langinfo_codeset+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <langinfo.h>
11875 char* cs = nl_langinfo(CODESET);
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_link") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest$ac_exeext &&
11897 $as_test_x conftest$ac_exeext; then
11898 am_cv_langinfo_codeset=yes
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 am_cv_langinfo_codeset=no
11906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11907 conftest$ac_exeext conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11911 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11912 if test $am_cv_langinfo_codeset = yes; then
11914 cat >>confdefs.h <<\_ACEOF
11915 #define HAVE_LANGINFO_CODESET 1
11921 # We will need to find libiberty.h and ansidecl.h
11922 saved_CFLAGS="$CFLAGS"
11923 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11963 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11964 strsignal strstr strverscmp \
11965 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11966 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
11968 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11969 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11970 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
11971 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11981 #define $ac_tr_decl 1
11983 #include "ansidecl.h"
11984 #include "system.h"
11990 char *(*pfn) = (char *(*)) $ac_func ;
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } && {
12010 test -z "$ac_c_werror_flag" ||
12011 test ! -s conftest.err
12012 } && test -s conftest.$ac_objext; then
12013 eval "gcc_cv_have_decl_$ac_func=yes"
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 eval "gcc_cv_have_decl_$ac_func=no"
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12025 { echo "$as_me:$LINENO: result: yes" >&5
12026 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12027 #define $ac_tr_decl 1
12031 { echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12033 #define $ac_tr_decl 0
12044 for ac_func in getrlimit setrlimit getrusage
12046 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12047 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12048 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12049 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 #define $ac_tr_decl 1
12061 #include "ansidecl.h"
12062 #include "system.h"
12063 #ifdef HAVE_SYS_RESOURCE_H
12064 #include <sys/resource.h>
12072 char *(*pfn) = (char *(*)) $ac_func ;
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
12095 eval "gcc_cv_have_decl_$ac_func=yes"
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 eval "gcc_cv_have_decl_$ac_func=no"
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12107 { echo "$as_me:$LINENO: result: yes" >&5
12108 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12109 #define $ac_tr_decl 1
12113 { echo "$as_me:$LINENO: result: no" >&5
12114 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12115 #define $ac_tr_decl 0
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12130 #include "ansidecl.h"
12131 #include "system.h"
12132 #ifdef HAVE_SYS_RESOURCE_H
12133 #include <sys/resource.h>
12144 rm -f conftest.$ac_objext
12145 if { (ac_try="$ac_compile"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_compile") 2>conftest.er1
12153 grep -v '^ *+' conftest.er1 >conftest.err
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && {
12158 test -z "$ac_c_werror_flag" ||
12159 test ! -s conftest.err
12160 } && test -s conftest.$ac_objext; then
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12167 cat >>confdefs.h <<\_ACEOF
12168 #define rlim_t long
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12176 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12177 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12178 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12180 for ac_func in ldgetname
12182 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12183 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12184 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12185 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12195 #define $ac_tr_decl 1
12197 #include "ansidecl.h"
12198 #include "system.h"
12199 #ifdef HAVE_LDFCN_H
12210 char *(*pfn) = (char *(*)) $ac_func ;
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_compile") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest.$ac_objext; then
12233 eval "gcc_cv_have_decl_$ac_func=yes"
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 eval "gcc_cv_have_decl_$ac_func=no"
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12245 { echo "$as_me:$LINENO: result: yes" >&5
12246 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12247 #define $ac_tr_decl 1
12251 { echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12253 #define $ac_tr_decl 0
12262 for ac_func in times
12264 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12265 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12266 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12267 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12277 #define $ac_tr_decl 1
12279 #include "ansidecl.h"
12280 #include "system.h"
12281 #ifdef HAVE_SYS_TIMES_H
12282 #include <sys/times.h>
12290 char *(*pfn) = (char *(*)) $ac_func ;
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12313 eval "gcc_cv_have_decl_$ac_func=yes"
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 eval "gcc_cv_have_decl_$ac_func=no"
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12325 { echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12327 #define $ac_tr_decl 1
12331 { echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12333 #define $ac_tr_decl 0
12342 for ac_func in sigaltstack
12344 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12345 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12346 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12347 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 #define $ac_tr_decl 1
12359 #include "ansidecl.h"
12360 #include "system.h"
12361 #include <signal.h>
12368 char *(*pfn) = (char *(*)) $ac_func ;
12374 rm -f conftest.$ac_objext
12375 if { (ac_try="$ac_compile"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_compile") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && {
12388 test -z "$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 } && test -s conftest.$ac_objext; then
12391 eval "gcc_cv_have_decl_$ac_func=yes"
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 eval "gcc_cv_have_decl_$ac_func=no"
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12403 { echo "$as_me:$LINENO: result: yes" >&5
12404 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12405 #define $ac_tr_decl 1
12409 { echo "$as_me:$LINENO: result: no" >&5
12410 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12411 #define $ac_tr_decl 0
12419 # More time-related stuff.
12420 { echo "$as_me:$LINENO: checking for struct tms" >&5
12421 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
12422 if test "${ac_cv_struct_tms+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 #include "ansidecl.h"
12434 #include "system.h"
12435 #ifdef HAVE_SYS_TIMES_H
12436 #include <sys/times.h>
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest.$ac_objext; then
12464 ac_cv_struct_tms=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_cv_struct_tms=no
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12475 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
12476 if test $ac_cv_struct_tms = yes; then
12478 cat >>confdefs.h <<\_ACEOF
12479 #define HAVE_STRUCT_TMS 1
12484 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12485 # revisit after autoconf 2.50.
12486 { echo "$as_me:$LINENO: checking for clock_t" >&5
12487 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
12488 if test "${gcc_cv_type_clock_t+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12499 #include "ansidecl.h"
12500 #include "system.h"
12510 rm -f conftest.$ac_objext
12511 if { (ac_try="$ac_compile"
12512 case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_compile") 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } && {
12524 test -z "$ac_c_werror_flag" ||
12525 test ! -s conftest.err
12526 } && test -s conftest.$ac_objext; then
12527 gcc_cv_type_clock_t=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 gcc_cv_type_clock_t=no
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12538 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
12539 if test $gcc_cv_type_clock_t = yes; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_CLOCK_T 1
12547 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12548 CFLAGS="$saved_CFLAGS"
12550 # Check whether --enable-initfini-array was given.
12551 if test "${enable_initfini_array+set}" = set; then
12552 enableval=$enable_initfini_array;
12555 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12556 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12557 if test "${gcc_cv_initfini_array+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 if test "$cross_compiling" = yes; then
12561 gcc_cv_initfini_array=no
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12571 int main (void) { return x; }
12572 int foo (void) { x = 0; }
12573 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12575 rm -f conftest$ac_exeext
12576 if { (ac_try="$ac_link"
12577 case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_link") 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 gcc_cv_initfini_array=yes
12597 echo "$as_me: program exited with status $ac_status" >&5
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ( exit $ac_status )
12602 gcc_cv_initfini_array=no
12604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12610 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
12611 enable_initfini_array=$gcc_cv_initfini_array
12615 if test $enable_initfini_array = yes; then
12617 cat >>confdefs.h <<\_ACEOF
12618 #define HAVE_INITFINI_ARRAY 1
12623 # mkdir takes a single argument on some systems.
12624 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12625 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
12626 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 #include <sys/types.h>
12637 #ifdef HAVE_SYS_STAT_H
12638 # include <sys/stat.h>
12640 #ifdef HAVE_UNISTD_H
12641 # include <unistd.h>
12643 #ifdef HAVE_DIRECT_H
12644 # include <direct.h>
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest.$ac_objext; then
12671 gcc_cv_mkdir_takes_one_arg=no
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 gcc_cv_mkdir_takes_one_arg=yes
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12682 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
12683 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12685 cat >>confdefs.h <<\_ACEOF
12686 #define MKDIR_TAKES_ONE_ARG 1
12698 # With Setjmp/Longjmp based exception handling.
12699 # Check whether --enable-sjlj-exceptions was given.
12700 if test "${enable_sjlj_exceptions+set}" = set; then
12701 enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12703 cat >>confdefs.h <<_ACEOF
12704 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12710 # For platforms with the unwind ABI which includes an unwind library,
12711 # libunwind, we can choose to use the system libunwind.
12713 # Check whether --with-system-libunwind was given.
12714 if test "${with_system_libunwind+set}" = set; then
12715 withval=$with_system_libunwind;
12719 # config.gcc also contains tests of with_system_libunwind.
12720 if test x$with_system_libunwind = xyes; then
12722 cat >>confdefs.h <<\_ACEOF
12723 #define HAVE_GETIPINFO 1
12728 # --------------------------------------------------------
12729 # Build, host, and target specific configuration fragments
12730 # --------------------------------------------------------
12732 # Collect build-machine-specific information.
12733 . ${srcdir}/config.build
12735 # Collect host-machine-specific information.
12736 . ${srcdir}/config.host
12740 # Collect target-machine-specific information.
12741 . ${srcdir}/config.gcc
12743 extra_objs="${host_extra_objs} ${extra_objs}"
12744 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12746 # Default the target-machine variables that were not explicitly set.
12747 if test x"$tm_file" = x
12748 then tm_file=$cpu_type/$cpu_type.h; fi
12750 if test x"$extra_headers" = x
12751 then extra_headers=; fi
12753 if test x$md_file = x
12754 then md_file=$cpu_type/$cpu_type.md; fi
12756 if test x$out_file = x
12757 then out_file=$cpu_type/$cpu_type.c; fi
12759 if test x"$tmake_file" = x
12760 then tmake_file=$cpu_type/t-$cpu_type
12763 if test x"$dwarf2" = xyes
12764 then tm_file="$tm_file tm-dwarf2.h"
12767 # Say what files are being used for the output code and MD file.
12768 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12769 echo "Using \`$srcdir/config/$md_file' as machine description file."
12771 # If any of the xm_file variables contain nonexistent files, warn
12772 # about them and drop them.
12775 for x in $build_xm_file; do
12776 if test -f $srcdir/config/$x
12778 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12779 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12782 build_xm_file="$bx"
12785 for x in $host_xm_file; do
12786 if test -f $srcdir/config/$x
12788 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12789 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12795 for x in $xm_file; do
12796 if test -f $srcdir/config/$x
12798 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12799 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12805 for f in $tm_file; do
12808 if test $count = ax; then
12809 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12811 echo "Using the following target machine macro files:"
12812 for f in $tm_file; do
12813 echo " $srcdir/config/$f"
12817 if test x$need_64bit_hwint = xyes; then
12819 cat >>confdefs.h <<\_ACEOF
12820 #define NEED_64BIT_HOST_WIDE_INT 1
12825 if test x$use_long_long_for_widest_fast_int = xyes; then
12827 cat >>confdefs.h <<\_ACEOF
12828 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12834 for f in $host_xm_file; do
12837 if test $count = a; then
12839 elif test $count = ax; then
12840 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12842 echo "Using the following host machine macro files:"
12843 for f in $host_xm_file; do
12844 echo " $srcdir/config/$f"
12847 echo "Using ${out_host_hook_obj} for host machine hooks."
12849 if test "$host_xm_file" != "$build_xm_file"; then
12851 for f in $build_xm_file; do
12854 if test $count = a; then
12856 elif test $count = ax; then
12857 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12859 echo "Using the following build machine macro files:"
12860 for f in $build_xm_file; do
12861 echo " $srcdir/config/$f"
12867 powerpc*-*-darwin*)
12868 { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12869 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
12870 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 cat >conftest.$ac_ext <<_ACEOF
12875 #include <sys/cdefs.h>
12876 #include <sys/signal.h>
12877 #include <ucontext.h>
12878 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12881 rm -f conftest.$ac_objext
12882 if { (ac_try="$ac_compile"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_compile") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && {
12895 test -z "$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12897 } && test -s conftest.$ac_objext; then
12898 gcc_cv_mcontext_underscores=no
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 gcc_cv_mcontext_underscores=yes
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12909 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
12910 if test $gcc_cv_mcontext_underscores = yes; then
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAS_MCONTEXT_T_UNDERSCORES
12924 # Check if a valid thread package
12925 case ${enable_threads} in
12928 target_thread_file='single'
12932 target_thread_file='single'
12934 aix | dce | gnat | irix | posix | posix95 | rtems | \
12935 single | solaris | vxworks | win32 )
12936 target_thread_file=${enable_threads}
12939 echo "${enable_threads} is an unknown thread package" 1>&2
12944 if test x${thread_file} = x; then
12945 # No thread file set by target-specific clauses in config.gcc,
12946 # so use file chosen by default logic above
12947 thread_file=${target_thread_file}
12950 # Make gthr-default.h if we have a thread file.
12952 if test $thread_file != single; then
12953 rm -f gthr-default.h
12954 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12955 gthread_flags=-DHAVE_GTHR_DEFAULT
12964 if test x$enable___cxa_atexit = xyes || \
12965 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12966 if test x$host = x$target; then
12968 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12969 # keyed to flag_use_cxa_atexit
12974 { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12975 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
12976 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12987 #define __cxa_atexit innocuous___cxa_atexit
12989 /* System header to define __stub macros and hopefully few prototypes,
12990 which can conflict with char __cxa_atexit (); below.
12991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992 <limits.h> exists even on freestanding compilers. */
12995 # include <limits.h>
12997 # include <assert.h>
13000 #undef __cxa_atexit
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char __cxa_atexit ();
13009 /* The GNU C library defines this for functions which it implements
13010 to always fail with ENOSYS. Some functions are actually named
13011 something starting with __ and the normal name is an alias. */
13012 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
13019 return __cxa_atexit ();
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (ac_try="$ac_link"
13026 case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_link") 2>conftest.er1
13033 grep -v '^ *+' conftest.er1 >conftest.err
13035 cat conftest.err >&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } && {
13038 test -z "$ac_c_werror_flag" ||
13039 test ! -s conftest.err
13040 } && test -s conftest$ac_exeext &&
13041 $as_test_x conftest$ac_exeext; then
13042 ac_cv_func___cxa_atexit=yes
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ac_cv_func___cxa_atexit=no
13050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13051 conftest$ac_exeext conftest.$ac_ext
13053 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13054 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
13055 if test $ac_cv_func___cxa_atexit = yes; then
13058 echo "__cxa_atexit can't be enabled on this target"
13064 # We can't check for __cxa_atexit when building a cross, so assume
13068 if test x$use_cxa_atexit = xyes; then
13070 cat >>confdefs.h <<\_ACEOF
13071 #define DEFAULT_USE_CXA_ATEXIT 2
13078 if test x$with_system_libunwind = xyes; then
13079 if test x$host = x$target; then
13080 { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13081 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
13082 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 ac_func_search_save_LIBS=$LIBS
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13099 char _Unwind_GetIPInfo ();
13103 return _Unwind_GetIPInfo ();
13108 for ac_lib in '' unwind; do
13109 if test -z "$ac_lib"; then
13110 ac_res="none required"
13113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (ac_try="$ac_link"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_link") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest$ac_exeext &&
13132 $as_test_x conftest$ac_exeext; then
13133 ac_cv_search__Unwind_GetIPInfo=$ac_res
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13143 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13147 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13150 ac_cv_search__Unwind_GetIPInfo=no
13152 rm conftest.$ac_ext
13153 LIBS=$ac_func_search_save_LIBS
13155 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13156 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
13157 ac_res=$ac_cv_search__Unwind_GetIPInfo
13158 if test "$ac_res" != no; then
13159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13168 if test x$use_getipinfo = xyes; then
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_GETIPINFO 1
13175 echo "The system unwind library does not support _Unwind_GetIPInfo."
13178 # Look for a file containing extra machine modes.
13179 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13180 extra_modes_file='$(srcdir)'/config/${extra_modes}
13183 cat >>confdefs.h <<_ACEOF
13184 #define EXTRA_MODES_FILE "config/$extra_modes"
13189 # Convert extra_options into a form suitable for Makefile use.
13191 for f in $extra_options; do
13192 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13196 # auto-host.h is the file containing items generated by autoconf and is
13197 # the first file included by config.h.
13198 # If host=build, it is correct to have bconfig include auto-host.h
13199 # as well. If host!=build, we are in error and need to do more
13200 # work to find out the build config parameters.
13201 if test x$host = x$build
13203 build_auto=auto-host.h
13205 # We create a subdir, then run autoconf in the subdir.
13206 # To prevent recursion we set host and build for the new
13207 # invocation of configure to the build for this invocation
13214 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13215 *) realsrcdir=../${srcdir};;
13217 saved_CFLAGS="${CFLAGS}"
13218 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13219 ${realsrcdir}/configure \
13220 --enable-languages=${enable_languages-all} \
13221 --target=$target_alias --host=$build_alias --build=$build_alias
13222 CFLAGS="${saved_CFLAGS}"
13224 # We just finished tests for the build machine, so rename
13225 # the file auto-build.h in the gcc directory.
13226 mv auto-host.h ../auto-build.h
13229 build_auto=auto-build.h
13233 tm_file="${tm_file} defaults.h"
13234 tm_p_file="${tm_p_file} tm-preds.h"
13235 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13236 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13237 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13238 # put this back in temporarily.
13239 xm_file="auto-host.h ansidecl.h ${xm_file}"
13245 # Compile in configure arguments.
13246 if test -f configargs.h ; then
13247 # Being re-configured.
13248 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13249 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13251 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13254 # Double all backslashes and backslash all quotes to turn
13255 # gcc_config_arguments into a C string.
13256 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13257 $gcc_config_arguments
13259 gcc_config_arguments_str=`cat conftest.out`
13262 cat > configargs.h <<EOF
13263 /* Generated automatically. */
13264 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13265 static const char thread_model[] = "$thread_file";
13267 static const struct {
13268 const char *name, *value;
13269 } configure_default_options[] = $configure_default_options;
13272 # Internationalization
13273 # If we haven't got the data from the intl directory,
13274 # assume NLS is disabled.
13283 if test -f ../intl/config.intl; then
13284 . ../intl/config.intl
13286 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13287 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13288 if test x"$USE_NLS" != xyes; then
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13292 { echo "$as_me:$LINENO: result: yes" >&5
13293 echo "${ECHO_T}yes" >&6; }
13295 cat >>confdefs.h <<\_ACEOF
13296 #define ENABLE_NLS 1
13300 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13301 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13302 # Look for .po and .gmo files in the source directory.
13305 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13306 # If there aren't any .gmo files the shell will give us the
13307 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13309 case "$cat" in *\**)
13312 # The quadruple backslash is collapsed to a double backslash
13313 # by the backticks, then collapsed again by the double quotes,
13314 # leaving us with one backslash in the sed expression (right
13315 # before the dot that mustn't act as a wildcard).
13316 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13317 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13318 # The user is allowed to set LINGUAS to a list of languages to
13319 # install catalogs for. If it's empty that means "all of them."
13320 if test "x$LINGUAS" = x; then
13321 CATALOGS="$CATALOGS $cat"
13322 XLINGUAS="$XLINGUAS $lang"
13324 case "$LINGUAS" in *$lang*)
13325 CATALOGS="$CATALOGS $cat"
13326 XLINGUAS="$XLINGUAS $lang"
13331 LINGUAS="$XLINGUAS"
13332 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13333 echo "${ECHO_T}$LINGUAS" >&6; }
13346 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13347 # -liconv on the link line twice.
13348 case "$LIBINTL" in *$LIBICONV*)
13352 # Check whether --enable-secureplt was given.
13353 if test "${enable_secureplt+set}" = set; then
13354 enableval=$enable_secureplt;
13358 # Windows32 Registry support for specifying GCC installation paths.
13359 # Check whether --enable-win32-registry was given.
13360 if test "${enable_win32_registry+set}" = set; then
13361 enableval=$enable_win32_registry;
13366 win32 | pe | cygwin* | mingw32* | uwin*)
13367 if test "x$enable_win32_registry" != xno; then
13368 { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13369 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13387 char RegOpenKeyExA ();
13391 return RegOpenKeyExA ();
13396 for ac_lib in '' advapi32; do
13397 if test -z "$ac_lib"; then
13398 ac_res="none required"
13401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && {
13417 test -z "$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13419 } && test -s conftest$ac_exeext &&
13420 $as_test_x conftest$ac_exeext; then
13421 ac_cv_search_RegOpenKeyExA=$ac_res
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13431 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13435 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13438 ac_cv_search_RegOpenKeyExA=no
13440 rm conftest.$ac_ext
13441 LIBS=$ac_func_search_save_LIBS
13443 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13444 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
13445 ac_res=$ac_cv_search_RegOpenKeyExA
13446 if test "$ac_res" != no; then
13447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13450 enable_win32_registry=no
13455 if test "x$enable_win32_registry" != xno; then
13457 cat >>confdefs.h <<\_ACEOF
13458 #define ENABLE_WIN32_REGISTRY 1
13462 if test "x$enable_win32_registry" != xyes \
13463 && test "x$enable_win32_registry" != x; then
13465 cat >>confdefs.h <<_ACEOF
13466 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13474 # Get an absolute path to the GCC top-level source directory
13475 holddir=`${PWDCMD-pwd}`
13477 topdir=`${PWDCMD-pwd}`
13480 # Conditionalize the makefile for this host machine.
13482 for f in ${host_xmake_file}
13484 if test -f ${srcdir}/config/$f
13486 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13490 # Conditionalize the makefile for this target machine.
13492 for f in ${tmake_file}
13494 if test -f ${srcdir}/config/$f
13496 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13499 tmake_file="${tmake_file_}"
13501 # This is a terrible hack which will go away some day.
13502 host_cc_for_libada=${CC}
13505 out_object_file=`basename $out_file .c`.o
13507 tm_file_list="options.h"
13508 tm_include_list="options.h"
13509 for f in $tm_file; do
13512 f=`echo $f | sed 's/^..//'`
13513 tm_file_list="${tm_file_list} $f"
13514 tm_include_list="${tm_include_list} $f"
13517 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13518 tm_include_list="${tm_include_list} $f"
13521 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13522 tm_include_list="${tm_include_list} config/$f"
13529 for f in $tm_p_file; do
13532 tm_p_file_list="${tm_p_file_list} $f"
13533 tm_p_include_list="${tm_p_include_list} $f"
13536 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13537 tm_p_include_list="${tm_p_include_list} config/$f"
13543 for f in $xm_file; do
13546 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13547 xm_include_list="${xm_include_list} $f"
13550 xm_file_list="${xm_file_list} $f"
13551 xm_include_list="${xm_include_list} $f"
13554 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13555 xm_include_list="${xm_include_list} config/$f"
13561 host_xm_include_list=
13562 for f in $host_xm_file; do
13565 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13566 host_xm_include_list="${host_xm_include_list} $f"
13569 host_xm_file_list="${host_xm_file_list} $f"
13570 host_xm_include_list="${host_xm_include_list} $f"
13573 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13574 host_xm_include_list="${host_xm_include_list} config/$f"
13579 build_xm_file_list=
13580 for f in $build_xm_file; do
13583 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13584 build_xm_include_list="${build_xm_include_list} $f"
13586 auto-build.h | auto-host.h )
13587 build_xm_file_list="${build_xm_file_list} $f"
13588 build_xm_include_list="${build_xm_include_list} $f"
13591 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13592 build_xm_include_list="${build_xm_include_list} config/$f"
13597 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13598 # cross-compiler which does not use the native headers and libraries.
13599 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13602 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13604 if test "x$with_build_sysroot" != x; then
13605 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13607 # This value is used, even on a native system, because
13608 # CROSS_SYSTEM_HEADER_DIR is just
13609 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13610 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13613 if test x$host != x$target
13615 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13617 SYSTEM_HEADER_DIR=$build_system_header_dir
13618 case "$host","$target" in
13619 # Darwin crosses can use the host system's libraries and headers,
13620 # because of the fat library support. Of course, it must be the
13621 # same version of Darwin on both sides. Allow the user to
13622 # just say --target=foo-darwin without a version number to mean
13623 # "the version on this system".
13624 *-*-darwin*,*-*-darwin*)
13625 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13626 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13627 if test $hostos = $targetos -o $targetos = darwin ; then
13629 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13634 i?86-*-*,x86_64-*-* \
13635 | powerpc*-*-*,powerpc64*-*-*)
13636 CROSS="$CROSS -DNATIVE_CROSS" ;;
13638 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13639 SYSTEM_HEADER_DIR=$build_system_header_dir
13642 # If this is a cross-compiler that does not
13643 # have its own set of headers then define
13646 # If this is using newlib, without having the headers available now,
13647 # then define inhibit_libc in LIBGCC2_CFLAGS.
13648 # This prevents libgcc2 from containing any code which requires libc
13651 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13652 test x$with_newlib = xyes ; } &&
13653 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13658 # When building gcc with a cross-compiler, we need to adjust things so
13659 # that the generator programs are still built with the native compiler.
13660 # Also, we cannot run fixincludes or fix-header.
13662 # These are the normal (build=host) settings:
13663 CC_FOR_BUILD='$(CC)'
13664 BUILD_CFLAGS='$(ALL_CFLAGS)'
13665 STMP_FIXINC=stmp-fixinc
13667 # Possibly disable fixproto, on a per-target basis.
13668 case ${use_fixproto} in
13673 STMP_FIXPROTO=stmp-fixproto
13678 # And these apply if build != host, or we are generating coverage data
13679 if test x$build != x$host || test "x$coverage_flags" != x
13681 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13683 if test "x$TARGET_SYSTEM_ROOT" = x; then
13684 if test "x$STMP_FIXPROTO" != x; then
13685 STMP_FIXPROTO=stmp-install-fixproto
13690 # Expand extra_headers to include complete path.
13691 # This substitutes for lots of t-* files.
13692 extra_headers_list=
13693 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13694 for file in ${extra_headers} ; do
13695 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13698 # Define collect2 in Makefile.
13699 case $host_can_use_collect2 in
13701 *) collect2='collect2$(exeext)' ;;
13705 # Add a definition of USE_COLLECT2 if system wants one.
13706 case $use_collect2 in
13707 no) use_collect2= ;;
13710 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13711 xm_defines="${xm_defines} USE_COLLECT2"
13712 case $host_can_use_collect2 in
13714 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13715 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13716 { (exit 1); exit 1; }; }
13722 # ---------------------------
13723 # Assembler & linker features
13724 # ---------------------------
13726 # Identify the assembler which will work hand-in-glove with the newly
13727 # built GCC, so that we can examine its features. This is the assembler
13728 # which will be driven by the driver program.
13730 # If build != host, and we aren't building gas in-tree, we identify a
13731 # build->target assembler and hope that it will have the same features
13732 # as the host->target assembler we'll be using.
13733 gcc_cv_gas_major_version=
13734 gcc_cv_gas_minor_version=
13735 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13737 if test "${gcc_cv_as+set}" = set; then
13741 if test -x "$DEFAULT_ASSEMBLER"; then
13742 gcc_cv_as="$DEFAULT_ASSEMBLER"
13743 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13744 && test -f ../gas/Makefile \
13745 && test x$build = x$host; then
13746 gcc_cv_as=../gas/as-new$build_exeext
13747 elif test -x as$build_exeext; then
13748 # Build using assembler in the current directory.
13749 gcc_cv_as=./as$build_exeext
13750 elif test -x $AS_FOR_TARGET; then
13751 gcc_cv_as="$AS_FOR_TARGET"
13753 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13754 set dummy $AS_FOR_TARGET; ac_word=$2
13755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13757 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 gcc_cv_as=$ac_cv_path_gcc_cv_as
13784 if test -n "$gcc_cv_as"; then
13785 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13786 echo "${ECHO_T}$gcc_cv_as" >&6; }
13788 { echo "$as_me:$LINENO: result: no" >&5
13789 echo "${ECHO_T}no" >&6; }
13797 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13800 { echo "$as_me:$LINENO: checking what assembler to use" >&5
13801 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
13802 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13803 # Single tree build which includes gas. We want to prefer it
13804 # over whatever linker top-level may have detected, since
13805 # we'll use what we're building after installation anyway.
13806 { echo "$as_me:$LINENO: result: newly built gas" >&5
13807 echo "${ECHO_T}newly built gas" >&6; }
13809 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13810 for f in $gcc_cv_as_bfd_srcdir/configure \
13811 $gcc_cv_as_gas_srcdir/configure \
13812 $gcc_cv_as_gas_srcdir/configure.in \
13813 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13814 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13815 if test x$gcc_cv_gas_version != x; then
13819 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13820 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13821 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13822 case $gcc_cv_gas_patch_version in
13823 "") gcc_cv_gas_patch_version="0" ;;
13825 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13826 + $gcc_cv_gas_minor_version \) \* 1000 \
13827 + $gcc_cv_gas_patch_version`
13829 in_tree_gas_is_elf=no
13830 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13831 || (grep 'obj_format = multi' ../gas/Makefile \
13832 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13834 in_tree_gas_is_elf=yes
13837 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13838 echo "${ECHO_T}$gcc_cv_as" >&6; }
13842 # Identify the linker which will work hand-in-glove with the newly
13843 # built GCC, so that we can examine its features. This is the linker
13844 # which will be driven by the driver program.
13846 # If build != host, and we aren't building gas in-tree, we identify a
13847 # build->target linker and hope that it will have the same features
13848 # as the host->target linker we'll be using.
13849 gcc_cv_gld_major_version=
13850 gcc_cv_gld_minor_version=
13851 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13852 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13854 if test "${gcc_cv_ld+set}" = set; then
13858 if test -x "$DEFAULT_LINKER"; then
13859 gcc_cv_ld="$DEFAULT_LINKER"
13860 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13861 && test -f ../ld/Makefile \
13862 && test x$build = x$host; then
13863 gcc_cv_ld=../ld/ld-new$build_exeext
13864 elif test -x collect-ld$build_exeext; then
13865 # Build using linker in the current directory.
13866 gcc_cv_ld=./collect-ld$build_exeext
13867 elif test -x $LD_FOR_TARGET; then
13868 gcc_cv_ld="$LD_FOR_TARGET"
13870 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13871 set dummy $LD_FOR_TARGET; ac_word=$2
13872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13874 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13901 if test -n "$gcc_cv_ld"; then
13902 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13903 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13905 { echo "$as_me:$LINENO: result: no" >&5
13906 echo "${ECHO_T}no" >&6; }
13914 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13917 { echo "$as_me:$LINENO: checking what linker to use" >&5
13918 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
13919 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13920 # Single tree build which includes ld. We want to prefer it
13921 # over whatever linker top-level may have detected, since
13922 # we'll use what we're building after installation anyway.
13923 { echo "$as_me:$LINENO: result: newly built ld" >&5
13924 echo "${ECHO_T}newly built ld" >&6; }
13926 in_tree_ld_is_elf=no
13927 if (grep 'EMUL = .*elf' ../ld/Makefile \
13928 || grep 'EMUL = .*linux' ../ld/Makefile \
13929 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13930 in_tree_ld_is_elf=yes
13932 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
13934 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13935 if test x$gcc_cv_gld_version != x; then
13939 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13940 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13942 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13943 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13947 # Figure out what nm we will be using.
13948 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13949 if test "${gcc_cv_nm+set}" = set; then
13953 if test -f $gcc_cv_binutils_srcdir/configure.in \
13954 && test -f ../binutils/Makefile \
13955 && test x$build = x$host; then
13956 gcc_cv_nm=../binutils/nm-new$build_exeext
13957 elif test -x nm$build_exeext; then
13958 gcc_cv_nm=./nm$build_exeext
13959 elif test -x $NM_FOR_TARGET; then
13960 gcc_cv_nm="$NM_FOR_TARGET"
13962 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13963 set dummy $NM_FOR_TARGET; ac_word=$2
13964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13966 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13981 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13993 if test -n "$gcc_cv_nm"; then
13994 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13995 echo "${ECHO_T}$gcc_cv_nm" >&6; }
13997 { echo "$as_me:$LINENO: result: no" >&5
13998 echo "${ECHO_T}no" >&6; }
14006 { echo "$as_me:$LINENO: checking what nm to use" >&5
14007 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
14008 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14009 # Single tree build which includes binutils.
14010 { echo "$as_me:$LINENO: result: newly built nm" >&5
14011 echo "${ECHO_T}newly built nm" >&6; }
14014 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14015 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14019 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14022 # Figure out what objdump we will be using.
14023 if test "${gcc_cv_objdump+set}" = set; then
14027 if test -f $gcc_cv_binutils_srcdir/configure.in \
14028 && test -f ../binutils/Makefile \
14029 && test x$build = x$host; then
14030 # Single tree build which includes binutils.
14031 gcc_cv_objdump=../binutils/objdump$build_exeext
14032 elif test -x objdump$build_exeext; then
14033 gcc_cv_objdump=./objdump$build_exeext
14034 elif test -x $OBJDUMP_FOR_TARGET; then
14035 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14037 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14038 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14041 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 case $gcc_cv_objdump in
14046 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14056 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14068 if test -n "$gcc_cv_objdump"; then
14069 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14070 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14072 { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14081 { echo "$as_me:$LINENO: checking what objdump to use" >&5
14082 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
14083 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14084 # Single tree build which includes binutils.
14085 { echo "$as_me:$LINENO: result: newly built objdump" >&5
14086 echo "${ECHO_T}newly built objdump" >&6; }
14087 elif test x$gcc_cv_objdump = x; then
14088 { echo "$as_me:$LINENO: result: not found" >&5
14089 echo "${ECHO_T}not found" >&6; }
14091 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14092 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14095 # Figure out what assembler alignment features are present.
14096 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14097 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
14098 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 gcc_cv_as_balign_and_p2align=no
14102 if test $in_tree_gas = yes; then
14103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14104 then gcc_cv_as_balign_and_p2align=yes
14106 elif test x$gcc_cv_as != x; then
14108 .p2align 2' > conftest.s
14109 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }
14116 gcc_cv_as_balign_and_p2align=yes
14118 echo "configure: failed program was" >&5
14121 rm -f conftest.o conftest.s
14124 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14125 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
14126 if test $gcc_cv_as_balign_and_p2align = yes; then
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14134 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14135 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
14136 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 gcc_cv_as_max_skip_p2align=no
14140 if test $in_tree_gas = yes; then
14141 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14142 then gcc_cv_as_max_skip_p2align=yes
14144 elif test x$gcc_cv_as != x; then
14145 echo '.p2align 4,,7' > conftest.s
14146 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }
14153 gcc_cv_as_max_skip_p2align=yes
14155 echo "configure: failed program was" >&5
14158 rm -f conftest.o conftest.s
14161 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14162 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
14163 if test $gcc_cv_as_max_skip_p2align = yes; then
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14171 { echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14172 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6; }
14173 if test "${gcc_cv_as_literal16+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 gcc_cv_as_literal16=no
14177 if test $in_tree_gas = yes; then
14178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14179 then gcc_cv_as_literal16=yes
14181 elif test x$gcc_cv_as != x; then
14182 echo '.literal16' > conftest.s
14183 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }
14190 gcc_cv_as_literal16=yes
14192 echo "configure: failed program was" >&5
14195 rm -f conftest.o conftest.s
14198 { echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14199 echo "${ECHO_T}$gcc_cv_as_literal16" >&6; }
14200 if test $gcc_cv_as_literal16 = yes; then
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_GAS_LITERAL16 1
14208 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14209 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
14210 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 gcc_cv_as_subsection_m1=no
14214 if test $in_tree_gas = yes; then
14215 if test $in_tree_gas_is_elf = yes \
14216 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14217 then gcc_cv_as_subsection_m1=yes
14219 elif test x$gcc_cv_as != x; then
14220 echo 'conftest_label1: .word 0
14222 conftest_label2: .word 0
14223 .previous' > conftest.s
14224 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }
14231 if test x$gcc_cv_nm != x; then
14232 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14233 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14234 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14236 else gcc_cv_as_subsection_m1=yes
14238 rm -f conftest.nm1 conftest.nm2
14241 echo "configure: failed program was" >&5
14244 rm -f conftest.o conftest.s
14247 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14248 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
14249 if test $gcc_cv_as_subsection_m1 = yes; then
14251 cat >>confdefs.h <<\_ACEOF
14252 #define HAVE_GAS_SUBSECTION_ORDERING 1
14257 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
14258 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
14259 if test "${gcc_cv_as_weak+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 if test $in_tree_gas = yes; then
14264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14265 then gcc_cv_as_weak=yes
14267 elif test x$gcc_cv_as != x; then
14268 echo ' .weak foobar' > conftest.s
14269 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }
14278 echo "configure: failed program was" >&5
14281 rm -f conftest.o conftest.s
14284 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14285 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
14286 if test $gcc_cv_as_weak = yes; then
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_GAS_WEAK 1
14294 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14295 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
14296 if test "${gcc_cv_as_weakref+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 gcc_cv_as_weakref=no
14300 if test $in_tree_gas = yes; then
14301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14302 then gcc_cv_as_weakref=yes
14304 elif test x$gcc_cv_as != x; then
14305 echo ' .weakref foobar, barfnot' > conftest.s
14306 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }
14313 gcc_cv_as_weakref=yes
14315 echo "configure: failed program was" >&5
14318 rm -f conftest.o conftest.s
14321 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14322 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
14323 if test $gcc_cv_as_weakref = yes; then
14325 cat >>confdefs.h <<\_ACEOF
14326 #define HAVE_GAS_WEAKREF 1
14331 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14332 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
14333 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 gcc_cv_as_nsubspa_comdat=no
14337 if test $in_tree_gas = yes; then
14338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14339 then gcc_cv_as_nsubspa_comdat=yes
14341 elif test x$gcc_cv_as != x; then
14342 echo ' .SPACE $TEXT$
14343 .NSUBSPA $CODE$,COMDAT' > conftest.s
14344 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }
14351 gcc_cv_as_nsubspa_comdat=yes
14353 echo "configure: failed program was" >&5
14356 rm -f conftest.o conftest.s
14359 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14360 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
14361 if test $gcc_cv_as_nsubspa_comdat = yes; then
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_GAS_NSUBSPA_COMDAT 1
14369 # .hidden needs to be supported in both the assembler and the linker,
14370 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14371 # This is irritatingly difficult to feature test for; we have to check the
14372 # date string after the version number. If we've got an in-tree
14373 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14375 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14376 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14377 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
14378 if test "${gcc_cv_as_hidden+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 gcc_cv_as_hidden=no
14382 if test $in_tree_gas = yes; then
14383 if test $in_tree_gas_is_elf = yes \
14384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14385 then gcc_cv_as_hidden=yes
14387 elif test x$gcc_cv_as != x; then
14388 echo ' .hidden foobar
14389 foobar:' > conftest.s
14390 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }
14397 gcc_cv_as_hidden=yes
14399 echo "configure: failed program was" >&5
14402 rm -f conftest.o conftest.s
14405 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14406 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
14409 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14410 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
14411 if test "${gcc_cv_ld_hidden+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 if test $in_tree_ld = yes ; then
14415 gcc_cv_ld_hidden=no
14416 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 \
14417 && test $in_tree_ld_is_elf = yes; then
14418 gcc_cv_ld_hidden=yes
14421 gcc_cv_ld_hidden=yes
14422 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14423 if echo "$ld_ver" | grep GNU > /dev/null; then
14424 ld_vers=`echo $ld_ver | sed -n \
14425 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14426 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14429 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14430 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14431 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14432 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'`
14433 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14434 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14435 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14436 if test 0"$ld_date" -lt 20020404; then
14437 if test -n "$ld_date"; then
14438 # If there was date string, but was earlier than 2002-04-04, fail
14439 gcc_cv_ld_hidden=no
14440 elif test -z "$ld_vers"; then
14441 # If there was no date string nor ld version number, something is wrong
14442 gcc_cv_ld_hidden=no
14444 test -z "$ld_vers_patch" && ld_vers_patch=0
14445 if test "$ld_vers_major" -lt 2; then
14446 gcc_cv_ld_hidden=no
14447 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14448 gcc_cv_ld_hidden="no"
14449 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14450 gcc_cv_ld_hidden=no
14455 case "${target}" in
14456 hppa64*-*-hpux* | ia64*-*-hpux*)
14457 gcc_cv_ld_hidden=yes
14460 gcc_cv_ld_hidden=no
14466 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14467 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
14468 libgcc_visibility=no
14471 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14472 libgcc_visibility=yes
14474 cat >>confdefs.h <<\_ACEOF
14475 #define HAVE_GAS_HIDDEN 1
14480 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14481 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14482 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
14483 if test "${gcc_cv_as_leb128+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 gcc_cv_as_leb128=no
14487 if test $in_tree_gas = yes; then
14488 if test $in_tree_gas_is_elf = yes \
14489 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14490 then gcc_cv_as_leb128=yes
14492 elif test x$gcc_cv_as != x; then
14499 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }
14506 # GAS versions before 2.11 do not support uleb128,
14507 # despite appearing to.
14508 # ??? There exists an elf-specific test that will crash
14509 # the assembler. Perhaps it's better to figure out whether
14510 # arbitrary sections are supported and try the test.
14511 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14512 if echo "$as_ver" | grep GNU > /dev/null; then
14513 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14514 as_major=`echo $as_ver | sed 's/\..*//'`
14515 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14516 if test $as_major -eq 2 && test $as_minor -lt 11
14518 else gcc_cv_as_leb128=yes
14522 echo "configure: failed program was" >&5
14525 rm -f conftest.o conftest.s
14528 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14529 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
14530 if test $gcc_cv_as_leb128 = yes; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_AS_LEB128 1
14538 # GAS versions up to and including 2.11.0 may mis-optimize
14540 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14541 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
14542 if test "${gcc_cv_as_eh_frame+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 gcc_cv_as_eh_frame=no
14546 if test $in_tree_gas = yes; then
14547 if test $in_tree_gas_is_elf = yes \
14548 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14549 then gcc_cv_as_eh_frame=yes
14551 elif test x$gcc_cv_as != x; then
14558 .section .eh_frame,"aw",@progbits
14560 .4byte .LECIE1-.LSCIE1
14574 .4byte .LEFDE1-.LASFDE1
14576 .4byte .LASFDE1-__FRAME_BEGIN__
14583 .LEFDE1:' > conftest.s
14584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }
14591 cat > conftest.lit <<EOF
14592 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14593 0010 01000000 12000000 18000000 00000000 ................
14594 0020 08000000 04080000 0044 .........D
14596 cat > conftest.big <<EOF
14597 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14598 0010 00000001 00000012 00000018 00000000 ................
14599 0020 00000008 04000000 0844 .........D
14601 # If the assembler didn't choke, and we can objdump,
14602 # and we got the correct data, then succeed.
14603 # The text in the here-document typically retains its unix-style line
14604 # endings, while the output of objdump will use host line endings.
14605 # Therefore, use diff -b for the comparisons.
14606 if test x$gcc_cv_objdump != x \
14607 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14608 | tail -3 > conftest.got \
14609 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14610 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14612 gcc_cv_as_eh_frame=yes
14613 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 gcc_cv_as_eh_frame=buggy
14621 # Uh oh, what do we do now?
14622 gcc_cv_as_eh_frame=no
14625 echo "configure: failed program was" >&5
14628 rm -f conftest.o conftest.s
14631 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14632 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
14635 if test $gcc_cv_as_eh_frame = buggy; then
14637 cat >>confdefs.h <<\_ACEOF
14638 #define USE_AS_TRADITIONAL_FORMAT 1
14643 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14644 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14645 if test "${gcc_cv_as_shf_merge+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 gcc_cv_as_shf_merge=no
14649 if test $in_tree_gas = yes; then
14650 if test $in_tree_gas_is_elf = yes \
14651 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14652 then gcc_cv_as_shf_merge=yes
14654 elif test x$gcc_cv_as != x; then
14655 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14656 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }
14663 gcc_cv_as_shf_merge=yes
14665 echo "configure: failed program was" >&5
14668 rm -f conftest.o conftest.s
14671 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14672 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14674 if test $gcc_cv_as_shf_merge = no; then
14675 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14676 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14677 if test "${gcc_cv_as_shf_merge+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 gcc_cv_as_shf_merge=no
14681 if test $in_tree_gas = yes; then
14682 if test $in_tree_gas_is_elf = yes \
14683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14684 then gcc_cv_as_shf_merge=yes
14686 elif test x$gcc_cv_as != x; then
14687 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14688 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }
14695 gcc_cv_as_shf_merge=yes
14697 echo "configure: failed program was" >&5
14700 rm -f conftest.o conftest.s
14703 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14704 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14708 cat >>confdefs.h <<_ACEOF
14709 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14713 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14714 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14715 if test "${gcc_cv_as_comdat_group+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 gcc_cv_as_comdat_group=no
14719 if test $in_tree_gas = yes; then
14720 if test $in_tree_gas_is_elf = yes \
14721 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14722 then gcc_cv_as_comdat_group=yes
14724 elif test x$gcc_cv_as != x; then
14725 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14726 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }
14733 gcc_cv_as_comdat_group=yes
14735 echo "configure: failed program was" >&5
14738 rm -f conftest.o conftest.s
14741 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14742 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
14744 if test $gcc_cv_as_comdat_group = yes; then
14745 gcc_cv_as_comdat_group_percent=no
14747 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14748 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14749 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 gcc_cv_as_comdat_group_percent=no
14753 if test $in_tree_gas = yes; then
14754 if test $in_tree_gas_is_elf = yes \
14755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14756 then gcc_cv_as_comdat_group_percent=yes
14758 elif test x$gcc_cv_as != x; then
14759 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14760 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }
14767 gcc_cv_as_comdat_group_percent=yes
14769 echo "configure: failed program was" >&5
14772 rm -f conftest.o conftest.s
14775 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14776 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
14779 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14781 if test 0"$ld_date" -lt 20050308; then
14782 if test -n "$ld_date"; then
14783 # If there was date string, but was earlier than 2005-03-08, fail
14785 elif test "$ld_vers_major" -lt 2; then
14787 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14792 # assume linkers other than GNU ld don't support COMDAT group
14795 if test $comdat_group = no; then
14796 gcc_cv_as_comdat_group=no
14797 gcc_cv_as_comdat_group_percent=no
14800 cat >>confdefs.h <<_ACEOF
14801 #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`
14805 # Thread-local storage - the check is heavily parametrized.
14813 .section ".tdata","awT",@progbits
14816 ldq $27,__tls_get_addr($29) !literal!1
14817 lda $16,foo($29) !tlsgd!1
14818 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14819 ldq $27,__tls_get_addr($29) !literal!2
14820 lda $16,foo($29) !tlsldm!2
14821 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14822 ldq $1,foo($29) !gotdtprel
14823 ldah $2,foo($29) !dtprelhi
14824 lda $3,foo($2) !dtprello
14825 lda $4,foo($29) !dtprel
14826 ldq $1,foo($29) !gottprel
14827 ldah $2,foo($29) !tprelhi
14828 lda $3,foo($2) !tprello
14829 lda $4,foo($29) !tprel'
14832 tls_as_opt=--fatal-warnings
14836 .section ".tdata","awT",@progbits
14839 call #gettlsoff(x)'
14848 .section ".tdata","awT",@progbits
14852 addil LT%foo-$tls_gdidx$,gp
14853 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14856 addil LT%foo-$tls_ldidx$,gp
14858 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14859 addil LR%foo-$tls_dtpoff$,%ret0
14860 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14862 addil LT%foo-$tls_ieoff$,gp
14863 ldw RT%foo-$tls_ieoff$(%r1),%t2
14866 addil LR%foo-$tls_leoff$,%t1
14867 ldo RR%foo-$tls_leoff$(%r1),%t2'
14870 tls_as_opt=--fatal-warnings
14874 .section ".tdata","awT",%progbits
14877 .word foo(gottpoff)
14887 .section ".tdata","awT",@progbits
14891 leal foo@TLSGD(,%ebx,1), %eax
14892 leal foo@TLSLDM(%ebx), %eax
14893 leal foo@DTPOFF(%eax), %edx
14894 movl foo@GOTTPOFF(%ebx), %eax
14895 subl foo@GOTTPOFF(%ebx), %eax
14896 addl foo@GOTNTPOFF(%ebx), %eax
14897 movl foo@INDNTPOFF, %eax
14898 movl $foo@TPOFF, %eax
14899 subl $foo@TPOFF, %eax
14900 leal foo@NTPOFF(%ecx), %eax'
14903 tls_as_opt=--fatal-warnings
14907 .section ".tdata","awT",@progbits
14911 leaq foo@TLSGD(%rip), %rdi
14912 leaq foo@TLSLD(%rip), %rdi
14913 leaq foo@DTPOFF(%rax), %rdx
14914 movq foo@GOTTPOFF(%rip), %rax
14915 movq $foo@TPOFF, %rax'
14918 tls_as_opt=--fatal-warnings
14922 .section ".tdata","awT",@progbits
14925 addl r16 = @ltoff(@dtpmod(foo#)), gp
14926 addl r17 = @ltoff(@dtprel(foo#)), gp
14927 addl r18 = @ltoff(@tprel(foo#)), gp
14928 addl r19 = @dtprel(foo#), gp
14929 adds r21 = @dtprel(foo#), r13
14930 movl r23 = @dtprel(foo#)
14931 addl r20 = @tprel(foo#), gp
14932 adds r22 = @tprel(foo#), r13
14933 movl r24 = @tprel(foo#)'
14936 tls_as_opt=--fatal-warnings
14940 .section .tdata,"awT",@progbits
14944 addiu $4, $28, %tlsgd(x)
14945 addiu $4, $28, %tlsldm(x)
14946 lui $4, %dtprel_hi(x)
14947 addiu $4, $4, %dtprel_lo(x)
14948 lw $4, %gottprel(x)($28)
14949 lui $4, %tprel_hi(x)
14950 addiu $4, $4, %tprel_lo(x)'
14953 tls_as_opt='-32 --fatal-warnings'
14957 .section ".tdata","awT",@progbits
14965 addi 3,31,ld0@got@tlsgd
14967 addi 3,31,x1@got@tlsld
14970 addis 9,3,x2@dtprel@ha
14971 addi 9,9,x2@dtprel@l
14972 lwz 9,x3@got@tprel(31)
14975 addis 9,2,x2@tprel@ha
14976 addi 9,9,x2@tprel@l'
14979 tls_as_opt="-a32 --fatal-warnings"
14983 .section ".tdata","awT",@progbits
14991 addi 3,2,ld0@got@tlsgd
14997 addi 3,2,x1@got@tlsld
15003 addis 9,3,x2@dtprel@ha
15004 addi 9,9,x2@dtprel@l
15007 ld 9,x3@got@dtprel(2)
15013 tls_as_opt="-a64 --fatal-warnings"
15017 .section ".tdata","awT",@progbits
15024 .long foo@GOTNTPOFF
15025 .long foo@INDNTPOFF
15026 l %r1,foo@GOTNTPOFF(%r12)
15027 l %r1,0(%r1):tls_load:foo
15028 bas %r14,0(%r1,%r13):tls_gdcall:foo
15029 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15032 tls_as_opt="-m31 --fatal-warnings"
15036 .section ".tdata","awT",@progbits
15043 .quad foo@GOTNTPOFF
15044 lg %r1,foo@GOTNTPOFF(%r12)
15045 larl %r1,foo@INDNTPOFF
15046 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15047 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15050 tls_as_opt="-m64 -Aesame --fatal-warnings"
15052 sh-*-* | sh[34]-*-*)
15054 .section ".tdata","awT",@progbits
15064 tls_as_opt=--fatal-warnings
15068 sparc*-sun-solaris2.[56789]*)
15069 # TLS was introduced in the Solaris 9 4/04 release but
15070 # we do not enable it by default on Solaris 9 either.
15071 if test "x$enable_tls" = xyes ; then
15077 sparc*-sun-solaris2.*)
15084 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15086 .section ".tdata",#alloc,#write,#tls
15089 sethi %tgd_hi22(foo), %o0
15090 add %o0, %tgd_lo10(foo), %o1
15091 add %l7, %o1, %o0, %tgd_add(foo)
15092 call __tls_get_addr, %tgd_call(foo)
15093 sethi %tldm_hi22(foo), %l1
15094 add %l1, %tldm_lo10(foo), %l2
15095 add %l7, %l2, %o0, %tldm_add(foo)
15096 call __tls_get_addr, %tldm_call(foo)
15097 sethi %tldo_hix22(foo), %l3
15098 xor %l3, %tldo_lox10(foo), %l4
15099 add %o0, %l4, %l5, %tldo_add(foo)
15100 sethi %tie_hi22(foo), %o3
15101 add %o3, %tie_lo10(foo), %o3
15102 ld [%l7 + %o3], %o2, %tie_ld(foo)
15103 add %g7, %o2, %o4, %tie_add(foo)
15104 sethi %tle_hix22(foo), %l1
15105 xor %l1, %tle_lox10(foo), %o5
15106 ld [%g7 + %o5], %o1'
15111 .section ".tdata","awT",@progbits
15114 sethi %tgd_hi22(foo), %o0
15115 add %o0, %tgd_lo10(foo), %o1
15116 add %l7, %o1, %o0, %tgd_add(foo)
15117 call __tls_get_addr, %tgd_call(foo)
15118 sethi %tldm_hi22(foo), %l1
15119 add %l1, %tldm_lo10(foo), %l2
15120 add %l7, %l2, %o0, %tldm_add(foo)
15121 call __tls_get_addr, %tldm_call(foo)
15122 sethi %tldo_hix22(foo), %l3
15123 xor %l3, %tldo_lox10(foo), %l4
15124 add %o0, %l4, %l5, %tldo_add(foo)
15125 sethi %tie_hi22(foo), %o3
15126 add %o3, %tie_lo10(foo), %o3
15127 ld [%l7 + %o3], %o2, %tie_ld(foo)
15128 add %g7, %o2, %o4, %tie_add(foo)
15129 sethi %tle_hix22(foo), %l1
15130 xor %l1, %tle_lox10(foo), %o5
15131 ld [%g7 + %o5], %o1'
15134 tls_as_opt="-32 --fatal-warnings"
15139 if test "x$enable_tls" = xno ; then
15140 : # TLS explicitly disabled.
15141 elif test "x$enable_tls" = xyes ; then
15142 set_have_as_tls=yes # TLS explicitly enabled.
15143 elif test -z "$tls_first_major"; then
15144 : # If we don't have a check, assume no support.
15146 { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15147 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
15148 if test "${gcc_cv_as_tls+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 if test $in_tree_gas = yes; then
15153 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15154 then gcc_cv_as_tls=yes
15156 elif test x$gcc_cv_as != x; then
15157 echo "$conftest_s" > conftest.s
15158 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }
15167 echo "configure: failed program was" >&5
15170 rm -f conftest.o conftest.s
15173 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15174 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
15175 if test $gcc_cv_as_tls = yes; then
15176 set_have_as_tls=yes
15179 if test $set_have_as_tls = yes ; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_AS_TLS 1
15187 # Target-specific assembler checks.
15189 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15190 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
15191 gcc_cv_ld_static_dynamic=no
15192 if test $in_tree_ld = yes ; then
15193 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15194 gcc_cv_ld_static_dynamic=yes
15196 elif test x$gcc_cv_ld != x; then
15197 # Check if linker supports -Bstatic/-Bdynamic option
15198 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15199 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15200 gcc_cv_ld_static_dynamic=yes
15203 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15205 cat >>confdefs.h <<\_ACEOF
15206 #define HAVE_LD_STATIC_DYNAMIC 1
15210 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15211 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
15213 if test x"$demangler_in_ld" = xyes; then
15214 { echo "$as_me:$LINENO: checking linker --demangle support" >&5
15215 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
15216 gcc_cv_ld_demangle=no
15217 if test $in_tree_ld = yes; then
15218 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 \
15219 gcc_cv_ld_demangle=yes
15221 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15222 # Check if the GNU linker supports --demangle option
15223 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15224 gcc_cv_ld_demangle=yes
15227 if test x"$gcc_cv_ld_demangle" = xyes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_LD_DEMANGLE 1
15234 { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15235 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
15239 # All TARGET_ABI_OSF targets.
15240 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15241 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15242 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
15243 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 gcc_cv_as_alpha_explicit_relocs=no
15247 if test $in_tree_gas = yes; then
15248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15249 then gcc_cv_as_alpha_explicit_relocs=yes
15251 elif test x$gcc_cv_as != x; then
15252 echo ' .set nomacro
15254 extbl $3, $2, $3 !lituse_bytoff!1
15255 ldq $2, a($29) !literal!1
15256 ldq $4, b($29) !literal!2
15257 ldq_u $3, 0($2) !lituse_base!1
15258 ldq $27, f($29) !literal!5
15259 jsr $26, ($27), f !lituse_jsr!5
15260 ldah $29, 0($26) !gpdisp!3
15261 lda $0, c($29) !gprel
15262 ldah $1, d($29) !gprelhigh
15263 lda $1, d($1) !gprellow
15264 lda $29, 0($29) !gpdisp!3' > conftest.s
15265 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }
15272 gcc_cv_as_alpha_explicit_relocs=yes
15274 echo "configure: failed program was" >&5
15277 rm -f conftest.o conftest.s
15280 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15281 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
15282 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15284 cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_AS_EXPLICIT_RELOCS 1
15289 { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15290 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
15291 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 gcc_cv_as_alpha_jsrdirect_relocs=no
15295 if test $in_tree_gas = yes; then
15296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15297 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15299 elif test x$gcc_cv_as != x; then
15300 echo ' .set nomacro
15302 ldq $27, a($29) !literal!1
15303 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15304 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }
15311 gcc_cv_as_alpha_jsrdirect_relocs=yes
15313 echo "configure: failed program was" >&5
15316 rm -f conftest.o conftest.s
15319 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15320 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15321 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_AS_JSRDIRECT_RELOCS 1
15331 { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15332 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
15333 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 gcc_cv_as_cris_no_mul_bug=no
15337 if test $in_tree_gas = yes; then
15338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15339 then gcc_cv_as_cris_no_mul_bug=yes
15341 elif test x$gcc_cv_as != x; then
15342 echo '.text' > conftest.s
15343 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }
15350 gcc_cv_as_cris_no_mul_bug=yes
15352 echo "configure: failed program was" >&5
15355 rm -f conftest.o conftest.s
15358 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15359 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
15360 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15362 cat >>confdefs.h <<\_ACEOF
15363 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15370 { echo "$as_me:$LINENO: checking assembler for .register" >&5
15371 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
15372 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 gcc_cv_as_sparc_register_op=no
15376 if test x$gcc_cv_as != x; then
15377 echo '.register %g2, #scratch' > conftest.s
15378 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }
15385 gcc_cv_as_sparc_register_op=yes
15387 echo "configure: failed program was" >&5
15390 rm -f conftest.o conftest.s
15393 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15394 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
15395 if test $gcc_cv_as_sparc_register_op = yes; then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15403 { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15404 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
15405 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 gcc_cv_as_sparc_relax=no
15409 if test x$gcc_cv_as != x; then
15410 echo '.text' > conftest.s
15411 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }
15418 gcc_cv_as_sparc_relax=yes
15420 echo "configure: failed program was" >&5
15423 rm -f conftest.o conftest.s
15426 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15427 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
15428 if test $gcc_cv_as_sparc_relax = yes; then
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_AS_RELAX_OPTION 1
15436 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15437 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
15438 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 gcc_cv_as_sparc_ua_pcrel=no
15442 if test x$gcc_cv_as != x; then
15449 .uaword %r_disp32(foo)' > conftest.s
15450 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }
15457 if test x$gcc_cv_ld != x \
15458 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15459 gcc_cv_as_sparc_ua_pcrel=yes
15463 echo "configure: failed program was" >&5
15466 rm -f conftest.o conftest.s
15469 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15470 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
15471 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15473 cat >>confdefs.h <<\_ACEOF
15474 #define HAVE_AS_SPARC_UA_PCREL 1
15478 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15479 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
15480 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 gcc_cv_as_sparc_ua_pcrel_hidden=no
15484 if test x$gcc_cv_as != x; then
15488 .uaword %r_disp32(foo)
15489 .byte 0x32, 0x33, 0x34
15493 .skip 4' > conftest.s
15494 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }
15501 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15502 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15503 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15504 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15505 if $gcc_cv_objdump -R conftest 2> /dev/null \
15506 | grep 'DISP32' > /dev/null 2>&1; then
15509 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15514 echo "configure: failed program was" >&5
15517 rm -f conftest.o conftest.s
15520 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15521 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
15522 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15530 fi # unaligned pcrel relocs
15532 { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15533 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
15534 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 gcc_cv_as_sparc_offsetable_lo10=no
15538 if test x$gcc_cv_as != x; then
15540 or %g1, %lo(ab) + 12, %g1
15541 or %g1, %lo(ab + 12), %g1' > conftest.s
15542 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }
15549 if test x$gcc_cv_objdump != x \
15550 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15551 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15552 gcc_cv_as_sparc_offsetable_lo10=yes
15555 echo "configure: failed program was" >&5
15558 rm -f conftest.o conftest.s
15561 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15562 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
15563 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15565 cat >>confdefs.h <<\_ACEOF
15566 #define HAVE_AS_OFFSETABLE_LO10 1
15572 i[34567]86-*-* | x86_64-*-*)
15574 cygwin* | pe | mingw32*)
15575 # Used for DWARF 2 in PE
15576 { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15577 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
15578 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 gcc_cv_as_ix86_pe_secrel32=no
15582 if test $in_tree_gas = yes; then
15583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15584 then gcc_cv_as_ix86_pe_secrel32=yes
15586 elif test x$gcc_cv_as != x; then
15590 .secrel32 foo' > conftest.s
15591 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }
15598 if test x$gcc_cv_ld != x \
15599 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15600 gcc_cv_as_ix86_pe_secrel32=yes
15604 echo "configure: failed program was" >&5
15607 rm -f conftest.o conftest.s
15610 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15611 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
15612 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_GAS_PE_SECREL32_RELOC 1
15622 { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15623 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
15624 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 gcc_cv_as_ix86_filds_fists=no
15628 if test $in_tree_gas = yes; then
15629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15630 then gcc_cv_as_ix86_filds_fists=yes
15632 elif test x$gcc_cv_as != x; then
15633 echo 'filds mem; fists mem' > conftest.s
15634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }
15641 gcc_cv_as_ix86_filds_fists=yes
15643 echo "configure: failed program was" >&5
15646 rm -f conftest.o conftest.s
15649 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15650 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
15651 if test $gcc_cv_as_ix86_filds_fists = yes; then
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_GAS_FILDS_FISTS 1
15659 { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15660 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
15661 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 gcc_cv_as_ix86_cmov_sun_syntax=no
15665 if test x$gcc_cv_as != x; then
15666 echo 'cmovl.l %edx, %eax' > conftest.s
15667 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }
15674 gcc_cv_as_ix86_cmov_sun_syntax=yes
15676 echo "configure: failed program was" >&5
15679 rm -f conftest.o conftest.s
15682 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15683 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
15684 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15692 { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15693 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
15694 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 gcc_cv_as_ix86_ffreep=no
15698 if test x$gcc_cv_as != x; then
15699 echo 'ffreep %st(1)' > conftest.s
15700 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }
15707 gcc_cv_as_ix86_ffreep=yes
15709 echo "configure: failed program was" >&5
15712 rm -f conftest.o conftest.s
15715 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15716 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
15717 if test $gcc_cv_as_ix86_ffreep = yes; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_AS_IX86_FFREEP 1
15725 { echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15726 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6; }
15727 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 gcc_cv_as_ix86_sahf=no
15731 if test x$gcc_cv_as != x; then
15732 echo 'sahf' > conftest.s
15733 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }
15740 gcc_cv_as_ix86_sahf=yes
15742 echo "configure: failed program was" >&5
15745 rm -f conftest.o conftest.s
15748 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15749 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6; }
15750 if test $gcc_cv_as_ix86_sahf = yes; then
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_AS_IX86_SAHF 1
15758 { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15759 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
15760 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 gcc_cv_as_ix86_diff_sect_delta=no
15764 if test x$gcc_cv_as != x; then
15765 echo '.section .rodata
15771 .L2: nop' > conftest.s
15772 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }
15779 gcc_cv_as_ix86_diff_sect_delta=yes
15781 echo "configure: failed program was" >&5
15784 rm -f conftest.o conftest.s
15787 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15788 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
15789 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15797 # This one is used unconditionally by i386.[ch]; it is to be defined
15798 # to 1 if the feature is present, 0 otherwise.
15799 { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15800 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
15801 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 gcc_cv_as_ix86_gotoff_in_data=no
15805 if test $in_tree_gas = yes; then
15806 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15807 then gcc_cv_as_ix86_gotoff_in_data=yes
15809 elif test x$gcc_cv_as != x; then
15814 .long .L0@GOTOFF' > conftest.s
15815 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }
15822 gcc_cv_as_ix86_gotoff_in_data=yes
15824 echo "configure: failed program was" >&5
15827 rm -f conftest.o conftest.s
15830 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15831 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15841 { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15842 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
15843 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15847 if test $in_tree_gas = yes; then
15848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15849 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15851 elif test x$gcc_cv_as != x; then
15853 addl r15 = @ltoffx(x#), gp
15855 ld8.mov r16 = [r15], x#' > conftest.s
15856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }
15863 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15865 echo "configure: failed program was" >&5
15868 rm -f conftest.o conftest.s
15871 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15872 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
15873 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15885 *-*-aix*) conftest_s=' .machine "pwr5"
15889 { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15890 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
15891 if test "${gcc_cv_as_machine_directive+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 gcc_cv_as_machine_directive=no
15895 if test x$gcc_cv_as != x; then
15896 echo ' .machine ppc7400' > conftest.s
15897 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }
15904 gcc_cv_as_machine_directive=yes
15906 echo "configure: failed program was" >&5
15909 rm -f conftest.o conftest.s
15912 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15913 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
15915 if test x$gcc_cv_as_machine_directive != xyes; then
15916 echo "*** This target requires an assembler supporting \".machine\"" >&2
15917 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15918 test x$build = x$target && exit 1
15922 *) conftest_s=' .machine power4
15927 { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15928 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
15929 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 gcc_cv_as_powerpc_mfcrf=no
15933 if test $in_tree_gas = yes; then
15934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15935 then gcc_cv_as_powerpc_mfcrf=yes
15937 elif test x$gcc_cv_as != x; then
15938 echo "$conftest_s" > conftest.s
15939 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }
15946 gcc_cv_as_powerpc_mfcrf=yes
15948 echo "configure: failed program was" >&5
15951 rm -f conftest.o conftest.s
15954 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15955 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
15956 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_AS_MFCRF 1
15965 *-*-aix*) conftest_s=' .machine "pwr5"
15968 *) conftest_s=' .machine power5
15973 { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15974 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
15975 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 gcc_cv_as_powerpc_popcntb=no
15979 if test $in_tree_gas = yes; then
15980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15981 then gcc_cv_as_powerpc_popcntb=yes
15983 elif test x$gcc_cv_as != x; then
15984 echo "$conftest_s" > conftest.s
15985 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }
15992 gcc_cv_as_powerpc_popcntb=yes
15994 echo "configure: failed program was" >&5
15997 rm -f conftest.o conftest.s
16000 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16001 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
16002 if test $gcc_cv_as_powerpc_popcntb = yes; then
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_AS_POPCNTB 1
16011 *-*-aix*) conftest_s=' .machine "pwr5x"
16014 *) conftest_s=' .machine power5
16019 { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16020 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
16021 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 gcc_cv_as_powerpc_fprnd=no
16025 if test $in_tree_gas = yes; then
16026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16027 then gcc_cv_as_powerpc_fprnd=yes
16029 elif test x$gcc_cv_as != x; then
16030 echo "$conftest_s" > conftest.s
16031 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }
16038 gcc_cv_as_powerpc_fprnd=yes
16040 echo "configure: failed program was" >&5
16043 rm -f conftest.o conftest.s
16046 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16047 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
16048 if test $gcc_cv_as_powerpc_fprnd = yes; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_AS_FPRND 1
16057 *-*-aix*) conftest_s=' .machine "pwr6"
16060 *) conftest_s=' .machine power6
16065 { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16066 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
16067 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 gcc_cv_as_powerpc_mfpgpr=no
16071 if test $in_tree_gas = yes; then
16072 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16073 then gcc_cv_as_powerpc_mfpgpr=yes
16075 elif test x$gcc_cv_as != x; then
16076 echo "$conftest_s" > conftest.s
16077 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }
16084 gcc_cv_as_powerpc_mfpgpr=yes
16086 echo "configure: failed program was" >&5
16089 rm -f conftest.o conftest.s
16092 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16093 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
16094 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16096 cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_AS_MFPGPR 1
16103 *-*-aix*) conftest_s=' .csect .text[PR]
16105 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16109 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16110 *) conftest_s=' .text
16112 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16115 { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16116 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
16117 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 gcc_cv_as_powerpc_rel16=no
16121 if test $in_tree_gas = yes; then
16122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16123 then gcc_cv_as_powerpc_rel16=yes
16125 elif test x$gcc_cv_as != x; then
16126 echo "$conftest_s" > conftest.s
16127 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }
16134 gcc_cv_as_powerpc_rel16=yes
16136 echo "configure: failed program was" >&5
16139 rm -f conftest.o conftest.s
16142 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16143 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
16144 if test $gcc_cv_as_powerpc_rel16 = yes; then
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_AS_REL16 1
16153 *-*-aix*) conftest_s=' .machine "pwr6"
16156 *) conftest_s=' .machine power6
16161 { echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16162 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6; }
16163 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 gcc_cv_as_powerpc_cmpb=no
16167 if test $in_tree_gas = yes; then
16168 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16169 then gcc_cv_as_powerpc_cmpb=yes
16171 elif test x$gcc_cv_as != x; then
16172 echo "$conftest_s" > conftest.s
16173 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }
16180 gcc_cv_as_powerpc_cmpb=yes
16182 echo "configure: failed program was" >&5
16185 rm -f conftest.o conftest.s
16188 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16189 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6; }
16190 if test $gcc_cv_as_powerpc_cmpb = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_AS_CMPB 1
16199 *-*-aix*) conftest_s=' .machine "pwr6"
16202 *) conftest_s=' .machine power6
16207 { echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16208 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6; }
16209 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 gcc_cv_as_powerpc_dfp=no
16213 if test $in_tree_gas = yes; then
16214 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16215 then gcc_cv_as_powerpc_dfp=yes
16217 elif test x$gcc_cv_as != x; then
16218 echo "$conftest_s" > conftest.s
16219 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }
16226 gcc_cv_as_powerpc_dfp=yes
16228 echo "configure: failed program was" >&5
16231 rm -f conftest.o conftest.s
16234 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16235 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6; }
16236 if test $gcc_cv_as_powerpc_dfp = yes; then
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_AS_DFP 1
16246 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16247 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16248 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 gcc_cv_as_mips_explicit_relocs=no
16252 if test $in_tree_gas = yes; then
16253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16254 then gcc_cv_as_mips_explicit_relocs=yes
16256 elif test x$gcc_cv_as != x; then
16257 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16258 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }
16265 gcc_cv_as_mips_explicit_relocs=yes
16267 echo "configure: failed program was" >&5
16270 rm -f conftest.o conftest.s
16273 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16274 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
16275 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16276 if test x$target_cpu_default = x
16277 then target_cpu_default=MASK_EXPLICIT_RELOCS
16278 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16281 { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16282 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
16283 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 gcc_cv_as_mips_no_shared=no
16287 if test $in_tree_gas = yes; then
16288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16289 then gcc_cv_as_mips_no_shared=yes
16291 elif test x$gcc_cv_as != x; then
16292 echo 'nop' > conftest.s
16293 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }
16300 gcc_cv_as_mips_no_shared=yes
16302 echo "configure: failed program was" >&5
16305 rm -f conftest.o conftest.s
16308 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16309 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
16310 if test $gcc_cv_as_mips_no_shared = yes; then
16312 cat >>confdefs.h <<\_ACEOF
16313 #define HAVE_AS_NO_SHARED 1
16320 # Mips and HP-UX need the GNU assembler.
16321 # Linux on IA64 might be able to use the Intel assembler.
16324 mips*-*-* | *-*-hpux* )
16325 if test x$gas_flag = xyes \
16326 || test x"$host" != x"$build" \
16327 || test ! -x "$gcc_cv_as" \
16328 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16331 echo "*** This configuration requires the GNU assembler" >&2
16337 # ??? Not all targets support dwarf2 debug_line, even within a version
16338 # of gas. Moreover, we need to emit a valid instruction to trigger any
16339 # info to the output file. So, as supported targets are added to gas 2.11,
16340 # add some instruction here to (also) show we expect this might work.
16341 # ??? Once 2.11 is released, probably need to add first known working
16342 # version to the per-target configury.
16344 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16345 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16346 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16349 ia64*-*-* | s390*-*-*)
16356 if test x"$insn" != x; then
16358 .file 1 \"conftest.s\"
16361 { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16362 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
16363 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 gcc_cv_as_dwarf2_debug_line=no
16367 if test $in_tree_gas = yes; then
16368 if test $in_tree_gas_is_elf = yes \
16369 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16370 then gcc_cv_as_dwarf2_debug_line=yes
16372 elif test x$gcc_cv_as != x; then
16373 echo "$conftest_s" > conftest.s
16374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }
16381 if test x$gcc_cv_objdump != x \
16382 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16383 | grep debug_line > /dev/null 2>&1; then
16384 gcc_cv_as_dwarf2_debug_line=yes
16387 echo "configure: failed program was" >&5
16390 rm -f conftest.o conftest.s
16393 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16394 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
16397 # The .debug_line file table must be in the exact order that
16398 # we specified the files, since these indices are also used
16399 # by DW_AT_decl_file. Approximate this test by testing if
16400 # the assembler bitches if the same index is assigned twice.
16401 { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16402 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
16403 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 gcc_cv_as_dwarf2_file_buggy=no
16407 if test x$gcc_cv_as != x; then
16408 echo ' .file 1 "foo.s"
16409 .file 1 "bar.s"' > conftest.s
16410 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }
16417 gcc_cv_as_dwarf2_file_buggy=yes
16419 echo "configure: failed program was" >&5
16422 rm -f conftest.o conftest.s
16425 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16426 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
16429 if test $gcc_cv_as_dwarf2_debug_line = yes \
16430 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16432 cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16438 { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16439 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
16440 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 gcc_cv_as_gdwarf2_flag=no
16444 if test $in_tree_gas = yes; then
16445 if test $in_tree_gas_is_elf = yes \
16446 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16447 then gcc_cv_as_gdwarf2_flag=yes
16449 elif test x$gcc_cv_as != x; then
16450 echo "$insn" > conftest.s
16451 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }
16458 gcc_cv_as_gdwarf2_flag=yes
16460 echo "configure: failed program was" >&5
16463 rm -f conftest.o conftest.s
16466 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16467 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
16468 if test $gcc_cv_as_gdwarf2_flag = yes; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16476 { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16477 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
16478 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 gcc_cv_as_gstabs_flag=no
16482 if test $in_tree_gas = yes; then
16483 if test $in_tree_gas_is_elf = yes \
16484 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16485 then gcc_cv_as_gstabs_flag=yes
16487 elif test x$gcc_cv_as != x; then
16488 echo "$insn" > conftest.s
16489 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }
16496 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16497 # and warns about it, but still exits successfully. So check for
16499 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }
16506 else gcc_cv_as_gstabs_flag=yes
16509 echo "configure: failed program was" >&5
16512 rm -f conftest.o conftest.s
16515 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16516 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
16517 if test $gcc_cv_as_gstabs_flag = yes; then
16519 cat >>confdefs.h <<\_ACEOF
16520 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16526 { echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16527 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6; }
16528 if test "${gcc_cv_as_line_zero+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 gcc_cv_as_line_zero=no
16532 if test $in_tree_gas = yes; then
16533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16534 then gcc_cv_as_line_zero=yes
16536 elif test "x$gcc_cv_as" != x; then
16537 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16538 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 test "x`cat conftest.out`" = x
16546 gcc_cv_as_line_zero=yes
16548 echo "configure: failed program was" >&5
16550 echo "configure: error output was" >&5
16551 cat conftest.out >&5
16553 rm -f conftest.o conftest.s conftest.out
16556 { echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16557 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6; }
16558 if test "x$gcc_cv_as_line_zero" = xyes; then
16560 cat >>confdefs.h <<\_ACEOF
16561 #define HAVE_AS_LINE_ZERO 1
16566 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16567 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
16568 gcc_cv_ld_ro_rw_mix=unknown
16569 if test $in_tree_ld = yes ; then
16570 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 \
16571 && test $in_tree_ld_is_elf = yes; then
16572 gcc_cv_ld_ro_rw_mix=read-write
16574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16575 echo '.section myfoosect, "a"' > conftest1.s
16576 echo '.section myfoosect, "aw"' > conftest2.s
16577 echo '.byte 1' >> conftest2.s
16578 echo '.section myfoosect, "a"' > conftest3.s
16579 echo '.byte 0' >> conftest3.s
16580 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16581 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16582 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16583 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16584 conftest2.o conftest3.o > /dev/null 2>&1; then
16585 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16586 | sed -e '/myfoosect/!d' -e N`
16587 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16588 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16589 gcc_cv_ld_ro_rw_mix=read-only
16591 gcc_cv_ld_ro_rw_mix=read-write
16595 rm -f conftest.* conftest[123].*
16597 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16604 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16605 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
16607 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16608 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
16609 gcc_cv_ld_eh_frame_hdr=no
16610 if test $in_tree_ld = yes ; then
16611 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 \
16612 && test $in_tree_ld_is_elf = yes; then
16613 gcc_cv_ld_eh_frame_hdr=yes
16615 elif test x$gcc_cv_ld != x; then
16616 # Check if linker supports --eh-frame-hdr option
16617 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16618 gcc_cv_ld_eh_frame_hdr=yes
16622 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16624 cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_LD_EH_FRAME_HDR 1
16629 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16630 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
16632 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16633 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
16635 if test $in_tree_ld = yes ; then
16636 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 \
16637 && test $in_tree_ld_is_elf = yes; then
16640 elif test x$gcc_cv_ld != x; then
16641 # Check if linker supports -pie option
16642 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16646 if test x"$gcc_cv_ld_pie" = xyes; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_LD_PIE 1
16653 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16654 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
16656 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16657 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
16658 gcc_cv_ld_eh_gc_sections=no
16659 if test $in_tree_ld = yes ; then
16660 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 \
16661 && test $in_tree_ld_is_elf = yes; then
16662 gcc_cv_ld_eh_gc_sections=yes
16664 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16665 cat > conftest.s <<EOF
16668 .type _start, @function
16671 .size _start, .-_start
16672 .section .text.foo,"ax",@progbits
16673 .type foo, @function
16677 .section .gcc_except_table.foo,"a",@progbits
16680 .section .eh_frame,"a",@progbits
16683 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16684 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16685 | grep "gc-sections option ignored" > /dev/null; then
16686 gcc_cv_ld_eh_gc_sections=no
16687 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16688 gcc_cv_ld_eh_gc_sections=yes
16689 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16690 if test x$gcc_cv_as_comdat_group != xyes; then
16691 gcc_cv_ld_eh_gc_sections=no
16692 cat > conftest.s <<EOF
16695 .type _start, @function
16698 .size _start, .-_start
16699 .section .gnu.linkonce.t.foo,"ax",@progbits
16700 .type foo, @function
16704 .section .gcc_except_table.foo,"a",@progbits
16707 .section .eh_frame,"a",@progbits
16710 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16711 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16712 | grep "gc-sections option ignored" > /dev/null; then
16713 gcc_cv_ld_eh_gc_sections=no
16714 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16715 gcc_cv_ld_eh_gc_sections=yes
16721 rm -f conftest.s conftest.o conftest
16725 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16726 gcc_cv_ld_eh_gc_sections=no
16729 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE_LD_EH_GC_SECTIONS 1
16736 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16737 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
16743 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16744 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
16745 if test "${gcc_cv_ld_as_needed+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 gcc_cv_ld_as_needed=no
16749 if test $in_tree_ld = yes ; then
16750 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 \
16751 && test $in_tree_ld_is_elf = yes; then
16752 gcc_cv_ld_as_needed=yes
16754 elif test x$gcc_cv_ld != x; then
16755 # Check if linker supports --as-needed and --no-as-needed options
16756 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16757 gcc_cv_ld_as_needed=yes
16762 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16763 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
16764 if test x"$gcc_cv_ld_as_needed" = xyes; then
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_LD_AS_NEEDED 1
16772 case "$target:$tm_file" in
16773 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16774 { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16775 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
16776 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 gcc_cv_ld_no_dot_syms=no
16780 if test $in_tree_ld = yes ; then
16781 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
16782 gcc_cv_ld_no_dot_syms=yes
16784 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16785 cat > conftest1.s <<EOF
16789 cat > conftest2.s <<EOF
16790 .section ".opd","aw"
16793 .type foo,@function
16795 .quad .LEfoo,.TOC.@tocbase,0
16801 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16802 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16803 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16804 gcc_cv_ld_no_dot_syms=yes
16806 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16810 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16811 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
16812 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16814 cat >>confdefs.h <<\_ACEOF
16815 #define HAVE_LD_NO_DOT_SYMS 1
16822 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16823 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
16824 if test "${gcc_cv_ld_sysroot+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 gcc_cv_ld_sysroot=no
16828 if test $in_tree_ld = yes ; then
16829 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
16830 gcc_cv_ld_sysroot=yes
16832 elif test x$gcc_cv_ld != x; then
16833 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16834 gcc_cv_ld_sysroot=yes
16838 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16839 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
16840 if test x"$gcc_cv_ld_sysroot" = xyes; then
16842 cat >>confdefs.h <<\_ACEOF
16843 #define HAVE_LD_SYSROOT 1
16848 if test x$with_sysroot = x && test x$host = x$target \
16849 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16850 && test "$prefix" != "NONE"; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define PREFIX_INCLUDE_DIR "$prefix/include"
16858 # Test for stack protector support in target C library.
16859 { echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16860 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6; }
16861 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 gcc_cv_libc_provides_ssp=no
16867 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16868 if test "x$with_sysroot" = x; then
16869 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16870 elif test "x$with_build_sysroot" != "x"; then
16871 glibc_header_dir="${with_build_sysroot}/usr/include"
16872 elif test "x$with_sysroot" = xyes; then
16873 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16875 glibc_header_dir="${with_sysroot}/usr/include"
16878 glibc_header_dir=/usr/include
16880 # glibc 2.4 and later provides __stack_chk_fail and
16881 # either __stack_chk_guard, or TLS access to stack guard canary.
16882 if test -f $glibc_header_dir/features.h \
16883 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16884 $glibc_header_dir/features.h > /dev/null; then
16885 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16886 $glibc_header_dir/features.h > /dev/null; then
16887 gcc_cv_libc_provides_ssp=yes
16888 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16889 $glibc_header_dir/features.h > /dev/null \
16890 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16891 $glibc_header_dir/features.h > /dev/null; then
16892 gcc_cv_libc_provides_ssp=yes
16897 { echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16898 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6; }
16899 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910 #define __stack_chk_fail innocuous___stack_chk_fail
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char __stack_chk_fail (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16918 # include <limits.h>
16920 # include <assert.h>
16923 #undef __stack_chk_fail
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16931 char __stack_chk_fail ();
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined __stub___stack_chk_fail || defined __stub_____stack_chk_fail
16942 return __stack_chk_fail ();
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_link") 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } && {
16961 test -z "$ac_c_werror_flag" ||
16962 test ! -s conftest.err
16963 } && test -s conftest$ac_exeext &&
16964 $as_test_x conftest$ac_exeext; then
16965 ac_cv_func___stack_chk_fail=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_func___stack_chk_fail=no
16973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16974 conftest$ac_exeext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16977 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6; }
16978 if test $ac_cv_func___stack_chk_fail = yes; then
16979 gcc_cv_libc_provides_ssp=yes
16981 echo "no __stack_chk_fail on this target"
16985 *) gcc_cv_libc_provides_ssp=no ;;
16988 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16989 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; }
16991 if test x$gcc_cv_libc_provides_ssp = xyes; then
16993 cat >>confdefs.h <<\_ACEOF
16994 #define TARGET_LIBC_PROVIDES_SSP 1
16999 # Check if TFmode long double should be used by default or not.
17000 # Some glibc targets used DFmode long double, but with glibc 2.4
17001 # and later they can use TFmode.
17003 powerpc*-*-*gnu* | \
17004 sparc*-*-linux* | \
17008 # Check whether --with-long-double-128 was given.
17009 if test "${with_long_double_128+set}" = set; then
17010 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
17012 gcc_cv_target_ldbl128=no
17013 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17014 if test "x$with_sysroot" = x; then
17015 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17016 elif test "x$with_build_sysroot" != "x"; then
17017 glibc_header_dir="${with_build_sysroot}/usr/include"
17018 elif test "x$with_sysroot" = xyes; then
17019 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17021 glibc_header_dir="${with_sysroot}/usr/include"
17024 glibc_header_dir=/usr/include
17026 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17027 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17028 && gcc_cv_target_ldbl128=yes
17034 if test x$gcc_cv_target_ldbl128 = xyes; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17042 # Find out what GC implementation we want, or may, use.
17044 # Check whether --with-gc was given.
17045 if test "${with_gc+set}" = set; then
17046 withval=$with_gc; case "$withval" in
17053 cat >>confdefs.h <<\_ACEOF
17059 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17060 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17061 { (exit 1); exit 1; }; }
17069 echo "Using $GGC for garbage collection."
17071 # Use the system's zlib library.
17073 zlibinc="-I\$(srcdir)/../zlib"
17075 # Check whether --with-system-zlib was given.
17076 if test "${with_system_zlib+set}" = set; then
17077 withval=$with_system_zlib; zlibdir=
17086 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17087 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
17088 # Check whether --enable-maintainer-mode was given.
17089 if test "${enable_maintainer_mode+set}" = set; then
17090 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
17096 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17097 echo "${ECHO_T}$maintainer_mode" >&6; }
17099 if test "$maintainer_mode" = "yes"; then
17109 # Make empty files to contain the specs and options for each language.
17110 # Then add #include lines to for a compiler that has specs and/or options.
17116 # These (without "all_") are set in each config-lang.in.
17117 # `language' must be a single word so is spelled singularly.
17120 all_outputs='Makefile gccbug libada-mk'
17121 # List of language makefile fragments.
17122 all_lang_makefrags=
17123 # List of language subdirectory makefiles. Deprecated.
17124 all_lang_makefiles=
17125 # Additional files for gengtype
17126 all_gtfiles="$target_gtfiles"
17128 # These are the languages that are set in --enable-languages,
17129 # and are available in the GCC tree.
17130 all_selected_languages=
17132 # Add the language fragments.
17133 # Languages are added via two mechanisms. Some information must be
17134 # recorded in makefile variables, these are defined in config-lang.in.
17135 # We accumulate them and plug them into the main Makefile.
17136 # The other mechanism is a set of hooks for each of the main targets
17137 # like `clean', `install', etc.
17139 language_hooks="Make-hooks"
17141 for lang in ${srcdir}/*/config-lang.in
17143 test "$lang" = "${srcdir}/*/config-lang.in" && continue
17145 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
17146 if test "x$lang_alias" = x
17148 echo "$lang doesn't set \$language." 1>&2
17151 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17152 subdirs="$subdirs $subdir"
17153 case ",$enable_languages," in
17155 all_selected_languages="$all_selected_languages $lang_alias"
17156 if test -f $srcdir/$subdir/lang-specs.h; then
17157 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17168 . ${srcdir}/$subdir/config-lang.in
17169 if test "x$language" = x
17171 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17176 case ",$enable_languages," in
17177 *,$lang_alias,*) ;;
17179 for i in $subdir_requires; do
17180 test -f "${srcdir}/$i/config-lang.in" && continue
17188 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17189 if test -f $srcdir/$subdir/lang.opt; then
17190 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17192 if test -f $srcdir/$subdir/$subdir-tree.def; then
17193 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17195 if test -f ${srcdir}/$subdir/Makefile.in
17196 then all_lang_makefiles="$subdir/Makefile"
17198 all_languages="$all_languages $language"
17199 all_compilers="$all_compilers $compilers"
17200 all_outputs="$all_outputs $outputs"
17201 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17204 # Pick up gtfiles for c
17206 . ${srcdir}/c-config-lang.in
17207 all_gtfiles="$all_gtfiles [c] $gtfiles"
17210 for language in $all_selected_languages
17212 check_languages="$check_languages check-$language"
17215 # We link each language in with a set of hooks, reached indirectly via
17216 # lang.${target}. Only do so for selected languages.
17220 target_list="all.cross start.encap rest.encap tags \
17221 install-common install-man install-info install-pdf dvi pdf \
17222 html uninstall info man srcextra srcman srcinfo \
17223 mostlyclean clean distclean maintainer-clean"
17225 for t in $target_list
17228 for lang in $all_selected_languages
17232 echo "lang.$t: $x" >> Make-hooks
17241 echo "dir ." > .gdbinit
17242 echo "dir ${srcdir}" >> .gdbinit
17243 if test x$gdb_needs_out_file_path = xyes
17245 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17247 if test "x$subdirs" != x; then
17250 echo "dir ${srcdir}/$s" >> .gdbinit
17253 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17255 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17256 # absolute path for gcc_tooldir based on inserting the number of up-directory
17257 # movements required to get from $(exec_prefix) to $(prefix) into the basic
17258 # $(libsubdir)/@(unlibsubdir) based path.
17259 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17260 # make and thus we'd get different behavior depending on where we built the
17262 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17263 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17265 # An explanation of the sed strings:
17266 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
17267 # -e 's|/$||' match a trailing forward slash and eliminates it
17268 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
17269 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
17271 # (*) Note this pattern overwrites the first character of the string
17272 # with a forward slash if one is not already present. This is not a
17273 # problem because the exact names of the sub-directories concerned is
17274 # unimportant, just the number of them matters.
17276 # The practical upshot of these patterns is like this:
17278 # prefix exec_prefix result
17279 # ------ ----------- ------
17280 # /foo /foo/bar ../
17281 # /foo/ /foo/bar ../
17282 # /foo /foo/bar/ ../
17283 # /foo/ /foo/bar/ ../
17284 # /foo /foo/bar/ugg ../../
17287 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
17292 # Find a directory in which to install a shared libgcc.
17294 # Check whether --enable-version-specific-runtime-libs was given.
17295 if test "${enable_version_specific_runtime_libs+set}" = set; then
17296 enableval=$enable_version_specific_runtime_libs;
17301 # Check whether --with-slibdir was given.
17302 if test "${with_slibdir+set}" = set; then
17303 withval=$with_slibdir; slibdir="$with_slibdir"
17305 if test "${enable_version_specific_runtime_libs+set}" = set; then
17306 slibdir='$(libsubdir)'
17307 elif test "$host" != "$target"; then
17308 slibdir='$(build_tooldir)/lib'
17310 slibdir='$(libdir)'
17316 objdir=`${PWDCMD-pwd}`
17320 # Check whether --with-datarootdir was given.
17321 if test "${with_datarootdir+set}" = set; then
17322 withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
17324 datarootdir='$(prefix)/share'
17330 # Check whether --with-docdir was given.
17331 if test "${with_docdir+set}" = set; then
17332 withval=$with_docdir; docdir="\${prefix}/$with_docdir"
17334 docdir='$(datarootdir)'
17340 # Check whether --with-htmldir was given.
17341 if test "${with_htmldir+set}" = set; then
17342 withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
17344 htmldir='$(docdir)'
17349 # Substitute configuration variables
17406 if test x${build} = x${host} ; then
17407 if test x${host} = x${target} ; then
17408 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17410 echo "Links are now set up to build a cross-compiler" 1>&2
17411 echo " from ${host} to ${target}." 1>&2
17414 if test x${host} = x${target} ; then
17415 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17416 echo " for ${target}." 1>&2
17418 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17419 echo " from ${host} to ${target}." 1>&2
17426 # Configure the subdirectories
17427 # AC_CONFIG_SUBDIRS($subdirs)
17429 # Create the Makefile
17430 # and configure language subdirectories
17431 ac_config_files="$ac_config_files $all_outputs"
17434 ac_config_commands="$ac_config_commands default"
17436 cat >confcache <<\_ACEOF
17437 # This file is a shell script that caches the results of configure
17438 # tests run on this system so they can be shared between configure
17439 # scripts and configure runs, see configure's option --config-cache.
17440 # It is not useful on other systems. If it contains results you don't
17441 # want to keep, you may remove or edit it.
17443 # config.status only pays attention to the cache file if you give it
17444 # the --recheck option to rerun configure.
17446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17448 # following values.
17452 # The following way of writing the cache mishandles newlines in values,
17453 # but we know of no workaround that is simple, portable, and efficient.
17454 # So, we kill variables containing newlines.
17455 # Ultrix sh set writes to stderr and can't be redirected directly,
17456 # and sets the high bit in the cache file unless we assign to the vars.
17458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17459 eval ac_val=\$$ac_var
17463 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17464 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17467 _ | IFS | as_nl) ;; #(
17468 *) $as_unset $ac_var ;;
17474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17475 *${as_nl}ac_space=\ *)
17476 # `set' does not quote correctly, so add quotes (double-quote
17477 # substitution turns \\\\ into \\, and sed turns \\ into \).
17480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17483 # `set' quotes correctly as required by POSIX, so do not add quotes.
17484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17498 if test -w "$cache_file"; then
17499 test "x$cache_file" != "x/dev/null" &&
17500 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17501 echo "$as_me: updating cache $cache_file" >&6;}
17502 cat confcache >$cache_file
17504 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17505 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17511 # Let make expand exec_prefix.
17512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17514 DEFS=-DHAVE_CONFIG_H
17518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17519 # 1. Remove the extension, and $U if already installed.
17520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17521 ac_i=`echo "$ac_i" | sed "$ac_script"`
17522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17523 # will be set to the directory where LIBOBJS objects are built.
17524 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17525 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17527 LIBOBJS=$ac_libobjs
17529 LTLIBOBJS=$ac_ltlibobjs
17533 : ${CONFIG_STATUS=./config.status}
17534 ac_clean_files_save=$ac_clean_files
17535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17538 cat >$CONFIG_STATUS <<_ACEOF
17540 # Generated by $as_me.
17541 # Run this file to recreate the current configuration.
17542 # Compiler output produced by configure, useful for debugging
17543 # configure, is in config.log if it exists.
17546 ac_cs_recheck=false
17548 SHELL=\${CONFIG_SHELL-$SHELL}
17551 cat >>$CONFIG_STATUS <<\_ACEOF
17552 ## --------------------- ##
17553 ## M4sh Initialization. ##
17554 ## --------------------- ##
17556 # Be more Bourne compatible
17557 DUALCASE=1; export DUALCASE # for MKS sh
17558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17562 # is contrary to our usage. Disable this feature.
17563 alias -g '${1+"$@"}'='"$@"'
17564 setopt NO_GLOB_SUBST
17566 case `(set -o) 2>/dev/null` in
17567 *posix*) set -o posix ;;
17576 # Avoid depending upon Character Ranges.
17577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17580 as_cr_digits='0123456789'
17581 as_cr_alnum=$as_cr_Letters$as_cr_digits
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585 echo "#! /bin/sh" >conf$$.sh
17586 echo "exit 0" >>conf$$.sh
17588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17596 # Support unset when possible.
17597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17605 # We need space, tab and new line, in precisely that order. Quoting is
17606 # there to prevent editors from complaining about space-tab.
17607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17608 # splitting by setting IFS to empty value.)
17613 # Find who we are. Look in the path if we contain no directory separator.
17615 *[\\/]* ) as_myself=$0 ;;
17616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17620 test -z "$as_dir" && as_dir=.
17621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17627 # We did not find ourselves, most probably we were run as `sh COMMAND'
17628 # in which case we are not to be found in the path.
17629 if test "x$as_myself" = x; then
17632 if test ! -f "$as_myself"; then
17633 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17634 { (exit 1); exit 1; }
17637 # Work around bugs in pre-3.0 UWIN ksh.
17638 for as_var in ENV MAIL MAILPATH
17639 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17647 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17648 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17649 LC_TELEPHONE LC_TIME
17651 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17652 eval $as_var=C; export $as_var
17654 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17658 # Required to use basename.
17659 if expr a : '\(a\)' >/dev/null 2>&1 &&
17660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17667 as_basename=basename
17673 # Name of the executable.
17674 as_me=`$as_basename -- "$0" ||
17675 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17676 X"$0" : 'X\(//\)$' \| \
17677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17679 sed '/^.*\/\([^/][^/]*\)\/*$/{
17698 as_lineno_1=$LINENO
17699 as_lineno_2=$LINENO
17700 test "x$as_lineno_1" != "x$as_lineno_2" &&
17701 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17703 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17704 # uniformly replaced by the line number. The first 'sed' inserts a
17705 # line-number line after each line using $LINENO; the second 'sed'
17706 # does the real work. The second script uses 'N' to pair each
17707 # line-number line with the line containing $LINENO, and appends
17708 # trailing '-' during substitution so that $LINENO is not a special
17709 # case at line end.
17710 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17711 # scripts with optimization help from Paolo Bonzini. Blame Lee
17712 # E. McMahon (1931-1989) for sed's syntax. :-)
17724 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17727 ' >$as_me.lineno &&
17728 chmod +x "$as_me.lineno" ||
17729 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17730 { (exit 1); exit 1; }; }
17732 # Don't try to exec as it changes $[0], causing all sort of problems
17733 # (the dirname of $[0] is not the place where we might find the
17734 # original and so on. Autoconf is especially sensitive to this).
17735 . "./$as_me.lineno"
17736 # Exit status is that of the last command.
17741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17747 ECHO_C= ECHO_N= ECHO_T=
17748 case `echo -n x` in
17750 case `echo 'x\c'` in
17751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17758 if expr a : '\(a\)' >/dev/null 2>&1 &&
17759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17765 rm -f conf$$ conf$$.exe conf$$.file
17766 if test -d conf$$.dir; then
17767 rm -f conf$$.dir/conf$$.file
17773 if ln -s conf$$.file conf$$ 2>/dev/null; then
17775 # ... but there are two gotchas:
17776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17778 # In both cases, we have to default to `cp -p'.
17779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17781 elif ln conf$$.file conf$$ 2>/dev/null; then
17786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17787 rmdir conf$$.dir 2>/dev/null
17789 if mkdir -p . 2>/dev/null; then
17792 test -d ./-p && rmdir ./-p
17796 if test -x / >/dev/null 2>&1; then
17797 as_test_x='test -x'
17799 if ls -dL / >/dev/null 2>&1; then
17806 if test -d "$1"; then
17812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17813 ???[sx]*):;;*)false;;esac;fi
17817 as_executable_p=$as_test_x
17819 # Sed expression to map a string onto a valid CPP name.
17820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17822 # Sed expression to map a string onto a valid variable name.
17823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17828 # Save the log message, to keep $[0] and so on meaningful, and to
17829 # report actual input values of CONFIG_FILES etc. instead of their
17830 # values after options handling.
17832 This file was extended by $as_me, which was
17833 generated by GNU Autoconf 2.61. Invocation command line was
17835 CONFIG_FILES = $CONFIG_FILES
17836 CONFIG_HEADERS = $CONFIG_HEADERS
17837 CONFIG_LINKS = $CONFIG_LINKS
17838 CONFIG_COMMANDS = $CONFIG_COMMANDS
17841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17846 cat >>$CONFIG_STATUS <<_ACEOF
17847 # Files that config.status was made for.
17848 config_files="$ac_config_files"
17849 config_headers="$ac_config_headers"
17850 config_commands="$ac_config_commands"
17854 cat >>$CONFIG_STATUS <<\_ACEOF
17856 \`$as_me' instantiates files from templates according to the
17857 current configuration.
17859 Usage: $0 [OPTIONS] [FILE]...
17861 -h, --help print this help, then exit
17862 -V, --version print version number and configuration settings, then exit
17863 -q, --quiet do not print progress messages
17864 -d, --debug don't remove temporary files
17865 --recheck update $as_me by reconfiguring in the same conditions
17866 --file=FILE[:TEMPLATE]
17867 instantiate the configuration file FILE
17868 --header=FILE[:TEMPLATE]
17869 instantiate the configuration header FILE
17871 Configuration files:
17874 Configuration headers:
17877 Configuration commands:
17880 Report bugs to <bug-autoconf@gnu.org>."
17883 cat >>$CONFIG_STATUS <<_ACEOF
17886 configured by $0, generated by GNU Autoconf 2.61,
17887 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17889 Copyright (C) 2006 Free Software Foundation, Inc.
17890 This config.status script is free software; the Free Software Foundation
17891 gives unlimited permission to copy, distribute and modify it."
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17898 # If no file are specified by the user, then we need to provide default
17899 # value. By we need to know if files were specified by the user.
17905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17917 # Handling of the options.
17918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17921 echo "$ac_cs_version"; exit ;;
17922 --debug | --debu | --deb | --de | --d | -d )
17924 --file | --fil | --fi | --f )
17926 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17927 ac_need_defaults=false;;
17928 --header | --heade | --head | --hea )
17930 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17931 ac_need_defaults=false;;
17933 # Conflict between --help and --header
17934 { echo "$as_me: error: ambiguous option: $1
17935 Try \`$0 --help' for more information." >&2
17936 { (exit 1); exit 1; }; };;
17937 --help | --hel | -h )
17938 echo "$ac_cs_usage"; exit ;;
17939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17940 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17943 # This is an error.
17944 -*) { echo "$as_me: error: unrecognized option: $1
17945 Try \`$0 --help' for more information." >&2
17946 { (exit 1); exit 1; }; } ;;
17948 *) ac_config_targets="$ac_config_targets $1"
17949 ac_need_defaults=false ;;
17955 ac_configure_extra_args=
17957 if $ac_cs_silent; then
17959 ac_configure_extra_args="$ac_configure_extra_args --silent"
17963 cat >>$CONFIG_STATUS <<_ACEOF
17964 if \$ac_cs_recheck; then
17965 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17966 CONFIG_SHELL=$SHELL
17967 export CONFIG_SHELL
17968 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17977 ## Running $as_me. ##
17983 cat >>$CONFIG_STATUS <<_ACEOF
17991 cat >>$CONFIG_STATUS <<\_ACEOF
17993 # Handling of arguments.
17994 for ac_config_target in $ac_config_targets
17996 case $ac_config_target in
17997 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17998 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17999 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18003 { (exit 1); exit 1; }; };;
18008 # If the user did not use the arguments to specify the items to instantiate,
18009 # then the envvar interface is used. Set only those that are not.
18010 # We use the long form for the default assignment because of an extremely
18011 # bizarre bug on SunOS 4.1.3.
18012 if $ac_need_defaults; then
18013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18018 # Have a temporary directory for convenience. Make it in the build tree
18019 # simply because there is no reason against having it here, and in addition,
18020 # creating and moving files from /tmp can sometimes cause problems.
18021 # Hook for its removal unless debugging.
18022 # Note that there is a small window in which the directory will not be cleaned:
18023 # after its creation but before its name has been assigned to `$tmp'.
18027 trap 'exit_status=$?
18028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18030 trap '{ (exit 1); exit 1; }' 1 2 13 15
18032 # Create a (secure) tmp directory for tmp files.
18035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18036 test -n "$tmp" && test -d "$tmp"
18039 tmp=./conf$$-$RANDOM
18040 (umask 077 && mkdir "$tmp")
18043 echo "$me: cannot create a temporary directory in ." >&2
18044 { (exit 1); exit 1; }
18048 # Set up the sed scripts for CONFIG_FILES section.
18051 # No need to generate the scripts if there are no CONFIG_FILES.
18052 # This happens for instance when ./config.status config.h
18053 if test -n "$CONFIG_FILES"; then
18057 # Create sed commands to just substitute file output variables.
18059 # Remaining file output variables are in a fragment that also has non-file
18065 for ac_last_try in false false false false false :; do
18066 cat >conf$$subs.sed <<_ACEOF
18067 SHELL!$SHELL$ac_delim
18068 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18069 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18070 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18071 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18072 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18073 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18074 exec_prefix!$exec_prefix$ac_delim
18075 prefix!$prefix$ac_delim
18076 program_transform_name!$program_transform_name$ac_delim
18077 bindir!$bindir$ac_delim
18078 sbindir!$sbindir$ac_delim
18079 libexecdir!$libexecdir$ac_delim
18080 datarootdir!$datarootdir$ac_delim
18081 datadir!$datadir$ac_delim
18082 sysconfdir!$sysconfdir$ac_delim
18083 sharedstatedir!$sharedstatedir$ac_delim
18084 localstatedir!$localstatedir$ac_delim
18085 includedir!$includedir$ac_delim
18086 oldincludedir!$oldincludedir$ac_delim
18087 docdir!$docdir$ac_delim
18088 infodir!$infodir$ac_delim
18089 htmldir!$htmldir$ac_delim
18090 dvidir!$dvidir$ac_delim
18091 pdfdir!$pdfdir$ac_delim
18092 psdir!$psdir$ac_delim
18093 libdir!$libdir$ac_delim
18094 localedir!$localedir$ac_delim
18095 mandir!$mandir$ac_delim
18096 DEFS!$DEFS$ac_delim
18097 ECHO_C!$ECHO_C$ac_delim
18098 ECHO_N!$ECHO_N$ac_delim
18099 ECHO_T!$ECHO_T$ac_delim
18100 LIBS!$LIBS$ac_delim
18101 build_alias!$build_alias$ac_delim
18102 host_alias!$host_alias$ac_delim
18103 target_alias!$target_alias$ac_delim
18104 build!$build$ac_delim
18105 build_cpu!$build_cpu$ac_delim
18106 build_vendor!$build_vendor$ac_delim
18107 build_os!$build_os$ac_delim
18108 host!$host$ac_delim
18109 host_cpu!$host_cpu$ac_delim
18110 host_vendor!$host_vendor$ac_delim
18111 host_os!$host_os$ac_delim
18112 target!$target$ac_delim
18113 target_cpu!$target_cpu$ac_delim
18114 target_vendor!$target_vendor$ac_delim
18115 target_os!$target_os$ac_delim
18116 target_noncanonical!$target_noncanonical$ac_delim
18117 build_libsubdir!$build_libsubdir$ac_delim
18118 build_subdir!$build_subdir$ac_delim
18119 host_subdir!$host_subdir$ac_delim
18120 target_subdir!$target_subdir$ac_delim
18121 GENINSRC!$GENINSRC$ac_delim
18123 CFLAGS!$CFLAGS$ac_delim
18124 LDFLAGS!$LDFLAGS$ac_delim
18125 CPPFLAGS!$CPPFLAGS$ac_delim
18126 ac_ct_CC!$ac_ct_CC$ac_delim
18127 EXEEXT!$EXEEXT$ac_delim
18128 OBJEXT!$OBJEXT$ac_delim
18129 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
18130 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
18132 GREP!$GREP$ac_delim
18133 EGREP!$EGREP$ac_delim
18134 strict_warn!$strict_warn$ac_delim
18135 cxx_compat_warn!$cxx_compat_warn$ac_delim
18136 warn_cflags!$warn_cflags$ac_delim
18137 nocommon_flag!$nocommon_flag$ac_delim
18138 TREEBROWSER!$TREEBROWSER$ac_delim
18139 valgrind_path!$valgrind_path$ac_delim
18140 valgrind_path_defines!$valgrind_path_defines$ac_delim
18141 valgrind_command!$valgrind_command$ac_delim
18142 coverage_flags!$coverage_flags$ac_delim
18143 enable_multilib!$enable_multilib$ac_delim
18144 enable_decimal_float!$enable_decimal_float$ac_delim
18145 enable_shared!$enable_shared$ac_delim
18146 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
18147 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
18148 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
18149 onestep!$onestep$ac_delim
18150 SET_MAKE!$SET_MAKE$ac_delim
18152 LN_S!$LN_S$ac_delim
18154 RANLIB!$RANLIB$ac_delim
18155 ranlib_flags!$ranlib_flags$ac_delim
18156 INSTALL!$INSTALL$ac_delim
18157 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18158 INSTALL_DATA!$INSTALL_DATA$ac_delim
18159 make_compare_target!$make_compare_target$ac_delim
18160 have_mktemp_command!$have_mktemp_command$ac_delim
18163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
18165 elif $ac_last_try; then
18166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18168 { (exit 1); exit 1; }; }
18170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18175 if test -n "$ac_eof"; then
18176 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18177 ac_eof=`expr $ac_eof + 1`
18180 cat >>$CONFIG_STATUS <<_ACEOF
18181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18183 /^[ ]*@language_hooks@[ ]*$/{
18189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18190 s/^/s,@/; s/!/@,|#_!!_#|/
18193 s/'"$ac_delim"'$/,g/; t
18195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18196 ' >>$CONFIG_STATUS <conf$$subs.sed
18197 rm -f conf$$subs.sed
18198 cat >>$CONFIG_STATUS <<_ACEOF
18204 for ac_last_try in false false false false false :; do
18205 cat >conf$$subs.sed <<_ACEOF
18206 MAKEINFO!$MAKEINFO$ac_delim
18207 BUILD_INFO!$BUILD_INFO$ac_delim
18208 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
18209 FLEX!$FLEX$ac_delim
18210 BISON!$BISON$ac_delim
18213 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
18214 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
18215 LDEXP_LIB!$LDEXP_LIB$ac_delim
18216 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
18217 LIBICONV!$LIBICONV$ac_delim
18218 LTLIBICONV!$LTLIBICONV$ac_delim
18219 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
18220 manext!$manext$ac_delim
18221 objext!$objext$ac_delim
18222 gthread_flags!$gthread_flags$ac_delim
18223 extra_modes_file!$extra_modes_file$ac_delim
18224 extra_opt_files!$extra_opt_files$ac_delim
18225 USE_NLS!$USE_NLS$ac_delim
18226 LIBINTL!$LIBINTL$ac_delim
18227 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
18228 INCINTL!$INCINTL$ac_delim
18229 XGETTEXT!$XGETTEXT$ac_delim
18230 GMSGFMT!$GMSGFMT$ac_delim
18231 POSUB!$POSUB$ac_delim
18232 CATALOGS!$CATALOGS$ac_delim
18233 DATADIRNAME!$DATADIRNAME$ac_delim
18234 INSTOBJEXT!$INSTOBJEXT$ac_delim
18235 GENCAT!$GENCAT$ac_delim
18236 CATOBJEXT!$CATOBJEXT$ac_delim
18237 host_cc_for_libada!$host_cc_for_libada$ac_delim
18238 CROSS!$CROSS$ac_delim
18240 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
18241 inhibit_libc!$inhibit_libc$ac_delim
18242 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
18243 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
18244 STMP_FIXINC!$STMP_FIXINC$ac_delim
18245 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
18246 collect2!$collect2$ac_delim
18247 gcc_cv_as!$gcc_cv_as$ac_delim
18248 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
18249 gcc_cv_ld!$gcc_cv_ld$ac_delim
18250 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
18251 gcc_cv_nm!$gcc_cv_nm$ac_delim
18252 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
18253 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
18254 libgcc_visibility!$libgcc_visibility$ac_delim
18256 zlibdir!$zlibdir$ac_delim
18257 zlibinc!$zlibinc$ac_delim
18258 MAINT!$MAINT$ac_delim
18259 gcc_tooldir!$gcc_tooldir$ac_delim
18260 dollar!$dollar$ac_delim
18261 slibdir!$slibdir$ac_delim
18262 objdir!$objdir$ac_delim
18263 subdirs!$subdirs$ac_delim
18264 srcdir!$srcdir$ac_delim
18265 all_compilers!$all_compilers$ac_delim
18266 all_gtfiles!$all_gtfiles$ac_delim
18267 all_lang_makefrags!$all_lang_makefrags$ac_delim
18268 all_lang_makefiles!$all_lang_makefiles$ac_delim
18269 all_languages!$all_languages$ac_delim
18270 all_selected_languages!$all_selected_languages$ac_delim
18271 build_exeext!$build_exeext$ac_delim
18272 build_install_headers_dir!$build_install_headers_dir$ac_delim
18273 build_xm_file_list!$build_xm_file_list$ac_delim
18274 build_xm_include_list!$build_xm_include_list$ac_delim
18275 build_xm_defines!$build_xm_defines$ac_delim
18276 check_languages!$check_languages$ac_delim
18277 cpp_install_dir!$cpp_install_dir$ac_delim
18278 xmake_file!$xmake_file$ac_delim
18279 tmake_file!$tmake_file$ac_delim
18280 extra_gcc_objs!$extra_gcc_objs$ac_delim
18281 extra_headers_list!$extra_headers_list$ac_delim
18282 extra_objs!$extra_objs$ac_delim
18283 extra_parts!$extra_parts$ac_delim
18284 extra_passes!$extra_passes$ac_delim
18285 extra_programs!$extra_programs$ac_delim
18286 float_h_file!$float_h_file$ac_delim
18287 gcc_config_arguments!$gcc_config_arguments$ac_delim
18288 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
18289 host_exeext!$host_exeext$ac_delim
18290 host_xm_file_list!$host_xm_file_list$ac_delim
18291 host_xm_include_list!$host_xm_include_list$ac_delim
18292 host_xm_defines!$host_xm_defines$ac_delim
18293 out_host_hook_obj!$out_host_hook_obj$ac_delim
18294 install!$install$ac_delim
18295 lang_opt_files!$lang_opt_files$ac_delim
18296 lang_specs_files!$lang_specs_files$ac_delim
18297 lang_tree_files!$lang_tree_files$ac_delim
18298 local_prefix!$local_prefix$ac_delim
18299 md_file!$md_file$ac_delim
18300 objc_boehm_gc!$objc_boehm_gc$ac_delim
18301 out_file!$out_file$ac_delim
18302 out_object_file!$out_object_file$ac_delim
18305 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18307 elif $ac_last_try; then
18308 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18310 { (exit 1); exit 1; }; }
18312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18317 if test -n "$ac_eof"; then
18318 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18319 ac_eof=`expr $ac_eof + 1`
18322 cat >>$CONFIG_STATUS <<_ACEOF
18323 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18328 s/^/s,@/; s/!/@,|#_!!_#|/
18331 s/'"$ac_delim"'$/,g/; t
18333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18334 ' >>$CONFIG_STATUS <conf$$subs.sed
18335 rm -f conf$$subs.sed
18336 cat >>$CONFIG_STATUS <<_ACEOF
18342 for ac_last_try in false false false false false :; do
18343 cat >conf$$subs.sed <<_ACEOF
18344 thread_file!$thread_file$ac_delim
18345 tm_file_list!$tm_file_list$ac_delim
18346 tm_include_list!$tm_include_list$ac_delim
18347 tm_defines!$tm_defines$ac_delim
18348 tm_p_file_list!$tm_p_file_list$ac_delim
18349 tm_p_include_list!$tm_p_include_list$ac_delim
18350 xm_file_list!$xm_file_list$ac_delim
18351 xm_include_list!$xm_include_list$ac_delim
18352 xm_defines!$xm_defines$ac_delim
18353 c_target_objs!$c_target_objs$ac_delim
18354 cxx_target_objs!$cxx_target_objs$ac_delim
18355 target_cpu_default!$target_cpu_default$ac_delim
18356 GMPLIBS!$GMPLIBS$ac_delim
18357 GMPINC!$GMPINC$ac_delim
18358 LIBOBJS!$LIBOBJS$ac_delim
18359 LTLIBOBJS!$LTLIBOBJS$ac_delim
18362 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
18364 elif $ac_last_try; then
18365 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18367 { (exit 1); exit 1; }; }
18369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18374 if test -n "$ac_eof"; then
18375 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18376 ac_eof=`expr $ac_eof + 1`
18379 cat >>$CONFIG_STATUS <<_ACEOF
18380 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18385 s/^/s,@/; s/!/@,|#_!!_#|/
18388 s/'"$ac_delim"'$/,g/; t
18390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18391 ' >>$CONFIG_STATUS <conf$$subs.sed
18392 rm -f conf$$subs.sed
18393 cat >>$CONFIG_STATUS <<_ACEOF
18400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18402 # trailing colons and then remove the whole line if VPATH becomes empty
18403 # (actually we leave an empty line to preserve line numbers).
18404 if test "x$srcdir" = x.; then
18405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18406 s/:*\$(srcdir):*/:/
18407 s/:*\${srcdir}:*/:/
18409 s/^\([^=]*=[ ]*\):*/\1/
18415 cat >>$CONFIG_STATUS <<\_ACEOF
18416 fi # test -n "$CONFIG_FILES"
18419 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18422 :[FHLC]) ac_mode=$ac_tag; continue;;
18424 case $ac_mode$ac_tag in
18426 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18428 { (exit 1); exit 1; }; };;
18429 :[FH]-) ac_tag=-:-;;
18430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18447 -) ac_f="$tmp/stdin";;
18448 *) # Look for the file first in the build tree, then in the source tree
18449 # (if the path is not absolute). The absolute path cannot be DOS-style,
18450 # because $ac_f cannot contain `:'.
18454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18456 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18458 { (exit 1); exit 1; }; };;
18460 ac_file_inputs="$ac_file_inputs $ac_f"
18463 # Let's still pretend it is `configure' which instantiates (i.e., don't
18464 # use $as_me), people would be surprised to read:
18465 # /* config.h. Generated by config.status. */
18466 configure_input="Generated from "`IFS=:
18467 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18468 if test x"$ac_file" != x-; then
18469 configure_input="$ac_file. $configure_input"
18470 { echo "$as_me:$LINENO: creating $ac_file" >&5
18471 echo "$as_me: creating $ac_file" >&6;}
18475 *:-:* | *:-) cat >"$tmp/stdin";;
18480 ac_dir=`$as_dirname -- "$ac_file" ||
18481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18482 X"$ac_file" : 'X\(//\)[^/]' \| \
18483 X"$ac_file" : 'X\(//\)$' \| \
18484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18490 /^X\(\/\/\)[^/].*/{
18505 -*) as_dir=./$as_dir;;
18507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18511 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18512 *) as_qdir=$as_dir;;
18514 as_dirs="'$as_qdir' $as_dirs"
18515 as_dir=`$as_dirname -- "$as_dir" ||
18516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18517 X"$as_dir" : 'X\(//\)[^/]' \| \
18518 X"$as_dir" : 'X\(//\)$' \| \
18519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525 /^X\(\/\/\)[^/].*/{
18538 test -d "$as_dir" && break
18540 test -z "$as_dirs" || eval "mkdir $as_dirs"
18541 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18543 { (exit 1); exit 1; }; }; }
18547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18550 # A ".." for each directory in $ac_dir_suffix.
18551 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18552 case $ac_top_builddir_sub in
18553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18557 ac_abs_top_builddir=$ac_pwd
18558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18559 # for backward compatibility:
18560 ac_top_builddir=$ac_top_build_prefix
18563 .) # We are building in place.
18565 ac_top_srcdir=$ac_top_builddir_sub
18566 ac_abs_top_srcdir=$ac_pwd ;;
18567 [\\/]* | ?:[\\/]* ) # Absolute name.
18568 ac_srcdir=$srcdir$ac_dir_suffix;
18569 ac_top_srcdir=$srcdir
18570 ac_abs_top_srcdir=$srcdir ;;
18571 *) # Relative name.
18572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18573 ac_top_srcdir=$ac_top_build_prefix$srcdir
18574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18587 cat >>$CONFIG_STATUS <<\_ACEOF
18588 # If the template does not know about datarootdir, expand it.
18589 # FIXME: This hack should be removed a few years after 2.60.
18590 ac_datarootdir_hack=; ac_datarootdir_seen=
18592 case `sed -n '/datarootdir/ {
18601 ' $ac_file_inputs` in
18602 *datarootdir*) ac_datarootdir_seen=yes;;
18603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18604 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18607 cat >>$CONFIG_STATUS <<_ACEOF
18608 ac_datarootdir_hack='
18609 s&@datadir@&$datadir&g
18610 s&@docdir@&$docdir&g
18611 s&@infodir@&$infodir&g
18612 s&@localedir@&$localedir&g
18613 s&@mandir@&$mandir&g
18614 s&\\\${datarootdir}&$datarootdir&g' ;;
18618 # Neutralize VPATH when `$srcdir' = `.'.
18619 # Shell code in configure.ac might set extrasub.
18620 # FIXME: do we really want to maintain this feature?
18621 cat >>$CONFIG_STATUS <<_ACEOF
18625 cat >>$CONFIG_STATUS <<\_ACEOF
18627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18628 s&@configure_input@&$configure_input&;t t
18629 s&@top_builddir@&$ac_top_builddir_sub&;t t
18630 s&@srcdir@&$ac_srcdir&;t t
18631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18632 s&@top_srcdir@&$ac_top_srcdir&;t t
18633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18634 s&@builddir@&$ac_builddir&;t t
18635 s&@abs_builddir@&$ac_abs_builddir&;t t
18636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18637 $ac_datarootdir_hack
18638 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
18640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18643 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18644 which seems to be undefined. Please make sure it is defined." >&5
18645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18646 which seems to be undefined. Please make sure it is defined." >&2;}
18650 -) cat "$tmp/out"; rm -f "$tmp/out";;
18651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18660 # Transform confdefs.h into a sed script `conftest.defines', that
18661 # substitutes the proper values into config.h.in to produce config.h.
18662 rm -f conftest.defines conftest.tail
18663 # First, append a space to every undef/define line, to ease matching.
18664 echo 's/$/ /' >conftest.defines
18665 # Then, protect against being on the right side of a sed subst, or in
18666 # an unquoted here document, in config.status. If some macros were
18667 # called several times there might be several #defines for the same
18668 # symbol, which is useless. But do not sort them, since the last
18669 # AC_DEFINE must be honored.
18670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18673 # PARAMS is the parameter list in the macro definition--in most cases, it's
18674 # just an empty string.
18675 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
18676 ac_dB='\\)[ (].*,\\1define\\2'
18684 s/^[ ]*#[ ]*define[ ][ ]*//
18689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18691 ' >>conftest.defines
18693 # Remove the space that was appended to ease matching.
18694 # Then replace #undef with comments. This is necessary, for
18695 # example, in the case of _POSIX_SOURCE, which is predefined and required
18696 # on some systems where configure will not decide to define it.
18697 # (The regexp can be short, since the line contains either #define or #undef.)
18699 s,^[ #]*u.*,/* & */,' >>conftest.defines
18701 # Break up conftest.defines:
18702 ac_max_sed_lines=50
18704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18708 ac_in='$ac_file_inputs'
18709 ac_out='"$tmp/out1"'
18710 ac_nxt='"$tmp/out2"'
18714 # Write a here document:
18715 cat >>$CONFIG_STATUS <<_ACEOF
18716 # First, check the format of the line:
18717 cat >"\$tmp/defines.sed" <<\\CEOF
18718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
18719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
18723 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18726 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18727 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18728 grep . conftest.tail >/dev/null || break
18729 rm -f conftest.defines
18730 mv conftest.tail conftest.defines
18732 rm -f conftest.defines conftest.tail
18734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18735 cat >>$CONFIG_STATUS <<\_ACEOF
18736 if test x"$ac_file" != x-; then
18737 echo "/* $configure_input */" >"$tmp/config.h"
18738 cat "$ac_result" >>"$tmp/config.h"
18739 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18741 echo "$as_me: $ac_file is unchanged" >&6;}
18744 mv "$tmp/config.h" $ac_file
18747 echo "/* $configure_input */"
18753 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18754 echo "$as_me: executing $ac_file commands" >&6;}
18759 case $ac_file$ac_mode in
18761 case ${CONFIG_HEADERS} in
18762 *auto-host.h:config.in*)
18765 # Make sure all the subdirs exist.
18766 for d in $subdirs doc build
18768 test -d $d || mkdir $d
18776 { (exit 0); exit 0; }
18778 chmod +x $CONFIG_STATUS
18779 ac_clean_files=$ac_clean_files_save
18782 # configure is writing to config.log, and then calls config.status.
18783 # config.status does its own redirection, appending to config.log.
18784 # Unfortunately, on DOS this fails, as config.log is still kept open
18785 # by configure, so config.status won't be able to write to it; its
18786 # output is simply discarded. So we exec the FD to /dev/null,
18787 # effectively closing config.log, so it can be properly (re)opened and
18788 # appended to by config.status. When coming back to configure, we
18789 # need to make the FD available again.
18790 if test "$no_create" != yes; then
18792 ac_config_status_args=
18793 test "$silent" = yes &&
18794 ac_config_status_args="$ac_config_status_args --quiet"
18796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18799 # would make configure fail if this is the last instruction.
18800 $ac_cs_success || { (exit 1); exit 1; }