2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="tree.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
690 valgrind_path_defines
697 TARGET_SYSTEM_ROOT_DEFINE
698 CROSS_SYSTEM_HEADER_DIR
754 ORIGINAL_AS_FOR_TARGET
756 ORIGINAL_LD_FOR_TARGET
758 ORIGINAL_NM_FOR_TARGET
774 all_gtfiles_files_langs
775 all_gtfiles_files_files
779 all_selected_languages
782 build_install_headers_dir
784 build_xm_include_list
788 quoted_cc_set_by_configure
815 stage_prefix_set_by_configure
816 quoted_stage_prefix_set_by_configure
833 ac_subst_files='language_hooks'
834 ac_precious_vars='build_alias
847 # Initialize some variables set by options.
849 ac_init_version=false
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
859 program_transform_name=s,x,x,
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE}'
884 infodir='${datarootdir}/info'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
951 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
952 { (exit 1); exit 1; }; }
953 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
954 eval enable_$ac_feature=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 -enable-* | --enable-*)
967 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
970 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
971 { (exit 1); exit 1; }; }
972 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
973 eval enable_$ac_feature=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
988 -help | --help | --hel | --he | -h)
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1137 -site=* | --site=* | --sit=*)
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1164 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 { echo "$as_me: error: invalid package name: $ac_package" >&2
1168 { (exit 1); exit 1; }; }
1169 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1170 eval with_$ac_package=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 { echo "$as_me: error: invalid package name: $ac_package" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1179 eval with_$ac_package=no ;;
1182 # Obsolete; use --with-x.
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) { echo "$as_me: error: unrecognized option: $ac_option
1200 Try \`$0 --help' for more information." >&2
1201 { (exit 1); exit 1; }; }
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1209 { (exit 1); exit 1; }; }
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 { echo "$as_me: error: missing argument to $ac_option" >&2
1227 { (exit 1); exit 1; }; }
1230 # Be sure to have absolute directory names.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1242 { (exit 1); exit 1; }; }
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used." >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 { echo "$as_me: error: Working directory cannot be determined" >&2
1273 { (exit 1); exit 1; }; }
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 { echo "$as_me: error: pwd does not report name of working directory" >&2
1276 { (exit 1); exit 1; }; }
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$0" ||
1284 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$0" : 'X\(//\)[^/]' \| \
1286 X"$0" : 'X\(//\)$' \| \
1287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1316 { (exit 1); exit 1; }; }
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1321 { (exit 1); exit 1; }; }
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1347 \`configure' configures this package to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1416 if test -n "$ac_init_help"; then
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-generated-files-in-srcdir
1424 put copies of generated files in source dir
1425 intended for creating source tarballs for users
1426 without texinfo bison or flex.
1427 --enable-werror-always enable -Werror always
1428 --enable-werror enable -Werror in bootstrap stage2 and later
1429 --enable-checking=LIST
1430 enable expensive run-time checks. With LIST,
1431 enable only specific categories of checks.
1432 Categories are: yes,no,all,none,release.
1433 Flags are: assert,fold,gc,gcac,misc,
1434 rtlflag,rtl,runtime,tree,valgrind.
1435 --enable-mapped-location location_t is fileline integer cookie
1436 --enable-coverage=LEVEL
1437 enable compiler's code coverage collection.
1438 Use to measure compiler performance and locate
1439 unused parts of the compiler. With LEVEL, specify
1440 optimization. Values are opt, noopt,
1442 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1443 --enable-multilib enable library support for multiple ABIs
1444 --enable-__cxa_atexit enable __cxa_atexit for C++
1445 --enable-decimal-float enable decimal float extension to C
1446 --enable-threads enable thread usage for target GCC
1447 --enable-threads=LIB use LIB thread package for target GCC
1448 --enable-tls enable or disable generation of tls code
1449 overriding the assembler check for tls support
1450 --enable-objc-gc enable the use of Boehm's garbage collector with
1451 the GNU Objective-C runtime
1452 --disable-shared don't provide a shared libgcc
1453 --enable-intermodule build the compiler in one step
1454 --enable-languages=LIST specify which front-ends to build
1455 --disable-rpath do not hardcode runtime library paths
1456 --enable-initfini-array use .init_array/.fini_array sections
1457 --enable-sjlj-exceptions
1458 arrange to use setjmp/longjmp exception handling
1459 --enable-secureplt enable -msecure-plt by default for PowerPC
1460 --disable-win32-registry
1461 disable lookup of installation paths in the
1462 Registry on Windows hosts
1463 --enable-win32-registry enable registry lookup (default)
1464 --enable-win32-registry=KEY
1465 use KEY instead of GCC version as the last portion
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --enable-version-specific-runtime-libs
1471 specify that runtime libraries should be
1472 installed in a compiler-specific directory
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-build-libsubdir=DIR Directory where to find libraries for build system
1478 --with-local-prefix=DIR specifies directory to put local include
1479 --with-gxx-include-dir=DIR
1480 specifies directory to put g++ header files
1481 --with-cpp-install-dir=DIR
1482 install the user visible C preprocessor in DIR
1483 (relative to PREFIX) as well as PREFIX/bin
1484 --with-gnu-ld arrange to work with GNU ld.
1485 --with-ld arrange to use the specified ld (full pathname)
1486 --with-demangler-in-ld try to use demangler in GNU ld.
1487 --with-gnu-as arrange to work with GNU as
1488 --with-as arrange to use the specified as (full pathname)
1489 --with-stabs arrange to use stabs instead of host debug format
1490 --with-dwarf2 force the default debug format to be DWARF 2
1491 --with-build-sysroot=sysroot
1492 use sysroot as the system root during the build
1493 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1494 --with-gnu-ld assume the C compiler uses GNU ld default=no
1495 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1496 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1497 --with-system-libunwind use installed libunwind
1498 --with-long-double-128 Use 128-bit long double by default.
1499 --with-gc={page,zone} choose the garbage collection mechanism to use
1501 --with-system-zlib use installed libz
1502 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1503 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1504 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1505 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1516 GMPLIBS How to link GMP
1517 GMPINC How to find GMP include files
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1526 if test "$ac_init_help" = "recursive"; then
1527 # If there are subdirs, report their specific --help.
1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529 test -d "$ac_dir" || continue
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1549 .) # We are building in place.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" || { ac_status=$?; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1583 generated by GNU Autoconf 2.61
1585 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by $as_me, which was
1597 generated by GNU Autoconf 2.61. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next=false
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1668 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next=true ;;
1689 ac_configure_args="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 *) $as_unset $ac_var ;;
1730 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731 *${as_nl}ac_space=\ *)
1733 "s/'\''/'\''\\\\'\'''\''/g;
1734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1750 for ac_var in $ac_subst_vars
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1760 if test -n "$ac_subst_files"; then
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1767 for ac_var in $ac_subst_files
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 echo "$ac_var='\''$ac_val'\''"
1778 if test -s confdefs.h; then
1788 test "$ac_signal" != 0 &&
1789 echo "$as_me: caught signal $ac_signal"
1790 echo "$as_me: exit $exit_status"
1792 rm -f core *.core core.conftest.* &&
1793 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1796 for ac_signal in 1 2 13 15; do
1797 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1804 # Predefined preprocessor variables.
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834 set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 set x "$ac_default_prefix/share/config.site" \
1839 "$ac_default_prefix/etc/config.site"
1844 if test -r "$ac_site_file"; then
1845 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847 sed 's/^/| /' "$ac_site_file" >&5
1852 if test -r "$cache_file"; then
1853 # Some versions of bash will fail to source /dev/null (special
1854 # files actually), so we avoid doing that.
1855 if test -f "$cache_file"; then
1856 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860 *) . "./$cache_file";;
1864 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1869 # Check that the precious variables saved in the cache have kept the same
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1892 echo "$as_me: former value: $ac_old_val" >&2;}
1893 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1894 echo "$as_me: current value: $ac_new_val" >&2;}
1895 ac_cache_corrupted=:
1898 # Pass precious variables to config.status.
1899 if test "$ac_new_set" = set; then
1901 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 *) ac_arg=$ac_var=$ac_new_val ;;
1904 case " $ac_configure_args " in
1905 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910 if $ac_cache_corrupted; then
1911 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915 { (exit 1); exit 1; }; }
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1945 gcc_version=`cat $srcdir/BASE-VER`
1947 # Determine the host, build, and target systems
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Make sure we can run config.sub.
1980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: checking build system type" >&5
1986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_build+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 ac_build_alias=$build_alias
1991 test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993 test "x$ac_build_alias" = x &&
1994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
1997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004 echo "${ECHO_T}$ac_cv_build" >&6; }
2005 case $ac_cv_build in
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008 echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
2012 ac_save_IFS=$IFS; IFS='-'
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2025 { echo "$as_me:$LINENO: checking host system type" >&5
2026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_host+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041 echo "${ECHO_T}$ac_cv_host" >&6; }
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045 echo "$as_me: error: invalid value of canonical host" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking target system type" >&5
2063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_target+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$target_alias" = x; then
2068 ac_cv_target=$ac_cv_host
2070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078 echo "${ECHO_T}$ac_cv_target" >&6; }
2079 case $ac_cv_target in
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082 echo "$as_me: error: invalid value of canonical target" >&2;}
2083 { (exit 1); exit 1; }; };;
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2104 program_prefix=${target_alias}-
2106 # Determine the noncanonical target name, for directory use.
2107 case ${build_alias} in
2108 "") build_noncanonical=${build} ;;
2109 *) build_noncanonical=${build_alias} ;;
2112 case ${host_alias} in
2113 "") host_noncanonical=${build_noncanonical} ;;
2114 *) host_noncanonical=${host_alias} ;;
2117 case ${target_alias} in
2118 "") target_noncanonical=${host_noncanonical} ;;
2119 *) target_noncanonical=${target_alias} ;;
2125 # Determine the target- and build-specific subdirectories
2127 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2128 # have matching libraries, they should use host libraries: Makefile.tpl
2129 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2130 # However, they still use the build modules, because the corresponding
2131 # host modules (e.g. bison) are only built for the host when bootstrap
2133 # - build_subdir is where we find build modules, and never changes.
2134 # - build_libsubdir is where we find build libraries, and can be overridden.
2136 # Prefix 'build-' so this never conflicts with target_subdir.
2137 build_subdir="build-${build_noncanonical}"
2139 # Check whether --with-build-libsubdir was given.
2140 if test "${with_build_libsubdir+set}" = set; then
2141 withval=$with_build_libsubdir; build_libsubdir="$withval"
2143 build_libsubdir="$build_subdir"
2146 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2147 if ( test $srcdir = . && test -d gcc ) \
2148 || test -d $srcdir/../host-${host_noncanonical}; then
2149 host_subdir="host-${host_noncanonical}"
2154 target_subdir=${target_noncanonical}
2157 # Set program_transform_name
2158 test "$program_prefix" != NONE &&
2159 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2160 # Use a double $ so make ignores it.
2161 test "$program_suffix" != NONE &&
2162 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2163 # Double any \ or $. echo might interpret backslashes.
2164 # By default was `s,x,x', remove it if useless.
2165 cat <<\_ACEOF >conftest.sed
2166 s/[\\$]/&&/g;s/;s,x,x,$//
2168 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2172 # Check for bogus environment variables.
2173 # Test if LIBRARY_PATH contains the notation for the current directory
2174 # since this would lead to problems installing/building glibc.
2175 # LIBRARY_PATH contains the current directory if one of the following
2177 # - one of the terminals (":" and ";") is the first or last sign
2178 # - two terminals occur directly after each other
2179 # - the path contains an element with a dot in it
2180 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2181 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2182 case ${LIBRARY_PATH} in
2183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2184 library_path_setting="contains current directory"
2187 library_path_setting="ok"
2190 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2191 echo "${ECHO_T}$library_path_setting" >&6; }
2192 if test "$library_path_setting" != "ok"; then
2193 { { echo "$as_me:$LINENO: error:
2194 *** LIBRARY_PATH shouldn't contain the current directory when
2195 *** building gcc. Please change the environment variable
2196 *** and run configure again." >&5
2197 echo "$as_me: error:
2198 *** LIBRARY_PATH shouldn't contain the current directory when
2199 *** building gcc. Please change the environment variable
2200 *** and run configure again." >&2;}
2201 { (exit 1); exit 1; }; }
2204 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2205 # since this would lead to problems installing/building glibc.
2206 # GCC_EXEC_PREFIX contains the current directory if one of the following
2208 # - one of the terminals (":" and ";") is the first or last sign
2209 # - two terminals occur directly after each other
2210 # - the path contains an element with a dot in it
2211 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2212 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2213 case ${GCC_EXEC_PREFIX} in
2214 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2215 gcc_exec_prefix_setting="contains current directory"
2218 gcc_exec_prefix_setting="ok"
2221 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2222 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2223 if test "$gcc_exec_prefix_setting" != "ok"; then
2224 { { echo "$as_me:$LINENO: error:
2225 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2226 *** building gcc. Please change the environment variable
2227 *** and run configure again." >&5
2228 echo "$as_me: error:
2229 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2230 *** building gcc. Please change the environment variable
2231 *** and run configure again." >&2;}
2232 { (exit 1); exit 1; }; }
2239 # Specify the local prefix
2242 # Check whether --with-local-prefix was given.
2243 if test "${with_local_prefix+set}" = set; then
2244 withval=$with_local_prefix; case "${withval}" in
2245 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2246 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2247 { (exit 1); exit 1; }; } ;;
2249 *) local_prefix=$with_local_prefix ;;
2254 # Default local prefix if it is empty
2255 if test x$local_prefix = x; then
2256 local_prefix=/usr/local
2259 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2260 # passed in by the toplevel make and thus we'd get different behavior
2261 # depending on where we built the sources.
2262 gcc_gxx_include_dir=
2263 # Specify the g++ header file directory
2265 # Check whether --with-gxx-include-dir was given.
2266 if test "${with_gxx_include_dir+set}" = set; then
2267 withval=$with_gxx_include_dir; case "${withval}" in
2268 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2269 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2270 { (exit 1); exit 1; }; } ;;
2272 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
2277 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2278 if test x${gcc_gxx_include_dir} = x; then
2279 if test x${enable_version_specific_runtime_libs} = xyes; then
2280 gcc_gxx_include_dir='${libsubdir}/include/c++'
2282 libstdcxx_incdir='include/c++/$(version)'
2283 if test x$host != x$target; then
2284 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2286 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
2291 # Check whether --with-cpp_install_dir was given.
2292 if test "${with_cpp_install_dir+set}" = set; then
2293 withval=$with_cpp_install_dir; if test x$withval = xyes; then
2294 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2295 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2296 { (exit 1); exit 1; }; }
2297 elif test x$withval != xno; then
2298 cpp_install_dir=$withval
2303 # We would like to our source tree to be readonly. However when releases or
2304 # pre-releases are generated, the flex/bison generated files as well as the
2305 # various formats of manuals need to be included along with the rest of the
2306 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2309 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2310 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2311 # Check whether --enable-generated-files-in-srcdir was given.
2312 if test "${enable_generated_files_in_srcdir+set}" = set; then
2313 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2315 generated_files_in_srcdir=no
2319 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2320 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2322 if test "$generated_files_in_srcdir" = "yes"; then
2329 # -------------------
2330 # Find default linker
2331 # -------------------
2335 # Check whether --with-gnu-ld was given.
2336 if test "${with_gnu_ld+set}" = set; then
2337 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2343 # With pre-defined ld
2345 # Check whether --with-ld was given.
2346 if test "${with_ld+set}" = set; then
2347 withval=$with_ld; DEFAULT_LINKER="$with_ld"
2350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2351 if test ! -x "$DEFAULT_LINKER"; then
2352 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2353 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2354 { (exit 1); exit 1; }; }
2355 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2359 cat >>confdefs.h <<_ACEOF
2360 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2365 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2366 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2367 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2368 if test x"$gnu_ld_flag" = x"no"; then
2369 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2370 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2372 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2373 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2380 # With demangler in GNU ld
2382 # Check whether --with-demangler-in-ld was given.
2383 if test "${with_demangler_in_ld+set}" = set; then
2384 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2390 # ----------------------
2391 # Find default assembler
2392 # ----------------------
2396 # Check whether --with-gnu-as was given.
2397 if test "${with_gnu_as+set}" = set; then
2398 withval=$with_gnu_as; gas_flag="$with_gnu_as"
2405 # Check whether --with-as was given.
2406 if test "${with_as+set}" = set; then
2407 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2410 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2411 if test ! -x "$DEFAULT_ASSEMBLER"; then
2412 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2413 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2414 { (exit 1); exit 1; }; }
2415 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2419 cat >>confdefs.h <<_ACEOF
2420 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2425 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2426 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2427 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2428 if test x"$gas_flag" = x"no"; then
2429 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2430 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2432 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2433 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2444 # If a non-executable a.out is present (e.g. created by GNU as above even if
2445 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2446 # file, even when creating an executable, so an execution test fails.
2447 # Remove possible default executable files to avoid this.
2449 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2450 # Autoconf includes it.
2451 rm -f a.out a.exe b.out
2453 # Find the native compiler
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2498 if test -z "$ac_cv_prog_CC"; then
2500 # Extract the first word of "gcc", so it can be a program name with args.
2501 set dummy gcc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$ac_ct_CC"; then
2508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_CC="gcc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528 if test -n "$ac_ct_CC"; then
2529 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530 echo "${ECHO_T}$ac_ct_CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_ct_CC" = x; then
2539 case $cross_compiling:$ac_tool_warned in
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="${ac_tool_prefix}cc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2596 if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598 set dummy cc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected=yes
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy $ac_cv_prog_CC
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2642 if test -n "$CC"; then
2643 { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 for ac_prog in cl.exe
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 if test -n "$CC"; then
2685 { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2693 test -n "$CC" && break
2696 if test -z "$CC"; then
2698 for ac_prog in cl.exe
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_CC="$ac_prog"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6; }
2732 { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2737 test -n "$ac_ct_CC" && break
2740 if test "x$ac_ct_CC" = x; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet. If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&5
2748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2751 ac_tool_warned=yes ;;
2760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler --version >&5") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -v >&5") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -V >&5") 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2820 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 # List of possible output files, starting from the most likely.
2825 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2826 # only as a last resort. b.out is created by i960 compilers.
2827 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2829 # The IRIX 6 linker writes into existing files which may not be
2830 # executable, retaining their permissions. Remove them first so a
2831 # subsequent execution test works.
2833 for ac_file in $ac_files
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2842 if { (ac_try="$ac_link_default"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link_default") 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2855 # so that the user can short-circuit this test for compilers unknown to
2857 for ac_file in $ac_files ''
2859 test -f "$ac_file" || continue
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2864 # We found the default executable, but exeext='' is most
2868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 # We set ac_cv_exeext here because the later test for it is not
2873 # safe: cross compilers may not add the suffix if given an `-o'
2874 # argument, so we may need to know it at that point already.
2875 # Even if this section looks crufty: it has the advantage of
2882 test "$ac_cv_exeext" = no && ac_cv_exeext=
2888 { echo "$as_me:$LINENO: result: $ac_file" >&5
2889 echo "${ECHO_T}$ac_file" >&6; }
2890 if test -z "$ac_file"; then
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: C compiler cannot create executables
2897 See \`config.log' for more details." >&2;}
2898 { (exit 77); exit 77; }; }
2901 ac_exeext=$ac_cv_exeext
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2907 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908 # If not cross compiling, check that we can run a simple program.
2909 if test "$cross_compiling" != yes; then
2910 if { ac_try='./$ac_file'
2911 { (case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_try") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 if test "$cross_compiling" = maybe; then
2925 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2935 { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2938 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2939 ac_clean_files=$ac_clean_files_save
2940 # Check that the compiler produces executables we can run. If not, either
2941 # the compiler is broken, or we cross compile.
2942 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2943 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2944 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2945 echo "${ECHO_T}$cross_compiling" >&6; }
2947 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2948 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2949 if { (ac_try="$ac_link"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_link") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2963 for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&5
2975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&2;}
2977 { (exit 1); exit 1; }; }
2980 rm -f conftest$ac_cv_exeext
2981 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2982 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2987 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2989 if test "${ac_cv_objext+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3007 rm -f conftest.o conftest.obj
3008 if { (ac_try="$ac_compile"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 for ac_file in conftest.o conftest.obj conftest.*; do
3019 test -f "$ac_file" || continue;
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }
3037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3040 echo "${ECHO_T}$ac_cv_objext" >&6; }
3041 OBJEXT=$ac_cv_objext
3043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3097 GCC=`test $ac_compiler_gnu = yes && echo yes`
3098 ac_test_CFLAGS=${CFLAGS+set}
3099 ac_save_CFLAGS=$CFLAGS
3100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_cc_g+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 ac_save_c_werror_flag=$ac_c_werror_flag
3106 ac_c_werror_flag=yes
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_c_werror_flag=$ac_save_c_werror_flag
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3237 if test "$ac_test_CFLAGS" = set; then
3238 CFLAGS=$ac_save_CFLAGS
3239 elif test $ac_cv_prog_cc_g = yes; then
3240 if test "$GCC" = yes; then
3246 if test "$GCC" = yes; then
3252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_cc_c89+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 ac_cv_prog_cc_c89=no
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3283 s = g (p, va_arg (v,int));
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
3291 as 'x'. The following induces an error, until -std is added to get
3292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
3294 that's true only with -std. */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 CC="$ac_save_CC $ac_arg"
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3337 ac_cv_prog_cc_c89=$ac_arg
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3345 rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 rm -f conftest.$ac_ext
3353 case "x$ac_cv_prog_cc_c89" in
3355 { echo "$as_me:$LINENO: result: none needed" >&5
3356 echo "${ECHO_T}none needed" >&6; } ;;
3358 { echo "$as_me:$LINENO: result: unsupported" >&5
3359 echo "${ECHO_T}unsupported" >&6; } ;;
3361 CC="$CC $ac_cv_prog_cc_c89"
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 if test "x$CC" != xcc; then
3374 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3375 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3377 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3378 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3380 set dummy $CC; ac_cc=`echo $2 |
3381 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3382 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 # Make sure it works both with $CC and with simple cc.
3401 # We do the test twice because some compilers refuse to overwrite an
3402 # existing .o file with -o, though they will create one.
3403 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3405 if { (case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_try") 2>&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); };
3424 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3425 if test "x$CC" != xcc; then
3426 # Test first that cc exists at all.
3427 if { ac_try='cc -c conftest.$ac_ext >&5'
3428 { (case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_try") 2>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3439 if { (case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_try") 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); };
3461 # cc exists but doesn't like -o.
3462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3467 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3469 rm -f core conftest*
3472 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3473 { echo "$as_me:$LINENO: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6; }
3476 { echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6; }
3479 cat >>confdefs.h <<\_ACEOF
3480 #define NO_MINUS_C_MINUS_O 1
3485 # expand $ac_aux_dir to an absolute path
3486 am_aux_dir=`cd $ac_aux_dir && pwd`
3488 # FIXME: we rely on the cache variable name because
3489 # there is no other way.
3491 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3492 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3493 # Losing compiler, so override with the script.
3494 # FIXME: It is wrong to rewrite CC.
3495 # But if we don't then we get into trouble of one sort or another.
3496 # A longer-term fix would be to have automake use am__CC in this case,
3497 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3498 CC="$am_aux_dir/compile $CC"
3501 # autoconf is lame and doesn't give us any substitution variable for this.
3502 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3503 NO_MINUS_C_MINUS_O=yes
3505 OUTPUT_OPTION='-o $@'
3510 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3511 # optimizations to be activated explicitly by the toplevel.
3513 */prev-gcc/xgcc*) ;;
3514 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3518 # -------------------------
3519 # Check C compiler features
3520 # -------------------------
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3528 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3529 # On Suns, sometimes $CPP names a directory.
3530 if test -n "$CPP" && test -d "$CPP"; then
3533 if test -z "$CPP"; then
3534 if test "${ac_cv_prog_CPP+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 # Double quotes because CPP needs to be expanded
3538 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541 for ac_c_preproc_warn_flag in '' yes
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 # include <limits.h>
3558 # include <assert.h>
3562 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 # Broken: fails on valid input.
3587 rm -f conftest.err conftest.$ac_ext
3589 # OK, works on sane cases. Now check whether nonexistent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3615 # Broken: success on invalid input.
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 # Passes both tests.
3626 rm -f conftest.err conftest.$ac_ext
3629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630 rm -f conftest.err conftest.$ac_ext
3631 if $ac_preproc_ok; then
3643 { echo "$as_me:$LINENO: result: $CPP" >&5
3644 echo "${ECHO_T}$CPP" >&6; }
3646 for ac_c_preproc_warn_flag in '' yes
3648 # Use a header file that comes with gcc, so configuring glibc
3649 # with a fresh cross-compiler works.
3650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3651 # <limits.h> exists even on freestanding compilers.
3652 # On the NeXT, cc -E runs the code through the compiler's parser,
3653 # not just through cpp. "Syntax error" is here to catch this case.
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3661 # include <limits.h>
3663 # include <assert.h>
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } >/dev/null && {
3680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 # Broken: fails on valid input.
3692 rm -f conftest.err conftest.$ac_ext
3694 # OK, works on sane cases. Now check whether nonexistent headers
3695 # can be detected and how.
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <ac_nonexistent.h>
3704 if { (ac_try="$ac_cpp conftest.$ac_ext"
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null && {
3717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3720 # Broken: success on invalid input.
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Passes both tests.
3731 rm -f conftest.err conftest.$ac_ext
3734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735 rm -f conftest.err conftest.$ac_ext
3736 if $ac_preproc_ok; then
3739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&2;}
3743 { (exit 1); exit 1; }; }
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking for inline" >&5
3754 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3755 if test "${ac_cv_c_inline+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 for ac_kw in inline __inline__ __inline; do
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3768 static $ac_kw foo_t static_foo () {return 0; }
3769 $ac_kw foo_t foo () {return 0; }
3773 rm -f conftest.$ac_objext
3774 if { (ac_try="$ac_compile"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_compile") 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } && {
3787 test -z "$ac_c_werror_flag" ||
3788 test ! -s conftest.err
3789 } && test -s conftest.$ac_objext; then
3790 ac_cv_c_inline=$ac_kw
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 test "$ac_cv_c_inline" != no && break
3803 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3804 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3807 case $ac_cv_c_inline in
3810 case $ac_cv_c_inline in
3812 *) ac_val=$ac_cv_c_inline;;
3814 cat >>confdefs.h <<_ACEOF
3816 #define inline $ac_val
3823 # sizeof(char) is 1 by definition.
3825 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3826 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3827 if test "${ac_cv_path_GREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 # Extract the first word of "grep ggrep" to use in msg output
3831 if test -z "$GREP"; then
3832 set dummy grep ggrep; ac_prog_name=$2
3833 if test "${ac_cv_path_GREP+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_path_GREP_found=false
3837 # Loop through the user's path and test for each of PROGNAME-LIST
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in grep ggrep; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3847 # Check for GNU ac_path_GREP and select it if it is found.
3848 # Check for GNU $ac_path_GREP
3849 case `"$ac_path_GREP" --version 2>&1` in
3851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3854 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3857 cat "conftest.in" "conftest.in" >"conftest.tmp"
3858 mv "conftest.tmp" "conftest.in"
3859 cp "conftest.in" "conftest.nl"
3860 echo 'GREP' >> "conftest.nl"
3861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863 ac_count=`expr $ac_count + 1`
3864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3865 # Best one so far, save it but keep looking for a better one
3866 ac_cv_path_GREP="$ac_path_GREP"
3867 ac_path_GREP_max=$ac_count
3869 # 10*(2^10) chars as input seems more than enough
3870 test $ac_count -gt 10 && break
3872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 $ac_path_GREP_found && break 3
3886 GREP="$ac_cv_path_GREP"
3887 if test -z "$GREP"; then
3888 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3889 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3890 { (exit 1); exit 1; }; }
3894 ac_cv_path_GREP=$GREP
3899 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3900 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3901 GREP="$ac_cv_path_GREP"
3904 { echo "$as_me:$LINENO: checking for egrep" >&5
3905 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3906 if test "${ac_cv_path_EGREP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3910 then ac_cv_path_EGREP="$GREP -E"
3912 # Extract the first word of "egrep" to use in msg output
3913 if test -z "$EGREP"; then
3914 set dummy egrep; ac_prog_name=$2
3915 if test "${ac_cv_path_EGREP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_path_EGREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in egrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3929 # Check for GNU ac_path_EGREP and select it if it is found.
3930 # Check for GNU $ac_path_EGREP
3931 case `"$ac_path_EGREP" --version 2>&1` in
3933 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3936 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 echo 'EGREP' >> "conftest.nl"
3943 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 ac_count=`expr $ac_count + 1`
3946 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_EGREP="$ac_path_EGREP"
3949 ac_path_EGREP_max=$ac_count
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 $ac_path_EGREP_found && break 3
3968 EGREP="$ac_cv_path_EGREP"
3969 if test -z "$EGREP"; then
3970 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972 { (exit 1); exit 1; }; }
3976 ac_cv_path_EGREP=$EGREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3984 EGREP="$ac_cv_path_EGREP"
3987 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3989 if test "${ac_cv_header_stdc+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_cv_header_stdc=yes
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_cv_header_stdc=no
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 if test $ac_cv_header_stdc = yes; then
4039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 $EGREP "memchr" >/dev/null 2>&1; then
4053 ac_cv_header_stdc=no
4059 if test $ac_cv_header_stdc = yes; then
4060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "free" >/dev/null 2>&1; then
4074 ac_cv_header_stdc=no
4080 if test $ac_cv_header_stdc = yes; then
4081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4082 if test "$cross_compiling" = yes; then
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4093 #if ((' ' & 0x0FF) == 0x020)
4094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4097 # define ISLOWER(c) \
4098 (('a' <= (c) && (c) <= 'i') \
4099 || ('j' <= (c) && (c) <= 'r') \
4100 || ('s' <= (c) && (c) <= 'z'))
4101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4109 for (i = 0; i < 256; i++)
4110 if (XOR (islower (i), ISLOWER (i))
4111 || toupper (i) != TOUPPER (i))
4116 rm -f conftest$ac_exeext
4117 if { (ac_try="$ac_link"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_link") 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4138 echo "$as_me: program exited with status $ac_status" >&5
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_cv_header_stdc=no
4145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4151 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4152 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4153 if test $ac_cv_header_stdc = yes; then
4155 cat >>confdefs.h <<\_ACEOF
4156 #define STDC_HEADERS 1
4161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4172 inttypes.h stdint.h unistd.h
4174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 $ac_includes_default
4188 #include <$ac_header>
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4207 eval "$as_ac_Header=yes"
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 eval "$as_ac_Header=no"
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_res=`eval echo '${'$as_ac_Header'}'`
4218 { echo "$as_me:$LINENO: result: $ac_res" >&5
4219 echo "${ECHO_T}$ac_res" >&6; }
4220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4230 { echo "$as_me:$LINENO: checking for void *" >&5
4231 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4232 if test "${ac_cv_type_void_p+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 $ac_includes_default
4242 typedef void * ac__type_new_;
4246 if ((ac__type_new_ *) 0)
4248 if (sizeof (ac__type_new_))
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_type_void_p=yes
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 ac_cv_type_void_p=no
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4282 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4284 # The cast to long int works around a bug in the HP C Compiler
4285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4287 # This bug is HP SR number 8606223364.
4288 { echo "$as_me:$LINENO: checking size of void *" >&5
4289 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4290 if test "${ac_cv_sizeof_void_p+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test "$cross_compiling" = yes; then
4294 # Depending upon the size, compute the lo and hi bounds.
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 typedef void * ac__type_sizeof_;
4306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4313 rm -f conftest.$ac_objext
4314 if { (ac_try="$ac_compile"
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && {
4327 test -z "$ac_c_werror_flag" ||
4328 test ! -s conftest.err
4329 } && test -s conftest.$ac_objext; then
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4339 typedef void * ac__type_sizeof_;
4343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
4367 ac_hi=$ac_mid; break
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 ac_lo=`expr $ac_mid + 1`
4373 if test $ac_lo -le $ac_mid; then
4377 ac_mid=`expr 2 '*' $ac_mid + 1`
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 $ac_includes_default
4393 typedef void * ac__type_sizeof_;
4397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4404 rm -f conftest.$ac_objext
4405 if { (ac_try="$ac_compile"
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_compile") 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } && {
4418 test -z "$ac_c_werror_flag" ||
4419 test ! -s conftest.err
4420 } && test -s conftest.$ac_objext; then
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 typedef void * ac__type_sizeof_;
4434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && {
4455 test -z "$ac_c_werror_flag" ||
4456 test ! -s conftest.err
4457 } && test -s conftest.$ac_objext; then
4458 ac_lo=$ac_mid; break
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_hi=`expr '(' $ac_mid ')' - 1`
4464 if test $ac_mid -le $ac_hi; then
4468 ac_mid=`expr 2 '*' $ac_mid`
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 # Binary search between lo and hi bounds.
4485 while test "x$ac_lo" != "x$ac_hi"; do
4486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 typedef void * ac__type_sizeof_;
4498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4505 rm -f conftest.$ac_objext
4506 if { (ac_try="$ac_compile"
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_compile") 2>conftest.er1
4514 grep -v '^ *+' conftest.er1 >conftest.err
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } && {
4519 test -z "$ac_c_werror_flag" ||
4520 test ! -s conftest.err
4521 } && test -s conftest.$ac_objext; then
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 ac_lo=`expr '(' $ac_mid ')' + 1`
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4534 '') if test "$ac_cv_type_void_p" = yes; then
4535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4536 See \`config.log' for more details." >&5
4537 echo "$as_me: error: cannot compute sizeof (void *)
4538 See \`config.log' for more details." >&2;}
4539 { (exit 77); exit 77; }; }
4541 ac_cv_sizeof_void_p=0
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4552 typedef void * ac__type_sizeof_;
4553 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4554 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4561 FILE *f = fopen ("conftest.val", "w");
4564 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4566 long int i = longval ();
4567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4569 fprintf (f, "%ld\n", i);
4573 unsigned long int i = ulongval ();
4574 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4576 fprintf (f, "%lu\n", i);
4578 return ferror (f) || fclose (f) != 0;
4584 rm -f conftest$ac_exeext
4585 if { (ac_try="$ac_link"
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_link") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_sizeof_void_p=`cat conftest.val`
4606 echo "$as_me: program exited with status $ac_status" >&5
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4611 if test "$ac_cv_type_void_p" = yes; then
4612 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: cannot compute sizeof (void *)
4615 See \`config.log' for more details." >&2;}
4616 { (exit 77); exit 77; }; }
4618 ac_cv_sizeof_void_p=0
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4625 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4626 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4630 cat >>confdefs.h <<_ACEOF
4631 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4635 { echo "$as_me:$LINENO: checking for short" >&5
4636 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4637 if test "${ac_cv_type_short+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 typedef short ac__type_new_;
4651 if ((ac__type_new_ *) 0)
4653 if (sizeof (ac__type_new_))
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_compile") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && {
4673 test -z "$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 } && test -s conftest.$ac_objext; then
4676 ac_cv_type_short=yes
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4687 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4689 # The cast to long int works around a bug in the HP C Compiler
4690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4692 # This bug is HP SR number 8606223364.
4693 { echo "$as_me:$LINENO: checking size of short" >&5
4694 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4695 if test "${ac_cv_sizeof_short+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test "$cross_compiling" = yes; then
4699 # Depending upon the size, compute the lo and hi bounds.
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 typedef short ac__type_sizeof_;
4711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4718 rm -f conftest.$ac_objext
4719 if { (ac_try="$ac_compile"
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_compile") 2>conftest.er1
4727 grep -v '^ *+' conftest.er1 >conftest.err
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } && {
4732 test -z "$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 } && test -s conftest.$ac_objext; then
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 $ac_includes_default
4744 typedef short ac__type_sizeof_;
4748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4755 rm -f conftest.$ac_objext
4756 if { (ac_try="$ac_compile"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_compile") 2>conftest.er1
4764 grep -v '^ *+' conftest.er1 >conftest.err
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } && {
4769 test -z "$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 } && test -s conftest.$ac_objext; then
4772 ac_hi=$ac_mid; break
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 ac_lo=`expr $ac_mid + 1`
4778 if test $ac_lo -le $ac_mid; then
4782 ac_mid=`expr 2 '*' $ac_mid + 1`
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 typedef short ac__type_sizeof_;
4802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4809 rm -f conftest.$ac_objext
4810 if { (ac_try="$ac_compile"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 typedef short ac__type_sizeof_;
4839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_compile") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
4863 ac_lo=$ac_mid; break
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 ac_hi=`expr '(' $ac_mid ')' - 1`
4869 if test $ac_mid -le $ac_hi; then
4873 ac_mid=`expr 2 '*' $ac_mid`
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 # Binary search between lo and hi bounds.
4890 while test "x$ac_lo" != "x$ac_hi"; do
4891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 typedef short ac__type_sizeof_;
4903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compile") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && {
4924 test -z "$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 } && test -s conftest.$ac_objext; then
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_lo=`expr '(' $ac_mid ')' + 1`
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 ?*) ac_cv_sizeof_short=$ac_lo;;
4939 '') if test "$ac_cv_type_short" = yes; then
4940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
4941 See \`config.log' for more details." >&5
4942 echo "$as_me: error: cannot compute sizeof (short)
4943 See \`config.log' for more details." >&2;}
4944 { (exit 77); exit 77; }; }
4946 ac_cv_sizeof_short=0
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957 typedef short ac__type_sizeof_;
4958 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4959 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4966 FILE *f = fopen ("conftest.val", "w");
4969 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4971 long int i = longval ();
4972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4974 fprintf (f, "%ld\n", i);
4978 unsigned long int i = ulongval ();
4979 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4981 fprintf (f, "%lu\n", i);
4983 return ferror (f) || fclose (f) != 0;
4989 rm -f conftest$ac_exeext
4990 if { (ac_try="$ac_link"
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_link") 2>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5000 { (case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_try") 2>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_sizeof_short=`cat conftest.val`
5011 echo "$as_me: program exited with status $ac_status" >&5
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5016 if test "$ac_cv_type_short" = yes; then
5017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5018 See \`config.log' for more details." >&5
5019 echo "$as_me: error: cannot compute sizeof (short)
5020 See \`config.log' for more details." >&2;}
5021 { (exit 77); exit 77; }; }
5023 ac_cv_sizeof_short=0
5026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5030 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5031 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5035 cat >>confdefs.h <<_ACEOF
5036 #define SIZEOF_SHORT $ac_cv_sizeof_short
5040 { echo "$as_me:$LINENO: checking for int" >&5
5041 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5042 if test "${ac_cv_type_int+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5052 typedef int ac__type_new_;
5056 if ((ac__type_new_ *) 0)
5058 if (sizeof (ac__type_new_))
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5073 grep -v '^ *+' conftest.er1 >conftest.err
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5092 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5094 # The cast to long int works around a bug in the HP C Compiler
5095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5097 # This bug is HP SR number 8606223364.
5098 { echo "$as_me:$LINENO: checking size of int" >&5
5099 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5100 if test "${ac_cv_sizeof_int+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 if test "$cross_compiling" = yes; then
5104 # Depending upon the size, compute the lo and hi bounds.
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 typedef int ac__type_sizeof_;
5116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5123 rm -f conftest.$ac_objext
5124 if { (ac_try="$ac_compile"
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_compile") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest.$ac_objext; then
5142 cat >conftest.$ac_ext <<_ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5149 typedef int ac__type_sizeof_;
5153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest.$ac_objext; then
5177 ac_hi=$ac_mid; break
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_lo=`expr $ac_mid + 1`
5183 if test $ac_lo -le $ac_mid; then
5187 ac_mid=`expr 2 '*' $ac_mid + 1`
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 $ac_includes_default
5203 typedef int ac__type_sizeof_;
5207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
5223 grep -v '^ *+' conftest.er1 >conftest.err
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && {
5228 test -z "$ac_c_werror_flag" ||
5229 test ! -s conftest.err
5230 } && test -s conftest.$ac_objext; then
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5240 typedef int ac__type_sizeof_;
5244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_lo=$ac_mid; break
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_hi=`expr '(' $ac_mid ')' - 1`
5274 if test $ac_mid -le $ac_hi; then
5278 ac_mid=`expr 2 '*' $ac_mid`
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 # Binary search between lo and hi bounds.
5295 while test "x$ac_lo" != "x$ac_hi"; do
5296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 $ac_includes_default
5304 typedef int ac__type_sizeof_;
5308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compile") 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_lo=`expr '(' $ac_mid ')' + 1`
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 ?*) ac_cv_sizeof_int=$ac_lo;;
5344 '') if test "$ac_cv_type_int" = yes; then
5345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5346 See \`config.log' for more details." >&5
5347 echo "$as_me: error: cannot compute sizeof (int)
5348 See \`config.log' for more details." >&2;}
5349 { (exit 77); exit 77; }; }
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 $ac_includes_default
5362 typedef int ac__type_sizeof_;
5363 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5364 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5371 FILE *f = fopen ("conftest.val", "w");
5374 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5376 long int i = longval ();
5377 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5379 fprintf (f, "%ld\n", i);
5383 unsigned long int i = ulongval ();
5384 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5386 fprintf (f, "%lu\n", i);
5388 return ferror (f) || fclose (f) != 0;
5394 rm -f conftest$ac_exeext
5395 if { (ac_try="$ac_link"
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_link") 2>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5405 { (case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_try") 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_cv_sizeof_int=`cat conftest.val`
5416 echo "$as_me: program exited with status $ac_status" >&5
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5421 if test "$ac_cv_type_int" = yes; then
5422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5423 See \`config.log' for more details." >&5
5424 echo "$as_me: error: cannot compute sizeof (int)
5425 See \`config.log' for more details." >&2;}
5426 { (exit 77); exit 77; }; }
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5435 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5436 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5440 cat >>confdefs.h <<_ACEOF
5441 #define SIZEOF_INT $ac_cv_sizeof_int
5445 { echo "$as_me:$LINENO: checking for long" >&5
5446 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5447 if test "${ac_cv_type_long+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5457 typedef long ac__type_new_;
5461 if ((ac__type_new_ *) 0)
5463 if (sizeof (ac__type_new_))
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5497 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5499 # The cast to long int works around a bug in the HP C Compiler
5500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5502 # This bug is HP SR number 8606223364.
5503 { echo "$as_me:$LINENO: checking size of long" >&5
5504 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5505 if test "${ac_cv_sizeof_long+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 if test "$cross_compiling" = yes; then
5509 # Depending upon the size, compute the lo and hi bounds.
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 typedef long ac__type_sizeof_;
5521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_c_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 $ac_includes_default
5554 typedef long ac__type_sizeof_;
5558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 ac_hi=$ac_mid; break
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_lo=`expr $ac_mid + 1`
5588 if test $ac_lo -le $ac_mid; then
5592 ac_mid=`expr 2 '*' $ac_mid + 1`
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 cat >conftest.$ac_ext <<_ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 $ac_includes_default
5608 typedef long ac__type_sizeof_;
5612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 $ac_includes_default
5645 typedef long ac__type_sizeof_;
5649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_lo=$ac_mid; break
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_hi=`expr '(' $ac_mid ')' - 1`
5679 if test $ac_mid -le $ac_hi; then
5683 ac_mid=`expr 2 '*' $ac_mid`
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 # Binary search between lo and hi bounds.
5700 while test "x$ac_lo" != "x$ac_hi"; do
5701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5708 $ac_includes_default
5709 typedef long ac__type_sizeof_;
5713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 ac_lo=`expr '(' $ac_mid ')' + 1`
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ?*) ac_cv_sizeof_long=$ac_lo;;
5749 '') if test "$ac_cv_type_long" = yes; then
5750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5751 See \`config.log' for more details." >&5
5752 echo "$as_me: error: cannot compute sizeof (long)
5753 See \`config.log' for more details." >&2;}
5754 { (exit 77); exit 77; }; }
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 typedef long ac__type_sizeof_;
5768 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5769 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5776 FILE *f = fopen ("conftest.val", "w");
5779 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5781 long int i = longval ();
5782 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5784 fprintf (f, "%ld\n", i);
5788 unsigned long int i = ulongval ();
5789 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5791 fprintf (f, "%lu\n", i);
5793 return ferror (f) || fclose (f) != 0;
5799 rm -f conftest$ac_exeext
5800 if { (ac_try="$ac_link"
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_link") 2>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_sizeof_long=`cat conftest.val`
5821 echo "$as_me: program exited with status $ac_status" >&5
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5826 if test "$ac_cv_type_long" = yes; then
5827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5828 See \`config.log' for more details." >&5
5829 echo "$as_me: error: cannot compute sizeof (long)
5830 See \`config.log' for more details." >&2;}
5831 { (exit 77); exit 77; }; }
5836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5840 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5841 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5845 cat >>confdefs.h <<_ACEOF
5846 #define SIZEOF_LONG $ac_cv_sizeof_long
5850 { echo "$as_me:$LINENO: checking for long long" >&5
5851 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5852 if test "${ac_cv_type_long_long+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5862 typedef long long ac__type_new_;
5866 if ((ac__type_new_ *) 0)
5868 if (sizeof (ac__type_new_))
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_cv_type_long_long=yes
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_type_long_long=no
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5902 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5903 if test $ac_cv_type_long_long = yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define HAVE_LONG_LONG 1
5909 { echo "$as_me:$LINENO: checking for long long" >&5
5910 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5911 if test "${ac_cv_type_long_long+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 typedef long long ac__type_new_;
5925 if ((ac__type_new_ *) 0)
5927 if (sizeof (ac__type_new_))
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_type_long_long=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_long_long=no
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5961 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5963 # The cast to long int works around a bug in the HP C Compiler
5964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5966 # This bug is HP SR number 8606223364.
5967 { echo "$as_me:$LINENO: checking size of long long" >&5
5968 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
5969 if test "${ac_cv_sizeof_long_long+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test "$cross_compiling" = yes; then
5973 # Depending upon the size, compute the lo and hi bounds.
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 $ac_includes_default
5981 typedef long long ac__type_sizeof_;
5985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compile") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest.$ac_objext; then
6011 cat >conftest.$ac_ext <<_ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 $ac_includes_default
6018 typedef long long ac__type_sizeof_;
6022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6029 rm -f conftest.$ac_objext
6030 if { (ac_try="$ac_compile"
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_compile") 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_objext; then
6046 ac_hi=$ac_mid; break
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6051 ac_lo=`expr $ac_mid + 1`
6052 if test $ac_lo -le $ac_mid; then
6056 ac_mid=`expr 2 '*' $ac_mid + 1`
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 typedef long long ac__type_sizeof_;
6076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.$ac_objext; then
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 typedef long long ac__type_sizeof_;
6113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest.$ac_objext; then
6137 ac_lo=$ac_mid; break
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ac_hi=`expr '(' $ac_mid ')' - 1`
6143 if test $ac_mid -le $ac_hi; then
6147 ac_mid=`expr 2 '*' $ac_mid`
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 # Binary search between lo and hi bounds.
6164 while test "x$ac_lo" != "x$ac_hi"; do
6165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6173 typedef long long ac__type_sizeof_;
6177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_lo=`expr '(' $ac_mid ')' + 1`
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6213 '') if test "$ac_cv_type_long_long" = yes; then
6214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6215 See \`config.log' for more details." >&5
6216 echo "$as_me: error: cannot compute sizeof (long long)
6217 See \`config.log' for more details." >&2;}
6218 { (exit 77); exit 77; }; }
6220 ac_cv_sizeof_long_long=0
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 $ac_includes_default
6231 typedef long long ac__type_sizeof_;
6232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6240 FILE *f = fopen ("conftest.val", "w");
6243 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6245 long int i = longval ();
6246 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6248 fprintf (f, "%ld\n", i);
6252 unsigned long int i = ulongval ();
6253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6255 fprintf (f, "%lu\n", i);
6257 return ferror (f) || fclose (f) != 0;
6263 rm -f conftest$ac_exeext
6264 if { (ac_try="$ac_link"
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_link") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_sizeof_long_long=`cat conftest.val`
6285 echo "$as_me: program exited with status $ac_status" >&5
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6290 if test "$ac_cv_type_long_long" = yes; then
6291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6292 See \`config.log' for more details." >&5
6293 echo "$as_me: error: cannot compute sizeof (long long)
6294 See \`config.log' for more details." >&2;}
6295 { (exit 77); exit 77; }; }
6297 ac_cv_sizeof_long_long=0
6300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6305 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6309 cat >>confdefs.h <<_ACEOF
6310 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6316 { echo "$as_me:$LINENO: checking for __int64" >&5
6317 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6318 if test "${ac_cv_type___int64+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 typedef __int64 ac__type_new_;
6332 if ((ac__type_new_ *) 0)
6334 if (sizeof (ac__type_new_))
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1 >conftest.err
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.$ac_objext; then
6357 ac_cv_type___int64=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_cv_type___int64=no
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6368 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6369 if test $ac_cv_type___int64 = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define HAVE___INT64 1
6375 { echo "$as_me:$LINENO: checking for __int64" >&5
6376 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6377 if test "${ac_cv_type___int64+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 typedef __int64 ac__type_new_;
6391 if ((ac__type_new_ *) 0)
6393 if (sizeof (ac__type_new_))
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
6416 ac_cv_type___int64=yes
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_cv_type___int64=no
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6427 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
6429 # The cast to long int works around a bug in the HP C Compiler
6430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6432 # This bug is HP SR number 8606223364.
6433 { echo "$as_me:$LINENO: checking size of __int64" >&5
6434 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
6435 if test "${ac_cv_sizeof___int64+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 if test "$cross_compiling" = yes; then
6439 # Depending upon the size, compute the lo and hi bounds.
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6447 typedef __int64 ac__type_sizeof_;
6451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6458 rm -f conftest.$ac_objext
6459 if { (ac_try="$ac_compile"
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && {
6472 test -z "$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6474 } && test -s conftest.$ac_objext; then
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 $ac_includes_default
6484 typedef __int64 ac__type_sizeof_;
6488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6495 rm -f conftest.$ac_objext
6496 if { (ac_try="$ac_compile"
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_compile") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest.$ac_objext; then
6512 ac_hi=$ac_mid; break
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_lo=`expr $ac_mid + 1`
6518 if test $ac_lo -le $ac_mid; then
6522 ac_mid=`expr 2 '*' $ac_mid + 1`
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 typedef __int64 ac__type_sizeof_;
6542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6575 typedef __int64 ac__type_sizeof_;
6579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6586 rm -f conftest.$ac_objext
6587 if { (ac_try="$ac_compile"
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_compile") 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && {
6600 test -z "$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 } && test -s conftest.$ac_objext; then
6603 ac_lo=$ac_mid; break
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 ac_hi=`expr '(' $ac_mid ')' - 1`
6609 if test $ac_mid -le $ac_hi; then
6613 ac_mid=`expr 2 '*' $ac_mid`
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 # Binary search between lo and hi bounds.
6630 while test "x$ac_lo" != "x$ac_hi"; do
6631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 $ac_includes_default
6639 typedef __int64 ac__type_sizeof_;
6643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6650 rm -f conftest.$ac_objext
6651 if { (ac_try="$ac_compile"
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6659 grep -v '^ *+' conftest.er1 >conftest.err
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.$ac_objext; then
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 ac_lo=`expr '(' $ac_mid ')' + 1`
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 ?*) ac_cv_sizeof___int64=$ac_lo;;
6679 '') if test "$ac_cv_type___int64" = yes; then
6680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6681 See \`config.log' for more details." >&5
6682 echo "$as_me: error: cannot compute sizeof (__int64)
6683 See \`config.log' for more details." >&2;}
6684 { (exit 77); exit 77; }; }
6686 ac_cv_sizeof___int64=0
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 typedef __int64 ac__type_sizeof_;
6698 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6699 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6706 FILE *f = fopen ("conftest.val", "w");
6709 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6711 long int i = longval ();
6712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6714 fprintf (f, "%ld\n", i);
6718 unsigned long int i = ulongval ();
6719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6721 fprintf (f, "%lu\n", i);
6723 return ferror (f) || fclose (f) != 0;
6729 rm -f conftest$ac_exeext
6730 if { (ac_try="$ac_link"
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_link") 2>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6740 { (case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745 (eval "$ac_try") 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_sizeof___int64=`cat conftest.val`
6751 echo "$as_me: program exited with status $ac_status" >&5
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6756 if test "$ac_cv_type___int64" = yes; then
6757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
6758 See \`config.log' for more details." >&5
6759 echo "$as_me: error: cannot compute sizeof (__int64)
6760 See \`config.log' for more details." >&2;}
6761 { (exit 77); exit 77; }; }
6763 ac_cv_sizeof___int64=0
6766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6770 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6771 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
6775 cat >>confdefs.h <<_ACEOF
6776 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6783 # ---------------------
6784 # Warnings and checking
6785 # ---------------------
6787 # Check $CC warning features (if it's GCC).
6788 # We want to use -pedantic, but we don't want warnings about
6791 # * overlong strings
6792 # So, we only use -pedantic if we can disable those warnings.
6794 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6795 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 save_CFLAGS="$CFLAGS"
6800 CFLAGS="-Wno-long-long"
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_prog_cc_w_no_long_long=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_prog_cc_w_no_long_long=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 CFLAGS="$save_CFLAGS"
6838 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6839 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6; }
6841 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6842 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6; }
6843 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 save_CFLAGS="$CFLAGS"
6847 CFLAGS="-Wno-variadic-macros"
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6865 grep -v '^ *+' conftest.er1 >conftest.err
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 ac_cv_prog_cc_w_no_variadic_macros=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_cv_prog_cc_w_no_variadic_macros=no
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 CFLAGS="$save_CFLAGS"
6885 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6886 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
6888 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6889 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 save_CFLAGS="$CFLAGS"
6894 CFLAGS="-Wno-overlength-strings"
6895 cat >conftest.$ac_ext <<_ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6910 (eval "$ac_compile") 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } && {
6917 test -z "$ac_c_werror_flag" ||
6918 test ! -s conftest.err
6919 } && test -s conftest.$ac_objext; then
6920 ac_cv_prog_cc_w_no_overlength_strings=yes
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ac_cv_prog_cc_w_no_overlength_strings=no
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 CFLAGS="$save_CFLAGS"
6932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6933 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6; }
6936 if test $ac_cv_prog_cc_w_no_long_long = yes \
6937 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6938 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6939 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6942 # Add -Wold-style-definition if it's accepted
6943 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6944 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6; }
6945 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 save_CFLAGS="$CFLAGS"
6949 CFLAGS="-Wold-style-definition"
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6958 rm -f conftest.$ac_objext
6959 if { (ac_try="$ac_compile"
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965 (eval "$ac_compile") 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && {
6972 test -z "$ac_c_werror_flag" ||
6973 test ! -s conftest.err
6974 } && test -s conftest.$ac_objext; then
6975 ac_cv_prog_cc_w_old_style_definition=yes
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_prog_cc_w_old_style_definition=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 CFLAGS="$save_CFLAGS"
6987 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6988 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6; }
6989 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6990 strict1_warn="${strict1_warn} -Wold-style-definition"
6993 # Add -Wmissing-format-attribute if it's accepted
6994 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6995 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 save_CFLAGS="$CFLAGS"
7000 CFLAGS="-Wmissing-format-attribute"
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7018 grep -v '^ *+' conftest.er1 >conftest.err
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.$ac_objext; then
7026 ac_cv_prog_cc_w_missing_format_attribute=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_prog_cc_w_missing_format_attribute=no
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 CFLAGS="$save_CFLAGS"
7038 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
7039 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
7040 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
7041 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
7044 # Enable -Werror, period.
7045 # Check whether --enable-werror_always was given.
7046 if test "${enable_werror_always+set}" = set; then
7047 enableval=$enable_werror_always;
7049 enable_werror_always=no
7052 if test x${enable_werror_always} = xyes ; then
7053 strict1_warn="${strict1_warn} -Werror"
7059 # Get C++ compatibility warning flag, if supported.
7060 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
7061 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6; }
7062 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 save_CFLAGS="$CFLAGS"
7066 CFLAGS="-Wc++-compat"
7067 cat >conftest.$ac_ext <<_ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_cv_prog_cc_w_cxx_compat=yes
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_prog_cc_w_cxx_compat=no
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 CFLAGS="$save_CFLAGS"
7104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
7105 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6; }
7106 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
7107 cxx_compat_warn="-Wc++-compat"
7112 # If the native compiler is GCC, we can enable warnings even in stage1.
7113 # That's useful for people building cross-compilers, or just running a
7116 if test "x$GCC" = "xyes"; then
7117 warn_cflags='$(GCC_WARN_CFLAGS)'
7121 # Enable -Werror in bootstrap stage2 and later.
7123 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7126 # Check whether --enable-werror was given.
7127 if test "${enable_werror+set}" = set; then
7128 enableval=$enable_werror;
7130 if test x$is_release = x ; then
7131 # Default to "yes" on development branches.
7134 # Default to "no" on release branches.
7139 if test x$enable_werror = xyes ; then
7144 # Enable expensive internal checks
7145 # Check whether --enable-checking was given.
7146 if test "${enable_checking+set}" = set; then
7147 enableval=$enable_checking; ac_checking_flags="${enableval}"
7150 # Determine the default checks.
7151 if test x$is_release = x ; then
7152 ac_checking_flags=yes
7154 ac_checking_flags=release
7158 ac_assert_checking=1
7162 ac_gc_always_collect=
7164 ac_rtlflag_checking=
7165 ac_runtime_checking=1
7167 ac_valgrind_checking=
7168 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7169 for check in $ac_checking_flags
7172 # these set all the flags to specific states
7173 yes) ac_assert_checking=1 ; ac_checking=1 ;
7174 ac_fold_checking= ; ac_gc_checking=1 ;
7175 ac_gc_always_collect= ; ac_rtl_checking= ;
7176 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7177 ac_tree_checking=1 ; ac_valgrind_checking= ;;
7178 no|none) ac_assert_checking= ; ac_checking= ;
7179 ac_fold_checking= ; ac_gc_checking= ;
7180 ac_gc_always_collect= ; ac_rtl_checking= ;
7181 ac_rtlflag_checking= ; ac_runtime_checking= ;
7182 ac_tree_checking= ; ac_valgrind_checking= ;;
7183 all) ac_assert_checking=1 ; ac_checking=1 ;
7184 ac_fold_checking=1 ; ac_gc_checking=1 ;
7185 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7186 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7187 ac_tree_checking=1 ; ac_valgrind_checking= ;;
7188 release) ac_assert_checking=1 ; ac_checking= ;
7189 ac_fold_checking= ; ac_gc_checking= ;
7190 ac_gc_always_collect= ; ac_rtl_checking= ;
7191 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7192 ac_tree_checking= ; ac_valgrind_checking= ;;
7193 # these enable particular checks
7194 assert) ac_assert_checking=1 ;;
7195 fold) ac_fold_checking=1 ;;
7196 gc) ac_gc_checking=1 ;;
7197 gcac) ac_gc_always_collect=1 ;;
7198 misc) ac_checking=1 ;;
7199 rtl) ac_rtl_checking=1 ;;
7200 rtlflag) ac_rtlflag_checking=1 ;;
7201 runtime) ac_runtime_checking=1 ;;
7202 tree) ac_tree_checking=1 ;;
7203 valgrind) ac_valgrind_checking=1 ;;
7204 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7205 echo "$as_me: error: unknown check category $check" >&2;}
7206 { (exit 1); exit 1; }; } ;;
7212 if test x$ac_checking != x ; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define ENABLE_CHECKING 1
7218 nocommon_flag=-fno-common
7221 if test x$ac_assert_checking != x ; then
7223 cat >>confdefs.h <<\_ACEOF
7224 #define ENABLE_ASSERT_CHECKING 1
7229 if test x$ac_runtime_checking != x ; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define ENABLE_RUNTIME_CHECKING 1
7236 if test x$ac_tree_checking != x ; then
7238 cat >>confdefs.h <<\_ACEOF
7239 #define ENABLE_TREE_CHECKING 1
7242 TREEBROWSER=tree-browser.o
7245 if test x$ac_rtl_checking != x ; then
7247 cat >>confdefs.h <<\_ACEOF
7248 #define ENABLE_RTL_CHECKING 1
7252 if test x$ac_rtlflag_checking != x ; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define ENABLE_RTL_FLAG_CHECKING 1
7259 if test x$ac_gc_checking != x ; then
7261 cat >>confdefs.h <<\_ACEOF
7262 #define ENABLE_GC_CHECKING 1
7266 if test x$ac_gc_always_collect != x ; then
7268 cat >>confdefs.h <<\_ACEOF
7269 #define ENABLE_GC_ALWAYS_COLLECT 1
7273 if test x$ac_fold_checking != x ; then
7275 cat >>confdefs.h <<\_ACEOF
7276 #define ENABLE_FOLD_CHECKING 1
7280 valgrind_path_defines=
7283 if test "${ac_cv_header_valgrind_h+set}" = set; then
7284 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7285 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7286 if test "${ac_cv_header_valgrind_h+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7290 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7292 # Is the header compilable?
7293 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7294 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #include <valgrind.h>
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 ac_header_compiler=yes
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 ac_header_compiler=no
7329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7331 echo "${ECHO_T}$ac_header_compiler" >&6; }
7333 # Is the header present?
7334 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7335 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <valgrind.h>
7344 if { (ac_try="$ac_cpp conftest.$ac_ext"
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev/null && {
7357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7360 ac_header_preproc=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_header_preproc=no
7368 rm -f conftest.err conftest.$ac_ext
7369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7370 echo "${ECHO_T}$ac_header_preproc" >&6; }
7372 # So? What about this header?
7373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7375 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7376 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7378 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7379 ac_header_preproc=yes
7382 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7383 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7385 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7386 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7387 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7388 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7389 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7391 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7393 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7397 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
7398 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
7399 if test "${ac_cv_header_valgrind_h+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_cv_header_valgrind_h=$ac_header_preproc
7404 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7405 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
7408 if test $ac_cv_header_valgrind_h = yes; then
7416 if test x$ac_valgrind_checking != x ; then
7417 # It is certainly possible that there's valgrind but no valgrind.h.
7418 # GCC relies on making annotations so we must have both.
7419 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7420 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
7421 cat >conftest.$ac_ext <<_ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #include <valgrind/memcheck.h>
7428 #ifndef VALGRIND_DISCARD
7429 #error VALGRIND_DISCARD not defined
7432 if { (ac_try="$ac_cpp conftest.$ac_ext"
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null && {
7445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7448 gcc_cv_header_valgrind_memcheck_h=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 gcc_cv_header_valgrind_memcheck_h=no
7456 rm -f conftest.err conftest.$ac_ext
7457 { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7458 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
7459 { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7460 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 #include <memcheck.h>
7468 #ifndef VALGRIND_DISCARD
7469 #error VALGRIND_DISCARD not defined
7472 if { (ac_try="$ac_cpp conftest.$ac_ext"
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } >/dev/null && {
7485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7488 gcc_cv_header_memcheck_h=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 gcc_cv_header_memcheck_h=no
7496 rm -f conftest.err conftest.$ac_ext
7497 { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7498 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
7500 # Prepare PATH_SEPARATOR.
7501 # The user is always right.
7502 if test "${PATH_SEPARATOR+set}" != set; then
7503 echo "#! /bin/sh" >conf$$.sh
7504 echo "exit 0" >>conf$$.sh
7506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7514 # Find out how to test for executable files. Don't use a zero-byte file,
7515 # as systems may use methods other than mode bits to determine executability.
7516 cat >conf$$.file <<_ASEOF
7520 chmod +x conf$$.file
7521 if test -x conf$$.file >/dev/null 2>&1; then
7522 ac_executable_p="test -x"
7524 ac_executable_p="test -f"
7528 # Extract the first word of "valgrind", so it can be a program name with args.
7529 set dummy valgrind; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_valgrind_path+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 case "$valgrind_path" in
7537 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7540 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7541 for ac_dir in $PATH; do
7543 test -z "$ac_dir" && ac_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7546 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7547 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7557 valgrind_path="$ac_cv_path_valgrind_path"
7558 if test -n "$valgrind_path"; then
7559 { echo "$as_me:$LINENO: result: $valgrind_path" >&5
7560 echo "${ECHO_T}$valgrind_path" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7566 if test "x$valgrind_path" = "x" \
7567 || (test $have_valgrind_h = no \
7568 && test $gcc_cv_header_memcheck_h = no \
7569 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7570 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7571 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7572 { (exit 1); exit 1; }; }
7574 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7575 valgrind_command="$valgrind_path -q"
7577 cat >>confdefs.h <<\_ACEOF
7578 #define ENABLE_VALGRIND_CHECKING 1
7581 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7583 cat >>confdefs.h <<\_ACEOF
7584 #define HAVE_VALGRIND_MEMCHECK_H 1
7588 if test $gcc_cv_header_memcheck_h = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_MEMCHECK_H 1
7599 # Check whether --enable-mapped-location was given.
7600 if test "${enable_mapped_location+set}" = set; then
7601 enableval=$enable_mapped_location;
7603 enable_mapped_location=no
7607 if test "$enable_mapped_location" = yes ; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define USE_MAPPED_LOCATION 1
7615 # Enable code coverage collection
7616 # Check whether --enable-coverage was given.
7617 if test "${enable_coverage+set}" = set; then
7618 enableval=$enable_coverage; case "${enableval}" in
7620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7623 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7626 # a.k.a. --disable-coverage
7630 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7631 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7632 { (exit 1); exit 1; }; }
7641 # Check whether --enable-gather-detailed-mem-stats was given.
7642 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7643 enableval=$enable_gather_detailed_mem_stats;
7645 enable_gather_detailed_mem_stats=no
7648 if test x$enable_gather_detailed_mem_stats = xyes ; then
7650 cat >>confdefs.h <<\_ACEOF
7651 #define GATHER_STATISTICS 1
7656 # -------------------------------
7657 # Miscenalleous configure options
7658 # -------------------------------
7662 # Check whether --with-stabs was given.
7663 if test "${with_stabs+set}" = set; then
7664 withval=$with_stabs; stabs="$with_stabs"
7670 # Determine whether or not multilibs are enabled.
7671 # Check whether --enable-multilib was given.
7672 if test "${enable_multilib+set}" = set; then
7673 enableval=$enable_multilib;
7680 # Enable __cxa_atexit for C++.
7681 # Check whether --enable-__cxa_atexit was given.
7682 if test "${enable___cxa_atexit+set}" = set; then
7683 enableval=$enable___cxa_atexit;
7687 # Enable C extension for decimal float if target supports it.
7688 # Check whether --enable-decimal-float was given.
7689 if test "${enable_decimal_float+set}" = set; then
7690 enableval=$enable_decimal_float;
7691 if test x$enablevar = xyes ; then
7693 powerpc*-*-linux* | i?86*-*-linux*)
7694 enable_decimal_float=yes
7697 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7698 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7699 enable_decimal_float=no
7705 enable_decimal_float=no
7711 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7713 cat >>confdefs.h <<_ACEOF
7714 #define ENABLE_DECIMAL_FLOAT $dfp
7719 # Pass with no value to take the default
7720 # Pass with a value to specify a thread package
7721 # Check whether --enable-threads was given.
7722 if test "${enable_threads+set}" = set; then
7723 enableval=$enable_threads;
7729 # Check whether --enable-tls was given.
7730 if test "${enable_tls+set}" = set; then
7731 enableval=$enable_tls;
7734 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7735 Valid choices are 'yes' and 'no'." >&5
7736 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7737 Valid choices are 'yes' and 'no'." >&2;}
7738 { (exit 1); exit 1; }; } ;;
7746 # Check whether --enable-objc-gc was given.
7747 if test "${enable_objc_gc+set}" = set; then
7748 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7759 # Check whether --with-dwarf2 was given.
7760 if test "${with_dwarf2+set}" = set; then
7761 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7767 # Check whether --enable-shared was given.
7768 if test "${enable_shared+set}" = set; then
7769 enableval=$enable_shared;
7770 case $enable_shared in
7774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7775 for pkg in $enableval; do
7776 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7791 # Check whether --with-build-sysroot was given.
7792 if test "${with_build_sysroot+set}" = set; then
7793 withval=$with_build_sysroot;
7798 # Check whether --with-sysroot was given.
7799 if test "${with_sysroot+set}" = set; then
7800 withval=$with_sysroot;
7801 case ${with_sysroot} in
7802 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7803 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7806 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7807 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7809 if test "x$exec_prefix" = xNONE; then
7810 if test "x$prefix" = xNONE; then
7811 test_prefix=/usr/local
7816 test_prefix=$exec_prefix
7818 case ${TARGET_SYSTEM_ROOT} in
7819 "${test_prefix}"|"${test_prefix}/"*|\
7820 '${exec_prefix}'|'${exec_prefix}/'*)
7821 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7822 TARGET_SYSTEM_ROOT_DEFINE="$t"
7829 TARGET_SYSTEM_ROOT_DEFINE=
7830 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7838 # Build with intermodule optimisations
7839 # Check whether --enable-intermodule was given.
7840 if test "${enable_intermodule+set}" = set; then
7841 enableval=$enable_intermodule; case ${enable_intermodule} in
7842 yes) onestep="-onestep";;
7851 # Sanity check enable_languages in case someone does not run the toplevel
7852 # configure # script.
7853 # Check whether --enable-languages was given.
7854 if test "${enable_languages+set}" = set; then
7855 enableval=$enable_languages; case ,${enable_languages}, in
7857 # go safe -- we cannot be much sure without the toplevel
7859 # analysis of which target libs are present and usable
7863 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7864 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7865 { (exit 1); exit 1; }; }
7870 enable_languages=c,${enable_languages}
7878 # Used by documentation targets
7883 # -------------------------
7884 # Checks for other programs
7885 # -------------------------
7887 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7888 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7889 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7890 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.make <<\_ACEOF
7896 @echo '@@@%%%=$(MAKE)=@@@%%%'
7898 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7899 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7901 eval ac_cv_prog_make_${ac_make}_set=yes;;
7903 eval ac_cv_prog_make_${ac_make}_set=no;;
7907 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7908 { echo "$as_me:$LINENO: result: yes" >&5
7909 echo "${ECHO_T}yes" >&6; }
7912 { echo "$as_me:$LINENO: result: no" >&5
7913 echo "${ECHO_T}no" >&6; }
7914 SET_MAKE="MAKE=${MAKE-make}"
7918 # Find some useful tools
7919 for ac_prog in gawk mawk nawk awk
7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy $ac_prog; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_prog_AWK+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 if test -n "$AWK"; then
7929 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_AWK="$ac_prog"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 if test -n "$AWK"; then
7950 { echo "$as_me:$LINENO: result: $AWK" >&5
7951 echo "${ECHO_T}$AWK" >&6; }
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7958 test -n "$AWK" && break
7961 # We need awk to create options.c and options.h.
7962 # Bail out if it's missing.
7964 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7965 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7966 { (exit 1); exit 1; }; } ;;
7969 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7970 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7971 if test "${gcc_cv_prog_LN_S+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 rm -f conftestdata_t
7975 echo >conftestdata_f
7976 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7978 gcc_cv_prog_LN_S="ln -s"
7980 if ln conftestdata_f conftestdata_t 2>/dev/null
7984 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7986 gcc_cv_prog_LN_S="cp -p"
7992 rm -f conftestdata_f conftestdata_t
7995 LN_S="$gcc_cv_prog_LN_S"
7996 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7997 { echo "$as_me:$LINENO: result: yes" >&5
7998 echo "${ECHO_T}yes" >&6; }
8000 if test "$gcc_cv_prog_LN_S" = "ln"; then
8001 { echo "$as_me:$LINENO: result: no, using ln" >&5
8002 echo "${ECHO_T}no, using ln" >&6; }
8004 { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8005 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8009 { echo "$as_me:$LINENO: checking whether ln works" >&5
8010 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8011 if test "${acx_cv_prog_LN+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 rm -f conftestdata_t
8015 echo >conftestdata_f
8016 if ln conftestdata_f conftestdata_t 2>/dev/null
8022 rm -f conftestdata_f conftestdata_t
8025 if test $acx_cv_prog_LN = no; then
8027 { echo "$as_me:$LINENO: result: no, using $LN" >&5
8028 echo "${ECHO_T}no, using $LN" >&6; }
8030 LN="$acx_cv_prog_LN"
8031 { echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6; }
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8040 if test "${ac_cv_prog_RANLIB+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 if test -n "$RANLIB"; then
8044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 RANLIB=$ac_cv_prog_RANLIB
8064 if test -n "$RANLIB"; then
8065 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8066 echo "${ECHO_T}$RANLIB" >&6; }
8068 { echo "$as_me:$LINENO: result: no" >&5
8069 echo "${ECHO_T}no" >&6; }
8074 if test -z "$ac_cv_prog_RANLIB"; then
8075 ac_ct_RANLIB=$RANLIB
8076 # Extract the first word of "ranlib", so it can be a program name with args.
8077 set dummy ranlib; ac_word=$2
8078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 if test -n "$ac_ct_RANLIB"; then
8084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_ac_ct_RANLIB="ranlib"
8094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8104 if test -n "$ac_ct_RANLIB"; then
8105 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8106 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8108 { echo "$as_me:$LINENO: result: no" >&5
8109 echo "${ECHO_T}no" >&6; }
8112 if test "x$ac_ct_RANLIB" = x; then
8115 case $cross_compiling:$ac_tool_warned in
8117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8118 whose name does not start with the host triplet. If you think this
8119 configuration is useful to you, please write to autoconf@gnu.org." >&5
8120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8121 whose name does not start with the host triplet. If you think this
8122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8123 ac_tool_warned=yes ;;
8125 RANLIB=$ac_ct_RANLIB
8128 RANLIB="$ac_cv_prog_RANLIB"
8133 # By default, the Darwin ranlib will not treat common symbols as
8134 # definitions when building the archive table of contents. Other
8135 # ranlibs do that; pass an option to the Darwin ranlib that makes
8136 # it behave similarly.
8144 # Find a good install program. We prefer a C program (faster),
8145 # so one script is as good as another. But avoid the broken or
8146 # incompatible versions:
8147 # SysV /etc/install, /usr/sbin/install
8148 # SunOS /usr/etc/install
8149 # IRIX /sbin/install
8151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8153 # ./install, which can be erroneously created by make from ./install.sh.
8154 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8155 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
8156 if test -z "$INSTALL"; then
8157 if test "${ac_cv_path_install+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8161 for ac_dir in $PATH; do
8162 # Account for people who put trailing slashes in PATH elements.
8164 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8166 # OSF1 and SCO ODT 3.0 have their own names for install.
8167 for ac_prog in ginstall scoinst install; do
8168 if test -f $ac_dir/$ac_prog; then
8169 if test $ac_prog = install &&
8170 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8171 # AIX install. It has an incompatible calling convention.
8172 # OSF/1 installbsd also uses dspmsg, but is usable.
8175 ac_cv_path_install="$ac_dir/$ac_prog -c"
8186 if test "${ac_cv_path_install+set}" = set; then
8187 INSTALL="$ac_cv_path_install"
8189 # As a last resort, use the slow shell script. We don't cache a
8190 # path for INSTALL within a source directory, because that will
8191 # break other packages using the cache if that directory is
8192 # removed, or if the path is relative.
8193 INSTALL="$ac_install_sh"
8196 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8197 echo "${ECHO_T}$INSTALL" >&6; }
8199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8200 # It thinks the first close brace ends the variable substitution.
8201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8206 # See if cmp has --ignore-initial.
8207 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8208 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
8209 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 gcc_cv_prog_cmp_skip=slowcompare
8215 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8216 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8219 gcc_cv_prog_cmp_skip=gnucompare
8222 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8223 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8224 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8227 gcc_cv_prog_cmp_skip=fastcompare
8234 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8235 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
8236 make_compare_target=$gcc_cv_prog_cmp_skip
8240 # See if we have the mktemp command.
8241 # Extract the first word of "mktemp", so it can be a program name with args.
8242 set dummy mktemp; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 if test -n "$have_mktemp_command"; then
8249 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_have_mktemp_command="yes"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8269 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8270 if test -n "$have_mktemp_command"; then
8271 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8272 echo "${ECHO_T}$have_mktemp_command" >&6; }
8274 { echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; }
8280 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
8282 # See if makeinfo has been installed and is modern enough
8283 # that we can use it.
8285 ac_executable_extensions="$build_exeext"
8287 # Extract the first word of "makeinfo", so it can be a program name with args.
8288 set dummy makeinfo; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 if test -n "$MAKEINFO"; then
8295 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_MAKEINFO="makeinfo"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 MAKEINFO=$ac_cv_prog_MAKEINFO
8315 if test -n "$MAKEINFO"; then
8316 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8317 echo "${ECHO_T}$MAKEINFO" >&6; }
8319 { echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6; }
8324 if test -n "$MAKEINFO"; then
8325 # Found it, now check the version.
8326 { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8327 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
8328 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_prog_version=`$MAKEINFO --version 2>&1 |
8332 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8333 echo "configure:8333: version of makeinfo is $ac_prog_version" >&5
8334 case $ac_prog_version in
8335 '') gcc_cv_prog_makeinfo_modern=no;;
8337 gcc_cv_prog_makeinfo_modern=yes;;
8338 *) gcc_cv_prog_makeinfo_modern=no;;
8342 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8343 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
8345 gcc_cv_prog_makeinfo_modern=no
8348 if test $gcc_cv_prog_makeinfo_modern = no; then
8349 MAKEINFO="$MISSING makeinfo"
8350 { echo "$as_me:$LINENO: WARNING:
8351 *** Makeinfo is missing or too old.
8352 *** Info documentation will not be built." >&5
8353 echo "$as_me: WARNING:
8354 *** Makeinfo is missing or too old.
8355 *** Info documentation will not be built." >&2;}
8362 # Is pod2man recent enough to regenerate manpages?
8363 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8364 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
8365 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8366 { echo "$as_me:$LINENO: result: yes" >&5
8367 echo "${ECHO_T}yes" >&6; }
8368 GENERATED_MANPAGES=generated-manpages
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8379 # Extract the first word of "$ac_prog", so it can be a program name with args.
8380 set dummy $ac_prog; ac_word=$2
8381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8383 if test "${ac_cv_prog_FLEX+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 if test -n "$FLEX"; then
8387 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_FLEX="$ac_prog"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 FLEX=$ac_cv_prog_FLEX
8407 if test -n "$FLEX"; then
8408 { echo "$as_me:$LINENO: result: $FLEX" >&5
8409 echo "${ECHO_T}$FLEX" >&6; }
8411 { echo "$as_me:$LINENO: result: no" >&5
8412 echo "${ECHO_T}no" >&6; }
8416 test -n "$FLEX" && break
8418 test -n "$FLEX" || FLEX="$MISSING flex"
8422 for ac_prog in bison
8424 # Extract the first word of "$ac_prog", so it can be a program name with args.
8425 set dummy $ac_prog; ac_word=$2
8426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428 if test "${ac_cv_prog_BISON+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 if test -n "$BISON"; then
8432 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_prog_BISON="$ac_prog"
8442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 BISON=$ac_cv_prog_BISON
8452 if test -n "$BISON"; then
8453 { echo "$as_me:$LINENO: result: $BISON" >&5
8454 echo "${ECHO_T}$BISON" >&6; }
8456 { echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6; }
8461 test -n "$BISON" && break
8463 test -n "$BISON" || BISON="$MISSING bison"
8466 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8467 # check for build == host before using them.
8470 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8471 && test -d ../binutils ; then
8472 NM='$(objdir)/../binutils/nm-new'
8474 # Extract the first word of "nm", so it can be a program name with args.
8475 set dummy nm; ac_word=$2
8476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8478 if test "${ac_cv_prog_NM+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 if test -n "$NM"; then
8482 ac_cv_prog_NM="$NM" # Let the user override the test.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8503 if test -n "$NM"; then
8504 { echo "$as_me:$LINENO: result: $NM" >&5
8505 echo "${ECHO_T}$NM" >&6; }
8507 { echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6; }
8515 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8516 && test -d ../binutils ; then
8517 AR='$(objdir)/../binutils/ar'
8519 # Extract the first word of "ar", so it can be a program name with args.
8520 set dummy ar; ac_word=$2
8521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8523 if test "${ac_cv_prog_AR+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 if test -n "$AR"; then
8527 ac_cv_prog_AR="$AR" # Let the user override the test.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8548 if test -n "$AR"; then
8549 { echo "$as_me:$LINENO: result: $AR" >&5
8550 echo "${ECHO_T}$AR" >&6; }
8552 { echo "$as_me:$LINENO: result: no" >&5
8553 echo "${ECHO_T}no" >&6; }
8560 # --------------------
8561 # Checks for C headers
8562 # --------------------
8564 { echo "$as_me:$LINENO: checking for GNU C library" >&5
8565 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
8566 if test "${gcc_cv_glibc+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #include <features.h>
8580 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8581 #error Not a GNU C library system
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_compile") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest.$ac_objext; then
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8616 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
8617 if test $gcc_cv_glibc = yes; then
8619 cat >>confdefs.h <<\_ACEOF
8620 #define _GNU_SOURCE 1
8625 # Need to reject headers which give warnings, so that the -Werror bootstrap
8626 # works later. *sigh* This needs to come before all header checks.
8628 ac_c_preproc_warn_flag=yes
8630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8632 if test "${ac_cv_header_stdc+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_compile") 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest.$ac_objext; then
8671 ac_cv_header_stdc=yes
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8676 ac_cv_header_stdc=no
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 if test $ac_cv_header_stdc = yes; then
8682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8693 $EGREP "memchr" >/dev/null 2>&1; then
8696 ac_cv_header_stdc=no
8702 if test $ac_cv_header_stdc = yes; then
8703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "free" >/dev/null 2>&1; then
8717 ac_cv_header_stdc=no
8723 if test $ac_cv_header_stdc = yes; then
8724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8725 if test "$cross_compiling" = yes; then
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8736 #if ((' ' & 0x0FF) == 0x020)
8737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8740 # define ISLOWER(c) \
8741 (('a' <= (c) && (c) <= 'i') \
8742 || ('j' <= (c) && (c) <= 'r') \
8743 || ('s' <= (c) && (c) <= 'z'))
8744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8752 for (i = 0; i < 256; i++)
8753 if (XOR (islower (i), ISLOWER (i))
8754 || toupper (i) != TOUPPER (i))
8759 rm -f conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8770 { (case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_try") 2>&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8781 echo "$as_me: program exited with status $ac_status" >&5
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_header_stdc=no
8788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8796 if test $ac_cv_header_stdc = yes; then
8798 cat >>confdefs.h <<\_ACEOF
8799 #define STDC_HEADERS 1
8804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
8806 if test "${ac_cv_header_time+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 #include <sys/types.h>
8816 #include <sys/time.h>
8822 if ((struct tm *) 0)
8828 rm -f conftest.$ac_objext
8829 if { (ac_try="$ac_compile"
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_compile") 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest.$ac_objext; then
8845 ac_cv_header_time=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_header_time=no
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8856 echo "${ECHO_T}$ac_cv_header_time" >&6; }
8857 if test $ac_cv_header_time = yes; then
8859 cat >>confdefs.h <<\_ACEOF
8860 #define TIME_WITH_SYS_TIME 1
8865 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8866 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
8867 if test "${gcc_cv_header_string+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8877 #include <strings.h>
8886 rm -f conftest.$ac_objext
8887 if { (ac_try="$ac_compile"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_compile") 2>conftest.er1
8895 grep -v '^ *+' conftest.er1 >conftest.err
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && {
8900 test -z "$ac_c_werror_flag" ||
8901 test ! -s conftest.err
8902 } && test -s conftest.$ac_objext; then
8903 gcc_cv_header_string=yes
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 gcc_cv_header_string=no
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8914 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
8915 if test $gcc_cv_header_string = yes; then
8917 cat >>confdefs.h <<\_ACEOF
8918 #define STRING_WITH_STRINGS 1
8923 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8924 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8925 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <sys/types.h>
8935 #include <sys/wait.h>
8937 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8953 rm -f conftest.$ac_objext
8954 if { (ac_try="$ac_compile"
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_c_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_cv_header_sys_wait_h=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_cv_header_sys_wait_h=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8981 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8982 if test $ac_cv_header_sys_wait_h = yes; then
8984 cat >>confdefs.h <<\_ACEOF
8985 #define HAVE_SYS_WAIT_H 1
9012 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9013 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9014 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9015 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <$ac_header>
9031 if { (ac_try="$ac_cpp conftest.$ac_ext"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9039 grep -v '^ *+' conftest.er1 >conftest.err
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } >/dev/null && {
9044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9047 eval "$as_ac_Header=yes"
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 eval "$as_ac_Header=no"
9055 rm -f conftest.err conftest.$ac_ext
9057 ac_res=`eval echo '${'$as_ac_Header'}'`
9058 { echo "$as_me:$LINENO: result: $ac_res" >&5
9059 echo "${ECHO_T}$ac_res" >&6; }
9060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9061 cat >>confdefs.h <<_ACEOF
9062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069 # Check for thread headers.
9070 { echo "$as_me:$LINENO: checking for thread.h" >&5
9071 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
9072 if test "${ac_cv_header_thread_h+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9083 if { (ac_try="$ac_cpp conftest.$ac_ext"
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } >/dev/null && {
9096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9099 ac_cv_header_thread_h=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_header_thread_h=no
9107 rm -f conftest.err conftest.$ac_ext
9109 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9110 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
9111 if test $ac_cv_header_thread_h = yes; then
9117 { echo "$as_me:$LINENO: checking for pthread.h" >&5
9118 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
9119 if test "${ac_cv_header_pthread_h+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <pthread.h>
9130 if { (ac_try="$ac_cpp conftest.$ac_ext"
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } >/dev/null && {
9143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9146 ac_cv_header_pthread_h=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_header_pthread_h=no
9154 rm -f conftest.err conftest.$ac_ext
9156 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9157 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
9158 if test $ac_cv_header_pthread_h = yes; then
9165 # These tests can't be done till we know if we have limits.h.
9166 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9167 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
9168 if test "${gcc_cv_decl_char_bit+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #ifdef HAVE_LIMITS_H
9184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9185 $EGREP "found" >/dev/null 2>&1; then
9186 gcc_cv_decl_char_bit=yes
9188 gcc_cv_decl_char_bit=no
9194 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9195 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
9196 if test $gcc_cv_decl_char_bit = no; then
9197 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9198 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
9199 if test "${gcc_cv_c_nbby+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 while test $i -lt 65; do
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9216 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9217 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9223 rm -f conftest.$ac_objext
9224 if { (ac_try="$ac_compile"
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9240 gcc_cv_c_nbby=$i; break
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9254 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9255 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
9256 if test $gcc_cv_c_nbby = failed; then
9257 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9258 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9259 { (exit 1); exit 1; }; }
9262 cat >>confdefs.h <<_ACEOF
9263 #define CHAR_BIT $gcc_cv_c_nbby
9268 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9269 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
9270 if test "${ac_cv_c_bigendian+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 # See if sys/param.h defines the BYTE_ORDER macro.
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <sys/types.h>
9281 #include <sys/param.h>
9286 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
9287 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.$ac_objext; then
9312 # It does; now see whether it defined to BIG_ENDIAN or not.
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 #include <sys/types.h>
9320 #include <sys/param.h>
9325 #if BYTE_ORDER != BIG_ENDIAN
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
9350 ac_cv_c_bigendian=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_c_bigendian=no
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 # It does not; compile a test program.
9364 if test "$cross_compiling" = yes; then
9365 # try to guess the endianness by grepping values into an object file
9366 ac_cv_c_bigendian=unknown
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9374 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9375 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9376 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9377 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9378 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9382 _ascii (); _ebcdic ();
9387 rm -f conftest.$ac_objext
9388 if { (ac_try="$ac_compile"
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_compile") 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest.$ac_objext; then
9404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9405 ac_cv_c_bigendian=yes
9407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9408 if test "$ac_cv_c_bigendian" = unknown; then
9409 ac_cv_c_bigendian=no
9411 # finding both strings is unlikely to happen, but who knows?
9412 ac_cv_c_bigendian=unknown
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 cat >conftest.$ac_ext <<_ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9430 $ac_includes_default
9435 /* Are we little or big endian? From Harbison&Steele. */
9439 char c[sizeof (long int)];
9442 return u.c[sizeof (long int) - 1] == 1;
9448 rm -f conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_c_bigendian=no
9470 echo "$as_me: program exited with status $ac_status" >&5
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9475 ac_cv_c_bigendian=yes
9477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9486 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
9487 case $ac_cv_c_bigendian in
9490 cat >>confdefs.h <<\_ACEOF
9491 #define WORDS_BIGENDIAN 1
9497 { { echo "$as_me:$LINENO: error: unknown endianness
9498 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9499 echo "$as_me: error: unknown endianness
9500 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9501 { (exit 1); exit 1; }; } ;;
9509 # Stage specific cflags for build.
9513 if test x$GCC = xyes
9515 stage1_cflags="-Wa,-J"
9523 # These libraries may be used by collect2.
9524 # We may need a special search path to get them linked.
9525 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9526 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
9527 if test "${gcc_cv_collect2_libs+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 for libs in '' -lld -lmld \
9532 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9533 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_link") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest$ac_exeext &&
9575 $as_test_x conftest$ac_exeext; then
9576 gcc_cv_collect2_libs="$libs"; break
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9585 conftest$ac_exeext conftest.$ac_ext
9588 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9590 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9591 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
9592 case $gcc_cv_collect2_libs in
9594 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9598 # When building Ada code on Alpha, we need exc_resume which is usually in
9599 # -lexc. So test for it.
9602 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9603 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
9604 if test "${ac_cv_search_exc_resume+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 ac_func_search_save_LIBS=$LIBS
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9625 return exc_resume ();
9630 for ac_lib in '' exc; do
9631 if test -z "$ac_lib"; then
9632 ac_res="none required"
9635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9655 ac_cv_search_exc_resume=$ac_res
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 if test "${ac_cv_search_exc_resume+set}" = set; then
9669 if test "${ac_cv_search_exc_resume+set}" = set; then
9672 ac_cv_search_exc_resume=no
9675 LIBS=$ac_func_search_save_LIBS
9677 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9678 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
9679 ac_res=$ac_cv_search_exc_resume
9680 if test "$ac_res" != no; then
9681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9689 # Some systems put ldexp and frexp in libm instead of libc; assume
9690 # they're both in the same place. jcf-dump needs them.
9693 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9694 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
9695 if test "${ac_cv_search_ldexp+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 ac_func_search_save_LIBS=$LIBS
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9721 for ac_lib in '' m; do
9722 if test -z "$ac_lib"; then
9723 ac_res="none required"
9726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
9746 ac_cv_search_ldexp=$ac_res
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756 if test "${ac_cv_search_ldexp+set}" = set; then
9760 if test "${ac_cv_search_ldexp+set}" = set; then
9763 ac_cv_search_ldexp=no
9766 LIBS=$ac_func_search_save_LIBS
9768 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9769 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
9770 ac_res=$ac_cv_search_ldexp
9771 if test "$ac_res" != no; then
9772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9780 # Use <inttypes.h> only if it exists,
9781 # doesn't clash with <sys/types.h>, and declares intmax_t.
9782 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9783 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9784 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <sys/types.h>
9794 #include <inttypes.h>
9803 rm -f conftest.$ac_objext
9804 if { (ac_try="$ac_compile"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_compile") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } && {
9817 test -z "$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9819 } && test -s conftest.$ac_objext; then
9820 gcc_cv_header_inttypes_h=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 gcc_cv_header_inttypes_h=no
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9832 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
9833 if test $gcc_cv_header_inttypes_h = yes; then
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_INTTYPES_H 1
9878 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9879 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9880 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9881 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
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_$ac_func || defined __stub___$ac_func
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 eval "$as_ac_var=yes"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 eval "$as_ac_var=no"
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9963 ac_res=`eval echo '${'$as_ac_var'}'`
9964 { echo "$as_me:$LINENO: result: $ac_res" >&5
9965 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_var'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9975 if test x$ac_cv_func_mbstowcs = xyes; then
9976 { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9977 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
9978 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 if test "$cross_compiling" = yes; then
9982 gcc_cv_func_mbstowcs_works=yes
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9997 rm -f conftest$ac_exeext
9998 if { (ac_try="$ac_link"
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_link") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10008 { (case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_try") 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 gcc_cv_func_mbstowcs_works=yes
10019 echo "$as_me: program exited with status $ac_status" >&5
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ( exit $ac_status )
10024 gcc_cv_func_mbstowcs_works=no
10026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10031 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10032 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
10033 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10035 cat >>confdefs.h <<\_ACEOF
10036 #define HAVE_WORKING_MBSTOWCS 1
10042 { echo "$as_me:$LINENO: checking for ssize_t" >&5
10043 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
10044 if test "${ac_cv_type_ssize_t+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 $ac_includes_default
10054 typedef ssize_t ac__type_new_;
10058 if ((ac__type_new_ *) 0)
10060 if (sizeof (ac__type_new_))
10066 rm -f conftest.$ac_objext
10067 if { (ac_try="$ac_compile"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 ac_cv_type_ssize_t=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_type_ssize_t=no
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
10095 if test $ac_cv_type_ssize_t = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define ssize_t int
10106 # Try to determine the array type of the second argument of getgroups
10107 # for the target system (int or gid_t).
10108 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10109 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
10110 if test "${ac_cv_type_uid_t+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10123 $EGREP "uid_t" >/dev/null 2>&1; then
10124 ac_cv_type_uid_t=yes
10126 ac_cv_type_uid_t=no
10131 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10132 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
10133 if test $ac_cv_type_uid_t = no; then
10135 cat >>confdefs.h <<\_ACEOF
10140 cat >>confdefs.h <<\_ACEOF
10146 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10147 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
10148 if test "${ac_cv_type_getgroups+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 if test "$cross_compiling" = yes; then
10152 ac_cv_type_getgroups=cross
10154 cat >conftest.$ac_ext <<_ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 /* Thanks to Mike Rendell for this test. */
10161 $ac_includes_default
10164 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10169 gid_t gidset[NGID];
10171 union { gid_t gval; long int lval; } val;
10174 for (i = 0; i < NGID; i++)
10175 gidset[i] = val.gval;
10176 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10178 /* Exit non-zero if getgroups seems to require an array of ints. This
10179 happens when gid_t is short int but getgroups modifies an array
10181 return n > 0 && gidset[n] != val.gval;
10184 rm -f conftest$ac_exeext
10185 if { (ac_try="$ac_link"
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_link") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_type_getgroups=gid_t
10206 echo "$as_me: program exited with status $ac_status" >&5
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ( exit $ac_status )
10211 ac_cv_type_getgroups=int
10213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10217 if test $ac_cv_type_getgroups = cross; then
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 #include <unistd.h>
10227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10228 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10229 ac_cv_type_getgroups=gid_t
10231 ac_cv_type_getgroups=int
10237 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10238 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
10240 cat >>confdefs.h <<_ACEOF
10241 #define GETGROUPS_T $ac_cv_type_getgroups
10245 if test "${target}" = "${build}"; then
10246 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10248 case "${target}" in
10249 # This condition may need some tweaking. It should include all
10250 # targets where the array type of the second argument of getgroups
10251 # is int and the type of gid_t is not equivalent to int.
10252 *-*-sunos* | *-*-ultrix*)
10253 TARGET_GETGROUPS_T=int
10256 TARGET_GETGROUPS_T=gid_t
10263 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10264 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
10265 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <sys/mman.h>
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } >/dev/null && {
10289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10292 ac_cv_header_sys_mman_h=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_header_sys_mman_h=no
10300 rm -f conftest.err conftest.$ac_ext
10302 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10303 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
10304 if test $ac_cv_header_sys_mman_h = yes; then
10305 gcc_header_sys_mman_h=yes
10307 gcc_header_sys_mman_h=no
10310 { echo "$as_me:$LINENO: checking for mmap" >&5
10311 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
10312 if test "${ac_cv_func_mmap+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10323 #define mmap innocuous_mmap
10325 /* System header to define __stub macros and hopefully few prototypes,
10326 which can conflict with char mmap (); below.
10327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10328 <limits.h> exists even on freestanding compilers. */
10331 # include <limits.h>
10333 # include <assert.h>
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10345 /* The GNU C library defines this for functions which it implements
10346 to always fail with ENOSYS. Some functions are actually named
10347 something starting with __ and the normal name is an alias. */
10348 #if defined __stub_mmap || defined __stub___mmap
10360 rm -f conftest.$ac_objext conftest$ac_exeext
10361 if { (ac_try="$ac_link"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367 (eval "$ac_link") 2>conftest.er1
10369 grep -v '^ *+' conftest.er1 >conftest.err
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } && {
10374 test -z "$ac_c_werror_flag" ||
10375 test ! -s conftest.err
10376 } && test -s conftest$ac_exeext &&
10377 $as_test_x conftest$ac_exeext; then
10378 ac_cv_func_mmap=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10387 conftest$ac_exeext conftest.$ac_ext
10389 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10390 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
10391 if test $ac_cv_func_mmap = yes; then
10397 if test "$gcc_header_sys_mman_h" != yes \
10398 || test "$gcc_func_mmap" != yes; then
10399 gcc_cv_func_mmap_file=no
10400 gcc_cv_func_mmap_dev_zero=no
10401 gcc_cv_func_mmap_anon=no
10403 { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10404 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
10405 if test "${gcc_cv_func_mmap_file+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 # Add a system to this blacklist if
10409 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10410 # memory area containing the same data that you'd get if you applied
10411 # read() to the same fd. The only system known to have a problem here
10412 # is VMS, where text files have record structure.
10415 gcc_cv_func_mmap_file=no ;;
10417 gcc_cv_func_mmap_file=yes;;
10420 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10421 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
10422 { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10423 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
10424 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 # Add a system to this blacklist if it has mmap() but /dev/zero
10428 # does not exist, or if mmapping /dev/zero does not give anonymous
10429 # zeroed pages with both the following properties:
10430 # 1. If you map N consecutive pages in with one call, and then
10431 # unmap any subset of those pages, the pages that were not
10432 # explicitly unmapped remain accessible.
10433 # 2. If you map two adjacent blocks of memory and then unmap them
10434 # both at once, they must both go away.
10435 # Systems known to be in this category are Windows (all variants),
10438 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10439 gcc_cv_func_mmap_dev_zero=no ;;
10441 gcc_cv_func_mmap_dev_zero=yes;;
10444 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10445 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
10447 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10448 { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10449 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
10450 if test "${gcc_cv_decl_map_anon+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 #include <sys/types.h>
10460 #include <sys/mman.h>
10461 #include <unistd.h>
10463 #ifndef MAP_ANONYMOUS
10464 #define MAP_ANONYMOUS MAP_ANON
10470 int n = MAP_ANONYMOUS;
10475 rm -f conftest.$ac_objext
10476 if { (ac_try="$ac_compile"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_compile") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest.$ac_objext; then
10492 gcc_cv_decl_map_anon=yes
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 gcc_cv_decl_map_anon=no
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10503 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
10505 if test $gcc_cv_decl_map_anon = no; then
10506 gcc_cv_func_mmap_anon=no
10508 { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10509 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
10510 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10514 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10515 # doesn't give anonymous zeroed pages with the same properties listed
10516 # above for use of /dev/zero.
10517 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10519 vms* | cygwin* | pe | mingw* | sco* | udk* )
10520 gcc_cv_func_mmap_anon=no ;;
10522 gcc_cv_func_mmap_anon=yes;;
10525 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10526 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
10530 if test $gcc_cv_func_mmap_file = yes; then
10532 cat >>confdefs.h <<\_ACEOF
10533 #define HAVE_MMAP_FILE 1
10537 if test $gcc_cv_func_mmap_dev_zero = yes; then
10539 cat >>confdefs.h <<\_ACEOF
10540 #define HAVE_MMAP_DEV_ZERO 1
10544 if test $gcc_cv_func_mmap_anon = yes; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_MMAP_ANON 1
10555 # Under VMS, vfork works very differently than on Unix. The standard test
10556 # won't work, and it isn't easily adaptable. It makes more sense to
10558 ac_cv_func_vfork_works=yes
10561 { echo "$as_me:$LINENO: checking for pid_t" >&5
10562 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10563 if test "${ac_cv_type_pid_t+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 typedef pid_t ac__type_new_;
10577 if ((ac__type_new_ *) 0)
10579 if (sizeof (ac__type_new_))
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_compile") 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } && {
10599 test -z "$ac_c_werror_flag" ||
10600 test ! -s conftest.err
10601 } && test -s conftest.$ac_objext; then
10602 ac_cv_type_pid_t=yes
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_cv_type_pid_t=no
10610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10613 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10614 if test $ac_cv_type_pid_t = yes; then
10618 cat >>confdefs.h <<_ACEOF
10625 for ac_header in vfork.h
10627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <$ac_header>
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } >/dev/null && {
10654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10655 test ! -s conftest.err
10657 eval "$as_ac_Header=yes"
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 eval "$as_ac_Header=no"
10665 rm -f conftest.err conftest.$ac_ext
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 for ac_func in fork vfork
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 cat >conftest.$ac_ext <<_ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10696 #define $ac_func innocuous_$ac_func
10698 /* System header to define __stub macros and hopefully few prototypes,
10699 which can conflict with char $ac_func (); below.
10700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 <limits.h> exists even on freestanding compilers. */
10704 # include <limits.h>
10706 # include <assert.h>
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10718 /* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721 #if defined __stub_$ac_func || defined __stub___$ac_func
10728 return $ac_func ();
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_link") 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest$ac_exeext &&
10750 $as_test_x conftest$ac_exeext; then
10751 eval "$as_ac_var=yes"
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 eval "$as_ac_var=no"
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10760 conftest$ac_exeext conftest.$ac_ext
10762 ac_res=`eval echo '${'$as_ac_var'}'`
10763 { echo "$as_me:$LINENO: result: $ac_res" >&5
10764 echo "${ECHO_T}$ac_res" >&6; }
10765 if test `eval echo '${'$as_ac_var'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10773 if test "x$ac_cv_func_fork" = xyes; then
10774 { echo "$as_me:$LINENO: checking for working fork" >&5
10775 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10776 if test "${ac_cv_func_fork_works+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 if test "$cross_compiling" = yes; then
10780 ac_cv_func_fork_works=cross
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 $ac_includes_default
10793 /* By Ruediger Kuhlmann. */
10794 return fork () < 0;
10800 rm -f conftest$ac_exeext
10801 if { (ac_try="$ac_link"
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_link") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_cv_func_fork_works=yes
10822 echo "$as_me: program exited with status $ac_status" >&5
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ( exit $ac_status )
10827 ac_cv_func_fork_works=no
10829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10835 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10838 ac_cv_func_fork_works=$ac_cv_func_fork
10840 if test "x$ac_cv_func_fork_works" = xcross; then
10842 *-*-amigaos* | *-*-msdosdjgpp*)
10843 # Override, as these systems have only a dummy fork() stub
10844 ac_cv_func_fork_works=no
10847 ac_cv_func_fork_works=yes
10850 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10851 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10853 ac_cv_func_vfork_works=$ac_cv_func_vfork
10854 if test "x$ac_cv_func_vfork" = xyes; then
10855 { echo "$as_me:$LINENO: checking for working vfork" >&5
10856 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10857 if test "${ac_cv_func_vfork_works+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 if test "$cross_compiling" = yes; then
10861 ac_cv_func_vfork_works=cross
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 /* Thanks to Paul Eggert for this test. */
10870 $ac_includes_default
10871 #include <sys/wait.h>
10872 #ifdef HAVE_VFORK_H
10873 # include <vfork.h>
10875 /* On some sparc systems, changes by the child to local and incoming
10876 argument registers are propagated back to the parent. The compiler
10877 is told about this with #include <vfork.h>, but some compilers
10878 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10879 static variable whose address is put into a register that is
10880 clobbered by the vfork. */
10883 sparc_address_test (int arg)
10885 sparc_address_test (arg) int arg;
10888 static pid_t child;
10906 pid_t parent = getpid ();
10909 sparc_address_test (0);
10914 /* Here is another test for sparc vfork register problems. This
10915 test uses lots of local variables, at least as many local
10916 variables as main has allocated so far including compiler
10917 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10918 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10919 reuse the register of parent for one of the local variables,
10920 since it will think that parent can't possibly be used any more
10921 in this routine. Assigning to the local variable will thus
10922 munge parent in the parent process. */
10924 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10925 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10926 /* Convince the compiler that p..p7 are live; otherwise, it might
10927 use the same hardware register for all 8 local variables. */
10928 if (p != p1 || p != p2 || p != p3 || p != p4
10929 || p != p5 || p != p6 || p != p7)
10932 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10933 from child file descriptors. If the child closes a descriptor
10934 before it execs or exits, this munges the parent's descriptor
10935 as well. Test for this by closing stdout in the child. */
10936 _exit(close(fileno(stdout)) != 0);
10941 while (wait(&status) != child)
10944 /* Was there some problem with vforking? */
10947 /* Did the child fail? (This shouldn't happen.) */
10950 /* Did the vfork/compiler bug occur? */
10951 || parent != getpid()
10953 /* Did the file descriptor bug occur? */
10954 || fstat(fileno(stdout), &st) != 0
10959 rm -f conftest$ac_exeext
10960 if { (ac_try="$ac_link"
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_link") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10970 { (case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_try") 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_func_vfork_works=yes
10981 echo "$as_me: program exited with status $ac_status" >&5
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ( exit $ac_status )
10986 ac_cv_func_vfork_works=no
10988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10993 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10994 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10997 if test "x$ac_cv_func_fork_works" = xcross; then
10998 ac_cv_func_vfork_works=$ac_cv_func_vfork
10999 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11000 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11003 if test "x$ac_cv_func_vfork_works" = xyes; then
11005 cat >>confdefs.h <<\_ACEOF
11006 #define HAVE_WORKING_VFORK 1
11011 cat >>confdefs.h <<\_ACEOF
11016 if test "x$ac_cv_func_fork_works" = xyes; then
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_WORKING_FORK 1
11026 if test "X$prefix" = "XNONE"; then
11027 acl_final_prefix="$ac_default_prefix"
11029 acl_final_prefix="$prefix"
11031 if test "X$exec_prefix" = "XNONE"; then
11032 acl_final_exec_prefix='${prefix}'
11034 acl_final_exec_prefix="$exec_prefix"
11036 acl_save_prefix="$prefix"
11037 prefix="$acl_final_prefix"
11038 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11039 prefix="$acl_save_prefix"
11042 # Check whether --with-gnu-ld was given.
11043 if test "${with_gnu_ld+set}" = set; then
11044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11049 # Prepare PATH_SEPARATOR.
11050 # The user is always right.
11051 if test "${PATH_SEPARATOR+set}" != set; then
11052 echo "#! /bin/sh" >conf$$.sh
11053 echo "exit 0" >>conf$$.sh
11055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11063 if test "$GCC" = yes; then
11064 # Check if gcc -print-prog-name=ld gives a path.
11065 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11066 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11069 # gcc leaves a trailing carriage return which upsets mingw
11070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11075 # Accept absolute paths.
11076 [\\/]* | [A-Za-z]:[\\/]*)
11077 re_direlt='/[^/][^/]*/\.\./'
11078 # Canonicalize the path of ld
11079 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11080 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11081 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11083 test -z "$LD" && LD="$ac_prog"
11086 # If it fails, then pretend we aren't using GCC.
11090 # If it is relative, then search for the first ld in PATH.
11091 with_gnu_ld=unknown
11094 elif test "$with_gnu_ld" = yes; then
11095 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11096 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11098 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11099 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11101 if test "${acl_cv_path_LD+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 if test -z "$LD"; then
11105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11106 for ac_dir in $PATH; do
11107 test -z "$ac_dir" && ac_dir=.
11108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11109 acl_cv_path_LD="$ac_dir/$ac_prog"
11110 # Check to see if the program is GNU ld. I'd rather use --version,
11111 # but apparently some GNU ld's only accept -v.
11112 # Break only if it was the GNU/non-GNU ld that we prefer.
11113 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11114 test "$with_gnu_ld" != no && break
11116 test "$with_gnu_ld" != yes && break
11122 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11126 LD="$acl_cv_path_LD"
11127 if test -n "$LD"; then
11128 { echo "$as_me:$LINENO: result: $LD" >&5
11129 echo "${ECHO_T}$LD" >&6; }
11131 { echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6; }
11134 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11135 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11136 { (exit 1); exit 1; }; }
11137 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11138 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11139 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11143 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11144 acl_cv_prog_gnu_ld=yes
11146 acl_cv_prog_gnu_ld=no
11149 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11150 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11151 with_gnu_ld=$acl_cv_prog_gnu_ld
11155 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11156 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11157 if test "${acl_cv_rpath+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11162 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11164 rm -f ./conftest.sh
11168 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11169 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11171 libext="$acl_cv_libext"
11172 shlibext="$acl_cv_shlibext"
11173 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11174 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11175 hardcode_direct="$acl_cv_hardcode_direct"
11176 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11177 # Check whether --enable-rpath was given.
11178 if test "${enable_rpath+set}" = set; then
11179 enableval=$enable_rpath; :
11193 acl_save_prefix="$prefix"
11194 prefix="$acl_final_prefix"
11195 acl_save_exec_prefix="$exec_prefix"
11196 exec_prefix="$acl_final_exec_prefix"
11198 eval additional_includedir=\"$includedir\"
11199 eval additional_libdir=\"$libdir\"
11201 exec_prefix="$acl_save_exec_prefix"
11202 prefix="$acl_save_prefix"
11205 # Check whether --with-libiconv-prefix was given.
11206 if test "${with_libiconv_prefix+set}" = set; then
11207 withval=$with_libiconv_prefix;
11208 if test "X$withval" = "Xno"; then
11211 if test "X$withval" = "X"; then
11213 acl_save_prefix="$prefix"
11214 prefix="$acl_final_prefix"
11215 acl_save_exec_prefix="$exec_prefix"
11216 exec_prefix="$acl_final_exec_prefix"
11218 eval additional_includedir=\"$includedir\"
11219 eval additional_libdir=\"$libdir\"
11221 exec_prefix="$acl_save_exec_prefix"
11222 prefix="$acl_save_prefix"
11225 additional_includedir="$withval/include"
11226 additional_libdir="$withval/lib"
11237 names_already_handled=
11238 names_next_round='iconv '
11239 while test -n "$names_next_round"; do
11240 names_this_round="$names_next_round"
11242 for name in $names_this_round; do
11244 for n in $names_already_handled; do
11245 if test "$n" = "$name"; then
11246 already_handled=yes
11250 if test -z "$already_handled"; then
11251 names_already_handled="$names_already_handled $name"
11252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11253 eval value=\"\$HAVE_LIB$uppername\"
11254 if test -n "$value"; then
11255 if test "$value" = yes; then
11256 eval value=\"\$LIB$uppername\"
11257 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11258 eval value=\"\$LTLIB$uppername\"
11259 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11268 if test $use_additional = yes; then
11269 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11270 found_dir="$additional_libdir"
11271 found_so="$additional_libdir/lib$name.$shlibext"
11272 if test -f "$additional_libdir/lib$name.la"; then
11273 found_la="$additional_libdir/lib$name.la"
11276 if test -f "$additional_libdir/lib$name.$libext"; then
11277 found_dir="$additional_libdir"
11278 found_a="$additional_libdir/lib$name.$libext"
11279 if test -f "$additional_libdir/lib$name.la"; then
11280 found_la="$additional_libdir/lib$name.la"
11285 if test "X$found_dir" = "X"; then
11286 for x in $LDFLAGS $LTLIBICONV; do
11288 acl_save_prefix="$prefix"
11289 prefix="$acl_final_prefix"
11290 acl_save_exec_prefix="$exec_prefix"
11291 exec_prefix="$acl_final_exec_prefix"
11293 exec_prefix="$acl_save_exec_prefix"
11294 prefix="$acl_save_prefix"
11298 dir=`echo "X$x" | sed -e 's/^X-L//'`
11299 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11301 found_so="$dir/lib$name.$shlibext"
11302 if test -f "$dir/lib$name.la"; then
11303 found_la="$dir/lib$name.la"
11306 if test -f "$dir/lib$name.$libext"; then
11308 found_a="$dir/lib$name.$libext"
11309 if test -f "$dir/lib$name.la"; then
11310 found_la="$dir/lib$name.la"
11316 if test "X$found_dir" != "X"; then
11321 if test "X$found_dir" != "X"; then
11322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11323 if test "X$found_so" != "X"; then
11324 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11325 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11328 for x in $ltrpathdirs; do
11329 if test "X$x" = "X$found_dir"; then
11334 if test -z "$haveit"; then
11335 ltrpathdirs="$ltrpathdirs $found_dir"
11337 if test "$hardcode_direct" = yes; then
11338 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11340 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11341 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11343 for x in $rpathdirs; do
11344 if test "X$x" = "X$found_dir"; then
11349 if test -z "$haveit"; then
11350 rpathdirs="$rpathdirs $found_dir"
11354 for x in $LDFLAGS $LIBICONV; do
11356 acl_save_prefix="$prefix"
11357 prefix="$acl_final_prefix"
11358 acl_save_exec_prefix="$exec_prefix"
11359 exec_prefix="$acl_final_exec_prefix"
11361 exec_prefix="$acl_save_exec_prefix"
11362 prefix="$acl_save_prefix"
11364 if test "X$x" = "X-L$found_dir"; then
11369 if test -z "$haveit"; then
11370 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11372 if test "$hardcode_minus_L" != no; then
11373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11375 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11381 if test "X$found_a" != "X"; then
11382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11384 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11387 additional_includedir=
11388 case "$found_dir" in
11390 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11391 additional_includedir="$basedir/include"
11394 if test "X$additional_includedir" != "X"; then
11395 if test "X$additional_includedir" != "X/usr/include"; then
11397 if test "X$additional_includedir" = "X/usr/local/include"; then
11398 if test -n "$GCC"; then
11400 linux*) haveit=yes;;
11404 if test -z "$haveit"; then
11405 for x in $CPPFLAGS $INCICONV; do
11407 acl_save_prefix="$prefix"
11408 prefix="$acl_final_prefix"
11409 acl_save_exec_prefix="$exec_prefix"
11410 exec_prefix="$acl_final_exec_prefix"
11412 exec_prefix="$acl_save_exec_prefix"
11413 prefix="$acl_save_prefix"
11415 if test "X$x" = "X-I$additional_includedir"; then
11420 if test -z "$haveit"; then
11421 if test -d "$additional_includedir"; then
11422 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11428 if test -n "$found_la"; then
11429 save_libdir="$libdir"
11430 case "$found_la" in
11431 */* | *\\*) . "$found_la" ;;
11432 *) . "./$found_la" ;;
11434 libdir="$save_libdir"
11435 for dep in $dependency_libs; do
11438 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11439 if test "X$additional_libdir" != "X/usr/lib"; then
11441 if test "X$additional_libdir" = "X/usr/local/lib"; then
11442 if test -n "$GCC"; then
11444 linux*) haveit=yes;;
11448 if test -z "$haveit"; then
11450 for x in $LDFLAGS $LIBICONV; do
11452 acl_save_prefix="$prefix"
11453 prefix="$acl_final_prefix"
11454 acl_save_exec_prefix="$exec_prefix"
11455 exec_prefix="$acl_final_exec_prefix"
11457 exec_prefix="$acl_save_exec_prefix"
11458 prefix="$acl_save_prefix"
11460 if test "X$x" = "X-L$additional_libdir"; then
11465 if test -z "$haveit"; then
11466 if test -d "$additional_libdir"; then
11467 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11471 for x in $LDFLAGS $LTLIBICONV; do
11473 acl_save_prefix="$prefix"
11474 prefix="$acl_final_prefix"
11475 acl_save_exec_prefix="$exec_prefix"
11476 exec_prefix="$acl_final_exec_prefix"
11478 exec_prefix="$acl_save_exec_prefix"
11479 prefix="$acl_save_prefix"
11481 if test "X$x" = "X-L$additional_libdir"; then
11486 if test -z "$haveit"; then
11487 if test -d "$additional_libdir"; then
11488 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11495 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11496 if test "$enable_rpath" != no; then
11498 for x in $rpathdirs; do
11499 if test "X$x" = "X$dir"; then
11504 if test -z "$haveit"; then
11505 rpathdirs="$rpathdirs $dir"
11508 for x in $ltrpathdirs; do
11509 if test "X$x" = "X$dir"; then
11514 if test -z "$haveit"; then
11515 ltrpathdirs="$ltrpathdirs $dir"
11520 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11523 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11526 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11533 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11534 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11540 if test "X$rpathdirs" != "X"; then
11541 if test -n "$hardcode_libdir_separator"; then
11543 for found_dir in $rpathdirs; do
11544 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11546 acl_save_libdir="$libdir"
11548 eval flag=\"$hardcode_libdir_flag_spec\"
11549 libdir="$acl_save_libdir"
11550 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11552 for found_dir in $rpathdirs; do
11553 acl_save_libdir="$libdir"
11554 libdir="$found_dir"
11555 eval flag=\"$hardcode_libdir_flag_spec\"
11556 libdir="$acl_save_libdir"
11557 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11561 if test "X$ltrpathdirs" != "X"; then
11562 for found_dir in $ltrpathdirs; do
11563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11573 am_save_CPPFLAGS="$CPPFLAGS"
11575 for element in $INCICONV; do
11577 for x in $CPPFLAGS; do
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 acl_save_exec_prefix="$exec_prefix"
11582 exec_prefix="$acl_final_exec_prefix"
11584 exec_prefix="$acl_save_exec_prefix"
11585 prefix="$acl_save_prefix"
11587 if test "X$x" = "X$element"; then
11592 if test -z "$haveit"; then
11593 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11598 { echo "$as_me:$LINENO: checking for iconv" >&5
11599 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11600 if test "${am_cv_func_iconv+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 am_cv_func_iconv="no, consider installing GNU libiconv"
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <stdlib.h>
11617 iconv_t cd = iconv_open("","");
11618 iconv(cd,NULL,NULL,NULL,NULL);
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest$ac_exeext &&
11641 $as_test_x conftest$ac_exeext; then
11642 am_cv_func_iconv=yes
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651 conftest$ac_exeext conftest.$ac_ext
11652 if test "$am_cv_func_iconv" != yes; then
11653 am_save_LIBS="$LIBS"
11654 LIBS="$LIBS $LIBICONV"
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <stdlib.h>
11666 iconv_t cd = iconv_open("","");
11667 iconv(cd,NULL,NULL,NULL,NULL);
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest$ac_exeext &&
11690 $as_test_x conftest$ac_exeext; then
11691 am_cv_lib_iconv=yes
11692 am_cv_func_iconv=yes
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS="$am_save_LIBS"
11706 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11707 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11708 if test "$am_cv_func_iconv" = yes; then
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_ICONV 1
11715 if test "$am_cv_lib_iconv" = yes; then
11716 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11717 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11718 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11719 echo "${ECHO_T}$LIBICONV" >&6; }
11721 CPPFLAGS="$am_save_CPPFLAGS"
11728 if test "$am_cv_func_iconv" = yes; then
11729 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11730 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11731 if test "${am_cv_proto_iconv+set}" = set; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 #include <stdlib.h>
11748 #if defined(__STDC__) || defined(__cplusplus)
11749 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_compile") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest.$ac_objext; then
11779 am_cv_proto_iconv_arg1=""
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 am_cv_proto_iconv_arg1="const"
11787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 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);"
11791 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11792 { echo "$as_me:$LINENO: result: ${ac_t:-
11793 }$am_cv_proto_iconv" >&5
11794 echo "${ECHO_T}${ac_t:-
11795 }$am_cv_proto_iconv" >&6; }
11797 cat >>confdefs.h <<_ACEOF
11798 #define ICONV_CONST $am_cv_proto_iconv_arg1
11803 # Until we have in-tree GNU iconv:
11808 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11809 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
11810 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <locale.h>
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 am_cv_val_LC_MESSAGES=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 am_cv_val_LC_MESSAGES=no
11854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855 conftest$ac_exeext conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11858 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
11859 if test $am_cv_val_LC_MESSAGES = yes; then
11861 cat >>confdefs.h <<\_ACEOF
11862 #define HAVE_LC_MESSAGES 1
11869 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11870 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
11871 if test "${am_cv_langinfo_codeset+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <langinfo.h>
11884 char* cs = nl_langinfo(CODESET);
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (ac_try="$ac_link"
11891 case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_link") 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } && {
11903 test -z "$ac_c_werror_flag" ||
11904 test ! -s conftest.err
11905 } && test -s conftest$ac_exeext &&
11906 $as_test_x conftest$ac_exeext; then
11907 am_cv_langinfo_codeset=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 am_cv_langinfo_codeset=no
11915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11916 conftest$ac_exeext conftest.$ac_ext
11919 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11920 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
11921 if test $am_cv_langinfo_codeset = yes; then
11923 cat >>confdefs.h <<\_ACEOF
11924 #define HAVE_LANGINFO_CODESET 1
11930 # We will need to find libiberty.h and ansidecl.h
11931 saved_CFLAGS="$CFLAGS"
11932 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11972 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11973 strsignal strstr strverscmp \
11974 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11975 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
11977 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11978 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11979 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
11980 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11990 #define $ac_tr_decl 1
11992 #include "ansidecl.h"
11993 #include "system.h"
11999 char *(*pfn) = (char *(*)) $ac_func ;
12005 rm -f conftest.$ac_objext
12006 if { (ac_try="$ac_compile"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_compile") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } && {
12019 test -z "$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 } && test -s conftest.$ac_objext; then
12022 eval "gcc_cv_have_decl_$ac_func=yes"
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 eval "gcc_cv_have_decl_$ac_func=no"
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12034 { echo "$as_me:$LINENO: result: yes" >&5
12035 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12036 #define $ac_tr_decl 1
12040 { echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12042 #define $ac_tr_decl 0
12053 for ac_func in getrlimit setrlimit getrusage
12055 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12056 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12057 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12058 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12068 #define $ac_tr_decl 1
12070 #include "ansidecl.h"
12071 #include "system.h"
12072 #ifdef HAVE_SYS_RESOURCE_H
12073 #include <sys/resource.h>
12081 char *(*pfn) = (char *(*)) $ac_func ;
12087 rm -f conftest.$ac_objext
12088 if { (ac_try="$ac_compile"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_compile") 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && {
12101 test -z "$ac_c_werror_flag" ||
12102 test ! -s conftest.err
12103 } && test -s conftest.$ac_objext; then
12104 eval "gcc_cv_have_decl_$ac_func=yes"
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 eval "gcc_cv_have_decl_$ac_func=no"
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12116 { echo "$as_me:$LINENO: result: yes" >&5
12117 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12118 #define $ac_tr_decl 1
12122 { echo "$as_me:$LINENO: result: no" >&5
12123 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12124 #define $ac_tr_decl 0
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12139 #include "ansidecl.h"
12140 #include "system.h"
12141 #ifdef HAVE_SYS_RESOURCE_H
12142 #include <sys/resource.h>
12153 rm -f conftest.$ac_objext
12154 if { (ac_try="$ac_compile"
12155 case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_compile") 2>conftest.er1
12162 grep -v '^ *+' conftest.er1 >conftest.err
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } && {
12167 test -z "$ac_c_werror_flag" ||
12168 test ! -s conftest.err
12169 } && test -s conftest.$ac_objext; then
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12176 cat >>confdefs.h <<\_ACEOF
12177 #define rlim_t long
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12185 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12186 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12187 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12189 for ac_func in ldgetname
12191 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12192 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12193 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12194 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12204 #define $ac_tr_decl 1
12206 #include "ansidecl.h"
12207 #include "system.h"
12208 #ifdef HAVE_LDFCN_H
12219 char *(*pfn) = (char *(*)) $ac_func ;
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_compile") 2>conftest.er1
12234 grep -v '^ *+' conftest.er1 >conftest.err
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } && {
12239 test -z "$ac_c_werror_flag" ||
12240 test ! -s conftest.err
12241 } && test -s conftest.$ac_objext; then
12242 eval "gcc_cv_have_decl_$ac_func=yes"
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 eval "gcc_cv_have_decl_$ac_func=no"
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12254 { echo "$as_me:$LINENO: result: yes" >&5
12255 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12256 #define $ac_tr_decl 1
12260 { echo "$as_me:$LINENO: result: no" >&5
12261 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12262 #define $ac_tr_decl 0
12271 for ac_func in times
12273 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12274 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12275 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12276 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 cat >conftest.$ac_ext <<_ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12286 #define $ac_tr_decl 1
12288 #include "ansidecl.h"
12289 #include "system.h"
12290 #ifdef HAVE_SYS_TIMES_H
12291 #include <sys/times.h>
12299 char *(*pfn) = (char *(*)) $ac_func ;
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_compile") 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && {
12319 test -z "$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12321 } && test -s conftest.$ac_objext; then
12322 eval "gcc_cv_have_decl_$ac_func=yes"
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 eval "gcc_cv_have_decl_$ac_func=no"
12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12334 { echo "$as_me:$LINENO: result: yes" >&5
12335 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12336 #define $ac_tr_decl 1
12340 { echo "$as_me:$LINENO: result: no" >&5
12341 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12342 #define $ac_tr_decl 0
12351 for ac_func in sigaltstack
12353 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12354 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12355 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
12356 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 #define $ac_tr_decl 1
12368 #include "ansidecl.h"
12369 #include "system.h"
12370 #include <signal.h>
12377 char *(*pfn) = (char *(*)) $ac_func ;
12383 rm -f conftest.$ac_objext
12384 if { (ac_try="$ac_compile"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_compile") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.$ac_objext; then
12400 eval "gcc_cv_have_decl_$ac_func=yes"
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 eval "gcc_cv_have_decl_$ac_func=no"
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12412 { echo "$as_me:$LINENO: result: yes" >&5
12413 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12414 #define $ac_tr_decl 1
12418 { echo "$as_me:$LINENO: result: no" >&5
12419 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
12420 #define $ac_tr_decl 0
12428 # More time-related stuff.
12429 { echo "$as_me:$LINENO: checking for struct tms" >&5
12430 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
12431 if test "${ac_cv_struct_tms+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12442 #include "ansidecl.h"
12443 #include "system.h"
12444 #ifdef HAVE_SYS_TIMES_H
12445 #include <sys/times.h>
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_compile") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest.$ac_objext; then
12473 ac_cv_struct_tms=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12478 ac_cv_struct_tms=no
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12484 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
12485 if test $ac_cv_struct_tms = yes; then
12487 cat >>confdefs.h <<\_ACEOF
12488 #define HAVE_STRUCT_TMS 1
12493 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12494 # revisit after autoconf 2.50.
12495 { echo "$as_me:$LINENO: checking for clock_t" >&5
12496 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
12497 if test "${gcc_cv_type_clock_t+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 #include "ansidecl.h"
12509 #include "system.h"
12519 rm -f conftest.$ac_objext
12520 if { (ac_try="$ac_compile"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_compile") 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } && {
12533 test -z "$ac_c_werror_flag" ||
12534 test ! -s conftest.err
12535 } && test -s conftest.$ac_objext; then
12536 gcc_cv_type_clock_t=yes
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 gcc_cv_type_clock_t=no
12544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12547 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
12548 if test $gcc_cv_type_clock_t = yes; then
12550 cat >>confdefs.h <<\_ACEOF
12551 #define HAVE_CLOCK_T 1
12556 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12557 CFLAGS="$saved_CFLAGS"
12559 # Check whether --enable-initfini-array was given.
12560 if test "${enable_initfini_array+set}" = set; then
12561 enableval=$enable_initfini_array;
12564 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12565 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12566 if test "${gcc_cv_initfini_array+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 if test "$cross_compiling" = yes; then
12570 gcc_cv_initfini_array=no
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12580 int main (void) { return x; }
12581 int foo (void) { x = 0; }
12582 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12584 rm -f conftest$ac_exeext
12585 if { (ac_try="$ac_link"
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_link") 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 gcc_cv_initfini_array=yes
12606 echo "$as_me: program exited with status $ac_status" >&5
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ( exit $ac_status )
12611 gcc_cv_initfini_array=no
12613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12618 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12619 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
12620 enable_initfini_array=$gcc_cv_initfini_array
12624 if test $enable_initfini_array = yes; then
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_INITFINI_ARRAY 1
12632 # mkdir takes a single argument on some systems.
12633 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12634 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
12635 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 #include <sys/types.h>
12646 #ifdef HAVE_SYS_STAT_H
12647 # include <sys/stat.h>
12649 #ifdef HAVE_UNISTD_H
12650 # include <unistd.h>
12652 #ifdef HAVE_DIRECT_H
12653 # include <direct.h>
12663 rm -f conftest.$ac_objext
12664 if { (ac_try="$ac_compile"
12665 case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_compile") 2>conftest.er1
12672 grep -v '^ *+' conftest.er1 >conftest.err
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } && {
12677 test -z "$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12679 } && test -s conftest.$ac_objext; then
12680 gcc_cv_mkdir_takes_one_arg=no
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 gcc_cv_mkdir_takes_one_arg=yes
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12691 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
12692 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12694 cat >>confdefs.h <<\_ACEOF
12695 #define MKDIR_TAKES_ONE_ARG 1
12707 # With Setjmp/Longjmp based exception handling.
12708 # Check whether --enable-sjlj-exceptions was given.
12709 if test "${enable_sjlj_exceptions+set}" = set; then
12710 enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12712 cat >>confdefs.h <<_ACEOF
12713 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12719 # For platforms with the unwind ABI which includes an unwind library,
12720 # libunwind, we can choose to use the system libunwind.
12722 # Check whether --with-system-libunwind was given.
12723 if test "${with_system_libunwind+set}" = set; then
12724 withval=$with_system_libunwind;
12728 # config.gcc also contains tests of with_system_libunwind.
12729 if test x$with_system_libunwind = xyes; then
12731 cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_GETIPINFO 1
12737 # --------------------------------------------------------
12738 # Build, host, and target specific configuration fragments
12739 # --------------------------------------------------------
12741 # Collect build-machine-specific information.
12742 . ${srcdir}/config.build
12744 # Collect host-machine-specific information.
12745 . ${srcdir}/config.host
12749 # Collect target-machine-specific information.
12750 . ${srcdir}/config.gcc
12752 extra_objs="${host_extra_objs} ${extra_objs}"
12753 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12755 # Default the target-machine variables that were not explicitly set.
12756 if test x"$tm_file" = x
12757 then tm_file=$cpu_type/$cpu_type.h; fi
12759 if test x"$extra_headers" = x
12760 then extra_headers=; fi
12762 if test x$md_file = x
12763 then md_file=$cpu_type/$cpu_type.md; fi
12765 if test x$out_file = x
12766 then out_file=$cpu_type/$cpu_type.c; fi
12768 if test x"$tmake_file" = x
12769 then tmake_file=$cpu_type/t-$cpu_type
12772 if test x"$dwarf2" = xyes
12773 then tm_file="$tm_file tm-dwarf2.h"
12776 # Say what files are being used for the output code and MD file.
12777 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12778 echo "Using \`$srcdir/config/$md_file' as machine description file."
12780 # If any of the xm_file variables contain nonexistent files, warn
12781 # about them and drop them.
12784 for x in $build_xm_file; do
12785 if test -f $srcdir/config/$x
12787 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12788 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12791 build_xm_file="$bx"
12794 for x in $host_xm_file; do
12795 if test -f $srcdir/config/$x
12797 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12798 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12804 for x in $xm_file; do
12805 if test -f $srcdir/config/$x
12807 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12808 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12814 for f in $tm_file; do
12817 if test $count = ax; then
12818 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12820 echo "Using the following target machine macro files:"
12821 for f in $tm_file; do
12822 echo " $srcdir/config/$f"
12826 if test x$need_64bit_hwint = xyes; then
12828 cat >>confdefs.h <<\_ACEOF
12829 #define NEED_64BIT_HOST_WIDE_INT 1
12834 if test x$use_long_long_for_widest_fast_int = xyes; then
12836 cat >>confdefs.h <<\_ACEOF
12837 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12843 for f in $host_xm_file; do
12846 if test $count = a; then
12848 elif test $count = ax; then
12849 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12851 echo "Using the following host machine macro files:"
12852 for f in $host_xm_file; do
12853 echo " $srcdir/config/$f"
12856 echo "Using ${out_host_hook_obj} for host machine hooks."
12858 if test "$host_xm_file" != "$build_xm_file"; then
12860 for f in $build_xm_file; do
12863 if test $count = a; then
12865 elif test $count = ax; then
12866 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12868 echo "Using the following build machine macro files:"
12869 for f in $build_xm_file; do
12870 echo " $srcdir/config/$f"
12876 powerpc*-*-darwin*)
12877 { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12878 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
12879 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12884 #include <sys/signal.h>
12885 #include <ucontext.h>
12886 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12889 rm -f conftest.$ac_objext
12890 if { (ac_try="$ac_compile"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_compile") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest.$ac_objext; then
12906 gcc_cv_mcontext_underscores=no
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 gcc_cv_mcontext_underscores=yes
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12917 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
12918 if test $gcc_cv_mcontext_underscores = yes; then
12920 cat >>confdefs.h <<\_ACEOF
12921 #define HAS_MCONTEXT_T_UNDERSCORES
12932 # Check if a valid thread package
12933 case ${enable_threads} in
12936 target_thread_file='single'
12940 target_thread_file='single'
12942 aix | dce | gnat | irix | posix | posix95 | rtems | \
12943 single | solaris | vxworks | win32 )
12944 target_thread_file=${enable_threads}
12947 echo "${enable_threads} is an unknown thread package" 1>&2
12952 if test x${thread_file} = x; then
12953 # No thread file set by target-specific clauses in config.gcc,
12954 # so use file chosen by default logic above
12955 thread_file=${target_thread_file}
12958 # Make gthr-default.h if we have a thread file.
12960 if test $thread_file != single; then
12961 rm -f gthr-default.h
12962 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12963 gthread_flags=-DHAVE_GTHR_DEFAULT
12972 if test x$enable___cxa_atexit = xyes || \
12973 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12974 if test x$host = x$target; then
12976 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12977 # keyed to flag_use_cxa_atexit
12982 { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12983 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
12984 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12995 #define __cxa_atexit innocuous___cxa_atexit
12997 /* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char __cxa_atexit (); below.
12999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 <limits.h> exists even on freestanding compilers. */
13003 # include <limits.h>
13005 # include <assert.h>
13008 #undef __cxa_atexit
13010 /* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13016 char __cxa_atexit ();
13017 /* The GNU C library defines this for functions which it implements
13018 to always fail with ENOSYS. Some functions are actually named
13019 something starting with __ and the normal name is an alias. */
13020 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
13027 return __cxa_atexit ();
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest$ac_exeext &&
13049 $as_test_x conftest$ac_exeext; then
13050 ac_cv_func___cxa_atexit=yes
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 ac_cv_func___cxa_atexit=no
13058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13059 conftest$ac_exeext conftest.$ac_ext
13061 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13062 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
13063 if test $ac_cv_func___cxa_atexit = yes; then
13066 echo "__cxa_atexit can't be enabled on this target"
13072 # We can't check for __cxa_atexit when building a cross, so assume
13076 if test x$use_cxa_atexit = xyes; then
13078 cat >>confdefs.h <<\_ACEOF
13079 #define DEFAULT_USE_CXA_ATEXIT 2
13086 if test x$with_system_libunwind = xyes; then
13087 if test x$host = x$target; then
13088 { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13089 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
13090 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 ac_func_search_save_LIBS=$LIBS
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char _Unwind_GetIPInfo ();
13111 return _Unwind_GetIPInfo ();
13116 for ac_lib in '' unwind; do
13117 if test -z "$ac_lib"; then
13118 ac_res="none required"
13121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest$ac_exeext &&
13140 $as_test_x conftest$ac_exeext; then
13141 ac_cv_search__Unwind_GetIPInfo=$ac_res
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13151 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13155 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13158 ac_cv_search__Unwind_GetIPInfo=no
13160 rm conftest.$ac_ext
13161 LIBS=$ac_func_search_save_LIBS
13163 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13164 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
13165 ac_res=$ac_cv_search__Unwind_GetIPInfo
13166 if test "$ac_res" != no; then
13167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13176 if test x$use_getipinfo = xyes; then
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_GETIPINFO 1
13183 echo "The system unwind library does not support _Unwind_GetIPInfo."
13186 # Look for a file containing extra machine modes.
13187 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13188 extra_modes_file='$(srcdir)'/config/${extra_modes}
13191 cat >>confdefs.h <<_ACEOF
13192 #define EXTRA_MODES_FILE "config/$extra_modes"
13197 # Convert extra_options into a form suitable for Makefile use.
13199 for f in $extra_options; do
13200 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13204 # auto-host.h is the file containing items generated by autoconf and is
13205 # the first file included by config.h.
13206 # If host=build, it is correct to have bconfig include auto-host.h
13207 # as well. If host!=build, we are in error and need to do more
13208 # work to find out the build config parameters.
13209 if test x$host = x$build
13211 build_auto=auto-host.h
13213 # We create a subdir, then run autoconf in the subdir.
13214 # To prevent recursion we set host and build for the new
13215 # invocation of configure to the build for this invocation
13222 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13223 *) realsrcdir=../${srcdir};;
13225 saved_CFLAGS="${CFLAGS}"
13226 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13227 ${realsrcdir}/configure \
13228 --enable-languages=${enable_languages-all} \
13229 --target=$target_alias --host=$build_alias --build=$build_alias
13230 CFLAGS="${saved_CFLAGS}"
13232 # We just finished tests for the build machine, so rename
13233 # the file auto-build.h in the gcc directory.
13234 mv auto-host.h ../auto-build.h
13237 build_auto=auto-build.h
13241 tm_file="${tm_file} defaults.h"
13242 tm_p_file="${tm_p_file} tm-preds.h"
13243 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13244 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13245 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13246 # put this back in temporarily.
13247 xm_file="auto-host.h ansidecl.h ${xm_file}"
13253 # Compile in configure arguments.
13254 if test -f configargs.h ; then
13255 # Being re-configured.
13256 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13257 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13259 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13262 # Double all backslashes and backslash all quotes to turn
13263 # gcc_config_arguments into a C string.
13264 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13265 $gcc_config_arguments
13267 gcc_config_arguments_str=`cat conftest.out`
13270 cat > configargs.h <<EOF
13271 /* Generated automatically. */
13272 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13273 static const char thread_model[] = "$thread_file";
13275 static const struct {
13276 const char *name, *value;
13277 } configure_default_options[] = $configure_default_options;
13280 # Internationalization
13281 # If we haven't got the data from the intl directory,
13282 # assume NLS is disabled.
13291 if test -f ../intl/config.intl; then
13292 . ../intl/config.intl
13294 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13295 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13296 if test x"$USE_NLS" != xyes; then
13297 { echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6; }
13300 { echo "$as_me:$LINENO: result: yes" >&5
13301 echo "${ECHO_T}yes" >&6; }
13303 cat >>confdefs.h <<\_ACEOF
13304 #define ENABLE_NLS 1
13308 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13309 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
13310 # Look for .po and .gmo files in the source directory.
13313 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13314 # If there aren't any .gmo files the shell will give us the
13315 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13317 case "$cat" in *\**)
13320 # The quadruple backslash is collapsed to a double backslash
13321 # by the backticks, then collapsed again by the double quotes,
13322 # leaving us with one backslash in the sed expression (right
13323 # before the dot that mustn't act as a wildcard).
13324 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13325 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13326 # The user is allowed to set LINGUAS to a list of languages to
13327 # install catalogs for. If it's empty that means "all of them."
13328 if test "x$LINGUAS" = x; then
13329 CATALOGS="$CATALOGS $cat"
13330 XLINGUAS="$XLINGUAS $lang"
13332 case "$LINGUAS" in *$lang*)
13333 CATALOGS="$CATALOGS $cat"
13334 XLINGUAS="$XLINGUAS $lang"
13339 LINGUAS="$XLINGUAS"
13340 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
13341 echo "${ECHO_T}$LINGUAS" >&6; }
13354 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13355 # -liconv on the link line twice.
13356 case "$LIBINTL" in *$LIBICONV*)
13360 # Check whether --enable-secureplt was given.
13361 if test "${enable_secureplt+set}" = set; then
13362 enableval=$enable_secureplt;
13366 # Windows32 Registry support for specifying GCC installation paths.
13367 # Check whether --enable-win32-registry was given.
13368 if test "${enable_win32_registry+set}" = set; then
13369 enableval=$enable_win32_registry;
13374 win32 | pe | cygwin* | mingw32* | uwin*)
13375 if test "x$enable_win32_registry" != xno; then
13376 { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13377 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13395 char RegOpenKeyExA ();
13399 return RegOpenKeyExA ();
13404 for ac_lib in '' advapi32; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } && {
13425 test -z "$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13427 } && test -s conftest$ac_exeext &&
13428 $as_test_x conftest$ac_exeext; then
13429 ac_cv_search_RegOpenKeyExA=$ac_res
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13443 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13446 ac_cv_search_RegOpenKeyExA=no
13448 rm conftest.$ac_ext
13449 LIBS=$ac_func_search_save_LIBS
13451 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13452 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
13453 ac_res=$ac_cv_search_RegOpenKeyExA
13454 if test "$ac_res" != no; then
13455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13458 enable_win32_registry=no
13463 if test "x$enable_win32_registry" != xno; then
13465 cat >>confdefs.h <<\_ACEOF
13466 #define ENABLE_WIN32_REGISTRY 1
13470 if test "x$enable_win32_registry" != xyes \
13471 && test "x$enable_win32_registry" != x; then
13473 cat >>confdefs.h <<_ACEOF
13474 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13482 # Get an absolute path to the GCC top-level source directory
13483 holddir=`${PWDCMD-pwd}`
13485 topdir=`${PWDCMD-pwd}`
13488 # Conditionalize the makefile for this host machine.
13490 for f in ${host_xmake_file}
13492 if test -f ${srcdir}/config/$f
13494 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13498 # Conditionalize the makefile for this target machine.
13500 for f in ${tmake_file}
13502 if test -f ${srcdir}/config/$f
13504 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13507 tmake_file="${tmake_file_}"
13509 # If the host doesn't support symlinks, modify CC in
13510 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13511 # Otherwise, we can use "CC=$(CC)".
13515 cc_set_by_configure="\$(CC)"
13516 quoted_cc_set_by_configure="\$(CC)"
13517 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13518 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13521 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13522 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13523 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13524 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13528 # This is a terrible hack which will go away some day.
13529 host_cc_for_libada=${CC}
13532 out_object_file=`basename $out_file .c`.o
13534 tm_file_list="options.h"
13535 tm_include_list="options.h"
13536 for f in $tm_file; do
13539 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13540 tm_include_list="${tm_include_list} $f"
13543 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13544 tm_include_list="${tm_include_list} config/$f"
13551 for f in $tm_p_file; do
13554 tm_p_file_list="${tm_p_file_list} $f"
13555 tm_p_include_list="${tm_p_include_list} $f"
13558 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13559 tm_p_include_list="${tm_p_include_list} config/$f"
13565 for f in $xm_file; do
13568 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13569 xm_include_list="${xm_include_list} $f"
13572 xm_file_list="${xm_file_list} $f"
13573 xm_include_list="${xm_include_list} $f"
13576 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13577 xm_include_list="${xm_include_list} config/$f"
13583 host_xm_include_list=
13584 for f in $host_xm_file; do
13587 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13588 host_xm_include_list="${host_xm_include_list} $f"
13591 host_xm_file_list="${host_xm_file_list} $f"
13592 host_xm_include_list="${host_xm_include_list} $f"
13595 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13596 host_xm_include_list="${host_xm_include_list} config/$f"
13601 build_xm_file_list=
13602 for f in $build_xm_file; do
13605 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13606 build_xm_include_list="${build_xm_include_list} $f"
13608 auto-build.h | auto-host.h )
13609 build_xm_file_list="${build_xm_file_list} $f"
13610 build_xm_include_list="${build_xm_include_list} $f"
13613 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13614 build_xm_include_list="${build_xm_include_list} config/$f"
13619 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13620 # cross-compiler which does not use the native headers and libraries.
13621 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13624 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13626 if test "x$with_build_sysroot" != x; then
13627 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13629 # This value is used, even on a native system, because
13630 # CROSS_SYSTEM_HEADER_DIR is just
13631 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13632 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13635 if test x$host != x$target
13637 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13639 SYSTEM_HEADER_DIR=$build_system_header_dir
13640 case "$host","$target" in
13641 # Darwin crosses can use the host system's libraries and headers,
13642 # because of the fat library support. Of course, it must be the
13643 # same version of Darwin on both sides. Allow the user to
13644 # just say --target=foo-darwin without a version number to mean
13645 # "the version on this system".
13646 *-*-darwin*,*-*-darwin*)
13647 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13648 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13649 if test $hostos = $targetos -o $targetos = darwin ; then
13651 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13656 i?86-*-*,x86_64-*-* \
13657 | powerpc*-*-*,powerpc64*-*-*)
13658 CROSS="$CROSS -DNATIVE_CROSS" ;;
13660 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13661 SYSTEM_HEADER_DIR=$build_system_header_dir
13664 # If this is a cross-compiler that does not
13665 # have its own set of headers then define
13668 # If this is using newlib, without having the headers available now,
13669 # then define inhibit_libc in LIBGCC2_CFLAGS.
13670 # This prevents libgcc2 from containing any code which requires libc
13673 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13674 test x$with_newlib = xyes ; } &&
13675 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13680 # When building gcc with a cross-compiler, we need to adjust things so
13681 # that the generator programs are still built with the native compiler.
13682 # Also, we cannot run fixincludes or fix-header.
13684 # These are the normal (build=host) settings:
13685 CC_FOR_BUILD='$(CC)'
13686 BUILD_CFLAGS='$(ALL_CFLAGS)'
13687 STMP_FIXINC=stmp-fixinc
13689 # Possibly disable fixproto, on a per-target basis.
13690 case ${use_fixproto} in
13695 STMP_FIXPROTO=stmp-fixproto
13700 # And these apply if build != host, or we are generating coverage data
13701 if test x$build != x$host || test "x$coverage_flags" != x
13703 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13705 if test "x$TARGET_SYSTEM_ROOT" = x; then
13706 if test "x$STMP_FIXPROTO" != x; then
13707 STMP_FIXPROTO=stmp-install-fixproto
13712 # Expand extra_headers to include complete path.
13713 # This substitutes for lots of t-* files.
13714 extra_headers_list=
13715 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13716 for file in ${extra_headers} ; do
13717 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13720 # Define collect2 in Makefile.
13721 case $host_can_use_collect2 in
13723 *) collect2='collect2$(exeext)' ;;
13727 # Add a definition of USE_COLLECT2 if system wants one.
13728 case $use_collect2 in
13729 no) use_collect2= ;;
13732 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13733 xm_defines="${xm_defines} USE_COLLECT2"
13734 case $host_can_use_collect2 in
13736 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13737 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13738 { (exit 1); exit 1; }; }
13744 # ---------------------------
13745 # Assembler & linker features
13746 # ---------------------------
13748 # Identify the assembler which will work hand-in-glove with the newly
13749 # built GCC, so that we can examine its features. This is the assembler
13750 # which will be driven by the driver program.
13752 # If build != host, and we aren't building gas in-tree, we identify a
13753 # build->target assembler and hope that it will have the same features
13754 # as the host->target assembler we'll be using.
13755 gcc_cv_gas_major_version=
13756 gcc_cv_gas_minor_version=
13757 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13759 if test "${gcc_cv_as+set}" = set; then
13763 if test -x "$DEFAULT_ASSEMBLER"; then
13764 gcc_cv_as="$DEFAULT_ASSEMBLER"
13765 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13766 && test -f ../gas/Makefile \
13767 && test x$build = x$host; then
13768 gcc_cv_as=../gas/as-new$build_exeext
13769 elif test -x as$build_exeext; then
13770 # Build using assembler in the current directory.
13771 gcc_cv_as=./as$build_exeext
13772 elif test -x $AS_FOR_TARGET; then
13773 gcc_cv_as="$AS_FOR_TARGET"
13775 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13776 set dummy $AS_FOR_TARGET; ac_word=$2
13777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13779 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13794 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 gcc_cv_as=$ac_cv_path_gcc_cv_as
13806 if test -n "$gcc_cv_as"; then
13807 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13808 echo "${ECHO_T}$gcc_cv_as" >&6; }
13810 { echo "$as_me:$LINENO: result: no" >&5
13811 echo "${ECHO_T}no" >&6; }
13819 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13822 { echo "$as_me:$LINENO: checking what assembler to use" >&5
13823 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
13824 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13825 # Single tree build which includes gas. We want to prefer it
13826 # over whatever linker top-level may have detected, since
13827 # we'll use what we're building after installation anyway.
13828 { echo "$as_me:$LINENO: result: newly built gas" >&5
13829 echo "${ECHO_T}newly built gas" >&6; }
13831 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13832 for f in $gcc_cv_as_bfd_srcdir/configure \
13833 $gcc_cv_as_gas_srcdir/configure \
13834 $gcc_cv_as_gas_srcdir/configure.in \
13835 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13836 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13837 if test x$gcc_cv_gas_version != x; then
13841 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13842 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13843 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13844 case $gcc_cv_gas_patch_version in
13845 "") gcc_cv_gas_patch_version="0" ;;
13847 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13848 + $gcc_cv_gas_minor_version \) \* 1000 \
13849 + $gcc_cv_gas_patch_version`
13851 in_tree_gas_is_elf=no
13852 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13853 || (grep 'obj_format = multi' ../gas/Makefile \
13854 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13856 in_tree_gas_is_elf=yes
13859 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13860 echo "${ECHO_T}$gcc_cv_as" >&6; }
13864 # Identify the linker which will work hand-in-glove with the newly
13865 # built GCC, so that we can examine its features. This is the linker
13866 # which will be driven by the driver program.
13868 # If build != host, and we aren't building gas in-tree, we identify a
13869 # build->target linker and hope that it will have the same features
13870 # as the host->target linker we'll be using.
13871 gcc_cv_gld_major_version=
13872 gcc_cv_gld_minor_version=
13873 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13874 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13876 if test "${gcc_cv_ld+set}" = set; then
13880 if test -x "$DEFAULT_LINKER"; then
13881 gcc_cv_ld="$DEFAULT_LINKER"
13882 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13883 && test -f ../ld/Makefile \
13884 && test x$build = x$host; then
13885 gcc_cv_ld=../ld/ld-new$build_exeext
13886 elif test -x collect-ld$build_exeext; then
13887 # Build using linker in the current directory.
13888 gcc_cv_ld=./collect-ld$build_exeext
13889 elif test -x $LD_FOR_TARGET; then
13890 gcc_cv_ld="$LD_FOR_TARGET"
13892 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13893 set dummy $LD_FOR_TARGET; ac_word=$2
13894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13896 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13911 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13923 if test -n "$gcc_cv_ld"; then
13924 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13925 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13927 { echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6; }
13936 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13939 { echo "$as_me:$LINENO: checking what linker to use" >&5
13940 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
13941 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13942 # Single tree build which includes ld. We want to prefer it
13943 # over whatever linker top-level may have detected, since
13944 # we'll use what we're building after installation anyway.
13945 { echo "$as_me:$LINENO: result: newly built ld" >&5
13946 echo "${ECHO_T}newly built ld" >&6; }
13948 in_tree_ld_is_elf=no
13949 if (grep 'EMUL = .*elf' ../ld/Makefile \
13950 || grep 'EMUL = .*linux' ../ld/Makefile \
13951 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13952 in_tree_ld_is_elf=yes
13954 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
13956 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13957 if test x$gcc_cv_gld_version != x; then
13961 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13962 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13964 { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13965 echo "${ECHO_T}$gcc_cv_ld" >&6; }
13969 # Figure out what nm we will be using.
13970 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13971 if test "${gcc_cv_nm+set}" = set; then
13975 if test -f $gcc_cv_binutils_srcdir/configure.in \
13976 && test -f ../binutils/Makefile \
13977 && test x$build = x$host; then
13978 gcc_cv_nm=../binutils/nm-new$build_exeext
13979 elif test -x nm$build_exeext; then
13980 gcc_cv_nm=./nm$build_exeext
13981 elif test -x $NM_FOR_TARGET; then
13982 gcc_cv_nm="$NM_FOR_TARGET"
13984 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13985 set dummy $NM_FOR_TARGET; ac_word=$2
13986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13988 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14003 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14014 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14015 if test -n "$gcc_cv_nm"; then
14016 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14017 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14019 { echo "$as_me:$LINENO: result: no" >&5
14020 echo "${ECHO_T}no" >&6; }
14028 { echo "$as_me:$LINENO: checking what nm to use" >&5
14029 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
14030 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14031 # Single tree build which includes binutils.
14032 { echo "$as_me:$LINENO: result: newly built nm" >&5
14033 echo "${ECHO_T}newly built nm" >&6; }
14036 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14037 echo "${ECHO_T}$gcc_cv_nm" >&6; }
14041 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14044 # Figure out what objdump we will be using.
14045 if test "${gcc_cv_objdump+set}" = set; then
14049 if test -f $gcc_cv_binutils_srcdir/configure.in \
14050 && test -f ../binutils/Makefile \
14051 && test x$build = x$host; then
14052 # Single tree build which includes binutils.
14053 gcc_cv_objdump=../binutils/objdump$build_exeext
14054 elif test -x objdump$build_exeext; then
14055 gcc_cv_objdump=./objdump$build_exeext
14056 elif test -x $OBJDUMP_FOR_TARGET; then
14057 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14059 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14060 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14063 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 case $gcc_cv_objdump in
14068 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14090 if test -n "$gcc_cv_objdump"; then
14091 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14092 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14094 { echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6; }
14103 { echo "$as_me:$LINENO: checking what objdump to use" >&5
14104 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
14105 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14106 # Single tree build which includes binutils.
14107 { echo "$as_me:$LINENO: result: newly built objdump" >&5
14108 echo "${ECHO_T}newly built objdump" >&6; }
14109 elif test x$gcc_cv_objdump = x; then
14110 { echo "$as_me:$LINENO: result: not found" >&5
14111 echo "${ECHO_T}not found" >&6; }
14113 { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14114 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
14117 # Figure out what assembler alignment features are present.
14118 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14119 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
14120 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 gcc_cv_as_balign_and_p2align=no
14124 if test $in_tree_gas = yes; then
14125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14126 then gcc_cv_as_balign_and_p2align=yes
14128 elif test x$gcc_cv_as != x; then
14130 .p2align 2' > conftest.s
14131 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }
14138 gcc_cv_as_balign_and_p2align=yes
14140 echo "configure: failed program was" >&5
14143 rm -f conftest.o conftest.s
14146 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14147 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
14148 if test $gcc_cv_as_balign_and_p2align = yes; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14156 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14157 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
14158 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 gcc_cv_as_max_skip_p2align=no
14162 if test $in_tree_gas = yes; then
14163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14164 then gcc_cv_as_max_skip_p2align=yes
14166 elif test x$gcc_cv_as != x; then
14167 echo '.p2align 4,,7' > conftest.s
14168 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }
14175 gcc_cv_as_max_skip_p2align=yes
14177 echo "configure: failed program was" >&5
14180 rm -f conftest.o conftest.s
14183 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14184 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
14185 if test $gcc_cv_as_max_skip_p2align = yes; then
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14193 { echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14194 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6; }
14195 if test "${gcc_cv_as_literal16+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 gcc_cv_as_literal16=no
14199 if test $in_tree_gas = yes; then
14200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14201 then gcc_cv_as_literal16=yes
14203 elif test x$gcc_cv_as != x; then
14204 echo '.literal16' > conftest.s
14205 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }
14212 gcc_cv_as_literal16=yes
14214 echo "configure: failed program was" >&5
14217 rm -f conftest.o conftest.s
14220 { echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14221 echo "${ECHO_T}$gcc_cv_as_literal16" >&6; }
14222 if test $gcc_cv_as_literal16 = yes; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_GAS_LITERAL16 1
14230 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14231 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
14232 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 gcc_cv_as_subsection_m1=no
14236 if test $in_tree_gas = yes; then
14237 if test $in_tree_gas_is_elf = yes \
14238 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14239 then gcc_cv_as_subsection_m1=yes
14241 elif test x$gcc_cv_as != x; then
14242 echo 'conftest_label1: .word 0
14244 conftest_label2: .word 0
14245 .previous' > conftest.s
14246 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }
14253 if test x$gcc_cv_nm != x; then
14254 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14255 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14256 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14258 else gcc_cv_as_subsection_m1=yes
14260 rm -f conftest.nm1 conftest.nm2
14263 echo "configure: failed program was" >&5
14266 rm -f conftest.o conftest.s
14269 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14270 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
14271 if test $gcc_cv_as_subsection_m1 = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_GAS_SUBSECTION_ORDERING 1
14279 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
14280 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
14281 if test "${gcc_cv_as_weak+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 if test $in_tree_gas = yes; then
14286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14287 then gcc_cv_as_weak=yes
14289 elif test x$gcc_cv_as != x; then
14290 echo ' .weak foobar' > conftest.s
14291 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }
14300 echo "configure: failed program was" >&5
14303 rm -f conftest.o conftest.s
14306 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14307 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
14308 if test $gcc_cv_as_weak = yes; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_GAS_WEAK 1
14316 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14317 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
14318 if test "${gcc_cv_as_weakref+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 gcc_cv_as_weakref=no
14322 if test $in_tree_gas = yes; then
14323 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14324 then gcc_cv_as_weakref=yes
14326 elif test x$gcc_cv_as != x; then
14327 echo ' .weakref foobar, barfnot' > conftest.s
14328 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }
14335 gcc_cv_as_weakref=yes
14337 echo "configure: failed program was" >&5
14340 rm -f conftest.o conftest.s
14343 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14344 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
14345 if test $gcc_cv_as_weakref = yes; then
14347 cat >>confdefs.h <<\_ACEOF
14348 #define HAVE_GAS_WEAKREF 1
14353 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14354 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
14355 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 gcc_cv_as_nsubspa_comdat=no
14359 if test $in_tree_gas = yes; then
14360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14361 then gcc_cv_as_nsubspa_comdat=yes
14363 elif test x$gcc_cv_as != x; then
14364 echo ' .SPACE $TEXT$
14365 .NSUBSPA $CODE$,COMDAT' > conftest.s
14366 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }
14373 gcc_cv_as_nsubspa_comdat=yes
14375 echo "configure: failed program was" >&5
14378 rm -f conftest.o conftest.s
14381 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14382 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
14383 if test $gcc_cv_as_nsubspa_comdat = yes; then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_GAS_NSUBSPA_COMDAT 1
14391 # .hidden needs to be supported in both the assembler and the linker,
14392 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14393 # This is irritatingly difficult to feature test for; we have to check the
14394 # date string after the version number. If we've got an in-tree
14395 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14397 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14398 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14399 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
14400 if test "${gcc_cv_as_hidden+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 gcc_cv_as_hidden=no
14404 if test $in_tree_gas = yes; then
14405 if test $in_tree_gas_is_elf = yes \
14406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14407 then gcc_cv_as_hidden=yes
14409 elif test x$gcc_cv_as != x; then
14410 echo ' .hidden foobar
14411 foobar:' > conftest.s
14412 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }
14419 gcc_cv_as_hidden=yes
14421 echo "configure: failed program was" >&5
14424 rm -f conftest.o conftest.s
14427 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14428 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
14431 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14432 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
14433 if test "${gcc_cv_ld_hidden+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 if test $in_tree_ld = yes ; then
14437 gcc_cv_ld_hidden=no
14438 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 \
14439 && test $in_tree_ld_is_elf = yes; then
14440 gcc_cv_ld_hidden=yes
14443 gcc_cv_ld_hidden=yes
14444 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14445 if echo "$ld_ver" | grep GNU > /dev/null; then
14446 ld_vers=`echo $ld_ver | sed -n \
14447 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14448 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14449 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14450 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14451 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14452 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14453 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14454 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'`
14455 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14456 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14457 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14458 if test 0"$ld_date" -lt 20020404; then
14459 if test -n "$ld_date"; then
14460 # If there was date string, but was earlier than 2002-04-04, fail
14461 gcc_cv_ld_hidden=no
14462 elif test -z "$ld_vers"; then
14463 # If there was no date string nor ld version number, something is wrong
14464 gcc_cv_ld_hidden=no
14466 test -z "$ld_vers_patch" && ld_vers_patch=0
14467 if test "$ld_vers_major" -lt 2; then
14468 gcc_cv_ld_hidden=no
14469 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14470 gcc_cv_ld_hidden="no"
14471 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14472 gcc_cv_ld_hidden=no
14477 case "${target}" in
14478 hppa64*-*-hpux* | ia64*-*-hpux*)
14479 gcc_cv_ld_hidden=yes
14482 gcc_cv_ld_hidden=no
14488 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14489 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
14490 libgcc_visibility=no
14493 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14494 libgcc_visibility=yes
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_GAS_HIDDEN 1
14502 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14503 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14504 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
14505 if test "${gcc_cv_as_leb128+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 gcc_cv_as_leb128=no
14509 if test $in_tree_gas = yes; then
14510 if test $in_tree_gas_is_elf = yes \
14511 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14512 then gcc_cv_as_leb128=yes
14514 elif test x$gcc_cv_as != x; then
14521 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }
14528 # GAS versions before 2.11 do not support uleb128,
14529 # despite appearing to.
14530 # ??? There exists an elf-specific test that will crash
14531 # the assembler. Perhaps it's better to figure out whether
14532 # arbitrary sections are supported and try the test.
14533 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14534 if echo "$as_ver" | grep GNU > /dev/null; then
14535 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14536 as_major=`echo $as_ver | sed 's/\..*//'`
14537 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14538 if test $as_major -eq 2 && test $as_minor -lt 11
14540 else gcc_cv_as_leb128=yes
14544 echo "configure: failed program was" >&5
14547 rm -f conftest.o conftest.s
14550 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14551 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
14552 if test $gcc_cv_as_leb128 = yes; then
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_AS_LEB128 1
14560 # GAS versions up to and including 2.11.0 may mis-optimize
14562 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14563 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
14564 if test "${gcc_cv_as_eh_frame+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 gcc_cv_as_eh_frame=no
14568 if test $in_tree_gas = yes; then
14569 if test $in_tree_gas_is_elf = yes \
14570 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14571 then gcc_cv_as_eh_frame=yes
14573 elif test x$gcc_cv_as != x; then
14580 .section .eh_frame,"aw",@progbits
14582 .4byte .LECIE1-.LSCIE1
14596 .4byte .LEFDE1-.LASFDE1
14598 .4byte .LASFDE1-__FRAME_BEGIN__
14605 .LEFDE1:' > conftest.s
14606 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }
14613 cat > conftest.lit <<EOF
14614 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14615 0010 01000000 12000000 18000000 00000000 ................
14616 0020 08000000 04080000 0044 .........D
14618 cat > conftest.big <<EOF
14619 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14620 0010 00000001 00000012 00000018 00000000 ................
14621 0020 00000008 04000000 0844 .........D
14623 # If the assembler didn't choke, and we can objdump,
14624 # and we got the correct data, then succeed.
14625 # The text in the here-document typically retains its unix-style line
14626 # endings, while the output of objdump will use host line endings.
14627 # Therefore, use diff -b for the comparisons.
14628 if test x$gcc_cv_objdump != x \
14629 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14630 | tail -3 > conftest.got \
14631 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14632 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14634 gcc_cv_as_eh_frame=yes
14635 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 gcc_cv_as_eh_frame=buggy
14643 # Uh oh, what do we do now?
14644 gcc_cv_as_eh_frame=no
14647 echo "configure: failed program was" >&5
14650 rm -f conftest.o conftest.s
14653 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14654 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
14657 if test $gcc_cv_as_eh_frame = buggy; then
14659 cat >>confdefs.h <<\_ACEOF
14660 #define USE_AS_TRADITIONAL_FORMAT 1
14665 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14666 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14667 if test "${gcc_cv_as_shf_merge+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 gcc_cv_as_shf_merge=no
14671 if test $in_tree_gas = yes; then
14672 if test $in_tree_gas_is_elf = yes \
14673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14674 then gcc_cv_as_shf_merge=yes
14676 elif test x$gcc_cv_as != x; then
14677 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14678 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }
14685 gcc_cv_as_shf_merge=yes
14687 echo "configure: failed program was" >&5
14690 rm -f conftest.o conftest.s
14693 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14694 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14696 if test $gcc_cv_as_shf_merge = no; then
14697 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14698 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
14699 if test "${gcc_cv_as_shf_merge+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 gcc_cv_as_shf_merge=no
14703 if test $in_tree_gas = yes; then
14704 if test $in_tree_gas_is_elf = yes \
14705 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14706 then gcc_cv_as_shf_merge=yes
14708 elif test x$gcc_cv_as != x; then
14709 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14710 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }
14717 gcc_cv_as_shf_merge=yes
14719 echo "configure: failed program was" >&5
14722 rm -f conftest.o conftest.s
14725 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14726 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14735 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14736 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14737 if test "${gcc_cv_as_comdat_group+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 gcc_cv_as_comdat_group=no
14741 if test $in_tree_gas = yes; then
14742 if test $in_tree_gas_is_elf = yes \
14743 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14744 then gcc_cv_as_comdat_group=yes
14746 elif test x$gcc_cv_as != x; then
14747 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14748 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }
14755 gcc_cv_as_comdat_group=yes
14757 echo "configure: failed program was" >&5
14760 rm -f conftest.o conftest.s
14763 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14764 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
14766 if test $gcc_cv_as_comdat_group = yes; then
14767 gcc_cv_as_comdat_group_percent=no
14769 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14770 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
14771 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 gcc_cv_as_comdat_group_percent=no
14775 if test $in_tree_gas = yes; then
14776 if test $in_tree_gas_is_elf = yes \
14777 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14778 then gcc_cv_as_comdat_group_percent=yes
14780 elif test x$gcc_cv_as != x; then
14781 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14782 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }
14789 gcc_cv_as_comdat_group_percent=yes
14791 echo "configure: failed program was" >&5
14794 rm -f conftest.o conftest.s
14797 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14798 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
14801 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14803 if test 0"$ld_date" -lt 20050308; then
14804 if test -n "$ld_date"; then
14805 # If there was date string, but was earlier than 2005-03-08, fail
14807 elif test "$ld_vers_major" -lt 2; then
14809 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14814 # assume linkers other than GNU ld don't support COMDAT group
14817 if test $comdat_group = no; then
14818 gcc_cv_as_comdat_group=no
14819 gcc_cv_as_comdat_group_percent=no
14822 cat >>confdefs.h <<_ACEOF
14823 #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`
14827 # Thread-local storage - the check is heavily parametrized.
14835 .section ".tdata","awT",@progbits
14838 ldq $27,__tls_get_addr($29) !literal!1
14839 lda $16,foo($29) !tlsgd!1
14840 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14841 ldq $27,__tls_get_addr($29) !literal!2
14842 lda $16,foo($29) !tlsldm!2
14843 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14844 ldq $1,foo($29) !gotdtprel
14845 ldah $2,foo($29) !dtprelhi
14846 lda $3,foo($2) !dtprello
14847 lda $4,foo($29) !dtprel
14848 ldq $1,foo($29) !gottprel
14849 ldah $2,foo($29) !tprelhi
14850 lda $3,foo($2) !tprello
14851 lda $4,foo($29) !tprel'
14854 tls_as_opt=--fatal-warnings
14858 .section ".tdata","awT",@progbits
14861 call #gettlsoff(x)'
14870 .section ".tdata","awT",@progbits
14874 addil LT%foo-$tls_gdidx$,gp
14875 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14878 addil LT%foo-$tls_ldidx$,gp
14880 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14881 addil LR%foo-$tls_dtpoff$,%ret0
14882 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14884 addil LT%foo-$tls_ieoff$,gp
14885 ldw RT%foo-$tls_ieoff$(%r1),%t2
14888 addil LR%foo-$tls_leoff$,%t1
14889 ldo RR%foo-$tls_leoff$(%r1),%t2'
14892 tls_as_opt=--fatal-warnings
14896 .section ".tdata","awT",%progbits
14899 .word foo(gottpoff)
14909 .section ".tdata","awT",@progbits
14913 leal foo@TLSGD(,%ebx,1), %eax
14914 leal foo@TLSLDM(%ebx), %eax
14915 leal foo@DTPOFF(%eax), %edx
14916 movl foo@GOTTPOFF(%ebx), %eax
14917 subl foo@GOTTPOFF(%ebx), %eax
14918 addl foo@GOTNTPOFF(%ebx), %eax
14919 movl foo@INDNTPOFF, %eax
14920 movl $foo@TPOFF, %eax
14921 subl $foo@TPOFF, %eax
14922 leal foo@NTPOFF(%ecx), %eax'
14925 tls_as_opt=--fatal-warnings
14929 .section ".tdata","awT",@progbits
14933 leaq foo@TLSGD(%rip), %rdi
14934 leaq foo@TLSLD(%rip), %rdi
14935 leaq foo@DTPOFF(%rax), %rdx
14936 movq foo@GOTTPOFF(%rip), %rax
14937 movq $foo@TPOFF, %rax'
14940 tls_as_opt=--fatal-warnings
14944 .section ".tdata","awT",@progbits
14947 addl r16 = @ltoff(@dtpmod(foo#)), gp
14948 addl r17 = @ltoff(@dtprel(foo#)), gp
14949 addl r18 = @ltoff(@tprel(foo#)), gp
14950 addl r19 = @dtprel(foo#), gp
14951 adds r21 = @dtprel(foo#), r13
14952 movl r23 = @dtprel(foo#)
14953 addl r20 = @tprel(foo#), gp
14954 adds r22 = @tprel(foo#), r13
14955 movl r24 = @tprel(foo#)'
14958 tls_as_opt=--fatal-warnings
14962 .section .tdata,"awT",@progbits
14966 addiu $4, $28, %tlsgd(x)
14967 addiu $4, $28, %tlsldm(x)
14968 lui $4, %dtprel_hi(x)
14969 addiu $4, $4, %dtprel_lo(x)
14970 lw $4, %gottprel(x)($28)
14971 lui $4, %tprel_hi(x)
14972 addiu $4, $4, %tprel_lo(x)'
14975 tls_as_opt='-32 --fatal-warnings'
14979 .section ".tdata","awT",@progbits
14987 addi 3,31,ld0@got@tlsgd
14989 addi 3,31,x1@got@tlsld
14992 addis 9,3,x2@dtprel@ha
14993 addi 9,9,x2@dtprel@l
14994 lwz 9,x3@got@tprel(31)
14997 addis 9,2,x2@tprel@ha
14998 addi 9,9,x2@tprel@l'
15001 tls_as_opt="-a32 --fatal-warnings"
15005 .section ".tdata","awT",@progbits
15013 addi 3,2,ld0@got@tlsgd
15019 addi 3,2,x1@got@tlsld
15025 addis 9,3,x2@dtprel@ha
15026 addi 9,9,x2@dtprel@l
15029 ld 9,x3@got@dtprel(2)
15035 tls_as_opt="-a64 --fatal-warnings"
15039 .section ".tdata","awT",@progbits
15046 .long foo@GOTNTPOFF
15047 .long foo@INDNTPOFF
15048 l %r1,foo@GOTNTPOFF(%r12)
15049 l %r1,0(%r1):tls_load:foo
15050 bas %r14,0(%r1,%r13):tls_gdcall:foo
15051 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15054 tls_as_opt="-m31 --fatal-warnings"
15058 .section ".tdata","awT",@progbits
15065 .quad foo@GOTNTPOFF
15066 lg %r1,foo@GOTNTPOFF(%r12)
15067 larl %r1,foo@INDNTPOFF
15068 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15069 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15072 tls_as_opt="-m64 -Aesame --fatal-warnings"
15074 sh-*-* | sh[34]-*-*)
15076 .section ".tdata","awT",@progbits
15086 tls_as_opt=--fatal-warnings
15090 sparc*-sun-solaris2.[56789]*)
15091 # TLS was introduced in the Solaris 9 4/04 release but
15092 # we do not enable it by default on Solaris 9 either.
15093 if test "x$enable_tls" = xyes ; then
15099 sparc*-sun-solaris2.*)
15106 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15108 .section ".tdata",#alloc,#write,#tls
15111 sethi %tgd_hi22(foo), %o0
15112 add %o0, %tgd_lo10(foo), %o1
15113 add %l7, %o1, %o0, %tgd_add(foo)
15114 call __tls_get_addr, %tgd_call(foo)
15115 sethi %tldm_hi22(foo), %l1
15116 add %l1, %tldm_lo10(foo), %l2
15117 add %l7, %l2, %o0, %tldm_add(foo)
15118 call __tls_get_addr, %tldm_call(foo)
15119 sethi %tldo_hix22(foo), %l3
15120 xor %l3, %tldo_lox10(foo), %l4
15121 add %o0, %l4, %l5, %tldo_add(foo)
15122 sethi %tie_hi22(foo), %o3
15123 add %o3, %tie_lo10(foo), %o3
15124 ld [%l7 + %o3], %o2, %tie_ld(foo)
15125 add %g7, %o2, %o4, %tie_add(foo)
15126 sethi %tle_hix22(foo), %l1
15127 xor %l1, %tle_lox10(foo), %o5
15128 ld [%g7 + %o5], %o1'
15133 .section ".tdata","awT",@progbits
15136 sethi %tgd_hi22(foo), %o0
15137 add %o0, %tgd_lo10(foo), %o1
15138 add %l7, %o1, %o0, %tgd_add(foo)
15139 call __tls_get_addr, %tgd_call(foo)
15140 sethi %tldm_hi22(foo), %l1
15141 add %l1, %tldm_lo10(foo), %l2
15142 add %l7, %l2, %o0, %tldm_add(foo)
15143 call __tls_get_addr, %tldm_call(foo)
15144 sethi %tldo_hix22(foo), %l3
15145 xor %l3, %tldo_lox10(foo), %l4
15146 add %o0, %l4, %l5, %tldo_add(foo)
15147 sethi %tie_hi22(foo), %o3
15148 add %o3, %tie_lo10(foo), %o3
15149 ld [%l7 + %o3], %o2, %tie_ld(foo)
15150 add %g7, %o2, %o4, %tie_add(foo)
15151 sethi %tle_hix22(foo), %l1
15152 xor %l1, %tle_lox10(foo), %o5
15153 ld [%g7 + %o5], %o1'
15156 tls_as_opt="-32 --fatal-warnings"
15161 if test "x$enable_tls" = xno ; then
15162 : # TLS explicitly disabled.
15163 elif test "x$enable_tls" = xyes ; then
15164 set_have_as_tls=yes # TLS explicitly enabled.
15165 elif test -z "$tls_first_major"; then
15166 : # If we don't have a check, assume no support.
15168 { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15169 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
15170 if test "${gcc_cv_as_tls+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 if test $in_tree_gas = yes; then
15175 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15176 then gcc_cv_as_tls=yes
15178 elif test x$gcc_cv_as != x; then
15179 echo "$conftest_s" > conftest.s
15180 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }
15189 echo "configure: failed program was" >&5
15192 rm -f conftest.o conftest.s
15195 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15196 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
15197 if test $gcc_cv_as_tls = yes; then
15198 set_have_as_tls=yes
15201 if test $set_have_as_tls = yes ; then
15203 cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_AS_TLS 1
15209 # Target-specific assembler checks.
15211 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15212 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
15213 gcc_cv_ld_static_dynamic=no
15214 if test $in_tree_ld = yes ; then
15215 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15216 gcc_cv_ld_static_dynamic=yes
15218 elif test x$gcc_cv_ld != x; then
15219 # Check if linker supports -Bstatic/-Bdynamic option
15220 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15221 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15222 gcc_cv_ld_static_dynamic=yes
15225 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_LD_STATIC_DYNAMIC 1
15232 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15233 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
15235 if test x"$demangler_in_ld" = xyes; then
15236 { echo "$as_me:$LINENO: checking linker --demangle support" >&5
15237 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
15238 gcc_cv_ld_demangle=no
15239 if test $in_tree_ld = yes; then
15240 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 \
15241 gcc_cv_ld_demangle=yes
15243 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15244 # Check if the GNU linker supports --demangle option
15245 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15246 gcc_cv_ld_demangle=yes
15249 if test x"$gcc_cv_ld_demangle" = xyes; then
15251 cat >>confdefs.h <<\_ACEOF
15252 #define HAVE_LD_DEMANGLE 1
15256 { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15257 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
15261 # All TARGET_ABI_OSF targets.
15262 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15263 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15264 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
15265 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 gcc_cv_as_alpha_explicit_relocs=no
15269 if test $in_tree_gas = yes; then
15270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15271 then gcc_cv_as_alpha_explicit_relocs=yes
15273 elif test x$gcc_cv_as != x; then
15274 echo ' .set nomacro
15276 extbl $3, $2, $3 !lituse_bytoff!1
15277 ldq $2, a($29) !literal!1
15278 ldq $4, b($29) !literal!2
15279 ldq_u $3, 0($2) !lituse_base!1
15280 ldq $27, f($29) !literal!5
15281 jsr $26, ($27), f !lituse_jsr!5
15282 ldah $29, 0($26) !gpdisp!3
15283 lda $0, c($29) !gprel
15284 ldah $1, d($29) !gprelhigh
15285 lda $1, d($1) !gprellow
15286 lda $29, 0($29) !gpdisp!3' > conftest.s
15287 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }
15294 gcc_cv_as_alpha_explicit_relocs=yes
15296 echo "configure: failed program was" >&5
15299 rm -f conftest.o conftest.s
15302 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15303 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
15304 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15306 cat >>confdefs.h <<\_ACEOF
15307 #define HAVE_AS_EXPLICIT_RELOCS 1
15311 { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15312 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
15313 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 gcc_cv_as_alpha_jsrdirect_relocs=no
15317 if test $in_tree_gas = yes; then
15318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15319 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15321 elif test x$gcc_cv_as != x; then
15322 echo ' .set nomacro
15324 ldq $27, a($29) !literal!1
15325 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15326 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }
15333 gcc_cv_as_alpha_jsrdirect_relocs=yes
15335 echo "configure: failed program was" >&5
15338 rm -f conftest.o conftest.s
15341 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15342 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
15343 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_AS_JSRDIRECT_RELOCS 1
15353 { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15354 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
15355 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 gcc_cv_as_cris_no_mul_bug=no
15359 if test $in_tree_gas = yes; then
15360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15361 then gcc_cv_as_cris_no_mul_bug=yes
15363 elif test x$gcc_cv_as != x; then
15364 echo '.text' > conftest.s
15365 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }
15372 gcc_cv_as_cris_no_mul_bug=yes
15374 echo "configure: failed program was" >&5
15377 rm -f conftest.o conftest.s
15380 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15381 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
15382 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15384 cat >>confdefs.h <<\_ACEOF
15385 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15392 { echo "$as_me:$LINENO: checking assembler for .register" >&5
15393 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
15394 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 gcc_cv_as_sparc_register_op=no
15398 if test x$gcc_cv_as != x; then
15399 echo '.register %g2, #scratch' > conftest.s
15400 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }
15407 gcc_cv_as_sparc_register_op=yes
15409 echo "configure: failed program was" >&5
15412 rm -f conftest.o conftest.s
15415 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15416 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
15417 if test $gcc_cv_as_sparc_register_op = yes; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15425 { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15426 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
15427 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 gcc_cv_as_sparc_relax=no
15431 if test x$gcc_cv_as != x; then
15432 echo '.text' > conftest.s
15433 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }
15440 gcc_cv_as_sparc_relax=yes
15442 echo "configure: failed program was" >&5
15445 rm -f conftest.o conftest.s
15448 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15449 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
15450 if test $gcc_cv_as_sparc_relax = yes; then
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE_AS_RELAX_OPTION 1
15458 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15459 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
15460 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 gcc_cv_as_sparc_ua_pcrel=no
15464 if test x$gcc_cv_as != x; then
15471 .uaword %r_disp32(foo)' > conftest.s
15472 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }
15479 if test x$gcc_cv_ld != x \
15480 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15481 gcc_cv_as_sparc_ua_pcrel=yes
15485 echo "configure: failed program was" >&5
15488 rm -f conftest.o conftest.s
15491 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15492 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
15493 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_AS_SPARC_UA_PCREL 1
15500 { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15501 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
15502 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 gcc_cv_as_sparc_ua_pcrel_hidden=no
15506 if test x$gcc_cv_as != x; then
15510 .uaword %r_disp32(foo)
15511 .byte 0x32, 0x33, 0x34
15515 .skip 4' > conftest.s
15516 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }
15523 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15524 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15525 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15526 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15527 if $gcc_cv_objdump -R conftest 2> /dev/null \
15528 | grep 'DISP32' > /dev/null 2>&1; then
15531 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15536 echo "configure: failed program was" >&5
15539 rm -f conftest.o conftest.s
15542 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15543 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
15544 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15546 cat >>confdefs.h <<\_ACEOF
15547 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15552 fi # unaligned pcrel relocs
15554 { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15555 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
15556 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 gcc_cv_as_sparc_offsetable_lo10=no
15560 if test x$gcc_cv_as != x; then
15562 or %g1, %lo(ab) + 12, %g1
15563 or %g1, %lo(ab + 12), %g1' > conftest.s
15564 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }
15571 if test x$gcc_cv_objdump != x \
15572 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15573 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15574 gcc_cv_as_sparc_offsetable_lo10=yes
15577 echo "configure: failed program was" >&5
15580 rm -f conftest.o conftest.s
15583 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15584 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
15585 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_AS_OFFSETABLE_LO10 1
15594 i[34567]86-*-* | x86_64-*-*)
15596 cygwin* | pe | mingw32*)
15597 # Used for DWARF 2 in PE
15598 { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15599 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
15600 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 gcc_cv_as_ix86_pe_secrel32=no
15604 if test $in_tree_gas = yes; then
15605 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15606 then gcc_cv_as_ix86_pe_secrel32=yes
15608 elif test x$gcc_cv_as != x; then
15612 .secrel32 foo' > conftest.s
15613 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }
15620 if test x$gcc_cv_ld != x \
15621 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15622 gcc_cv_as_ix86_pe_secrel32=yes
15626 echo "configure: failed program was" >&5
15629 rm -f conftest.o conftest.s
15632 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15633 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
15634 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_GAS_PE_SECREL32_RELOC 1
15644 { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15645 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
15646 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 gcc_cv_as_ix86_filds_fists=no
15650 if test $in_tree_gas = yes; then
15651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15652 then gcc_cv_as_ix86_filds_fists=yes
15654 elif test x$gcc_cv_as != x; then
15655 echo 'filds mem; fists mem' > conftest.s
15656 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }
15663 gcc_cv_as_ix86_filds_fists=yes
15665 echo "configure: failed program was" >&5
15668 rm -f conftest.o conftest.s
15671 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15672 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
15673 if test $gcc_cv_as_ix86_filds_fists = yes; then
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE_GAS_FILDS_FISTS 1
15681 { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15682 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
15683 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 gcc_cv_as_ix86_cmov_sun_syntax=no
15687 if test x$gcc_cv_as != x; then
15688 echo 'cmovl.l %edx, %eax' > conftest.s
15689 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }
15696 gcc_cv_as_ix86_cmov_sun_syntax=yes
15698 echo "configure: failed program was" >&5
15701 rm -f conftest.o conftest.s
15704 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15705 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
15706 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15714 { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15715 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
15716 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 gcc_cv_as_ix86_ffreep=no
15720 if test x$gcc_cv_as != x; then
15721 echo 'ffreep %st(1)' > conftest.s
15722 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }
15729 gcc_cv_as_ix86_ffreep=yes
15731 echo "configure: failed program was" >&5
15734 rm -f conftest.o conftest.s
15737 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15738 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
15739 if test $gcc_cv_as_ix86_ffreep = yes; then
15741 cat >>confdefs.h <<\_ACEOF
15742 #define HAVE_AS_IX86_FFREEP 1
15747 { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15748 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
15749 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 gcc_cv_as_ix86_diff_sect_delta=no
15753 if test x$gcc_cv_as != x; then
15754 echo '.section .rodata
15760 .L2: nop' > conftest.s
15761 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }
15768 gcc_cv_as_ix86_diff_sect_delta=yes
15770 echo "configure: failed program was" >&5
15773 rm -f conftest.o conftest.s
15776 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15777 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
15778 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15786 # This one is used unconditionally by i386.[ch]; it is to be defined
15787 # to 1 if the feature is present, 0 otherwise.
15788 { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15789 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
15790 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 gcc_cv_as_ix86_gotoff_in_data=no
15794 if test $in_tree_gas = yes; then
15795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15796 then gcc_cv_as_ix86_gotoff_in_data=yes
15798 elif test x$gcc_cv_as != x; then
15803 .long .L0@GOTOFF' > conftest.s
15804 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }
15811 gcc_cv_as_ix86_gotoff_in_data=yes
15813 echo "configure: failed program was" >&5
15816 rm -f conftest.o conftest.s
15819 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15820 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15830 { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15831 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
15832 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15836 if test $in_tree_gas = yes; then
15837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15838 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15840 elif test x$gcc_cv_as != x; then
15842 addl r15 = @ltoffx(x#), gp
15844 ld8.mov r16 = [r15], x#' > conftest.s
15845 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }
15852 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15854 echo "configure: failed program was" >&5
15857 rm -f conftest.o conftest.s
15860 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15861 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
15862 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15864 cat >>confdefs.h <<\_ACEOF
15865 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15874 *-*-aix*) conftest_s=' .machine "pwr5"
15878 { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15879 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
15880 if test "${gcc_cv_as_machine_directive+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 gcc_cv_as_machine_directive=no
15884 if test x$gcc_cv_as != x; then
15885 echo ' .machine ppc7400' > conftest.s
15886 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }
15893 gcc_cv_as_machine_directive=yes
15895 echo "configure: failed program was" >&5
15898 rm -f conftest.o conftest.s
15901 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15902 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
15904 if test x$gcc_cv_as_machine_directive != xyes; then
15905 echo "*** This target requires an assembler supporting \".machine\"" >&2
15906 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15907 test x$build = x$target && exit 1
15911 *) conftest_s=' .machine power4
15916 { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15917 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
15918 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 gcc_cv_as_powerpc_mfcrf=no
15922 if test $in_tree_gas = yes; then
15923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15924 then gcc_cv_as_powerpc_mfcrf=yes
15926 elif test x$gcc_cv_as != x; then
15927 echo "$conftest_s" > conftest.s
15928 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }
15935 gcc_cv_as_powerpc_mfcrf=yes
15937 echo "configure: failed program was" >&5
15940 rm -f conftest.o conftest.s
15943 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15944 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
15945 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_AS_MFCRF 1
15954 *-*-aix*) conftest_s=' .machine "pwr5"
15957 *) conftest_s=' .machine power5
15962 { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15963 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
15964 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 gcc_cv_as_powerpc_popcntb=no
15968 if test $in_tree_gas = yes; then
15969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15970 then gcc_cv_as_powerpc_popcntb=yes
15972 elif test x$gcc_cv_as != x; then
15973 echo "$conftest_s" > conftest.s
15974 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }
15981 gcc_cv_as_powerpc_popcntb=yes
15983 echo "configure: failed program was" >&5
15986 rm -f conftest.o conftest.s
15989 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15990 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
15991 if test $gcc_cv_as_powerpc_popcntb = yes; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_AS_POPCNTB 1
16000 *-*-aix*) conftest_s=' .machine "pwr5x"
16003 *) conftest_s=' .machine power5
16008 { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16009 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
16010 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 gcc_cv_as_powerpc_fprnd=no
16014 if test $in_tree_gas = yes; then
16015 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16016 then gcc_cv_as_powerpc_fprnd=yes
16018 elif test x$gcc_cv_as != x; then
16019 echo "$conftest_s" > conftest.s
16020 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }
16027 gcc_cv_as_powerpc_fprnd=yes
16029 echo "configure: failed program was" >&5
16032 rm -f conftest.o conftest.s
16035 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16036 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
16037 if test $gcc_cv_as_powerpc_fprnd = yes; then
16039 cat >>confdefs.h <<\_ACEOF
16040 #define HAVE_AS_FPRND 1
16046 *-*-aix*) conftest_s=' .machine "pwr6"
16049 *) conftest_s=' .machine power6
16054 { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16055 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
16056 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 gcc_cv_as_powerpc_mfpgpr=no
16060 if test $in_tree_gas = yes; then
16061 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16062 then gcc_cv_as_powerpc_mfpgpr=yes
16064 elif test x$gcc_cv_as != x; then
16065 echo "$conftest_s" > conftest.s
16066 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }
16073 gcc_cv_as_powerpc_mfpgpr=yes
16075 echo "configure: failed program was" >&5
16078 rm -f conftest.o conftest.s
16081 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16082 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
16083 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16085 cat >>confdefs.h <<\_ACEOF
16086 #define HAVE_AS_MFPGPR 1
16092 *-*-aix*) conftest_s=' .csect .text[PR]
16094 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16098 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16099 *) conftest_s=' .text
16101 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16104 { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16105 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
16106 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 gcc_cv_as_powerpc_rel16=no
16110 if test $in_tree_gas = yes; then
16111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16112 then gcc_cv_as_powerpc_rel16=yes
16114 elif test x$gcc_cv_as != x; then
16115 echo "$conftest_s" > conftest.s
16116 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }
16123 gcc_cv_as_powerpc_rel16=yes
16125 echo "configure: failed program was" >&5
16128 rm -f conftest.o conftest.s
16131 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16132 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
16133 if test $gcc_cv_as_powerpc_rel16 = yes; then
16135 cat >>confdefs.h <<\_ACEOF
16136 #define HAVE_AS_REL16 1
16143 { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16144 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16145 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 gcc_cv_as_mips_explicit_relocs=no
16149 if test $in_tree_gas = yes; then
16150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16151 then gcc_cv_as_mips_explicit_relocs=yes
16153 elif test x$gcc_cv_as != x; then
16154 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16155 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }
16162 gcc_cv_as_mips_explicit_relocs=yes
16164 echo "configure: failed program was" >&5
16167 rm -f conftest.o conftest.s
16170 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16171 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
16172 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16173 if test x$target_cpu_default = x
16174 then target_cpu_default=MASK_EXPLICIT_RELOCS
16175 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16178 { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16179 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
16180 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 gcc_cv_as_mips_no_shared=no
16184 if test $in_tree_gas = yes; then
16185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16186 then gcc_cv_as_mips_no_shared=yes
16188 elif test x$gcc_cv_as != x; then
16189 echo 'nop' > conftest.s
16190 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }
16197 gcc_cv_as_mips_no_shared=yes
16199 echo "configure: failed program was" >&5
16202 rm -f conftest.o conftest.s
16205 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16206 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
16207 if test $gcc_cv_as_mips_no_shared = yes; then
16209 cat >>confdefs.h <<\_ACEOF
16210 #define HAVE_AS_NO_SHARED 1
16217 # Mips and HP-UX need the GNU assembler.
16218 # Linux on IA64 might be able to use the Intel assembler.
16221 mips*-*-* | *-*-hpux* )
16222 if test x$gas_flag = xyes \
16223 || test x"$host" != x"$build" \
16224 || test ! -x "$gcc_cv_as" \
16225 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16228 echo "*** This configuration requires the GNU assembler" >&2
16234 # ??? Not all targets support dwarf2 debug_line, even within a version
16235 # of gas. Moreover, we need to emit a valid instruction to trigger any
16236 # info to the output file. So, as supported targets are added to gas 2.11,
16237 # add some instruction here to (also) show we expect this might work.
16238 # ??? Once 2.11 is released, probably need to add first known working
16239 # version to the per-target configury.
16241 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16242 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16243 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*)
16246 ia64*-*-* | s390*-*-*)
16253 if test x"$insn" != x; then
16255 .file 1 \"conftest.s\"
16258 { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16259 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
16260 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 gcc_cv_as_dwarf2_debug_line=no
16264 if test $in_tree_gas = yes; then
16265 if test $in_tree_gas_is_elf = yes \
16266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16267 then gcc_cv_as_dwarf2_debug_line=yes
16269 elif test x$gcc_cv_as != x; then
16270 echo "$conftest_s" > conftest.s
16271 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }
16278 if test x$gcc_cv_objdump != x \
16279 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16280 | grep debug_line > /dev/null 2>&1; then
16281 gcc_cv_as_dwarf2_debug_line=yes
16284 echo "configure: failed program was" >&5
16287 rm -f conftest.o conftest.s
16290 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16291 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
16294 # The .debug_line file table must be in the exact order that
16295 # we specified the files, since these indices are also used
16296 # by DW_AT_decl_file. Approximate this test by testing if
16297 # the assembler bitches if the same index is assigned twice.
16298 { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16299 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
16300 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 gcc_cv_as_dwarf2_file_buggy=no
16304 if test x$gcc_cv_as != x; then
16305 echo ' .file 1 "foo.s"
16306 .file 1 "bar.s"' > conftest.s
16307 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }
16314 gcc_cv_as_dwarf2_file_buggy=yes
16316 echo "configure: failed program was" >&5
16319 rm -f conftest.o conftest.s
16322 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16323 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
16326 if test $gcc_cv_as_dwarf2_debug_line = yes \
16327 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16329 cat >>confdefs.h <<\_ACEOF
16330 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16335 { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16336 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
16337 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 gcc_cv_as_gdwarf2_flag=no
16341 if test $in_tree_gas = yes; then
16342 if test $in_tree_gas_is_elf = yes \
16343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16344 then gcc_cv_as_gdwarf2_flag=yes
16346 elif test x$gcc_cv_as != x; then
16347 echo "$insn" > conftest.s
16348 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }
16355 gcc_cv_as_gdwarf2_flag=yes
16357 echo "configure: failed program was" >&5
16360 rm -f conftest.o conftest.s
16363 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16364 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
16365 if test $gcc_cv_as_gdwarf2_flag = yes; then
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16373 { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16374 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
16375 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 gcc_cv_as_gstabs_flag=no
16379 if test $in_tree_gas = yes; then
16380 if test $in_tree_gas_is_elf = yes \
16381 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16382 then gcc_cv_as_gstabs_flag=yes
16384 elif test x$gcc_cv_as != x; then
16385 echo "$insn" > conftest.s
16386 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }
16393 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16394 # and warns about it, but still exits successfully. So check for
16396 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }
16403 else gcc_cv_as_gstabs_flag=yes
16406 echo "configure: failed program was" >&5
16409 rm -f conftest.o conftest.s
16412 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16413 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
16414 if test $gcc_cv_as_gstabs_flag = yes; then
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16423 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16424 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
16425 gcc_cv_ld_ro_rw_mix=unknown
16426 if test $in_tree_ld = yes ; then
16427 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 \
16428 && test $in_tree_ld_is_elf = yes; then
16429 gcc_cv_ld_ro_rw_mix=read-write
16431 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16432 echo '.section myfoosect, "a"' > conftest1.s
16433 echo '.section myfoosect, "aw"' > conftest2.s
16434 echo '.byte 1' >> conftest2.s
16435 echo '.section myfoosect, "a"' > conftest3.s
16436 echo '.byte 0' >> conftest3.s
16437 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16438 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16439 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16440 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16441 conftest2.o conftest3.o > /dev/null 2>&1; then
16442 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16443 | sed -e '/myfoosect/!d' -e N`
16444 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16445 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16446 gcc_cv_ld_ro_rw_mix=read-only
16448 gcc_cv_ld_ro_rw_mix=read-write
16452 rm -f conftest.* conftest[123].*
16454 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16456 cat >>confdefs.h <<\_ACEOF
16457 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16461 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16462 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
16464 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16465 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
16466 gcc_cv_ld_eh_frame_hdr=no
16467 if test $in_tree_ld = yes ; then
16468 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 \
16469 && test $in_tree_ld_is_elf = yes; then
16470 gcc_cv_ld_eh_frame_hdr=yes
16472 elif test x$gcc_cv_ld != x; then
16473 # Check if linker supports --eh-frame-hdr option
16474 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16475 gcc_cv_ld_eh_frame_hdr=yes
16479 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16481 cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_LD_EH_FRAME_HDR 1
16486 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16487 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
16489 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16490 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
16492 if test $in_tree_ld = yes ; then
16493 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 \
16494 && test $in_tree_ld_is_elf = yes; then
16497 elif test x$gcc_cv_ld != x; then
16498 # Check if linker supports -pie option
16499 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16503 if test x"$gcc_cv_ld_pie" = xyes; then
16505 cat >>confdefs.h <<\_ACEOF
16506 #define HAVE_LD_PIE 1
16510 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16511 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
16513 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16514 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
16515 gcc_cv_ld_eh_gc_sections=no
16516 if test $in_tree_ld = yes ; then
16517 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 \
16518 && test $in_tree_ld_is_elf = yes; then
16519 gcc_cv_ld_eh_gc_sections=yes
16521 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16522 cat > conftest.s <<EOF
16525 .type _start, @function
16528 .size _start, .-_start
16529 .section .text.foo,"ax",@progbits
16530 .type foo, @function
16534 .section .gcc_except_table.foo,"a",@progbits
16537 .section .eh_frame,"a",@progbits
16540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16541 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16542 | grep "gc-sections option ignored" > /dev/null; then
16543 gcc_cv_ld_eh_gc_sections=no
16544 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16545 gcc_cv_ld_eh_gc_sections=yes
16546 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16547 if test x$gcc_cv_as_comdat_group != xyes; then
16548 gcc_cv_ld_eh_gc_sections=no
16549 cat > conftest.s <<EOF
16552 .type _start, @function
16555 .size _start, .-_start
16556 .section .gnu.linkonce.t.foo,"ax",@progbits
16557 .type foo, @function
16561 .section .gcc_except_table.foo,"a",@progbits
16564 .section .eh_frame,"a",@progbits
16567 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16568 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16569 | grep "gc-sections option ignored" > /dev/null; then
16570 gcc_cv_ld_eh_gc_sections=no
16571 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16572 gcc_cv_ld_eh_gc_sections=yes
16578 rm -f conftest.s conftest.o conftest
16582 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16583 gcc_cv_ld_eh_gc_sections=no
16586 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_LD_EH_GC_SECTIONS 1
16593 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16594 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
16600 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16601 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
16602 if test "${gcc_cv_ld_as_needed+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 gcc_cv_ld_as_needed=no
16606 if test $in_tree_ld = yes ; then
16607 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 \
16608 && test $in_tree_ld_is_elf = yes; then
16609 gcc_cv_ld_as_needed=yes
16611 elif test x$gcc_cv_ld != x; then
16612 # Check if linker supports --as-needed and --no-as-needed options
16613 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16614 gcc_cv_ld_as_needed=yes
16619 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16620 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
16621 if test x"$gcc_cv_ld_as_needed" = xyes; then
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_LD_AS_NEEDED 1
16629 case "$target:$tm_file" in
16630 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16631 { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16632 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
16633 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 gcc_cv_ld_no_dot_syms=no
16637 if test $in_tree_ld = yes ; then
16638 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
16639 gcc_cv_ld_no_dot_syms=yes
16641 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16642 cat > conftest1.s <<EOF
16646 cat > conftest2.s <<EOF
16647 .section ".opd","aw"
16650 .type foo,@function
16652 .quad .LEfoo,.TOC.@tocbase,0
16658 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16659 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16660 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16661 gcc_cv_ld_no_dot_syms=yes
16663 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16667 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16668 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
16669 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16671 cat >>confdefs.h <<\_ACEOF
16672 #define HAVE_LD_NO_DOT_SYMS 1
16679 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16680 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
16681 if test "${gcc_cv_ld_sysroot+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 gcc_cv_ld_sysroot=no
16685 if test $in_tree_ld = yes ; then
16686 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
16687 gcc_cv_ld_sysroot=yes
16689 elif test x$gcc_cv_ld != x; then
16690 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16691 gcc_cv_ld_sysroot=yes
16695 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16696 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
16697 if test x"$gcc_cv_ld_sysroot" = xyes; then
16699 cat >>confdefs.h <<\_ACEOF
16700 #define HAVE_LD_SYSROOT 1
16705 if test x$with_sysroot = x && test x$host = x$target \
16706 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16707 && test "$prefix" != "NONE"; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define PREFIX_INCLUDE_DIR "$prefix/include"
16715 # Test for stack protector support in target C library.
16716 { echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16717 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6; }
16718 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 gcc_cv_libc_provides_ssp=no
16724 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16725 if test "x$with_sysroot" = x; then
16726 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16727 elif test "x$with_sysroot" = xyes; then
16728 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16730 glibc_header_dir="${with_sysroot}/usr/include"
16733 glibc_header_dir=/usr/include
16735 # glibc 2.4 and later provides __stack_chk_fail and
16736 # either __stack_chk_guard, or TLS access to stack guard canary.
16737 if test -f $glibc_header_dir/features.h \
16738 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16739 $glibc_header_dir/features.h > /dev/null; then
16740 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16741 $glibc_header_dir/features.h > /dev/null; then
16742 gcc_cv_libc_provides_ssp=yes
16743 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16744 $glibc_header_dir/features.h > /dev/null \
16745 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16746 $glibc_header_dir/features.h > /dev/null; then
16747 gcc_cv_libc_provides_ssp=yes
16752 { echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16753 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6; }
16754 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define __stack_chk_fail innocuous___stack_chk_fail
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char __stack_chk_fail (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16773 # include <limits.h>
16775 # include <assert.h>
16778 #undef __stack_chk_fail
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16786 char __stack_chk_fail ();
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub___stack_chk_fail || defined __stub_____stack_chk_fail
16797 return __stack_chk_fail ();
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } && {
16816 test -z "$ac_c_werror_flag" ||
16817 test ! -s conftest.err
16818 } && test -s conftest$ac_exeext &&
16819 $as_test_x conftest$ac_exeext; then
16820 ac_cv_func___stack_chk_fail=yes
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_func___stack_chk_fail=no
16828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16829 conftest$ac_exeext conftest.$ac_ext
16831 { echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16832 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6; }
16833 if test $ac_cv_func___stack_chk_fail = yes; then
16834 gcc_cv_libc_provides_ssp=yes
16836 echo "no __stack_chk_fail on this target"
16840 *) gcc_cv_libc_provides_ssp=no ;;
16843 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16844 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; }
16846 if test x$gcc_cv_libc_provides_ssp = xyes; then
16848 cat >>confdefs.h <<\_ACEOF
16849 #define TARGET_LIBC_PROVIDES_SSP 1
16854 # Check if TFmode long double should be used by default or not.
16855 # Some glibc targets used DFmode long double, but with glibc 2.4
16856 # and later they can use TFmode.
16858 powerpc*-*-*gnu* | \
16859 sparc*-*-linux* | \
16863 # Check whether --with-long-double-128 was given.
16864 if test "${with_long_double_128+set}" = set; then
16865 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
16867 gcc_cv_target_ldbl128=no
16868 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16869 if test "x$with_sysroot" = x; then
16870 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16871 elif test "x$with_sysroot" = xyes; then
16872 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16874 glibc_header_dir="${with_sysroot}/usr/include"
16877 glibc_header_dir=/usr/include
16879 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16880 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16881 && gcc_cv_target_ldbl128=yes
16887 if test x$gcc_cv_target_ldbl128 = xyes; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16895 # Find out what GC implementation we want, or may, use.
16897 # Check whether --with-gc was given.
16898 if test "${with_gc+set}" = set; then
16899 withval=$with_gc; case "$withval" in
16906 cat >>confdefs.h <<\_ACEOF
16912 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16913 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16914 { (exit 1); exit 1; }; }
16922 echo "Using $GGC for garbage collection."
16924 # Use the system's zlib library.
16926 zlibinc="-I\$(srcdir)/../zlib"
16928 # Check whether --with-system-zlib was given.
16929 if test "${with_system_zlib+set}" = set; then
16930 withval=$with_system_zlib; zlibdir=
16939 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16940 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
16941 # Check whether --enable-maintainer-mode was given.
16942 if test "${enable_maintainer_mode+set}" = set; then
16943 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
16949 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16950 echo "${ECHO_T}$maintainer_mode" >&6; }
16952 if test "$maintainer_mode" = "yes"; then
16962 # Make empty files to contain the specs and options for each language.
16963 # Then add #include lines to for a compiler that has specs and/or options.
16969 # These (without "all_") are set in each config-lang.in.
16970 # `language' must be a single word so is spelled singularly.
16972 all_boot_languages=
16975 all_outputs='Makefile gccbug libada-mk'
16976 # List of language makefile fragments.
16977 all_lang_makefrags=
16978 # List of language subdirectory makefiles. Deprecated.
16979 all_lang_makefiles=
16980 # Files for gengtype
16981 all_gtfiles="$target_gtfiles"
16982 # Files for gengtype with language
16983 all_gtfiles_files_langs=
16984 all_gtfiles_files_files=
16986 # These are the languages that are set in --enable-languages,
16987 # and are available in the GCC tree.
16988 all_selected_languages=
16990 # Add the language fragments.
16991 # Languages are added via two mechanisms. Some information must be
16992 # recorded in makefile variables, these are defined in config-lang.in.
16993 # We accumulate them and plug them into the main Makefile.
16994 # The other mechanism is a set of hooks for each of the main targets
16995 # like `clean', `install', etc.
16997 language_hooks="Make-hooks"
16999 for lang in ${srcdir}/*/config-lang.in
17001 test "$lang" = "${srcdir}/*/config-lang.in" && continue
17003 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
17004 if test "x$lang_alias" = x
17006 echo "$lang doesn't set \$language." 1>&2
17009 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17010 subdirs="$subdirs $subdir"
17011 case ",$enable_languages," in
17013 all_selected_languages="$all_selected_languages $lang_alias"
17014 if test -f $srcdir/$subdir/lang-specs.h; then
17015 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17027 . ${srcdir}/$subdir/config-lang.in
17028 if test "x$language" = x
17030 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17035 case ",$enable_languages," in
17036 *,$lang_alias,*) ;;
17038 for i in $subdir_requires; do
17039 test -f "${srcdir}/$i/config-lang.in" && continue
17047 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17048 if test -f $srcdir/$subdir/lang.opt; then
17049 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17051 if test -f $srcdir/$subdir/$subdir-tree.def; then
17052 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17054 if test -f ${srcdir}/$subdir/Makefile.in
17055 then all_lang_makefiles="$subdir/Makefile"
17057 all_languages="$all_languages $language"
17058 if test "x$boot_language" = xyes
17060 all_boot_languages="$all_boot_languages $language"
17062 all_compilers="$all_compilers $compilers"
17063 all_stagestuff="$all_stagestuff $stagestuff"
17064 all_outputs="$all_outputs $outputs"
17065 all_gtfiles="$all_gtfiles $gtfiles"
17068 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
17069 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17073 # Pick up gtfiles for c
17076 . ${srcdir}/c-config-lang.in
17077 all_gtfiles="$all_gtfiles $gtfiles"
17080 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
17081 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
17085 for language in $all_selected_languages
17087 check_languages="$check_languages check-$language"
17090 # We link each language in with a set of hooks, reached indirectly via
17091 # lang.${target}. Only do so for selected languages.
17095 target_list="all.cross start.encap rest.encap tags \
17096 install-common install-man install-info dvi pdf html \
17097 uninstall info man srcextra srcman srcinfo \
17098 mostlyclean clean distclean maintainer-clean \
17099 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
17101 for t in $target_list
17104 for lang in $all_selected_languages
17108 echo "lang.$t: $x" >> Make-hooks
17117 echo "dir ." > .gdbinit
17118 echo "dir ${srcdir}" >> .gdbinit
17119 if test x$gdb_needs_out_file_path = xyes
17121 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17123 if test "x$subdirs" != x; then
17126 echo "dir ${srcdir}/$s" >> .gdbinit
17129 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17131 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
17132 # absolute path for gcc_tooldir based on inserting the number of up-directory
17133 # movements required to get from $(exec_prefix) to $(prefix) into the basic
17134 # $(libsubdir)/@(unlibsubdir) based path.
17135 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
17136 # make and thus we'd get different behavior depending on where we built the
17138 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
17139 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
17141 # An explanation of the sed strings:
17142 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
17143 # -e 's|/$||' match a trailing forward slash and eliminates it
17144 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
17145 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
17147 # (*) Note this pattern overwrites the first character of the string
17148 # with a forward slash if one is not already present. This is not a
17149 # problem because the exact names of the sub-directories concerned is
17150 # unimportant, just the number of them matters.
17152 # The practical upshot of these patterns is like this:
17154 # prefix exec_prefix result
17155 # ------ ----------- ------
17156 # /foo /foo/bar ../
17157 # /foo/ /foo/bar ../
17158 # /foo /foo/bar/ ../
17159 # /foo/ /foo/bar/ ../
17160 # /foo /foo/bar/ugg ../../
17163 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
17168 # Find a directory in which to install a shared libgcc.
17170 # Check whether --enable-version-specific-runtime-libs was given.
17171 if test "${enable_version_specific_runtime_libs+set}" = set; then
17172 enableval=$enable_version_specific_runtime_libs;
17177 # Check whether --with-slibdir was given.
17178 if test "${with_slibdir+set}" = set; then
17179 withval=$with_slibdir; slibdir="$with_slibdir"
17181 if test "${enable_version_specific_runtime_libs+set}" = set; then
17182 slibdir='$(libsubdir)'
17183 elif test "$host" != "$target"; then
17184 slibdir='$(build_tooldir)/lib'
17186 slibdir='$(libdir)'
17192 objdir=`${PWDCMD-pwd}`
17196 # Check whether --with-datarootdir was given.
17197 if test "${with_datarootdir+set}" = set; then
17198 withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
17200 datarootdir='$(prefix)/share'
17206 # Check whether --with-docdir was given.
17207 if test "${with_docdir+set}" = set; then
17208 withval=$with_docdir; docdir="\${prefix}/$with_docdir"
17210 docdir='$(datarootdir)'
17216 # Check whether --with-htmldir was given.
17217 if test "${with_htmldir+set}" = set; then
17218 withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
17220 htmldir='$(docdir)'
17225 # Substitute configuration variables
17290 if test x${build} = x${host} ; then
17291 if test x${host} = x${target} ; then
17292 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17294 echo "Links are now set up to build a cross-compiler" 1>&2
17295 echo " from ${host} to ${target}." 1>&2
17298 if test x${host} = x${target} ; then
17299 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17300 echo " for ${target}." 1>&2
17302 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17303 echo " from ${host} to ${target}." 1>&2
17310 # Configure the subdirectories
17311 # AC_CONFIG_SUBDIRS($subdirs)
17313 # Create the Makefile
17314 # and configure language subdirectories
17315 ac_config_files="$ac_config_files $all_outputs"
17318 ac_config_commands="$ac_config_commands default"
17320 cat >confcache <<\_ACEOF
17321 # This file is a shell script that caches the results of configure
17322 # tests run on this system so they can be shared between configure
17323 # scripts and configure runs, see configure's option --config-cache.
17324 # It is not useful on other systems. If it contains results you don't
17325 # want to keep, you may remove or edit it.
17327 # config.status only pays attention to the cache file if you give it
17328 # the --recheck option to rerun configure.
17330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17332 # following values.
17336 # The following way of writing the cache mishandles newlines in values,
17337 # but we know of no workaround that is simple, portable, and efficient.
17338 # So, we kill variables containing newlines.
17339 # Ultrix sh set writes to stderr and can't be redirected directly,
17340 # and sets the high bit in the cache file unless we assign to the vars.
17342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17343 eval ac_val=\$$ac_var
17347 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17348 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17351 _ | IFS | as_nl) ;; #(
17352 *) $as_unset $ac_var ;;
17358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17359 *${as_nl}ac_space=\ *)
17360 # `set' does not quote correctly, so add quotes (double-quote
17361 # substitution turns \\\\ into \\, and sed turns \\ into \).
17364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17367 # `set' quotes correctly as required by POSIX, so do not add quotes.
17368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17382 if test -w "$cache_file"; then
17383 test "x$cache_file" != "x/dev/null" &&
17384 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17385 echo "$as_me: updating cache $cache_file" >&6;}
17386 cat confcache >$cache_file
17388 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17389 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17395 # Let make expand exec_prefix.
17396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17398 DEFS=-DHAVE_CONFIG_H
17402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17403 # 1. Remove the extension, and $U if already installed.
17404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17405 ac_i=`echo "$ac_i" | sed "$ac_script"`
17406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17407 # will be set to the directory where LIBOBJS objects are built.
17408 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17409 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17411 LIBOBJS=$ac_libobjs
17413 LTLIBOBJS=$ac_ltlibobjs
17417 : ${CONFIG_STATUS=./config.status}
17418 ac_clean_files_save=$ac_clean_files
17419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17420 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17422 cat >$CONFIG_STATUS <<_ACEOF
17424 # Generated by $as_me.
17425 # Run this file to recreate the current configuration.
17426 # Compiler output produced by configure, useful for debugging
17427 # configure, is in config.log if it exists.
17430 ac_cs_recheck=false
17432 SHELL=\${CONFIG_SHELL-$SHELL}
17435 cat >>$CONFIG_STATUS <<\_ACEOF
17436 ## --------------------- ##
17437 ## M4sh Initialization. ##
17438 ## --------------------- ##
17440 # Be more Bourne compatible
17441 DUALCASE=1; export DUALCASE # for MKS sh
17442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17446 # is contrary to our usage. Disable this feature.
17447 alias -g '${1+"$@"}'='"$@"'
17448 setopt NO_GLOB_SUBST
17450 case `(set -o) 2>/dev/null` in
17451 *posix*) set -o posix ;;
17460 # Avoid depending upon Character Ranges.
17461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17464 as_cr_digits='0123456789'
17465 as_cr_alnum=$as_cr_Letters$as_cr_digits
17467 # The user is always right.
17468 if test "${PATH_SEPARATOR+set}" != set; then
17469 echo "#! /bin/sh" >conf$$.sh
17470 echo "exit 0" >>conf$$.sh
17472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17480 # Support unset when possible.
17481 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17489 # We need space, tab and new line, in precisely that order. Quoting is
17490 # there to prevent editors from complaining about space-tab.
17491 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17492 # splitting by setting IFS to empty value.)
17497 # Find who we are. Look in the path if we contain no directory separator.
17499 *[\\/]* ) as_myself=$0 ;;
17500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17501 for as_dir in $PATH
17504 test -z "$as_dir" && as_dir=.
17505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17511 # We did not find ourselves, most probably we were run as `sh COMMAND'
17512 # in which case we are not to be found in the path.
17513 if test "x$as_myself" = x; then
17516 if test ! -f "$as_myself"; then
17517 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17518 { (exit 1); exit 1; }
17521 # Work around bugs in pre-3.0 UWIN ksh.
17522 for as_var in ENV MAIL MAILPATH
17523 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17531 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17532 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17533 LC_TELEPHONE LC_TIME
17535 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17536 eval $as_var=C; export $as_var
17538 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17542 # Required to use basename.
17543 if expr a : '\(a\)' >/dev/null 2>&1 &&
17544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17550 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17551 as_basename=basename
17557 # Name of the executable.
17558 as_me=`$as_basename -- "$0" ||
17559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17560 X"$0" : 'X\(//\)$' \| \
17561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17563 sed '/^.*\/\([^/][^/]*\)\/*$/{
17582 as_lineno_1=$LINENO
17583 as_lineno_2=$LINENO
17584 test "x$as_lineno_1" != "x$as_lineno_2" &&
17585 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17587 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17588 # uniformly replaced by the line number. The first 'sed' inserts a
17589 # line-number line after each line using $LINENO; the second 'sed'
17590 # does the real work. The second script uses 'N' to pair each
17591 # line-number line with the line containing $LINENO, and appends
17592 # trailing '-' during substitution so that $LINENO is not a special
17593 # case at line end.
17594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17595 # scripts with optimization help from Paolo Bonzini. Blame Lee
17596 # E. McMahon (1931-1989) for sed's syntax. :-)
17608 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17611 ' >$as_me.lineno &&
17612 chmod +x "$as_me.lineno" ||
17613 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17614 { (exit 1); exit 1; }; }
17616 # Don't try to exec as it changes $[0], causing all sort of problems
17617 # (the dirname of $[0] is not the place where we might find the
17618 # original and so on. Autoconf is especially sensitive to this).
17619 . "./$as_me.lineno"
17620 # Exit status is that of the last command.
17625 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17631 ECHO_C= ECHO_N= ECHO_T=
17632 case `echo -n x` in
17634 case `echo 'x\c'` in
17635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17642 if expr a : '\(a\)' >/dev/null 2>&1 &&
17643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17649 rm -f conf$$ conf$$.exe conf$$.file
17650 if test -d conf$$.dir; then
17651 rm -f conf$$.dir/conf$$.file
17657 if ln -s conf$$.file conf$$ 2>/dev/null; then
17659 # ... but there are two gotchas:
17660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17662 # In both cases, we have to default to `cp -p'.
17663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17665 elif ln conf$$.file conf$$ 2>/dev/null; then
17670 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17671 rmdir conf$$.dir 2>/dev/null
17673 if mkdir -p . 2>/dev/null; then
17676 test -d ./-p && rmdir ./-p
17680 if test -x / >/dev/null 2>&1; then
17681 as_test_x='test -x'
17683 if ls -dL / >/dev/null 2>&1; then
17690 if test -d "$1"; then
17696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17697 ???[sx]*):;;*)false;;esac;fi
17701 as_executable_p=$as_test_x
17703 # Sed expression to map a string onto a valid CPP name.
17704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17706 # Sed expression to map a string onto a valid variable name.
17707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17712 # Save the log message, to keep $[0] and so on meaningful, and to
17713 # report actual input values of CONFIG_FILES etc. instead of their
17714 # values after options handling.
17716 This file was extended by $as_me, which was
17717 generated by GNU Autoconf 2.61. Invocation command line was
17719 CONFIG_FILES = $CONFIG_FILES
17720 CONFIG_HEADERS = $CONFIG_HEADERS
17721 CONFIG_LINKS = $CONFIG_LINKS
17722 CONFIG_COMMANDS = $CONFIG_COMMANDS
17725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17730 cat >>$CONFIG_STATUS <<_ACEOF
17731 # Files that config.status was made for.
17732 config_files="$ac_config_files"
17733 config_headers="$ac_config_headers"
17734 config_commands="$ac_config_commands"
17738 cat >>$CONFIG_STATUS <<\_ACEOF
17740 \`$as_me' instantiates files from templates according to the
17741 current configuration.
17743 Usage: $0 [OPTIONS] [FILE]...
17745 -h, --help print this help, then exit
17746 -V, --version print version number and configuration settings, then exit
17747 -q, --quiet do not print progress messages
17748 -d, --debug don't remove temporary files
17749 --recheck update $as_me by reconfiguring in the same conditions
17750 --file=FILE[:TEMPLATE]
17751 instantiate the configuration file FILE
17752 --header=FILE[:TEMPLATE]
17753 instantiate the configuration header FILE
17755 Configuration files:
17758 Configuration headers:
17761 Configuration commands:
17764 Report bugs to <bug-autoconf@gnu.org>."
17767 cat >>$CONFIG_STATUS <<_ACEOF
17770 configured by $0, generated by GNU Autoconf 2.61,
17771 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17773 Copyright (C) 2006 Free Software Foundation, Inc.
17774 This config.status script is free software; the Free Software Foundation
17775 gives unlimited permission to copy, distribute and modify it."
17781 cat >>$CONFIG_STATUS <<\_ACEOF
17782 # If no file are specified by the user, then we need to provide default
17783 # value. By we need to know if files were specified by the user.
17789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17801 # Handling of the options.
17802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17805 echo "$ac_cs_version"; exit ;;
17806 --debug | --debu | --deb | --de | --d | -d )
17808 --file | --fil | --fi | --f )
17810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17811 ac_need_defaults=false;;
17812 --header | --heade | --head | --hea )
17814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17815 ac_need_defaults=false;;
17817 # Conflict between --help and --header
17818 { echo "$as_me: error: ambiguous option: $1
17819 Try \`$0 --help' for more information." >&2
17820 { (exit 1); exit 1; }; };;
17821 --help | --hel | -h )
17822 echo "$ac_cs_usage"; exit ;;
17823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17824 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17827 # This is an error.
17828 -*) { echo "$as_me: error: unrecognized option: $1
17829 Try \`$0 --help' for more information." >&2
17830 { (exit 1); exit 1; }; } ;;
17832 *) ac_config_targets="$ac_config_targets $1"
17833 ac_need_defaults=false ;;
17839 ac_configure_extra_args=
17841 if $ac_cs_silent; then
17843 ac_configure_extra_args="$ac_configure_extra_args --silent"
17847 cat >>$CONFIG_STATUS <<_ACEOF
17848 if \$ac_cs_recheck; then
17849 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17850 CONFIG_SHELL=$SHELL
17851 export CONFIG_SHELL
17852 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17861 ## Running $as_me. ##
17867 cat >>$CONFIG_STATUS <<_ACEOF
17875 cat >>$CONFIG_STATUS <<\_ACEOF
17877 # Handling of arguments.
17878 for ac_config_target in $ac_config_targets
17880 case $ac_config_target in
17881 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17882 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17883 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17887 { (exit 1); exit 1; }; };;
17892 # If the user did not use the arguments to specify the items to instantiate,
17893 # then the envvar interface is used. Set only those that are not.
17894 # We use the long form for the default assignment because of an extremely
17895 # bizarre bug on SunOS 4.1.3.
17896 if $ac_need_defaults; then
17897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17902 # Have a temporary directory for convenience. Make it in the build tree
17903 # simply because there is no reason against having it here, and in addition,
17904 # creating and moving files from /tmp can sometimes cause problems.
17905 # Hook for its removal unless debugging.
17906 # Note that there is a small window in which the directory will not be cleaned:
17907 # after its creation but before its name has been assigned to `$tmp'.
17911 trap 'exit_status=$?
17912 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17914 trap '{ (exit 1); exit 1; }' 1 2 13 15
17916 # Create a (secure) tmp directory for tmp files.
17919 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17920 test -n "$tmp" && test -d "$tmp"
17923 tmp=./conf$$-$RANDOM
17924 (umask 077 && mkdir "$tmp")
17927 echo "$me: cannot create a temporary directory in ." >&2
17928 { (exit 1); exit 1; }
17932 # Set up the sed scripts for CONFIG_FILES section.
17935 # No need to generate the scripts if there are no CONFIG_FILES.
17936 # This happens for instance when ./config.status config.h
17937 if test -n "$CONFIG_FILES"; then
17941 # Create sed commands to just substitute file output variables.
17943 # Remaining file output variables are in a fragment that also has non-file
17949 for ac_last_try in false false false false false :; do
17950 cat >conf$$subs.sed <<_ACEOF
17951 SHELL!$SHELL$ac_delim
17952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17958 exec_prefix!$exec_prefix$ac_delim
17959 prefix!$prefix$ac_delim
17960 program_transform_name!$program_transform_name$ac_delim
17961 bindir!$bindir$ac_delim
17962 sbindir!$sbindir$ac_delim
17963 libexecdir!$libexecdir$ac_delim
17964 datarootdir!$datarootdir$ac_delim
17965 datadir!$datadir$ac_delim
17966 sysconfdir!$sysconfdir$ac_delim
17967 sharedstatedir!$sharedstatedir$ac_delim
17968 localstatedir!$localstatedir$ac_delim
17969 includedir!$includedir$ac_delim
17970 oldincludedir!$oldincludedir$ac_delim
17971 docdir!$docdir$ac_delim
17972 infodir!$infodir$ac_delim
17973 htmldir!$htmldir$ac_delim
17974 dvidir!$dvidir$ac_delim
17975 pdfdir!$pdfdir$ac_delim
17976 psdir!$psdir$ac_delim
17977 libdir!$libdir$ac_delim
17978 localedir!$localedir$ac_delim
17979 mandir!$mandir$ac_delim
17980 DEFS!$DEFS$ac_delim
17981 ECHO_C!$ECHO_C$ac_delim
17982 ECHO_N!$ECHO_N$ac_delim
17983 ECHO_T!$ECHO_T$ac_delim
17984 LIBS!$LIBS$ac_delim
17985 build_alias!$build_alias$ac_delim
17986 host_alias!$host_alias$ac_delim
17987 target_alias!$target_alias$ac_delim
17988 build!$build$ac_delim
17989 build_cpu!$build_cpu$ac_delim
17990 build_vendor!$build_vendor$ac_delim
17991 build_os!$build_os$ac_delim
17992 host!$host$ac_delim
17993 host_cpu!$host_cpu$ac_delim
17994 host_vendor!$host_vendor$ac_delim
17995 host_os!$host_os$ac_delim
17996 target!$target$ac_delim
17997 target_cpu!$target_cpu$ac_delim
17998 target_vendor!$target_vendor$ac_delim
17999 target_os!$target_os$ac_delim
18000 target_noncanonical!$target_noncanonical$ac_delim
18001 build_libsubdir!$build_libsubdir$ac_delim
18002 build_subdir!$build_subdir$ac_delim
18003 host_subdir!$host_subdir$ac_delim
18004 target_subdir!$target_subdir$ac_delim
18005 GENINSRC!$GENINSRC$ac_delim
18007 CFLAGS!$CFLAGS$ac_delim
18008 LDFLAGS!$LDFLAGS$ac_delim
18009 CPPFLAGS!$CPPFLAGS$ac_delim
18010 ac_ct_CC!$ac_ct_CC$ac_delim
18011 EXEEXT!$EXEEXT$ac_delim
18012 OBJEXT!$OBJEXT$ac_delim
18013 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
18014 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
18016 GREP!$GREP$ac_delim
18017 EGREP!$EGREP$ac_delim
18018 strict1_warn!$strict1_warn$ac_delim
18019 cxx_compat_warn!$cxx_compat_warn$ac_delim
18020 warn_cflags!$warn_cflags$ac_delim
18021 WERROR!$WERROR$ac_delim
18022 nocommon_flag!$nocommon_flag$ac_delim
18023 TREEBROWSER!$TREEBROWSER$ac_delim
18024 valgrind_path!$valgrind_path$ac_delim
18025 valgrind_path_defines!$valgrind_path_defines$ac_delim
18026 valgrind_command!$valgrind_command$ac_delim
18027 coverage_flags!$coverage_flags$ac_delim
18028 enable_multilib!$enable_multilib$ac_delim
18029 enable_decimal_float!$enable_decimal_float$ac_delim
18030 enable_shared!$enable_shared$ac_delim
18031 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
18032 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
18033 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
18034 onestep!$onestep$ac_delim
18035 SET_MAKE!$SET_MAKE$ac_delim
18037 LN_S!$LN_S$ac_delim
18039 RANLIB!$RANLIB$ac_delim
18040 ranlib_flags!$ranlib_flags$ac_delim
18041 INSTALL!$INSTALL$ac_delim
18042 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18043 INSTALL_DATA!$INSTALL_DATA$ac_delim
18044 make_compare_target!$make_compare_target$ac_delim
18047 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
18049 elif $ac_last_try; then
18050 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18051 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18052 { (exit 1); exit 1; }; }
18054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18058 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18059 if test -n "$ac_eof"; then
18060 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18061 ac_eof=`expr $ac_eof + 1`
18064 cat >>$CONFIG_STATUS <<_ACEOF
18065 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18067 /^[ ]*@language_hooks@[ ]*$/{
18073 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18074 s/^/s,@/; s/!/@,|#_!!_#|/
18077 s/'"$ac_delim"'$/,g/; t
18079 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18080 ' >>$CONFIG_STATUS <conf$$subs.sed
18081 rm -f conf$$subs.sed
18082 cat >>$CONFIG_STATUS <<_ACEOF
18088 for ac_last_try in false false false false false :; do
18089 cat >conf$$subs.sed <<_ACEOF
18090 have_mktemp_command!$have_mktemp_command$ac_delim
18091 MAKEINFO!$MAKEINFO$ac_delim
18092 BUILD_INFO!$BUILD_INFO$ac_delim
18093 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
18094 FLEX!$FLEX$ac_delim
18095 BISON!$BISON$ac_delim
18098 stage1_cflags!$stage1_cflags$ac_delim
18099 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
18100 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
18101 LDEXP_LIB!$LDEXP_LIB$ac_delim
18102 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
18103 LIBICONV!$LIBICONV$ac_delim
18104 LTLIBICONV!$LTLIBICONV$ac_delim
18105 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
18106 manext!$manext$ac_delim
18107 objext!$objext$ac_delim
18108 gthread_flags!$gthread_flags$ac_delim
18109 extra_modes_file!$extra_modes_file$ac_delim
18110 extra_opt_files!$extra_opt_files$ac_delim
18111 USE_NLS!$USE_NLS$ac_delim
18112 LIBINTL!$LIBINTL$ac_delim
18113 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
18114 INCINTL!$INCINTL$ac_delim
18115 XGETTEXT!$XGETTEXT$ac_delim
18116 GMSGFMT!$GMSGFMT$ac_delim
18117 POSUB!$POSUB$ac_delim
18118 CATALOGS!$CATALOGS$ac_delim
18119 DATADIRNAME!$DATADIRNAME$ac_delim
18120 INSTOBJEXT!$INSTOBJEXT$ac_delim
18121 GENCAT!$GENCAT$ac_delim
18122 CATOBJEXT!$CATOBJEXT$ac_delim
18123 host_cc_for_libada!$host_cc_for_libada$ac_delim
18124 CROSS!$CROSS$ac_delim
18126 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
18127 inhibit_libc!$inhibit_libc$ac_delim
18128 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
18129 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
18130 STMP_FIXINC!$STMP_FIXINC$ac_delim
18131 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
18132 collect2!$collect2$ac_delim
18133 gcc_cv_as!$gcc_cv_as$ac_delim
18134 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
18135 gcc_cv_ld!$gcc_cv_ld$ac_delim
18136 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
18137 gcc_cv_nm!$gcc_cv_nm$ac_delim
18138 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
18139 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
18140 libgcc_visibility!$libgcc_visibility$ac_delim
18142 zlibdir!$zlibdir$ac_delim
18143 zlibinc!$zlibinc$ac_delim
18144 MAINT!$MAINT$ac_delim
18145 gcc_tooldir!$gcc_tooldir$ac_delim
18146 dollar!$dollar$ac_delim
18147 slibdir!$slibdir$ac_delim
18148 objdir!$objdir$ac_delim
18149 subdirs!$subdirs$ac_delim
18150 srcdir!$srcdir$ac_delim
18151 all_boot_languages!$all_boot_languages$ac_delim
18152 all_compilers!$all_compilers$ac_delim
18153 all_gtfiles!$all_gtfiles$ac_delim
18154 all_gtfiles_files_langs!$all_gtfiles_files_langs$ac_delim
18155 all_gtfiles_files_files!$all_gtfiles_files_files$ac_delim
18156 all_lang_makefrags!$all_lang_makefrags$ac_delim
18157 all_lang_makefiles!$all_lang_makefiles$ac_delim
18158 all_languages!$all_languages$ac_delim
18159 all_selected_languages!$all_selected_languages$ac_delim
18160 all_stagestuff!$all_stagestuff$ac_delim
18161 build_exeext!$build_exeext$ac_delim
18162 build_install_headers_dir!$build_install_headers_dir$ac_delim
18163 build_xm_file_list!$build_xm_file_list$ac_delim
18164 build_xm_include_list!$build_xm_include_list$ac_delim
18165 build_xm_defines!$build_xm_defines$ac_delim
18166 check_languages!$check_languages$ac_delim
18167 cc_set_by_configure!$cc_set_by_configure$ac_delim
18168 quoted_cc_set_by_configure!$quoted_cc_set_by_configure$ac_delim
18169 cpp_install_dir!$cpp_install_dir$ac_delim
18170 xmake_file!$xmake_file$ac_delim
18171 tmake_file!$tmake_file$ac_delim
18172 extra_gcc_objs!$extra_gcc_objs$ac_delim
18173 extra_headers_list!$extra_headers_list$ac_delim
18174 extra_objs!$extra_objs$ac_delim
18175 extra_parts!$extra_parts$ac_delim
18176 extra_passes!$extra_passes$ac_delim
18177 extra_programs!$extra_programs$ac_delim
18178 float_h_file!$float_h_file$ac_delim
18179 gcc_config_arguments!$gcc_config_arguments$ac_delim
18180 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
18181 host_exeext!$host_exeext$ac_delim
18182 host_xm_file_list!$host_xm_file_list$ac_delim
18183 host_xm_include_list!$host_xm_include_list$ac_delim
18184 host_xm_defines!$host_xm_defines$ac_delim
18185 out_host_hook_obj!$out_host_hook_obj$ac_delim
18186 install!$install$ac_delim
18189 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18191 elif $ac_last_try; then
18192 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18194 { (exit 1); exit 1; }; }
18196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18201 if test -n "$ac_eof"; then
18202 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18203 ac_eof=`expr $ac_eof + 1`
18206 cat >>$CONFIG_STATUS <<_ACEOF
18207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18212 s/^/s,@/; s/!/@,|#_!!_#|/
18215 s/'"$ac_delim"'$/,g/; t
18217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18218 ' >>$CONFIG_STATUS <conf$$subs.sed
18219 rm -f conf$$subs.sed
18220 cat >>$CONFIG_STATUS <<_ACEOF
18226 for ac_last_try in false false false false false :; do
18227 cat >conf$$subs.sed <<_ACEOF
18228 lang_opt_files!$lang_opt_files$ac_delim
18229 lang_specs_files!$lang_specs_files$ac_delim
18230 lang_tree_files!$lang_tree_files$ac_delim
18231 local_prefix!$local_prefix$ac_delim
18232 md_file!$md_file$ac_delim
18233 objc_boehm_gc!$objc_boehm_gc$ac_delim
18234 out_file!$out_file$ac_delim
18235 out_object_file!$out_object_file$ac_delim
18236 stage_prefix_set_by_configure!$stage_prefix_set_by_configure$ac_delim
18237 quoted_stage_prefix_set_by_configure!$quoted_stage_prefix_set_by_configure$ac_delim
18238 thread_file!$thread_file$ac_delim
18239 tm_file_list!$tm_file_list$ac_delim
18240 tm_include_list!$tm_include_list$ac_delim
18241 tm_defines!$tm_defines$ac_delim
18242 tm_p_file_list!$tm_p_file_list$ac_delim
18243 tm_p_include_list!$tm_p_include_list$ac_delim
18244 xm_file_list!$xm_file_list$ac_delim
18245 xm_include_list!$xm_include_list$ac_delim
18246 xm_defines!$xm_defines$ac_delim
18247 c_target_objs!$c_target_objs$ac_delim
18248 cxx_target_objs!$cxx_target_objs$ac_delim
18249 target_cpu_default!$target_cpu_default$ac_delim
18250 GMPLIBS!$GMPLIBS$ac_delim
18251 GMPINC!$GMPINC$ac_delim
18252 LIBOBJS!$LIBOBJS$ac_delim
18253 LTLIBOBJS!$LTLIBOBJS$ac_delim
18256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
18258 elif $ac_last_try; then
18259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18261 { (exit 1); exit 1; }; }
18263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18267 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18268 if test -n "$ac_eof"; then
18269 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18270 ac_eof=`expr $ac_eof + 1`
18273 cat >>$CONFIG_STATUS <<_ACEOF
18274 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18279 s/^/s,@/; s/!/@,|#_!!_#|/
18282 s/'"$ac_delim"'$/,g/; t
18284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18285 ' >>$CONFIG_STATUS <conf$$subs.sed
18286 rm -f conf$$subs.sed
18287 cat >>$CONFIG_STATUS <<_ACEOF
18294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18296 # trailing colons and then remove the whole line if VPATH becomes empty
18297 # (actually we leave an empty line to preserve line numbers).
18298 if test "x$srcdir" = x.; then
18299 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18300 s/:*\$(srcdir):*/:/
18301 s/:*\${srcdir}:*/:/
18303 s/^\([^=]*=[ ]*\):*/\1/
18309 cat >>$CONFIG_STATUS <<\_ACEOF
18310 fi # test -n "$CONFIG_FILES"
18313 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18316 :[FHLC]) ac_mode=$ac_tag; continue;;
18318 case $ac_mode$ac_tag in
18320 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18321 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18322 { (exit 1); exit 1; }; };;
18323 :[FH]-) ac_tag=-:-;;
18324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18341 -) ac_f="$tmp/stdin";;
18342 *) # Look for the file first in the build tree, then in the source tree
18343 # (if the path is not absolute). The absolute path cannot be DOS-style,
18344 # because $ac_f cannot contain `:'.
18348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18350 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18351 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18352 { (exit 1); exit 1; }; };;
18354 ac_file_inputs="$ac_file_inputs $ac_f"
18357 # Let's still pretend it is `configure' which instantiates (i.e., don't
18358 # use $as_me), people would be surprised to read:
18359 # /* config.h. Generated by config.status. */
18360 configure_input="Generated from "`IFS=:
18361 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18362 if test x"$ac_file" != x-; then
18363 configure_input="$ac_file. $configure_input"
18364 { echo "$as_me:$LINENO: creating $ac_file" >&5
18365 echo "$as_me: creating $ac_file" >&6;}
18369 *:-:* | *:-) cat >"$tmp/stdin";;
18374 ac_dir=`$as_dirname -- "$ac_file" ||
18375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18376 X"$ac_file" : 'X\(//\)[^/]' \| \
18377 X"$ac_file" : 'X\(//\)$' \| \
18378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18384 /^X\(\/\/\)[^/].*/{
18399 -*) as_dir=./$as_dir;;
18401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18405 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18406 *) as_qdir=$as_dir;;
18408 as_dirs="'$as_qdir' $as_dirs"
18409 as_dir=`$as_dirname -- "$as_dir" ||
18410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18411 X"$as_dir" : 'X\(//\)[^/]' \| \
18412 X"$as_dir" : 'X\(//\)$' \| \
18413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18419 /^X\(\/\/\)[^/].*/{
18432 test -d "$as_dir" && break
18434 test -z "$as_dirs" || eval "mkdir $as_dirs"
18435 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18436 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18437 { (exit 1); exit 1; }; }; }
18441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18444 # A ".." for each directory in $ac_dir_suffix.
18445 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18446 case $ac_top_builddir_sub in
18447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18451 ac_abs_top_builddir=$ac_pwd
18452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18453 # for backward compatibility:
18454 ac_top_builddir=$ac_top_build_prefix
18457 .) # We are building in place.
18459 ac_top_srcdir=$ac_top_builddir_sub
18460 ac_abs_top_srcdir=$ac_pwd ;;
18461 [\\/]* | ?:[\\/]* ) # Absolute name.
18462 ac_srcdir=$srcdir$ac_dir_suffix;
18463 ac_top_srcdir=$srcdir
18464 ac_abs_top_srcdir=$srcdir ;;
18465 *) # Relative name.
18466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18467 ac_top_srcdir=$ac_top_build_prefix$srcdir
18468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18481 cat >>$CONFIG_STATUS <<\_ACEOF
18482 # If the template does not know about datarootdir, expand it.
18483 # FIXME: This hack should be removed a few years after 2.60.
18484 ac_datarootdir_hack=; ac_datarootdir_seen=
18486 case `sed -n '/datarootdir/ {
18495 ' $ac_file_inputs` in
18496 *datarootdir*) ac_datarootdir_seen=yes;;
18497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18498 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18499 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18501 cat >>$CONFIG_STATUS <<_ACEOF
18502 ac_datarootdir_hack='
18503 s&@datadir@&$datadir&g
18504 s&@docdir@&$docdir&g
18505 s&@infodir@&$infodir&g
18506 s&@localedir@&$localedir&g
18507 s&@mandir@&$mandir&g
18508 s&\\\${datarootdir}&$datarootdir&g' ;;
18512 # Neutralize VPATH when `$srcdir' = `.'.
18513 # Shell code in configure.ac might set extrasub.
18514 # FIXME: do we really want to maintain this feature?
18515 cat >>$CONFIG_STATUS <<_ACEOF
18519 cat >>$CONFIG_STATUS <<\_ACEOF
18521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18522 s&@configure_input@&$configure_input&;t t
18523 s&@top_builddir@&$ac_top_builddir_sub&;t t
18524 s&@srcdir@&$ac_srcdir&;t t
18525 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18526 s&@top_srcdir@&$ac_top_srcdir&;t t
18527 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18528 s&@builddir@&$ac_builddir&;t t
18529 s&@abs_builddir@&$ac_abs_builddir&;t t
18530 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18531 $ac_datarootdir_hack
18532 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
18534 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18535 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18537 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18538 which seems to be undefined. Please make sure it is defined." >&5
18539 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18540 which seems to be undefined. Please make sure it is defined." >&2;}
18544 -) cat "$tmp/out"; rm -f "$tmp/out";;
18545 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18554 # Transform confdefs.h into a sed script `conftest.defines', that
18555 # substitutes the proper values into config.h.in to produce config.h.
18556 rm -f conftest.defines conftest.tail
18557 # First, append a space to every undef/define line, to ease matching.
18558 echo 's/$/ /' >conftest.defines
18559 # Then, protect against being on the right side of a sed subst, or in
18560 # an unquoted here document, in config.status. If some macros were
18561 # called several times there might be several #defines for the same
18562 # symbol, which is useless. But do not sort them, since the last
18563 # AC_DEFINE must be honored.
18564 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18565 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18566 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18567 # PARAMS is the parameter list in the macro definition--in most cases, it's
18568 # just an empty string.
18569 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
18570 ac_dB='\\)[ (].*,\\1define\\2'
18578 s/^[ ]*#[ ]*define[ ][ ]*//
18583 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18584 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18585 ' >>conftest.defines
18587 # Remove the space that was appended to ease matching.
18588 # Then replace #undef with comments. This is necessary, for
18589 # example, in the case of _POSIX_SOURCE, which is predefined and required
18590 # on some systems where configure will not decide to define it.
18591 # (The regexp can be short, since the line contains either #define or #undef.)
18593 s,^[ #]*u.*,/* & */,' >>conftest.defines
18595 # Break up conftest.defines:
18596 ac_max_sed_lines=50
18598 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18599 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18600 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18602 ac_in='$ac_file_inputs'
18603 ac_out='"$tmp/out1"'
18604 ac_nxt='"$tmp/out2"'
18608 # Write a here document:
18609 cat >>$CONFIG_STATUS <<_ACEOF
18610 # First, check the format of the line:
18611 cat >"\$tmp/defines.sed" <<\\CEOF
18612 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
18613 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
18617 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18619 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18620 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18621 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18622 grep . conftest.tail >/dev/null || break
18623 rm -f conftest.defines
18624 mv conftest.tail conftest.defines
18626 rm -f conftest.defines conftest.tail
18628 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18629 cat >>$CONFIG_STATUS <<\_ACEOF
18630 if test x"$ac_file" != x-; then
18631 echo "/* $configure_input */" >"$tmp/config.h"
18632 cat "$ac_result" >>"$tmp/config.h"
18633 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18634 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18635 echo "$as_me: $ac_file is unchanged" >&6;}
18638 mv "$tmp/config.h" $ac_file
18641 echo "/* $configure_input */"
18647 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18648 echo "$as_me: executing $ac_file commands" >&6;}
18653 case $ac_file$ac_mode in
18655 case ${CONFIG_HEADERS} in
18656 *auto-host.h:config.in*)
18659 # Make sure all the subdirs exist.
18660 for d in $subdirs doc build
18662 test -d $d || mkdir $d
18664 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
18665 # bootstrapping and the installation procedure can still use
18666 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
18667 # FLAGS_TO_PASS has been modified to solve the problem there.
18668 # This is virtually a duplicate of what happens in configure.lang; we do
18669 # an extra check to make sure this only happens if ln -s can be used.
18672 for d in ${subdirs} ; do
18673 STARTDIR=`${PWDCMD-pwd}`
18675 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
18678 $LN_S ../$t $t 2>/dev/null
18690 { (exit 0); exit 0; }
18692 chmod +x $CONFIG_STATUS
18693 ac_clean_files=$ac_clean_files_save
18696 # configure is writing to config.log, and then calls config.status.
18697 # config.status does its own redirection, appending to config.log.
18698 # Unfortunately, on DOS this fails, as config.log is still kept open
18699 # by configure, so config.status won't be able to write to it; its
18700 # output is simply discarded. So we exec the FD to /dev/null,
18701 # effectively closing config.log, so it can be properly (re)opened and
18702 # appended to by config.status. When coming back to configure, we
18703 # need to make the FD available again.
18704 if test "$no_create" != yes; then
18706 ac_config_status_args=
18707 test "$silent" = yes &&
18708 ac_config_status_args="$ac_config_status_args --quiet"
18710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18713 # would make configure fail if this is the last instruction.
18714 $ac_cs_success || { (exit 1); exit 1; }