2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 1.96.
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.96'
578 PACKAGE_STRING
='GRUB 1.96'
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
709 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
790 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
793 -build |
--build |
--buil |
--bui |
--bu)
794 ac_prev
=build_alias
;;
795 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
799 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
800 ac_prev
=cache_file
;;
801 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
802 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir |
--datadir |
--datadi |
--datad)
810 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
814 |
--dataroo |
--dataro |
--datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
817 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* |
--disable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=no
;;
829 -docdir |
--docdir |
--docdi |
--doc |
--do)
831 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
834 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
836 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
839 -enable-* |
--enable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=\
$ac_optarg ;;
848 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
849 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
850 |
--exec |
--exe |
--ex)
851 ac_prev
=exec_prefix
;;
852 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
853 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
854 |
--exec=* |
--exe=* |
--ex=*)
855 exec_prefix
=$ac_optarg ;;
857 -gas |
--gas |
--ga |
--g)
858 # Obsolete; use --with-gas.
861 -help |
--help |
--hel |
--he |
-h)
863 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
864 ac_init_help
=recursive
;;
865 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
866 ac_init_help
=short
;;
868 -host |
--host |
--hos |
--ho)
869 ac_prev
=host_alias
;;
870 -host=* |
--host=* |
--hos=* |
--ho=*)
871 host_alias
=$ac_optarg ;;
873 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
875 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
877 htmldir
=$ac_optarg ;;
879 -includedir |
--includedir |
--includedi |
--included |
--include \
880 |
--includ |
--inclu |
--incl |
--inc)
881 ac_prev
=includedir
;;
882 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
883 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
884 includedir
=$ac_optarg ;;
886 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
888 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
889 infodir
=$ac_optarg ;;
891 -libdir |
--libdir |
--libdi |
--libd)
893 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
896 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
897 |
--libexe |
--libex |
--libe)
898 ac_prev
=libexecdir
;;
899 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
900 |
--libexe=* |
--libex=* |
--libe=*)
901 libexecdir
=$ac_optarg ;;
903 -localedir |
--localedir |
--localedi |
--localed |
--locale)
905 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
906 localedir
=$ac_optarg ;;
908 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
909 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
910 ac_prev
=localstatedir
;;
911 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
912 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
913 localstatedir
=$ac_optarg ;;
915 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
917 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
921 # Obsolete; use --without-fp.
924 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
925 |
--no-cr |
--no-c |
-n)
928 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
929 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
932 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
933 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
934 |
--oldin |
--oldi |
--old |
--ol |
--o)
935 ac_prev
=oldincludedir
;;
936 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
937 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
938 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
939 oldincludedir
=$ac_optarg ;;
941 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
943 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
946 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
947 |
--program-pre |
--program-pr |
--program-p)
948 ac_prev
=program_prefix
;;
949 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
950 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
951 program_prefix
=$ac_optarg ;;
953 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
954 |
--program-suf |
--program-su |
--program-s)
955 ac_prev
=program_suffix
;;
956 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
957 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
958 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
968 -program-transform-name=* |
--program-transform-name=* \
969 |
--program-transform-nam=* |
--program-transform-na=* \
970 |
--program-transform-n=* |
--program-transform-=* \
971 |
--program-transform=* |
--program-transfor=* \
972 |
--program-transfo=* |
--program-transf=* \
973 |
--program-trans=* |
--program-tran=* \
974 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
975 program_transform_name
=$ac_optarg ;;
977 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
979 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
982 -psdir |
--psdir |
--psdi |
--psd |
--ps)
984 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
988 |
-silent |
--silent |
--silen |
--sile |
--sil)
991 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
993 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
995 sbindir
=$ac_optarg ;;
997 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
998 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
999 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1001 ac_prev
=sharedstatedir
;;
1002 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1003 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1004 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1006 sharedstatedir
=$ac_optarg ;;
1008 -site |
--site |
--sit)
1010 -site=* |
--site=* |
--sit=*)
1013 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1015 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1016 srcdir
=$ac_optarg ;;
1018 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1019 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1020 ac_prev
=sysconfdir
;;
1021 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1022 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1023 sysconfdir
=$ac_optarg ;;
1025 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1026 ac_prev
=target_alias
;;
1027 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1028 target_alias
=$ac_optarg ;;
1030 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1033 -version |
--version |
--versio |
--versi |
--vers |
-V)
1034 ac_init_version
=: ;;
1037 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=\
$ac_optarg ;;
1045 -without-* |
--without-*)
1046 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_
$ac_package=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1059 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1062 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1066 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1069 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val
=\$
$ac_var
1111 [\\/$
]* | ?
:[\\/]* ) continue;;
1112 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target
=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x
; then
1127 if test "x$build_alias" = x
; then
1128 cross_compiling
=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1139 test "$silent" = yes && exec 6>/dev
/null
1142 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di
=`ls -di .` &&
1144 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted
=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir
=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1184 ac_srcdir_defaulted
=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1204 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 for ac_var
in $ac_precious_vars; do
1207 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1209 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1220 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1283 --build=BUILD configure
for building on BUILD
[guessed
]
1284 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1285 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive
) echo "Configuration of GRUB 1.96:";;
1296 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1297 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1298 --disable-largefile omit support
for large files
1299 --enable-lzo use lzo to
compress kernel
(default is lzma
)
1300 --enable-mm-debug include memory manager debugging
1301 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1302 --enable-grub-fstest build and install the `grub-fstest
' debugging
1304 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1308 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1309 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1310 --with-platform=PLATFORM
1311 select the
host platform
[guessed
]
1313 Some influential environment variables
:
1314 CC C compiler
command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1317 nonstandard directory
<lib dir
>
1318 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1319 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1320 you have headers
in a nonstandard directory
<include dir
>
1323 Use these variables to override the choices made by
`configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1326 Report bugs to <bug-grub@gnu.org>.
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" || continue
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1354 .) # We are building in place.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1388 generated by GNU Autoconf 2.61
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by GRUB $as_me 1.96, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1414 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1415 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1416 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1417 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1418 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1420 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1421 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1423 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1424 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1425 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1426 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1427 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1428 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1429 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1462 ac_must_keep_next=false
1468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470 | -silent | --silent | --silen | --sile | --sil)
1473 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1476 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true; then
1480 ac_must_keep_next=false # Got value, back to normal.
1483 *=* | --config-cache | -C | -disable-* | --disable-* \
1484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486 | -with-* | --with-* | -without-* | --without-* | --x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1491 -* ) ac_must_keep_next=true ;;
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1521 eval ac_val=\$$ac_var
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1535 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1559 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 echo "$ac_var='\''$ac_val'\''"
1565 if test -n "$ac_subst_files"; then
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1576 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 echo "$ac_var='\''$ac_val'\''"
1583 if test -s confdefs.h; then
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1674 # Check that the precious variables saved in the cache have kept the same
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679 eval ac_new_set=\$ac_env_${ac_var}_set
1680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681 eval ac_new_val=\$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1685 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1689 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1696 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1697 echo "$as_me: former value
: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1699 echo "$as_me: current value
: $ac_new_val" >&2;}
1700 ac_cache_corrupted=:
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1717 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1718 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 ac_config_headers="$ac_config_headers config.h"
1759 # Checks for host and target systems.
1761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1762 if test -f "$ac_dir/install-sh"; then
1764 ac_install_sh="$ac_aux_dir/install-sh -c"
1766 elif test -f "$ac_dir/install.sh"; then
1768 ac_install_sh="$ac_aux_dir/install.sh -c"
1770 elif test -f "$ac_dir/shtool"; then
1772 ac_install_sh="$ac_aux_dir/shtool install -c"
1776 if test -z "$ac_aux_dir"; then
1777 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1778 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1779 { (exit 1); exit 1; }; }
1782 # These three variables are undocumented and unsupported,
1783 # and are intended to be withdrawn in a future Autoconf release.
1784 # They can cause serious problems if a builder's source tree is in a directory
1785 # whose full name contains unusual characters.
1786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1791 # Make sure we can run config.sub.
1792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1793 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1795 { (exit 1); exit 1; }; }
1797 { echo "$as_me:$LINENO: checking build system type" >&5
1798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_build+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 ac_build_alias=$build_alias
1803 test "x$ac_build_alias" = x &&
1804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1805 test "x$ac_build_alias" = x &&
1806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1808 { (exit 1); exit 1; }; }
1809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1810 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1816 echo "${ECHO_T}$ac_cv_build" >&6; }
1817 case $ac_cv_build in
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1820 echo "$as_me: error: invalid value of canonical build" >&2;}
1821 { (exit 1); exit 1; }; };;
1824 ac_save_IFS=$IFS; IFS='-'
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1834 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1837 { echo "$as_me:$LINENO: checking host system type" >&5
1838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_host+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test "x$host_alias" = x; then
1843 ac_cv_host=$ac_cv_build
1845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1848 { (exit 1); exit 1; }; }
1852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6; }
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1857 echo "$as_me: error: invalid value of canonical host" >&2;}
1858 { (exit 1); exit 1; }; };;
1861 ac_save_IFS=$IFS; IFS='-'
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1871 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1874 { echo "$as_me:$LINENO: checking target system type" >&5
1875 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1876 if test "${ac_cv_target+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test "x$target_alias" = x; then
1880 ac_cv_target=$ac_cv_host
1882 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1885 { (exit 1); exit 1; }; }
1889 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1890 echo "${ECHO_T}$ac_cv_target" >&6; }
1891 case $ac_cv_target in
1893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1894 echo "$as_me: error: invalid value of canonical target" >&2;}
1895 { (exit 1); exit 1; }; };;
1897 target=$ac_cv_target
1898 ac_save_IFS=$IFS; IFS='-'
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1908 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
1911 # The aliases save the names the user supplied, while $host etc.
1912 # will get canonicalized.
1913 test -n "$target_alias" &&
1914 test "$program_prefix$program_suffix$program_transform_name" = \
1916 program_prefix=${target_alias}-
1918 # Program name transformations
1919 test "$program_prefix" != NONE &&
1920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1921 # Use a double $ so make ignores it.
1922 test "$program_suffix" != NONE &&
1923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1924 # Double any \ or $. echo might interpret backslashes.
1925 # By default was `s
,x
,x
', remove it if useless.
1926 cat <<\_ACEOF >conftest.sed
1927 s/[\\$]/&&/g;s/;s,x,x,$//
1929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1934 powerpc64) host_m32=1 ;;
1937 case "$target_cpu" in
1938 i[3456]86) target_cpu=i386 ;;
1941 # Specify the platform (such as firmware).
1943 # Check whether --with-platform was given.
1944 if test "${with_platform+set}" = set; then
1945 withval=$with_platform;
1949 # Guess the platform if not specified.
1950 if test "x$with_platform" = x; then
1951 case "$target_cpu"-"$target_vendor" in
1952 i386-apple) platform=efi ;;
1953 i386-*) platform=pc ;;
1954 x86_64-apple) platform=efi ;;
1955 x86_64-*) platform=pc ;;
1956 powerpc-*) platform=ieee1275 ;;
1957 powerpc64-*) platform=ieee1275 ;;
1958 sparc64-*) platform=ieee1275 ;;
1959 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1960 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1961 { (exit 1); exit 1; }; } ;;
1964 platform="$with_platform"
1967 # Adjust CPU unless target was explicitly specified.
1968 if test -z "$target_alias"; then
1969 case "$target_cpu"-"$platform" in
1971 x86_64-*) target_cpu=i386 ;;
1972 powerpc64-ieee1275) target_cpu=powerpc ;;
1976 # Check if the platform is supported, make final adjustments.
1977 case "$target_cpu"-"$platform" in
1982 i386-linuxbios) platform=coreboot ;;
1984 powerpc-ieee1275) ;;
1985 sparc64-ieee1275) ;;
1986 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1987 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1988 { (exit 1); exit 1; }; } ;;
1991 case "$target_cpu" in
1992 i386 | powerpc) target_m32=1 ;;
1993 x86_64 | sparc64) target_m64=1 ;;
1997 mingw32) host_os=cygwin ;;
2000 case "$target_os" in
2001 mingw32) target_os=cygwin ;;
2009 # Checks for build programs.
2012 # Although cmp is listed in the GNU Coding Standards as a command which
2013 # can used directly, OpenBSD lacks cmp in the default installation.
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_CMP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$CMP"; then
2024 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CMP="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 if test -n "$CMP"; then
2045 { echo "$as_me:$LINENO: result: $CMP" >&5
2046 echo "${ECHO_T}$CMP" >&6; }
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$CMP" && break
2056 if test "x$CMP" = x; then
2057 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2058 echo "$as_me: error: cmp is not found" >&2;}
2059 { (exit 1); exit 1; }; }
2062 for ac_prog in bison
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_YACC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test -n "$YACC"; then
2072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_YACC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 YACC=$ac_cv_prog_YACC
2092 if test -n "$YACC"; then
2093 { echo "$as_me:$LINENO: result: $YACC" >&5
2094 echo "${ECHO_T}$YACC" >&6; }
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2101 test -n "$YACC" && break
2104 if test "x$YACC" = x; then
2105 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2106 echo "$as_me: error: bison is not found" >&2;}
2107 { (exit 1); exit 1; }; }
2110 for file in /usr/share/unifont/unifont.hex ; do
2111 if test -e $file ; then
2118 # Find a good install program. We prefer a C program (faster),
2119 # so one script is as good as another. But avoid the broken or
2120 # incompatible versions:
2121 # SysV /etc/install, /usr/sbin/install
2122 # SunOS /usr/etc/install
2123 # IRIX /sbin/install
2125 # AmigaOS /C/install, which installs bootblocks on floppy discs
2126 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129 # OS/2's system install, which has a completely different semantic
2130 # ./install, which can be erroneously created by make from ./install.sh.
2131 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2133 if test -z "$INSTALL"; then
2134 if test "${ac_cv_path_install+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir
=.
2142 # Account for people who put trailing slashes in PATH elements.
2144 .
/ | .
// |
/cC
/* | \
2145 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2146 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2152 for ac_prog
in ginstall scoinst
install; do
2153 for ac_exec_ext
in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2159 elif test $ac_prog = install &&
2160 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2164 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2177 if test "${ac_cv_path_install+set}" = set; then
2178 INSTALL
=$ac_cv_path_install
2180 # As a last resort, use the slow shell script. Don't cache a
2181 # value for INSTALL within a source directory, because that will
2182 # break other packages using the cache if that directory is
2183 # removed, or if the value is a relative name.
2184 INSTALL
=$ac_install_sh
2187 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2188 echo "${ECHO_T}$INSTALL" >&6; }
2190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191 # It thinks the first close brace ends the variable substitution.
2192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2196 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2198 for ac_prog
in gawk mawk nawk
awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy
$ac_prog; ac_word
=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 for ac_exec_ext
in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK
="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$AWK" && break
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 cat >conftest.
make <<\_ACEOF
2249 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2254 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2256 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2260 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE
="MAKE=${MAKE-make}"
2271 # These are not a "must".
2272 # Extract the first word of "ruby", so it can be a program name with args.
2273 set dummy ruby
; ac_word
=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_path_RUBY+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir
=.
2289 for ac_exec_ext
in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 RUBY
=$ac_cv_path_RUBY
2303 if test -n "$RUBY"; then
2304 { echo "$as_me:$LINENO: result: $RUBY" >&5
2305 echo "${ECHO_T}$RUBY" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 # Extract the first word of "help2man", so it can be a program name with args.
2313 set dummy help2man
; ac_word
=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir
=.
2329 for ac_exec_ext
in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 HELP2MAN
=$ac_cv_path_HELP2MAN
2343 if test -n "$HELP2MAN"; then
2344 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2345 echo "${ECHO_T}$HELP2MAN" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2354 # Checks for host programs.
2358 ac_cpp
='$CPP $CPPFLAGS'
2359 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC
="$CC" # Let the user override the test.
2373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir
=.
2378 for ac_exec_ext
in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_CC"; then
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc
; ac_word
=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir
=.
2418 for ac_exec_ext
in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_CC
="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x
; then
2442 case $cross_compiling:$ac_tool_warned in
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned
=yes ;;
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC
="$CC" # Let the user override the test.
2470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir
=.
2475 for ac_exec_ext
in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2499 if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc
; ac_word
=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC
="$CC" # Let the user override the test.
2511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir
=.
2516 for ac_exec_ext
in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected
=yes
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy
$ac_cv_prog_CC
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2539 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog
in cl.exe
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC
="$CC" # Let the user override the test.
2569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir
=.
2574 for ac_exec_ext
in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2596 test -n "$CC" && break
2599 if test -z "$CC"; then
2601 for ac_prog
in cl.exe
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy
$ac_prog; ac_word
=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir
=.
2618 for ac_exec_ext
in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC
="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$ac_ct_CC" && break
2643 if test "x$ac_ct_CC" = x
; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned
=yes ;;
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler
=`set X $ac_compile; echo $2`
2672 { (ac_try
="$ac_compiler --version >&5"
2674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2685 *) ac_try_echo
=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (ac_try
="$ac_compiler -V >&5"
2694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2703 cat >conftest.$ac_ext <<_ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2729 # only as a last resort. b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions. Remove them first so a
2734 # subsequent execution test works.
2736 for ac_file in $ac_files
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745 if { (ac_try="$ac_link_default"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2760 for ac_file
in $ac_files ''
2762 test -f "$ac_file" ||
continue
2764 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2767 # We found the default executable, but exeext='' is most
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2773 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2785 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2791 { echo "$as_me:$LINENO: result: $ac_file" >&5
2792 echo "${ECHO_T}$ac_file" >&6; }
2793 if test -z "$ac_file"; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: C compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }
2804 ac_exeext
=$ac_cv_exeext
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try
='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2825 if test "$cross_compiling" = maybe; then
2828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details.
" >&5
2831 echo "$as_me: error
: cannot run C compiled programs.
2832 If you meant to cross compile
, use \
`--host'.
2833 See \`config.log
' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2866 for ac_file
in conftest.exe conftest conftest.
*; do
2867 test -f "$ac_file" ||
continue
2869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2870 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2883 rm -f conftest
$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887 rm -f conftest.
$ac_ext
2888 EXEEXT
=$ac_cv_exeext
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 cat >conftest.
$ac_ext <<_ACEOF
2898 cat confdefs.h
>>conftest.
$ac_ext
2899 cat >>conftest.
$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try
="$ac_compile"
2913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log
' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details.
" >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached
) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2988 echo "$as_me: failed program was
:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000 GCC=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CFLAGS=${CFLAGS+set}
3002 ac_save_CFLAGS=$CFLAGS
3003 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3004 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached
) $ECHO_C" >&6
3008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3046 echo "$as_me: failed program was
:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3084 echo "$as_me: failed program was
:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3123 echo "$as_me: failed program was
:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3140 if test "$ac_test_CFLAGS" = set; then
3141 CFLAGS=$ac_save_CFLAGS
3142 elif test $ac_cv_prog_cc_g = yes; then
3143 if test "$GCC" = yes; then
3149 if test "$GCC" = yes; then
3155 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3156 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_c89+set}" = set; then
3158 echo $ECHO_N "(cached
) $ECHO_C" >&6
3160 ac_cv_prog_cc_c89=no
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3173 struct buf { int x; };
3174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3175 static char *e (p, i)
3181 static char *f (char * (*g) (char **, int), char **p, ...)
3186 s = g (p, va_arg (v,int));
3191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3192 function prototypes and stuff, but not '\xHH' hex character constants.
3193 These don't provoke an error unfortunately, instead are silently treated
3194 as 'x'. The following induces an error, until -std is added to get
3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3196 array size at least. It's necessary to write '\x00'==0 to get something
3197 that's true only with -std. */
3198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3201 inside strings and character constants. */
3203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205 int test (int i, double x);
3206 struct s1 {int (*f) (int a);};
3207 struct s2 {int (*f) (double a);};
3208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 CC="$ac_save_CC $ac_arg"
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_c89=$ac_arg
3242 echo "$as_me: failed program was
:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3251 rm -f conftest.$ac_ext
3256 case "x
$ac_cv_prog_cc_c89" in
3258 { echo "$as_me:$LINENO: result
: none needed
" >&5
3259 echo "${ECHO_T}none needed
" >&6; } ;;
3261 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3262 echo "${ECHO_T}unsupported
" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3278 echo "$as_me: error
: GCC is required
" >&2;}
3279 { (exit 1); exit 1; }; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _GNU_SOURCE 1
3288 # Check whether --enable-largefile was given.
3289 if test "${enable_largefile+set}" = set; then
3290 enableval=$enable_largefile;
3293 if test "$enable_largefile" != no; then
3295 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3296 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3297 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3298 echo $ECHO_N "(cached
) $ECHO_C" >&6
3300 ac_cv_sys_largefile_CC=no
3301 if test "$GCC" != yes; then
3304 # IRIX 6.2 and later do not support large files by default,
3305 # so use the C compiler's -n32 option if that helps.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <sys/types.h>
3313 /* Check that off_t can represent 2**63 - 1 correctly.
3314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3315 since some C++ compilers masquerading as C compilers
3316 incorrectly reject 9223372036854775807. */
3317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3319 && LARGE_OFF_T % 2147483647 == 1)
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3348 echo "$as_me: failed program was
:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 ac_cv_sys_largefile_CC=' -n32'; break
3375 echo "$as_me: failed program was
:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext
3385 rm -f conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3389 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3390 if test "$ac_cv_sys_largefile_CC" != no; then
3391 CC=$CC$ac_cv_sys_largefile_CC
3394 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3395 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3396 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3397 echo $ECHO_N "(cached
) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_sys_file_offset_bits=no; break
3442 echo "$as_me: failed program was
:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #define _FILE_OFFSET_BITS 64
3456 #include <sys/types.h>
3457 /* Check that off_t can represent 2**63 - 1 correctly.
3458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3459 since some C++ compilers masquerading as C compilers
3460 incorrectly reject 9223372036854775807. */
3461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3463 && LARGE_OFF_T % 2147483647 == 1)
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv_sys_file_offset_bits=64; break
3492 echo "$as_me: failed program was
:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_sys_file_offset_bits=unknown
3503 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3505 case $ac_cv_sys_file_offset_bits in #(
3508 cat >>confdefs.h <<_ACEOF
3509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3514 if test $ac_cv_sys_file_offset_bits = unknown; then
3515 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3516 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3517 if test "${ac_cv_sys_large_files+set}" = set; then
3518 echo $ECHO_N "(cached
) $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 /* Check that off_t can represent 2**63 - 1 correctly.
3529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530 since some C++ compilers masquerading as C compilers
3531 incorrectly reject 9223372036854775807. */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534 && LARGE_OFF_T % 2147483647 == 1)
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 ac_cv_sys_large_files=no; break
3563 echo "$as_me: failed program was
:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #define _LARGE_FILES 1
3577 #include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 ac_cv_sys_large_files=1; break
3613 echo "$as_me: failed program was
:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_sys_large_files=unknown
3624 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3625 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3626 case $ac_cv_sys_large_files in #(
3629 cat >>confdefs.h <<_ACEOF
3630 #define _LARGE_FILES $ac_cv_sys_large_files
3639 # Identify characteristics of the host architecture.
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached
) $ECHO_C" >&6
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error
" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3692 (exit $ac_status); } >/dev/null && {
3693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3698 echo "$as_me: failed program was
:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3717 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3729 (exit $ac_status); } >/dev/null && {
3730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3733 # Broken: success on invalid input.
3736 echo "$as_me: failed program was
:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Passes both tests.
3744 rm -f conftest.err conftest.$ac_ext
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3761 { echo "$as_me:$LINENO: result
: $CPP" >&5
3762 echo "${ECHO_T}$CPP" >&6; }
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error
" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was
:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was
:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3857 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3858 See \
`config.log' for more details." >&5
3859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log
' for more details." >&2;}
3861 { (exit 1); exit 1; }; }
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3867 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3872 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # Extract the first word of "grep ggrep" to use in msg output
3877 if test -z "$GREP"; then
3878 set dummy grep ggrep; ac_prog_name=$2
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_path_GREP_found=false
3883 # Loop through the user's path and
test for each of PROGNAME-LIST
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3885 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3888 test -z "$as_dir" && as_dir
=.
3889 for ac_prog
in grep ggrep
; do
3890 for ac_exec_ext
in '' $ac_executable_extensions; do
3891 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3892 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3893 # Check for GNU ac_path_GREP and select it if it is found.
3894 # Check for GNU $ac_path_GREP
3895 case `"$ac_path_GREP" --version 2>&1` in
3897 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3900 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3903 cat "conftest.in" "conftest.in" >"conftest.tmp"
3904 mv "conftest.tmp" "conftest.in"
3905 cp "conftest.in" "conftest.nl"
3906 echo 'GREP' >> "conftest.nl"
3907 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3908 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3909 ac_count
=`expr $ac_count + 1`
3910 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3911 # Best one so far, save it but keep looking for a better one
3912 ac_cv_path_GREP
="$ac_path_GREP"
3913 ac_path_GREP_max
=$ac_count
3915 # 10*(2^10) chars as input seems more than enough
3916 test $ac_count -gt 10 && break
3918 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3922 $ac_path_GREP_found && break 3
3932 GREP
="$ac_cv_path_GREP"
3933 if test -z "$GREP"; then
3934 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3935 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3936 { (exit 1); exit 1; }; }
3940 ac_cv_path_GREP
=$GREP
3945 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3947 GREP
="$ac_cv_path_GREP"
3950 { echo "$as_me:$LINENO: checking for egrep" >&5
3951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3956 then ac_cv_path_EGREP
="$GREP -E"
3958 # Extract the first word of "egrep" to use in msg output
3959 if test -z "$EGREP"; then
3960 set dummy
egrep; ac_prog_name
=$2
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 ac_path_EGREP_found
=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3967 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3970 test -z "$as_dir" && as_dir
=.
3971 for ac_prog
in egrep; do
3972 for ac_exec_ext
in '' $ac_executable_extensions; do
3973 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3975 # Check for GNU ac_path_EGREP and select it if it is found.
3976 # Check for GNU $ac_path_EGREP
3977 case `"$ac_path_EGREP" --version 2>&1` in
3979 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3982 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3985 cat "conftest.in" "conftest.in" >"conftest.tmp"
3986 mv "conftest.tmp" "conftest.in"
3987 cp "conftest.in" "conftest.nl"
3988 echo 'EGREP' >> "conftest.nl"
3989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3990 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3991 ac_count
=`expr $ac_count + 1`
3992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3993 # Best one so far, save it but keep looking for a better one
3994 ac_cv_path_EGREP
="$ac_path_EGREP"
3995 ac_path_EGREP_max
=$ac_count
3997 # 10*(2^10) chars as input seems more than enough
3998 test $ac_count -gt 10 && break
4000 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4004 $ac_path_EGREP_found && break 3
4014 EGREP
="$ac_cv_path_EGREP"
4015 if test -z "$EGREP"; then
4016 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4018 { (exit 1); exit 1; }; }
4022 ac_cv_path_EGREP
=$EGREP
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4030 EGREP
="$ac_cv_path_EGREP"
4033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4035 if test "${ac_cv_header_stdc+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 cat >conftest.
$ac_ext <<_ACEOF
4041 cat confdefs.h
>>conftest.
$ac_ext
4042 cat >>conftest.
$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4057 rm -f conftest.
$ac_objext
4058 if { (ac_try
="$ac_compile"
4060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_header_stdc=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_header_stdc=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "memchr" >/dev/null 2>&1; then
4099 ac_cv_header_stdc=no
4105 if test $ac_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "free" >/dev/null 2>&1; then
4120 ac_cv_header_stdc=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4162 rm -f conftest$ac_exeext
4163 if { (ac_try="$ac_link"
4165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4166 *) ac_try_echo
=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_link") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4173 { (case "(($ac_try" in
4174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4184 echo "$as_me: program exited with status $ac_status" >&5
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_header_stdc=no
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define STDC_HEADERS 1
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4240 *) ac_try_echo
=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1
>conftest.err
4247 cat conftest.err
>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest.
$ac_objext; then
4253 eval "$as_ac_Header=yes"
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.
$ac_ext >&5
4258 eval "$as_ac_Header=no"
4261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4263 ac_res
=`eval echo '${'$as_ac_Header'}'`
4264 { echo "$as_me:$LINENO: result: $ac_res" >&5
4265 echo "${ECHO_T}$ac_res" >&6; }
4266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4267 cat >>confdefs.h
<<_ACEOF
4268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4278 if test "${ac_cv_c_bigendian+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 # See if sys/param.h defines the BYTE_ORDER macro.
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/param.h>
4294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4295 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4303 rm -f conftest.
$ac_objext
4304 if { (ac_try
="$ac_compile"
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <sys/types.h>
4328 #include <sys/param.h>
4333 #if BYTE_ORDER != BIG_ENDIAN
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4345 *) ac_try_echo
=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1
>conftest.err
4352 cat conftest.err
>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.
$ac_objext; then
4358 ac_cv_c_bigendian
=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4363 ac_cv_c_bigendian
=no
4366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.
$ac_ext >&5
4371 # It does not; compile a test program.
4372 if test "$cross_compiling" = yes; then
4373 # try to guess the endianness by grepping values into an object file
4374 ac_cv_c_bigendian
=unknown
4375 cat >conftest.
$ac_ext <<_ACEOF
4378 cat confdefs.h
>>conftest.
$ac_ext
4379 cat >>conftest.
$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4382 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4383 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4384 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4385 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4386 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4390 _ascii (); _ebcdic ();
4395 rm -f conftest.
$ac_objext
4396 if { (ac_try
="$ac_compile"
4398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4413 ac_cv_c_bigendian=yes
4415 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4416 if test "$ac_cv_c_bigendian" = unknown; then
4417 ac_cv_c_bigendian=no
4419 # finding both strings is unlikely to happen, but who knows?
4420 ac_cv_c_bigendian=unknown
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4443 /* Are we little or big endian? From Harbison&Steele. */
4447 char c[sizeof (long int)];
4450 return u.c[sizeof (long int) - 1] == 1;
4456 rm -f conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4460 *) ac_try_echo
=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4467 { (case "(($ac_try" in
4468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_bigendian=no
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_c_bigendian=yes
4485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4494 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4495 case $ac_cv_c_bigendian in
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4505 { { echo "$as_me:$LINENO: error: unknown endianness
4506 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4507 echo "$as_me: error: unknown endianness
4508 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4512 { echo "$as_me:$LINENO: checking for void *" >&5
4513 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4514 if test "${ac_cv_type_void_p+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 typedef void * ac__type_new_;
4528 if ((ac__type_new_ *) 0)
4530 if (sizeof (ac__type_new_))
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4540 *) ac_try_echo
=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1
>conftest.err
4547 cat conftest.err
>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.
$ac_objext; then
4553 ac_cv_type_void_p
=yes
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_cv_type_void_p
=no
4561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4564 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4566 # The cast to long int works around a bug in the HP C Compiler
4567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4569 # This bug is HP SR number 8606223364.
4570 { echo "$as_me:$LINENO: checking size of void *" >&5
4571 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4572 if test "${ac_cv_sizeof_void_p+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 if test "$cross_compiling" = yes; then
4576 # Depending upon the size, compute the lo and hi bounds.
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 typedef void * ac__type_sizeof_;
4588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4595 rm -f conftest.
$ac_objext
4596 if { (ac_try
="$ac_compile"
4598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4614 cat >conftest.$ac_ext <<_ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 typedef void * ac__type_sizeof_;
4625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4636 *) ac_try_echo
=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1
>conftest.err
4643 cat conftest.err
>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.
$ac_objext; then
4649 ac_hi
=$ac_mid; break
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_lo
=`expr $ac_mid + 1`
4655 if test $ac_lo -le $ac_mid; then
4659 ac_mid
=`expr 2 '*' $ac_mid + 1`
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 cat >conftest.
$ac_ext <<_ACEOF
4671 cat confdefs.h
>>conftest.
$ac_ext
4672 cat >>conftest.
$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 typedef void * ac__type_sizeof_;
4679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4686 rm -f conftest.
$ac_objext
4687 if { (ac_try
="$ac_compile"
4689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4712 typedef void * ac__type_sizeof_;
4716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4727 *) ac_try_echo
=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1
>conftest.err
4734 cat conftest.err
>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.
$ac_objext; then
4740 ac_lo
=$ac_mid; break
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.
$ac_ext >&5
4745 ac_hi
=`expr '(' $ac_mid ')' - 1`
4746 if test $ac_mid -le $ac_hi; then
4750 ac_mid
=`expr 2 '*' $ac_mid`
4753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 # Binary search between lo and hi bounds.
4767 while test "x$ac_lo" != "x$ac_hi"; do
4768 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4769 cat >conftest.
$ac_ext <<_ACEOF
4772 cat confdefs.h
>>conftest.
$ac_ext
4773 cat >>conftest.
$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 $ac_includes_default
4776 typedef void * ac__type_sizeof_;
4780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4787 rm -f conftest.
$ac_objext
4788 if { (ac_try
="$ac_compile"
4790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_lo=`expr '(' $ac_mid ')' + 1`
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4816 '') if test "$ac_cv_type_void_p" = yes; then
4817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4818 See \`config.log
' for more details." >&5
4819 echo "$as_me: error: cannot compute sizeof (void *)
4820 See \`config.log' for more details.
" >&2;}
4821 { (exit 77); exit 77; }; }
4823 ac_cv_sizeof_void_p=0
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 typedef void * ac__type_sizeof_;
4835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4843 FILE *f = fopen ("conftest.val
", "w
");
4846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4848 long int i = longval ();
4849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4851 fprintf (f, "%ld
\n", i);
4855 unsigned long int i = ulongval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4858 fprintf (f, "%lu
\n", i);
4860 return ferror (f) || fclose (f) != 0;
4866 rm -f conftest$ac_exeext
4867 if { (ac_try="$ac_link"
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_link") 2>&5
4875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sizeof_void_p=`cat conftest.val`
4888 echo "$as_me: program exited with status
$ac_status" >&5
4889 echo "$as_me: failed program was
:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4893 if test "$ac_cv_type_void_p" = yes; then
4894 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4895 See \
`config.log' for more details." >&5
4896 echo "$as_me: error: cannot compute sizeof (void *)
4897 See \`config.log
' for more details." >&2;}
4898 { (exit 77); exit 77; }; }
4900 ac_cv_sizeof_void_p=0
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4912 cat >>confdefs.h <<_ACEOF
4913 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4917 { echo "$as_me:$LINENO: checking for long" >&5
4918 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4919 if test "${ac_cv_type_long+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 $ac_includes_default
4929 typedef long ac__type_new_;
4933 if ((ac__type_new_ *) 0)
4935 if (sizeof (ac__type_new_))
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^
*+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4960 echo "$as_me: failed program was:" >&5
4961 sed 's
/^
/|
/' conftest.$ac_ext >&5
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4969 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4971 # The cast to long int works around a bug in the HP C Compiler
4972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4974 # This bug is HP SR number 8606223364.
4975 { echo "$as_me:$LINENO: checking size of long" >&5
4976 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4977 if test "${ac_cv_sizeof_long+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test "$cross_compiling" = yes; then
4981 # Depending upon the size, compute the lo and hi bounds.
4982 cat >conftest.
$ac_ext <<_ACEOF
4985 cat confdefs.h
>>conftest.
$ac_ext
4986 cat >>conftest.
$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
4989 typedef long ac__type_sizeof_;
4993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5000 rm -f conftest.
$ac_objext
5001 if { (ac_try
="$ac_compile"
5003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5009 grep -v '^ *+' conftest.er1 >conftest.err
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 typedef long ac__type_sizeof_;
5030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5041 *) ac_try_echo
=$ac_try;;
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1
>conftest.err
5048 cat conftest.err
>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.
$ac_objext; then
5054 ac_hi
=$ac_mid; break
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5059 ac_lo
=`expr $ac_mid + 1`
5060 if test $ac_lo -le $ac_mid; then
5064 ac_mid
=`expr 2 '*' $ac_mid + 1`
5067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.
$ac_ext >&5
5073 cat >conftest.
$ac_ext <<_ACEOF
5076 cat confdefs.h
>>conftest.
$ac_ext
5077 cat >>conftest.
$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080 typedef long ac__type_sizeof_;
5084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5091 rm -f conftest.
$ac_objext
5092 if { (ac_try
="$ac_compile"
5094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 typedef long ac__type_sizeof_;
5121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5132 *) ac_try_echo
=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1
>conftest.err
5139 cat conftest.err
>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.
$ac_objext; then
5145 ac_lo
=$ac_mid; break
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.
$ac_ext >&5
5150 ac_hi
=`expr '(' $ac_mid ')' - 1`
5151 if test $ac_mid -le $ac_hi; then
5155 ac_mid
=`expr 2 '*' $ac_mid`
5158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.
$ac_ext >&5
5167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5171 # Binary search between lo and hi bounds.
5172 while test "x$ac_lo" != "x$ac_hi"; do
5173 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 typedef long ac__type_sizeof_;
5185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5192 rm -f conftest.
$ac_objext
5193 if { (ac_try
="$ac_compile"
5195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ?*) ac_cv_sizeof_long=$ac_lo;;
5221 '') if test "$ac_cv_type_long" = yes; then
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5223 See \`config.log
' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (long)
5225 See \`config.log' for more details.
" >&2;}
5226 { (exit 77); exit 77; }; }
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef long ac__type_sizeof_;
5240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5248 FILE *f = fopen ("conftest.val
", "w
");
5251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5253 long int i = longval ();
5254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5256 fprintf (f, "%ld
\n", i);
5260 unsigned long int i = ulongval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5263 fprintf (f, "%lu
\n", i);
5265 return ferror (f) || fclose (f) != 0;
5271 rm -f conftest$ac_exeext
5272 if { (ac_try="$ac_link"
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_sizeof_long=`cat conftest.val`
5293 echo "$as_me: program exited with status
$ac_status" >&5
5294 echo "$as_me: failed program was
:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 if test "$ac_cv_type_long" = yes; then
5299 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5300 See \
`config.log' for more details." >&5
5301 echo "$as_me: error: cannot compute sizeof (long)
5302 See \`config.log
' for more details." >&2;}
5303 { (exit 77); exit 77; }; }
5308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5313 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5317 cat >>confdefs.h <<_ACEOF
5318 #define SIZEOF_LONG $ac_cv_sizeof_long
5323 if test "x$host_m32" = x1; then
5324 # Force 32-bit mode.
5325 CFLAGS="$CFLAGS -m32"
5326 LDFLAGS="$LDFLAGS -m32"
5329 # Check LZO when compiling for the i386-pc.
5330 if test "$target_cpu"-"$platform" = i386-pc; then
5331 # Check whether --enable-lzo was given.
5332 if test "${enable_lzo+set}" = set; then
5333 enableval=$enable_lzo;
5336 if [ x"$enable_lzo" = xyes ]; then
5337 # There are three possibilities. LZO version 2 installed with the name
5338 # liblzo2, with the name liblzo, and LZO version 1.
5340 cat >>confdefs.h <<\_ACEOF
5341 #define ENABLE_LZO 1
5344 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5345 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5346 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS=$LIBS
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5364 char __lzo_init_v2 ();
5368 return __lzo_init_v2 ();
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (ac_try="$ac_link"
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_link") 2>conftest.er1
5382 grep -v '^
*+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest$ac_exeext &&
5390 $as_test_x conftest$ac_exeext; then
5391 ac_cv_lib_lzo2___lzo_init_v2=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's
/^
/|
/' conftest.$ac_ext >&5
5396 ac_cv_lib_lzo2___lzo_init_v2=no
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5404 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5405 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5408 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5409 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5410 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 ac_check_lib_save_LIBS=$LIBS
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5422 /* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5428 char __lzo_init_v2 ();
5432 return __lzo_init_v2 ();
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (ac_try="$ac_link"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_link") 2>conftest.er1
5446 grep -v '^
*+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest$ac_exeext &&
5454 $as_test_x conftest$ac_exeext; then
5455 ac_cv_lib_lzo___lzo_init_v2=yes
5457 echo "$as_me: failed program was:" >&5
5458 sed 's
/^
/|
/' conftest.$ac_ext >&5
5460 ac_cv_lib_lzo___lzo_init_v2=no
5463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5468 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5469 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5472 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5473 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_check_lib_save_LIBS=$LIBS
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5492 char __lzo_init2 ();
5496 return __lzo_init2 ();
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5510 grep -v '^
*+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext &&
5518 $as_test_x conftest$ac_exeext; then
5519 ac_cv_lib_lzo___lzo_init2=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's
/^
/|
/' conftest.$ac_ext >&5
5524 ac_cv_lib_lzo___lzo_init2=no
5527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5528 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5532 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5533 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5536 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5537 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5538 { (exit 1); exit 1; }; }
5546 LIBS="$LIBS $LIBLZO"
5547 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5548 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5549 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5560 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char lzo1x_999_compress (); below.
5564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 <limits.h> exists even on freestanding compilers. */
5568 # include <limits.h>
5570 # include <assert.h>
5573 #undef lzo1x_999_compress
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5581 char lzo1x_999_compress ();
5582 /* The GNU C library defines this for functions which it implements
5583 to always fail with ENOSYS. Some functions are actually named
5584 something starting with __ and the normal name is an alias. */
5585 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5592 return lzo1x_999_compress ();
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (ac_try="$ac_link"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_link") 2>conftest.er1
5606 grep -v '^
*+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext &&
5614 $as_test_x conftest$ac_exeext; then
5615 ac_cv_func_lzo1x_999_compress=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's
/^
/|
/' conftest.$ac_ext >&5
5620 ac_cv_func_lzo1x_999_compress=no
5623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5624 conftest$ac_exeext conftest.$ac_ext
5626 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5627 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5628 if test $ac_cv_func_lzo1x_999_compress = yes; then
5631 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5632 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5633 { (exit 1); exit 1; }; }
5637 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5640 for ac_header in lzo/lzo1x.h lzo1x.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^
*+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_header_compiler=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's
/^
/|
/' conftest.$ac_ext >&5
5687 ac_header_compiler=no
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 grep -v '^
*+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5721 ac_header_preproc=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's
/^
/|
/' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5739 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5740 ac_header_preproc=yes
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5752 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5756 ## ------------------------------- ##
5757 ## Report this to bug-grub@gnu.org ##
5758 ## ------------------------------- ##
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 cat >>confdefs.h <<\_ACEOF
5787 #define ENABLE_LZMA 1
5794 # Check for functions.
5798 for ac_func in posix_memalign memalign asprintf
5800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5814 #define $ac_func innocuous_$ac_func
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func (); below.
5818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 <limits.h> exists even on freestanding compilers. */
5822 # include <limits.h>
5824 # include <assert.h>
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined __stub_$ac_func || defined __stub___$ac_func
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (ac_try="$ac_link"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5860 grep -v '^
*+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 eval "$as_ac_var=yes"
5871 echo "$as_me: failed program was:" >&5
5872 sed 's
/^
/|
/' conftest.$ac_ext >&5
5874 eval "$as_ac_var=no"
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5880 ac_res=`eval echo '${'$as_ac_var'}'`
5881 { echo "$as_me:$LINENO: result: $ac_res" >&5
5882 echo "${ECHO_T}$ac_res" >&6; }
5883 if test `eval echo '${'$as_ac_var'}'` = yes; then
5884 cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5893 # Check for target programs.
5897 # Use linker script if present, otherwise use builtin -N script.
5898 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5899 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5900 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5901 TARGET_IMG_LDSCRIPT='$
(top_srcdir
)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5902 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5903 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5905 TARGET_IMG_LDSCRIPT=
5906 TARGET_IMG_LDFLAGS='-Wl,-N'
5907 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5911 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5912 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5914 # For platforms where ELF is not the default link format.
5915 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5916 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5917 case "${host_os}:${target_os}" in
5918 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf
' ;;
5922 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5923 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5925 # For cross-compiling.
5926 if test "x$target" != "x$host"; then
5927 # XXX this depends on the implementation of autoconf!
5928 tmp_ac_tool_prefix="$ac_tool_prefix"
5929 ac_tool_prefix=$target_alias-
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in gcc egcs cc
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$TARGET_CC"; then
5942 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 TARGET_CC=$ac_cv_prog_TARGET_CC
5962 if test -n "$TARGET_CC"; then
5963 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5964 echo "${ECHO_T}$TARGET_CC" >&6; }
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 test -n "$TARGET_CC" && break
5974 if test -z "$TARGET_CC"; then
5975 ac_ct_TARGET_CC=$TARGET_CC
5976 for ac_prog in gcc egcs cc
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$ac_ct_TARGET_CC"; then
5986 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6006 if test -n "$ac_ct_TARGET_CC"; then
6007 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6008 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6015 test -n "$ac_ct_TARGET_CC" && break
6018 if test "x$ac_ct_TARGET_CC" = x; then
6019 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6020 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6021 { (exit 1); exit 1; }; }"
6023 case $cross_compiling:$ac_tool_warned in
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet. If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet. If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6033 TARGET_CC=$ac_ct_TARGET_CC
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$OBJCOPY"; then
6046 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 OBJCOPY=$ac_cv_prog_OBJCOPY
6066 if test -n "$OBJCOPY"; then
6067 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6068 echo "${ECHO_T}$OBJCOPY" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_OBJCOPY"; then
6077 ac_ct_OBJCOPY=$OBJCOPY
6078 # Extract the first word of "objcopy", so it can be a program name with args.
6079 set dummy objcopy; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$ac_ct_OBJCOPY"; then
6086 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6106 if test -n "$ac_ct_OBJCOPY"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6108 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_OBJCOPY" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6127 OBJCOPY=$ac_ct_OBJCOPY
6130 OBJCOPY="$ac_cv_prog_OBJCOPY"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}strip; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_STRIP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$STRIP"; then
6142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163 { echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test -z "$ac_cv_prog_STRIP"; then
6174 # Extract the first word of "strip", so it can be a program name with args.
6175 set dummy strip; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$ac_ct_STRIP"; then
6182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_STRIP="strip"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6202 if test -n "$ac_ct_STRIP"; then
6203 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6210 if test "x$ac_ct_STRIP" = x; then
6213 case $cross_compiling:$ac_tool_warned in
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6226 STRIP="$ac_cv_prog_STRIP"
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}nm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_NM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$NM"; then
6238 ac_cv_prog_NM="$NM" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_NM="${ac_tool_prefix}nm"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 if test -n "$NM"; then
6259 { echo "$as_me:$LINENO: result: $NM" >&5
6260 echo "${ECHO_T}$NM" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6268 if test -z "$ac_cv_prog_NM"; then
6270 # Extract the first word of "nm", so it can be a program name with args.
6271 set dummy nm; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 if test -n "$ac_ct_NM"; then
6278 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_NM="nm"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6298 if test -n "$ac_ct_NM"; then
6299 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6300 echo "${ECHO_T}$ac_ct_NM" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6306 if test "x$ac_ct_NM" = x; then
6309 case $cross_compiling:$ac_tool_warned in
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6326 ac_tool_prefix="$tmp_ac_tool_prefix"
6328 if test "x$TARGET_CC" = x; then
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 if test -n "$OBJCOPY"; then
6340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 OBJCOPY=$ac_cv_prog_OBJCOPY
6360 if test -n "$OBJCOPY"; then
6361 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6362 echo "${ECHO_T}$OBJCOPY" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6370 if test -z "$ac_cv_prog_OBJCOPY"; then
6371 ac_ct_OBJCOPY=$OBJCOPY
6372 # Extract the first word of "objcopy", so it can be a program name with args.
6373 set dummy objcopy; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test -n "$ac_ct_OBJCOPY"; then
6380 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6400 if test -n "$ac_ct_OBJCOPY"; then
6401 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6402 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6408 if test "x$ac_ct_OBJCOPY" = x; then
6411 case $cross_compiling:$ac_tool_warned in
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet. If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6421 OBJCOPY=$ac_ct_OBJCOPY
6424 OBJCOPY="$ac_cv_prog_OBJCOPY"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}strip; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_STRIP+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 STRIP=$ac_cv_prog_STRIP
6456 if test -n "$STRIP"; then
6457 { echo "$as_me:$LINENO: result: $STRIP" >&5
6458 echo "${ECHO_T}$STRIP" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 if test -z "$ac_cv_prog_STRIP"; then
6468 # Extract the first word of "strip", so it can be a program name with args.
6469 set dummy strip; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 if test -n "$ac_ct_STRIP"; then
6476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_STRIP="strip"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496 if test -n "$ac_ct_STRIP"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6498 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6504 if test "x$ac_ct_STRIP" = x; then
6507 case $cross_compiling:$ac_tool_warned in
6509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&5
6512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6513 whose name does not start with the host triplet. If you think this
6514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6515 ac_tool_warned=yes ;;
6520 STRIP="$ac_cv_prog_STRIP"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}nm; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_prog_NM+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -n "$NM"; then
6532 ac_cv_prog_NM="$NM" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_NM="${ac_tool_prefix}nm"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 if test -n "$NM"; then
6553 { echo "$as_me:$LINENO: result: $NM" >&5
6554 echo "${ECHO_T}$NM" >&6; }
6556 { echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6; }
6562 if test -z "$ac_cv_prog_NM"; then
6564 # Extract the first word of "nm", so it can be a program name with args.
6565 set dummy nm; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test -n "$ac_ct_NM"; then
6572 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_NM="nm"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6592 if test -n "$ac_ct_NM"; then
6593 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6594 echo "${ECHO_T}$ac_ct_NM" >&6; }
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6600 if test "x$ac_ct_NM" = x; then
6603 case $cross_compiling:$ac_tool_warned in
6605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&5
6608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611 ac_tool_warned=yes ;;
6623 # Test the C compiler for the target environment.
6625 tmp_CFLAGS="$CFLAGS"
6626 tmp_LDFLAGS="$LDFLAGS"
6627 tmp_CPPFLAGS="$CPPFLAGS"
6630 CFLAGS="$TARGET_CFLAGS"
6631 CPPFLAGS="$TARGET_CPPFLAGS"
6632 LDFLAGS="$TARGET_LDFLAGS"
6635 if test "x$TARGET_CFLAGS" = x; then
6637 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6638 -Wundef -Wstrict-prototypes -g"
6640 # optimization flags.
6641 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6642 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6643 if test "${grub_cv_cc_Os+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
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
6664 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
6682 echo "$as_me: failed program was:" >&5
6683 sed 's
/^
/|
/' conftest.$ac_ext >&5
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6692 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6693 if test "x$grub_cv_cc_Os" = xyes; then
6694 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6696 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6699 # Force no alignment to save space on i386.
6700 if test "x$target_cpu" = xi386; then
6701 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6702 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6703 if test "${grub_cv_cc_falign_loop+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 CFLAGS="-falign-loops=1"
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^
*+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 grub_cv_cc_falign_loop=yes
6742 echo "$as_me: failed program was:" >&5
6743 sed 's
/^
/|
/' conftest.$ac_ext >&5
6745 grub_cv_cc_falign_loop=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6752 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6754 if test "x$grub_cv_cc_falign_loop" = xyes; then
6755 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6757 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6762 if test "x$target_m32" = x1; then
6763 # Force 32-bit mode.
6764 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6765 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6768 if test "x$target_m64" = x1; then
6769 # Force 64-bit mode.
6770 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6771 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6775 # Compiler features.
6778 # Smashing stack protector.
6780 # Smashing stack protector.
6782 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \
`-fstack-protector'" >&5
6783 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'...
$ECHO_C" >&6; }
6784 # Is this a reliable test case?
6785 cat >conftest.$ac_ext <<_ACEOF
6786 void foo (void) { volatile char a[8]; a[3]; }
6788 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6789 # `ac_compile' like this correct, after all?
6790 if eval "$ac_compile -S -fstack-protector -o conftest.s
" 2> /dev/null; then
6791 { echo "$as_me:$LINENO: result
: yes" >&5
6792 echo "${ECHO_T}yes" >&6; }
6793 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6797 { echo "$as_me:$LINENO: result
: no
" >&5
6798 echo "${ECHO_T}no
" >&6; }
6801 # Need that, because some distributions ship compilers that include
6802 # `-fstack-protector' in the default specs.
6803 if test "x
$ssp_possible" = xyes; then
6804 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6807 # Smashing stack arg probe.
6809 { echo "$as_me:$LINENO: checking whether \
`$CC' accepts \`-mstack-arg-probe'" >&5
6810 echo $ECHO_N "checking whether \`$CC' accepts \
`-mstack-arg-probe'... $ECHO_C" >&6; }
6811 cat >conftest.$ac_ext <<_ACEOF
6812 void foo (void) { volatile char a[8]; a[3]; }
6814 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6815 { echo "$as_me:$LINENO: result: yes" >&5
6816 echo "${ECHO_T}yes" >&6; }
6817 # Should we clear up other files as well, having called `AC_LANG_CONFTEST
'?
6821 { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6825 # Cygwin's GCC uses alloca
() to probe the stackframe on static
6826 # stack allocations above some threshold.
6827 if test x
"$sap_possible" = xyes
; then
6828 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
6836 # Set them to their new values for the tests below.
6838 CFLAGS
="$TARGET_CFLAGS"
6839 CPPFLAGS
="$TARGET_CPPFLAGS"
6840 LDFLAGS
="$TARGET_LDFLAGS"
6842 # Defined in aclocal.m4.
6843 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6844 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6845 if test "${grub_cv_prog_target_cc+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6863 rm -f conftest.
$ac_objext conftest
$ac_exeext
6864 if { (ac_try
="$ac_link"
6866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_link") 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest$ac_exeext &&
6880 $as_test_x conftest$ac_exeext; then
6881 grub_cv_prog_target_cc=yes
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 grub_cv_prog_target_cc=no
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6895 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6897 if test "x$grub_cv_prog_target_cc" = xno; then
6898 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6899 echo "$as_me: error: cannot compile for the target" >&2;}
6900 { (exit 1); exit 1; }; }
6903 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6904 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6905 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 cat > conftest.c <<\EOF
6912 *((int *) 0x1000) = 2;
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && test -s conftest.o; then :
6922 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6923 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6924 { (exit 1); exit 1; }; }
6926 grub_cv_prog_objcopy_absolute=yes
6927 for link_addr in 2000 8000 7C00; do
6928 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then :
6935 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6936 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6937 { (exit 1); exit 1; }; }
6939 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then :
6946 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6947 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6948 { (exit 1); exit 1; }; }
6950 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 mv -f conftest conftest.old
6958 grub_cv_prog_objcopy_absolute=no
6965 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6966 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
6968 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
6969 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6970 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6971 { (exit 1); exit 1; }; }
6974 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
6975 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
6976 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 save_LDFLAGS="$LDFLAGS"
6980 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7000 *) ac_try_echo
=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_link") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1
>conftest.err
7007 cat conftest.err
>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest
$ac_exeext &&
7013 $as_test_x conftest
$ac_exeext; then
7014 grub_cv_prog_ld_build_id_none
=yes
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.
$ac_ext >&5
7019 grub_cv_prog_ld_build_id_none
=no
7022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7023 conftest
$ac_exeext conftest.
$ac_ext
7024 LDFLAGS
="$save_LDFLAGS"
7028 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7029 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7031 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
7032 MODULE_LDFLAGS
="$MODULE_LDFLAGS -Wl,--build-id=none"
7036 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7037 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7038 if test "${grub_cv_asm_uscore+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 cat > conftest.c
<<\EOF
7050 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } && test -s conftest.s
; then
7058 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7059 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7060 { (exit 1); exit 1; }; }
7063 if grep _func conftest.s
>/dev
/null
2>&1; then
7064 grub_cv_asm_uscore
=yes
7066 grub_cv_asm_uscore
=no
7073 if test "x$grub_cv_asm_uscore" = xyes
; then
7075 cat >>confdefs.h
<<_ACEOF
7076 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7081 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7082 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7084 if test "x$target_cpu" = xi386
; then
7085 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7086 # Check symbols provided by linker script.
7087 CFLAGS
="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7089 if test "x$platform" = xpc
; then
7091 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7092 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7093 if test "${grub_cv_check_start_symbol+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 cat >conftest.
$ac_ext <<_ACEOF
7099 cat confdefs.h
>>conftest.
$ac_ext
7100 cat >>conftest.
$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7111 rm -f conftest.
$ac_objext conftest
$ac_exeext
7112 if { (ac_try
="$ac_link"
7114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 grub_cv_check_start_symbol=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 grub_cv_check_start_symbol=no
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7143 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7145 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7146 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7147 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7169 *) ac_try_echo
=$ac_try;;
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_link") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest
$ac_exeext &&
7182 $as_test_x conftest
$ac_exeext; then
7183 grub_cv_check_uscore_start_symbol
=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.
$ac_ext >&5
7188 grub_cv_check_uscore_start_symbol
=no
7191 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7192 conftest
$ac_exeext conftest.
$ac_ext
7196 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7197 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7202 if test "x$grub_cv_check_start_symbol" = xyes
; then
7203 cat >>confdefs.h
<<\_ACEOF
7204 #define START_SYMBOL start
7207 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
7208 cat >>confdefs.h
<<\_ACEOF
7209 #define START_SYMBOL _start
7213 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7214 echo "$as_me: error: neither start nor _start is defined" >&2;}
7215 { (exit 1); exit 1; }; }
7219 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7220 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7221 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.
$ac_ext <<_ACEOF
7227 cat confdefs.h
>>conftest.
$ac_ext
7228 cat >>conftest.
$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7234 asm ("incl __bss_start")
7239 rm -f conftest.
$ac_objext conftest
$ac_exeext
7240 if { (ac_try
="$ac_link"
7242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7246 (eval "$ac_link") 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_c_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest$ac_exeext &&
7256 $as_test_x conftest$ac_exeext; then
7257 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 grub_cv_check_uscore_uscore_bss_start_symbol=no
7265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7266 conftest$ac_exeext conftest.$ac_ext
7270 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7271 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7273 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7274 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7275 if test "${grub_cv_check_edata_symbol+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (ac_try="$ac_link"
7296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7297 *) ac_try_echo
=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_link") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1
>conftest.err
7304 cat conftest.err
>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest
$ac_exeext &&
7310 $as_test_x conftest
$ac_exeext; then
7311 grub_cv_check_edata_symbol
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 grub_cv_check_edata_symbol
=no
7319 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7320 conftest
$ac_exeext conftest.
$ac_ext
7324 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7325 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7327 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7328 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7329 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7347 rm -f conftest.
$ac_objext conftest
$ac_exeext
7348 if { (ac_try
="$ac_link"
7350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext &&
7364 $as_test_x conftest$ac_exeext; then
7365 grub_cv_check_uscore_edata_symbol=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 grub_cv_check_uscore_edata_symbol=no
7373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7374 conftest$ac_exeext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7379 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7384 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7385 cat >>confdefs.h <<\_ACEOF
7386 #define BSS_START_SYMBOL __bss_start
7389 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define BSS_START_SYMBOL edata
7394 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define BSS_START_SYMBOL _edata
7400 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7401 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7402 { (exit 1); exit 1; }; }
7406 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7407 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7408 if test "${grub_cv_check_end_symbol+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (ac_try="$ac_link"
7429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7430 *) ac_try_echo
=$ac_try;;
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_link") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1
>conftest.err
7437 cat conftest.err
>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest
$ac_exeext &&
7443 $as_test_x conftest
$ac_exeext; then
7444 grub_cv_check_end_symbol
=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 grub_cv_check_end_symbol
=no
7452 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7453 conftest
$ac_exeext conftest.
$ac_ext
7457 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7458 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7460 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7461 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7462 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.
$ac_objext conftest
$ac_exeext
7481 if { (ac_try
="$ac_link"
7483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext &&
7497 $as_test_x conftest$ac_exeext; then
7498 grub_cv_check_uscore_end_symbol=yes
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 grub_cv_check_uscore_end_symbol=no
7506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7507 conftest$ac_exeext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7512 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7517 if test "x$grub_cv_check_end_symbol" = xyes; then
7518 cat >>confdefs.h <<\_ACEOF
7519 #define END_SYMBOL end
7522 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define END_SYMBOL _end
7528 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7529 echo "$as_me: error: neither end nor _end is defined" >&2;}
7530 { (exit 1); exit 1; }; }
7534 CFLAGS="$TARGET_CFLAGS"
7536 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7537 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7538 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat > conftest.s <<\EOF
7543 l1: addr32 movb %al, l1
7546 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } && test -s conftest.o; then
7552 grub_cv_i386_asm_prefix_requirement=yes
7554 grub_cv_i386_asm_prefix_requirement=no
7561 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7562 grub_tmp_addr32="addr32"
7563 grub_tmp_data32="data32"
7565 grub_tmp_addr32="addr32;"
7566 grub_tmp_data32="data32;"
7570 cat >>confdefs.h <<_ACEOF
7571 #define ADDR32 $grub_tmp_addr32
7575 cat >>confdefs.h <<_ACEOF
7576 #define DATA32 $grub_tmp_data32
7580 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7581 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7584 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7585 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7586 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat > conftest.s.in <<\EOF
7591 l1: @ADDR32@ movb %al, l1
7594 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7595 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7597 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7600 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } && test -s conftest.o; then
7606 grub_cv_i386_asm_addr32=yes
7608 grub_cv_i386_asm_addr32=no
7615 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7616 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7618 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7619 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7620 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat > conftest.s <<\EOF
7630 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } && test -s conftest.o; then
7636 grub_cv_i386_asm_absolute_without_asterisk=no
7638 grub_cv_i386_asm_absolute_without_asterisk=yes
7645 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7647 cat >>confdefs.h <<\_ACEOF
7648 #define ABSOLUTE_WITHOUT_ASTERISK 1
7653 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7654 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7656 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7657 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7658 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 if test "$cross_compiling" = yes; then
7662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7663 See \`config.log
' for more details." >&5
7664 echo "$as_me: error: cannot run test program while cross compiling
7665 See \`config.log' for more details.
" >&2;}
7666 { (exit 1); exit 1; }; }
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7682 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7687 return hook (a, b, &c);
7693 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7695 return a == b && test (c);
7697 return testfunc (nestedfunc) ? 0 : 1;
7701 rm -f conftest$ac_exeext
7702 if { (ac_try="$ac_link"
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_link") 2>&5
7710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7712 { (case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_try") 2>&5
7719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 grub_cv_i386_check_nested_functions=no
7723 echo "$as_me: program exited with status
$ac_status" >&5
7724 echo "$as_me: failed program was
:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7728 grub_cv_i386_check_nested_functions=yes
7730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7737 { echo "$as_me:$LINENO: result
: $grub_cv_i386_check_nested_functions" >&5
7738 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7740 if test "x
$grub_cv_i386_check_nested_functions" = xyes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7748 cat >>confdefs.h <<\_ACEOF
7749 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7756 cat >>confdefs.h <<\_ACEOF
7757 #define NESTED_FUNC_ATTR
7762 # Restore the flags.
7764 CFLAGS="$tmp_CFLAGS"
7765 CPPFLAGS="$tmp_CPPFLAGS"
7766 LDFLAGS="$tmp_LDFLAGS"
7770 # Check for options.
7773 # Memory manager debugging.
7774 # Check whether --enable-mm-debug was given.
7775 if test "${enable_mm_debug+set}" = set; then
7776 enableval=$enable_mm_debug;
7777 cat >>confdefs.h <<\_ACEOF
7784 # Check whether --enable-grub-emu was given.
7785 if test "${enable_grub_emu+set}" = set; then
7786 enableval=$enable_grub_emu;
7789 if [ x"$enable_grub_emu" = xyes ]; then
7790 # Check for curses libraries.
7791 { echo "$as_me:$LINENO: checking
for wgetch
in -lncurses" >&5
7792 echo $ECHO_N "checking
for wgetch
in -lncurses...
$ECHO_C" >&6; }
7793 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7794 echo $ECHO_N "(cached
) $ECHO_C" >&6
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lncurses $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest$ac_exeext &&
7837 $as_test_x conftest$ac_exeext; then
7838 ac_cv_lib_ncurses_wgetch=yes
7840 echo "$as_me: failed program was
:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_ncurses_wgetch=no
7846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_wgetch" >&5
7851 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7852 if test $ac_cv_lib_ncurses_wgetch = yes; then
7853 LIBCURSES="-lncurses"
7855 { echo "$as_me:$LINENO: checking
for wgetch
in -lcurses" >&5
7856 echo $ECHO_N "checking
for wgetch
in -lcurses...
$ECHO_C" >&6; }
7857 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7858 echo $ECHO_N "(cached
) $ECHO_C" >&6
7860 ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lcurses $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext &&
7901 $as_test_x conftest$ac_exeext; then
7902 ac_cv_lib_curses_wgetch=yes
7904 echo "$as_me: failed program was
:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_cv_lib_curses_wgetch=no
7910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7911 conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_wgetch" >&5
7915 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7916 if test $ac_cv_lib_curses_wgetch = yes; then
7917 LIBCURSES="-lcurses"
7919 { { echo "$as_me:$LINENO: error
: (n
)curses libraries are required to build \
`grub-emu'" >&5
7920 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu
'" >&2;}
7921 { (exit 1); exit 1; }; }
7928 # Check for headers.
7930 for ac_header in ncurses/curses.h
7932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_res=`eval echo '${'$as_ac_Header'}'`
7940 { echo "$as_me:$LINENO: result: $ac_res" >&5
7941 echo "${ECHO_T}$ac_res" >&6; }
7943 # Is the header compilable?
7944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 #include <$ac_header>
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^
*+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_header_compiler=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's
/^
/|
/' conftest.$ac_ext >&5
7977 ac_header_compiler=no
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6; }
7984 # Is the header present?
7985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <$ac_header>
7995 if { (ac_try="$ac_cpp conftest.$ac_ext"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8003 grep -v '^
*+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null && {
8008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8011 ac_header_preproc=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's
/^
/|
/' conftest.$ac_ext >&5
8016 ac_header_preproc=no
8019 rm -f conftest.err conftest.$ac_ext
8020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6; }
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8029 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8030 ac_header_preproc=yes
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8042 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8046 ## ------------------------------- ##
8047 ## Report this to bug-grub@gnu.org ##
8048 ## ------------------------------- ##
8050 ) | sed "s/^/$as_me: WARNING: /" >&2
8053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 eval "$as_ac_Header=\$ac_header_preproc"
8060 ac_res=`eval echo '${'$as_ac_Header'}'`
8061 { echo "$as_me:$LINENO: result: $ac_res" >&5
8062 echo "${ECHO_T}$ac_res" >&6; }
8065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8072 for ac_header in ncurses.h
8074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 ac_res=`eval echo '${'$as_ac_Header'}'`
8082 { echo "$as_me:$LINENO: result: $ac_res" >&5
8083 echo "${ECHO_T}$ac_res" >&6; }
8085 # Is the header compilable?
8086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 #include <$ac_header>
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8106 grep -v '^
*+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest.$ac_objext; then
8114 ac_header_compiler=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's
/^
/|
/' conftest.$ac_ext >&5
8119 ac_header_compiler=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124 echo "${ECHO_T}$ac_header_compiler" >&6; }
8126 # Is the header present?
8127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <$ac_header>
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8145 grep -v '^
*+' conftest.er1 >conftest.err
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev/null && {
8150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8153 ac_header_preproc=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's
/^
/|
/' conftest.$ac_ext >&5
8158 ac_header_preproc=no
8161 rm -f conftest.err conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8163 echo "${ECHO_T}$ac_header_preproc" >&6; }
8165 # So? What about this header?
8166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8171 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8172 ac_header_preproc=yes
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8184 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8188 ## ------------------------------- ##
8189 ## Report this to bug-grub@gnu.org ##
8190 ## ------------------------------- ##
8192 ) | sed "s/^/$as_me: WARNING: /" >&2
8195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 eval "$as_ac_Header=\$ac_header_preproc"
8202 ac_res=`eval echo '${'$as_ac_Header'}'`
8203 { echo "$as_me:$LINENO: result: $ac_res" >&5
8204 echo "${ECHO_T}$ac_res" >&6; }
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208 cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 for ac_header in curses.h
8216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_res=`eval echo '${'$as_ac_Header'}'`
8224 { echo "$as_me:$LINENO: result: $ac_res" >&5
8225 echo "${ECHO_T}$ac_res" >&6; }
8227 # Is the header compilable?
8228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 #include <$ac_header>
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8248 grep -v '^
*+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_header_compiler=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's
/^
/|
/' conftest.$ac_ext >&5
8261 ac_header_compiler=no
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6; }
8268 # Is the header present?
8269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <$ac_header>
8279 if { (ac_try="$ac_cpp conftest.$ac_ext"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8287 grep -v '^
*+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } >/dev/null && {
8292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8295 ac_header_preproc=yes
8297 echo "$as_me: failed program was:" >&5
8298 sed 's
/^
/|
/' conftest.$ac_ext >&5
8300 ac_header_preproc=no
8303 rm -f conftest.err conftest.$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8305 echo "${ECHO_T}$ac_header_preproc" >&6; }
8307 # So? What about this header?
8308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8313 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8314 ac_header_preproc=yes
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8326 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8330 ## ------------------------------- ##
8331 ## Report this to bug-grub@gnu.org ##
8332 ## ------------------------------- ##
8334 ) | sed "s/^/$as_me: WARNING: /" >&2
8337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 eval "$as_ac_Header=\$ac_header_preproc"
8344 ac_res=`eval echo '${'$as_ac_Header'}'`
8345 { echo "$as_me:$LINENO: result: $ac_res" >&5
8346 echo "${ECHO_T}$ac_res" >&6; }
8349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8355 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8356 echo "$as_me: error
: (n
)curses header files are required to build \
`grub-emu'" >&2;}
8357 { (exit 1); exit 1; }; }
8373 # Check whether --enable-grub-fstest was given.
8374 if test "${enable_grub_fstest+set}" = set; then
8375 enableval=$enable_grub_fstest;
8380 # Check whether --enable-grub-pe2elf was given.
8381 if test "${enable_grub_pe2elf+set}" = set; then
8382 enableval=$enable_grub_pe2elf;
8388 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8390 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8392 ac_config_files="$ac_config_files stamp-h"
8394 cat >confcache <<\_ACEOF
8395 # This file is a shell script that caches the results of configure
8396 # tests run on this system so they can be shared between configure
8397 # scripts and configure runs, see configure's option --config-cache.
8398 # It is not useful on other systems. If it contains results you don't
8399 # want to keep, you may remove or edit it.
8401 # config.status only pays attention to the cache file if you give it
8402 # the --recheck option to rerun configure.
8404 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
8405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8410 # The following way of writing the cache mishandles newlines in values,
8411 # but we know of no workaround that is simple, portable, and efficient.
8412 # So, we kill variables containing newlines.
8413 # Ultrix sh set writes to stderr and can't be redirected directly,
8414 # and sets the high bit in the cache file unless we assign to the vars.
8416 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8417 eval ac_val
=\$
$ac_var
8421 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8422 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8425 _ | IFS | as_nl
) ;; #(
8426 *) $as_unset $ac_var ;;
8432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8433 *${as_nl}ac_space
=\
*)
8434 # `set' does not quote correctly, so add quotes (double-quote
8435 # substitution turns \\\\ into \\, and sed turns \\ into \).
8438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8441 # `set' quotes correctly as required by POSIX, so do not add quotes.
8442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8455 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8456 if test -w "$cache_file"; then
8457 test "x$cache_file" != "x/dev/null" &&
8458 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8459 echo "$as_me: updating cache $cache_file" >&6;}
8460 cat confcache
>$cache_file
8462 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8463 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8468 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8469 # Let make expand exec_prefix.
8470 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8472 DEFS
=-DHAVE_CONFIG_H
8476 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8477 # 1. Remove the extension, and $U if already installed.
8478 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8479 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8481 # will be set to the directory where LIBOBJS objects are built.
8482 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8483 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8487 LTLIBOBJS
=$ac_ltlibobjs
8491 : ${CONFIG_STATUS=./config.status}
8492 ac_clean_files_save
=$ac_clean_files
8493 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8496 cat >$CONFIG_STATUS <<_ACEOF
8498 # Generated by $as_me.
8499 # Run this file to recreate the current configuration.
8500 # Compiler output produced by configure, useful for debugging
8501 # configure, is in config.log if it exists.
8506 SHELL=\${CONFIG_SHELL-$SHELL}
8509 cat >>$CONFIG_STATUS <<\_ACEOF
8510 ## --------------------- ##
8511 ## M4sh Initialization. ##
8512 ## --------------------- ##
8514 # Be more Bourne compatible
8515 DUALCASE
=1; export DUALCASE
# for MKS sh
8516 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8519 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8520 # is contrary to our usage. Disable this feature.
8521 alias -g '${1+"$@"}'='"$@"'
8522 setopt NO_GLOB_SUBST
8524 case `(set -o) 2>/dev/null` in
8525 *posix
*) set -o posix
;;
8534 # Avoid depending upon Character Ranges.
8535 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8536 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8537 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8538 as_cr_digits
='0123456789'
8539 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8541 # The user is always right.
8542 if test "${PATH_SEPARATOR+set}" != set; then
8543 echo "#! /bin/sh" >conf$$.sh
8544 echo "exit 0" >>conf$$.sh
8546 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8554 # Support unset when possible.
8555 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8563 # We need space, tab and new line, in precisely that order. Quoting is
8564 # there to prevent editors from complaining about space-tab.
8565 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8566 # splitting by setting IFS to empty value.)
8571 # Find who we are. Look in the path if we contain no directory separator.
8573 *[\\/]* ) as_myself
=$0 ;;
8574 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir
=.
8579 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8585 # We did not find ourselves, most probably we were run as `sh COMMAND'
8586 # in which case we are not to be found in the path.
8587 if test "x$as_myself" = x
; then
8590 if test ! -f "$as_myself"; then
8591 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8592 { (exit 1); exit 1; }
8595 # Work around bugs in pre-3.0 UWIN ksh.
8596 for as_var
in ENV MAIL MAILPATH
8597 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8607 LC_TELEPHONE LC_TIME
8609 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8610 eval $as_var=C
; export $as_var
8612 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8616 # Required to use basename.
8617 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8618 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8624 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8625 as_basename
=basename
8631 # Name of the executable.
8632 as_me
=`$as_basename -- "$0" ||
8633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8634 X"$0" : 'X\(//\)$' \| \
8635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8637 sed '/^.*\/\([^/][^/]*\)\/*$/{
8658 test "x$as_lineno_1" != "x$as_lineno_2" &&
8659 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8662 # uniformly replaced by the line number. The first 'sed' inserts a
8663 # line-number line after each line using $LINENO; the second 'sed'
8664 # does the real work. The second script uses 'N' to pair each
8665 # line-number line with the line containing $LINENO, and appends
8666 # trailing '-' during substitution so that $LINENO is not a special
8668 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8669 # scripts with optimization help from Paolo Bonzini. Blame Lee
8670 # E. McMahon (1931-1989) for sed's syntax. :-)
8682 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8686 chmod +x
"$as_me.lineno" ||
8687 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8688 { (exit 1); exit 1; }; }
8690 # Don't try to exec as it changes $[0], causing all sort of problems
8691 # (the dirname of $[0] is not the place where we might find the
8692 # original and so on. Autoconf is especially sensitive to this).
8694 # Exit status is that of the last command.
8699 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8705 ECHO_C
= ECHO_N
= ECHO_T
=
8708 case `echo 'x\c'` in
8709 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8716 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8717 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8723 rm -f conf$$ conf$$.exe conf$$.
file
8724 if test -d conf$$.dir
; then
8725 rm -f conf$$.dir
/conf$$.
file
8731 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8733 # ... but there are two gotchas:
8734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8736 # In both cases, we have to default to `cp -p'.
8737 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8739 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8744 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8745 rmdir conf$$.dir
2>/dev
/null
8747 if mkdir
-p .
2>/dev
/null
; then
8750 test -d .
/-p && rmdir .
/-p
8754 if test -x / >/dev
/null
2>&1; then
8757 if ls -dL / >/dev
/null
2>&1; then
8764 if test -d "$1"; then
8770 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8771 ???[sx]*):;;*)false;;esac;fi
8775 as_executable_p
=$as_test_x
8777 # Sed expression to map a string onto a valid CPP name.
8778 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8780 # Sed expression to map a string onto a valid variable name.
8781 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8786 # Save the log message, to keep $[0] and so on meaningful, and to
8787 # report actual input values of CONFIG_FILES etc. instead of their
8788 # values after options handling.
8790 This file was extended by GRUB $as_me 1.96, which was
8791 generated by GNU Autoconf 2.61. Invocation command line was
8793 CONFIG_FILES = $CONFIG_FILES
8794 CONFIG_HEADERS = $CONFIG_HEADERS
8795 CONFIG_LINKS = $CONFIG_LINKS
8796 CONFIG_COMMANDS = $CONFIG_COMMANDS
8799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8804 cat >>$CONFIG_STATUS <<_ACEOF
8805 # Files that config.status was made for.
8806 config_files="$ac_config_files"
8807 config_headers="$ac_config_headers"
8808 config_links="$ac_config_links"
8812 cat >>$CONFIG_STATUS <<\_ACEOF
8814 \`$as_me' instantiates files from templates according to the
8815 current configuration.
8817 Usage: $0 [OPTIONS] [FILE]...
8819 -h, --help print this help, then exit
8820 -V, --version print version number and configuration settings, then exit
8821 -q, --quiet do not print progress messages
8822 -d, --debug don't remove temporary files
8823 --recheck update $as_me by reconfiguring in the same conditions
8824 --file=FILE[:TEMPLATE]
8825 instantiate the configuration file FILE
8826 --header=FILE[:TEMPLATE]
8827 instantiate the configuration header FILE
8829 Configuration files:
8832 Configuration headers:
8835 Configuration links:
8838 Report bugs to <bug-autoconf@gnu.org>."
8841 cat >>$CONFIG_STATUS <<_ACEOF
8843 GRUB config.status 1.96
8844 configured by $0, generated by GNU Autoconf 2.61,
8845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8847 Copyright (C) 2006 Free Software Foundation, Inc.
8848 This config.status script is free software; the Free Software Foundation
8849 gives unlimited permission to copy, distribute and modify it."
8856 cat >>$CONFIG_STATUS <<\_ACEOF
8857 # If no file are specified by the user, then we need to provide default
8858 # value. By we need to know if files were specified by the user.
8864 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8865 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8876 # Handling of the options.
8877 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8879 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8880 echo "$ac_cs_version"; exit ;;
8881 --debug |
--debu |
--deb |
--de |
--d |
-d )
8883 --file |
--fil |
--fi |
--f )
8885 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8886 ac_need_defaults
=false
;;
8887 --header |
--heade |
--head |
--hea )
8889 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8890 ac_need_defaults
=false
;;
8892 # Conflict between --help and --header
8893 { echo "$as_me: error: ambiguous option: $1
8894 Try \`$0 --help' for more information." >&2
8895 { (exit 1); exit 1; }; };;
8896 --help |
--hel |
-h )
8897 echo "$ac_cs_usage"; exit ;;
8898 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8899 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8903 -*) { echo "$as_me: error: unrecognized option: $1
8904 Try \`$0 --help' for more information." >&2
8905 { (exit 1); exit 1; }; } ;;
8907 *) ac_config_targets
="$ac_config_targets $1"
8908 ac_need_defaults
=false
;;
8914 ac_configure_extra_args
=
8916 if $ac_cs_silent; then
8918 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8922 cat >>$CONFIG_STATUS <<_ACEOF
8923 if \$ac_cs_recheck; then
8924 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8927 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8931 cat >>$CONFIG_STATUS <<\_ACEOF
8935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8936 ## Running $as_me. ##
8942 cat >>$CONFIG_STATUS <<_ACEOF
8945 cat >>$CONFIG_STATUS <<\_ACEOF
8947 # Handling of arguments.
8948 for ac_config_target
in $ac_config_targets
8950 case $ac_config_target in
8951 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8952 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8953 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8954 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8955 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
8956 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
8957 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
8959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8961 { (exit 1); exit 1; }; };;
8966 # If the user did not use the arguments to specify the items to instantiate,
8967 # then the envvar interface is used. Set only those that are not.
8968 # We use the long form for the default assignment because of an extremely
8969 # bizarre bug on SunOS 4.1.3.
8970 if $ac_need_defaults; then
8971 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8972 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8973 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8976 # Have a temporary directory for convenience. Make it in the build tree
8977 # simply because there is no reason against having it here, and in addition,
8978 # creating and moving files from /tmp can sometimes cause problems.
8979 # Hook for its removal unless debugging.
8980 # Note that there is a small window in which the directory will not be cleaned:
8981 # after its creation but before its name has been assigned to `$tmp'.
8985 trap 'exit_status=$?
8986 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8988 trap '{ (exit 1); exit 1; }' 1 2 13 15
8990 # Create a (secure) tmp directory for tmp files.
8993 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8994 test -n "$tmp" && test -d "$tmp"
8997 tmp
=.
/conf$$
-$RANDOM
8998 (umask 077 && mkdir
"$tmp")
9001 echo "$me: cannot create a temporary directory in ." >&2
9002 { (exit 1); exit 1; }
9006 # Set up the sed scripts for CONFIG_FILES section.
9009 # No need to generate the scripts if there are no CONFIG_FILES.
9010 # This happens for instance when ./config.status config.h
9011 if test -n "$CONFIG_FILES"; then
9018 for ac_last_try
in false false false false false
:; do
9019 cat >conf$
$subs.
sed <<_ACEOF
9020 SHELL!$SHELL$ac_delim
9021 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9022 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9023 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9024 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9025 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9026 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9027 exec_prefix!$exec_prefix$ac_delim
9028 prefix!$prefix$ac_delim
9029 program_transform_name!$program_transform_name$ac_delim
9030 bindir!$bindir$ac_delim
9031 sbindir!$sbindir$ac_delim
9032 libexecdir!$libexecdir$ac_delim
9033 datarootdir!$datarootdir$ac_delim
9034 datadir!$datadir$ac_delim
9035 sysconfdir!$sysconfdir$ac_delim
9036 sharedstatedir!$sharedstatedir$ac_delim
9037 localstatedir!$localstatedir$ac_delim
9038 includedir!$includedir$ac_delim
9039 oldincludedir!$oldincludedir$ac_delim
9040 docdir!$docdir$ac_delim
9041 infodir!$infodir$ac_delim
9042 htmldir!$htmldir$ac_delim
9043 dvidir!$dvidir$ac_delim
9044 pdfdir!$pdfdir$ac_delim
9045 psdir!$psdir$ac_delim
9046 libdir!$libdir$ac_delim
9047 localedir!$localedir$ac_delim
9048 mandir!$mandir$ac_delim
9050 ECHO_C!$ECHO_C$ac_delim
9051 ECHO_N!$ECHO_N$ac_delim
9052 ECHO_T!$ECHO_T$ac_delim
9054 build_alias!$build_alias$ac_delim
9055 host_alias!$host_alias$ac_delim
9056 target_alias!$target_alias$ac_delim
9057 build!$build$ac_delim
9058 build_cpu!$build_cpu$ac_delim
9059 build_vendor!$build_vendor$ac_delim
9060 build_os!$build_os$ac_delim
9062 host_cpu!$host_cpu$ac_delim
9063 host_vendor!$host_vendor$ac_delim
9064 host_os!$host_os$ac_delim
9065 target!$target$ac_delim
9066 target_cpu!$target_cpu$ac_delim
9067 target_vendor!$target_vendor$ac_delim
9068 target_os!$target_os$ac_delim
9069 platform!$platform$ac_delim
9072 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
9073 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9074 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9075 INSTALL_DATA!$INSTALL_DATA$ac_delim
9077 SET_MAKE!$SET_MAKE$ac_delim
9079 HELP2MAN!$HELP2MAN$ac_delim
9081 CFLAGS!$CFLAGS$ac_delim
9082 LDFLAGS!$LDFLAGS$ac_delim
9083 CPPFLAGS!$CPPFLAGS$ac_delim
9084 ac_ct_CC!$ac_ct_CC$ac_delim
9085 EXEEXT!$EXEEXT$ac_delim
9086 OBJEXT!$OBJEXT$ac_delim
9089 EGREP!$EGREP$ac_delim
9090 LIBLZO!$LIBLZO$ac_delim
9091 enable_lzo!$enable_lzo$ac_delim
9092 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9093 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9094 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9095 TARGET_CC!$TARGET_CC$ac_delim
9096 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9097 OBJCOPY!$OBJCOPY$ac_delim
9098 STRIP!$STRIP$ac_delim
9100 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9101 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9102 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9103 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9104 LIBCURSES!$LIBCURSES$ac_delim
9105 enable_grub_emu!$enable_grub_emu$ac_delim
9106 enable_grub_fstest!$enable_grub_fstest$ac_delim
9107 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9108 LIBOBJS!$LIBOBJS$ac_delim
9109 LTLIBOBJS!$LTLIBOBJS$ac_delim
9112 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
9114 elif $ac_last_try; then
9115 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9116 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9117 { (exit 1); exit 1; }; }
9119 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9123 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9124 if test -n "$ac_eof"; then
9125 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9126 ac_eof
=`expr $ac_eof + 1`
9129 cat >>$CONFIG_STATUS <<_ACEOF
9130 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9134 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9135 s/^/s,@/; s/!/@,|#_!!_#|/
9138 s/'"$ac_delim"'$/,g/; t
9140 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9141 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9142 rm -f conf$
$subs.
sed
9143 cat >>$CONFIG_STATUS <<_ACEOF
9150 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9151 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9152 # trailing colons and then remove the whole line if VPATH becomes empty
9153 # (actually we leave an empty line to preserve line numbers).
9154 if test "x$srcdir" = x.
; then
9155 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9159 s/^\([^=]*=[ ]*\):*/\1/
9165 cat >>$CONFIG_STATUS <<\_ACEOF
9166 fi # test -n "$CONFIG_FILES"
9169 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
9172 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9174 case $ac_mode$ac_tag in
9176 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9177 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9178 { (exit 1); exit 1; }; };;
9179 :[FH
]-) ac_tag
=-:-;;
9180 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9197 -) ac_f
="$tmp/stdin";;
9198 *) # Look for the file first in the build tree, then in the source tree
9199 # (if the path is not absolute). The absolute path cannot be DOS-style,
9200 # because $ac_f cannot contain `:'.
9204 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9206 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9207 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9208 { (exit 1); exit 1; }; };;
9210 ac_file_inputs
="$ac_file_inputs $ac_f"
9213 # Let's still pretend it is `configure' which instantiates (i.e., don't
9214 # use $as_me), people would be surprised to read:
9215 # /* config.h. Generated by config.status. */
9216 configure_input
="Generated from "`IFS=:
9217 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9218 if test x
"$ac_file" != x-
; then
9219 configure_input
="$ac_file. $configure_input"
9220 { echo "$as_me:$LINENO: creating $ac_file" >&5
9221 echo "$as_me: creating $ac_file" >&6;}
9225 *:-:* |
*:-) cat >"$tmp/stdin";;
9230 ac_dir
=`$as_dirname -- "$ac_file" ||
9231 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9232 X"$ac_file" : 'X\(//\)[^/]' \| \
9233 X"$ac_file" : 'X\(//\)$' \| \
9234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9255 -*) as_dir
=.
/$as_dir;;
9257 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9261 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9262 *) as_qdir
=$as_dir;;
9264 as_dirs
="'$as_qdir' $as_dirs"
9265 as_dir
=`$as_dirname -- "$as_dir" ||
9266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9267 X"$as_dir" : 'X\(//\)[^/]' \| \
9268 X"$as_dir" : 'X\(//\)$' \| \
9269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9288 test -d "$as_dir" && break
9290 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9291 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9292 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9293 { (exit 1); exit 1; }; }; }
9297 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9299 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9300 # A ".." for each directory in $ac_dir_suffix.
9301 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9302 case $ac_top_builddir_sub in
9303 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9304 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9307 ac_abs_top_builddir
=$ac_pwd
9308 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9309 # for backward compatibility:
9310 ac_top_builddir
=$ac_top_build_prefix
9313 .
) # We are building in place.
9315 ac_top_srcdir
=$ac_top_builddir_sub
9316 ac_abs_top_srcdir
=$ac_pwd ;;
9317 [\\/]* | ?
:[\\/]* ) # Absolute name.
9318 ac_srcdir
=$srcdir$ac_dir_suffix;
9319 ac_top_srcdir
=$srcdir
9320 ac_abs_top_srcdir
=$srcdir ;;
9322 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9323 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9324 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9326 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9336 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9337 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9341 cat >>$CONFIG_STATUS <<\_ACEOF
9342 # If the template does not know about datarootdir, expand it.
9343 # FIXME: This hack should be removed a few years after 2.60.
9344 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9346 case `sed -n '/datarootdir/ {
9355 ' $ac_file_inputs` in
9356 *datarootdir
*) ac_datarootdir_seen
=yes;;
9357 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9358 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9359 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9361 cat >>$CONFIG_STATUS <<_ACEOF
9362 ac_datarootdir_hack='
9363 s&@datadir@&$datadir&g
9364 s&@docdir@&$docdir&g
9365 s&@infodir@&$infodir&g
9366 s&@localedir@&$localedir&g
9367 s&@mandir@&$mandir&g
9368 s&\\\${datarootdir}&$datarootdir&g' ;;
9372 # Neutralize VPATH when `$srcdir' = `.'.
9373 # Shell code in configure.ac might set extrasub.
9374 # FIXME: do we really want to maintain this feature?
9375 cat >>$CONFIG_STATUS <<_ACEOF
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9381 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9382 s
&@configure_input@
&$configure_input&;t t
9383 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9384 s
&@srcdir@
&$ac_srcdir&;t t
9385 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9386 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9387 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9388 s
&@builddir@
&$ac_builddir&;t t
9389 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9390 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9391 s
&@INSTALL@
&$ac_INSTALL&;t t
9392 $ac_datarootdir_hack
9393 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
9395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9398 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9399 which seems to be undefined. Please make sure it is defined." >&5
9400 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9401 which seems to be undefined. Please make sure it is defined." >&2;}
9405 -) cat "$tmp/out"; rm -f "$tmp/out";;
9406 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9415 # Transform confdefs.h into a sed script `conftest.defines', that
9416 # substitutes the proper values into config.h.in to produce config.h.
9417 rm -f conftest.defines conftest.
tail
9418 # First, append a space to every undef/define line, to ease matching.
9419 echo 's/$/ /' >conftest.defines
9420 # Then, protect against being on the right side of a sed subst, or in
9421 # an unquoted here document, in config.status. If some macros were
9422 # called several times there might be several #defines for the same
9423 # symbol, which is useless. But do not sort them, since the last
9424 # AC_DEFINE must be honored.
9425 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9426 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9427 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9428 # PARAMS is the parameter list in the macro definition--in most cases, it's
9429 # just an empty string.
9430 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9431 ac_dB
='\\)[ (].*,\\1define\\2'
9439 s/^[ ]*#[ ]*define[ ][ ]*//
9444 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9445 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9446 ' >>conftest.defines
9448 # Remove the space that was appended to ease matching.
9449 # Then replace #undef with comments. This is necessary, for
9450 # example, in the case of _POSIX_SOURCE, which is predefined and required
9451 # on some systems where configure will not decide to define it.
9452 # (The regexp can be short, since the line contains either #define or #undef.)
9454 s,^[ #]*u.*,/* & */,' >>conftest.defines
9456 # Break up conftest.defines:
9459 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9460 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9461 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9463 ac_in
='$ac_file_inputs'
9464 ac_out
='"$tmp/out1"'
9465 ac_nxt
='"$tmp/out2"'
9469 # Write a here document:
9470 cat >>$CONFIG_STATUS <<_ACEOF
9471 # First, check the format of the line:
9472 cat >"\$tmp/defines.sed" <<\\CEOF
9473 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9474 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9478 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9480 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9481 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9482 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9483 grep . conftest.
tail >/dev
/null ||
break
9484 rm -f conftest.defines
9485 mv conftest.
tail conftest.defines
9487 rm -f conftest.defines conftest.
tail
9489 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9490 cat >>$CONFIG_STATUS <<\_ACEOF
9491 if test x
"$ac_file" != x-
; then
9492 echo "/* $configure_input */" >"$tmp/config.h"
9493 cat "$ac_result" >>"$tmp/config.h"
9494 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9496 echo "$as_me: $ac_file is unchanged" >&6;}
9499 mv "$tmp/config.h" $ac_file
9502 echo "/* $configure_input */"
9512 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9513 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9515 if test ! -r "$srcdir/$ac_source"; then
9516 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9517 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9518 { (exit 1); exit 1; }; }
9522 # Try a relative symlink, then a hard link, then a copy.
9524 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9525 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9527 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9528 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9529 cp -p "$srcdir/$ac_source" "$ac_file" ||
9530 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9531 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9532 { (exit 1); exit 1; }; }
9538 case $ac_file$ac_mode in
9539 "stamp-h":F
) echo timestamp
> stamp-h
;;
9545 { (exit 0); exit 0; }
9547 chmod +x
$CONFIG_STATUS
9548 ac_clean_files
=$ac_clean_files_save
9551 # configure is writing to config.log, and then calls config.status.
9552 # config.status does its own redirection, appending to config.log.
9553 # Unfortunately, on DOS this fails, as config.log is still kept open
9554 # by configure, so config.status won't be able to write to it; its
9555 # output is simply discarded. So we exec the FD to /dev/null,
9556 # effectively closing config.log, so it can be properly (re)opened and
9557 # appended to by config.status. When coming back to configure, we
9558 # need to make the FD available again.
9559 if test "$no_create" != yes; then
9561 ac_config_status_args
=
9562 test "$silent" = yes &&
9563 ac_config_status_args
="$ac_config_status_args --quiet"
9565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9568 # would make configure fail if this is the last instruction.
9569 $ac_cs_success ||
{ (exit 1); exit 1; }