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
715 ac_precious_vars
='build_alias
726 # Initialize some variables set by options.
728 ac_init_version
=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
738 program_transform_name
=s
,x
,x
,
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir
='${exec_prefix}/bin'
753 sbindir
='${exec_prefix}/sbin'
754 libexecdir
='${exec_prefix}/libexec'
755 datarootdir
='${prefix}/share'
756 datadir
='${datarootdir}'
757 sysconfdir
='${prefix}/etc'
758 sharedstatedir
='${prefix}/com'
759 localstatedir
='${prefix}/var'
760 includedir
='${prefix}/include'
761 oldincludedir
='/usr/include'
762 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
763 infodir
='${datarootdir}/info'
768 libdir
='${exec_prefix}/lib'
769 localedir
='${datarootdir}/locale'
770 mandir
='${datarootdir}/man'
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\
$ac_option
784 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
796 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
799 -build |
--build |
--buil |
--bui |
--bu)
800 ac_prev
=build_alias
;;
801 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
802 build_alias
=$ac_optarg ;;
804 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
805 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
806 ac_prev
=cache_file
;;
807 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
808 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
809 cache_file
=$ac_optarg ;;
812 cache_file
=config.cache
;;
814 -datadir |
--datadir |
--datadi |
--datad)
816 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
817 datadir
=$ac_optarg ;;
819 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
820 |
--dataroo |
--dataro |
--datar)
821 ac_prev
=datarootdir
;;
822 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
823 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
824 datarootdir
=$ac_optarg ;;
826 -disable-* |
--disable-*)
827 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_
$ac_feature=no
;;
835 -docdir |
--docdir |
--docdi |
--doc |
--do)
837 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
840 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
842 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
845 -enable-* |
--enable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=\
$ac_optarg ;;
854 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
855 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
856 |
--exec |
--exe |
--ex)
857 ac_prev
=exec_prefix
;;
858 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
859 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
860 |
--exec=* |
--exe=* |
--ex=*)
861 exec_prefix
=$ac_optarg ;;
863 -gas |
--gas |
--ga |
--g)
864 # Obsolete; use --with-gas.
867 -help |
--help |
--hel |
--he |
-h)
869 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
870 ac_init_help
=recursive
;;
871 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
872 ac_init_help
=short
;;
874 -host |
--host |
--hos |
--ho)
875 ac_prev
=host_alias
;;
876 -host=* |
--host=* |
--hos=* |
--ho=*)
877 host_alias
=$ac_optarg ;;
879 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
881 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
883 htmldir
=$ac_optarg ;;
885 -includedir |
--includedir |
--includedi |
--included |
--include \
886 |
--includ |
--inclu |
--incl |
--inc)
887 ac_prev
=includedir
;;
888 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
889 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
890 includedir
=$ac_optarg ;;
892 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
894 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
895 infodir
=$ac_optarg ;;
897 -libdir |
--libdir |
--libdi |
--libd)
899 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
902 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
903 |
--libexe |
--libex |
--libe)
904 ac_prev
=libexecdir
;;
905 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
906 |
--libexe=* |
--libex=* |
--libe=*)
907 libexecdir
=$ac_optarg ;;
909 -localedir |
--localedir |
--localedi |
--localed |
--locale)
911 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
912 localedir
=$ac_optarg ;;
914 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
915 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
916 ac_prev
=localstatedir
;;
917 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
918 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
919 localstatedir
=$ac_optarg ;;
921 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
923 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
927 # Obsolete; use --without-fp.
930 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
931 |
--no-cr |
--no-c |
-n)
934 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
935 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
938 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
939 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
940 |
--oldin |
--oldi |
--old |
--ol |
--o)
941 ac_prev
=oldincludedir
;;
942 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
943 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
944 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
945 oldincludedir
=$ac_optarg ;;
947 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
949 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
952 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
953 |
--program-pre |
--program-pr |
--program-p)
954 ac_prev
=program_prefix
;;
955 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
956 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
957 program_prefix
=$ac_optarg ;;
959 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
960 |
--program-suf |
--program-su |
--program-s)
961 ac_prev
=program_suffix
;;
962 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
963 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
964 program_suffix
=$ac_optarg ;;
966 -program-transform-name |
--program-transform-name \
967 |
--program-transform-nam |
--program-transform-na \
968 |
--program-transform-n |
--program-transform- \
969 |
--program-transform |
--program-transfor \
970 |
--program-transfo |
--program-transf \
971 |
--program-trans |
--program-tran \
972 |
--progr-tra |
--program-tr |
--program-t)
973 ac_prev
=program_transform_name
;;
974 -program-transform-name=* |
--program-transform-name=* \
975 |
--program-transform-nam=* |
--program-transform-na=* \
976 |
--program-transform-n=* |
--program-transform-=* \
977 |
--program-transform=* |
--program-transfor=* \
978 |
--program-transfo=* |
--program-transf=* \
979 |
--program-trans=* |
--program-tran=* \
980 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
981 program_transform_name
=$ac_optarg ;;
983 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
985 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
988 -psdir |
--psdir |
--psdi |
--psd |
--ps)
990 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
993 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
994 |
-silent |
--silent |
--silen |
--sile |
--sil)
997 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
999 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1001 sbindir
=$ac_optarg ;;
1003 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1004 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1005 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1007 ac_prev
=sharedstatedir
;;
1008 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1009 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1010 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1012 sharedstatedir
=$ac_optarg ;;
1014 -site |
--site |
--sit)
1016 -site=* |
--site=* |
--sit=*)
1019 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1021 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1022 srcdir
=$ac_optarg ;;
1024 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1025 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1026 ac_prev
=sysconfdir
;;
1027 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1028 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1029 sysconfdir
=$ac_optarg ;;
1031 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1032 ac_prev
=target_alias
;;
1033 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1034 target_alias
=$ac_optarg ;;
1036 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1039 -version |
--version |
--versio |
--versi |
--vers |
-V)
1040 ac_init_version
=: ;;
1043 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_
$ac_package=\
$ac_optarg ;;
1051 -without-* |
--without-*)
1052 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_
$ac_package=no
;;
1061 # Obsolete; use --with-x.
1064 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1065 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1066 ac_prev
=x_includes
;;
1067 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1068 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1069 x_includes
=$ac_optarg ;;
1071 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1072 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1073 ac_prev
=x_libraries
;;
1074 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1075 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1076 x_libraries
=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1084 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\
$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 if test -n "$ac_prev"; then
1104 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val
=\$
$ac_var
1117 [\\/$
]* | ?
:[\\/]* ) continue;;
1118 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1129 target
=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x
; then
1133 if test "x$build_alias" = x
; then
1134 cross_compiling
=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1143 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1145 test "$silent" = yes && exec 6>/dev
/null
1148 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di
=`ls -di .` &&
1150 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted
=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir
=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1190 ac_srcdir_defaulted
=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1210 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 for ac_var
in $ac_precious_vars; do
1213 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1215 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1226 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1289 --build=BUILD configure
for building on BUILD
[guessed
]
1290 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1291 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1295 if test -n "$ac_init_help"; then
1296 case $ac_init_help in
1297 short | recursive
) echo "Configuration of GRUB 1.96:";;
1302 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1303 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1304 --disable-largefile omit support
for large files
1305 --enable-lzo use lzo to
compress kernel
(default is lzma
)
1306 --enable-mm-debug include memory manager debugging
1307 --enable-grub-emu build and
install the
`grub-emu' debugging utility
1308 --enable-grub-emu-usb build and install the `grub-emu
' debugging utility
1310 --enable-grub-fstest build and install the `grub-fstest' debugging
1312 --enable-grub-pe2elf build and
install the
`grub-pe2elf' conversion
1314 --enable-grub-mkfont build and install the `grub-mkfont
' utility
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-platform=PLATFORM
1320 select the host platform [guessed]
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1332 Use these variables to override the choices made by `configure' or to
help
1333 it to
find libraries and programs with nonstandard names
/locations.
1335 Report bugs to
<bug-grub@gnu.org
>.
1340 if test "$ac_init_help" = "recursive"; then
1341 # If there are subdirs, report their specific --help.
1342 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1343 test -d "$ac_dir" ||
continue
1347 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1349 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1350 # A ".." for each directory in $ac_dir_suffix.
1351 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1352 case $ac_top_builddir_sub in
1353 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1354 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1357 ac_abs_top_builddir
=$ac_pwd
1358 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1359 # for backward compatibility:
1360 ac_top_builddir
=$ac_top_build_prefix
1363 .
) # We are building in place.
1365 ac_top_srcdir
=$ac_top_builddir_sub
1366 ac_abs_top_srcdir
=$ac_pwd ;;
1367 [\\/]* | ?
:[\\/]* ) # Absolute name.
1368 ac_srcdir
=$srcdir$ac_dir_suffix;
1369 ac_top_srcdir
=$srcdir
1370 ac_abs_top_srcdir
=$srcdir ;;
1372 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1374 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1376 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1378 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1379 # Check for guested configure.
1380 if test -f "$ac_srcdir/configure.gnu"; then
1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383 elif test -f "$ac_srcdir/configure"; then
1385 $SHELL "$ac_srcdir/configure" --help=recursive
1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1393 test -n "$ac_init_help" && exit $ac_status
1394 if $ac_init_version; then
1397 generated by GNU Autoconf
2.61
1399 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1400 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1401 This configure
script is free software
; the Free Software Foundation
1402 gives unlimited permission to copy
, distribute and modify it.
1406 cat >config.log
<<_ACEOF
1407 This file contains any messages produced by compilers while
1408 running configure, to aid debugging if configure makes a mistake.
1410 It was created by GRUB $as_me 1.96, which was
1411 generated by GNU Autoconf 2.61. Invocation command line was
1423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1446 test -z "$as_dir" && as_dir
=.
1447 echo "PATH: $as_dir"
1463 # Keep a trace of the command line.
1464 # Strip out --no-create and --no-recursion so they do not pile up.
1465 # Strip out --silent because we don't want to record it for future runs.
1466 # Also quote any args containing shell meta-characters.
1467 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_must_keep_next
=false
1477 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1478 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1479 |
-silent |
--silent |
--silen |
--sile |
--sil)
1482 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1485 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1487 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1488 if test $ac_must_keep_next = true
; then
1489 ac_must_keep_next
=false
# Got value, back to normal.
1492 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1493 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1494 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1495 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1496 case "$ac_configure_args0 " in
1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1500 -* ) ac_must_keep_next
=true
;;
1503 ac_configure_args
="$ac_configure_args '$ac_arg'"
1508 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1509 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1511 # When interrupted or exit'd, cleanup temporary files, and complete
1512 # config.log. We remove comments because anyway the quotes in there
1513 # would cause problems or look ugly.
1514 # WARNING: Use '\'' to represent an apostrophe within the trap.
1515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1516 trap 'exit_status=$?
1517 # Save into config.log some information that might help in debugging.
1522 ## ---------------- ##
1523 ## Cache variables. ##
1524 ## ---------------- ##
1527 # The following way of writing the cache mishandles newlines in values,
1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1530 eval ac_val=\$$ac_var
1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1535 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1538 _ | IFS | as_nl) ;; #(
1539 *) $as_unset $ac_var ;;
1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1545 *${as_nl}ac_space=\ *)
1547 "s/'\''/'\''\\\\'\'''\''/g;
1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1559 ## ----------------- ##
1560 ## Output variables. ##
1561 ## ----------------- ##
1564 for ac_var in $ac_subst_vars
1566 eval ac_val=\$$ac_var
1568 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570 echo "$ac_var='\''$ac_val'\''"
1574 if test -n "$ac_subst_files"; then
1576 ## ------------------- ##
1577 ## File substitutions. ##
1578 ## ------------------- ##
1581 for ac_var
in $ac_subst_files
1583 eval ac_val
=\$
$ac_var
1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587 echo "$ac_var='\''$ac_val'\''"
1592 if test -s confdefs.h; then
1602 test "$ac_signal" != 0 &&
1603 echo "$as_me: caught signal $ac_signal"
1604 echo "$as_me: exit $exit_status"
1606 rm -f core *.core core.conftest.* &&
1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1610 for ac_signal
in 1 2 13 15; do
1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1616 rm -f -r conftest
* confdefs.h
1618 # Predefined preprocessor variables.
1620 cat >>confdefs.h
<<_ACEOF
1621 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 cat >>confdefs.h
<<_ACEOF
1626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 cat >>confdefs.h
<<_ACEOF
1631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 cat >>confdefs.h
<<_ACEOF
1636 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 cat >>confdefs.h
<<_ACEOF
1641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 # Let the site file select an alternate cache file if it wants to.
1646 # Prefer explicitly selected file to automatically selected ones.
1647 if test -n "$CONFIG_SITE"; then
1648 set x
"$CONFIG_SITE"
1649 elif test "x$prefix" != xNONE
; then
1650 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1652 set x
"$ac_default_prefix/share/config.site" \
1653 "$ac_default_prefix/etc/config.site"
1658 if test -r "$ac_site_file"; then
1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1660 echo "$as_me: loading site script $ac_site_file" >&6;}
1661 sed 's/^/| /' "$ac_site_file" >&5
1666 if test -r "$cache_file"; then
1667 # Some versions of bash will fail to source /dev/null (special
1668 # files actually), so we avoid doing that.
1669 if test -f "$cache_file"; then
1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1671 echo "$as_me: loading cache $cache_file" >&6;}
1673 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1674 *) .
"./$cache_file";;
1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1679 echo "$as_me: creating cache $cache_file" >&6;}
1683 # Check that the precious variables saved in the cache have kept the same
1685 ac_cache_corrupted
=false
1686 for ac_var
in $ac_precious_vars; do
1687 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1688 eval ac_new_set
=\
$ac_env_${ac_var}_set
1689 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1690 eval ac_new_val
=\
$ac_env_${ac_var}_value
1691 case $ac_old_set,$ac_new_set in
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1695 ac_cache_corrupted
=: ;;
1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1698 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1699 ac_cache_corrupted
=: ;;
1702 if test "x$ac_old_val" != "x$ac_new_val"; then
1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1704 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1706 echo "$as_me: former value: $ac_old_val" >&2;}
1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1708 echo "$as_me: current value: $ac_new_val" >&2;}
1709 ac_cache_corrupted
=:
1712 # Pass precious variables to config.status.
1713 if test "$ac_new_set" = set; then
1715 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 *) ac_arg
=$ac_var=$ac_new_val ;;
1718 case " $ac_configure_args " in
1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1720 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1724 if $ac_cache_corrupted; then
1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1726 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1728 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1729 { (exit 1); exit 1; }; }
1757 ac_cpp
='$CPP $CPPFLAGS'
1758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1765 ac_config_headers
="$ac_config_headers config.h"
1768 # Checks for host and target systems.
1770 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1773 ac_install_sh
="$ac_aux_dir/install-sh -c"
1775 elif test -f "$ac_dir/install.sh"; then
1777 ac_install_sh
="$ac_aux_dir/install.sh -c"
1779 elif test -f "$ac_dir/shtool"; then
1781 ac_install_sh
="$ac_aux_dir/shtool install -c"
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Make sure we can run config.sub.
1801 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1802 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1803 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1804 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: checking build system type" >&5
1807 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1808 if test "${ac_cv_build+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 ac_build_alias
=$build_alias
1812 test "x$ac_build_alias" = x
&&
1813 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1814 test "x$ac_build_alias" = x
&&
1815 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1816 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1817 { (exit 1); exit 1; }; }
1818 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1824 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1825 echo "${ECHO_T}$ac_cv_build" >&6; }
1826 case $ac_cv_build in
1828 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1829 echo "$as_me: error: invalid value of canonical build" >&2;}
1830 { (exit 1); exit 1; }; };;
1833 ac_save_IFS
=$IFS; IFS
='-'
1839 # Remember, the first character of IFS is used to create $*,
1840 # except with old shells:
1843 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1846 { echo "$as_me:$LINENO: checking host system type" >&5
1847 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1848 if test "${ac_cv_host+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test "x$host_alias" = x
; then
1852 ac_cv_host
=$ac_cv_build
1854 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1855 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1856 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1857 { (exit 1); exit 1; }; }
1861 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1862 echo "${ECHO_T}$ac_cv_host" >&6; }
1865 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1866 echo "$as_me: error: invalid value of canonical host" >&2;}
1867 { (exit 1); exit 1; }; };;
1870 ac_save_IFS
=$IFS; IFS
='-'
1876 # Remember, the first character of IFS is used to create $*,
1877 # except with old shells:
1880 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1883 { echo "$as_me:$LINENO: checking target system type" >&5
1884 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1885 if test "${ac_cv_target+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test "x$target_alias" = x
; then
1889 ac_cv_target
=$ac_cv_host
1891 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1892 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1893 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1894 { (exit 1); exit 1; }; }
1898 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1899 echo "${ECHO_T}$ac_cv_target" >&6; }
1900 case $ac_cv_target in
1902 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1903 echo "$as_me: error: invalid value of canonical target" >&2;}
1904 { (exit 1); exit 1; }; };;
1906 target
=$ac_cv_target
1907 ac_save_IFS
=$IFS; IFS
='-'
1913 # Remember, the first character of IFS is used to create $*,
1914 # except with old shells:
1917 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1920 # The aliases save the names the user supplied, while $host etc.
1921 # will get canonicalized.
1922 test -n "$target_alias" &&
1923 test "$program_prefix$program_suffix$program_transform_name" = \
1925 program_prefix
=${target_alias}-
1927 # Program name transformations
1928 test "$program_prefix" != NONE
&&
1929 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1930 # Use a double $ so make ignores it.
1931 test "$program_suffix" != NONE
&&
1932 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1933 # Double any \ or $. echo might interpret backslashes.
1934 # By default was `s,x,x', remove it if useless.
1935 cat <<\_ACEOF
>conftest.
sed
1936 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1938 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1943 powerpc64
) host_m32
=1 ;;
1946 case "$target_cpu" in
1947 i
[3456]86) target_cpu
=i386
;;
1950 # Specify the platform (such as firmware).
1952 # Check whether --with-platform was given.
1953 if test "${with_platform+set}" = set; then
1954 withval
=$with_platform;
1958 # Guess the platform if not specified.
1959 if test "x$with_platform" = x
; then
1960 case "$target_cpu"-"$target_vendor" in
1961 i386-apple
) platform
=efi
;;
1962 i386-
*) platform
=pc
;;
1963 x86_64-apple
) platform
=efi
;;
1964 x86_64-
*) platform
=pc
;;
1965 powerpc-
*) platform
=ieee1275
;;
1966 powerpc64-
*) platform
=ieee1275
;;
1967 sparc64-
*) platform
=ieee1275
;;
1968 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1969 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1970 { (exit 1); exit 1; }; } ;;
1973 platform
="$with_platform"
1976 # Adjust CPU unless target was explicitly specified.
1977 if test -z "$target_alias"; then
1978 case "$target_cpu"-"$platform" in
1980 x86_64-
*) target_cpu
=i386
;;
1981 powerpc64-ieee1275
) target_cpu
=powerpc
;;
1985 # Check if the platform is supported, make final adjustments.
1986 case "$target_cpu"-"$platform" in
1991 i386-linuxbios
) platform
=coreboot
;;
1993 powerpc-ieee1275
) ;;
1994 sparc64-ieee1275
) ;;
1995 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1996 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1997 { (exit 1); exit 1; }; } ;;
2000 case "$target_cpu" in
2001 i386 | powerpc
) target_m32
=1 ;;
2002 x86_64 | sparc64
) target_m64
=1 ;;
2006 mingw32
) host_os
=cygwin
;;
2016 # Checks for build programs.
2019 # Although cmp is listed in the GNU Coding Standards as a command which
2020 # can used directly, OpenBSD lacks cmp in the default installation.
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy
$ac_prog; ac_word
=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CMP+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CMP"; then
2031 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
2033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir
=.
2038 for ac_exec_ext
in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_CMP
="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test -n "$CMP"; then
2052 { echo "$as_me:$LINENO: result: $CMP" >&5
2053 echo "${ECHO_T}$CMP" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$CMP" && break
2063 if test "x$CMP" = x
; then
2064 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2065 echo "$as_me: error: cmp is not found" >&2;}
2066 { (exit 1); exit 1; }; }
2069 for ac_prog
in bison
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy
$ac_prog; ac_word
=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_YACC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$YACC"; then
2079 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir
=.
2086 for ac_exec_ext
in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_YACC
="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 YACC
=$ac_cv_prog_YACC
2099 if test -n "$YACC"; then
2100 { echo "$as_me:$LINENO: result: $YACC" >&5
2101 echo "${ECHO_T}$YACC" >&6; }
2103 { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2108 test -n "$YACC" && break
2111 if test "x$YACC" = x
; then
2112 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2113 echo "$as_me: error: bison is not found" >&2;}
2114 { (exit 1); exit 1; }; }
2117 for file in /usr
/src
/unifont.bdf
; do
2118 if test -e $file ; then
2125 # Find a good install program. We prefer a C program (faster),
2126 # so one script is as good as another. But avoid the broken or
2127 # incompatible versions:
2128 # SysV /etc/install, /usr/sbin/install
2129 # SunOS /usr/etc/install
2130 # IRIX /sbin/install
2132 # AmigaOS /C/install, which installs bootblocks on floppy discs
2133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2136 # OS/2's system install, which has a completely different semantic
2137 # ./install, which can be erroneously created by make from ./install.sh.
2138 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2139 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2140 if test -z "$INSTALL"; then
2141 if test "${ac_cv_path_install+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir
=.
2149 # Account for people who put trailing slashes in PATH elements.
2151 .
/ | .
// |
/cC
/* | \
2152 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2153 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2156 # OSF1 and SCO ODT 3.0 have their own names for install.
2157 # Don't use installbsd from OSF since it installs stuff as root
2159 for ac_prog
in ginstall scoinst
install; do
2160 for ac_exec_ext
in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2162 if test $ac_prog = install &&
2163 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2164 # AIX install. It has an incompatible calling convention.
2166 elif test $ac_prog = install &&
2167 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2168 # program-specific install script used by HP pwplus--don't use.
2171 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2184 if test "${ac_cv_path_install+set}" = set; then
2185 INSTALL
=$ac_cv_path_install
2187 # As a last resort, use the slow shell script. Don't cache a
2188 # value for INSTALL within a source directory, because that will
2189 # break other packages using the cache if that directory is
2190 # removed, or if the value is a relative name.
2191 INSTALL
=$ac_install_sh
2194 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2195 echo "${ECHO_T}$INSTALL" >&6; }
2197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2198 # It thinks the first close brace ends the variable substitution.
2199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2203 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2205 for ac_prog
in gawk mawk nawk
awk
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy
$ac_prog; ac_word
=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir
=.
2222 for ac_exec_ext
in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK
="$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$AWK"; then
2236 { echo "$as_me:$LINENO: result: $AWK" >&5
2237 echo "${ECHO_T}$AWK" >&6; }
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2244 test -n "$AWK" && break
2247 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2249 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2250 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 cat >conftest.
make <<\_ACEOF
2256 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2263 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2267 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2268 { echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6; }
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 SET_MAKE
="MAKE=${MAKE-make}"
2278 # These are not a "must".
2279 # Extract the first word of "ruby", so it can be a program name with args.
2280 set dummy ruby
; ac_word
=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_path_RUBY+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_cv_path_RUBY
="$RUBY" # Let the user override the test with a path.
2291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir
=.
2296 for ac_exec_ext
in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_path_RUBY
="$as_dir/$ac_word$ac_exec_ext"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 RUBY
=$ac_cv_path_RUBY
2310 if test -n "$RUBY"; then
2311 { echo "$as_me:$LINENO: result: $RUBY" >&5
2312 echo "${ECHO_T}$RUBY" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2319 # Extract the first word of "help2man", so it can be a program name with args.
2320 set dummy help2man
; ac_word
=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
2331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir
=.
2336 for ac_exec_ext
in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 HELP2MAN
=$ac_cv_path_HELP2MAN
2350 if test -n "$HELP2MAN"; then
2351 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2352 echo "${ECHO_T}$HELP2MAN" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2361 # Checks for host programs.
2365 ac_cpp
='$CPP $CPPFLAGS'
2366 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2371 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC
="$CC" # Let the user override the test.
2380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir
=.
2385 for ac_exec_ext
in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 if test -n "$CC"; then
2399 { echo "$as_me:$LINENO: result: $CC" >&5
2400 echo "${ECHO_T}$CC" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2408 if test -z "$ac_cv_prog_CC"; then
2410 # Extract the first word of "gcc", so it can be a program name with args.
2411 set dummy gcc
; ac_word
=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$ac_ct_CC"; then
2418 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir
=.
2425 for ac_exec_ext
in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_ac_ct_CC
="gcc"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2438 if test -n "$ac_ct_CC"; then
2439 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2440 echo "${ECHO_T}$ac_ct_CC" >&6; }
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2446 if test "x$ac_ct_CC" = x
; then
2449 case $cross_compiling:$ac_tool_warned in
2451 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&5
2454 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2455 whose name does not start with the host triplet. If you think this
2456 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2457 ac_tool_warned
=yes ;;
2465 if test -z "$CC"; then
2466 if test -n "$ac_tool_prefix"; then
2467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2468 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC
="$CC" # Let the user override the test.
2477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir
=.
2482 for ac_exec_ext
in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$CC"; then
2496 { echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6; }
2499 { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2506 if test -z "$CC"; then
2507 # Extract the first word of "cc", so it can be a program name with args.
2508 set dummy cc
; ac_word
=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC
="$CC" # Let the user override the test.
2518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir
=.
2523 for ac_exec_ext
in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2526 ac_prog_rejected
=yes
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 if test $ac_prog_rejected = yes; then
2538 # We found a bogon in the path, so make sure we never use it.
2539 set dummy
$ac_cv_prog_CC
2541 if test $# != 0; then
2542 # We chose a different compiler from the bogus one.
2543 # However, it has the same basename, so the bogon will be chosen
2544 # first if we set CC to just the basename; use the full file name.
2546 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2552 if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6; }
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2562 if test -z "$CC"; then
2563 if test -n "$ac_tool_prefix"; then
2564 for ac_prog
in cl.exe
2566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2567 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC
="$CC" # Let the user override the test.
2576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir
=.
2581 for ac_exec_ext
in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 if test -n "$CC"; then
2595 { echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6; }
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2603 test -n "$CC" && break
2606 if test -z "$CC"; then
2608 for ac_prog
in cl.exe
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy
$ac_prog; ac_word
=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir
=.
2625 for ac_exec_ext
in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC
="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$ac_ct_CC" && break
2650 if test "x$ac_ct_CC" = x
; then
2653 case $cross_compiling:$ac_tool_warned in
2655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&5
2658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet. If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2661 ac_tool_warned
=yes ;;
2670 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details." >&5
2672 echo "$as_me: error: no acceptable C compiler found in \$PATH
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }
2676 # Provide some information about the compiler.
2677 echo "$as_me:$LINENO: checking for C compiler version" >&5
2678 ac_compiler
=`set X $ac_compile; echo $2`
2679 { (ac_try
="$ac_compiler --version >&5"
2681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler --version >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -v >&5"
2691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2692 *) ac_try_echo
=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -v >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try
="$ac_compiler -V >&5"
2701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -V >&5") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 ac_clean_files_save=$ac_clean_files
2726 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2727 # Try to create an executable without -o first, disregard a.out.
2728 # It will help us diagnose broken compilers, and finding out an intuition
2730 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2731 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2732 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2734 # List of possible output files, starting from the most likely.
2735 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2736 # only as a last resort. b.out is created by i960 compilers.
2737 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2739 # The IRIX 6 linker writes into existing files which may not be
2740 # executable, retaining their permissions. Remove them first so a
2741 # subsequent execution test works.
2743 for ac_file in $ac_files
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2747 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2752 if { (ac_try="$ac_link_default"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_link_default") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2764 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2765 # so that the user can short-circuit this test for compilers unknown to
2767 for ac_file
in $ac_files ''
2769 test -f "$ac_file" ||
continue
2771 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2774 # We found the default executable, but exeext='' is most
2778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2780 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782 # We set ac_cv_exeext here because the later test for it is not
2783 # safe: cross compilers may not add the suffix if given an `-o'
2784 # argument, so we may need to know it at that point already.
2785 # Even if this section looks crufty: it has the advantage of
2792 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2800 if test -z "$ac_file"; then
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.
$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: C compiler cannot create executables
2807 See \`config.log' for more details." >&2;}
2808 { (exit 77); exit 77; }; }
2811 ac_exeext
=$ac_cv_exeext
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2816 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2817 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2818 # If not cross compiling, check that we can run a simple program.
2819 if test "$cross_compiling" != yes; then
2820 if { ac_try
='./$ac_file'
2821 { (case "(($ac_try" in
2822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_try") 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 if test "$cross_compiling" = maybe; then
2835 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2836 If you meant to cross compile, use \`--host'.
2837 See \`config.log' for more details.
" >&5
2838 echo "$as_me: error
: cannot run C compiled programs.
2839 If you meant to cross compile
, use \
`--host'.
2840 See \`config.log
' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2845 { echo "$as_me:$LINENO: result: yes" >&5
2846 echo "${ECHO_T}yes" >&6; }
2848 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2849 ac_clean_files=$ac_clean_files_save
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2853 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2854 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2855 echo "${ECHO_T}$cross_compiling" >&6; }
2857 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2858 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2859 if { (ac_try="$ac_link"
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link") 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2870 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2871 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2873 for ac_file
in conftest.exe conftest conftest.
*; do
2874 test -f "$ac_file" ||
continue
2876 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2877 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2890 rm -f conftest
$ac_cv_exeext
2891 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2894 rm -f conftest.
$ac_ext
2895 EXEEXT
=$ac_cv_exeext
2897 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2899 if test "${ac_cv_objext+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.o conftest.obj
2918 if { (ac_try
="$ac_compile"
2920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compile") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2941 See \`config.log
' for more details." >&5
2942 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details.
" >&2;}
2944 { (exit 1); exit 1; }; }
2947 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2949 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2950 echo "${ECHO_T}$ac_cv_objext" >&6; }
2951 OBJEXT=$ac_cv_objext
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2955 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2956 echo $ECHO_N "(cached
) $ECHO_C" >&6
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2995 echo "$as_me: failed program was
:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3005 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3007 GCC=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CFLAGS=${CFLAGS+set}
3009 ac_save_CFLAGS=$CFLAGS
3010 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3011 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_g+set}" = set; then
3013 echo $ECHO_N "(cached
) $ECHO_C" >&6
3015 ac_save_c_werror_flag=$ac_c_werror_flag
3016 ac_c_werror_flag=yes
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3053 echo "$as_me: failed program was
:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3091 echo "$as_me: failed program was
:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 ac_c_werror_flag=$ac_save_c_werror_flag
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
3130 echo "$as_me: failed program was
:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3145 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3156 if test "$GCC" = yes; then
3162 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3163 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then
3165 echo $ECHO_N "(cached
) $ECHO_C" >&6
3167 ac_cv_prog_cc_c89=no
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3193 s = g (p, va_arg (v,int));
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 CC="$ac_save_CC $ac_arg"
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3247 ac_cv_prog_cc_c89=$ac_arg
3249 echo "$as_me: failed program was
:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3255 rm -f core conftest.err conftest.$ac_objext
3256 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3258 rm -f conftest.$ac_ext
3263 case "x
$ac_cv_prog_cc_c89" in
3265 { echo "$as_me:$LINENO: result
: none needed
" >&5
3266 echo "${ECHO_T}none needed
" >&6; } ;;
3268 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3269 echo "${ECHO_T}unsupported
" >&6; } ;;
3271 CC="$CC $ac_cv_prog_cc_c89"
3272 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 test "x
$GCC" = xyes || { { echo "$as_me:$LINENO: error
: GCC is required
" >&5
3285 echo "$as_me: error
: GCC is required
" >&2;}
3286 { (exit 1); exit 1; }; }
3289 cat >>confdefs.h <<\_ACEOF
3290 #define _GNU_SOURCE 1
3295 # Check whether --enable-largefile was given.
3296 if test "${enable_largefile+set}" = set; then
3297 enableval=$enable_largefile;
3300 if test "$enable_largefile" != no; then
3302 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
3303 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
3304 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3305 echo $ECHO_N "(cached
) $ECHO_C" >&6
3307 ac_cv_sys_largefile_CC=no
3308 if test "$GCC" != yes; then
3311 # IRIX 6.2 and later do not support large files by default,
3312 # so use the C compiler's -n32 option if that helps.
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <sys/types.h>
3320 /* Check that off_t can represent 2**63 - 1 correctly.
3321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3322 since some C++ compilers masquerading as C compilers
3323 incorrectly reject 9223372036854775807. */
3324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3326 && LARGE_OFF_T % 2147483647 == 1)
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3349 (exit $ac_status); } && {
3350 test -z "$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 } && test -s conftest.$ac_objext; then
3355 echo "$as_me: failed program was
:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext
3363 rm -f conftest.$ac_objext
3364 if { (ac_try="$ac_compile"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest.$ac_objext; then
3380 ac_cv_sys_largefile_CC=' -n32'; break
3382 echo "$as_me: failed program was
:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3388 rm -f core conftest.err conftest.$ac_objext
3392 rm -f conftest.$ac_ext
3395 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
3396 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3397 if test "$ac_cv_sys_largefile_CC" != no; then
3398 CC=$CC$ac_cv_sys_largefile_CC
3401 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
3402 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
3403 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3404 echo $ECHO_N "(cached
) $ECHO_C" >&6
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <sys/types.h>
3414 /* Check that off_t can represent 2**63 - 1 correctly.
3415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3416 since some C++ compilers masquerading as C compilers
3417 incorrectly reject 9223372036854775807. */
3418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3420 && LARGE_OFF_T % 2147483647 == 1)
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_sys_file_offset_bits=no; break
3449 echo "$as_me: failed program was
:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #define _FILE_OFFSET_BITS 64
3463 #include <sys/types.h>
3464 /* Check that off_t can represent 2**63 - 1 correctly.
3465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3466 since some C++ compilers masquerading as C compilers
3467 incorrectly reject 9223372036854775807. */
3468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3470 && LARGE_OFF_T % 2147483647 == 1)
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_sys_file_offset_bits=64; break
3499 echo "$as_me: failed program was
:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_sys_file_offset_bits=unknown
3510 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
3511 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3512 case $ac_cv_sys_file_offset_bits in #(
3515 cat >>confdefs.h <<_ACEOF
3516 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3521 if test $ac_cv_sys_file_offset_bits = unknown; then
3522 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
3523 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
3524 if test "${ac_cv_sys_large_files+set}" = set; then
3525 echo $ECHO_N "(cached
) $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 /* Check that off_t can represent 2**63 - 1 correctly.
3536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3537 since some C++ compilers masquerading as C compilers
3538 incorrectly reject 9223372036854775807. */
3539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3541 && LARGE_OFF_T % 2147483647 == 1)
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3568 ac_cv_sys_large_files=no; break
3570 echo "$as_me: failed program was
:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #define _LARGE_FILES 1
3584 #include <sys/types.h>
3585 /* Check that off_t can represent 2**63 - 1 correctly.
3586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3587 since some C++ compilers masquerading as C compilers
3588 incorrectly reject 9223372036854775807. */
3589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3591 && LARGE_OFF_T % 2147483647 == 1)
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_sys_large_files=1; break
3620 echo "$as_me: failed program was
:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_sys_large_files=unknown
3631 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
3632 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3633 case $ac_cv_sys_large_files in #(
3636 cat >>confdefs.h <<_ACEOF
3637 #define _LARGE_FILES $ac_cv_sys_large_files
3646 # Identify characteristics of the host architecture.
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3653 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3658 if test -z "$CPP"; then
3659 if test "${ac_cv_prog_CPP+set}" = set; then
3660 echo $ECHO_N "(cached
) $ECHO_C" >&6
3662 # Double quotes because CPP needs to be expanded
3663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error
" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 # include <limits.h>
3683 # include <assert.h>
3687 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3705 echo "$as_me: failed program was
:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3736 (exit $ac_status); } >/dev/null && {
3737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3740 # Broken: success on invalid input.
3743 echo "$as_me: failed program was
:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3768 { echo "$as_me:$LINENO: result
: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error
" is here to catch this case.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 # include <limits.h>
3788 # include <assert.h>
3792 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3810 echo "$as_me: failed program was
:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 # Broken: fails on valid input.
3817 rm -f conftest.err conftest.$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3841 (exit $ac_status); } >/dev/null && {
3842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3843 test ! -s conftest.err
3845 # Broken: success on invalid input.
3848 echo "$as_me: failed program was
:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 # Passes both tests.
3856 rm -f conftest.err conftest.$ac_ext
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.$ac_ext
3861 if $ac_preproc_ok; then
3864 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3865 See \
`config.log' for more details." >&5
3866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3867 See \`config.log
' for more details." >&2;}
3868 { (exit 1); exit 1; }; }
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3874 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_path_GREP_found=false
3890 # Loop through the user's path and
test for each of PROGNAME-LIST
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3892 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_prog
in grep ggrep
; do
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3904 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3915 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3916 ac_count
=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP
="$ac_path_GREP"
3920 ac_path_GREP_max
=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3925 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3929 $ac_path_GREP_found && break 3
3939 GREP
="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3947 ac_cv_path_GREP
=$GREP
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP
="$ac_cv_path_GREP"
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3963 then ac_cv_path_EGREP
="$GREP -E"
3965 # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy
egrep; ac_prog_name
=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_EGREP_found
=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_prog
in egrep; do
3979 for ac_exec_ext
in '' $ac_executable_extensions; do
3980 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3986 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3997 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3998 ac_count
=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP
="$ac_path_EGREP"
4002 ac_path_EGREP_max
=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4011 $ac_path_EGREP_found && break 3
4021 EGREP
="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_EGREP
=$EGREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP
="$ac_cv_path_EGREP"
4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.
$ac_ext <<_ACEOF
4048 cat confdefs.h
>>conftest.
$ac_ext
4049 cat >>conftest.
$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4064 rm -f conftest.
$ac_objext
4065 if { (ac_try
="$ac_compile"
4067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_header_stdc=yes
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_header_stdc=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 if test $ac_cv_header_stdc = yes; then
4092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "memchr" >/dev/null 2>&1; then
4106 ac_cv_header_stdc=no
4112 if test $ac_cv_header_stdc = yes; then
4113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "free" >/dev/null 2>&1; then
4127 ac_cv_header_stdc=no
4133 if test $ac_cv_header_stdc = yes; then
4134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135 if test "$cross_compiling" = yes; then
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4169 rm -f conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4173 *) ac_try_echo
=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_link") 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4180 { (case "(($ac_try" in
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 echo "$as_me: program exited with status $ac_status" >&5
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4196 ac_cv_header_stdc=no
4198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4205 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4206 if test $ac_cv_header_stdc = yes; then
4208 cat >>confdefs.h <<\_ACEOF
4209 #define STDC_HEADERS 1
4214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4225 inttypes.h stdint.h unistd.h
4227 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 $ac_includes_default
4241 #include <$ac_header>
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4247 *) ac_try_echo
=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1
>conftest.err
4254 cat conftest.err
>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } && {
4257 test -z "$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 } && test -s conftest.
$ac_objext; then
4260 eval "$as_ac_Header=yes"
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.
$ac_ext >&5
4265 eval "$as_ac_Header=no"
4268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4270 ac_res
=`eval echo '${'$as_ac_Header'}'`
4271 { echo "$as_me:$LINENO: result: $ac_res" >&5
4272 echo "${ECHO_T}$ac_res" >&6; }
4273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4274 cat >>confdefs.h
<<_ACEOF
4275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4284 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4285 if test "${ac_cv_c_bigendian+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 # See if sys/param.h defines the BYTE_ORDER macro.
4289 cat >conftest.
$ac_ext <<_ACEOF
4292 cat confdefs.h
>>conftest.
$ac_ext
4293 cat >>conftest.
$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 #include <sys/param.h>
4301 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4302 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4310 rm -f conftest.
$ac_objext
4311 if { (ac_try
="$ac_compile"
4313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && {
4324 test -z "$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 } && test -s conftest.$ac_objext; then
4327 # It does; now see whether it defined to BIG_ENDIAN or not.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 #include <sys/param.h>
4340 #if BYTE_ORDER != BIG_ENDIAN
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4352 *) ac_try_echo
=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4357 grep -v '^ *+' conftest.er1
>conftest.err
4359 cat conftest.err
>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && {
4362 test -z "$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 } && test -s conftest.
$ac_objext; then
4365 ac_cv_c_bigendian
=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.
$ac_ext >&5
4370 ac_cv_c_bigendian
=no
4373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.
$ac_ext >&5
4378 # It does not; compile a test program.
4379 if test "$cross_compiling" = yes; then
4380 # try to guess the endianness by grepping values into an object file
4381 ac_cv_c_bigendian
=unknown
4382 cat >conftest.
$ac_ext <<_ACEOF
4385 cat confdefs.h
>>conftest.
$ac_ext
4386 cat >>conftest.
$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4389 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4391 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4392 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4397 _ascii (); _ebcdic ();
4402 rm -f conftest.
$ac_objext
4403 if { (ac_try
="$ac_compile"
4405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
4419 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4420 ac_cv_c_bigendian=yes
4422 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4423 if test "$ac_cv_c_bigendian" = unknown; then
4424 ac_cv_c_bigendian=no
4426 # finding both strings is unlikely to happen, but who knows?
4427 ac_cv_c_bigendian=unknown
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4450 /* Are we little or big endian? From Harbison&Steele. */
4454 char c[sizeof (long int)];
4457 return u.c[sizeof (long int) - 1] == 1;
4463 rm -f conftest$ac_exeext
4464 if { (ac_try="$ac_link"
4466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4467 *) ac_try_echo
=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_link") 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4474 { (case "(($ac_try" in
4475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_c_bigendian=no
4485 echo "$as_me: program exited with status $ac_status" >&5
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4490 ac_cv_c_bigendian=yes
4492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4501 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4502 case $ac_cv_c_bigendian in
4505 cat >>confdefs.h <<\_ACEOF
4506 #define WORDS_BIGENDIAN 1
4512 { { echo "$as_me:$LINENO: error: unknown endianness
4513 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4514 echo "$as_me: error: unknown endianness
4515 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4516 { (exit 1); exit 1; }; } ;;
4519 { echo "$as_me:$LINENO: checking for void *" >&5
4520 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4521 if test "${ac_cv_type_void_p+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 typedef void * ac__type_new_;
4535 if ((ac__type_new_ *) 0)
4537 if (sizeof (ac__type_new_))
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4547 *) ac_try_echo
=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.
$ac_objext; then
4560 ac_cv_type_void_p
=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4565 ac_cv_type_void_p
=no
4568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4570 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4571 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4573 # The cast to long int works around a bug in the HP C Compiler
4574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4576 # This bug is HP SR number 8606223364.
4577 { echo "$as_me:$LINENO: checking size of void *" >&5
4578 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4579 if test "${ac_cv_sizeof_void_p+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test "$cross_compiling" = yes; then
4583 # Depending upon the size, compute the lo and hi bounds.
4584 cat >conftest.
$ac_ext <<_ACEOF
4587 cat confdefs.h
>>conftest.
$ac_ext
4588 cat >>conftest.
$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 typedef void * ac__type_sizeof_;
4595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4602 rm -f conftest.
$ac_objext
4603 if { (ac_try
="$ac_compile"
4605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_compile") 2>conftest.er1
4611 grep -v '^ *+' conftest.er1 >conftest.err
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest.$ac_objext; then
4621 cat >conftest.$ac_ext <<_ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 $ac_includes_default
4628 typedef void * ac__type_sizeof_;
4632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4643 *) ac_try_echo
=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1
>conftest.err
4650 cat conftest.err
>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.
$ac_objext; then
4656 ac_hi
=$ac_mid; break
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.
$ac_ext >&5
4661 ac_lo
=`expr $ac_mid + 1`
4662 if test $ac_lo -le $ac_mid; then
4666 ac_mid
=`expr 2 '*' $ac_mid + 1`
4669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.
$ac_ext >&5
4675 cat >conftest.
$ac_ext <<_ACEOF
4678 cat confdefs.h
>>conftest.
$ac_ext
4679 cat >>conftest.
$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 typedef void * ac__type_sizeof_;
4686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4693 rm -f conftest.
$ac_objext
4694 if { (ac_try
="$ac_compile"
4696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.$ac_objext; then
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 $ac_includes_default
4719 typedef void * ac__type_sizeof_;
4723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4734 *) ac_try_echo
=$ac_try;;
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737 (eval "$ac_compile") 2>conftest.er1
4739 grep -v '^ *+' conftest.er1
>conftest.err
4741 cat conftest.err
>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && {
4744 test -z "$ac_c_werror_flag" ||
4745 test ! -s conftest.err
4746 } && test -s conftest.
$ac_objext; then
4747 ac_lo
=$ac_mid; break
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.
$ac_ext >&5
4752 ac_hi
=`expr '(' $ac_mid ')' - 1`
4753 if test $ac_mid -le $ac_hi; then
4757 ac_mid
=`expr 2 '*' $ac_mid`
4760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4773 # Binary search between lo and hi bounds.
4774 while test "x$ac_lo" != "x$ac_hi"; do
4775 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4776 cat >conftest.
$ac_ext <<_ACEOF
4779 cat confdefs.h
>>conftest.
$ac_ext
4780 cat >>conftest.
$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4783 typedef void * ac__type_sizeof_;
4787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4794 rm -f conftest.
$ac_objext
4795 if { (ac_try
="$ac_compile"
4797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4798 *) ac_try_echo=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_lo=`expr '(' $ac_mid ')' + 1`
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4823 '') if test "$ac_cv_type_void_p" = yes; then
4824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4825 See \`config.log
' for more details." >&5
4826 echo "$as_me: error: cannot compute sizeof (void *)
4827 See \`config.log' for more details.
" >&2;}
4828 { (exit 77); exit 77; }; }
4830 ac_cv_sizeof_void_p=0
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4841 typedef void * ac__type_sizeof_;
4842 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4843 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4850 FILE *f = fopen ("conftest.val
", "w
");
4853 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4855 long int i = longval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4858 fprintf (f, "%ld
\n", i);
4862 unsigned long int i = ulongval ();
4863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4865 fprintf (f, "%lu
\n", i);
4867 return ferror (f) || fclose (f) != 0;
4873 rm -f conftest$ac_exeext
4874 if { (ac_try="$ac_link"
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_link") 2>&5
4882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4884 { (case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_try") 2>&5
4891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_sizeof_void_p=`cat conftest.val`
4895 echo "$as_me: program exited with status
$ac_status" >&5
4896 echo "$as_me: failed program was
:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4900 if test "$ac_cv_type_void_p" = yes; then
4901 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
4902 See \
`config.log' for more details." >&5
4903 echo "$as_me: error: cannot compute sizeof (void *)
4904 See \`config.log
' for more details." >&2;}
4905 { (exit 77); exit 77; }; }
4907 ac_cv_sizeof_void_p=0
4910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4915 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4919 cat >>confdefs.h <<_ACEOF
4920 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4924 { echo "$as_me:$LINENO: checking for long" >&5
4925 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4926 if test "${ac_cv_type_long+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 $ac_includes_default
4936 typedef long ac__type_new_;
4940 if ((ac__type_new_ *) 0)
4942 if (sizeof (ac__type_new_))
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4957 grep -v '^
*+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4967 echo "$as_me: failed program was:" >&5
4968 sed 's
/^
/|
/' conftest.$ac_ext >&5
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4976 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4978 # The cast to long int works around a bug in the HP C Compiler
4979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4981 # This bug is HP SR number 8606223364.
4982 { echo "$as_me:$LINENO: checking size of long" >&5
4983 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4984 if test "${ac_cv_sizeof_long+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 if test "$cross_compiling" = yes; then
4988 # Depending upon the size, compute the lo and hi bounds.
4989 cat >conftest.
$ac_ext <<_ACEOF
4992 cat confdefs.h
>>conftest.
$ac_ext
4993 cat >>conftest.
$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 typedef long ac__type_sizeof_;
5000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5007 rm -f conftest.
$ac_objext
5008 if { (ac_try
="$ac_compile"
5010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 typedef long ac__type_sizeof_;
5037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5048 *) ac_try_echo
=$ac_try;;
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5053 grep -v '^ *+' conftest.er1
>conftest.err
5055 cat conftest.err
>&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.
$ac_objext; then
5061 ac_hi
=$ac_mid; break
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.
$ac_ext >&5
5066 ac_lo
=`expr $ac_mid + 1`
5067 if test $ac_lo -le $ac_mid; then
5071 ac_mid
=`expr 2 '*' $ac_mid + 1`
5074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.
$ac_ext >&5
5080 cat >conftest.
$ac_ext <<_ACEOF
5083 cat confdefs.h
>>conftest.
$ac_ext
5084 cat >>conftest.
$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 typedef long ac__type_sizeof_;
5091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5098 rm -f conftest.
$ac_objext
5099 if { (ac_try
="$ac_compile"
5101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 $ac_includes_default
5124 typedef long ac__type_sizeof_;
5128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5139 *) ac_try_echo
=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1
>conftest.err
5146 cat conftest.err
>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.
$ac_objext; then
5152 ac_lo
=$ac_mid; break
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5157 ac_hi
=`expr '(' $ac_mid ')' - 1`
5158 if test $ac_mid -le $ac_hi; then
5162 ac_mid
=`expr 2 '*' $ac_mid`
5165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.
$ac_ext >&5
5174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5188 typedef long ac__type_sizeof_;
5192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5199 rm -f conftest.
$ac_objext
5200 if { (ac_try
="$ac_compile"
5202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_lo=`expr '(' $ac_mid ')' + 1`
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ?*) ac_cv_sizeof_long=$ac_lo;;
5228 '') if test "$ac_cv_type_long" = yes; then
5229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5230 See \`config.log
' for more details." >&5
5231 echo "$as_me: error: cannot compute sizeof (long)
5232 See \`config.log' for more details.
" >&2;}
5233 { (exit 77); exit 77; }; }
5239 cat >conftest.$ac_ext <<_ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 $ac_includes_default
5246 typedef long ac__type_sizeof_;
5247 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5248 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5255 FILE *f = fopen ("conftest.val
", "w
");
5258 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5260 long int i = longval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5263 fprintf (f, "%ld
\n", i);
5267 unsigned long int i = ulongval ();
5268 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5270 fprintf (f, "%lu
\n", i);
5272 return ferror (f) || fclose (f) != 0;
5278 rm -f conftest$ac_exeext
5279 if { (ac_try="$ac_link"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>&5
5287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
5296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_sizeof_long=`cat conftest.val`
5300 echo "$as_me: program exited with status
$ac_status" >&5
5301 echo "$as_me: failed program was
:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5305 if test "$ac_cv_type_long" = yes; then
5306 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
5307 See \
`config.log' for more details." >&5
5308 echo "$as_me: error: cannot compute sizeof (long)
5309 See \`config.log
' for more details." >&2;}
5310 { (exit 77); exit 77; }; }
5315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5320 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5324 cat >>confdefs.h <<_ACEOF
5325 #define SIZEOF_LONG $ac_cv_sizeof_long
5330 if test "x$host_m32" = x1; then
5331 # Force 32-bit mode.
5332 CFLAGS="$CFLAGS -m32"
5333 LDFLAGS="$LDFLAGS -m32"
5336 # Check LZO when compiling for the i386-pc.
5337 if test "$target_cpu"-"$platform" = i386-pc; then
5338 # Check whether --enable-lzo was given.
5339 if test "${enable_lzo+set}" = set; then
5340 enableval=$enable_lzo;
5343 if [ x"$enable_lzo" = xyes ]; then
5344 # There are three possibilities. LZO version 2 installed with the name
5345 # liblzo2, with the name liblzo, and LZO version 1.
5347 cat >>confdefs.h <<\_ACEOF
5348 #define ENABLE_LZO 1
5351 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5352 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5353 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 ac_check_lib_save_LIBS=$LIBS
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 /* Override any GCC internal prototype to avoid an error.
5366 Use char because int might match the return type of a GCC
5367 builtin and then its argument prototype would still apply. */
5371 char __lzo_init_v2 ();
5375 return __lzo_init_v2 ();
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5389 grep -v '^
*+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest$ac_exeext &&
5397 $as_test_x conftest$ac_exeext; then
5398 ac_cv_lib_lzo2___lzo_init_v2=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's
/^
/|
/' conftest.$ac_ext >&5
5403 ac_cv_lib_lzo2___lzo_init_v2=no
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_check_lib_save_LIBS
5410 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5411 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5412 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5415 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5416 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5417 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 ac_check_lib_save_LIBS=$LIBS
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any GCC internal prototype to avoid an error.
5430 Use char because int might match the return type of a GCC
5431 builtin and then its argument prototype would still apply. */
5435 char __lzo_init_v2 ();
5439 return __lzo_init_v2 ();
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (ac_try="$ac_link"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_link") 2>conftest.er1
5453 grep -v '^
*+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest$ac_exeext &&
5461 $as_test_x conftest$ac_exeext; then
5462 ac_cv_lib_lzo___lzo_init_v2=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's
/^
/|
/' conftest.$ac_ext >&5
5467 ac_cv_lib_lzo___lzo_init_v2=no
5470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5472 LIBS=$ac_check_lib_save_LIBS
5474 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5475 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5476 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5479 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5480 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5481 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_check_lib_save_LIBS=$LIBS
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5493 /* Override any GCC internal prototype to avoid an error.
5494 Use char because int might match the return type of a GCC
5495 builtin and then its argument prototype would still apply. */
5499 char __lzo_init2 ();
5503 return __lzo_init2 ();
5508 rm -f conftest.$ac_objext conftest$ac_exeext
5509 if { (ac_try="$ac_link"
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_link") 2>conftest.er1
5517 grep -v '^
*+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest$ac_exeext &&
5525 $as_test_x conftest$ac_exeext; then
5526 ac_cv_lib_lzo___lzo_init2=yes
5528 echo "$as_me: failed program was:" >&5
5529 sed 's
/^
/|
/' conftest.$ac_ext >&5
5531 ac_cv_lib_lzo___lzo_init2=no
5534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5535 conftest$ac_exeext conftest.$ac_ext
5536 LIBS=$ac_check_lib_save_LIBS
5538 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5539 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5540 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5543 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5544 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5545 { (exit 1); exit 1; }; }
5553 LIBS="$LIBS $LIBLZO"
5554 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5555 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5556 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5567 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5569 /* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char lzo1x_999_compress (); below.
5571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 <limits.h> exists even on freestanding compilers. */
5575 # include <limits.h>
5577 # include <assert.h>
5580 #undef lzo1x_999_compress
5582 /* Override any GCC internal prototype to avoid an error.
5583 Use char because int might match the return type of a GCC
5584 builtin and then its argument prototype would still apply. */
5588 char lzo1x_999_compress ();
5589 /* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
5592 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5599 return lzo1x_999_compress ();
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (ac_try="$ac_link"
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_link") 2>conftest.er1
5613 grep -v '^
*+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest$ac_exeext &&
5621 $as_test_x conftest$ac_exeext; then
5622 ac_cv_func_lzo1x_999_compress=yes
5624 echo "$as_me: failed program was:" >&5
5625 sed 's
/^
/|
/' conftest.$ac_ext >&5
5627 ac_cv_func_lzo1x_999_compress=no
5630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5631 conftest$ac_exeext conftest.$ac_ext
5633 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5634 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5635 if test $ac_cv_func_lzo1x_999_compress = yes; then
5638 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5639 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5640 { (exit 1); exit 1; }; }
5644 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5647 for ac_header in lzo/lzo1x.h lzo1x.h
5649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_res=`eval echo '${'$as_ac_Header'}'`
5657 { echo "$as_me:$LINENO: result: $ac_res" >&5
5658 echo "${ECHO_T}$ac_res" >&6; }
5660 # Is the header compilable?
5661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 #include <$ac_header>
5672 rm -f conftest.$ac_objext
5673 if { (ac_try="$ac_compile"
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5681 grep -v '^
*+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_header_compiler=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's
/^
/|
/' conftest.$ac_ext >&5
5694 ac_header_compiler=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6; }
5701 # Is the header present?
5702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <$ac_header>
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 grep -v '^
*+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null && {
5725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5728 ac_header_preproc=yes
5730 echo "$as_me: failed program was:" >&5
5731 sed 's
/^
/|
/' conftest.$ac_ext >&5
5733 ac_header_preproc=no
5736 rm -f conftest.err conftest.$ac_ext
5737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5738 echo "${ECHO_T}$ac_header_preproc" >&6; }
5740 # So? What about this header?
5741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5746 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5747 ac_header_preproc=yes
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5759 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5763 ## ------------------------------- ##
5764 ## Report this to bug-grub@gnu.org ##
5765 ## ------------------------------- ##
5767 ) | sed "s/^/$as_me: WARNING: /" >&2
5770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 eval "$as_ac_Header=\$ac_header_preproc"
5777 ac_res=`eval echo '${'$as_ac_Header'}'`
5778 { echo "$as_me:$LINENO: result: $ac_res" >&5
5779 echo "${ECHO_T}$ac_res" >&6; }
5782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5783 cat >>confdefs.h <<_ACEOF
5784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 cat >>confdefs.h <<\_ACEOF
5794 #define ENABLE_LZMA 1
5801 # Check for functions.
5805 for ac_func in posix_memalign memalign asprintf
5807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5821 #define $ac_func innocuous_$ac_func
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func (); below.
5825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 <limits.h> exists even on freestanding compilers. */
5829 # include <limits.h>
5831 # include <assert.h>
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5843 /* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846 #if defined __stub_$ac_func || defined __stub___$ac_func
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_link") 2>conftest.er1
5867 grep -v '^
*+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext &&
5875 $as_test_x conftest$ac_exeext; then
5876 eval "$as_ac_var=yes"
5878 echo "$as_me: failed program was:" >&5
5879 sed 's
/^
/|
/' conftest.$ac_ext >&5
5881 eval "$as_ac_var=no"
5884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5885 conftest$ac_exeext conftest.$ac_ext
5887 ac_res=`eval echo '${'$as_ac_var'}'`
5888 { echo "$as_me:$LINENO: result: $ac_res" >&5
5889 echo "${ECHO_T}$ac_res" >&6; }
5890 if test `eval echo '${'$as_ac_var'}'` = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5900 # Check for target programs.
5904 # Use linker script if present, otherwise use builtin -N script.
5905 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5906 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5907 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
5908 TARGET_IMG_LDSCRIPT='$
(top_srcdir
)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5909 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5910 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
5912 TARGET_IMG_LDSCRIPT=
5913 TARGET_IMG_LDFLAGS='-Wl,-N'
5914 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5918 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5919 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5921 # For platforms where ELF is not the default link format.
5922 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5923 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5924 case "${host_os}" in
5925 cygwin) TARGET_OBJ2ELF='grub-pe2elf
' ;;
5929 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5930 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5932 # For cross-compiling.
5933 if test "x$build" != "x$host"; then
5934 # XXX this depends on the implementation of autoconf!
5935 tmp_ac_tool_prefix="$ac_tool_prefix"
5936 ac_tool_prefix=$target_alias-
5938 if test -n "$ac_tool_prefix"; then
5939 for ac_prog in gcc egcs cc
5941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$TARGET_CC"; then
5949 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 TARGET_CC=$ac_cv_prog_TARGET_CC
5969 if test -n "$TARGET_CC"; then
5970 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5971 echo "${ECHO_T}$TARGET_CC" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5978 test -n "$TARGET_CC" && break
5981 if test -z "$TARGET_CC"; then
5982 ac_ct_TARGET_CC=$TARGET_CC
5983 for ac_prog in gcc egcs cc
5985 # Extract the first word of "$ac_prog", so it can be a program name with args.
5986 set dummy $ac_prog; ac_word=$2
5987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5989 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 if test -n "$ac_ct_TARGET_CC"; then
5993 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6013 if test -n "$ac_ct_TARGET_CC"; then
6014 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6015 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6017 { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6022 test -n "$ac_ct_TARGET_CC" && break
6025 if test "x$ac_ct_TARGET_CC" = x; then
6026 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6027 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6028 { (exit 1); exit 1; }; }"
6030 case $cross_compiling:$ac_tool_warned in
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet. If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned=yes ;;
6040 TARGET_CC=$ac_ct_TARGET_CC
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$OBJCOPY"; then
6053 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 OBJCOPY=$ac_cv_prog_OBJCOPY
6073 if test -n "$OBJCOPY"; then
6074 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6075 echo "${ECHO_T}$OBJCOPY" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6083 if test -z "$ac_cv_prog_OBJCOPY"; then
6084 ac_ct_OBJCOPY=$OBJCOPY
6085 # Extract the first word of "objcopy", so it can be a program name with args.
6086 set dummy objcopy; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 if test -n "$ac_ct_OBJCOPY"; then
6093 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6113 if test -n "$ac_ct_OBJCOPY"; then
6114 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6115 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 if test "x$ac_ct_OBJCOPY" = x; then
6124 case $cross_compiling:$ac_tool_warned in
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet. If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6134 OBJCOPY=$ac_ct_OBJCOPY
6137 OBJCOPY="$ac_cv_prog_OBJCOPY"
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}strip; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_STRIP+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$STRIP"; then
6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 STRIP=$ac_cv_prog_STRIP
6169 if test -n "$STRIP"; then
6170 { echo "$as_me:$LINENO: result: $STRIP" >&5
6171 echo "${ECHO_T}$STRIP" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6179 if test -z "$ac_cv_prog_STRIP"; then
6181 # Extract the first word of "strip", so it can be a program name with args.
6182 set dummy strip; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 if test -n "$ac_ct_STRIP"; then
6189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_STRIP="strip"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6209 if test -n "$ac_ct_STRIP"; then
6210 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6211 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6213 { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6217 if test "x$ac_ct_STRIP" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet. If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6233 STRIP="$ac_cv_prog_STRIP"
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}nm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_NM+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test -n "$NM"; then
6245 ac_cv_prog_NM="$NM" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_NM="${ac_tool_prefix}nm"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 if test -n "$NM"; then
6266 { echo "$as_me:$LINENO: result: $NM" >&5
6267 echo "${ECHO_T}$NM" >&6; }
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6275 if test -z "$ac_cv_prog_NM"; then
6277 # Extract the first word of "nm", so it can be a program name with args.
6278 set dummy nm; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 if test -n "$ac_ct_NM"; then
6285 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_NM="nm"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6305 if test -n "$ac_ct_NM"; then
6306 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6307 echo "${ECHO_T}$ac_ct_NM" >&6; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6313 if test "x$ac_ct_NM" = x; then
6316 case $cross_compiling:$ac_tool_warned in
6318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6319 whose name does not start with the host triplet. If you think this
6320 configuration is useful to you, please write to autoconf@gnu.org." >&5
6321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6324 ac_tool_warned=yes ;;
6333 ac_tool_prefix="$tmp_ac_tool_prefix"
6335 if test "x$TARGET_CC" = x; then
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 if test -n "$OBJCOPY"; then
6347 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 OBJCOPY=$ac_cv_prog_OBJCOPY
6367 if test -n "$OBJCOPY"; then
6368 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6369 echo "${ECHO_T}$OBJCOPY" >&6; }
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6377 if test -z "$ac_cv_prog_OBJCOPY"; then
6378 ac_ct_OBJCOPY=$OBJCOPY
6379 # Extract the first word of "objcopy", so it can be a program name with args.
6380 set dummy objcopy; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 if test -n "$ac_ct_OBJCOPY"; then
6387 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6407 if test -n "$ac_ct_OBJCOPY"; then
6408 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6409 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6415 if test "x$ac_ct_OBJCOPY" = x; then
6418 case $cross_compiling:$ac_tool_warned in
6420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet. If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&5
6423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424 whose name does not start with the host triplet. If you think this
6425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426 ac_tool_warned=yes ;;
6428 OBJCOPY=$ac_ct_OBJCOPY
6431 OBJCOPY="$ac_cv_prog_OBJCOPY"
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}strip; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_STRIP+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 if test -n "$STRIP"; then
6443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 STRIP=$ac_cv_prog_STRIP
6463 if test -n "$STRIP"; then
6464 { echo "$as_me:$LINENO: result: $STRIP" >&5
6465 echo "${ECHO_T}$STRIP" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6473 if test -z "$ac_cv_prog_STRIP"; then
6475 # Extract the first word of "strip", so it can be a program name with args.
6476 set dummy strip; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 if test -n "$ac_ct_STRIP"; then
6483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_STRIP="strip"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6503 if test -n "$ac_ct_STRIP"; then
6504 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6505 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6511 if test "x$ac_ct_STRIP" = x; then
6514 case $cross_compiling:$ac_tool_warned in
6516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet. If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&5
6519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet. If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6522 ac_tool_warned=yes ;;
6527 STRIP="$ac_cv_prog_STRIP"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}nm; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_NM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 if test -n "$NM"; then
6539 ac_cv_prog_NM="$NM" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_NM="${ac_tool_prefix}nm"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 if test -n "$NM"; then
6560 { echo "$as_me:$LINENO: result: $NM" >&5
6561 echo "${ECHO_T}$NM" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6569 if test -z "$ac_cv_prog_NM"; then
6571 # Extract the first word of "nm", so it can be a program name with args.
6572 set dummy nm; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$ac_ct_NM"; then
6579 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_NM="nm"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6599 if test -n "$ac_ct_NM"; then
6600 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6601 echo "${ECHO_T}$ac_ct_NM" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6607 if test "x$ac_ct_NM" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&5
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6618 ac_tool_warned=yes ;;
6630 # Test the C compiler for the target environment.
6632 tmp_CFLAGS="$CFLAGS"
6633 tmp_LDFLAGS="$LDFLAGS"
6634 tmp_CPPFLAGS="$CPPFLAGS"
6637 CFLAGS="$TARGET_CFLAGS"
6638 CPPFLAGS="$TARGET_CPPFLAGS"
6639 LDFLAGS="$TARGET_LDFLAGS"
6642 if test "x$TARGET_CFLAGS" = x; then
6644 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6645 -Wundef -Wstrict-prototypes -g"
6647 # optimization flags.
6648 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6649 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6650 if test "${grub_cv_cc_Os+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6679 grep -v '^
*+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6689 echo "$as_me: failed program was:" >&5
6690 sed 's
/^
/|
/' conftest.$ac_ext >&5
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6699 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6700 if test "x$grub_cv_cc_Os" = xyes; then
6701 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6703 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6706 # Force no alignment to save space on i386.
6707 if test "x$target_cpu" = xi386; then
6708 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6709 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6710 if test "${grub_cv_cc_falign_loop+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 CFLAGS="-falign-loops=1"
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6739 grep -v '^
*+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 grub_cv_cc_falign_loop=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's
/^
/|
/' conftest.$ac_ext >&5
6752 grub_cv_cc_falign_loop=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6759 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6761 if test "x$grub_cv_cc_falign_loop" = xyes; then
6762 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6764 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6769 if test "x$target_m32" = x1; then
6770 # Force 32-bit mode.
6771 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6772 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6775 if test "x$target_m64" = x1; then
6776 # Force 64-bit mode.
6777 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6778 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6782 # Compiler features.
6785 # Need __enable_execute_stack() for nested function trampolines?
6787 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \
`__enable_execute_stack()'" >&5
6788 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'...
$ECHO_C" >&6; }
6789 cat >conftest.$ac_ext <<_ACEOF
6791 void f (int (*p) (void));
6794 int nestedfunc (void) { return i; }
6799 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6804 (exit $ac_status); }; } && test -s conftest.s; then
6807 { { echo "$as_me:$LINENO: error
: ${CC-cc} failed to produce assembly code
" >&5
6808 echo "$as_me: error
: ${CC-cc} failed to produce assembly code
" >&2;}
6809 { (exit 1); exit 1; }; }
6811 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6813 cat >>confdefs.h <<\_ACEOF
6814 #define NEED_ENABLE_EXECUTE_STACK 1
6817 { echo "$as_me:$LINENO: result
: yes" >&5
6818 echo "${ECHO_T}yes" >&6; }
6820 { echo "$as_me:$LINENO: result
: no
" >&5
6821 echo "${ECHO_T}no
" >&6; }
6826 # Smashing stack protector.
6828 # Smashing stack protector.
6830 { echo "$as_me:$LINENO: checking whether \
`$CC' accepts \`-fstack-protector'" >&5
6831 echo $ECHO_N "checking whether \`$CC' accepts \
`-fstack-protector'... $ECHO_C" >&6; }
6832 # Is this a reliable test case?
6833 cat >conftest.$ac_ext <<_ACEOF
6834 void foo (void) { volatile char a[8]; a[3]; }
6836 # `$CC -c -o ...
' might not be portable. But, oh, well... Is calling
6837 # `ac_compile' like this correct
, after all?
6838 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
6839 { echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6; }
6841 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6849 # Need that, because some distributions ship compilers that include
6850 # `-fstack-protector' in the default specs.
6851 if test "x$ssp_possible" = xyes
; then
6852 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
6855 # Smashing stack arg probe.
6857 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6858 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6859 cat >conftest.
$ac_ext <<_ACEOF
6860 void foo (void) { volatile char a[8]; a[3]; }
6862 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev
/null
; then
6863 { echo "$as_me:$LINENO: result: yes" >&5
6864 echo "${ECHO_T}yes" >&6; }
6865 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6873 # Cygwin's GCC uses alloca() to probe the stackframe on static
6874 # stack allocations above some threshold.
6875 if test x
"$sap_possible" = xyes
; then
6876 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
6884 # Set them to their new values for the tests below.
6886 CFLAGS
="$TARGET_CFLAGS"
6887 CPPFLAGS
="$TARGET_CPPFLAGS"
6888 LDFLAGS
="$TARGET_LDFLAGS"
6890 # Defined in aclocal.m4.
6891 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6892 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6893 if test "${grub_cv_prog_target_cc+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6911 rm -f conftest.
$ac_objext conftest
$ac_exeext
6912 if { (ac_try
="$ac_link"
6914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_link") 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest$ac_exeext &&
6928 $as_test_x conftest$ac_exeext; then
6929 grub_cv_prog_target_cc=yes
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 grub_cv_prog_target_cc=no
6937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6938 conftest$ac_exeext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6943 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6945 if test "x$grub_cv_prog_target_cc" = xno; then
6946 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6947 echo "$as_me: error: cannot compile for the target" >&2;}
6948 { (exit 1); exit 1; }; }
6951 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6952 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6953 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat > conftest.c <<\EOF
6960 *((int *) 0x1000) = 2;
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && test -s conftest.o; then :
6970 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6971 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6972 { (exit 1); exit 1; }; }
6974 grub_cv_prog_objcopy_absolute=yes
6975 for link_addr in 2000 8000 7C00; do
6976 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then :
6983 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6984 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6985 { (exit 1); exit 1; }; }
6987 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then :
6994 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6995 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6996 { (exit 1); exit 1; }; }
6998 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 mv -f conftest conftest.old
7006 grub_cv_prog_objcopy_absolute=no
7013 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7014 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7016 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7017 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7018 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7019 { (exit 1); exit 1; }; }
7022 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7023 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7024 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 save_LDFLAGS="$LDFLAGS"
7028 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7048 *) ac_try_echo
=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1
>conftest.err
7055 cat conftest.err
>&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest
$ac_exeext &&
7061 $as_test_x conftest
$ac_exeext; then
7062 grub_cv_prog_ld_build_id_none
=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 grub_cv_prog_ld_build_id_none
=no
7070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7071 conftest
$ac_exeext conftest.
$ac_ext
7072 LDFLAGS
="$save_LDFLAGS"
7076 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7077 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7079 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
7080 MODULE_LDFLAGS
="$MODULE_LDFLAGS -Wl,--build-id=none"
7084 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7085 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7086 if test "${grub_cv_asm_uscore+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat > conftest.c
<<\EOF
7098 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } && test -s conftest.s
; then
7106 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7107 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7108 { (exit 1); exit 1; }; }
7111 if grep _func conftest.s
>/dev
/null
2>&1; then
7112 grub_cv_asm_uscore
=yes
7114 grub_cv_asm_uscore
=no
7121 if test "x$grub_cv_asm_uscore" = xyes
; then
7123 cat >>confdefs.h
<<_ACEOF
7124 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7129 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7130 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7132 if test "x$target_cpu" = xi386
; then
7133 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7134 # Check symbols provided by linker script.
7135 CFLAGS
="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7137 if test "x$platform" = xpc
; then
7139 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7140 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7141 if test "${grub_cv_check_start_symbol+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 cat >conftest.
$ac_ext <<_ACEOF
7147 cat confdefs.h
>>conftest.
$ac_ext
7148 cat >>conftest.
$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7159 rm -f conftest.
$ac_objext conftest
$ac_exeext
7160 if { (ac_try
="$ac_link"
7162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_link") 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest$ac_exeext &&
7176 $as_test_x conftest$ac_exeext; then
7177 grub_cv_check_start_symbol=yes
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 grub_cv_check_start_symbol=no
7185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7186 conftest$ac_exeext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7191 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7193 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7194 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7195 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7213 rm -f conftest.$ac_objext conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7217 *) ac_try_echo
=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest
$ac_exeext &&
7230 $as_test_x conftest
$ac_exeext; then
7231 grub_cv_check_uscore_start_symbol
=yes
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.
$ac_ext >&5
7236 grub_cv_check_uscore_start_symbol
=no
7239 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7240 conftest
$ac_exeext conftest.
$ac_ext
7244 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7245 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7250 if test "x$grub_cv_check_start_symbol" = xyes
; then
7251 cat >>confdefs.h
<<\_ACEOF
7252 #define START_SYMBOL start
7255 elif test "x$grub_cv_check_uscore_start_symbol" = xyes
; then
7256 cat >>confdefs.h
<<\_ACEOF
7257 #define START_SYMBOL _start
7261 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7262 echo "$as_me: error: neither start nor _start is defined" >&2;}
7263 { (exit 1); exit 1; }; }
7267 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7268 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7269 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7282 asm ("incl __bss_start")
7287 rm -f conftest.
$ac_objext conftest
$ac_exeext
7288 if { (ac_try
="$ac_link"
7290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext &&
7304 $as_test_x conftest$ac_exeext; then
7305 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 grub_cv_check_uscore_uscore_bss_start_symbol=no
7313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7314 conftest$ac_exeext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7319 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7321 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7322 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7323 if test "${grub_cv_check_edata_symbol+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7341 rm -f conftest.$ac_objext conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7345 *) ac_try_echo
=$ac_try;;
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_link") 2>conftest.er1
7350 grep -v '^ *+' conftest.er1
>conftest.err
7352 cat conftest.err
>&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && {
7355 test -z "$ac_c_werror_flag" ||
7356 test ! -s conftest.err
7357 } && test -s conftest
$ac_exeext &&
7358 $as_test_x conftest
$ac_exeext; then
7359 grub_cv_check_edata_symbol
=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.
$ac_ext >&5
7364 grub_cv_check_edata_symbol
=no
7367 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7368 conftest
$ac_exeext conftest.
$ac_ext
7372 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7373 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7375 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7376 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7377 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7395 rm -f conftest.
$ac_objext conftest
$ac_exeext
7396 if { (ac_try
="$ac_link"
7398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest$ac_exeext &&
7412 $as_test_x conftest$ac_exeext; then
7413 grub_cv_check_uscore_edata_symbol=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 grub_cv_check_uscore_edata_symbol=no
7421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7422 conftest$ac_exeext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7427 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7432 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define BSS_START_SYMBOL __bss_start
7437 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7438 cat >>confdefs.h <<\_ACEOF
7439 #define BSS_START_SYMBOL edata
7442 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define BSS_START_SYMBOL _edata
7448 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7449 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7450 { (exit 1); exit 1; }; }
7454 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7455 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7456 if test "${grub_cv_check_end_symbol+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (ac_try="$ac_link"
7477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7478 *) ac_try_echo
=$ac_try;;
7480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7481 (eval "$ac_link") 2>conftest.er1
7483 grep -v '^ *+' conftest.er1
>conftest.err
7485 cat conftest.err
>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_c_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest
$ac_exeext &&
7491 $as_test_x conftest
$ac_exeext; then
7492 grub_cv_check_end_symbol
=yes
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.
$ac_ext >&5
7497 grub_cv_check_end_symbol
=no
7500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7501 conftest
$ac_exeext conftest.
$ac_ext
7505 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7506 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7508 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7509 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7510 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7528 rm -f conftest.
$ac_objext conftest
$ac_exeext
7529 if { (ac_try
="$ac_link"
7531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_link") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest$ac_exeext &&
7545 $as_test_x conftest$ac_exeext; then
7546 grub_cv_check_uscore_end_symbol=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 grub_cv_check_uscore_end_symbol=no
7554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7555 conftest$ac_exeext conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7560 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7565 if test "x$grub_cv_check_end_symbol" = xyes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define END_SYMBOL end
7570 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define END_SYMBOL _end
7576 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7577 echo "$as_me: error: neither end nor _end is defined" >&2;}
7578 { (exit 1); exit 1; }; }
7582 CFLAGS="$TARGET_CFLAGS"
7584 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7585 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7586 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat > conftest.s <<\EOF
7591 l1: addr32 movb %al, l1
7594 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } && test -s conftest.o; then
7600 grub_cv_i386_asm_prefix_requirement=yes
7602 grub_cv_i386_asm_prefix_requirement=no
7609 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7610 grub_tmp_addr32="addr32"
7611 grub_tmp_data32="data32"
7613 grub_tmp_addr32="addr32;"
7614 grub_tmp_data32="data32;"
7618 cat >>confdefs.h <<_ACEOF
7619 #define ADDR32 $grub_tmp_addr32
7623 cat >>confdefs.h <<_ACEOF
7624 #define DATA32 $grub_tmp_data32
7628 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7629 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7632 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7633 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7634 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat > conftest.s.in <<\EOF
7639 l1: @ADDR32@ movb %al, l1
7642 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7643 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7645 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7648 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } && test -s conftest.o; then
7654 grub_cv_i386_asm_addr32=yes
7656 grub_cv_i386_asm_addr32=no
7663 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7664 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7666 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7667 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7668 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 cat > conftest.s <<\EOF
7678 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } && test -s conftest.o; then
7684 grub_cv_i386_asm_absolute_without_asterisk=no
7686 grub_cv_i386_asm_absolute_without_asterisk=yes
7693 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define ABSOLUTE_WITHOUT_ASTERISK 1
7701 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7702 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7704 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7705 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7706 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 if test "$cross_compiling" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7711 See \`config.log
' for more details." >&5
7712 echo "$as_me: error: cannot run test program while cross compiling
7713 See \`config.log' for more details.
" >&2;}
7714 { (exit 1); exit 1; }; }
7716 cat >conftest.$ac_ext <<_ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7730 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7735 return hook (a, b, &c);
7741 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7743 return a == b && test (c);
7745 return testfunc (nestedfunc) ? 0 : 1;
7749 rm -f conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>&5
7758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7760 { (case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_try") 2>&5
7767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 grub_cv_i386_check_nested_functions=no
7771 echo "$as_me: program exited with status
$ac_status" >&5
7772 echo "$as_me: failed program was
:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7776 grub_cv_i386_check_nested_functions=yes
7778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7785 { echo "$as_me:$LINENO: result
: $grub_cv_i386_check_nested_functions" >&5
7786 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7788 if test "x
$grub_cv_i386_check_nested_functions" = xyes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7796 cat >>confdefs.h <<\_ACEOF
7797 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7804 cat >>confdefs.h <<\_ACEOF
7805 #define NESTED_FUNC_ATTR
7810 # Restore the flags.
7812 CFLAGS="$tmp_CFLAGS"
7813 CPPFLAGS="$tmp_CPPFLAGS"
7814 LDFLAGS="$tmp_LDFLAGS"
7818 # Check for options.
7821 # Memory manager debugging.
7822 # Check whether --enable-mm-debug was given.
7823 if test "${enable_mm_debug+set}" = set; then
7824 enableval=$enable_mm_debug;
7825 cat >>confdefs.h <<\_ACEOF
7832 # Check whether --enable-grub-emu was given.
7833 if test "${enable_grub_emu+set}" = set; then
7834 enableval=$enable_grub_emu;
7837 # Check whether --enable-grub-emu-usb was given.
7838 if test "${enable_grub_emu_usb+set}" = set; then
7839 enableval=$enable_grub_emu_usb;
7842 if [ x"$enable_grub_emu" = xyes ]; then
7843 # Check for curses libraries.
7844 { echo "$as_me:$LINENO: checking
for wgetch
in -lncurses" >&5
7845 echo $ECHO_N "checking
for wgetch
in -lncurses...
$ECHO_C" >&6; }
7846 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7847 echo $ECHO_N "(cached
) $ECHO_C" >&6
7849 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lncurses $LIBS"
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (ac_try="$ac_link"
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_link") 2>conftest.er1
7882 grep -v '^ *+' conftest.er1 >conftest.err
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest$ac_exeext &&
7890 $as_test_x conftest$ac_exeext; then
7891 ac_cv_lib_ncurses_wgetch=yes
7893 echo "$as_me: failed program was
:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_cv_lib_ncurses_wgetch=no
7899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_wgetch" >&5
7904 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7905 if test $ac_cv_lib_ncurses_wgetch = yes; then
7906 LIBCURSES="-lncurses"
7908 { echo "$as_me:$LINENO: checking
for wgetch
in -lcurses" >&5
7909 echo $ECHO_N "checking
for wgetch
in -lcurses...
$ECHO_C" >&6; }
7910 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7911 echo $ECHO_N "(cached
) $ECHO_C" >&6
7913 ac_check_lib_save_LIBS=$LIBS
7914 LIBS="-lcurses $LIBS"
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 /* Override any GCC internal prototype to avoid an error.
7923 Use char because int might match the return type of a GCC
7924 builtin and then its argument prototype would still apply. */
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_link") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1 >conftest.err
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest$ac_exeext &&
7954 $as_test_x conftest$ac_exeext; then
7955 ac_cv_lib_curses_wgetch=yes
7957 echo "$as_me: failed program was
:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_cv_lib_curses_wgetch=no
7963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LIBS=$ac_check_lib_save_LIBS
7967 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_wgetch" >&5
7968 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7969 if test $ac_cv_lib_curses_wgetch = yes; then
7970 LIBCURSES="-lcurses"
7972 { { echo "$as_me:$LINENO: error
: (n
)curses libraries are required to build \
`grub-emu'" >&5
7973 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu
'" >&2;}
7974 { (exit 1); exit 1; }; }
7981 # Check for headers.
7983 for ac_header in ncurses/curses.h
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_res=`eval echo '${'$as_ac_Header'}'`
7993 { echo "$as_me:$LINENO: result: $ac_res" >&5
7994 echo "${ECHO_T}$ac_res" >&6; }
7996 # Is the header compilable?
7997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8006 #include <$ac_header>
8008 rm -f conftest.$ac_objext
8009 if { (ac_try="$ac_compile"
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8017 grep -v '^
*+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8025 ac_header_compiler=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's
/^
/|
/' conftest.$ac_ext >&5
8030 ac_header_compiler=no
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8035 echo "${ECHO_T}$ac_header_compiler" >&6; }
8037 # Is the header present?
8038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046 #include <$ac_header>
8048 if { (ac_try="$ac_cpp conftest.$ac_ext"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8056 grep -v '^
*+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } >/dev/null && {
8061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8064 ac_header_preproc=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's
/^
/|
/' conftest.$ac_ext >&5
8069 ac_header_preproc=no
8072 rm -f conftest.err conftest.$ac_ext
8073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8074 echo "${ECHO_T}$ac_header_preproc" >&6; }
8076 # So? What about this header?
8077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8082 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8083 ac_header_preproc=yes
8086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8095 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8099 ## ------------------------------- ##
8100 ## Report this to bug-grub@gnu.org ##
8101 ## ------------------------------- ##
8103 ) | sed "s/^/$as_me: WARNING: /" >&2
8106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 eval "$as_ac_Header=\$ac_header_preproc"
8113 ac_res=`eval echo '${'$as_ac_Header'}'`
8114 { echo "$as_me:$LINENO: result: $ac_res" >&5
8115 echo "${ECHO_T}$ac_res" >&6; }
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8125 for ac_header in ncurses.h
8127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_res=`eval echo '${'$as_ac_Header'}'`
8135 { echo "$as_me:$LINENO: result: $ac_res" >&5
8136 echo "${ECHO_T}$ac_res" >&6; }
8138 # Is the header compilable?
8139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 #include <$ac_header>
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8159 grep -v '^
*+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_header_compiler=yes
8169 echo "$as_me: failed program was:" >&5
8170 sed 's
/^
/|
/' conftest.$ac_ext >&5
8172 ac_header_compiler=no
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 echo "${ECHO_T}$ac_header_compiler" >&6; }
8179 # Is the header present?
8180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <$ac_header>
8190 if { (ac_try="$ac_cpp conftest.$ac_ext"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8198 grep -v '^
*+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } >/dev/null && {
8203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8206 ac_header_preproc=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's
/^
/|
/' conftest.$ac_ext >&5
8211 ac_header_preproc=no
8214 rm -f conftest.err conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6; }
8218 # So? What about this header?
8219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8224 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8225 ac_header_preproc=yes
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8237 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241 ## ------------------------------- ##
8242 ## Report this to bug-grub@gnu.org ##
8243 ## ------------------------------- ##
8245 ) | sed "s/^/$as_me: WARNING: /" >&2
8248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 eval "$as_ac_Header=\$ac_header_preproc"
8255 ac_res=`eval echo '${'$as_ac_Header'}'`
8256 { echo "$as_me:$LINENO: result: $ac_res" >&5
8257 echo "${ECHO_T}$ac_res" >&6; }
8260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8261 cat >>confdefs.h <<_ACEOF
8262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 for ac_header in curses.h
8269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 ac_res=`eval echo '${'$as_ac_Header'}'`
8277 { echo "$as_me:$LINENO: result: $ac_res" >&5
8278 echo "${ECHO_T}$ac_res" >&6; }
8280 # Is the header compilable?
8281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #include <$ac_header>
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^
*+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_header_compiler=yes
8311 echo "$as_me: failed program was:" >&5
8312 sed 's
/^
/|
/' conftest.$ac_ext >&5
8314 ac_header_compiler=no
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8319 echo "${ECHO_T}$ac_header_compiler" >&6; }
8321 # Is the header present?
8322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 #include <$ac_header>
8332 if { (ac_try="$ac_cpp conftest.$ac_ext"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8340 grep -v '^
*+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } >/dev/null && {
8345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8348 ac_header_preproc=yes
8350 echo "$as_me: failed program was:" >&5
8351 sed 's
/^
/|
/' conftest.$ac_ext >&5
8353 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6; }
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
8366 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
8367 ac_header_preproc=yes
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
8379 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8383 ## ------------------------------- ##
8384 ## Report this to bug-grub@gnu.org ##
8385 ## ------------------------------- ##
8387 ) | sed "s/^/$as_me: WARNING: /" >&2
8390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 eval "$as_ac_Header=\$ac_header_preproc"
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8409 echo "$as_me: error
: (n
)curses header files are required to build \
`grub-emu'" >&2;}
8410 { (exit 1); exit 1; }; }
8424 if [ x"$enable_grub_emu_usb" = xyes ]; then
8425 # Check for libusb libraries.
8426 { echo "$as_me:$LINENO: checking for usb_claim_interface in -lusb" >&5
8427 echo $ECHO_N "checking for usb_claim_interface in -lusb... $ECHO_C" >&6; }
8428 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 ac_check_lib_save_LIBS=$LIBS
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8440 /* Override any GCC internal prototype to avoid an error.
8441 Use char because int might match the return type of a GCC
8442 builtin and then its argument prototype would still apply. */
8446 char usb_claim_interface ();
8450 return usb_claim_interface ();
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8459 *) ac_try_echo
=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_link") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest
$ac_exeext &&
8472 $as_test_x conftest
$ac_exeext; then
8473 ac_cv_lib_usb_usb_claim_interface
=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.
$ac_ext >&5
8478 ac_cv_lib_usb_usb_claim_interface
=no
8481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8482 conftest
$ac_exeext conftest.
$ac_ext
8483 LIBS
=$ac_check_lib_save_LIBS
8485 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_claim_interface" >&5
8486 echo "${ECHO_T}$ac_cv_lib_usb_usb_claim_interface" >&6; }
8487 if test $ac_cv_lib_usb_usb_claim_interface = yes; then
8490 { { echo "$as_me:$LINENO: error: libusb libraries are required to build \`grub-emu' with USB support" >&5
8491 echo "$as_me: error: libusb libraries are required to build \`grub-emu' with USB support" >&2;}
8492 { (exit 1); exit 1; }; }
8497 # Check for headers.
8499 for ac_header
in usb.h
8501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 ac_res
=`eval echo '${'$as_ac_Header'}'`
8509 { echo "$as_me:$LINENO: result: $ac_res" >&5
8510 echo "${ECHO_T}$ac_res" >&6; }
8512 # Is the header compilable?
8513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8515 cat >conftest.
$ac_ext <<_ACEOF
8518 cat confdefs.h
>>conftest.
$ac_ext
8519 cat >>conftest.
$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 $ac_includes_default
8522 #include <$ac_header>
8524 rm -f conftest.
$ac_objext
8525 if { (ac_try
="$ac_compile"
8527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_header_compiler=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_header_compiler=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8551 echo "${ECHO_T}$ac_header_compiler" >&6; }
8553 # Is the header present?
8554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 #include <$ac_header>
8564 if { (ac_try="$ac_cpp conftest.$ac_ext"
8566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8567 *) ac_try_echo
=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1
>conftest.err
8574 cat conftest.err
>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } >/dev
/null
&& {
8577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8580 ac_header_preproc
=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_header_preproc
=no
8588 rm -f conftest.err conftest.
$ac_ext
8589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8590 echo "${ECHO_T}$ac_header_preproc" >&6; }
8592 # So? What about this header?
8593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8599 ac_header_preproc
=yes
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8615 ## ------------------------------- ##
8616 ## Report this to bug-grub@gnu.org ##
8617 ## ------------------------------- ##
8619 ) |
sed "s/^/$as_me: WARNING: /" >&2
8622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8624 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 eval "$as_ac_Header=\$ac_header_preproc"
8629 ac_res
=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8635 cat >>confdefs.h
<<_ACEOF
8636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8640 { { echo "$as_me:$LINENO: error: libusb header file is required to build \`grub-emu' with USB support" >&5
8641 echo "$as_me: error: libusb header file is required to build \`grub-emu' with USB support" >&2;}
8642 { (exit 1); exit 1; }; }
8652 # Check whether --enable-grub-fstest was given.
8653 if test "${enable_grub_fstest+set}" = set; then
8654 enableval
=$enable_grub_fstest;
8659 # Check whether --enable-grub-pe2elf was given.
8660 if test "${enable_grub_pe2elf+set}" = set; then
8661 enableval
=$enable_grub_pe2elf;
8666 # Check whether --enable-grub-mkfont was given.
8667 if test "${enable_grub_mkfont+set}" = set; then
8668 enableval
=$enable_grub_mkfont;
8671 if test x
"$enable_grub_mkfont" = xyes
; then
8672 # Check for freetype libraries.
8673 for ac_prog
in freetype-config
8675 # Extract the first word of "$ac_prog", so it can be a program name with args.
8676 set dummy
$ac_prog; ac_word
=$2
8677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8679 if test "${ac_cv_prog_FREETYPE+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 if test -n "$FREETYPE"; then
8683 ac_cv_prog_FREETYPE
="$FREETYPE" # Let the user override the test.
8685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir
=.
8690 for ac_exec_ext
in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_FREETYPE
="$ac_prog"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 FREETYPE
=$ac_cv_prog_FREETYPE
8703 if test -n "$FREETYPE"; then
8704 { echo "$as_me:$LINENO: result: $FREETYPE" >&5
8705 echo "${ECHO_T}$FREETYPE" >&6; }
8707 { echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6; }
8712 test -n "$FREETYPE" && break
8715 if test "x$FREETYPE" = x
; then
8716 { { echo "$as_me:$LINENO: error: freetype2 libraries are required to build \`grub-mkfont'" >&5
8717 echo "$as_me: error: freetype2 libraries are required to build \`grub-mkfont'" >&2;}
8718 { (exit 1); exit 1; }; }
8720 freetype_cflags
=`freetype-config --cflags`
8721 freetype_libs
=`freetype-config --libs`
8728 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8730 ac_config_files
="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8732 ac_config_files
="$ac_config_files stamp-h"
8734 cat >confcache
<<\_ACEOF
8735 # This file is a shell script that caches the results of configure
8736 # tests run on this system so they can be shared between configure
8737 # scripts and configure runs, see configure's option --config-cache.
8738 # It is not useful on other systems. If it contains results you don't
8739 # want to keep, you may remove or edit it.
8741 # config.status only pays attention to the cache file if you give it
8742 # the --recheck option to rerun configure.
8744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8750 # The following way of writing the cache mishandles newlines in values,
8751 # but we know of no workaround that is simple, portable, and efficient.
8752 # So, we kill variables containing newlines.
8753 # Ultrix sh set writes to stderr and can't be redirected directly,
8754 # and sets the high bit in the cache file unless we assign to the vars.
8756 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8757 eval ac_val
=\$
$ac_var
8761 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8765 _ | IFS | as_nl
) ;; #(
8766 *) $as_unset $ac_var ;;
8772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8773 *${as_nl}ac_space
=\
*)
8774 # `set' does not quote correctly, so add quotes (double-quote
8775 # substitution turns \\\\ into \\, and sed turns \\ into \).
8778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8781 # `set' quotes correctly as required by POSIX, so do not add quotes.
8782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8795 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8796 if test -w "$cache_file"; then
8797 test "x$cache_file" != "x/dev/null" &&
8798 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8799 echo "$as_me: updating cache $cache_file" >&6;}
8800 cat confcache
>$cache_file
8802 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8803 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8808 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8809 # Let make expand exec_prefix.
8810 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8812 DEFS
=-DHAVE_CONFIG_H
8816 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8817 # 1. Remove the extension, and $U if already installed.
8818 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8819 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8821 # will be set to the directory where LIBOBJS objects are built.
8822 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8823 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8827 LTLIBOBJS
=$ac_ltlibobjs
8831 : ${CONFIG_STATUS=./config.status}
8832 ac_clean_files_save
=$ac_clean_files
8833 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8834 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8835 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8836 cat >$CONFIG_STATUS <<_ACEOF
8838 # Generated by $as_me.
8839 # Run this file to recreate the current configuration.
8840 # Compiler output produced by configure, useful for debugging
8841 # configure, is in config.log if it exists.
8846 SHELL=\${CONFIG_SHELL-$SHELL}
8849 cat >>$CONFIG_STATUS <<\_ACEOF
8850 ## --------------------- ##
8851 ## M4sh Initialization. ##
8852 ## --------------------- ##
8854 # Be more Bourne compatible
8855 DUALCASE
=1; export DUALCASE
# for MKS sh
8856 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8860 # is contrary to our usage. Disable this feature.
8861 alias -g '${1+"$@"}'='"$@"'
8862 setopt NO_GLOB_SUBST
8864 case `(set -o) 2>/dev/null` in
8865 *posix
*) set -o posix
;;
8874 # Avoid depending upon Character Ranges.
8875 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8876 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8877 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8878 as_cr_digits
='0123456789'
8879 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8881 # The user is always right.
8882 if test "${PATH_SEPARATOR+set}" != set; then
8883 echo "#! /bin/sh" >conf$$.sh
8884 echo "exit 0" >>conf$$.sh
8886 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8894 # Support unset when possible.
8895 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8903 # We need space, tab and new line, in precisely that order. Quoting is
8904 # there to prevent editors from complaining about space-tab.
8905 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8906 # splitting by setting IFS to empty value.)
8911 # Find who we are. Look in the path if we contain no directory separator.
8913 *[\\/]* ) as_myself
=$0 ;;
8914 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8918 test -z "$as_dir" && as_dir
=.
8919 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8925 # We did not find ourselves, most probably we were run as `sh COMMAND'
8926 # in which case we are not to be found in the path.
8927 if test "x$as_myself" = x
; then
8930 if test ! -f "$as_myself"; then
8931 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8932 { (exit 1); exit 1; }
8935 # Work around bugs in pre-3.0 UWIN ksh.
8936 for as_var
in ENV MAIL MAILPATH
8937 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8945 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8946 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8947 LC_TELEPHONE LC_TIME
8949 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8950 eval $as_var=C
; export $as_var
8952 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8956 # Required to use basename.
8957 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8958 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8964 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8965 as_basename
=basename
8971 # Name of the executable.
8972 as_me
=`$as_basename -- "$0" ||
8973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8974 X"$0" : 'X\(//\)$' \| \
8975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8977 sed '/^.*\/\([^/][^/]*\)\/*$/{
8998 test "x$as_lineno_1" != "x$as_lineno_2" &&
8999 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
9001 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9002 # uniformly replaced by the line number. The first 'sed' inserts a
9003 # line-number line after each line using $LINENO; the second 'sed'
9004 # does the real work. The second script uses 'N' to pair each
9005 # line-number line with the line containing $LINENO, and appends
9006 # trailing '-' during substitution so that $LINENO is not a special
9008 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9009 # scripts with optimization help from Paolo Bonzini. Blame Lee
9010 # E. McMahon (1931-1989) for sed's syntax. :-)
9022 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9026 chmod +x
"$as_me.lineno" ||
9027 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9028 { (exit 1); exit 1; }; }
9030 # Don't try to exec as it changes $[0], causing all sort of problems
9031 # (the dirname of $[0] is not the place where we might find the
9032 # original and so on. Autoconf is especially sensitive to this).
9034 # Exit status is that of the last command.
9039 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9045 ECHO_C
= ECHO_N
= ECHO_T
=
9048 case `echo 'x\c'` in
9049 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9056 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9057 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9063 rm -f conf$$ conf$$.exe conf$$.
file
9064 if test -d conf$$.dir
; then
9065 rm -f conf$$.dir
/conf$$.
file
9071 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9073 # ... but there are two gotchas:
9074 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9075 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9076 # In both cases, we have to default to `cp -p'.
9077 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9079 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9084 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9085 rmdir conf$$.dir
2>/dev
/null
9087 if mkdir
-p .
2>/dev
/null
; then
9090 test -d .
/-p && rmdir .
/-p
9094 if test -x / >/dev
/null
2>&1; then
9097 if ls -dL / >/dev
/null
2>&1; then
9104 if test -d "$1"; then
9110 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9111 ???[sx]*):;;*)false;;esac;fi
9115 as_executable_p
=$as_test_x
9117 # Sed expression to map a string onto a valid CPP name.
9118 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9120 # Sed expression to map a string onto a valid variable name.
9121 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9126 # Save the log message, to keep $[0] and so on meaningful, and to
9127 # report actual input values of CONFIG_FILES etc. instead of their
9128 # values after options handling.
9130 This file was extended by GRUB $as_me 1.96, which was
9131 generated by GNU Autoconf 2.61. Invocation command line was
9133 CONFIG_FILES = $CONFIG_FILES
9134 CONFIG_HEADERS = $CONFIG_HEADERS
9135 CONFIG_LINKS = $CONFIG_LINKS
9136 CONFIG_COMMANDS = $CONFIG_COMMANDS
9139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9144 cat >>$CONFIG_STATUS <<_ACEOF
9145 # Files that config.status was made for.
9146 config_files="$ac_config_files"
9147 config_headers="$ac_config_headers"
9148 config_links="$ac_config_links"
9152 cat >>$CONFIG_STATUS <<\_ACEOF
9154 \`$as_me' instantiates files from templates according to the
9155 current configuration.
9157 Usage: $0 [OPTIONS] [FILE]...
9159 -h, --help print this help, then exit
9160 -V, --version print version number and configuration settings, then exit
9161 -q, --quiet do not print progress messages
9162 -d, --debug don't remove temporary files
9163 --recheck update $as_me by reconfiguring in the same conditions
9164 --file=FILE[:TEMPLATE]
9165 instantiate the configuration file FILE
9166 --header=FILE[:TEMPLATE]
9167 instantiate the configuration header FILE
9169 Configuration files:
9172 Configuration headers:
9175 Configuration links:
9178 Report bugs to <bug-autoconf@gnu.org>."
9181 cat >>$CONFIG_STATUS <<_ACEOF
9183 GRUB config.status 1.96
9184 configured by $0, generated by GNU Autoconf 2.61,
9185 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9187 Copyright (C) 2006 Free Software Foundation, Inc.
9188 This config.status script is free software; the Free Software Foundation
9189 gives unlimited permission to copy, distribute and modify it."
9196 cat >>$CONFIG_STATUS <<\_ACEOF
9197 # If no file are specified by the user, then we need to provide default
9198 # value. By we need to know if files were specified by the user.
9204 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9205 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9216 # Handling of the options.
9217 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9219 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9220 echo "$ac_cs_version"; exit ;;
9221 --debug |
--debu |
--deb |
--de |
--d |
-d )
9223 --file |
--fil |
--fi |
--f )
9225 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9226 ac_need_defaults
=false
;;
9227 --header |
--heade |
--head |
--hea )
9229 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9230 ac_need_defaults
=false
;;
9232 # Conflict between --help and --header
9233 { echo "$as_me: error: ambiguous option: $1
9234 Try \`$0 --help' for more information." >&2
9235 { (exit 1); exit 1; }; };;
9236 --help |
--hel |
-h )
9237 echo "$ac_cs_usage"; exit ;;
9238 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9239 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9243 -*) { echo "$as_me: error: unrecognized option: $1
9244 Try \`$0 --help' for more information." >&2
9245 { (exit 1); exit 1; }; } ;;
9247 *) ac_config_targets
="$ac_config_targets $1"
9248 ac_need_defaults
=false
;;
9254 ac_configure_extra_args
=
9256 if $ac_cs_silent; then
9258 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9262 cat >>$CONFIG_STATUS <<_ACEOF
9263 if \$ac_cs_recheck; then
9264 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9267 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9271 cat >>$CONFIG_STATUS <<\_ACEOF
9275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9276 ## Running $as_me. ##
9282 cat >>$CONFIG_STATUS <<_ACEOF
9285 cat >>$CONFIG_STATUS <<\_ACEOF
9287 # Handling of arguments.
9288 for ac_config_target
in $ac_config_targets
9290 case $ac_config_target in
9291 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9292 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
9293 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
9294 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9295 "gensymlist.sh") CONFIG_FILES
="$CONFIG_FILES gensymlist.sh" ;;
9296 "genkernsyms.sh") CONFIG_FILES
="$CONFIG_FILES genkernsyms.sh" ;;
9297 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
9299 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9300 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9301 { (exit 1); exit 1; }; };;
9306 # If the user did not use the arguments to specify the items to instantiate,
9307 # then the envvar interface is used. Set only those that are not.
9308 # We use the long form for the default assignment because of an extremely
9309 # bizarre bug on SunOS 4.1.3.
9310 if $ac_need_defaults; then
9311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9313 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9316 # Have a temporary directory for convenience. Make it in the build tree
9317 # simply because there is no reason against having it here, and in addition,
9318 # creating and moving files from /tmp can sometimes cause problems.
9319 # Hook for its removal unless debugging.
9320 # Note that there is a small window in which the directory will not be cleaned:
9321 # after its creation but before its name has been assigned to `$tmp'.
9325 trap 'exit_status=$?
9326 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9328 trap '{ (exit 1); exit 1; }' 1 2 13 15
9330 # Create a (secure) tmp directory for tmp files.
9333 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9334 test -n "$tmp" && test -d "$tmp"
9337 tmp
=.
/conf$$
-$RANDOM
9338 (umask 077 && mkdir
"$tmp")
9341 echo "$me: cannot create a temporary directory in ." >&2
9342 { (exit 1); exit 1; }
9346 # Set up the sed scripts for CONFIG_FILES section.
9349 # No need to generate the scripts if there are no CONFIG_FILES.
9350 # This happens for instance when ./config.status config.h
9351 if test -n "$CONFIG_FILES"; then
9358 for ac_last_try
in false false false false false
:; do
9359 cat >conf$
$subs.
sed <<_ACEOF
9360 SHELL!$SHELL$ac_delim
9361 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9362 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9363 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9364 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9365 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9366 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9367 exec_prefix!$exec_prefix$ac_delim
9368 prefix!$prefix$ac_delim
9369 program_transform_name!$program_transform_name$ac_delim
9370 bindir!$bindir$ac_delim
9371 sbindir!$sbindir$ac_delim
9372 libexecdir!$libexecdir$ac_delim
9373 datarootdir!$datarootdir$ac_delim
9374 datadir!$datadir$ac_delim
9375 sysconfdir!$sysconfdir$ac_delim
9376 sharedstatedir!$sharedstatedir$ac_delim
9377 localstatedir!$localstatedir$ac_delim
9378 includedir!$includedir$ac_delim
9379 oldincludedir!$oldincludedir$ac_delim
9380 docdir!$docdir$ac_delim
9381 infodir!$infodir$ac_delim
9382 htmldir!$htmldir$ac_delim
9383 dvidir!$dvidir$ac_delim
9384 pdfdir!$pdfdir$ac_delim
9385 psdir!$psdir$ac_delim
9386 libdir!$libdir$ac_delim
9387 localedir!$localedir$ac_delim
9388 mandir!$mandir$ac_delim
9390 ECHO_C!$ECHO_C$ac_delim
9391 ECHO_N!$ECHO_N$ac_delim
9392 ECHO_T!$ECHO_T$ac_delim
9394 build_alias!$build_alias$ac_delim
9395 host_alias!$host_alias$ac_delim
9396 target_alias!$target_alias$ac_delim
9397 build!$build$ac_delim
9398 build_cpu!$build_cpu$ac_delim
9399 build_vendor!$build_vendor$ac_delim
9400 build_os!$build_os$ac_delim
9402 host_cpu!$host_cpu$ac_delim
9403 host_vendor!$host_vendor$ac_delim
9404 host_os!$host_os$ac_delim
9405 target!$target$ac_delim
9406 target_cpu!$target_cpu$ac_delim
9407 target_vendor!$target_vendor$ac_delim
9408 target_os!$target_os$ac_delim
9409 platform!$platform$ac_delim
9412 UNIFONT_BDF!$UNIFONT_BDF$ac_delim
9413 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9414 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9415 INSTALL_DATA!$INSTALL_DATA$ac_delim
9417 SET_MAKE!$SET_MAKE$ac_delim
9419 HELP2MAN!$HELP2MAN$ac_delim
9421 CFLAGS!$CFLAGS$ac_delim
9422 LDFLAGS!$LDFLAGS$ac_delim
9423 CPPFLAGS!$CPPFLAGS$ac_delim
9424 ac_ct_CC!$ac_ct_CC$ac_delim
9425 EXEEXT!$EXEEXT$ac_delim
9426 OBJEXT!$OBJEXT$ac_delim
9429 EGREP!$EGREP$ac_delim
9430 LIBLZO!$LIBLZO$ac_delim
9431 enable_lzo!$enable_lzo$ac_delim
9432 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9433 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9434 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9435 TARGET_CC!$TARGET_CC$ac_delim
9436 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9437 OBJCOPY!$OBJCOPY$ac_delim
9438 STRIP!$STRIP$ac_delim
9440 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9441 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9442 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9443 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9444 LIBCURSES!$LIBCURSES$ac_delim
9445 LIBUSB!$LIBUSB$ac_delim
9446 enable_grub_emu!$enable_grub_emu$ac_delim
9447 enable_grub_emu_usb!$enable_grub_emu_usb$ac_delim
9448 enable_grub_fstest!$enable_grub_fstest$ac_delim
9449 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9450 FREETYPE!$FREETYPE$ac_delim
9451 enable_grub_mkfont!$enable_grub_mkfont$ac_delim
9452 freetype_cflags!$freetype_cflags$ac_delim
9453 freetype_libs!$freetype_libs$ac_delim
9454 LIBOBJS!$LIBOBJS$ac_delim
9455 LTLIBOBJS!$LTLIBOBJS$ac_delim
9458 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
9460 elif $ac_last_try; then
9461 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9463 { (exit 1); exit 1; }; }
9465 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9469 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9470 if test -n "$ac_eof"; then
9471 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9472 ac_eof
=`expr $ac_eof + 1`
9475 cat >>$CONFIG_STATUS <<_ACEOF
9476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9481 s/^/s,@/; s/!/@,|#_!!_#|/
9484 s/'"$ac_delim"'$/,g/; t
9486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9487 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9488 rm -f conf$
$subs.
sed
9489 cat >>$CONFIG_STATUS <<_ACEOF
9494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9496 # trailing colons and then remove the whole line if VPATH becomes empty
9497 # (actually we leave an empty line to preserve line numbers).
9498 if test "x$srcdir" = x.
; then
9499 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9503 s/^\([^=]*=[ ]*\):*/\1/
9509 cat >>$CONFIG_STATUS <<\_ACEOF
9510 fi # test -n "$CONFIG_FILES"
9513 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS
9516 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9518 case $ac_mode$ac_tag in
9520 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9521 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9522 { (exit 1); exit 1; }; };;
9523 :[FH
]-) ac_tag
=-:-;;
9524 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9541 -) ac_f
="$tmp/stdin";;
9542 *) # Look for the file first in the build tree, then in the source tree
9543 # (if the path is not absolute). The absolute path cannot be DOS-style,
9544 # because $ac_f cannot contain `:'.
9548 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9550 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9551 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9552 { (exit 1); exit 1; }; };;
9554 ac_file_inputs
="$ac_file_inputs $ac_f"
9557 # Let's still pretend it is `configure' which instantiates (i.e., don't
9558 # use $as_me), people would be surprised to read:
9559 # /* config.h. Generated by config.status. */
9560 configure_input
="Generated from "`IFS=:
9561 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9562 if test x
"$ac_file" != x-
; then
9563 configure_input
="$ac_file. $configure_input"
9564 { echo "$as_me:$LINENO: creating $ac_file" >&5
9565 echo "$as_me: creating $ac_file" >&6;}
9569 *:-:* |
*:-) cat >"$tmp/stdin";;
9574 ac_dir
=`$as_dirname -- "$ac_file" ||
9575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9576 X"$ac_file" : 'X\(//\)[^/]' \| \
9577 X"$ac_file" : 'X\(//\)$' \| \
9578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9599 -*) as_dir
=.
/$as_dir;;
9601 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9605 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9606 *) as_qdir
=$as_dir;;
9608 as_dirs
="'$as_qdir' $as_dirs"
9609 as_dir
=`$as_dirname -- "$as_dir" ||
9610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9611 X"$as_dir" : 'X\(//\)[^/]' \| \
9612 X"$as_dir" : 'X\(//\)$' \| \
9613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9632 test -d "$as_dir" && break
9634 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9635 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9636 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9637 { (exit 1); exit 1; }; }; }
9641 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9643 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9644 # A ".." for each directory in $ac_dir_suffix.
9645 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9646 case $ac_top_builddir_sub in
9647 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9648 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9651 ac_abs_top_builddir
=$ac_pwd
9652 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9653 # for backward compatibility:
9654 ac_top_builddir
=$ac_top_build_prefix
9657 .
) # We are building in place.
9659 ac_top_srcdir
=$ac_top_builddir_sub
9660 ac_abs_top_srcdir
=$ac_pwd ;;
9661 [\\/]* | ?
:[\\/]* ) # Absolute name.
9662 ac_srcdir
=$srcdir$ac_dir_suffix;
9663 ac_top_srcdir
=$srcdir
9664 ac_abs_top_srcdir
=$srcdir ;;
9666 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9667 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9668 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9670 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9680 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9681 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9685 cat >>$CONFIG_STATUS <<\_ACEOF
9686 # If the template does not know about datarootdir, expand it.
9687 # FIXME: This hack should be removed a few years after 2.60.
9688 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9690 case `sed -n '/datarootdir/ {
9699 ' $ac_file_inputs` in
9700 *datarootdir
*) ac_datarootdir_seen
=yes;;
9701 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9705 cat >>$CONFIG_STATUS <<_ACEOF
9706 ac_datarootdir_hack='
9707 s&@datadir@&$datadir&g
9708 s&@docdir@&$docdir&g
9709 s&@infodir@&$infodir&g
9710 s&@localedir@&$localedir&g
9711 s&@mandir@&$mandir&g
9712 s&\\\${datarootdir}&$datarootdir&g' ;;
9716 # Neutralize VPATH when `$srcdir' = `.'.
9717 # Shell code in configure.ac might set extrasub.
9718 # FIXME: do we really want to maintain this feature?
9719 cat >>$CONFIG_STATUS <<_ACEOF
9723 cat >>$CONFIG_STATUS <<\_ACEOF
9725 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9726 s
&@configure_input@
&$configure_input&;t t
9727 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9728 s
&@srcdir@
&$ac_srcdir&;t t
9729 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9730 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9731 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9732 s
&@builddir@
&$ac_builddir&;t t
9733 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9734 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9735 s
&@INSTALL@
&$ac_INSTALL&;t t
9736 $ac_datarootdir_hack
9737 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed 's/|#_!!_#|//g' >$tmp/out
9739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9740 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9742 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9743 which seems to be undefined. Please make sure it is defined." >&5
9744 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9745 which seems to be undefined. Please make sure it is defined." >&2;}
9749 -) cat "$tmp/out"; rm -f "$tmp/out";;
9750 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9759 # Transform confdefs.h into a sed script `conftest.defines', that
9760 # substitutes the proper values into config.h.in to produce config.h.
9761 rm -f conftest.defines conftest.
tail
9762 # First, append a space to every undef/define line, to ease matching.
9763 echo 's/$/ /' >conftest.defines
9764 # Then, protect against being on the right side of a sed subst, or in
9765 # an unquoted here document, in config.status. If some macros were
9766 # called several times there might be several #defines for the same
9767 # symbol, which is useless. But do not sort them, since the last
9768 # AC_DEFINE must be honored.
9769 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9770 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9771 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9772 # PARAMS is the parameter list in the macro definition--in most cases, it's
9773 # just an empty string.
9774 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9775 ac_dB
='\\)[ (].*,\\1define\\2'
9783 s/^[ ]*#[ ]*define[ ][ ]*//
9788 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9789 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9790 ' >>conftest.defines
9792 # Remove the space that was appended to ease matching.
9793 # Then replace #undef with comments. This is necessary, for
9794 # example, in the case of _POSIX_SOURCE, which is predefined and required
9795 # on some systems where configure will not decide to define it.
9796 # (The regexp can be short, since the line contains either #define or #undef.)
9798 s,^[ #]*u.*,/* & */,' >>conftest.defines
9800 # Break up conftest.defines:
9803 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9804 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9805 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9807 ac_in
='$ac_file_inputs'
9808 ac_out
='"$tmp/out1"'
9809 ac_nxt
='"$tmp/out2"'
9813 # Write a here document:
9814 cat >>$CONFIG_STATUS <<_ACEOF
9815 # First, check the format of the line:
9816 cat >"\$tmp/defines.sed" <<\\CEOF
9817 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9818 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9822 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9824 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9825 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9826 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9827 grep . conftest.
tail >/dev
/null ||
break
9828 rm -f conftest.defines
9829 mv conftest.
tail conftest.defines
9831 rm -f conftest.defines conftest.
tail
9833 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9834 cat >>$CONFIG_STATUS <<\_ACEOF
9835 if test x
"$ac_file" != x-
; then
9836 echo "/* $configure_input */" >"$tmp/config.h"
9837 cat "$ac_result" >>"$tmp/config.h"
9838 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9840 echo "$as_me: $ac_file is unchanged" >&6;}
9843 mv "$tmp/config.h" $ac_file
9846 echo "/* $configure_input */"
9856 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9857 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9859 if test ! -r "$srcdir/$ac_source"; then
9860 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9861 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9862 { (exit 1); exit 1; }; }
9866 # Try a relative symlink, then a hard link, then a copy.
9868 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
9869 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
9871 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
9872 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
9873 cp -p "$srcdir/$ac_source" "$ac_file" ||
9874 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9875 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9876 { (exit 1); exit 1; }; }
9882 case $ac_file$ac_mode in
9883 "stamp-h":F
) echo timestamp
> stamp-h
;;
9889 { (exit 0); exit 0; }
9891 chmod +x
$CONFIG_STATUS
9892 ac_clean_files
=$ac_clean_files_save
9895 # configure is writing to config.log, and then calls config.status.
9896 # config.status does its own redirection, appending to config.log.
9897 # Unfortunately, on DOS this fails, as config.log is still kept open
9898 # by configure, so config.status won't be able to write to it; its
9899 # output is simply discarded. So we exec the FD to /dev/null,
9900 # effectively closing config.log, so it can be properly (re)opened and
9901 # appended to by config.status. When coming back to configure, we
9902 # need to make the FD available again.
9903 if test "$no_create" != yes; then
9905 ac_config_status_args
=
9906 test "$silent" = yes &&
9907 ac_config_status_args
="$ac_config_status_args --quiet"
9909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9912 # would make configure fail if this is the last instruction.
9913 $ac_cs_success ||
{ (exit 1); exit 1; }