2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for GRUB 1.95.
5 @%:@ Report bugs to <bug-grub@gnu.org>.
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='grub'
577 PACKAGE_VERSION='1.95'
578 PACKAGE_STRING='GRUB 1.95'
579 PACKAGE_BUGREPORT='bug-grub@gnu.org'
581 ac_unique_file="include/grub/dl.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
701 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
819 eval enable_$ac_feature=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 -enable-* | --enable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1035 eval with_$ac_package=\$ac_optarg ;;
1037 -without-* | --without-*)
1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044 eval with_$ac_package=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074 { (exit 1); exit 1; }; }
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 { echo "$as_me: error: missing argument to $ac_option" >&2
1092 { (exit 1); exit 1; }; }
1095 # Be sure to have absolute directory names.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1101 eval ac_val=\$$ac_var
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1115 target=$target_alias
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used." >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 { echo "$as_me: error: Working directory cannot be determined" >&2
1138 { (exit 1); exit 1; }; }
1139 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 { echo "$as_me: error: pwd does not report name of working directory" >&2
1141 { (exit 1); exit 1; }; }
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1149 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted=no
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1181 { (exit 1); exit 1; }; }
1183 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1186 { (exit 1); exit 1; }; }
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206 # Report the --help message.
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1212 \`configure' configures GRUB 1.95 to adapt to many kinds of systems.
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1219 Defaults for the options are specified in brackets.
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1243 For better control, use the options below.
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/grub@:>@
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1270 --program-prefix=PREFIX prepend PREFIX to installed program names
1271 --program-suffix=SUFFIX append SUFFIX to installed program names
1272 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1275 --build=BUILD configure for building on BUILD [guessed]
1276 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1277 --target=TARGET configure for building compilers for TARGET [HOST]
1281 if test -n "$ac_init_help"; then
1282 case $ac_init_help in
1283 short | recursive ) echo "Configuration of GRUB 1.95:";;
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-largefile omit support for large files
1291 --enable-mm-debug include memory manager debugging
1292 --enable-grub-emu build and install the `grub-emu' debugging utility
1295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1297 --with-platform=PLATFORM
1298 select the host platform [guessed]
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to <bug-grub@gnu.org>.
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" || continue
1325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335 ac_abs_top_builddir=$ac_pwd
1336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337 # for backward compatibility:
1338 ac_top_builddir=$ac_top_build_prefix
1341 .) # We are building in place.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1363 $SHELL "$ac_srcdir/configure" --help=recursive
1365 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367 cd "$ac_pwd" || { ac_status=$?; break; }
1371 test -n "$ac_init_help" && exit $ac_status
1372 if $ac_init_version; then
1375 generated by GNU Autoconf 2.61
1377 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1378 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1379 This configure script is free software; the Free Software Foundation
1380 gives unlimited permission to copy, distribute and modify it.
1384 cat >config.log <<_ACEOF
1385 This file contains any messages produced by compilers while
1386 running configure, to aid debugging if configure makes a mistake.
1388 It was created by GRUB $as_me 1.95, which was
1389 generated by GNU Autoconf 2.61. Invocation command line was
1397 @%:@@%:@ --------- @%:@@%:@
1398 @%:@@%:@ Platform. @%:@@%:@
1399 @%:@@%:@ --------- @%:@@%:@
1401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1408 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1410 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1411 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1413 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1414 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1415 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1416 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 test -z "$as_dir" && as_dir=.
1425 echo "PATH: $as_dir"
1434 @%:@@%:@ ----------- @%:@@%:@
1435 @%:@@%:@ Core tests. @%:@@%:@
1436 @%:@@%:@ ----------- @%:@@%:@
1441 # Keep a trace of the command line.
1442 # Strip out --no-create and --no-recursion so they do not pile up.
1443 # Strip out --silent because we don't want to record it for future runs.
1444 # Also quote any args containing shell meta-characters.
1445 # Make two passes to allow for proper duplicate-argument suppression.
1449 ac_must_keep_next=false
1455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1460 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1463 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1465 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1466 if test $ac_must_keep_next = true; then
1467 ac_must_keep_next=false # Got value, back to normal.
1470 *=* | --config-cache | -C | -disable-* | --disable-* \
1471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1473 | -with-* | --with-* | -without-* | --without-* | --x)
1474 case "$ac_configure_args0 " in
1475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1478 -* ) ac_must_keep_next=true ;;
1481 ac_configure_args="$ac_configure_args '$ac_arg'"
1486 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1487 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1489 # When interrupted or exit'd, cleanup temporary files, and complete
1490 # config.log. We remove comments because anyway the quotes in there
1491 # would cause problems or look ugly.
1492 # WARNING: Use '\'' to represent an apostrophe within the trap.
1493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1494 trap 'exit_status=$?
1495 # Save into config.log some information that might help in debugging.
1500 @%:@@%:@ ---------------- @%:@@%:@
1501 @%:@@%:@ Cache variables. @%:@@%:@
1502 @%:@@%:@ ---------------- @%:@@%:@
1505 # The following way of writing the cache mishandles newlines in values,
1507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1508 eval ac_val=\$$ac_var
1512 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1513 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1516 _ | IFS | as_nl) ;; #(
1517 *) $as_unset $ac_var ;;
1522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1523 *${as_nl}ac_space=\ *)
1525 "s/'\''/'\''\\\\'\'''\''/g;
1526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1537 @%:@@%:@ ----------------- @%:@@%:@
1538 @%:@@%:@ Output variables. @%:@@%:@
1539 @%:@@%:@ ----------------- @%:@@%:@
1542 for ac_var in $ac_subst_vars
1544 eval ac_val=\$$ac_var
1546 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1548 echo "$ac_var='\''$ac_val'\''"
1552 if test -n "$ac_subst_files"; then
1554 @%:@@%:@ ------------------- @%:@@%:@
1555 @%:@@%:@ File substitutions. @%:@@%:@
1556 @%:@@%:@ ------------------- @%:@@%:@
1559 for ac_var in $ac_subst_files
1561 eval ac_val=\$$ac_var
1563 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 echo "$ac_var='\''$ac_val'\''"
1570 if test -s confdefs.h; then
1572 @%:@@%:@ ----------- @%:@@%:@
1573 @%:@@%:@ confdefs.h. @%:@@%:@
1574 @%:@@%:@ ----------- @%:@@%:@
1580 test "$ac_signal" != 0 &&
1581 echo "$as_me: caught signal $ac_signal"
1582 echo "$as_me: exit $exit_status"
1584 rm -f core *.core core.conftest.* &&
1585 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1588 for ac_signal in 1 2 13 15; do
1589 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1594 rm -f -r conftest* confdefs.h
1596 # Predefined preprocessor variables.
1598 cat >>confdefs.h <<_ACEOF
1599 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1603 cat >>confdefs.h <<_ACEOF
1604 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1608 cat >>confdefs.h <<_ACEOF
1609 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1613 cat >>confdefs.h <<_ACEOF
1614 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1618 cat >>confdefs.h <<_ACEOF
1619 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1623 # Let the site file select an alternate cache file if it wants to.
1624 # Prefer explicitly selected file to automatically selected ones.
1625 if test -n "$CONFIG_SITE"; then
1626 set x "$CONFIG_SITE"
1627 elif test "x$prefix" != xNONE; then
1628 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1630 set x "$ac_default_prefix/share/config.site" \
1631 "$ac_default_prefix/etc/config.site"
1636 if test -r "$ac_site_file"; then
1637 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1638 echo "$as_me: loading site script $ac_site_file" >&6;}
1639 sed 's/^/| /' "$ac_site_file" >&5
1644 if test -r "$cache_file"; then
1645 # Some versions of bash will fail to source /dev/null (special
1646 # files actually), so we avoid doing that.
1647 if test -f "$cache_file"; then
1648 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1649 echo "$as_me: loading cache $cache_file" >&6;}
1651 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1652 *) . "./$cache_file";;
1656 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1657 echo "$as_me: creating cache $cache_file" >&6;}
1661 # Check that the precious variables saved in the cache have kept the same
1663 ac_cache_corrupted=false
1664 for ac_var in $ac_precious_vars; do
1665 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1666 eval ac_new_set=\$ac_env_${ac_var}_set
1667 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1668 eval ac_new_val=\$ac_env_${ac_var}_value
1669 case $ac_old_set,$ac_new_set in
1671 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1672 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1673 ac_cache_corrupted=: ;;
1675 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1676 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1677 ac_cache_corrupted=: ;;
1680 if test "x$ac_old_val" != "x$ac_new_val"; then
1681 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1682 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1683 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1684 echo "$as_me: former value: $ac_old_val" >&2;}
1685 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1686 echo "$as_me: current value: $ac_new_val" >&2;}
1687 ac_cache_corrupted=:
1690 # Pass precious variables to config.status.
1691 if test "$ac_new_set" = set; then
1693 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 *) ac_arg=$ac_var=$ac_new_val ;;
1696 case " $ac_configure_args " in
1697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1698 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1702 if $ac_cache_corrupted; then
1703 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1704 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1705 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1706 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1707 { (exit 1); exit 1; }; }
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743 ac_config_headers="$ac_config_headers config.h"
1746 # Checks for host and target systems.
1748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1749 if test -f "$ac_dir/install-sh"; then
1751 ac_install_sh="$ac_aux_dir/install-sh -c"
1753 elif test -f "$ac_dir/install.sh"; then
1755 ac_install_sh="$ac_aux_dir/install.sh -c"
1757 elif test -f "$ac_dir/shtool"; then
1759 ac_install_sh="$ac_aux_dir/shtool install -c"
1763 if test -z "$ac_aux_dir"; then
1764 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1765 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1766 { (exit 1); exit 1; }; }
1769 # These three variables are undocumented and unsupported,
1770 # and are intended to be withdrawn in a future Autoconf release.
1771 # They can cause serious problems if a builder's source tree is in a directory
1772 # whose full name contains unusual characters.
1773 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1774 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1775 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1778 # Make sure we can run config.sub.
1779 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1780 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1781 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1782 { (exit 1); exit 1; }; }
1784 { echo "$as_me:$LINENO: checking build system type" >&5
1785 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1786 if test "${ac_cv_build+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 ac_build_alias=$build_alias
1790 test "x$ac_build_alias" = x &&
1791 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1792 test "x$ac_build_alias" = x &&
1793 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1794 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1795 { (exit 1); exit 1; }; }
1796 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1797 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1798 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1799 { (exit 1); exit 1; }; }
1802 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1803 echo "${ECHO_T}$ac_cv_build" >&6; }
1804 case $ac_cv_build in
1806 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1807 echo "$as_me: error: invalid value of canonical build" >&2;}
1808 { (exit 1); exit 1; }; };;
1811 ac_save_IFS=$IFS; IFS='-'
1817 # Remember, the first character of IFS is used to create $*,
1818 # except with old shells:
1821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1824 { echo "$as_me:$LINENO: checking host system type" >&5
1825 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1826 if test "${ac_cv_host+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 if test "x$host_alias" = x; then
1830 ac_cv_host=$ac_cv_build
1832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1833 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1834 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1835 { (exit 1); exit 1; }; }
1839 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1840 echo "${ECHO_T}$ac_cv_host" >&6; }
1843 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1844 echo "$as_me: error: invalid value of canonical host" >&2;}
1845 { (exit 1); exit 1; }; };;
1848 ac_save_IFS=$IFS; IFS='-'
1854 # Remember, the first character of IFS is used to create $*,
1855 # except with old shells:
1858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1861 { echo "$as_me:$LINENO: checking target system type" >&5
1862 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1863 if test "${ac_cv_target+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test "x$target_alias" = x; then
1867 ac_cv_target=$ac_cv_host
1869 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1870 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1871 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1872 { (exit 1); exit 1; }; }
1876 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1877 echo "${ECHO_T}$ac_cv_target" >&6; }
1878 case $ac_cv_target in
1880 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1881 echo "$as_me: error: invalid value of canonical target" >&2;}
1882 { (exit 1); exit 1; }; };;
1884 target=$ac_cv_target
1885 ac_save_IFS=$IFS; IFS='-'
1891 # Remember, the first character of IFS is used to create $*,
1892 # except with old shells:
1895 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1898 # The aliases save the names the user supplied, while $host etc.
1899 # will get canonicalized.
1900 test -n "$target_alias" &&
1901 test "$program_prefix$program_suffix$program_transform_name" = \
1903 program_prefix=${target_alias}-
1905 # Program name transformations
1906 test "$program_prefix" != NONE &&
1907 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1908 # Use a double $ so make ignores it.
1909 test "$program_suffix" != NONE &&
1910 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1911 # Double any \ or $. echo might interpret backslashes.
1912 # By default was `s,x,x', remove it if useless.
1913 cat <<\_ACEOF >conftest.sed
1914 s/[\\$]/&&/g;s/;s,x,x,$//
1916 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1921 powerpc64) host_m32=1 ;;
1924 case "$target_cpu" in
1925 i[3456]86) target_cpu=i386 ;;
1926 x86_64) target_cpu=i386 target_m32=1 ;;
1928 powerpc64) target_cpu=powerpc target_m32=1;;
1930 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1931 echo "$as_me: error: unsupported CPU type" >&2;}
1932 { (exit 1); exit 1; }; } ;;
1935 # Specify the platform (such as firmware).
1937 # Check whether --with-platform was given.
1938 if test "${with_platform+set}" = set; then
1939 withval=$with_platform;
1943 # Guess the platform if not specified.
1944 if test "x$with_platform" = x; then
1945 case "$target_cpu"-"$target_vendor" in
1946 i386-apple) platform=efi ;;
1947 i386-*) platform=pc ;;
1948 powerpc-*) platform=ieee1275 ;;
1949 sparc64-*) platform=ieee1275 ;;
1950 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1951 echo "$as_me: error: unsupported machine type" >&2;}
1952 { (exit 1); exit 1; }; } ;;
1955 platform="$with_platform"
1959 case "$target_cpu"-"$platform" in
1963 powerpc-ieee1275) ;;
1964 sparc64-ieee1275) ;;
1965 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1966 echo "$as_me: error: unsupported machine type" >&2;}
1967 { (exit 1); exit 1; }; } ;;
1974 # Checks for build programs.
1977 # Although cmp is listed in the GNU Coding Standards as a command which
1978 # can used directly, OpenBSD lacks cmp in the default installation.
1981 # Extract the first word of "$ac_prog", so it can be a program name with args.
1982 set dummy $ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_CMP+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$CMP"; then
1989 ac_cv_prog_CMP="$CMP" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CMP="$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CMP"; then
2010 { echo "$as_me:$LINENO: result: $CMP" >&5
2011 echo "${ECHO_T}$CMP" >&6; }
2013 { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2018 test -n "$CMP" && break
2021 if test "x$CMP" = x; then
2022 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2023 echo "$as_me: error: cmp is not found" >&2;}
2024 { (exit 1); exit 1; }; }
2027 for ac_prog in bison
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_YACC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$YACC"; then
2037 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_YACC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 YACC=$ac_cv_prog_YACC
2057 if test -n "$YACC"; then
2058 { echo "$as_me:$LINENO: result: $YACC" >&5
2059 echo "${ECHO_T}$YACC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2066 test -n "$YACC" && break
2069 if test "x$YACC" = x; then
2070 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2071 echo "$as_me: error: bison is not found" >&2;}
2072 { (exit 1); exit 1; }; }
2075 for file in /usr/share/unifont/unifont.hex ; do
2076 if test -e $file ; then
2083 # Find a good install program. We prefer a C program (faster),
2084 # so one script is as good as another. But avoid the broken or
2085 # incompatible versions:
2086 # SysV /etc/install, /usr/sbin/install
2087 # SunOS /usr/etc/install
2088 # IRIX /sbin/install
2090 # AmigaOS /C/install, which installs bootblocks on floppy discs
2091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2094 # OS/2's system install, which has a completely different semantic
2095 # ./install, which can be erroneously created by make from ./install.sh.
2096 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2098 if test -z "$INSTALL"; then
2099 if test "${ac_cv_path_install+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 # Account for people who put trailing slashes in PATH elements.
2109 ./ | .// | /cC/* | \
2110 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2114 # OSF1 and SCO ODT 3.0 have their own names for install.
2115 # Don't use installbsd from OSF since it installs stuff as root
2117 for ac_prog in ginstall scoinst install; do
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2120 if test $ac_prog = install &&
2121 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122 # AIX install. It has an incompatible calling convention.
2124 elif test $ac_prog = install &&
2125 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2126 # program-specific install script used by HP pwplus--don't use.
2129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2142 if test "${ac_cv_path_install+set}" = set; then
2143 INSTALL=$ac_cv_path_install
2145 # As a last resort, use the slow shell script. Don't cache a
2146 # value for INSTALL within a source directory, because that will
2147 # break other packages using the cache if that directory is
2148 # removed, or if the value is a relative name.
2149 INSTALL=$ac_install_sh
2152 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2153 echo "${ECHO_T}$INSTALL" >&6; }
2155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2156 # It thinks the first close brace ends the variable substitution.
2157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2163 for ac_prog in gawk mawk nawk awk
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2202 test -n "$AWK" && break
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.make <<\_ACEOF
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2236 # This is not a "must".
2237 # Extract the first word of "ruby", so it can be a program name with args.
2238 set dummy ruby; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_path_RUBY+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 RUBY=$ac_cv_path_RUBY
2268 if test -n "$RUBY"; then
2269 { echo "$as_me:$LINENO: result: $RUBY" >&5
2270 echo "${ECHO_T}$RUBY" >&6; }
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2279 # Checks for host programs.
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 if test -n "$CC"; then
2317 { echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6; }
2320 { echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6; }
2326 if test -z "$ac_cv_prog_CC"; then
2328 # Extract the first word of "gcc", so it can be a program name with args.
2329 set dummy gcc; ac_word=$2
2330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test -n "$ac_ct_CC"; then
2336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_ac_ct_CC="gcc"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356 if test -n "$ac_ct_CC"; then
2357 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2358 echo "${ECHO_T}$ac_ct_CC" >&6; }
2360 { echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6; }
2364 if test "x$ac_ct_CC" = x; then
2367 case $cross_compiling:$ac_tool_warned in
2369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet. If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&5
2372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2373 whose name does not start with the host triplet. If you think this
2374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2375 ac_tool_warned=yes ;;
2383 if test -z "$CC"; then
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2386 set dummy ${ac_tool_prefix}cc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="${ac_tool_prefix}cc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2424 if test -z "$CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2444 ac_prog_rejected=yes
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test $ac_prog_rejected = yes; then
2456 # We found a bogon in the path, so make sure we never use it.
2457 set dummy $ac_cv_prog_CC
2459 if test $@%:@ != 0; then
2460 # We chose a different compiler from the bogus one.
2461 # However, it has the same basename, so the bogon will be chosen
2462 # first if we set CC to just the basename; use the full file name.
2464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2480 if test -z "$CC"; then
2481 if test -n "$ac_tool_prefix"; then
2482 for ac_prog in cl.exe
2484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 if test -n "$CC"; then
2513 { echo "$as_me:$LINENO: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2521 test -n "$CC" && break
2524 if test -z "$CC"; then
2526 for ac_prog in cl.exe
2528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2529 set dummy $ac_prog; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC="$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2558 echo "${ECHO_T}$ac_ct_CC" >&6; }
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2565 test -n "$ac_ct_CC" && break
2568 if test "x$ac_ct_CC" = x; then
2571 case $cross_compiling:$ac_tool_warned in
2573 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2574 whose name does not start with the host triplet. If you think this
2575 configuration is useful to you, please write to autoconf@gnu.org." >&5
2576 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2577 whose name does not start with the host triplet. If you think this
2578 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2579 ac_tool_warned=yes ;;
2588 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&5
2590 echo "$as_me: error: no acceptable C compiler found in \$PATH
2591 See \`config.log' for more details." >&2;}
2592 { (exit 1); exit 1; }; }
2594 # Provide some information about the compiler.
2595 echo "$as_me:$LINENO: checking for C compiler version" >&5
2596 ac_compiler=`set X $ac_compile; echo $2`
2597 { (ac_try="$ac_compiler --version >&5"
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compiler --version >&5") 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (ac_try="$ac_compiler -v >&5"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compiler -v >&5") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (ac_try="$ac_compiler -V >&5"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compiler -V >&5") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 ac_clean_files_save=$ac_clean_files
2644 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2648 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2650 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2652 # List of possible output files, starting from the most likely.
2653 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2654 # only as a last resort. b.out is created by i960 compilers.
2655 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2657 # The IRIX 6 linker writes into existing files which may not be
2658 # executable, retaining their permissions. Remove them first so a
2659 # subsequent execution test works.
2661 for ac_file in $ac_files
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2670 if { (ac_try="$ac_link_default"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_link_default") 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2681 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2682 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2683 # so that the user can short-circuit this test for compilers unknown to
2685 for ac_file in $ac_files ''
2687 test -f "$ac_file" || continue
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2692 # We found the default executable, but exeext='' is most
2696 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2698 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700 # We set ac_cv_exeext here because the later test for it is not
2701 # safe: cross compilers may not add the suffix if given an `-o'
2702 # argument, so we may need to know it at that point already.
2703 # Even if this section looks crufty: it has the advantage of
2710 test "$ac_cv_exeext" = no && ac_cv_exeext=
2716 { echo "$as_me:$LINENO: result: $ac_file" >&5
2717 echo "${ECHO_T}$ac_file" >&6; }
2718 if test -z "$ac_file"; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2723 See \`config.log' for more details." >&5
2724 echo "$as_me: error: C compiler cannot create executables
2725 See \`config.log' for more details." >&2;}
2726 { (exit 77); exit 77; }; }
2729 ac_exeext=$ac_cv_exeext
2731 # Check that the compiler produces executables we can run. If not, either
2732 # the compiler is broken, or we cross compile.
2733 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2734 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2735 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2736 # If not cross compiling, check that we can run a simple program.
2737 if test "$cross_compiling" != yes; then
2738 if { ac_try='./$ac_file'
2739 { (case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_try") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; }; then
2750 if test "$cross_compiling" = maybe; then
2753 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2754 If you meant to cross compile, use \`--host'.
2755 See \`config.log' for more details." >&5
2756 echo "$as_me: error: cannot run C compiled programs.
2757 If you meant to cross compile, use \`--host'.
2758 See \`config.log' for more details." >&2;}
2759 { (exit 1); exit 1; }; }
2763 { echo "$as_me:$LINENO: result: yes" >&5
2764 echo "${ECHO_T}yes" >&6; }
2766 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2767 ac_clean_files=$ac_clean_files_save
2768 # Check that the compiler produces executables we can run. If not, either
2769 # the compiler is broken, or we cross compile.
2770 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2771 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2772 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2773 echo "${ECHO_T}$cross_compiling" >&6; }
2775 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2776 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2777 if { (ac_try="$ac_link"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_link") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2788 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2789 # work properly (i.e., refer to `conftest.exe'), while it won't with
2791 for ac_file in conftest.exe conftest conftest.*; do
2792 test -f "$ac_file" || continue
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2802 See \`config.log' for more details." >&5
2803 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2804 See \`config.log' for more details." >&2;}
2805 { (exit 1); exit 1; }; }
2808 rm -f conftest$ac_cv_exeext
2809 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2810 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2812 rm -f conftest.$ac_ext
2813 EXEEXT=$ac_cv_exeext
2815 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2816 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2817 if test "${ac_cv_objext+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 rm -f conftest.o conftest.obj
2836 if { (ac_try="$ac_compile"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; then
2846 for ac_file in conftest.o conftest.obj conftest.*; do
2847 test -f "$ac_file" || continue;
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2850 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2867 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2868 echo "${ECHO_T}$ac_cv_objext" >&6; }
2869 OBJEXT=$ac_cv_objext
2871 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2923 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2925 GCC=`test $ac_compiler_gnu = yes && echo yes`
2926 ac_test_CFLAGS=${CFLAGS+set}
2927 ac_save_CFLAGS=$CFLAGS
2928 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2930 if test "${ac_cv_prog_cc_g+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 ac_save_c_werror_flag=$ac_c_werror_flag
2934 ac_c_werror_flag=yes
2937 cat >conftest.$ac_ext <<_ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest.$ac_objext; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2990 rm -f conftest.$ac_objext
2991 if { (ac_try="$ac_compile"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compile") 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } && {
3004 test -z "$ac_c_werror_flag" ||
3005 test ! -s conftest.err
3006 } && test -s conftest.$ac_objext; then
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 ac_c_werror_flag=$ac_save_c_werror_flag
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3063 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3064 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3065 if test "$ac_test_CFLAGS" = set; then
3066 CFLAGS=$ac_save_CFLAGS
3067 elif test $ac_cv_prog_cc_g = yes; then
3068 if test "$GCC" = yes; then
3074 if test "$GCC" = yes; then
3080 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3081 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_cc_c89+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 ac_cv_prog_cc_c89=no
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 #include <sys/types.h>
3096 #include <sys/stat.h>
3097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3098 struct buf { int x; };
3099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3100 static char *e (p, i)
3106 static char *f (char * (*g) (char **, int), char **p, ...)
3111 s = g (p, va_arg (v,int));
3116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3117 function prototypes and stuff, but not '\xHH' hex character constants.
3118 These don't provoke an error unfortunately, instead are silently treated
3119 as 'x'. The following induces an error, until -std is added to get
3120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3121 array size at least. It's necessary to write '\x00'==0 to get something
3122 that's true only with -std. */
3123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3126 inside strings and character constants. */
3128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3130 int test (int i, double x);
3131 struct s1 {int (*f) (int a);};
3132 struct s2 {int (*f) (double a);};
3133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3147 CC="$ac_save_CC $ac_arg"
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_cv_prog_cc_c89=$ac_arg
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext
3174 test "x$ac_cv_prog_cc_c89" != "xno" && break
3176 rm -f conftest.$ac_ext
3181 case "x$ac_cv_prog_cc_c89" in
3183 { echo "$as_me:$LINENO: result: none needed" >&5
3184 echo "${ECHO_T}none needed" >&6; } ;;
3186 { echo "$as_me:$LINENO: result: unsupported" >&5
3187 echo "${ECHO_T}unsupported" >&6; } ;;
3189 CC="$CC $ac_cv_prog_cc_c89"
3190 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3191 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3203 echo "$as_me: error: GCC is required" >&2;}
3204 { (exit 1); exit 1; }; }
3207 cat >>confdefs.h <<\_ACEOF
3208 @%:@define _GNU_SOURCE 1
3213 # Check whether --enable-largefile was given.
3214 if test "${enable_largefile+set}" = set; then
3215 enableval=$enable_largefile;
3218 if test "$enable_largefile" != no; then
3220 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3221 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3222 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 ac_cv_sys_largefile_CC=no
3226 if test "$GCC" != yes; then
3229 # IRIX 6.2 and later do not support large files by default,
3230 # so use the C compiler's -n32 option if that helps.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 @%:@include <sys/types.h>
3238 /* Check that off_t can represent 2**63 - 1 correctly.
3239 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3240 since some C++ compilers masquerading as C compilers
3241 incorrectly reject 9223372036854775807. */
3242 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3244 && LARGE_OFF_T % 2147483647 == 1)
3254 rm -f conftest.$ac_objext
3255 if { (ac_try="$ac_compile"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3279 rm -f core conftest.err conftest.$ac_objext
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
3298 ac_cv_sys_largefile_CC=' -n32'; break
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3306 rm -f core conftest.err conftest.$ac_objext
3310 rm -f conftest.$ac_ext
3313 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3314 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3315 if test "$ac_cv_sys_largefile_CC" != no; then
3316 CC=$CC$ac_cv_sys_largefile_CC
3319 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3320 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3321 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 @%:@include <sys/types.h>
3332 /* Check that off_t can represent 2**63 - 1 correctly.
3333 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3334 since some C++ compilers masquerading as C compilers
3335 incorrectly reject 9223372036854775807. */
3336 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3338 && LARGE_OFF_T % 2147483647 == 1)
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3365 ac_cv_sys_file_offset_bits=no; break
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 @%:@define _FILE_OFFSET_BITS 64
3381 @%:@include <sys/types.h>
3382 /* Check that off_t can represent 2**63 - 1 correctly.
3383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3384 since some C++ compilers masquerading as C compilers
3385 incorrectly reject 9223372036854775807. */
3386 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3388 && LARGE_OFF_T % 2147483647 == 1)
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_compile") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } && {
3412 test -z "$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 } && test -s conftest.$ac_objext; then
3415 ac_cv_sys_file_offset_bits=64; break
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_cv_sys_file_offset_bits=unknown
3428 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3429 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3430 case $ac_cv_sys_file_offset_bits in #(
3433 cat >>confdefs.h <<_ACEOF
3434 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3439 if test $ac_cv_sys_file_offset_bits = unknown; then
3440 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3441 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3442 if test "${ac_cv_sys_large_files+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 @%:@include <sys/types.h>
3453 /* Check that off_t can represent 2**63 - 1 correctly.
3454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3455 since some C++ compilers masquerading as C compilers
3456 incorrectly reject 9223372036854775807. */
3457 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3459 && LARGE_OFF_T % 2147483647 == 1)
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_cv_sys_large_files=no; break
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 @%:@define _LARGE_FILES 1
3502 @%:@include <sys/types.h>
3503 /* Check that off_t can represent 2**63 - 1 correctly.
3504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3505 since some C++ compilers masquerading as C compilers
3506 incorrectly reject 9223372036854775807. */
3507 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3509 && LARGE_OFF_T % 2147483647 == 1)
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compile") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } && {
3533 test -z "$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 } && test -s conftest.$ac_objext; then
3536 ac_cv_sys_large_files=1; break
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 ac_cv_sys_large_files=unknown
3549 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3550 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3551 case $ac_cv_sys_large_files in #(
3554 cat >>confdefs.h <<_ACEOF
3555 @%:@define _LARGE_FILES $ac_cv_sys_large_files
3564 # Identify characteristics of the host architecture.
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3572 # On Suns, sometimes $CPP names a directory.
3573 if test -n "$CPP" && test -d "$CPP"; then
3576 if test -z "$CPP"; then
3577 if test "${ac_cv_prog_CPP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 # Double quotes because CPP needs to be expanded
3581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584 for ac_c_preproc_warn_flag in '' yes
3586 # Use a header file that comes with gcc, so configuring glibc
3587 # with a fresh cross-compiler works.
3588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3589 # <limits.h> exists even on freestanding compilers.
3590 # On the NeXT, cc -E runs the code through the compiler's parser,
3591 # not just through cpp. "Syntax error" is here to catch this case.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3599 @%:@ include <limits.h>
3601 @%:@ include <assert.h>
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Broken: fails on valid input.
3630 rm -f conftest.err conftest.$ac_ext
3632 # OK, works on sane cases. Now check whether nonexistent headers
3633 # can be detected and how.
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 @%:@include <ac_nonexistent.h>
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null && {
3655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3658 # Broken: success on invalid input.
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 # Passes both tests.
3669 rm -f conftest.err conftest.$ac_ext
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.$ac_ext
3674 if $ac_preproc_ok; then
3686 { echo "$as_me:$LINENO: result: $CPP" >&5
3687 echo "${ECHO_T}$CPP" >&6; }
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 @%:@ include <limits.h>
3706 @%:@ include <assert.h>
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 # Broken: fails on valid input.
3735 rm -f conftest.err conftest.$ac_ext
3737 # OK, works on sane cases. Now check whether nonexistent headers
3738 # can be detected and how.
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 @%:@include <ac_nonexistent.h>
3747 if { (ac_try="$ac_cpp conftest.$ac_ext"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev/null && {
3760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3763 # Broken: success on invalid input.
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 # Passes both tests.
3774 rm -f conftest.err conftest.$ac_ext
3777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778 rm -f conftest.err conftest.$ac_ext
3779 if $ac_preproc_ok; then
3782 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3785 See \`config.log' for more details." >&2;}
3786 { (exit 1); exit 1; }; }
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3797 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3798 if test "${ac_cv_path_GREP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 # Extract the first word of "grep ggrep" to use in msg output
3802 if test -z "$GREP"; then
3803 set dummy grep ggrep; ac_prog_name=$2
3804 if test "${ac_cv_path_GREP+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 ac_path_GREP_found=false
3808 # Loop through the user's path and test for each of PROGNAME-LIST
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813 test -z "$as_dir" && as_dir=.
3814 for ac_prog in grep ggrep; do
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3818 # Check for GNU ac_path_GREP and select it if it is found.
3819 # Check for GNU $ac_path_GREP
3820 case `"$ac_path_GREP" --version 2>&1` in
3822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3825 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3828 cat "conftest.in" "conftest.in" >"conftest.tmp"
3829 mv "conftest.tmp" "conftest.in"
3830 cp "conftest.in" "conftest.nl"
3831 echo 'GREP' >> "conftest.nl"
3832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3834 ac_count=`expr $ac_count + 1`
3835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3836 # Best one so far, save it but keep looking for a better one
3837 ac_cv_path_GREP="$ac_path_GREP"
3838 ac_path_GREP_max=$ac_count
3840 # 10*(2^10) chars as input seems more than enough
3841 test $ac_count -gt 10 && break
3843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3847 $ac_path_GREP_found && break 3
3857 GREP="$ac_cv_path_GREP"
3858 if test -z "$GREP"; then
3859 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3860 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3861 { (exit 1); exit 1; }; }
3865 ac_cv_path_GREP=$GREP
3870 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3871 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3872 GREP="$ac_cv_path_GREP"
3875 { echo "$as_me:$LINENO: checking for egrep" >&5
3876 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3877 if test "${ac_cv_path_EGREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3881 then ac_cv_path_EGREP="$GREP -E"
3883 # Extract the first word of "egrep" to use in msg output
3884 if test -z "$EGREP"; then
3885 set dummy egrep; ac_prog_name=$2
3886 if test "${ac_cv_path_EGREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_path_EGREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in egrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3900 # Check for GNU ac_path_EGREP and select it if it is found.
3901 # Check for GNU $ac_path_EGREP
3902 case `"$ac_path_EGREP" --version 2>&1` in
3904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'EGREP' >> "conftest.nl"
3914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_EGREP="$ac_path_EGREP"
3920 ac_path_EGREP_max=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 $ac_path_EGREP_found && break 3
3939 EGREP="$ac_cv_path_EGREP"
3940 if test -z "$EGREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3947 ac_cv_path_EGREP=$EGREP
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3955 EGREP="$ac_cv_path_EGREP"
3958 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3960 if test "${ac_cv_header_stdc+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_compile") 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest.$ac_objext; then
3999 ac_cv_header_stdc=yes
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_cv_header_stdc=no
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 if test $ac_cv_header_stdc = yes; then
4010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021 $EGREP "memchr" >/dev/null 2>&1; then
4024 ac_cv_header_stdc=no
4030 if test $ac_cv_header_stdc = yes; then
4031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4032 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "free" >/dev/null 2>&1; then
4045 ac_cv_header_stdc=no
4051 if test $ac_cv_header_stdc = yes; then
4052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4053 if test "$cross_compiling" = yes; then
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4064 #if ((' ' & 0x0FF) == 0x020)
4065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4068 # define ISLOWER(c) \
4069 (('a' <= (c) && (c) <= 'i') \
4070 || ('j' <= (c) && (c) <= 'r') \
4071 || ('s' <= (c) && (c) <= 'z'))
4072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4080 for (i = 0; i < 256; i++)
4081 if (XOR (islower (i), ISLOWER (i))
4082 || toupper (i) != TOUPPER (i))
4087 rm -f conftest$ac_exeext
4088 if { (ac_try="$ac_link"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_link") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4098 { (case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_try") 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4109 echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_cv_header_stdc=no
4116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4126 cat >>confdefs.h <<\_ACEOF
4127 @%:@define STDC_HEADERS 1
4132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4143 inttypes.h stdint.h unistd.h
4145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4159 @%:@include <$ac_header>
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 eval "$as_ac_Header=yes"
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 eval "$as_ac_Header=no"
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_res=`eval echo '${'$as_ac_Header'}'`
4189 { echo "$as_me:$LINENO: result: $ac_res" >&5
4190 echo "${ECHO_T}$ac_res" >&6; }
4191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192 cat >>confdefs.h <<_ACEOF
4193 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4201 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4202 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4203 if test "${ac_cv_c_bigendian+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 # See if sys/param.h defines the BYTE_ORDER macro.
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 #include <sys/types.h>
4214 #include <sys/param.h>
4219 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4220 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.$ac_objext; then
4245 # It does; now see whether it defined to BIG_ENDIAN or not.
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <sys/types.h>
4253 #include <sys/param.h>
4258 #if BYTE_ORDER != BIG_ENDIAN
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_compile") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && {
4280 test -z "$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4282 } && test -s conftest.$ac_objext; then
4283 ac_cv_c_bigendian=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_cv_c_bigendian=no
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 # It does not; compile a test program.
4297 if test "$cross_compiling" = yes; then
4298 # try to guess the endianness by grepping values into an object file
4299 ac_cv_c_bigendian=unknown
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4307 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4308 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4309 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4310 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4311 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4315 _ascii (); _ebcdic ();
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4338 ac_cv_c_bigendian=yes
4340 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4341 if test "$ac_cv_c_bigendian" = unknown; then
4342 ac_cv_c_bigendian=no
4344 # finding both strings is unlikely to happen, but who knows?
4345 ac_cv_c_bigendian=unknown
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4368 /* Are we little or big endian? From Harbison&Steele. */
4372 char c[sizeof (long int)];
4375 return u.c[sizeof (long int) - 1] == 1;
4381 rm -f conftest$ac_exeext
4382 if { (ac_try="$ac_link"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_link") 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 ac_cv_c_bigendian=no
4403 echo "$as_me: program exited with status $ac_status" >&5
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_c_bigendian=yes
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4419 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4420 case $ac_cv_c_bigendian in
4423 cat >>confdefs.h <<\_ACEOF
4424 @%:@define WORDS_BIGENDIAN 1
4430 { { echo "$as_me:$LINENO: error: unknown endianness
4431 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4432 echo "$as_me: error: unknown endianness
4433 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4434 { (exit 1); exit 1; }; } ;;
4437 { echo "$as_me:$LINENO: checking for void *" >&5
4438 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4439 if test "${ac_cv_type_void_p+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 $ac_includes_default
4449 typedef void * ac__type_new_;
4453 if ((ac__type_new_ *) 0)
4455 if (sizeof (ac__type_new_))
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.$ac_objext; then
4478 ac_cv_type_void_p=yes
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_type_void_p=no
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4489 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4491 # The cast to long int works around a bug in the HP C Compiler
4492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4494 # This bug is HP SR number 8606223364.
4495 { echo "$as_me:$LINENO: checking size of void *" >&5
4496 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4497 if test "${ac_cv_sizeof_void_p+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test "$cross_compiling" = yes; then
4501 # Depending upon the size, compute the lo and hi bounds.
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 $ac_includes_default
4509 typedef void * ac__type_sizeof_;
4513 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
4514 test_array @<:@0@:>@ = 0
4520 rm -f conftest.$ac_objext
4521 if { (ac_try="$ac_compile"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_compile") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1 >conftest.err
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_c_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest.$ac_objext; then
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 $ac_includes_default
4546 typedef void * ac__type_sizeof_;
4550 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
4551 test_array @<:@0@:>@ = 0
4557 rm -f conftest.$ac_objext
4558 if { (ac_try="$ac_compile"
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_compile") 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } && {
4571 test -z "$ac_c_werror_flag" ||
4572 test ! -s conftest.err
4573 } && test -s conftest.$ac_objext; then
4574 ac_hi=$ac_mid; break
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_lo=`expr $ac_mid + 1`
4580 if test $ac_lo -le $ac_mid; then
4584 ac_mid=`expr 2 '*' $ac_mid + 1`
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4600 typedef void * ac__type_sizeof_;
4604 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
4605 test_array @<:@0@:>@ = 0
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 typedef void * ac__type_sizeof_;
4641 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
4642 test_array @<:@0@:>@ = 0
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && {
4662 test -z "$ac_c_werror_flag" ||
4663 test ! -s conftest.err
4664 } && test -s conftest.$ac_objext; then
4665 ac_lo=$ac_mid; break
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 ac_hi=`expr '(' $ac_mid ')' - 1`
4671 if test $ac_mid -le $ac_hi; then
4675 ac_mid=`expr 2 '*' $ac_mid`
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 # Binary search between lo and hi bounds.
4692 while test "x$ac_lo" != "x$ac_hi"; do
4693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 typedef void * ac__type_sizeof_;
4705 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
4706 test_array @<:@0@:>@ = 0
4712 rm -f conftest.$ac_objext
4713 if { (ac_try="$ac_compile"
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_compile") 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && {
4726 test -z "$ac_c_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 ac_lo=`expr '(' $ac_mid ')' + 1`
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4741 '') if test "$ac_cv_type_void_p" = yes; then
4742 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4743 See \`config.log' for more details." >&5
4744 echo "$as_me: error: cannot compute sizeof (void *)
4745 See \`config.log' for more details." >&2;}
4746 { (exit 77); exit 77; }; }
4748 ac_cv_sizeof_void_p=0
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 $ac_includes_default
4759 typedef void * ac__type_sizeof_;
4760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4762 @%:@include <stdio.h>
4763 @%:@include <stdlib.h>
4768 FILE *f = fopen ("conftest.val", "w");
4771 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4773 long int i = longval ();
4774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4776 fprintf (f, "%ld\n", i);
4780 unsigned long int i = ulongval ();
4781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4783 fprintf (f, "%lu\n", i);
4785 return ferror (f) || fclose (f) != 0;
4791 rm -f conftest$ac_exeext
4792 if { (ac_try="$ac_link"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_link") 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4802 { (case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_try") 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_sizeof_void_p=`cat conftest.val`
4813 echo "$as_me: program exited with status $ac_status" >&5
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4818 if test "$ac_cv_type_void_p" = yes; then
4819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: cannot compute sizeof (void *)
4822 See \`config.log' for more details." >&2;}
4823 { (exit 77); exit 77; }; }
4825 ac_cv_sizeof_void_p=0
4828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4833 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4837 cat >>confdefs.h <<_ACEOF
4838 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4842 { echo "$as_me:$LINENO: checking for long" >&5
4843 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4844 if test "${ac_cv_type_long+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 typedef long ac__type_new_;
4858 if ((ac__type_new_ *) 0)
4860 if (sizeof (ac__type_new_))
4866 rm -f conftest.$ac_objext
4867 if { (ac_try="$ac_compile"
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_compile") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4894 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4896 # The cast to long int works around a bug in the HP C Compiler
4897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4899 # This bug is HP SR number 8606223364.
4900 { echo "$as_me:$LINENO: checking size of long" >&5
4901 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4902 if test "${ac_cv_sizeof_long+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test "$cross_compiling" = yes; then
4906 # Depending upon the size, compute the lo and hi bounds.
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4914 typedef long ac__type_sizeof_;
4918 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
4919 test_array @<:@0@:>@ = 0
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4944 cat >conftest.$ac_ext <<_ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 $ac_includes_default
4951 typedef long ac__type_sizeof_;
4955 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
4956 test_array @<:@0@:>@ = 0
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4979 ac_hi=$ac_mid; break
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 ac_lo=`expr $ac_mid + 1`
4985 if test $ac_lo -le $ac_mid; then
4989 ac_mid=`expr 2 '*' $ac_mid + 1`
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 $ac_includes_default
5005 typedef long ac__type_sizeof_;
5009 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
5010 test_array @<:@0@:>@ = 0
5016 rm -f conftest.$ac_objext
5017 if { (ac_try="$ac_compile"
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020 *) ac_try_echo=$ac_try;;
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5023 (eval "$ac_compile") 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } && {
5030 test -z "$ac_c_werror_flag" ||
5031 test ! -s conftest.err
5032 } && test -s conftest.$ac_objext; then
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 typedef long ac__type_sizeof_;
5046 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
5047 test_array @<:@0@:>@ = 0
5053 rm -f conftest.$ac_objext
5054 if { (ac_try="$ac_compile"
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_compile") 2>conftest.er1
5062 grep -v '^ *+' conftest.er1 >conftest.err
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && {
5067 test -z "$ac_c_werror_flag" ||
5068 test ! -s conftest.err
5069 } && test -s conftest.$ac_objext; then
5070 ac_lo=$ac_mid; break
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ac_hi=`expr '(' $ac_mid ')' - 1`
5076 if test $ac_mid -le $ac_hi; then
5080 ac_mid=`expr 2 '*' $ac_mid`
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 # Binary search between lo and hi bounds.
5097 while test "x$ac_lo" != "x$ac_hi"; do
5098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106 typedef long ac__type_sizeof_;
5110 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5111 test_array @<:@0@:>@ = 0
5117 rm -f conftest.$ac_objext
5118 if { (ac_try="$ac_compile"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_compile") 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && {
5131 test -z "$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5133 } && test -s conftest.$ac_objext; then
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_lo=`expr '(' $ac_mid ')' + 1`
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ?*) ac_cv_sizeof_long=$ac_lo;;
5146 '') if test "$ac_cv_type_long" = yes; then
5147 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot compute sizeof (long)
5150 See \`config.log' for more details." >&2;}
5151 { (exit 77); exit 77; }; }
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 $ac_includes_default
5164 typedef long ac__type_sizeof_;
5165 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5166 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5167 @%:@include <stdio.h>
5168 @%:@include <stdlib.h>
5173 FILE *f = fopen ("conftest.val", "w");
5176 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5178 long int i = longval ();
5179 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5181 fprintf (f, "%ld\n", i);
5185 unsigned long int i = ulongval ();
5186 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5188 fprintf (f, "%lu\n", i);
5190 return ferror (f) || fclose (f) != 0;
5196 rm -f conftest$ac_exeext
5197 if { (ac_try="$ac_link"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_link") 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5207 { (case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_sizeof_long=`cat conftest.val`
5218 echo "$as_me: program exited with status $ac_status" >&5
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5223 if test "$ac_cv_type_long" = yes; then
5224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: cannot compute sizeof (long)
5227 See \`config.log' for more details." >&2;}
5228 { (exit 77); exit 77; }; }
5233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5238 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5242 cat >>confdefs.h <<_ACEOF
5243 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
5248 if test "x$host_m32" = x1; then
5249 # Force 32-bit mode.
5250 CFLAGS="$CFLAGS -m32"
5251 LDFLAGS="$LDFLAGS -m32"
5254 # Check LZO when compiling for the i386-pc.
5255 if test "$target_cpu"-"$platform" = i386-pc; then
5256 # There are three possibilities. LZO version 2 installed with the name
5257 # liblzo2, with the name liblzo, and LZO version 1.
5258 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5259 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5260 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 ac_check_lib_save_LIBS=$LIBS
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5272 /* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
5278 char __lzo_init_v2 ();
5282 return __lzo_init_v2 ();
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (ac_try="$ac_link"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest$ac_exeext &&
5304 $as_test_x conftest$ac_exeext; then
5305 ac_cv_lib_lzo2___lzo_init_v2=yes
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_cv_lib_lzo2___lzo_init_v2=no
5313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5314 conftest$ac_exeext conftest.$ac_ext
5315 LIBS=$ac_check_lib_save_LIBS
5317 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5318 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5319 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5322 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5323 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5324 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 ac_check_lib_save_LIBS=$LIBS
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5336 /* Override any GCC internal prototype to avoid an error.
5337 Use char because int might match the return type of a GCC
5338 builtin and then its argument prototype would still apply. */
5342 char __lzo_init_v2 ();
5346 return __lzo_init_v2 ();
5351 rm -f conftest.$ac_objext conftest$ac_exeext
5352 if { (ac_try="$ac_link"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_link") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest$ac_exeext &&
5368 $as_test_x conftest$ac_exeext; then
5369 ac_cv_lib_lzo___lzo_init_v2=yes
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5374 ac_cv_lib_lzo___lzo_init_v2=no
5377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5378 conftest$ac_exeext conftest.$ac_ext
5379 LIBS=$ac_check_lib_save_LIBS
5381 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5382 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5383 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5386 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5387 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5388 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 ac_check_lib_save_LIBS=$LIBS
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5400 /* Override any GCC internal prototype to avoid an error.
5401 Use char because int might match the return type of a GCC
5402 builtin and then its argument prototype would still apply. */
5406 char __lzo_init2 ();
5410 return __lzo_init2 ();
5415 rm -f conftest.$ac_objext conftest$ac_exeext
5416 if { (ac_try="$ac_link"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest$ac_exeext &&
5432 $as_test_x conftest$ac_exeext; then
5433 ac_cv_lib_lzo___lzo_init2=yes
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 ac_cv_lib_lzo___lzo_init2=no
5441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5442 conftest$ac_exeext conftest.$ac_ext
5443 LIBS=$ac_check_lib_save_LIBS
5445 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5446 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5447 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5450 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5451 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5452 { (exit 1); exit 1; }; }
5460 LIBS="$LIBS $LIBLZO"
5461 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5462 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5463 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5474 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5476 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char lzo1x_999_compress (); below.
5478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5479 <limits.h> exists even on freestanding compilers. */
5482 # include <limits.h>
5484 # include <assert.h>
5487 #undef lzo1x_999_compress
5489 /* Override any GCC internal prototype to avoid an error.
5490 Use char because int might match the return type of a GCC
5491 builtin and then its argument prototype would still apply. */
5495 char lzo1x_999_compress ();
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5506 return lzo1x_999_compress ();
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (ac_try="$ac_link"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_link") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest$ac_exeext &&
5528 $as_test_x conftest$ac_exeext; then
5529 ac_cv_func_lzo1x_999_compress=yes
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_cv_func_lzo1x_999_compress=no
5537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5538 conftest$ac_exeext conftest.$ac_ext
5540 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5541 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5542 if test $ac_cv_func_lzo1x_999_compress = yes; then
5545 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5546 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5547 { (exit 1); exit 1; }; }
5551 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5554 for ac_header in lzo/lzo1x.h lzo1x.h
5556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 ac_res=`eval echo '${'$as_ac_Header'}'`
5564 { echo "$as_me:$LINENO: result: $ac_res" >&5
5565 echo "${ECHO_T}$ac_res" >&6; }
5567 # Is the header compilable?
5568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 $ac_includes_default
5577 @%:@include <$ac_header>
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 ac_header_compiler=yes
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 ac_header_compiler=no
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5606 echo "${ECHO_T}$ac_header_compiler" >&6; }
5608 # Is the header present?
5609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 @%:@include <$ac_header>
5619 if { (ac_try="$ac_cpp conftest.$ac_ext"
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null && {
5632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5635 ac_header_preproc=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_header_preproc=no
5643 rm -f conftest.err conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5645 echo "${ECHO_T}$ac_header_preproc" >&6; }
5647 # So? What about this header?
5648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5654 ac_header_preproc=yes
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5670 @%:@@%:@ ------------------------------- @%:@@%:@
5671 @%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
5672 @%:@@%:@ ------------------------------- @%:@@%:@
5674 ) | sed "s/^/$as_me: WARNING: /" >&2
5677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 eval "$as_ac_Header=\$ac_header_preproc"
5684 ac_res=`eval echo '${'$as_ac_Header'}'`
5685 { echo "$as_me:$LINENO: result: $ac_res" >&5
5686 echo "${ECHO_T}$ac_res" >&6; }
5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5690 cat >>confdefs.h <<_ACEOF
5691 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5700 # Check for functions.
5703 for ac_func in posix_memalign memalign
5705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5719 #define $ac_func innocuous_$ac_func
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func (); below.
5723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 <limits.h> exists even on freestanding compilers. */
5727 # include <limits.h>
5729 # include <assert.h>
5734 /* Override any GCC internal prototype to avoid an error.
5735 Use char because int might match the return type of a GCC
5736 builtin and then its argument prototype would still apply. */
5741 /* The GNU C library defines this for functions which it implements
5742 to always fail with ENOSYS. Some functions are actually named
5743 something starting with __ and the normal name is an alias. */
5744 #if defined __stub_$ac_func || defined __stub___$ac_func
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_link") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest$ac_exeext &&
5773 $as_test_x conftest$ac_exeext; then
5774 eval "$as_ac_var=yes"
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 eval "$as_ac_var=no"
5782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783 conftest$ac_exeext conftest.$ac_ext
5785 ac_res=`eval echo '${'$as_ac_var'}'`
5786 { echo "$as_me:$LINENO: result: $ac_res" >&5
5787 echo "${ECHO_T}$ac_res" >&6; }
5788 if test `eval echo '${'$as_ac_var'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5798 # Check for target programs.
5801 # For cross-compiling.
5802 if test "x$target" != "x$host"; then
5803 # XXX this depends on the implementation of autoconf!
5804 tmp_ac_tool_prefix="$ac_tool_prefix"
5805 ac_tool_prefix=$target_alias-
5807 if test -n "$ac_tool_prefix"; then
5808 for ac_prog in gcc egcs cc
5810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 if test -n "$TARGET_CC"; then
5818 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 TARGET_CC=$ac_cv_prog_TARGET_CC
5838 if test -n "$TARGET_CC"; then
5839 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5840 echo "${ECHO_T}$TARGET_CC" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5847 test -n "$TARGET_CC" && break
5850 if test -z "$TARGET_CC"; then
5851 ac_ct_TARGET_CC=$TARGET_CC
5852 for ac_prog in gcc egcs cc
5854 # Extract the first word of "$ac_prog", so it can be a program name with args.
5855 set dummy $ac_prog; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -n "$ac_ct_TARGET_CC"; then
5862 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
5882 if test -n "$ac_ct_TARGET_CC"; then
5883 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
5884 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5891 test -n "$ac_ct_TARGET_CC" && break
5894 if test "x$ac_ct_TARGET_CC" = x; then
5895 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
5896 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
5897 { (exit 1); exit 1; }; }"
5899 case $cross_compiling:$ac_tool_warned in
5901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5902 whose name does not start with the host triplet. If you think this
5903 configuration is useful to you, please write to autoconf@gnu.org." >&5
5904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5905 whose name does not start with the host triplet. If you think this
5906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5907 ac_tool_warned=yes ;;
5909 TARGET_CC=$ac_ct_TARGET_CC
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$OBJCOPY"; then
5922 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 OBJCOPY=$ac_cv_prog_OBJCOPY
5942 if test -n "$OBJCOPY"; then
5943 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5944 echo "${ECHO_T}$OBJCOPY" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5952 if test -z "$ac_cv_prog_OBJCOPY"; then
5953 ac_ct_OBJCOPY=$OBJCOPY
5954 # Extract the first word of "objcopy", so it can be a program name with args.
5955 set dummy objcopy; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$ac_ct_OBJCOPY"; then
5962 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5982 if test -n "$ac_ct_OBJCOPY"; then
5983 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
5984 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5990 if test "x$ac_ct_OBJCOPY" = x; then
5993 case $cross_compiling:$ac_tool_warned in
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet. If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet. If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6003 OBJCOPY=$ac_ct_OBJCOPY
6006 OBJCOPY="$ac_cv_prog_OBJCOPY"
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}strip; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_STRIP+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$STRIP"; then
6018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 STRIP=$ac_cv_prog_STRIP
6038 if test -n "$STRIP"; then
6039 { echo "$as_me:$LINENO: result: $STRIP" >&5
6040 echo "${ECHO_T}$STRIP" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6048 if test -z "$ac_cv_prog_STRIP"; then
6050 # Extract the first word of "strip", so it can be a program name with args.
6051 set dummy strip; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 if test -n "$ac_ct_STRIP"; then
6058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_STRIP="strip"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6078 if test -n "$ac_ct_STRIP"; then
6079 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6080 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6086 if test "x$ac_ct_STRIP" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet. If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&5
6094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6095 whose name does not start with the host triplet. If you think this
6096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6097 ac_tool_warned=yes ;;
6102 STRIP="$ac_cv_prog_STRIP"
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}nm; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_NM+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test -n "$NM"; then
6114 ac_cv_prog_NM="$NM" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_NM="${ac_tool_prefix}nm"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 if test -n "$NM"; then
6135 { echo "$as_me:$LINENO: result: $NM" >&5
6136 echo "${ECHO_T}$NM" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6144 if test -z "$ac_cv_prog_NM"; then
6146 # Extract the first word of "nm", so it can be a program name with args.
6147 set dummy nm; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test -n "$ac_ct_NM"; then
6154 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_ac_ct_NM="nm"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6174 if test -n "$ac_ct_NM"; then
6175 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6176 echo "${ECHO_T}$ac_ct_NM" >&6; }
6178 { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6182 if test "x$ac_ct_NM" = x; then
6185 case $cross_compiling:$ac_tool_warned in
6187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet. If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&5
6190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6191 whose name does not start with the host triplet. If you think this
6192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6193 ac_tool_warned=yes ;;
6202 ac_tool_prefix="$tmp_ac_tool_prefix"
6204 if test "x$TARGET_CC" = x; then
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 if test -n "$OBJCOPY"; then
6216 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 OBJCOPY=$ac_cv_prog_OBJCOPY
6236 if test -n "$OBJCOPY"; then
6237 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6238 echo "${ECHO_T}$OBJCOPY" >&6; }
6240 { echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6; }
6246 if test -z "$ac_cv_prog_OBJCOPY"; then
6247 ac_ct_OBJCOPY=$OBJCOPY
6248 # Extract the first word of "objcopy", so it can be a program name with args.
6249 set dummy objcopy; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$ac_ct_OBJCOPY"; then
6256 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6276 if test -n "$ac_ct_OBJCOPY"; then
6277 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6278 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6280 { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6284 if test "x$ac_ct_OBJCOPY" = x; then
6287 case $cross_compiling:$ac_tool_warned in
6289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet. If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&5
6292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6295 ac_tool_warned=yes ;;
6297 OBJCOPY=$ac_ct_OBJCOPY
6300 OBJCOPY="$ac_cv_prog_OBJCOPY"
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}strip; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_prog_STRIP+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 if test -n "$STRIP"; then
6312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 STRIP=$ac_cv_prog_STRIP
6332 if test -n "$STRIP"; then
6333 { echo "$as_me:$LINENO: result: $STRIP" >&5
6334 echo "${ECHO_T}$STRIP" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6342 if test -z "$ac_cv_prog_STRIP"; then
6344 # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 if test -n "$ac_ct_STRIP"; then
6352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_STRIP="strip"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372 if test -n "$ac_ct_STRIP"; then
6373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6380 if test "x$ac_ct_STRIP" = x; then
6383 case $cross_compiling:$ac_tool_warned in
6385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet. If you think this
6387 configuration is useful to you, please write to autoconf@gnu.org." >&5
6388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6391 ac_tool_warned=yes ;;
6396 STRIP="$ac_cv_prog_STRIP"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}nm; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_prog_NM+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 if test -n "$NM"; then
6408 ac_cv_prog_NM="$NM" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_NM="${ac_tool_prefix}nm"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 if test -n "$NM"; then
6429 { echo "$as_me:$LINENO: result: $NM" >&5
6430 echo "${ECHO_T}$NM" >&6; }
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6438 if test -z "$ac_cv_prog_NM"; then
6440 # Extract the first word of "nm", so it can be a program name with args.
6441 set dummy nm; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 if test -n "$ac_ct_NM"; then
6448 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_NM="nm"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6468 if test -n "$ac_ct_NM"; then
6469 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6470 echo "${ECHO_T}$ac_ct_NM" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6476 if test "x$ac_ct_NM" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet. If you think this
6483 configuration is useful to you, please write to autoconf@gnu.org." >&5
6484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6487 ac_tool_warned=yes ;;
6499 # Test the C compiler for the target environment.
6501 tmp_CFLAGS="$CFLAGS"
6502 tmp_LDFLAGS="$LDFLAGS"
6503 tmp_CPPFLAGS="$CPPFLAGS"
6506 CFLAGS="$TARGET_CFLAGS"
6507 CPPFLAGS="$TARGET_CPPFLAGS"
6508 LDFLAGS="$TARGET_LDFLAGS"
6511 if test "x$TARGET_CFLAGS" = x; then
6513 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6514 -Wundef -Wstrict-prototypes -g"
6516 # optimization flags.
6517 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6518 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6519 if test "${size_flag+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $size_flag" >&5
6568 echo "${ECHO_T}$size_flag" >&6; }
6569 if test "x$size_flag" = xyes; then
6570 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6572 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6575 # Force no alignment to save space on i386.
6576 if test "x$target_cpu" = xi386; then
6577 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6578 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6579 if test "${falign_loop_flag+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 CFLAGS="-falign-loops=1"
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 falign_loop_flag=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
6628 echo "${ECHO_T}$falign_loop_flag" >&6; }
6630 if test "x$falign_loop_flag" = xyes; then
6631 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6633 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6638 if test "x$target_m32" = x1; then
6639 # Force 32-bit mode.
6640 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6641 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6644 { echo "$as_me:$LINENO: checking whether the linker accepts \`--build-id=none'" >&5
6645 echo $ECHO_N "checking whether the linker accepts \`--build-id=none'... $ECHO_C" >&6; }
6646 save_LDFLAGS="$LDFLAGS"
6647 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (ac_try="$ac_link"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_link") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest$ac_exeext &&
6680 $as_test_x conftest$ac_exeext; then
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6690 conftest$ac_exeext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $build_id_flag" >&5
6692 echo "${ECHO_T}$build_id_flag" >&6; }
6693 LDFLAGS="$save_LDFLAGS"
6694 if test "x$build_id_flag" = xyes; then
6695 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
6699 # Compiler features.
6702 # Smashing stack protector.
6704 # Smashing stack protector.
6706 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6707 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6708 # Is this a reliable test case?
6709 cat >conftest.$ac_ext <<_ACEOF
6710 void foo (void) { volatile char a[8]; a[3]; }
6712 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6713 # `ac_compile' like this correct, after all?
6714 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6715 { echo "$as_me:$LINENO: result: yes" >&5
6716 echo "${ECHO_T}yes" >&6; }
6717 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6725 # Need that, because some distributions ship compilers that include
6726 # `-fstack-protector' in the default specs.
6727 if [ x"$ssp_possible" = xyes ]; then
6728 TARGET_CFLAGS=$TARGET_CFLAGS\ -fno-stack-protector
6735 # Set them to their new values for the tests below.
6737 CFLAGS="$TARGET_CFLAGS"
6738 CPPFLAGS="$TARGET_CPPFLAGS"
6739 LDFLAGS="$TARGET_LDFLAGS"
6741 # Defined in aclocal.m4.
6742 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6743 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6744 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat > conftest.c <<\EOF
6751 *((int *) 0x1000) = 2;
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && test -s conftest.o; then :
6761 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6762 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6763 { (exit 1); exit 1; }; }
6765 grub_cv_prog_objcopy_absolute=yes
6766 for link_addr in 2000 8000 7C00; do
6767 if { ac_try='${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then :
6774 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6775 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6776 { (exit 1); exit 1; }; }
6778 if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then :
6785 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6786 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6787 { (exit 1); exit 1; }; }
6789 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 mv -f conftest conftest.old
6797 grub_cv_prog_objcopy_absolute=no
6804 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6805 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
6807 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
6808 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6809 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6810 { (exit 1); exit 1; }; }
6814 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
6815 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
6816 if test "${grub_cv_asm_uscore+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat > conftest.c <<\EOF
6828 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } && test -s conftest.s; then
6836 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6837 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6838 { (exit 1); exit 1; }; }
6841 if grep _func conftest.s >/dev/null 2>&1; then
6842 grub_cv_asm_uscore=yes
6844 grub_cv_asm_uscore=no
6851 if test "x$grub_cv_asm_uscore" = xyes; then
6853 cat >>confdefs.h <<_ACEOF
6854 @%:@define HAVE_ASM_USCORE $grub_cv_asm_uscore
6859 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
6860 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
6862 if test "x$target_cpu" = xi386; then
6864 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
6865 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
6866 if test "${grub_cv_check_start_symbol+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (ac_try="$ac_link"
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_link") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest$ac_exeext &&
6901 $as_test_x conftest$ac_exeext; then
6902 grub_cv_check_start_symbol=yes
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 grub_cv_check_start_symbol=no
6910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6911 conftest$ac_exeext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
6916 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
6918 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
6919 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
6920 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_link") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest$ac_exeext &&
6955 $as_test_x conftest$ac_exeext; then
6956 grub_cv_check_uscore_start_symbol=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 grub_cv_check_uscore_start_symbol=no
6964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6965 conftest$ac_exeext conftest.$ac_ext
6969 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
6970 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
6975 if test "x$grub_cv_check_start_symbol" = xyes; then
6976 cat >>confdefs.h <<\_ACEOF
6977 @%:@define START_SYMBOL start
6980 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 @%:@define START_SYMBOL _start
6986 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
6987 echo "$as_me: error: neither start nor _start is defined" >&2;}
6988 { (exit 1); exit 1; }; }
6992 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
6993 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
6994 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7007 asm ("incl __bss_start")
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest$ac_exeext &&
7029 $as_test_x conftest$ac_exeext; then
7030 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 grub_cv_check_uscore_uscore_bss_start_symbol=no
7038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7039 conftest$ac_exeext conftest.$ac_ext
7043 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7044 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7046 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7047 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7048 if test "${grub_cv_check_edata_symbol+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7084 grub_cv_check_edata_symbol=yes
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 grub_cv_check_edata_symbol=no
7092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7093 conftest$ac_exeext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7098 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7100 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7101 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7102 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (ac_try="$ac_link"
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_link") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext &&
7137 $as_test_x conftest$ac_exeext; then
7138 grub_cv_check_uscore_edata_symbol=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 grub_cv_check_uscore_edata_symbol=no
7146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7147 conftest$ac_exeext conftest.$ac_ext
7151 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7152 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7157 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7158 cat >>confdefs.h <<\_ACEOF
7159 @%:@define BSS_START_SYMBOL __bss_start
7162 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7163 cat >>confdefs.h <<\_ACEOF
7164 @%:@define BSS_START_SYMBOL edata
7167 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7168 cat >>confdefs.h <<\_ACEOF
7169 @%:@define BSS_START_SYMBOL _edata
7173 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7174 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7175 { (exit 1); exit 1; }; }
7179 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7180 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7181 if test "${grub_cv_check_end_symbol+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7199 rm -f conftest.$ac_objext conftest$ac_exeext
7200 if { (ac_try="$ac_link"
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_link") 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest$ac_exeext &&
7216 $as_test_x conftest$ac_exeext; then
7217 grub_cv_check_end_symbol=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 grub_cv_check_end_symbol=no
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
7230 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7231 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7233 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7234 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7235 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (ac_try="$ac_link"
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_link") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest$ac_exeext &&
7270 $as_test_x conftest$ac_exeext; then
7271 grub_cv_check_uscore_end_symbol=yes
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 grub_cv_check_uscore_end_symbol=no
7279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7280 conftest$ac_exeext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7285 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7290 if test "x$grub_cv_check_end_symbol" = xyes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 @%:@define END_SYMBOL end
7295 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7296 cat >>confdefs.h <<\_ACEOF
7297 @%:@define END_SYMBOL _end
7301 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7302 echo "$as_me: error: neither end nor _end is defined" >&2;}
7303 { (exit 1); exit 1; }; }
7307 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7308 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7309 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat > conftest.s <<\EOF
7314 l1: addr32 movb %al, l1
7317 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } && test -s conftest.o; then
7323 grub_cv_i386_asm_prefix_requirement=yes
7325 grub_cv_i386_asm_prefix_requirement=no
7332 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7333 grub_tmp_addr32="addr32"
7334 grub_tmp_data32="data32"
7336 grub_tmp_addr32="addr32;"
7337 grub_tmp_data32="data32;"
7341 cat >>confdefs.h <<_ACEOF
7342 @%:@define ADDR32 $grub_tmp_addr32
7346 cat >>confdefs.h <<_ACEOF
7347 @%:@define DATA32 $grub_tmp_data32
7351 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7352 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7355 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7356 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7357 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 cat > conftest.s.in <<\EOF
7362 l1: @ADDR32@ movb %al, l1
7365 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7366 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7368 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7371 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; } && test -s conftest.o; then
7377 grub_cv_i386_asm_addr32=yes
7379 grub_cv_i386_asm_addr32=no
7386 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7387 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7389 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7390 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7391 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 cat > conftest.s <<\EOF
7401 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } && test -s conftest.o; then
7407 grub_cv_i386_asm_absolute_without_asterisk=no
7409 grub_cv_i386_asm_absolute_without_asterisk=yes
7416 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7418 cat >>confdefs.h <<\_ACEOF
7419 @%:@define ABSOLUTE_WITHOUT_ASTERISK 1
7424 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7425 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7427 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7428 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7429 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 if test "$cross_compiling" = yes; then
7433 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7434 See \`config.log' for more details." >&5
7435 echo "$as_me: error: cannot run test program while cross compiling
7436 See \`config.log' for more details." >&2;}
7437 { (exit 1); exit 1; }; }
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7453 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7458 return hook (a, b, &c);
7464 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7466 return a == b && test (c);
7468 return testfunc (nestedfunc) ? 0 : 1;
7472 rm -f conftest$ac_exeext
7473 if { (ac_try="$ac_link"
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_link") 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483 { (case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_try") 2>&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 grub_cv_i386_check_nested_functions=no
7494 echo "$as_me: program exited with status $ac_status" >&5
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7499 grub_cv_i386_check_nested_functions=yes
7501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7508 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7509 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7511 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7513 cat >>confdefs.h <<\_ACEOF
7514 @%:@define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
7519 cat >>confdefs.h <<\_ACEOF
7520 @%:@define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (2)))
7527 cat >>confdefs.h <<\_ACEOF
7528 @%:@define NESTED_FUNC_ATTR
7533 # Restore the flags.
7535 CFLAGS="$tmp_CFLAGS"
7536 CPPFLAGS="$tmp_CPPFLAGS"
7537 LDFLAGS="$tmp_LDFLAGS"
7541 # Check for options.
7544 # Memory manager debugging.
7545 # Check whether --enable-mm-debug was given.
7546 if test "${enable_mm_debug+set}" = set; then
7547 enableval=$enable_mm_debug;
7548 cat >>confdefs.h <<\_ACEOF
7549 @%:@define MM_DEBUG 1
7555 # Check whether --enable-grub-emu was given.
7556 if test "${enable_grub_emu+set}" = set; then
7557 enableval=$enable_grub_emu;
7560 if [ x"$enable_grub_emu" = xyes ]; then
7561 # Check for curses libraries.
7562 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7563 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7564 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_check_lib_save_LIBS=$LIBS
7568 LIBS="-lncurses $LIBS"
7569 cat >conftest.$ac_ext <<_ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7576 /* Override any GCC internal prototype to avoid an error.
7577 Use char because int might match the return type of a GCC
7578 builtin and then its argument prototype would still apply. */
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 ac_cv_lib_ncurses_wgetch=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_lib_ncurses_wgetch=no
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7621 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7622 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7623 if test $ac_cv_lib_ncurses_wgetch = yes; then
7624 LIBCURSES="-lncurses"
7626 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7627 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7628 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_check_lib_save_LIBS=$LIBS
7632 LIBS="-lcurses $LIBS"
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7640 /* Override any GCC internal prototype to avoid an error.
7641 Use char because int might match the return type of a GCC
7642 builtin and then its argument prototype would still apply. */
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (ac_try="$ac_link"
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_link") 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest$ac_exeext &&
7672 $as_test_x conftest$ac_exeext; then
7673 ac_cv_lib_curses_wgetch=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_lib_curses_wgetch=no
7681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7686 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7687 if test $ac_cv_lib_curses_wgetch = yes; then
7688 LIBCURSES="-lcurses"
7690 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7691 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7692 { (exit 1); exit 1; }; }
7699 # Check for headers.
7701 for ac_header in ncurses/curses.h
7703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_res=`eval echo '${'$as_ac_Header'}'`
7711 { echo "$as_me:$LINENO: result: $ac_res" >&5
7712 echo "${ECHO_T}$ac_res" >&6; }
7714 # Is the header compilable?
7715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 @%:@include <$ac_header>
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 ac_header_compiler=yes
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_header_compiler=no
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7753 echo "${ECHO_T}$ac_header_compiler" >&6; }
7755 # Is the header present?
7756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 @%:@include <$ac_header>
7766 if { (ac_try="$ac_cpp conftest.$ac_ext"
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } >/dev/null && {
7779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7782 ac_header_preproc=yes
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_header_preproc=no
7790 rm -f conftest.err conftest.$ac_ext
7791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7792 echo "${ECHO_T}$ac_header_preproc" >&6; }
7794 # So? What about this header?
7795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7801 ac_header_preproc=yes
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7817 @%:@@%:@ ------------------------------- @%:@@%:@
7818 @%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
7819 @%:@@%:@ ------------------------------- @%:@@%:@
7821 ) | sed "s/^/$as_me: WARNING: /" >&2
7824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 eval "$as_ac_Header=\$ac_header_preproc"
7831 ac_res=`eval echo '${'$as_ac_Header'}'`
7832 { echo "$as_me:$LINENO: result: $ac_res" >&5
7833 echo "${ECHO_T}$ac_res" >&6; }
7836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7843 for ac_header in ncurses.h
7845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_res=`eval echo '${'$as_ac_Header'}'`
7853 { echo "$as_me:$LINENO: result: $ac_res" >&5
7854 echo "${ECHO_T}$ac_res" >&6; }
7856 # Is the header compilable?
7857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7859 cat >conftest.$ac_ext <<_ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 $ac_includes_default
7866 @%:@include <$ac_header>
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 ac_header_compiler=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_header_compiler=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7895 echo "${ECHO_T}$ac_header_compiler" >&6; }
7897 # Is the header present?
7898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 @%:@include <$ac_header>
7908 if { (ac_try="$ac_cpp conftest.$ac_ext"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } >/dev/null && {
7921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7924 ac_header_preproc=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_header_preproc=no
7932 rm -f conftest.err conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7934 echo "${ECHO_T}$ac_header_preproc" >&6; }
7936 # So? What about this header?
7937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7943 ac_header_preproc=yes
7946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7959 @%:@@%:@ ------------------------------- @%:@@%:@
7960 @%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
7961 @%:@@%:@ ------------------------------- @%:@@%:@
7963 ) | sed "s/^/$as_me: WARNING: /" >&2
7966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 eval "$as_ac_Header=\$ac_header_preproc"
7973 ac_res=`eval echo '${'$as_ac_Header'}'`
7974 { echo "$as_me:$LINENO: result: $ac_res" >&5
7975 echo "${ECHO_T}$ac_res" >&6; }
7978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7979 cat >>confdefs.h <<_ACEOF
7980 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7985 for ac_header in curses.h
7987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_res=`eval echo '${'$as_ac_Header'}'`
7995 { echo "$as_me:$LINENO: result: $ac_res" >&5
7996 echo "${ECHO_T}$ac_res" >&6; }
7998 # Is the header compilable?
7999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8008 @%:@include <$ac_header>
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 echo "${ECHO_T}$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 @%:@include <$ac_header>
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } >/dev/null && {
8063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8066 ac_header_preproc=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_header_preproc=no
8074 rm -f conftest.err conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8076 echo "${ECHO_T}$ac_header_preproc" >&6; }
8078 # So? What about this header?
8079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8085 ac_header_preproc=yes
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8101 @%:@@%:@ ------------------------------- @%:@@%:@
8102 @%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
8103 @%:@@%:@ ------------------------------- @%:@@%:@
8105 ) | sed "s/^/$as_me: WARNING: /" >&2
8108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 eval "$as_ac_Header=\$ac_header_preproc"
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8121 cat >>confdefs.h <<_ACEOF
8122 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8126 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8127 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8128 { (exit 1); exit 1; }; }
8145 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8147 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8149 ac_config_files="$ac_config_files stamp-h"
8151 cat >confcache <<\_ACEOF
8152 # This file is a shell script that caches the results of configure
8153 # tests run on this system so they can be shared between configure
8154 # scripts and configure runs, see configure's option --config-cache.
8155 # It is not useful on other systems. If it contains results you don't
8156 # want to keep, you may remove or edit it.
8158 # config.status only pays attention to the cache file if you give it
8159 # the --recheck option to rerun configure.
8161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8167 # The following way of writing the cache mishandles newlines in values,
8168 # but we know of no workaround that is simple, portable, and efficient.
8169 # So, we kill variables containing newlines.
8170 # Ultrix sh set writes to stderr and can't be redirected directly,
8171 # and sets the high bit in the cache file unless we assign to the vars.
8173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8174 eval ac_val=\$$ac_var
8178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8182 _ | IFS | as_nl) ;; #(
8183 *) $as_unset $ac_var ;;
8189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8190 *${as_nl}ac_space=\ *)
8191 # `set' does not quote correctly, so add quotes (double-quote
8192 # substitution turns \\\\ into \\, and sed turns \\ into \).
8195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8198 # `set' quotes correctly as required by POSIX, so do not add quotes.
8199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8213 if test -w "$cache_file"; then
8214 test "x$cache_file" != "x/dev/null" &&
8215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8216 echo "$as_me: updating cache $cache_file" >&6;}
8217 cat confcache >$cache_file
8219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8226 # Let make expand exec_prefix.
8227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8229 DEFS=-DHAVE_CONFIG_H
8233 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
8234 # 1. Remove the extension, and $U if already installed.
8235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8236 ac_i=`echo "$ac_i" | sed "$ac_script"`
8237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8238 # will be set to the directory where LIBOBJS objects are built.
8239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8242 LIB@&t@OBJS=$ac_libobjs
8244 LTLIBOBJS=$ac_ltlibobjs
8248 : ${CONFIG_STATUS=./config.status}
8249 ac_clean_files_save=$ac_clean_files
8250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8253 cat >$CONFIG_STATUS <<_ACEOF
8255 # Generated by $as_me.
8256 # Run this file to recreate the current configuration.
8257 # Compiler output produced by configure, useful for debugging
8258 # configure, is in config.log if it exists.
8263 SHELL=\${CONFIG_SHELL-$SHELL}
8266 cat >>$CONFIG_STATUS <<\_ACEOF
8267 ## --------------------- ##
8268 ## M4sh Initialization. ##
8269 ## --------------------- ##
8271 # Be more Bourne compatible
8272 DUALCASE=1; export DUALCASE # for MKS sh
8273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8277 # is contrary to our usage. Disable this feature.
8278 alias -g '${1+"$@"}'='"$@"'
8279 setopt NO_GLOB_SUBST
8281 case `(set -o) 2>/dev/null` in
8282 *posix*) set -o posix ;;
8291 # Avoid depending upon Character Ranges.
8292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8295 as_cr_digits='0123456789'
8296 as_cr_alnum=$as_cr_Letters$as_cr_digits
8298 # The user is always right.
8299 if test "${PATH_SEPARATOR+set}" != set; then
8300 echo "#! /bin/sh" >conf$$.sh
8301 echo "exit 0" >>conf$$.sh
8303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8311 # Support unset when possible.
8312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8320 # We need space, tab and new line, in precisely that order. Quoting is
8321 # there to prevent editors from complaining about space-tab.
8322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8323 # splitting by setting IFS to empty value.)
8328 # Find who we are. Look in the path if we contain no directory separator.
8330 *[\\/]* ) as_myself=$0 ;;
8331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 test -z "$as_dir" && as_dir=.
8336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8342 # We did not find ourselves, most probably we were run as `sh COMMAND'
8343 # in which case we are not to be found in the path.
8344 if test "x$as_myself" = x; then
8347 if test ! -f "$as_myself"; then
8348 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8349 { (exit 1); exit 1; }
8352 # Work around bugs in pre-3.0 UWIN ksh.
8353 for as_var in ENV MAIL MAILPATH
8354 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8364 LC_TELEPHONE LC_TIME
8366 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8367 eval $as_var=C; export $as_var
8369 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8373 # Required to use basename.
8374 if expr a : '\(a\)' >/dev/null 2>&1 &&
8375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8382 as_basename=basename
8388 # Name of the executable.
8389 as_me=`$as_basename -- "$0" ||
8390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8391 X"$0" : 'X\(//\)$' \| \
8392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8394 sed '/^.*\/\([^/][^/]*\)\/*$/{
8415 test "x$as_lineno_1" != "x$as_lineno_2" &&
8416 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8419 # uniformly replaced by the line number. The first 'sed' inserts a
8420 # line-number line after each line using $LINENO; the second 'sed'
8421 # does the real work. The second script uses 'N' to pair each
8422 # line-number line with the line containing $LINENO, and appends
8423 # trailing '-' during substitution so that $LINENO is not a special
8425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8426 # scripts with optimization help from Paolo Bonzini. Blame Lee
8427 # E. McMahon (1931-1989) for sed's syntax. :-)
8439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8443 chmod +x "$as_me.lineno" ||
8444 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8445 { (exit 1); exit 1; }; }
8447 # Don't try to exec as it changes $[0], causing all sort of problems
8448 # (the dirname of $[0] is not the place where we might find the
8449 # original and so on. Autoconf is especially sensitive to this).
8451 # Exit status is that of the last command.
8456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8462 ECHO_C= ECHO_N= ECHO_T=
8465 case `echo 'x\c'` in
8466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8473 if expr a : '\(a\)' >/dev/null 2>&1 &&
8474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8480 rm -f conf$$ conf$$.exe conf$$.file
8481 if test -d conf$$.dir; then
8482 rm -f conf$$.dir/conf$$.file
8488 if ln -s conf$$.file conf$$ 2>/dev/null; then
8490 # ... but there are two gotchas:
8491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8493 # In both cases, we have to default to `cp -p'.
8494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8496 elif ln conf$$.file conf$$ 2>/dev/null; then
8501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8502 rmdir conf$$.dir 2>/dev/null
8504 if mkdir -p . 2>/dev/null; then
8507 test -d ./-p && rmdir ./-p
8511 if test -x / >/dev/null 2>&1; then
8514 if ls -dL / >/dev/null 2>&1; then
8521 if test -d "$1"; then
8527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8528 ???[sx]*):;;*)false;;esac;fi
8532 as_executable_p=$as_test_x
8534 # Sed expression to map a string onto a valid CPP name.
8535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8537 # Sed expression to map a string onto a valid variable name.
8538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8543 # Save the log message, to keep $[0] and so on meaningful, and to
8544 # report actual input values of CONFIG_FILES etc. instead of their
8545 # values after options handling.
8547 This file was extended by GRUB $as_me 1.95, which was
8548 generated by GNU Autoconf 2.61. Invocation command line was
8550 CONFIG_FILES = $CONFIG_FILES
8551 CONFIG_HEADERS = $CONFIG_HEADERS
8552 CONFIG_LINKS = $CONFIG_LINKS
8553 CONFIG_COMMANDS = $CONFIG_COMMANDS
8556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8561 cat >>$CONFIG_STATUS <<_ACEOF
8562 # Files that config.status was made for.
8563 config_files="$ac_config_files"
8564 config_headers="$ac_config_headers"
8565 config_links="$ac_config_links"
8569 cat >>$CONFIG_STATUS <<\_ACEOF
8571 \`$as_me' instantiates files from templates according to the
8572 current configuration.
8574 Usage: $0 [OPTIONS] [FILE]...
8576 -h, --help print this help, then exit
8577 -V, --version print version number and configuration settings, then exit
8578 -q, --quiet do not print progress messages
8579 -d, --debug don't remove temporary files
8580 --recheck update $as_me by reconfiguring in the same conditions
8581 --file=FILE[:TEMPLATE]
8582 instantiate the configuration file FILE
8583 --header=FILE[:TEMPLATE]
8584 instantiate the configuration header FILE
8586 Configuration files:
8589 Configuration headers:
8592 Configuration links:
8595 Report bugs to <bug-autoconf@gnu.org>."
8598 cat >>$CONFIG_STATUS <<_ACEOF
8600 GRUB config.status 1.95
8601 configured by $0, generated by GNU Autoconf 2.61,
8602 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8604 Copyright (C) 2006 Free Software Foundation, Inc.
8605 This config.status script is free software; the Free Software Foundation
8606 gives unlimited permission to copy, distribute and modify it."
8613 cat >>$CONFIG_STATUS <<\_ACEOF
8614 # If no file are specified by the user, then we need to provide default
8615 # value. By we need to know if files were specified by the user.
8621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8633 # Handling of the options.
8634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8637 echo "$ac_cs_version"; exit ;;
8638 --debug | --debu | --deb | --de | --d | -d )
8640 --file | --fil | --fi | --f )
8642 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8643 ac_need_defaults=false;;
8644 --header | --heade | --head | --hea )
8646 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8647 ac_need_defaults=false;;
8649 # Conflict between --help and --header
8650 { echo "$as_me: error: ambiguous option: $1
8651 Try \`$0 --help' for more information." >&2
8652 { (exit 1); exit 1; }; };;
8653 --help | --hel | -h )
8654 echo "$ac_cs_usage"; exit ;;
8655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8656 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8660 -*) { echo "$as_me: error: unrecognized option: $1
8661 Try \`$0 --help' for more information." >&2
8662 { (exit 1); exit 1; }; } ;;
8664 *) ac_config_targets="$ac_config_targets $1"
8665 ac_need_defaults=false ;;
8671 ac_configure_extra_args=
8673 if $ac_cs_silent; then
8675 ac_configure_extra_args="$ac_configure_extra_args --silent"
8679 cat >>$CONFIG_STATUS <<_ACEOF
8680 if \$ac_cs_recheck; then
8681 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8684 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8688 cat >>$CONFIG_STATUS <<\_ACEOF
8692 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
8693 @%:@@%:@ Running $as_me. @%:@@%:@
8699 cat >>$CONFIG_STATUS <<_ACEOF
8702 cat >>$CONFIG_STATUS <<\_ACEOF
8704 # Handling of arguments.
8705 for ac_config_target in $ac_config_targets
8707 case $ac_config_target in
8708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8709 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8710 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8712 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
8713 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
8714 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8716 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8718 { (exit 1); exit 1; }; };;
8723 # If the user did not use the arguments to specify the items to instantiate,
8724 # then the envvar interface is used. Set only those that are not.
8725 # We use the long form for the default assignment because of an extremely
8726 # bizarre bug on SunOS 4.1.3.
8727 if $ac_need_defaults; then
8728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8730 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8733 # Have a temporary directory for convenience. Make it in the build tree
8734 # simply because there is no reason against having it here, and in addition,
8735 # creating and moving files from /tmp can sometimes cause problems.
8736 # Hook for its removal unless debugging.
8737 # Note that there is a small window in which the directory will not be cleaned:
8738 # after its creation but before its name has been assigned to `$tmp'.
8742 trap 'exit_status=$?
8743 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8745 trap '{ (exit 1); exit 1; }' 1 2 13 15
8747 # Create a (secure) tmp directory for tmp files.
8750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8751 test -n "$tmp" && test -d "$tmp"
8754 tmp=./conf$$-$RANDOM
8755 (umask 077 && mkdir "$tmp")
8758 echo "$me: cannot create a temporary directory in ." >&2
8759 { (exit 1); exit 1; }
8763 # Set up the sed scripts for CONFIG_FILES section.
8766 # No need to generate the scripts if there are no CONFIG_FILES.
8767 # This happens for instance when ./config.status config.h
8768 if test -n "$CONFIG_FILES"; then
8775 for ac_last_try in false false false false false :; do
8776 cat >conf$$subs.sed <<_ACEOF
8777 SHELL!$SHELL$ac_delim
8778 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8779 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8780 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8781 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8782 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8783 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8784 exec_prefix!$exec_prefix$ac_delim
8785 prefix!$prefix$ac_delim
8786 program_transform_name!$program_transform_name$ac_delim
8787 bindir!$bindir$ac_delim
8788 sbindir!$sbindir$ac_delim
8789 libexecdir!$libexecdir$ac_delim
8790 datarootdir!$datarootdir$ac_delim
8791 datadir!$datadir$ac_delim
8792 sysconfdir!$sysconfdir$ac_delim
8793 sharedstatedir!$sharedstatedir$ac_delim
8794 localstatedir!$localstatedir$ac_delim
8795 includedir!$includedir$ac_delim
8796 oldincludedir!$oldincludedir$ac_delim
8797 docdir!$docdir$ac_delim
8798 infodir!$infodir$ac_delim
8799 htmldir!$htmldir$ac_delim
8800 dvidir!$dvidir$ac_delim
8801 pdfdir!$pdfdir$ac_delim
8802 psdir!$psdir$ac_delim
8803 libdir!$libdir$ac_delim
8804 localedir!$localedir$ac_delim
8805 mandir!$mandir$ac_delim
8807 ECHO_C!$ECHO_C$ac_delim
8808 ECHO_N!$ECHO_N$ac_delim
8809 ECHO_T!$ECHO_T$ac_delim
8811 build_alias!$build_alias$ac_delim
8812 host_alias!$host_alias$ac_delim
8813 target_alias!$target_alias$ac_delim
8814 build!$build$ac_delim
8815 build_cpu!$build_cpu$ac_delim
8816 build_vendor!$build_vendor$ac_delim
8817 build_os!$build_os$ac_delim
8819 host_cpu!$host_cpu$ac_delim
8820 host_vendor!$host_vendor$ac_delim
8821 host_os!$host_os$ac_delim
8822 target!$target$ac_delim
8823 target_cpu!$target_cpu$ac_delim
8824 target_vendor!$target_vendor$ac_delim
8825 target_os!$target_os$ac_delim
8826 platform!$platform$ac_delim
8829 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
8830 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8831 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8832 INSTALL_DATA!$INSTALL_DATA$ac_delim
8834 SET_MAKE!$SET_MAKE$ac_delim
8837 CFLAGS!$CFLAGS$ac_delim
8838 LDFLAGS!$LDFLAGS$ac_delim
8839 CPPFLAGS!$CPPFLAGS$ac_delim
8840 ac_ct_CC!$ac_ct_CC$ac_delim
8841 EXEEXT!$EXEEXT$ac_delim
8842 OBJEXT!$OBJEXT$ac_delim
8845 EGREP!$EGREP$ac_delim
8846 LIBLZO!$LIBLZO$ac_delim
8847 TARGET_CC!$TARGET_CC$ac_delim
8848 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
8849 OBJCOPY!$OBJCOPY$ac_delim
8850 STRIP!$STRIP$ac_delim
8852 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
8853 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
8854 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
8855 LIBCURSES!$LIBCURSES$ac_delim
8856 enable_grub_emu!$enable_grub_emu$ac_delim
8857 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
8858 LTLIBOBJS!$LTLIBOBJS$ac_delim
8861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
8863 elif $ac_last_try; then
8864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8866 { (exit 1); exit 1; }; }
8868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8873 if test -n "$ac_eof"; then
8874 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8875 ac_eof=`expr $ac_eof + 1`
8878 cat >>$CONFIG_STATUS <<_ACEOF
8879 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8884 s/^/s,@/; s/!/@,|#_!!_#|/
8887 s/'"$ac_delim"'$/,g/; t
8889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8890 ' >>$CONFIG_STATUS <conf$$subs.sed
8891 rm -f conf$$subs.sed
8892 cat >>$CONFIG_STATUS <<_ACEOF
8899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8901 # trailing colons and then remove the whole line if VPATH becomes empty
8902 # (actually we leave an empty line to preserve line numbers).
8903 if test "x$srcdir" = x.; then
8904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8908 s/^\([^=]*=[ ]*\):*/\1/
8914 cat >>$CONFIG_STATUS <<\_ACEOF
8915 fi # test -n "$CONFIG_FILES"
8918 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
8921 :[FHLC]) ac_mode=$ac_tag; continue;;
8923 case $ac_mode$ac_tag in
8925 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8926 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8927 { (exit 1); exit 1; }; };;
8928 :[FH]-) ac_tag=-:-;;
8929 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8946 -) ac_f="$tmp/stdin";;
8947 *) # Look for the file first in the build tree, then in the source tree
8948 # (if the path is not absolute). The absolute path cannot be DOS-style,
8949 # because $ac_f cannot contain `:'.
8953 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8955 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8956 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8957 { (exit 1); exit 1; }; };;
8959 ac_file_inputs="$ac_file_inputs $ac_f"
8962 # Let's still pretend it is `configure' which instantiates (i.e., don't
8963 # use $as_me), people would be surprised to read:
8964 # /* config.h. Generated by config.status. */
8965 configure_input="Generated from "`IFS=:
8966 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8967 if test x"$ac_file" != x-; then
8968 configure_input="$ac_file. $configure_input"
8969 { echo "$as_me:$LINENO: creating $ac_file" >&5
8970 echo "$as_me: creating $ac_file" >&6;}
8974 *:-:* | *:-) cat >"$tmp/stdin";;
8979 ac_dir=`$as_dirname -- "$ac_file" ||
8980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8981 X"$ac_file" : 'X\(//\)[^/]' \| \
8982 X"$ac_file" : 'X\(//\)$' \| \
8983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9004 -*) as_dir=./$as_dir;;
9006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9010 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9011 *) as_qdir=$as_dir;;
9013 as_dirs="'$as_qdir' $as_dirs"
9014 as_dir=`$as_dirname -- "$as_dir" ||
9015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9016 X"$as_dir" : 'X\(//\)[^/]' \| \
9017 X"$as_dir" : 'X\(//\)$' \| \
9018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9037 test -d "$as_dir" && break
9039 test -z "$as_dirs" || eval "mkdir $as_dirs"
9040 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9042 { (exit 1); exit 1; }; }; }
9046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9049 # A ".." for each directory in $ac_dir_suffix.
9050 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9051 case $ac_top_builddir_sub in
9052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9056 ac_abs_top_builddir=$ac_pwd
9057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9058 # for backward compatibility:
9059 ac_top_builddir=$ac_top_build_prefix
9062 .) # We are building in place.
9064 ac_top_srcdir=$ac_top_builddir_sub
9065 ac_abs_top_srcdir=$ac_pwd ;;
9066 [\\/]* | ?:[\\/]* ) # Absolute name.
9067 ac_srcdir=$srcdir$ac_dir_suffix;
9068 ac_top_srcdir=$srcdir
9069 ac_abs_top_srcdir=$srcdir ;;
9071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9072 ac_top_srcdir=$ac_top_build_prefix$srcdir
9073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9090 cat >>$CONFIG_STATUS <<\_ACEOF
9091 # If the template does not know about datarootdir, expand it.
9092 # FIXME: This hack should be removed a few years after 2.60.
9093 ac_datarootdir_hack=; ac_datarootdir_seen=
9095 case `sed -n '/datarootdir/ {
9104 ' $ac_file_inputs` in
9105 *datarootdir*) ac_datarootdir_seen=yes;;
9106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9107 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9108 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9110 cat >>$CONFIG_STATUS <<_ACEOF
9111 ac_datarootdir_hack='
9112 s&@datadir@&$datadir&g
9113 s&@docdir@&$docdir&g
9114 s&@infodir@&$infodir&g
9115 s&@localedir@&$localedir&g
9116 s&@mandir@&$mandir&g
9117 s&\\\${datarootdir}&$datarootdir&g' ;;
9121 # Neutralize VPATH when `$srcdir' = `.'.
9122 # Shell code in configure.ac might set extrasub.
9123 # FIXME: do we really want to maintain this feature?
9124 cat >>$CONFIG_STATUS <<_ACEOF
9128 cat >>$CONFIG_STATUS <<\_ACEOF
9130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9131 s&@configure_input@&$configure_input&;t t
9132 s&@top_builddir@&$ac_top_builddir_sub&;t t
9133 s&@srcdir@&$ac_srcdir&;t t
9134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9135 s&@top_srcdir@&$ac_top_srcdir&;t t
9136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9137 s&@builddir@&$ac_builddir&;t t
9138 s&@abs_builddir@&$ac_abs_builddir&;t t
9139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9140 s&@INSTALL@&$ac_INSTALL&;t t
9141 $ac_datarootdir_hack
9142 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9147 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9148 which seems to be undefined. Please make sure it is defined." >&5
9149 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9150 which seems to be undefined. Please make sure it is defined." >&2;}
9154 -) cat "$tmp/out"; rm -f "$tmp/out";;
9155 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9164 # Transform confdefs.h into a sed script `conftest.defines', that
9165 # substitutes the proper values into config.h.in to produce config.h.
9166 rm -f conftest.defines conftest.tail
9167 # First, append a space to every undef/define line, to ease matching.
9168 echo 's/$/ /' >conftest.defines
9169 # Then, protect against being on the right side of a sed subst, or in
9170 # an unquoted here document, in config.status. If some macros were
9171 # called several times there might be several #defines for the same
9172 # symbol, which is useless. But do not sort them, since the last
9173 # AC_DEFINE must be honored.
9174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9175 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9176 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9177 # PARAMS is the parameter list in the macro definition--in most cases, it's
9178 # just an empty string.
9179 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9180 ac_dB='\\)[ (].*,\\1define\\2'
9188 s/^[ ]*#[ ]*define[ ][ ]*//
9193 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9194 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9195 ' >>conftest.defines
9197 # Remove the space that was appended to ease matching.
9198 # Then replace #undef with comments. This is necessary, for
9199 # example, in the case of _POSIX_SOURCE, which is predefined and required
9200 # on some systems where configure will not decide to define it.
9201 # (The regexp can be short, since the line contains either #define or #undef.)
9203 s,^[ #]*u.*,/* & */,' >>conftest.defines
9205 # Break up conftest.defines:
9208 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9209 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9210 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9212 ac_in='$ac_file_inputs'
9213 ac_out='"$tmp/out1"'
9214 ac_nxt='"$tmp/out2"'
9218 # Write a here document:
9219 cat >>$CONFIG_STATUS <<_ACEOF
9220 # First, check the format of the line:
9221 cat >"\$tmp/defines.sed" <<\\CEOF
9222 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9223 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9227 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9229 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9230 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9231 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9232 grep . conftest.tail >/dev/null || break
9233 rm -f conftest.defines
9234 mv conftest.tail conftest.defines
9236 rm -f conftest.defines conftest.tail
9238 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9239 cat >>$CONFIG_STATUS <<\_ACEOF
9240 if test x"$ac_file" != x-; then
9241 echo "/* $configure_input */" >"$tmp/config.h"
9242 cat "$ac_result" >>"$tmp/config.h"
9243 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9244 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9245 echo "$as_me: $ac_file is unchanged" >&6;}
9248 mv "$tmp/config.h" $ac_file
9251 echo "/* $configure_input */"
9261 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9262 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9264 if test ! -r "$srcdir/$ac_source"; then
9265 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9266 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9267 { (exit 1); exit 1; }; }
9271 # Try a relative symlink, then a hard link, then a copy.
9273 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9274 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9276 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9277 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9278 cp -p "$srcdir/$ac_source" "$ac_file" ||
9279 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9280 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9281 { (exit 1); exit 1; }; }
9287 case $ac_file$ac_mode in
9288 "stamp-h":F) echo timestamp > stamp-h ;;
9294 { (exit 0); exit 0; }
9296 chmod +x $CONFIG_STATUS
9297 ac_clean_files=$ac_clean_files_save
9300 # configure is writing to config.log, and then calls config.status.
9301 # config.status does its own redirection, appending to config.log.
9302 # Unfortunately, on DOS this fails, as config.log is still kept open
9303 # by configure, so config.status won't be able to write to it; its
9304 # output is simply discarded. So we exec the FD to /dev/null,
9305 # effectively closing config.log, so it can be properly (re)opened and
9306 # appended to by config.status. When coming back to configure, we
9307 # need to make the FD available again.
9308 if test "$no_create" != yes; then
9310 ac_config_status_args=
9311 test "$silent" = yes &&
9312 ac_config_status_args="$ac_config_status_args --quiet"
9314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9317 # would make configure fail if this is the last instruction.
9318 $ac_cs_success || { (exit 1); exit 1; }